/* --- Variables & Reset --- */
:root {
    --primary-color: #005f73; /* Bleu sarcelle foncé */
    --secondary-color: #0a9396; /* Bleu sarcelle plus clair */
    /* MODIFIÉ : Couleur plus jaune et vive pour le slogan et les accents */
    --accent-color: #ee9b00;
    --logo-color :  #ffc300;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #333;
    --white: #fff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
    /* Couleur RGB pour les ombres de focus */
    --rgb-secondary: 10, 147, 150;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Pour les liens internes */
    scroll-padding-top: var(--header-height); /* Décale l'ancre sous le header fixe */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-gray);
}
.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.bg-primary-dark {
    background-color: var(--primary-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; color: var(--secondary-color); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; /* Rendre le header collant */
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;         /* IMPORTANT: Utiliser Flexbox pour aligner l'image et le texte */
    align-items: center; /* IMPORTANT: Centre verticalement l'image et le texte */
    gap: 10px;           /* Espace entre le logo et le texte (ajustez si besoin) */
    text-decoration: none; /* Assure qu'il n'y a pas de soulignement sur l'image/texte */
}

.logo-image {
    height: 45px; /* Ajustez la hauteur du logo selon vos besoins */
                  /* Assurez-vous que la hauteur est inférieure à --header-height */
    width: auto;  /* Garde les proportions de l'image */
    display: block; /* Bonne pratique pour les images */
}

.logo-text {
    font-size: 1rem; /* Ajustez la taille du texte si nécessaire */
    /* Le font-weight et color sont hérités de .logo */
}


.main-nav .nav-links {
    list-style: none;
    display: flex;
}

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

.main-nav .nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active /* Ajouter une classe active si besoin avec JS */ {
    color: var(--white);
    background-color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none; /* Caché par défaut */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d48800; /* Version plus foncée de accent */
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #087a7d; /* Version plus foncée */
    color: var(--white);
    transform: translateY(-2px);
}

.btn-filter {
     background-color: var(--primary-color);
     color: var(--white);
     padding: 8px 15px;
     margin-left: 10px;
}
.btn-filter:hover {
     background-color: #004452;
     color: var(--white);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Style pour centrer le bouton dans la section "A propos" */
#apropos .center-button-container {
    text-align: center; /* Centre le contenu inline/inline-block (le bouton) */
    margin-top: 1.5rem; /* Ajoute un peu d'espace au-dessus du bouton */
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 95, 115, 0.7), rgba(0, 95, 115, 0.7)), url('image/implantations/ecole_centre.jpg') no-repeat center center/cover;
    height: calc(100vh - var(--header-height)); /* Prend la hauteur de l'écran moins le header */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

/* Styles pour le logo dans la section Hero */
.hero-logo {
    display: none; /* On cache l'ancien logo statique */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 4.4rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* --- NOUVEAU : Animation du Logo dans la section Hero --- */

.animated-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-align: center;
}

