:root {
    --bg-color: #0b0f19;         /* Noir nuit très sombre */
    --card-bg: #111827;        /* Noir anthracite */
    --card-border: #dadfea;    /* Bordure discrète */
    --text-primary: #f9fafb;   /* Blanc brillant */
    --text-muted: #9ca3af;     /* Gris moyen */
    --badge-bg: #1f2937;       /* Fond des dates */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Header & Banner Centré */
.header-banner {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 3rem 0 2rem 0;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.header-banner h1 {
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.header-banner h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.header-banner .subtitle {
    color: #c1cde6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.hashtags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hashtags span {
    background: #1f2937;
    color: #e5e7eb;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

/* Navbar Centrée & Responsive */
.navbar {
    background-color: #0b0f19;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0.8rem 20px;
}

/* Bouton Hamburger (caché sur PC) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links .btn-email {
    background-color: #ffffff;
    color: #000000;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.nav-links .btn-email:hover {
    background-color: #e5e7eb;
}

/* Media Query pour Mobile & Tablette */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-end; /* Alignement du bouton hamburger à droite */
    }

    .nav-toggle {
        display: block; /* Affichage du bouton hamburger */
    }

    .nav-links {
        display: none; /* Cache les liens par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--card-border);
        padding: 1.5rem 0;
        gap: 1.2rem;
        box-shadow: var(--shadow);
    }

    /* Classe activée en JS lors du clic */
    .nav-links.active {
        display: flex;
    }
}

/* Content & Cards */
.main-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.8rem;
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.propos-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Parcours & Formations - Layout Centré */
.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px dashed var(--card-border);
}

.media-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.media-img {
    margin-bottom: 1rem;
}

.media-img img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    padding: 8px;
    background: #ffffff; /* Fond blanc pour détacher les logos */
}

.media-body h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.badge-date {
    display: inline-block;
    background-color: var(--badge-bg);
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 3px 12px;
    border-radius: 15px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--card-border);
}

.media-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Compétences Centrées */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.skill-block {
    background: #0b0f19;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.skill-block h5 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.skills-list li i {
    font-size: 1.1rem;
}

.tag-personal {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

/* Footer Centré */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}