/* --- POLICES & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-blue: #00334e;   /* Bleu du logo */
    --forest-green: #2d6a4f;   /* Vert du logo */
    --light-sage: #f0f4f0;     /* Fond clair bio */
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* { 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    margin: 0; 
    color: var(--text-dark); 
    line-height: 1.6;
    overflow-x: hidden; 
}

h1, h2, h3, .nav-links a, .btn-dl, .accordion { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
}

/* --- NAVIGATION --- */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%; 
    background: var(--white); 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    height: 130px; /* Hauteur pour le gros logo */
}

.logo-img { 
    height: 110px; 
    width: auto; 
    display: block;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0;
    align-items: center;
}

.nav-links li { margin-left: 10px; }

.nav-links a { 
    text-decoration: none; 
    color: var(--primary-blue); 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    padding: 12px 20px;
    border-radius: 5px;
    transition: var(--transition);
}

/* État Actif du menu */
.nav-links a.active-link {
    background-color: var(--forest-green);
    color: white !important;
}

.nav-links a:hover:not(.active-link) {
    color: var(--forest-green);
}

/* --- MENU BURGER (MOBILE) --- */
.burger {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
    gap: 6px;
}

.burger span {
    width: 100%;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero { 
    /* Le dégradé reste pour la lisibilité du texte */
    background: linear-gradient(rgba(0, 51, 78, 0.5), rgba(0, 51, 78, 0.3)), 
                url('Chateau-de-Rambouillet_background-paralaxe.jpeg'); 
    
    /* On ajuste ici : "contain" montre toute la photo, mais peut laisser des vides. 
       Le mieux est de rester en "cover" mais d'augmenter le padding pour agrandir la zone visible */
    background-size: cover; 
    background-position: center 20%; /* Ajuste le centrage vertical pour voir plus le haut du château */
    background-attachment: fixed; 
    
    color: white; 
    padding: 180px 10%; /* On augmente le padding (haut/bas) pour "dézoomer" visuellement l'image */
    text-align: center; 
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }

/* --- SECTIONS & LAYOUT --- */
.container { 
    padding: 60px 10%; 
    max-width: 1200px; 
    margin: auto; 
}

.section-bio-full {
    background-color: var(--light-sage);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0;
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* --- DOCUMENTS (GRID CORRIGÉE) --- */
.download-cards { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Force 2 colonnes sur PC */
    gap: 25px; 
    margin: 40px 0; 
}

.pdf-card { 
    background: var(--white); 
    padding: 25px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.pdf-card:hover { transform: translateY(-5px); }

/* --- BOUTONS --- */
.btn-dl { 
    display: inline-block;
    background: var(--primary-blue); 
    color: white !important; 
    padding: 12px 25px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-dl:hover { background: var(--forest-green); }

/* --- ACCORDÉONS --- */
.accordion { 
    background: #fff; 
    color: var(--primary-blue); 
    cursor: pointer; 
    padding: 20px; 
    width: 100%; 
    border: 1px solid #ddd; 
    text-align: left; 
    font-size: 1.1rem; 
    margin-top: 15px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-radius: 8px;
}

.panel { 
    padding: 0 25px; 
    display: none; 
    background: white; 
    border: 1px solid #ddd; 
    border-top: none; 
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* --- FOOTER --- */
footer { 
    background: var(--primary-blue); 
    color: white; 
    padding: 60px 10%; 
    padding-bottom: 10px;
    text-align: center; 
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    nav { height: 90px; }
    .logo-img { height: 75px; }
    
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    }

    .nav-links.mobile-open { right: 0; }
    .nav-links li { margin: 15px 0; width: 100%; text-align: center; }
    .nav-links a { font-size: 1.2rem; display: block; width: 100%; }

    .bio-container, .download-cards { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}