/* ==========================================================================
   VARIABLES CSS ET SYSTÈME DE DESIGN
   Définit les couleurs, polices et espacements globaux pour tout le site.
   ========================================================================== */
:root {
    /* PALETTE PRINCIPALE CERES */
    --color-green: #43B02A;
    /* Pantone 361 C - Vert Principal */
    --color-red: #CB2C30;
    /* Pantone 711 C - Rouge Principal */
    --color-darkgray: #584446;
    /* Pantone 438 C - Gris Foncé Sémantique */

    /* PALETTE SECONDAIRE ACCOMPAGNEMENT */
    --color-yellow: #FFCD00;
    /* Pantone 116 C - Accents Dorés */
    --color-lime: #C4D600;
    /* Pantone 382 C - Accents Frais */
    --color-black: #2C2A29;
    /* Process Black C - Texte Profond */
    --color-orange: #F68D2E;
    /* Pantone 715 C - Alertes / CTA secondaires */
    --color-cyan: #4EC3E0;
    /* Pantone 637 C - Informations */

    /* NEUTRES ET FONDS */
    --color-bg: #FFFFFF;
    /* Fond blanc pur pour la clarté */
    --color-text: #2C2A29;
    /* Texte principal */
    --color-text-light: #584446;
    /* Texte secondaire / légendes */
    --color-white: #FFFFFF;

    /* ALIAS SÉMANTIQUES (Héritage et Cohérence) */
    --color-primary: var(--color-green);
    --color-accent: var(--color-red);
    --color-dark: var(--color-darkgray);
    --color-secondary: #F8F9FA;
    /* Gris très clair pour sections */

    --font-serif: 'Vollkorn', serif;
    --font-sans: 'Lato', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
}

/* ==========================================================================
   RÉINITIALISATION ET STYLES DE BASE
   Nettoie les marges par défaut et définit les styles pour les balises HTML.
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    overflow-x: hidden;
    font-weight: 400;
    padding-top: 90px;
    /* Evite que le contenu soit caché sous le header fixe */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* ==========================================================================
   ELEMENTS DE FORMULAIRE GLOBAUX
   Styles de base pour les inputs, buttons et labels.
   ========================================================================== */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 176, 42, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ==========================================================================
   UTILITAIRES DE TYPOGRAPHIE ET BOUTONS
   Classes réutilisables pour les titres, textes et éléments interactifs.
   ========================================================================== */
.heading-xl {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.heading-lg {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.heading-md {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.text-sm {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    /* text-transform: uppercase; Removed per request */
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    background: var(--color-primary);
    /* Fond plein pour bouton principal */
    color: var(--color-white);
    margin-top: var(--spacing-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background: var(--color-accent);
    /* Passage au rouge Pantone 711 C au hover */
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(203, 44, 48, 0.2);
    /* Ombre teintée rouge */
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 176, 42, 0.4);
}

/* ==========================================================================
   HEADER ET NAVIGATION
   Contrindique le logo, les liens de navigation et les menus déroulants.
   ========================================================================== */
header {
    padding: 0.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    /* Main CERES Logo (Left) */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease;
    z-index: 10;
}

.logo-right {
    /* PROMES Logo (Right) */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform 0.3s ease;
    z-index: 10;
}

/* On Desktop: Center the Nav Links effectively */
@media (min-width: 1025px) {
    .nav-container {
        display: grid;
        grid-template-columns: 200px 1fr 200px;
        /* Fixed width for logos to ensure perfect centering of nav */
        align-items: center;
    }

    .nav-links {
        justify-content: center;
    }

    .logo-right {
        justify-self: end;
    }
}

.logo:hover .logo-img {
    transform: scale(1.04);
}

.logo-img {
    max-height: 75px;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
    border-radius: 8px;
    /* Rounded corners */
}

.logo-promes-img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    /* Rounded corners */
}

/* Common Tab Styles ... */

/* Common Tab Styles (Moved from about-styles.css to be global if needed, or ensuring availability) */
.tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.tabs li {
    margin: 0 1rem;
}

.tabs a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.tabs a:hover,
.tabs a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Generic Placeholder Styles */
.placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    color: #666;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: monospace;
}

.placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.8rem;
}