/* 1. Animation de l'icône du logo */
@keyframes logo-icon-enter {
    from {
        opacity: 0;
        transform: translate(-40px, 40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.animated-logo-icon {
    /* MODIFIÉ : Taille du logo encore augmentée pour un effet visible */
    max-width: 380px; 
    height: auto;
    margin-bottom: 0rem;
    opacity: 0; /* État initial : invisible */
    animation: logo-icon-enter 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 2. Animation du Slogan */
@keyframes slide-in-from-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated-slogan {
    font-family: 'Corinthia', cursive;
    /* MODIFIÉ : Taille du slogan encore augmentée */
    font-size: 3.5rem;
    color: var(--logo-color);
    margin-bottom: 0.5rem;
    opacity: 0; /* État initial : invisible */
    animation: slide-in-from-right 1s ease-out 0.5s forwards; /* Se lance après 0.8s */
}

/* 3. Animation du Titre principal */
@keyframes text-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.animated-title span {
    display: block; /* Pour mettre "Académie" et "d'Uccle" sur deux lignes */
    opacity: 0; /* État initial : invisible */
    animation: text-fade-in-up 0.8s ease-out forwards;
}

/* MODIFIÉ : Délais d'animation accélérés */
.animated-title span:nth-child(1) {
    animation-delay: 0.8s; 
}
.animated-title span:nth-child(2) {
    animation-delay: 0.9s; /* Garde un léger décalage pour un effet stylé */
}

/* 4. Animation des Disciplines */
@keyframes discipline-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-disciplines {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--logo-color);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.animated-disciplines span {
    display: inline-block;
    opacity: 0; /* État initial : invisible */
    animation: discipline-enter 0.6s ease-out forwards;
}

/* MODIFIÉ : Délais d'animation accélérés pour une apparition groupée */
.animated-disciplines span:nth-of-type(1) { animation-delay: 1.2s; } 
.animated-disciplines span.dot:nth-of-type(2) { animation-delay: 1.3s; } 
.animated-disciplines span:nth-of-type(3) { animation-delay: 1.4s; } 
.animated-disciplines span.dot:nth-of-type(4) { animation-delay: 1.5s; } 
.animated-disciplines span:nth-of-type(5) { animation-delay: 1.6s; } 

/* 5. Animation des Boutons */
.hero .cta-buttons .btn {
    position: relative; /* Indispensable pour l'animation 'top' */
    opacity: 0; 
    /* On utilise la nouvelle animation 'button-fade-in-up' */
    animation: button-fade-in-up 0.8s ease-out forwards; 
}

/* Délai pour le premier bouton */
.hero .cta-buttons .btn:nth-of-type(1) {
    animation-delay: 1.3s;
}

/* Délai pour le second bouton */
.hero .cta-buttons .btn:nth-of-type(2) {
    animation-delay: 1.4s;
}

/* Nouvelle animation spécifique pour les boutons qui n'utilise PAS transform */
@keyframes button-fade-in-up {
    from {
        opacity: 0;
        top: 20px; /* On bouge la position au lieu de faire une transformation */
    }
    to {
        opacity: 1;
        top: 0;
    }
}

/* --- Actualités Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    padding: 1rem;
}

.news-card.is-visible:hover { 
    transform: translateY(-20px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
    transition-delay: 0s !important;
}

.news-card img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

.news-card p {
    font-size: 0.95rem;
    margin: 0 0 0.7rem 0;
    flex-grow: 1;
}

.news-card a {
    display: block;
    width: fit-content;
    margin: 1rem auto 0 auto;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-card a:hover {
    background-color: #087a7d;
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Style pour le bouton "Toutes nos actualités" --- */
.btn-block-centered {
    display: block;
    width: fit-content;
    margin: 2rem auto 0 auto;
    padding: 12px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-block-centered:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive pour le bouton centré */
@media (max-width: 768px) {
    .btn-block-centered {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* --- Cours Section --- */
.cours-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 2rem;
}

/* --- Horaires Section --- */
.horaires-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    align-items: center;
}

.horaires-filtres select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    min-width: 150px;
}

.horaires-table-container {
    overflow-x: auto;
}

.horaires-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.horaires-table th, .horaires-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.horaires-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.horaires-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.horaires-table tbody tr:hover {
    background-color: #e0f7fa;
}

/* --- Formulaires (Inscriptions & Contact) --- */
.inscription-form, .contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.contact-form-container .contact-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}


.inscription-form fieldset {
     border: 1px solid #ccc;
     border-radius: 4px;
     padding: 1.5rem;
     margin-bottom: 1.5rem;
}
.inscription-form legend {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}

.form-group small {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 0.3rem;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--secondary-color);
    transform: scale(1.2);
}
.checkbox-group label {
    margin: 0;
    font-weight: normal;
}
.form-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: flex-start; 
    justify-items: center;
}

.contact-info {
    max-width: 450px;
    width: 100%;
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info i.fas {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-info h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
    margin-top: 1rem;
    border-radius: 4px;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 450px; 
    display: flex;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.key-figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 2rem auto 0 auto;
    max-width: 850px;
    padding: 0 15px;
}

.figure-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.figure-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
}

.figure-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    display: inline-block;
}

.figure-card .number {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--secondary-color);
     display: block;
     margin-bottom: 0.3rem;
 }

