/* --- Variables & Reset --- */
:root {
    --primary-color: #F75029; 
    --secondary-color: #F49340; 
    --accent-color: #ee9b00; /* Orange/Or */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #333;
    --white: #fff;
    --font-family: 'arial', sans-serif;
    --header-height: 60px;
    /* 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);
}

.container {
    max-width: 1000px;
    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;

font-family: arial;
    transition: color 0.3s ease;
}

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

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

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    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: 300;
    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: 0px;           /* 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: 300;
    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: #F75029; /* 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(226, 97, 40, 0.4),rgba(0, 0, 0,0.9)), url('image/oli_accueil/BEIJING_2017.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 {
    max-width: 400px; /* Taille maximale du logo sur les grands Ã©crans */
    height: auto; /* Maintient le ratio d'aspect */
    margin:auto;
display: block; /* Pour centrer avec margin: auto */
    margin: 0 auto 0.5rem auto; /* Centre horizontalement et ajoute un espace en bas */
}

.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: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

/* --- 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.3s ease, box-shadow 0.3s ease;
    padding: 1rem; /* Added padding to the card itself for spacing */
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 180px; /* Reduced from 200px for smaller card size */
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem; /* Space below image */
}

.news-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0; /* Adjusted margin for context within card padding */
    color: var(--secondary-color); /* Changed H3 color to secondary */
}

.news-card p {
    font-size: 0.95rem;
    margin: 0 0 0.7rem 0; /* Adjusted margin for context within card padding */
    flex-grow: 1; /* Keep to push the button down */
}

.news-card a { /* Target the "Lire la suite" link */
    /* display: block; */ /* Keep block for margin auto centering */
    /* margin-top: auto; --> Removed, overridden by centering margin */

    /* --- New Button Styles --- */
    display: block; /* Needed for margin: auto centering */
    width: fit-content; /* Make button width fit its content */
    margin: 1rem auto 0 auto; /* Centering and adding top margin */
    padding: 10px 20px; /* Standard button padding */
    background-color: var(--secondary-color); /* Green background */
    color: var(--white); /* White text */
    border-radius: 5px; /* Rounded corners */
    font-weight: 600; /* Bold text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
    text-align: center; /* Ensure text is centered */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow like other buttons */
}

.news-card a:hover {
    background-color: #087a7d; /* Darker green on hover */
    color: var(--white);
    transform: translateY(-2px); /* Slight lift effect */
}

/* --- Style pour le bouton "Toutes nos actualitÃ©s" --- */
.btn-block-centered {
    display: block; /* Occupe toute la largeur disponible */
    width: fit-content; /* Ajuste la largeur au contenu */
    margin: 2rem auto 0 auto; /* Centre le bouton horizontalement et ajoute une marge supÃ©rieure */
    padding: 12px 30px; /* Un peu plus de padding pour le rendre plus visible */
    font-size: 1.1rem; /* Taille de police lÃ©gÃ¨rement augmentÃ©e */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Ombre un peu plus prononcÃ©e */
    transition: transform 0.2s ease, box-shadow 0.3s ease; /* Transitions douces */
}

.btn-block-centered:hover {
    transform: translateY(-3px) scale(1.02); /* LÃ©ger effet de surÃ©lÃ©vation */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Ombre plus marquÃ©e au survol */
}

