:root {
    --primary: #2563eb;
    --dark-bg: #0f172a;
    --sidebar-bg: #1e293b;
    --text-main: #334155;
    --text-light: #f8fafc;
    --accent: #38bdf8;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f1f5f9;
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header & Navbar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.brand-title a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-bg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 12px; height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.navbar-links ul {
    list-style: none; display: flex; gap: 20px; margin: 0;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.navbar-links a:hover { color: var(--primary); }

.special-link {
    background: var(--primary);
    color: white !important;
    padding: 6px 15px;
    border-radius: 20px;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--dark-bg);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Layout Container */
.main-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    color: white;
    border-radius: 20px;
    padding: 40px 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.avatar-circle {
    width: 80px; height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; margin-bottom: 20px;
}

.sidebar h1 { font-size: 1.5rem; margin-bottom: 5px; }
.job-title { color: var(--accent); font-weight: 600; margin-bottom: 5px; }
.birth-info { font-size: 0.8rem; opacity: 0.7; }

.sidebar-section { margin-top: 40px; }
.sidebar-section h2 { 
    font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 10px; margin-bottom: 15px; color: var(--accent);
}

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 12px; font-size: 0.9rem; display: flex; gap: 10px; }
.contact-list a { color: white; text-decoration: none; }

/* Main Content Cards */
.content-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.content-card h2 {
    color: var(--dark-bg);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
}

/* Timeline */
.timeline {
    border-left: 2px solid #e2e8f0;
    padding-left: 25px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px; top: 5px;
    width: 12px; height: 12px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.timeline-item .date {
    font-size: 0.85rem; font-weight: 700; color: var(--primary);
}

.timeline-item h3 { margin: 5px 0; font-size: 1.1rem; }
.timeline-item .location { font-weight: 600; color: #64748b; font-size: 0.9rem; }
.timeline-item .desc { font-size: 0.9rem; margin-top: 5px; }

.highlight { background: #f0f7ff; padding: 15px; border-radius: 10px; margin-left: -15px; width: calc(100% + 15px); }

/* Skills Badges */
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-badge {
    background: #e2e8f0;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}
.skill-badge:hover { background: var(--primary); color: white; }

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials a {
    color: white; text-decoration: none; margin-left: 20px; font-weight: 600;
}

/* Modification du bouton pour qu'il soit visible sur ton header clair */
.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--dark-bg); /* Changé de white à dark-bg */
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 850px) {
    /* Cache les liens par défaut sur mobile */
    .navbar-links {
        display: none !important; 
        position: absolute;
        top: 70px; /* Ajuste selon la hauteur de ton header */
        left: 0;
        width: 100%;
        background-color: #1e293b !important; /* Couleur foncée */
        padding: 20px 0;
        z-index: 1000;
        flex-direction: column;
    }

    /* Affiche le menu quand la classe .active est ajoutée par le JS */
    .navbar-links.active {
        display: flex !important; 
    }

    .navbar-links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0;
    }

    .navbar-links a {
        color: white !important;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* Force l'affichage du bouton burger */
    .burger-menu {
        display: block !important;
    }
    
    /* 1. On passe la grille en une seule colonne */
    .content-container {
        grid-template-columns: 1fr !important; /* Une seule colonne qui prend toute la largeur */
        gap: 20px;
    }

    /* 2. On ajuste la sidebar pour qu'elle soit au-dessus */
    .sidebar {
        position: relative !important; /* Elle n'est plus "collée" sur le côté */
        top: 0 !important;
        width: 100% !important; /* Elle prend toute la largeur */
        padding: 30px 20px; /* On réduit un peu le padding pour gagner de la place */
        margin-bottom: 20px;
        border-radius: 15px; /* Optionnel : arrondis un peu plus doux sur mobile */
    }

    /* 3. On s'assure que le wrapper ne dépasse pas de l'écran */
    .main-wrapper {
        width: 100%;
        margin: 10px auto;
        padding: 0 15px; /* Petite marge sur les côtés pour que le texte ne touche pas le bord */
        overflow-x: hidden; /* Empêche le scroll horizontal parasite */
    }

    /* 4. On s'assure que les images ou cartes ne dépassent pas */
    .main-content, .card {
        width: 100% !important;
    }
}