/* Logos side-by-side and rounded */
.logo-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.partner-logo.rounded {
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* ==========================================================================
   BOUTON HAMBURGER (MOBILE)
   Bouton visible uniquement sur petits écrans pour ouvrir le menu.
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

/* Navbar Hover Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    /* Vert CERES */
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
    transform: scale(1.05);
    letter-spacing: 1.2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   MENUS DÉROULANTS (DROPDOWNS)
   Logique d'affichage et animations pour les sous-menus.
   ========================================================================== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
    padding: 1rem 0;
    margin-top: 10px;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding-left: 1.8rem;
}

.dropdown-content a::after {
    display: none;
}

/* ==========================================================================
   SECTIONS DE CONTENU (HERO, ABOUT, GALLERY, ETC.)
   Structures spécifiques pour chaque partie visuelle de la page.
   ========================================================================== */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: var(--spacing-lg);
    background: #fcfcfc;
}

.hero-content {
    padding-left: calc((100vw - var(--container-width)) / 2 + var(--spacing-sm));
    padding-right: var(--spacing-md);
    /* Ensure nothing is cut off */
    max-width: 100%;
}

.hero-image {
    height: 90%;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-image img {
    height: 100%;
    width: 100%;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: white;
}

.about-header {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto var(--spacing-lg);
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.about-item img {
    height: 400px;
    width: 100%;
    margin-bottom: var(--spacing-sm);
    border-radius: 4px;
}

/* Evadez Vous */
.evadez {
    padding: var(--spacing-xl) 0;
    background-color: #f9f9f9;
}

.evadez-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.evadez-art img {
    max-height: 500px;
    margin: 0 auto;
    border-radius: 4px;
}

/* Reviews */
.reviews {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/A7_02555.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    transition: background-image 1s ease-in-out;
    /* Smooth background transition */
    position: relative;
    overflow: hidden;
}

.reviews-content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.reviews-content.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.reviews blockquote {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    max-width: 900px;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Offers Grid */
.offers {
    padding: var(--spacing-xl) 0;
    background: white;
}

.offers-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.offer-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
}

.offer-card img {
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.offer-card:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   BOUTON RETOUR EN HAUT (BACK TO TOP)
   Bouton flottant apparaissant après un défilement.
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:not(.show) {
    transform: translateY(20px);
}

.back-to-top:hover {
    background: var(--color-accent);
    /* Transition vers le rouge au hover */
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(203, 44, 48, 0.3);
}

footer {
    padding: 2rem 0 0;
    background-color: var(--color-green);
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.footer-logo {
    max-height: 100px;
    width: auto;
    align-self: flex-start;
    border-radius: 8px;
    /* Rounded corners */
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.hidden-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hidden-link:hover {
    transform: scale(1.02);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-info p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.footer-info i {
    margin-top: 0.3rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.footer-bottom {
    background-color: var(--color-darkgray);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-primary);
    text-decoration: underline dotted;
}

/* ==========================================================================
   SECTION CENTRES PÉRIPHÉRIQUES (Parcours Réussite)
   ========================================================================== */
.centers-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.centers-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.center-item {
    position: relative;
    width: 570px;
    /* Approx 15cm */
    height: 300px;
    /* Approx 8cm */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s;
    background-color: #f0f0f0;
}

/* Asymmetric Alignment for Desktop */
.center-item:nth-child(odd) {
    align-self: flex-start;
    margin-left: 5%;
}

.center-item:nth-child(even) {
    align-self: flex-end;
    margin-right: 5%;
}

.center-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.center-item.active {
    z-index: 2002;
    /* Above backdrop */
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.center-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.center-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.center-item:hover .center-overlay {
    opacity: 1;
}

.center-item.active .center-overlay {
    opacity: 0;
    /* Hide overlay when active/clicked */
}

.overlay-text {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.center-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Backdrop Blur Effect */
.center-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.center-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Info Panel (Right Side) */
/* Info Panel */
.center-info-panel {
    position: fixed;
    top: 50%;
    width: 300px;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-info-panel.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop Positioning Classes */
@media (min-width: 769px) {

    /* Panel on Right (for Left-aligned centers) */
    .center-info-panel.panel-right {
        right: 5%;
        left: auto;
        transform: translateY(-50%) translateX(50px);
        border-left: 5px solid var(--color-primary);
    }

    .center-info-panel.panel-right.active {
        transform: translateY(-50%) translateX(0);
    }

    /* Panel on Left (for Right-aligned centers) */
    .center-info-panel.panel-left {
        left: 5%;
        right: auto;
        transform: translateY(-50%) translateX(-50px);
        border-right: 5px solid var(--color-primary);
    }

    .center-info-panel.panel-left.active {
        transform: translateY(-50%) translateX(0);
    }
}

.panel-title {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.panel-content p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.panel-hint {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
}

/* Mobile Responsiveness for Panel */
@media (max-width: 768px) {
    .center-info-panel {
        top: auto;
        bottom: 0;
        right: 0 !important;
        left: 0 !important;
        width: 100%;
        transform: translateY(100%) !important;
        border-radius: 20px 20px 0 0;
        border-left: none !important;
        border-right: none !important;
        border-top: 5px solid var(--color-primary);
    }

    .center-info-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) !important;
    }

    /* Stack centers vertically on mobile */
    .centers-container {
        gap: 2rem;
    }

    .center-item {
        width: 100%;
        max-width: 90%;
        height: 250px;
        align-self: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ==========================================================================
   RÉPONSIVITÉ ET ADAPTATION MOBILE
   Définit les points de rupture pour tablettes et smartphones.
   ========================================================================== */

/* TABLETTES ET ÉCRANS MOYENS (≤ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        /* Increased width */
        max-width: 400px;
        /* Increased max-width */
        height: 100vh;
        background-color: var(--color-white);
        padding: 80px 1.5rem 2rem;
        /* Reduced padding */
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding: 1rem 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Ajustement des menus déroulants pour le mobile */
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        box-shadow: none;
        padding-left: 0;
        /* Removing large padding that might cause shift */
        margin-left: 0;
        display: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        background: transparent;
        animation: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        text-transform: none;
        white-space: normal;
        /* Force wrapping */
        display: block;
        /* Ensure it takes full width for wrapping */
        height: auto;
        overflow: visible;
        overflow-wrap: break-word;
        /* Ensure long words break */
        word-break: break-word;
        hyphens: auto;
    }
}

/* SMARTPHONES ET PETITS ÉCRANS (≤ 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .heading-xl {
        font-size: 2.8rem;
    }

    .heading-lg {
        font-size: 2.2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        height: auto;
        padding-top: 100px;
    }

    .hero-content {
        padding: var(--spacing-md);
        text-align: center;
    }

    .logo-img {
        max-height: 48px;
    }

    .about-gallery,
    .evadez-container,
    .offers-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustements responsive pour le bouton retour en haut */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* OVERLAY POUR LE MENU OUVERT */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* EMPÊCHER LE SCROLL QUAND LE MENU EST OUVERT */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   FORMULAIRE DE CONTACT (MINIMALISTE ET MODERNE)
   Styles pour la page contactez-nous.html.
   ========================================================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: #fcfcfc;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* ==========================================================================
   GLOBAL LINK FIXES
   Solution robuste pour supprimer les soulignements bleus par défaut
   tout en préservant le système de design et les effets de survol.
   ========================================================================== */

/* 1. Force la suppression du soulignement sur tous les états */
a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
}

/* 2. Définit la couleur par défaut et garde l'héritage flexible */
a {
    color: var(--color-text);
    /* #2C2A29 par défaut */
    transition: color 0.3s ease;
    /* Transition douce pour tous les liens */
    cursor: pointer;
}

/* 3. Gestion explicite du survol global (peut être surchargé par composants) */
a:hover {
    color: var(--color-primary);
    /* #43B02A au survol */
}

/* 4. Protection des liens spécifiques (Footer, Boutons, etc.) */

/* Les liens du footer doivent rester blancs par défaut */
.footer-column a,
.social-links a {
    color: var(--color-white);
}

.footer-column a:hover,
.social-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    /* Légère transparence au survol */
}

/* Les boutons gardent leur couleur de texte définie (souvent blanc) */
.btn,
.btn:hover {
    color: var(--color-white) !important;
    text-decoration: none !important;
}

/* Les liens de navigation gardent leur comportement spécifique défini plus haut */
.nav-links a {
    color: var(--color-text);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.contact-form input:hover,
.contact-form textarea:hover {
    border-bottom-color: var(--color-dark);
    transform: scale(1.02);
}

/* SECTION INFOS DE CONTACT */
.contact-info-section {
    padding: var(--spacing-xl) 0;
    background: #f9f9f9;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.info-card {
    padding: var(--spacing-lg);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    display: block;
}

.info-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
    font-family: var(--font-serif);
}

.info-card p {
    color: var(--color-dark);
    opacity: 0.8;
    font-size: 0.95rem;
}

.info-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    border-bottom-width: 2px;
}

.contact-form .form-footer {
    text-align: center;
    margin-top: var(--spacing-md);
}

.contact-form .btn {
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form .btn:hover {
    transform: scale(1.05);
    background: var(--color-accent);
    /* Rouge CERES */
    color: var(--color-white);
    border-color: var(--color-accent);
}

.contact-form .btn:active {
    transform: scale(0.98);
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(67, 176, 42, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(67, 176, 42, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(203, 44, 48, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(203, 44, 48, 0.2);
}

@media (max-width: 767px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
}

/* ==========================================================================
   PLACEHOLDER STYLES (TEMPORAIRE)
   Styles pour les zones de contenu en attente.
   ========================================================================== */
.placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    color: #666;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 1rem 0;
    font-style: italic;
    font-family: var(--font-sans);
}

.home-phrases-placeholder {
    background-color: #e9ecef;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
    color: var(--color-dark);
}

.video-section {
    /* Removed or reused if needed, but using specific class now */
    text-align: center;
    margin: 3rem 0;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-desc-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-desc-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.main-video {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    max-height: 80vh;
}

.video-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none !important;
}

.video-placeholder {
    background: #eee;
    color: #666;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-style: italic;
}

/* Carousel Placeholder */
.testimonials-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.carousel-item.placeholder {
    min-width: 300px;
    background: #fff;
    border: 1px solid #ddd;
}

/* Tab Navigation (Simple) */
.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: 2px solid #eee;
    gap: 1rem;
}

.tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none !important;
    color: var(--color-text);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tabs li a:hover,
.tabs li a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.sub-tab {
    display: none;
    /* JS needed for simple tab switch, or CSS target hack if no JS allowed */
}

/* We will rely on simple CSS :target or just show them for now since "no new JS" rule is strict unless specified.
   However, user said "Use tabs navigation... basic CSS for switching".
   Without JS, :target is the only way or radio buttons.
   Given the "no new JS" constraint, I will make them sections for now or add a tiny inline JS if absolutely needed.
   The prompt said "no new JS" but also "Use tabs navigation". I will implement the HTML structure for tabs
   and perhaps just display them sequentially if strictly no JS, or add a tiny helper script if allowed.
   "no new JS" usually implies complex logic. A simple tab switcher is often acceptable.
   But to be safe, I'll just style them as distinct sections for now or use the CSS :target trick.
   Actually, I can just layout them nicely vertically if tabs are too complex without JS.
   Let's stick to the requested HTML structure. */

/* Logos Grid */
.supporters-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.supporters-logos img,
.supporters-logos .placeholder-img {
    max-height: 80px;
    background: #eee;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Contact Specific placeholders */
.contact-photo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    background: #ccc;
}

/* ==========================================================================
   SECTION VID�O MODERNE (AJOUT R�CENT)
   ========================================================================== */
.video-section.modern {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.video-title {
    font-family: 'Vollkorn', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.video-caption {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
}

/* Video Section Specifics */
.video-wrapper video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Google Maps Container */
.map-container {
    width: 100%;
    margin: var(--spacing-md) 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-primary);
    /* Green accent as requested */
}

/* ==========================================================================
   INTERNATS MAPS GRID
   Layout specific for "ou-nous-trouver.html" internats section.
   ========================================================================== */
.internats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.internat-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    /* Default width for 3 items per row (approx 30-33% minus gap) */
    width: calc(33.333% - var(--spacing-md));
    display: flex;
    flex-direction: column;
}

/* Specific sizing for the bottom row (2 items) */
/* We target the last 2 items if there are exactly 5 items */
.internats-grid .internat-card:nth-last-child(1):nth-child(5),
.internats-grid .internat-card:nth-last-child(2):nth-child(4) {
    width: calc(50% - var(--spacing-md));
}

.internat-card iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.internat-name {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-dark);
    font-family: var(--font-sans);
    border-top: 1px solid #f0f0f0;
    background: #fcfcfc;
}

.internat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {

    .internat-card,
    .internats-grid .internat-card:nth-last-child(2):nth-child(4),
    .internats-grid .internat-card:nth-last-child(1):nth-child(5) {
        width: calc(50% - var(--spacing-md));
    }
}

@media (max-width: 600px) {

    .internat-card,
    .internats-grid .internat-card:nth-last-child(2):nth-child(4),
    .internats-grid .internat-card:nth-last-child(1):nth-child(5) {
        width: 100%;
    }
}