/* Responsive pour le bouton centrÃ© */
@media (max-width: 768px) {
    .btn-block-centered {
        padding: 10px 25px; /* RÃ©duit un peu le padding sur mobile */
        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;
}
.categorie {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.categorie h3 {
    margin-bottom: 0.5rem;
}
.categorie a {
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* --- Horaires Section --- */
.horaires-filtres {
    display: flex;
    flex-wrap: wrap; /* Permet le passage Ã  la ligne sur petits Ã©crans */
    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; /* Permet le scroll horizontal si tableau trop large */
}

.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; /* LÃ©ger fond bleu au survol */
}

/* --- 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);
}
/* Ciblage spÃ©cifique pour le formulaire de contact s'il est directement dans .contact-form-container */
.contact-form-container .contact-form {
    max-width: none; /* Annule la largeur max si besoin dans ce conteneur */
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}


.inscription-form fieldset { /* Garder les fieldsets pour l'inscription */
     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 /* Ajout pour filtres si stylisÃ©s pareil */ {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical; /* Permet le redimensionnement 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; /* Taille naturelle */
    margin: 0;
    accent-color: var(--secondary-color); /* Couleur moderne pour la coche */
    transform: scale(1.2); /* Un peu plus grosse */
}
.checkbox-group label {
    margin: 0; /* Annule marge du label par dÃ©faut */
    font-weight: normal; /* Pas en gras pour les checkboxes */
}
.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(300px, 1fr));
    gap: 40px;
    align-items: start; /* Aligne le haut des colonnes */
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre icÃ´ne et texte */
}
.contact-info i.fas { /* Cible spÃ©cifiquement Font Awesome */
    color: var(--secondary-color);
    width: 20px; /* Largeur fixe pour alignement */
    text-align: center;
    flex-shrink: 0; /* EmpÃªche l'icÃ´ne de rÃ©trÃ©cir */
}

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

/* Style pour l'iframe Google Maps */
.contact-info iframe {
    display: block; /* EmpÃªche les espaces indÃ©sirables */
    width: 100%;   /* Prend toute la largeur de son conteneur */
    height: 350px;  /* Hauteur de la carte (ajustable) */
    border: 0;      /* Supprime la bordure par dÃ©faut */
    margin-top: 1rem; /* Espace au-dessus de la carte */
    border-radius: 4px; /* Coins lÃ©gÃ¨rement arrondis (optionnel) */
}

.key-figures-grid {
    display: grid;
    /* 3 colonnes Ã©gales */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* LÃ©ger ajustement de l'espace */
    /* Centrer le bloc de grille lui-mÃªme */
    margin: 2rem auto 0 auto;
    /* Limiter la largeur max pour un meilleur contrÃ´le du centrage */
    max-width: 850px; /* Ajustez si besoin */
    padding: 0 15px; /* Un peu d'espace sur les cÃ´tÃ©s */
}

.figure-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    text-align: center; /* Assure que le contenu interne est centrÃ© */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Ombre lÃ©gÃ¨re */
    /* --- Animation --- */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figure-card:hover {
    /* Effet de "lÃ©vitation" et lÃ©gÃ¨re mise Ã  l'Ã©chelle */
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Ombre plus prononcÃ©e */
    /* Optionnel: Changer la couleur de la bordure au survol */
    /* border-left-color: var(--accent-color); */
}


.figure-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.7rem; /* Espace ajustÃ© */
    display: inline-block; /* NÃ©cessaire si plusieurs icÃ´nes */
}

.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; /* AmÃ©liore lisibilitÃ© si texte sur 2 lignes */
}

/* --- Responsive pour la grille des chiffres clÃ©s --- */
@media (max-width: 768px) {
    .key-figures-grid {
        /* Passer Ã  2 colonnes sur tablette */
        grid-template-columns: repeat(2, 1fr);
        max-width: 550px; /* Ajuster la largeur max */
        gap: 20px;
    }
/* === AmÃ©lioration des paragraphes d'introduction sur les pages === */
    /* Ciblage combinÃ© pour la page Cours (p.text-center) ET la page Inscriptions (.page-title-section p) */
    #course-listing p.text-center, /* Style pour le paragraphe sur la page Cours */
    .page-title-section p        /* Style pour le paragraphe sur la page Inscriptions */
    {
        text-align: justify; /* Aligne le texte en mode justifiÃ© */
        
        /* Surcharge les max-width inline (pour le paragraphe de cours) et permet aux paragraphes de prendre toute la largeur disponible DANS le conteneur */
        max-width: none !important; 
        
        /* Ajoute explicitement un padding aux cÃ´tÃ©s pour garantir l'espacement par rapport aux bords de l'Ã©cran */
        padding-left: 20px; 
        padding-right: 20px; 
        
        /* Annule les marges 'auto' qui pourraient causer des conflits aprÃ¨s la surcharge de max-width */
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        /* Assure un espacement vertical suffisant en bas, identique Ã  ce qui Ã©tait appliquÃ© avant */
        margin-bottom: 2rem; 
    }

}

@media (max-width: 480px) {
    .key-figures-grid {
        /* Passer Ã  1 colonne sur mobile */
        grid-template-columns: 1fr;
        max-width: 300px; /* Ajuster la largeur max */
        gap: 15px;
    }
    /* Pas besoin de rÃ©initialiser nth-child(4) ici, le flux est dÃ©jÃ  linÃ©aire */
}

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

