:root {
    --beige: #f5f5dc;
    --dark: #1a1a1a;
    --white: #ffffff;
    --accent: #d4af37;
    --gray: #f4f4f4;
    --light-beige: #fafaf0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* --- BARRE DE PROGRESSION --- */
#progress-bar { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: var(--accent); z-index: 2001; transition: width 0.1s ease-out; }

/* --- NAVIGATION VITRINE --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%; 
    background: var(--dark) !important; 
    color: var(--beige); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    height: 80px; 
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.5rem; 
    letter-spacing: 2px; 
    font-weight: bold; 
    color: var(--white);
}

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 2rem; }
.nav-links a { color: var(--beige); text-decoration: none; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; padding: 5px 0; border-bottom: 2px solid transparent; letter-spacing: 1px; }
.nav-links a.active, .nav-links a:hover { color: var(--white); border-bottom: 2px solid var(--accent); }
.nav-links a:visited {color: var(--beige);}

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- HERO & BANNER --- */
.hero { display: flex; align-items: center; padding: 5rem 10%; background: var(--beige); min-height: 75vh; gap: 2rem; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { width: 100%; max-width: 380px; border: 10px solid var(--white); box-shadow: 15px 15px 0 var(--dark); }
.hero-text { flex: 1; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 1.5rem; }
.header-banner { text-align: center; padding: 5rem 5%; background: var(--beige); margin-bottom: 2rem; }
.header-banner h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; }

.custom-shape-divider-top { width: 100%; overflow: hidden; line-height: 0; }
.custom-shape-divider-top svg { display: block; width: calc(100% + 1.3px); height: 60px; }
.custom-shape-divider-top .shape-fill { fill: var(--beige); }

/* --- BOUTONS --- */
.cta-button { display: inline-block; padding: 1rem 2rem; background: var(--accent); color: var(--white); text-decoration: none; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; border: none; cursor: pointer; transition: 0.3s; }
.cta-button.secondary { background: transparent; border: 1px solid var(--dark); color: var(--dark) !important; margin-left: 10px; }
.cta-button:hover { background: var(--accent); transform: translateY(-3px); color: var(--dark); }

/* --- STATISTIQUES --- */
.stats-section { display: flex; flex-wrap: wrap; justify-content: space-around; padding: 5rem 5%; background: var(--dark); color: var(--white); text-align: center; gap: 2rem; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--accent); font-weight: bold; display: block; }
.stat-label { text-transform: uppercase; font-size: 0.8rem; }

/* --- ÉQUIPE / GALERIE --- */
.gallery-section { padding: 5rem 5%; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1200px; margin: 3rem auto; }
.gallery-grid .card:nth-child(1), .gallery-grid .card:nth-child(2) { grid-column: span 3; }
.gallery-grid .card:nth-child(3), .gallery-grid .card:nth-child(4), .gallery-grid .card:nth-child(5) { grid-column: span 2; }
.card { background: var(--gray); padding: 10px; transition: 0.3s; }
.img-container img { width: 100%; height: 350px; object-fit: cover; display: block; }

/* --- TÉMOIGNAGES --- */
.testimonials-section { padding: 6rem 5%; background: var(--light-beige); text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 3rem 2rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 4px solid var(--accent); display: flex; flex-direction: column; align-items: center; transition: 0.3s; }
.quote-icon { font-size: 2rem; color: var(--accent); opacity: 0.5; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 1.5rem; }
.stars { color: #f1c40f; margin-bottom: 1rem; }
.parent-name { font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }

/* --- SECTION GROUPES / CATÉGORIES --- */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 2rem 10% 5rem; max-width: 1300px; margin: 0 auto; }
.group-card { background: var(--white); padding: 3rem 2rem; border: 1px solid #eee; text-align: center; border-top: 5px solid var(--accent); transition: 0.4s; }
.group-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.group-icon { font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem; }
.group-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 0.5rem; }
.age-tag { display: inline-block; margin-top: 1.5rem; background: var(--dark); color: var(--white); padding: 6px 20px; font-size: 0.8rem; font-weight: 600; }

