/* ===== 1. BASE & TYPOGRAPHIE ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

/* ===== 2. HEADER & NAVIGATION ===== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.logo img {
    width: 280px;
    height: auto;
    aspect-ratio: 400 / 80;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li { margin-left: 20px; }

.main-nav a {
    text-decoration: none;
    font-family: "Corbel", sans-serif;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover { color: #007bff; }

/* Menu Burger Mobile */
.menu-toggle, .hamburger { display: none; }

@media (max-width: 991px) {
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { width: 25px; height: 3px; background: #333; border-radius: 2px; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-nav ul { flex-direction: column; padding: 20px; }
    .main-nav li { margin: 10px 0; text-align: center; margin-left: 0; }
    .menu-toggle:checked ~ .main-nav { display: block; }
}

/* ===== 3. SLIDER ADAPTATIF (19 IMAGES) ===== */
.slider-container {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    /* On garde un aspect-ratio pour le mobile, on le changera pour le PC */
    aspect-ratio: 750 / 500; 
}

.slide-track {
    display: flex;
    align-items: center;
    /* CRUCIAL : La piste fait exactement la largeur des images, pas plus */
    width: max-content; 
    
    /* PERFORMANCE : On délègue au GPU */
    will-change: transform;
    
    /* Animation fluide : 60s pour 19 images est une bonne vitesse pro */
    animation: scroll-smooth 60s linear infinite;
}

.slide-track img {
    flex-shrink: 0;
    height: auto;
    width: 100vw; /* Sur mobile : 1 image prend tout l'écran */
    object-fit: contain;
}

/* Animation simplifiée : On va de 0 à la moitié (fin des 19 premières images) */
@keyframes scroll-smooth {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* On stoppe au survol pour laisser les clients admirer les photos */
.slider-container:hover .slide-track {
    animation-play-state: paused;
}

/* ===== 5. MODE PC (Dès 992px) ===== */
@media (min-width: 992px) {
    .slider-container { 
        aspect-ratio: auto; 
        height: 500px; 
    }
    
    .slide-track img { 
        width: auto;      /* Sur PC : Largeur naturelle */
        height: 500px;    /* Hauteur fixe demandée */
    }

    .content-section {
        max-width: 900px;
        margin: 3rem auto;
    }
    
    /* On ajuste le logo pour éviter le flou */
    .logo img { width: 400px; height: 80px; }
}

/* ===== 4. SECTIONS DE TEXTE ===== */
.content-section {
    width: 100%;
    margin: 1.5rem auto;
    padding: 0 25px;
    -webkit-hyphens: auto; /* Pour Safari */
    -ms-hyphens: auto;     /* Pour Internet Explorer */
    hyphens: auto;    
    text-justify: inter-word;
}

.content-section h1 {
    /* Restauration Times New Roman */
    font-family: "Segoe UI", Roboto, sans-serif;
    font-weight: lighter;
    text-align: center;
    -webkit-hyphens: auto; /* Pour Safari */
    -ms-hyphens: auto;     /* Pour Internet Explorer */
    hyphens: auto;    
    text-justify: inter-word;
}

.content-section p, .content-section h2 {
    /* Restauration Corbel */
    font-family: "Segoe UI", Roboto, sans-serif !important;
    text-align: justify;
    line-height: 1.6;
    font-weight: lighter;
    font-size: 1.4rem;
    color: #333;
    -webkit-hyphens: auto; /* Pour Safari */
    -ms-hyphens: auto;     /* Pour Internet Explorer */
    hyphens: auto;    
    text-justify: inter-word;
}

/* ===== 5. MODE PC (Dés 992px) ===== */
@media (min-width: 992px) {
    .slider-container { aspect-ratio: auto; height: 500px; }
    .slide-track img { width: auto; height: 500px; }
    
    .content-section {
        max-width: 900px; /* Ta demande : 900px de large */
        margin: 3rem auto;
        padding: 0;
    }
    .logo img { width: 400px; }
}

/* ===== 6. FOOTER ===== */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}
/* Bandeau Cookies */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #222;
    color: #fff;
    padding: 20px;
    display: none; /* Caché par défaut */
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: sans-serif;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
#cookie-banner button {
    background: #fff;
    color: #222;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
}
#cookie-banner a { color: #aaa; text-decoration: underline; }