.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 { /* Petit soulignement */
    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 { /* Style pour les liens email/tÃ©l aussi */
    color: var(--light-gray);
    transition: color 0.3s ease;
}
.footer-col ul li a:hover,
.footer-col p a:hover {
    color: var(--accent-color);
    /* padding-left: 5px; Petit effet au survol - optionnel */
}


.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; /* Centre verticalement l'icÃ´ne */
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem; /* Assure une taille d'icÃ´ne cohÃ©rente */
}

.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: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }

    .main-nav {
        position: absolute;
        top: var(--header-height); /* Juste en dessous du header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0; /* CachÃ© par dÃ©faut */
        overflow: hidden; /* Cache le contenu qui dÃ©passe */
        transition: max-height 0.5s ease-out; /* Animation de dÃ©ploiement */
    }

     /* Classe ajoutÃ©e par JS pour ouvrir le menu */
    .main-nav.active {
        max-height: 400px; /* Hauteur suffisante pour le menu */
        border-top: 1px solid var(--light-gray); /* Ligne de sÃ©paration */
    }

    .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; /* Prend toute la largeur */
        padding: 10px 15px;
    }

    .mobile-menu-toggle {
        display: block; /* Visible sur mobile */
    }

    .horaires-filtres {
        flex-direction: column;
        align-items: stretch; /* Prend toute la largeur */
    }
    .horaires-filtres select, .horaires-filtres button {
        width: 100%;
        margin-left: 0; /* Annule marge sur le bouton */
        margin-bottom: 10px; /* Espace entre Ã©lÃ©ments */
    }

    .contact-container {
         grid-template-columns: 1fr; /* Une seule colonne */
    }
    /* S'assurer que le formulaire de contact a un peu d'espace */
    .contact-form-container {
        margin-top: 2rem;
    }
    .contact-form-container .contact-form {
        padding: 1.5rem; /* Ajouter un peu de padding sur mobile */
        background: var(--white); /* Fond blanc pour le distinguer sur mobile */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Ajouter l'ombre sur mobile */
        border-radius: 8px;
    }


    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
     .footer-col h4::after { /* Centre le soulignement */
        left: 50%;
        transform: translateX(-50%);
    }
     .social-links {
        margin-top: 1rem;
        text-align: center; /* Centre les icÃ´nes */
    }
    .footer-col p {
        text-align: center; /* Centre aussi l'adresse/tel/email */
    }
}
/* Style pour la liste des horaires du secrÃ©tariat AVEC GRID */
.secretariat-horaires.grid-layout {
    list-style: none;       /* Supprime les puces */
    padding-left: 15px;     /* <<< AJOUT: Petit espace avant les jours */
    margin-bottom: 1rem;    /* Espace aprÃ¨s la liste */
    display: grid;          /* Active le mode Grid */
    grid-template-columns: max-content 1fr; /* 2 colonnes */
    gap: 0 10px;            /* Espace horizontal entre les colonnes */
    align-items: baseline;  /* Aligne le texte sur la ligne de base */
}

.secretariat-horaires.grid-layout li {
    display: contents; /* Important: Fait que les <li> n'interfÃ¨rent pas avec la grille */
    margin-bottom: 0; /* Annule la marge ajoutÃ©e prÃ©cÃ©demment si elle existe */
}

.secretariat-horaires.grid-layout li strong {
     /* Pas besoin de min-width ici, la grille gÃ¨re l'alignement */
    margin-right: 0; /* Annule la marge si elle existait */
    /* grid-column: 1; /* Placement automatique, pas besoin de le spÃ©cifier */
}

.secretariat-horaires.grid-layout li span {
     /* grid-column: 2; /* Placement automatique */
}

/* Style optionnel pour Dimanche: FermÃ© */
.secretariat-horaires.grid-layout li:last-child span {
    /* Si vous voulez un style diffÃ©rent pour 'FermÃ©' */
    /* font-style: italic; */
    /* color: #888; */
}