.figure-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

#course-listing p.text-center,
.page-title-section p
{
    text-align: justify;
    max-width: none !important; 
    padding-left: 20px; 
    padding-right: 20px; 
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2rem; 
}

/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a,
.footer-col p a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}
.footer-col ul li a:hover,
.footer-col p a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--dark-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 850px) {
     .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
     }
     .contact-map {
         min-height: 350px;
     }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 3.1rem; }

    .hero .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .hero .cta-buttons .btn {
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }    
    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .main-nav.active {
        max-height: 500px;
        border-top: 1px solid var(--light-gray);
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .main-nav .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .main-nav .nav-links a {
        display: block;
        padding: 10px 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .horaires-filtres {
        flex-direction: column;
        align-items: stretch;
    }
    .horaires-filtres select, .horaires-filtres button {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .secretariat-horaires.grid-layout {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-container {
        margin-top: 2rem;
    }
    .contact-form-container .contact-form {
        padding: 1.5rem;
        background: var(--white);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
     .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
     .social-links {
        margin-top: 1rem;
        text-align: center;
    }
    .footer-col p {
        text-align: center;
    }
    
    .key-figures-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 550px;
        gap: 20px;
    }
    
    .divers-buttons-row {
        flex-direction: column;
        gap: 15px;
    }
    .divers-buttons-row .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .key-figures-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 15px;
    }
}

.secretariat-horaires.grid-layout {
    list-style: none;
    padding-left: 15px;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0 10px;
    align-items: baseline;
}

.secretariat-horaires.grid-layout li {
    display: contents;
    margin-bottom: 0;
}

.secretariat-horaires.grid-layout li strong {
    margin-right: 0;
}

#structure-cours .center-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 2rem;
}

#structure-cours .center-button-container .btn {
    margin-left: 0;
    margin-right: 0;
}

/* === AJOUTS POUR LA PAGE INSCRIPTIONS ET L'ACCORDÉON === */
.page-title-section h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.accordion-container {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.accordion-content .marge-list {
    margin-bottom: 1.5rem;
}

.accordion-button {
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
    margin-top: 10px;
}
.accordion-button:first-of-type {
     margin-top: 0;
}

.accordion-button:hover {
    background-color: var(--secondary-color);
}

.accordion-button.active {
    background-color: var(--secondary-color);
     border-radius: 5px 5px 0 0;
}

.accordion-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.accordion-button.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-content.active {
    padding-top: 15px;
    padding-bottom: 20px;
}

.accordion-content ul,
.accordion-content ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}
.accordion-content ul li,
.accordion-content ol li {
    margin-bottom: 0.5rem;
}

.accordion-content a {
    font-weight: 600;
     color: var(--secondary-color);
}
.accordion-content a:hover {
     color: var(--accent-color);
     text-decoration: underline;
}

.accordion-content a.btn.btn-secondary,
.accordion-content a.btn.btn-secondary:visited {
    color: var(--white);
    text-decoration: none;
}

.accordion-content a.btn.btn-secondary:hover {
    color: var(--white);
    text-decoration: none;
}

.main-nav .nav-links a.active {
    color: var(--white);
    background-color: var(--secondary-color);
}


/* --- Amélioration des Filtres Horaires --- */
.horaires-filtres-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px 20px;
    border-radius: 8px;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.filter-group label {
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230a9396'%3E%3Cpath fill-rule='evenodd' d='M8 11.5a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L8 10.293l3.646-3.647a.5.5 0 0 1 .708-.708l-4 4A.5.5 0 0 1 8 11.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 16px;
}

.filter-group select:hover {
    border-color: var(--secondary-color);
    background-color: #f8f8f8;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--rgb-secondary), 0.3);
}

@media (max-width: 768px) {
    .horaires-filtres-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

#filtres-horaires.section {
    padding-top: 40px;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

#resultats-horaires.section {
    padding-top: 0;
    padding-bottom: 60px;
}

#results-message {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 20px;
}

.horaires-table tbody tr.has-tooltip {
    position: relative;
}

.horaires-table tbody tr.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: #c0392b;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.horaires-table tbody tr.has-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #c0392b transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 11;
}

