/* --- Variables & Reset --- */
:root {
    --text-primary: #0A4A6E;    
    --bg-light: #FFFEFA;        
    --bg-beige: #F7ECE0;        
    --bg-dark-blue: #0A4A6E;    
    --bg-green: #547873;        
    --text-contrast: #FFFEFA;   
    
    --font-heading: 'EB Garamond', serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-light);
    font-weight: 300;
}

/* --- Typographie --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: inherit; 
    margin-bottom: 0.5em;
    font-weight: 400; 
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-top: 0; }
h3 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.text-left { text-align: left !important; }
.center-title { text-align: center; }

/* --- Header & Nav (Desktop & Mobile) --- */
header {
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0; /* Padding géré par la navbar */
    border-bottom: 1px solid rgba(10, 74, 110, 0.1);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Style du bouton Hamburger (caché sur desktop) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* --- Responsive Menu (Mobile) --- */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between; /* Hamburger à droite ou gauche */
    }

    .hamburger {
        display: block; /* On affiche le burger */
        margin-left: auto; /* Pousse le burger à droite si besoin */
    }

    /* Animation du hamburger en croix */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Le menu déroulant */
    .nav-menu {
        position: fixed;
        left: -100%; /* Caché hors écran */
        top: 70px; /* Juste sous le header */
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-bottom: 20px;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0; /* On ramène le menu sur l'écran */
    }
}

/* --- Sections Générales --- */
section { padding: 80px 0; }

/* --- Accueil --- */
#accueil { background-color: var(--bg-light); padding-top: 60px; }
.profile-img {
    height: 380px; width: auto; max-width: 100%;
    object-fit: cover; margin-bottom: 25px;
    border: 3px solid white; border-radius: 2px;
    box-shadow: 0 10px 20px rgba(10, 74, 110, 0.15);
}
.hero-subtitle { font-family: var(--font-body); font-weight: 300; letter-spacing: 1px; font-size: 1.1rem; }

/* --- A Propos --- */
#apropos { background-color: var(--bg-beige); }
.btn {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--text-contrast);
    padding: 12px 30px; margin-top: 25px;
    font-family: var(--font-body); text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 2px;
    border: 1px solid var(--text-primary);
}
.btn:hover { background-color: transparent; color: var(--text-primary); opacity: 1; }

/* --- Expérience --- */
#experience { background-color: var(--bg-green); color: var(--text-contrast); }
.experience-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; text-align: left; margin-top: 50px;
}
.exp-item {
    background: rgba(255, 255, 255, 0.1); padding: 25px;
    border-left: 3px solid rgba(255,255,255, 0.3);
}
.exp-item h3 { margin-top: 0; font-family: var(--font-heading); }

/* --- Historique --- */
#education { background-color: var(--bg-dark-blue); color: var(--text-contrast); }
.history-content { display: inline-block; max-width: 800px; }
.history-content h3 { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 5px; margin-top: 30px; }

/* --- Décoration --- */
#decoration { background-color: var(--bg-light); }
.decoration-flex {
    display: flex; align-items: center; gap: 50px; margin-top: 40px;
}
.deco-img-wrapper { flex: 1; text-align: right; }
.deco-text-wrapper { flex: 1.5; }
.decoration-img {
    max-width: 100%; height: auto; max-height: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 2px;
}
@media (max-width: 768px) {
    .decoration-flex { flex-direction: column; text-align: center; gap: 30px; }
    .deco-img-wrapper { text-align: center; }
    .deco-text-wrapper.text-left { text-align: center !important; }
}

/* --- Citation --- */
#citation { background-color: var(--bg-beige); color: var(--text-primary); }
.quote-text { font-family: var(--font-heading); font-size: 2rem; font-style: italic; line-height: 1.4; }

/* --- Contact --- */
#contact { background-color: var(--bg-light); }
form { max-width: 600px; margin: 40px auto 0; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; }
input, textarea {
    width: 100%; padding: 15px; border: 1px solid #ccc; background-color: #fafafa;
    font-family: var(--font-body); font-size: 1rem; color: var(--text-primary); box-sizing: border-box;
}
input:focus, textarea:focus { outline: none; border-color: var(--text-primary); background-color: #fff; }

/* --- Footer --- */
footer { background-color: var(--bg-dark-blue); color: rgba(255,255,255,0.6); text-align: center; padding: 30px; font-size: 0.8rem; letter-spacing: 1px; }