/*/////////////////////section  pour la page apropos//////////////

/* Style pour centrer les boutons en bas de #structure-cours avec Flexbox */
#structure-cours .center-button-container {
    display: flex;            /* Active Flexbox */
    justify-content: center;  /* Centre les Ã©lÃ©ments horizontalement */
    align-items: center;      /* Centre les Ã©lÃ©ments verticalement (utile si hauteurs diff.) */
    flex-wrap: wrap;          /* Permet aux boutons de passer Ã  la ligne sur petit Ã©cran */
    gap: 15px;                /* CrÃ©e un espace de 15px ENTRE les boutons */
    margin-top: 2rem;         /* Conserve l'espace au-dessus des boutons */
    /* text-align: center; */ /* N'est plus nÃ©cessaire avec Flexbox pour le centrage */
}

/* Optionnel : S'assurer que les boutons n'ont pas de marge latÃ©rale parasite */
#structure-cours .center-button-container .btn {
    margin-left: 0;
    margin-right: 0;
}


/*///////////////Section pour les inscriptions ///////////////////

/* === AJOUTS POUR LA PAGE INSCRIPTIONS ET L'ACCORDÃ‰ON === */

/* Style optionnel pour le titre de la page */
.page-title-section h1 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Conteneur pour les Ã©lÃ©ments accordÃ©on */
.accordion-container {
    max-width: 800px; /* Limite la largeur pour lisibilitÃ© */
    margin: 2rem auto 0 auto; /* Centre le conteneur */
}

/* marge suplÃ©mentaire en fin de liste*/
.accordion-content .marge-list {
    margin-bottom: 1.5rem; /* Ajoute 1.5rem d'espace en dessous de cette liste */
}

/* Style du bouton accordÃ©on */
.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; /* Pour aligner titre et icÃ´ne */
    justify-content: space-between; /* Espace entre titre et icÃ´ne */
    align-items: center;
    border-radius: 5px 5px 0 0; /* Arrondi en haut */
    margin-top: 10px; /* Espace entre les boutons accordÃ©on */
}
.accordion-button:first-of-type {
     margin-top: 0; /* Pas d'espace avant le premier */
}


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

/* Style du bouton quand l'accordÃ©on est actif/ouvert */
.accordion-button.active {
    background-color: var(--secondary-color);
     border-radius: 5px 5px 0 0; /* Garder arrondi haut si actif */
}

/* IcÃ´ne chevron dans le bouton */
.accordion-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Rotation de l'icÃ´ne quand actif */
.accordion-button.active .accordion-icon {
    transform: rotate(180deg);
}

/* Style du panneau de contenu (cachÃ© par dÃ©faut) */
.accordion-content {
    padding: 0 20px; /* Espace intÃ©rieur horizontal */
    background-color: var(--white);
    max-height: 0; /* CachÃ© initialement */
    overflow: hidden; /* Cache le contenu qui dÃ©passe */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Animation fluide */
    border: 1px solid #ddd; /* Bordure lÃ©gÃ¨re */
    border-top: none; /* Pas de bordure haute car gÃ©rÃ©e par bouton */
    border-radius: 0 0 5px 5px; /* Arrondi en bas */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Ajoute le padding vertical seulement quand le contenu est visible */
.accordion-content.active {
    padding-top: 15px;
    padding-bottom: 20px;
     /* max-height sera dÃ©fini par JS */
}

/* Style pour les listes dans l'accordÃ©on */
.accordion-content ul,
.accordion-content ol {
    margin-left: 20px; /* Indentation standard */
    margin-bottom: 1rem;
}
.accordion-content ul li,
.accordion-content ol li {
    margin-bottom: 0.5rem; /* Espace entre items */
}

/* Style pour les liens dans le contenu accordÃ©on */
.accordion-content a {
    font-weight: 600;
     color: var(--secondary-color);
}
.accordion-content a:hover {
     color: var(--accent-color);
     text-decoration: underline;
}

/* Correction pour le bouton ROI dans l'accordÃ©on */
.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;
}

/* === Fin des ajouts pour Inscriptions === */

/* Assurez-vous que les styles du formulaire .inscription-form sont toujours valides */
/* Normalement, ils le sont car on utilise le mÃªme CSS */

/* Pour marquer le lien actif dans la nav */
.main-nav .nav-links a.active {
    color: var(--white);
    background-color: var(--secondary-color);
}


/*/////////////////////////////Section pour la page horaires/////////////

/* --- AmÃ©lioration des Filtres Horaires --- */
.horaires-filtres-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px 20px;
    /* background-color: var(--white); */ /* RetirÃ© si section parente n'a plus bg-light */
    /* padding: 1.5rem 2rem; */ /* GÃ©rÃ© par la section parente */
    border-radius: 8px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); */ /* Optionnel, peut Ãªtre sur la section */
    margin-bottom: 0; /* SupprimÃ© car la section suivante est juste aprÃ¨s */
}