.horaires-table tbody tr.has-tooltip:hover::after,
.horaires-table tbody tr.has-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.horaires-table td a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: normal;
}
.horaires-table td a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Styles Page Vidéos --- */
.video-filters-section .filter-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.video-filter-buttons {
    display: inline-flex;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: transparent;
}

.video-filter-buttons .filter-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border: none;
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 1px solid var(--secondary-color);
    white-space: nowrap;
    line-height: 1.4;
}

.video-filter-buttons .filter-btn:first-child {
    border-left: none;
}

.video-filter-buttons .filter-btn:hover:not(.active) {
    background-color: rgba(var(--rgb-secondary), 0.1);
    color: var(--secondary-color);
}

.video-filter-buttons .filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.video-filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.filter-dropdown-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 180px;
}

.filter-dropdown-container label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230a9396'%3E%3Cpath fill-rule='evenodd' d='M8 11.5a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L8 10.293l3.646-3.647a.5.5 0 0 1 .708-.708l-4 4A.5.5 0 0 1 8 11.5z'/%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 12px center;
     background-size: 16px 16px;
     padding-right: 40px;
}

.filter-select:hover {
    border-color: var(--secondary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(10, 147, 150, 0.3);
}

.video-grid-container {
    padding-top: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1rem;
}

.video-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
     border: 1px solid #eee;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--light-gray);
    border-bottom: 1px solid #eee;
}

.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.8rem;
    color: #555;
    margin-top: auto;
    line-height: 1.5;
}

.video-meta span {
    display: block;
    margin-bottom: 3px;
}

.video-meta strong {
    font-weight: 600;
    color: var(--text-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 550px) {
     .video-filter-dropdowns {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        max-width: 90%;
    }
    .filter-dropdown-container {
        min-width: unset;
    }
     .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* --- STYLES PAGE ACTUALITÉS --- */

.actualites-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 2rem;
}

.actualite-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.actualite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 95, 115, 0.15);
}

.date-watermark {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 95, 115, 0.07);
    z-index: 1;
    user-select: none;
    text-transform: uppercase;
}

/* === MODIFICATIONS POUR LE SLIDER === */
.image-slider-container {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-gray);
    aspect-ratio: 16 / 9; 
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.slider-wrapper img:hover {
    transform: scale(1.05);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.slider-btn.prev {
    left: 10px;
}
.slider-btn.next {
    right: 10px;
}

.actualite-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 5;
}
.actualite-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
}
.actualite-content p {
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}
.actualite-content .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- NOUVEAUX STYLES POUR LE LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease-in-out;
}

.lightbox-content.fade-out {
    opacity: 0;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
    z-index: 10001;
}
.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 70px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.lightbox-nav.prev {
    left: 20px;
}
.lightbox-nav.next {
    right: 20px;
}
.lightbox.active .lightbox-nav {
    display: flex;
}

@media (max-width: 992px) {
    .actualite-card {
        flex-direction: column;
    }
    .image-slider-container {
        flex-basis: auto;
    }
    .actualite-content {
        padding: 25px;
    }
    .date-watermark {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }
}
@media (max-width: 480px) {
    .actualite-content h3 {
        font-size: 1.5rem;
    }
    .date-watermark {
        font-size: 1.5rem;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }
}

/* === STYLES POUR LA SECTION DIVERS === */
.divers-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.divers-section .divers-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.divers-section .divers-content p {
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
    max-width: 800px;
    line-height: 1.7;
}

.divers-buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.divers-buttons-row .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.divers-buttons-row .btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.divers-buttons-row .btn-secondary:hover {
    background-color: #004452;
}

.divers-buttons-row .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.divers-buttons-row .btn-primary:hover {
    background-color: #d48800;
}


.divers-buttons-row .btn i {
    font-size: 1.2rem;
}

/* --- DEBUT SECTION AGENDA --- */
.agenda-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.agenda-item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    border-top: 5px solid var(--primary-color);
}

.agenda-item.is-visible:hover {
    transform: translateY(-20px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
    border-color: var(--secondary-color);
    transition-delay: 0s !important;
}

.agenda-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 1rem 0;
}