/* --- SECTION SPECTACLES --- */
.video-gallery { padding: 2rem 5% 5rem; max-width: 1000px; margin: 0 auto; }
.video-item { margin-bottom: 5rem; background: var(--white); border: 10px solid var(--dark); padding: 20px; box-shadow: 20px 20px 0 var(--accent); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-info { padding-top: 20px; text-align: left; }
.video-info h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 0.5rem; }
.video-info p { color: #777; font-weight: 600; }

/* --- PLANNING --- */
.section-title-centered { text-align: center; margin-bottom: 2rem; font-size: 2rem; font-family: 'Playfair Display', serif; }
.table-container { overflow-x: auto; padding: 2rem 5%; }
.planning-table { width: 100%; border-collapse: collapse; background: white; margin: 0 auto; max-width: 1000px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.planning-table th { background: var(--dark); color: var(--white); padding: 1.2rem; text-transform: uppercase; font-size: 0.9rem; }
.planning-table td { padding: 1.2rem; border-bottom: 1px solid #eee; text-align: center; }
.day-cell { font-weight: bold; background: var(--light-beige); color: var(--dark); border-right: 2px solid var(--accent); }

/* --- CONTACT & FAQ --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1100px; margin: 4rem auto; padding: 0 5%; }
.accordion-item { border-bottom: 1px solid #eee; margin-bottom: 1rem; }
.accordion-header { padding: 1.2rem 0; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { max-height: 0; overflow: hidden; transition: 0.3s; color: #666; }
.accordion-item.active .accordion-content { max-height: 200px; padding-bottom: 1.2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; background: var(--gray); font-family: inherit; }

/* --- FOOTER --- */
.main-footer { background: var(--dark); color: var(--beige); padding: 5rem 5% 2rem; border-top: 5px solid var(--accent); text-align: center; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto 4rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--white); font-weight: bold; margin-bottom: 1rem; }
.footer-socials { display: flex; gap: 20px; justify-content: center; margin-top: 1rem; }
.footer-socials a { color: var(--beige); font-size: 1.5rem; transition: 0.3s; }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; font-size: 0.75rem; opacity: 0.6; }

/* --- ALBUMS --- */
/* --- ALBUMS (CORRIGÉ) --- */
.album-container { 
    display: flex; 
    flex-direction: column; /* Permet d'aligner le titre sous l'image si besoin */
    align-items: center; 
    padding: 4rem 5%; 
}

/* On cible la balise <a> pour neutraliser le violet des liens visités */
.album-frame, .album-frame:visited { 
    width: 100%; 
    max-width: 600px; 
    height: 400px; 
    border: 15px solid white; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    text-decoration: none; /* Supprime le soulignement */
    display: block;
    transition: transform 0.4s ease;
    color: white; /* Force le texte en blanc par défaut */
}

.album-frame:hover { 
    transform: scale(1.02) rotate(1deg); 
}

.frame-content img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.frame-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); /* Un peu plus sombre pour mieux lire le texte */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    transition: 0.3s;
}

/* Icône et Titre à l'intérieur de l'album */
.frame-overlay i { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    color: var(--accent); /* Ton doré */
}

.frame-overlay h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.2rem; 
    margin-bottom: 0.5rem; 
    color: var(--white); /* Force le blanc */
    text-decoration: none;
}

/* Petit texte "Voir l'album" */
.frame-overlay span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: bold;
}

/* Suppression du violet sur tous les liens de la page par sécurité */
a, a:visited {
    text-decoration: none;
    color: inherit; /* Le lien prend la couleur de son parent au lieu du violet */
}

/* --- MENU MOBILE & BURGER --- */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1100; }
.bar { width: 28px; height: 3px; background: var(--beige); border-radius: 5px; transition: 0.4s; }

@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .logo { font-size: 1.3rem; }
    
    .menu-toggle { display: flex; }
    
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 80px; 
        left: 0; 
        width: 100%; 
        background: var(--dark); 
        padding: 2rem 0; 
        text-align: center; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active { display: flex; }
    .nav-links li { margin: 1.2rem 0; margin-left: 0; }
    .nav-links a { font-size: 1rem; }
    
    /* Animation Burger */
    .menu-toggle.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.open .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero { flex-direction: column; text-align: center; padding: 3rem 5%; }
    .hero-text h1 { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid .card:nth-child(n) { grid-column: span 1; }
    .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    .planning-table { font-size: 0.8rem; }
}

/* --- TOAST --- */
.toast { visibility: hidden; min-width: 250px; background-color: var(--dark); color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 5000; left: 50%; bottom: 30px; transform: translateX(-50%); border-bottom: 3px solid var(--accent); }
.toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* --- CORRECTIF CIBLÉ POUR SNOW.HTML (À AJOUTER À LA FIN) --- */

/* 1. Grille : 4 photos sur PC / 2 photos sur Mobile */
.photo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    padding: 20px 5% !important;
}

/* 2. Boutons : Fond doré, texte noir (lisible) */
.header-banner .cta-button, 
#lightbox .cta-button {
    background-color: #d4af37 !important; /* Ton doré */
    color: #1a1a1a !important;            /* Ton noir */
    padding: 12px 25px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border: none !important;
    display: inline-flex !important;
}

/* 3. Anti-Violet (Liens visités) */
.header-banner .cta-button:visited, 
#lightbox .cta-button:visited {
    color: #1a1a1a !important;
}

/* 4. Adaptation Mobile (768px) */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .photo-grid .card .img-container img {
        height: 180px !important;
    }
}