.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);
}

/* Style personnalisÃ© MODERNISÃ‰ pour les <select> */
.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    padding: 12px 40px 12px 15px; /* Ajustement padding */
    border: 1px solid #ccc; /* Bordure initiale discrÃ¨te */
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white); /* Fond blanc standard */
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;

    /* FlÃ¨che personnalisÃ©e (couleur secondaire) */
    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;
}

/* Style au survol */
.filter-group select:hover {
    border-color: var(--secondary-color);
    background-color: #f8f8f8; /* LÃ©ger fond au survol */
}

/* Style au focus (utilisation du bleu secondaire) */
.filter-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--rgb-secondary), 0.3); /* Ombre focus bleue */
}

/* --- Suppression des styles pour les boutons de filtre --- */
/*
.filter-buttons {
    // ... rÃ¨gles supprimÃ©es ...
}
*/

/* --- Ajustement sections pour compacitÃ© --- */
#filtres-horaires.section {
    /* RÃ©duire l'espace EN DESSOUS des filtres */
    padding-top: 40px; /* Conserve un peu d'espace au-dessus */
    padding-bottom: 1rem; /* Espace rÃ©duit avant les rÃ©sultats */
    margin-bottom: 0; /* Colle Ã  la section suivante */
}

#resultats-horaires.section {
    /* RÃ©duire l'espace AU-DESSUS des rÃ©sultats */
    padding-top: 0; /* Colle Ã  la section prÃ©cÃ©dente */
    padding-bottom: 60px; /* Conserve l'espace en bas */
}

/* Message de rÃ©sultats positionnÃ© avant la table */
#results-message {
    text-align: center;
    margin-top: 0; /* RapprochÃ© des filtres */
    margin-bottom: 1.5rem; /* Espace avant la table */
    display: none; /* CachÃ© par dÃ©faut */
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 20px; /* Ã‰vite que le texte touche les bords sur petit Ã©cran */
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .horaires-filtres-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Les ajustements de padding des sections restent valides */
}

/* --- Style pour la bulle d'information (Tooltip) --- */
.horaires-table tbody tr.has-tooltip {
    position: relative; /* NÃ©cessaire pour positionner le pseudo-Ã©lÃ©ment */
}

/* Style de base de la bulle, cachÃ©e par dÃ©faut */
.horaires-table tbody tr.has-tooltip::after {
    content: attr(data-tooltip); /* RÃ©cupÃ¨re le texte du tooltip depuis l'attribut data-tooltip */
    position: absolute;
    bottom: 100%; /* Positionne la bulle au-dessus de la ligne */
    left: 50%;
    transform: translateX(-50%) translateY(-5px); /* Centre la bulle et ajoute un petit dÃ©calage vers le haut */
    background-color: #c0392b; /* Rouge vif pour l'attention */
    color: var(--white);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap; /* EmpÃªche le texte de la bulle de passer Ã  la ligne */
    z-index: 10; /* S'assure que la bulle est au-dessus des autres Ã©lÃ©ments */
    opacity: 0; /* CachÃ©e par dÃ©faut */
    visibility: hidden; /* CachÃ©e par dÃ©faut et non interactive */
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Petite flÃ¨che en dessous de la bulle */
.horaires-table tbody tr.has-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px); /* Positionne la flÃ¨che juste sous la bulle */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #c0392b transparent transparent transparent; /* FlÃ¨che pointant vers le haut */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 11; /* Au-dessus de la bulle elle-mÃªme */
}

/* Afficher la bulle et la flÃ¨che au survol de la ligne */
.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); /* LÃ©ger effet de "soulÃ¨vement" */
}

/* Pour rendre les liens des profs plus discrets s'ils sont dans une cellule */
.horaires-table td a {
    color: var(--secondary-color); /* Ou var(--primary-color) */
    text-decoration: none;
    font-weight: normal; /* Ou 600 si vous prÃ©fÃ©rez en gras */
}
.horaires-table td a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}








/* --- Styles Page VidÃ©os --- */