.agenda-event {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.agenda-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
    opacity: 0.15;
    position: absolute;
    bottom: 15px;
    right: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.agenda-item:hover .agenda-icon {
    opacity: 0.3;
    transform: scale(1.1);
}

/* 1. STYLE POUR LES ALERTES (Suspensions de cours, Jours Fériés - Anciennement .highlight) */
.agenda-item.agenda-alert {
    border-top: 5px solid var(--accent-color);
    background-color: #fffaf0;
    box-shadow: 0 6px 20px rgba(238, 155, 0, 0.2);
}

.agenda-item.agenda-alert:hover {
    border-color: var(--primary-color);
}

.agenda-item.agenda-alert .agenda-date {
    color: #c77c00;
}

.agenda-item.agenda-alert .agenda-title {
    color: var(--primary-color);
}

.agenda-item.agenda-alert .agenda-icon {
    color: var(--accent-color);
    opacity: 0.2;
}
.agenda-item.agenda-alert:hover .agenda-icon {
    opacity: 0.4;
}

/* 2. STYLE POUR CONCERTS & AUDITIONS (Nouveau) */
.agenda-item.agenda-event {
     border-top: 5px solid var(--secondary-color);
     background-color: #e6f7ff;
     box-shadow: 0 6px 20px rgba(10, 147, 150, 0.1);
}

.agenda-item.agenda-event:hover {
    border-color: var(--primary-color);
}

.agenda-item.agenda-event .agenda-date {
    color: #087a7d;
}

.agenda-item.agenda-event .agenda-title {
    color: var(--primary-color);
}

.agenda-item.agenda-event .agenda-icon {
    color: var(--secondary-color);
    opacity: 0.3;
}

/* --- NOUVELLE SECTION : Nouveau Professeur de Danse Classique --- */
#new-teacher-promo {
    padding-top: 40px; 
    padding-bottom: 40px;
}

.new-teacher-cta-content {
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.teacher-image-wrapper {
    flex: 1 1 40%;
    min-width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
}

.teacher-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.teacher-image-wrapper img:hover {
    transform: scale(1.05);
}

.teacher-content {
    flex: 1 1 60%;
    min-width: 300px;
    padding: 30px;
    text-align: center;
    background-color: var(--white);
}

.teacher-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.teacher-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.teacher-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.teacher-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.teacher-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.teacher-buttons .btn-inscription {
    background-color: var(--accent-color);
    color: var(--white);
}
.teacher-buttons .btn-inscription:hover {
    background-color: #d48800;
    transform: translateY(-2px);
}

.teacher-buttons .btn-contact {
    background-color: var(--secondary-color);
    color: var(--white);
}
.teacher-buttons .btn-contact:hover {
    background-color: #087a7d;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .new-teacher-cta-content {
        flex-direction: column;
    }
    .teacher-image-wrapper, .teacher-content {
        flex: 1 1 100%;
        min-width: unset;
    }
    .teacher-content {
        padding: 25px 20px;
    }
    .teacher-content h2 {
        font-size: 2rem;
    }
    .teacher-content h3 {
        font-size: 1.5rem;
    }
    .teacher-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .teacher-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- NOUVELLE SECTION : Alerte importante --- */
.important-alert-banner {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

.important-alert-banner h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.important-alert-banner p {
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.01); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
}

@media (max-width: 768px) {
    .important-alert-banner h2 {
        font-size: 1.8rem;
    }
    .important-alert-banner p {
        font-size: 1rem;
    }
}

/* --- DEBUT REVAMPED Section Cours --- */
.cours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.cours-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    border: 1px solid #e0e0e0;
}

.cours-card.is-visible:hover {
    transform: translateY(-20px);
    box-shadow: 0 15px 25px rgba(0, 95, 115, 0.18);
    transition-delay: 0s !important;
}

.cours-card-image {
    height: 200px;
    overflow: hidden;
}

.cours-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cours-card:hover .cours-card-image img {
    transform: scale(1.05);
}

.cours-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cours-card-content h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.cours-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cours-card-link {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s, transform 0.3s;
}