/* Section title styling (if needed, uses existing h1/p styles mostly) */
.page-title-section h1 {
    /* Uses existing h1 styles */
    color: var(--primary-color);
}
.page-title-section p {
     /* Uses existing p styles */
     color: var(--text-color);
     font-size: 1.1rem; /* Example adjustment */
}

/* Filter Controls Container */
.video-filters-section .filter-controls {
    display: flex;
    flex-direction: column; /* Stack button row and dropdown row */
    align-items: center;
    gap: 20px; /* Space between button row and dropdown row */
    margin-bottom: 20px; /* Space below filters */
}

/* Filter Buttons (Segmented Control - Adapted Style) */
.video-filter-buttons {
    display: inline-flex;
    border: 1px solid var(--secondary-color); /* Use secondary color for border */
    border-radius: 6px;
    overflow: hidden;
    background-color: transparent; /* No grey background */
}

.video-filter-buttons .filter-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500; /* Slightly bolder */
    padding: 8px 20px;
    border: none;
    background-color: transparent; /* Default transparent */
    color: var(--primary-color); /* Use primary color for text */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 1px solid var(--secondary-color); /* Separator */
    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); /* Light secondary color on hover */
    color: var(--secondary-color);
}

.video-filter-buttons .filter-btn.active {
    background-color: var(--secondary-color); /* Active state uses secondary color */
    color: var(--white); /* White text on active */
    font-weight: 600;
}

/* Filter Dropdowns */
.video-filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Reduced gap */
    justify-content: center;
    width: 100%;
    max-width: 600px; /* Limit width */
    margin: 0 auto; /* Center dropdowns */
}

.filter-dropdown-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align label left */
    flex-grow: 1; /* Allow dropdowns to grow */
    min-width: 180px; /* Minimum width */
}

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

/* Style for select dropdowns - use form styles */
.filter-select {
    /* Inherit from .form-group select if possible, or redefine */
    width: 100%;
    padding: 10px 12px; /* Consistent padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem; /* Consistent font size */
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* Remove default arrow */
     /* Custom arrow using secondary color */
     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; /* Space for the arrow */
}

.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); /* Use secondary color for focus glow */
}


/* Video Grid Layout */
.video-grid-container {
    /* Adjust padding if needed */
    padding-top: 0;
}

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

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

/* Video Card Styling */
.video-card {
    background-color: var(--white); /* Use white background */
    border-radius: 8px; /* Consistent radius */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    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; /* Keep fade-in */
     border: 1px solid #eee; /* Optional light border */
}

.video-card:hover {
    transform: translateY(-4px); /* Slightly less lift */
    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); /* Use light gray placeholder bg */
    border-bottom: 1px solid #eee; /* Separator line */
}

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

.video-info h3 {
    font-size: 1.05rem; /* Adjust size */
    font-weight: 600; /* Use standard bold */
    color: var(--primary-color); /* Use primary color for title */
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.video-meta strong {
    font-weight: 600; /* Bolder labels */
    color: var(--text-color); /* Standard text color */
}

/* Fade-in Animation (Keep as is) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments if needed for filters/cards */
@media (max-width: 550px) {
     .video-filter-dropdowns {
        flex-direction: column;
        align-items: stretch; /* Make dropdowns full width */
        gap: 15px;
        max-width: 90%; /* Slightly wider */
    }
    .filter-dropdown-container {
        min-width: unset; /* Remove min-width */
    }
     .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); /* Fond si une image ne charge pas */
    
    /* La clÃ© pour forcer le ratio paysage (16:9) */
    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;

    /* La clÃ© pour adapter les images sans les dÃ©former */
    object-fit: cover; /* Recadre l'image pour remplir l'espace */
    
    cursor: zoom-in; /* Indique que l'image est cliquable */
    transition: transform 0.3s ease;
}
.slider-wrapper img:hover {
    transform: scale(1.05); /* LÃ©ger zoom au survol */
}
/* ======================================= */


.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;
    
    /* Ã‰tat cachÃ© initial */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    /* Ã‰tat visible */
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Assure que l'image entiÃ¨re est visible */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    /* Animation de dÃ©ploiement */
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1); /* L'image atteint sa taille normale */
}

.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;
}
.lightbox-close:hover {
    transform: scale(1.1);
}
/* ======================================= */
/* --- NOUVEAUX STYLES POUR LE LIGHTBOX (Suite) --- */
.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);
    /* AJOUT DE LA TRANSITION POUR L'OPACITÃ‰ (fondu) */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease-in-out;
}

/* Classe pour l'animation de fondu lors du changement d'image */
.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; /* Doit Ãªtre au-dessus des autres Ã©lÃ©ments */
}
.lightbox-close:hover {
    transform: scale(1.1);
}

/* NOUVEAUX STYLES POUR LA NAVIGATION DU LIGHTBOX */
.lightbox-nav {
    position: fixed; /* FixÃ© par rapport Ã  la fenÃªtre */
    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; /* CachÃ© par dÃ©faut */
    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;
}
/* La classe 'active' pour le lightbox rend les boutons visibles */
.lightbox.active .lightbox-nav {
    display: flex;
}

/* Responsive pour la page ActualitÃ©s */
@media (max-width: 992px) {
    .actualite-card {
        flex-direction: column;
    }
    .image-slider-container {
        flex-basis: auto; /* Laisse le ratio gÃ©rer la hauteur */
    }
    .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); /* Couleur de fond (bleu sarcelle clair) */
    color: var(--white); /* Texte blanc pour contraste */
    padding: 50px 20px; /* Espacement intÃ©rieur gÃ©nÃ©reux */
    text-align: center;
    border-radius: 10px; /* Coins arrondis */
    margin-top: 50px; /* Espace au-dessus de cette section */
    margin-bottom: 50px; /* Espace en dessous de cette section */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Ombre portÃ©e */
}

.divers-section .divers-content h2 {
    font-size: 2.5rem; /* Taille du titre lÃ©gÃ¨rement ajustÃ©e */
    font-weight: 700;
    color: var(--white); /* S'assurer que la couleur est blanche */
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Ombre sur le texte */
}

.divers-section .divers-content p {
    font-size: 1.2rem; /* Texte explicatif lisible */
    margin: 0 auto 2rem auto;
    max-width: 800px; /* Limiter la largeur pour lisibilitÃ© */
    line-height: 1.7;
}

.divers-buttons-row {
    display: flex;
    flex-wrap: wrap; /* Permet aux boutons de passer Ã  la ligne sur mobile */
    justify-content: center; /* Centre les boutons horizontalement */
    gap: 20px; /* Espace entre les boutons */
    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; /* Espace entre texte et icÃ´ne */
    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;
}

/* Vous pouvez ajuster les couleurs des boutons si vous voulez qu'ils soient diffÃ©rents */
/* Par exemple, inverser primary/secondary pour qu'ils soient diffÃ©rents de ceux du CTA Inscriptions */
.divers-buttons-row .btn-secondary {
    background-color: var(--primary-color); /* Utilise la couleur primaire pour le "secondary" de cette section */
    color: var(--white);
}

.divers-buttons-row .btn-secondary:hover {
    background-color: #004452; /* Version plus foncÃ©e de primary */
}

.divers-buttons-row .btn-primary {
    background-color: var(--accent-color); /* Utilise la couleur accent pour le "primary" de cette section */
    color: var(--white);
}

.divers-buttons-row .btn-primary:hover {
    background-color: #d48800; /* Version plus foncÃ©e de accent */
}


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

/* Responsive pour la nouvelle section */
@media (max-width: 768px) {
    .divers-section .divers-content h2 {
        font-size: 2rem;
    }
    .divers-section .divers-content p {
        font-size: 1rem;
    }
    .divers-buttons-row {
        flex-direction: column; /* Empile les boutons sur les petits Ã©crans */
        gap: 15px;
    }
    .divers-buttons-row .btn {
        width: 100%; /* Les boutons prennent toute la largeur disponible */
        max-width: 300px; /* Limite la largeur max des boutons empilÃ©s */
        margin: 0 auto; /* Centrer les boutons empilÃ©s */
    }
}
/* --- 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.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.agenda-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.agenda-item.highlight {
    border-top: 5px solid var(--accent-color);
    background-color: var(--light-gray); /* Slightly different background for highlight */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.agenda-item.highlight:hover {
    border-color: var(--primary-color); /* Change border color on highlight hover */
}

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

.agenda-item.highlight .agenda-date {
    color: var(--primary-color);
}

.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.2;
    position: absolute;
    bottom: 15px;
    right: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.agenda-item.highlight .agenda-icon {
    color: var(--accent-color);
}
/* FIN SECTION AGENDA */