.cours-card-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* --- DEBUT ANIMATION FADE-IN AU SCROLL (NOUVELLE VERSION CORRIGÉE) --- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 1s ease-out, transform 1s ease-out, visibility 0s 1s;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-on-scroll.fade-in--simple {
    transform: translateY(0);
}

/* --- DEBUT Animation en cascade pour les cartes --- */
.agenda-list .agenda-item.is-visible:nth-child(2),
.news-grid .news-card.is-visible:nth-child(2),
.cours-grid .cours-card.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}

.agenda-list .agenda-item.is-visible:nth-child(3),
.news-grid .news-card.is-visible:nth-child(3),
.cours-grid .cours-card.is-visible:nth-child(3) {
    transition-delay: 0.4s;
}

.agenda-list .agenda-item.is-visible:nth-child(4) {
    transition-delay: 0.6s;
}

#actualites-page .container > p.is-visible {
    transition-delay: 0.2s;
}

.page-title-section > p.is-visible {
    transition-delay: 0.2s;
}

/* --- ANIMATIONS PAGE ARAAMU --- */
.page-intro-section .araamu-logo.is-visible {
    transition-delay: 0.1s;
}
.page-intro-section h1.is-visible {
    transition-delay: 0.2s;
}
.page-intro-section .subtitle.is-visible,
.page-intro-section em.is-visible {
    transition-delay: 0.4s;
}
.page-intro-section p:last-of-type.is-visible {
    transition-delay: 0.6s;
}

.bulletin-grid .bulletin-card.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}
.bulletin-grid .bulletin-card.is-visible:nth-child(3) {
    transition-delay: 0.4s;
}

.team-grid .team-member-card.is-visible:nth-child(2) {
    transition-delay: 0.15s;
}
.team-grid .team-member-card.is-visible:nth-child(3) {
    transition-delay: 0.3s;
}
.team-grid .team-member-card.is-visible:nth-child(4) {
    transition-delay: 0.45s;
}
.team-grid .team-member-card.is-visible:nth-child(5) {
    transition-delay: 0.6s;
}
.team-grid .team-member-card.is-visible:nth-child(6) {
    transition-delay: 0.75s;
}


/* ======================================================== */
/*  STYLES POUR LA SECTION STATISTIQUES (V2 - Cartouches)   */
/* ======================================================== */

#statistiques {
    padding-top: 60px;
    padding-bottom: 80px;
}

.stats-wrapper-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- 1. Gros Compteur Élèves --- */
.main-counter-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.counter-box {
    background: var(--white);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.main-number {
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-feature-settings: "tnum"; /* Chiffres fixes pour ne pas vibrer */
    margin-bottom: 5px;
}

.main-label {
    font-size: 1.3rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.sub-counter {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.sub-counter span {
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- 2. Grille des Cartouches --- */
.secondary-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.stat-card {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-icon-wrapper {
    background-color: rgba(238, 155, 0, 0.1); /* Accent color très clair */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    font-feature-settings: "tnum";
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 5px;
}
.stat-sublabel {
    font-size: 0.8rem;
    color: #777;
}


/* --- ANIMATION DELAYS (Cascade visuelle) --- */
/* Ces délais doivent correspondre aux setTimeout du JS */

/* Le gros compteur apparaît tout de suite */
.main-counter-container.fade-in-on-scroll.is-visible {
    transition-delay: 0s;
}

/* Cartouche 1 : Profs */
.secondary-stats-grid .stat-card:nth-child(1).fade-in-on-scroll.is-visible {
    transition-delay: 0.2s;
}

/* Cartouche 2 : Périodes */
.secondary-stats-grid .stat-card:nth-child(2).fade-in-on-scroll.is-visible {
    transition-delay: 0.4s;
}

/* Cartouche 3 : Implantations */
.secondary-stats-grid .stat-card:nth-child(3).fade-in-on-scroll.is-visible {
    transition-delay: 0.6s;
}


/* Responsive */
@media (max-width: 850px) {
    .secondary-stats-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        max-width: 400px;
    }
    .stat-card {
        justify-content: flex-start;
    }
    .main-number {
        font-size: 4rem;
    }
}