/* 
Table des matières

    1. Reset
    2. Variables
    3. Animations
    4. Base Styles
    5. Components
    6. Header
    7. Navigation
    8. Footer
    9. Pages
*/


/* ==========================================================================
    Reset
   ========================================================================== */

/* Réinitialisation des styles par défaut pour une cohérence cross-browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;        /* Supprime les puces des listes */
    border: 0;              /* Supprime les bordures par défaut */
    font: inherit;          /* Hérite des polices */
}


/* ==========================================================================
    Variables CSS
   ========================================================================== */

/* Palette de couleurs, dégradés, ombres et transitions pour la cohérence */

:root {
    /* Couleurs principales */
    --primary-color: #38b2ac;      /* Couleur primaire teal */
    --secondary-color: #2d7676;    /* Couleur secondaire teal foncé */
    --accent-color: #4fd1c5;       /* Couleur d'accent teal clair */

    /* Couleurs de texte */
    --text-dark: #1a4d4d;          /* Texte foncé principal */
    --text-gray: #4a5568;          /* Texte gris secondaire */
    --text-light: #8d99ae;         /* Texte léger pour contrast faible */

    /* Arrière-plans */
    --bg-light: #f8fafc;           /* Fond clair pour sections */
    --bg-white: #ffffff;           /* Fond blanc pur */

    /* Dégradés */
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-bar: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --gradient-hover: linear-gradient(135deg, var(--secondary-color), var(--primary-color));

   /* Ombres */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre standard */
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15); /* Ombre au survol */

    /* Transitions */
    --transition: all 0.3s ease;

    /* Typographie */
    --font-size-base: 1rem; /* Taille de police de base */
    --font-size-lg: 1.25rem; /* Taille pour titres ou textes larges */
    --font-size-xl: 2rem; /* Taille pour grands titres */
    --font-size-xxl: 3rem; /* Taille pour grands titres */

   /* Échelle d'espacements (du plus petit au plus grand) */
    --spacing-sm: 0.5rem;       /* Très petit espacement */
    --spacing-md: 1rem;         /* Espacement moyen */
    --spacing-md-half: 1.5rem;  /* Entre moyen et grand */
    --spacing-lg: 2rem;         /* Grand espacement */
    --spacing-xl: 3rem;         /* Très grand espacement */
    --spacing-xxl: 4rem;        /* Espacement extra large */
}


/* ==========================================================================
    Animations
   ========================================================================== */

/* Animation d'entrée depuis le haut */


.animate__fadeInDown {
    animation: fadeInDown 0.8s ease;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'entrée depuis le bas */
.animate__fadeInUp {
    animation: fadeInUp 0.8s ease;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================================================
    Components
   ========================================================================== */

/* Section principale (ex. : la première section de la page) */

.main-section {
    max-width: 1200px;
    text-align: center;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.main-section h1 {
    font-size: var(--font-size-xl);
    font-weight: 700; 
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    position: relative;
    animation: fadeInDown 0.8s ease;
}

/* Barre de soulignement décorative sous le titre */
.main-section h1::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--gradient-bar);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.main-section p {
    font-size: var(--font-size-lg);
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    animation: fadeInDown 0.8s ease 0.2s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/* ==========================================================================
    # COMPONENTS - BUTTONS
   ========================================================================== */
.btn {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Spacing & Sizing */
    padding: var(--spacing-md) var(--spacing-xl);
    margin: var(--spacing-sm) 0;
    border-radius: 50px;

    /* Typography */
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--bg-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    /* Visuals */
    background: var(--gradient-main);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;

    /* Interaction */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, outline 0.2s ease, scale 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.btn:hover,
.btn:focus {
    /* Effet de survol : léger soulèvement et échelle subtile */
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--gradient-hover); /* Utilisation d'un dégradé différent pour le survol */
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:hover i,
.btn:focus i {
    /* Animation de l'icône au survol */
    transform: translateX(3px);
}

/* Effet de survol : vague lumineuse */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::after,
.btn:focus::after {
    left: 100%;
}

/* Accessibilité : Gestion des animations réduites */
/* @media (prefers-reduced-motion: reduce) {
    .btn {
        transition: background 0.2s ease, outline 0.2s ease;
    }
    .btn:hover,
    .btn:focus {
        transform: none;
        box-shadow: var(--shadow);
    }
    .btn i {
        transition: none;
    }
    .btn::after {
        display: none;
    }
} */

/* ==========================================================================
    # COMPONENTS -  Location Section
   ========================================================================== */


/* Section Localisation */
.location-card {
    display: flex;
    gap: var(--spacing-lg);
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.location-info {
    flex: 1;
}

.location-info h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.location-info p {
    color: var(--text-gray);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-info i {
    font-size: 1.3rem;
}

.transport-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.transport-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-gray);
    font-size: var(--font-size-base);
}

.transport-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.location-map {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}


/* ==========================================================================
    # COMPONENTS - CARDS
   ========================================================================== */

/* Ex : index.php  ===> Nos services  */
.card {
    /* Box Model */
    padding : var(--spacing-lg);
    min-height: 360px; /* Hauteur minimale pour uniformité */
    overflow: hidden;
    border-radius: 12px;

    /* Layout & Positioning */
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;

    /* Visuals */
    background: var(--bg-white);
    box-shadow: var(--shadow);

    /* Transitions */
    transition: var(--transition);
}

/* Barre colorée en haut de la carte */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-bar);
    transition: height 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card:hover::before {
    height: 8px;
}

/* Icône dans la carte */
.card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom : var(--spacing-md-half);
    transition: transform 0.3s ease;
}
.card:hover .icon {
    transform: scale(1.1);
}
.card h3 {
    font-size: var(--spacing-md-half);
    color: var(--text-dark);  
    margin-bottom: var(--spacing-md);
}

.card p {
    color : var(--text-gray);
    font-size: var(--font-size-base);
    flex-grow: 1; /* Permet au paragraphe de prendre l’espace disponible */
    margin-bottom: var(--spacing-md-half);
}
.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}


/* ==========================================================================
    # COMPONENTS - SECTION HEADER
   ========================================================================== */

/**
    * En-tête de section standardisé
    * - Centrage du contenu
    * - Style de titre avec diviseur
    * - Réutilisable dans tout le site
*/


.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    border-radius: 2px;    
    background: var(--gradient-bar);
    margin: 0 auto;
    animation: grow 0.5s ease;
}

@keyframes grow {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}


/* Info Card */
.info-card {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md-half);
    border-radius: 0 8px 8px 0;
    text-align: left;

    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
}

.info-card p {
    font-size: var(--font-size-base);
    margin: 0;
    color: var(--text-gray);

}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}



/* ==========================================================================
    # COMPONENTS - MAP
   ========================================================================== */


/* Carte ou iframe pour afficher une carte */
.map {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow);
}



/* ==========================================================================
    # COMPONENTS - REFERENT CARD
   ========================================================================== */


/* Carte pour afficher les informations d’un référent (photo, missions, contact) */

.referent-card {
    /* Layout */
    display: flex;
    position: relative;
    overflow: hidden;

    /* Spacing */
    margin: var(--spacing-xl) 0;
    border-radius: 16px;

    /* Visuals */
    background: var(--bg-white);
    box-shadow: var(--shadow);

    /* Interaction */
    transition: var(--transition);
}

.referent-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Conteneur pour la photo ou icône du référent */
.referent-photo {
    width: 240px;
   /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
     /* Spacing */
    padding: var(--spacing-lg) var(--spacing-md);
    /* Visuals */
    background: var(--gradient-main);
}

/* Cercle pour la photo ou icône */
.photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

/* Icône dans la photo */
.referent-photo i {
    font-size: 5rem;
    color: var(--primary-color);
}

/* Badge pour le rôle du référent */
.referent-badge {
    background: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    margin-top: var(--spacing-md-half);
    box-shadow: var(--shadow);
}

.referent-badge span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conteneur des informations du référent */
.referent-info {
    flex: 1;
    padding: var(--spacing-lg);
}

/* Titre du référent */
.referent-header h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

/* Sous-titre ou rôle */
.referent-title {
     /* Layout */
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md-half);
    /* Typography */
    font-size: var(--font-size-base);
    color: var(--text-light);

    /* Visuals */
    background: var(--bg-light);
    border-radius: 50px;
}

/* Grille des missions */
.referent-missions {
    /* Layout - Grid */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md-half);
    /* Spacing */
    margin:  var(--spacing-lg) 0;
}

/* Élément de mission */
.mission-item {
    /* Layout */
    display: flex;
    align-items: flex-start;

    padding: var(--spacing-md);
    border-radius: 10px;

    background: var(--bg-light);
    transition: var(--transition);
}

.mission-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Icône de mission */
.mission-icon {
    /* Size & Shape */
    width: 40px;
    height: 40px;
    border-radius: 50%;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);

    /* Visuals */
    background: var(--bg-white);
    box-shadow: var(--shadow);
    color: var(--primary-color);

    /* Typography */
    font-size: var(--font-size-base);
}

/* Contenu de la mission */
.mission-content h4 {
    color: var(--primary-color);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
}

.mission-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.referent-convention {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin: var(--spacing-md-half) 0;
    border-radius: 8px;
    background: rgba(56, 178, 172, 0.1);
}

.referent-convention i {
    color: var(--primary-color);
    font-size: var(--spacing-md-half);
    margin-right: var(--spacing-md);
}

.referent-convention p {
    color: var(--text-dark);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Grille des coordonnées de contact */
.referent-contact {
    margin: var(--spacing-lg) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md-half);
}

/* Élément de contact */
.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    /* Size & Shape */
    width: 40px;
    height: 40px;
    border-radius: 50%;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);

    /* Visuals */
    background: var(--bg-light);
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-item p span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
    /* color: var(--accent-color); */
}

/* ==========================================================================
    Responsive - Referent Card
   ========================================================================== */

/* @media (max-width: 992px) {
    .referent-card {
        flex-direction: column;
    }
    
    .referent-photo {
        width: 100%;
        padding: 2rem;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .photo-container {
        margin-right: var(--spacing-md-half);
    }
    
    .referent-badge {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .referent-missions {
        grid-template-columns: 1fr;
    }
    
    .referent-contact {
        grid-template-columns: 1fr;
    }
    
    .referent-photo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .photo-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
} */



/* ########################################################### */
/* ########################################################### */


/* ==========================================================================
    Base Styles
   ========================================================================== */

/* Styles globaux pour le corps de la page */

body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}


/* ==========================================================================
    Header
   ========================================================================== */


/* En-tête principal avec logo centré */

.site-header {
    background: var(--gradient-main);
    padding: var(--spacing-md-half) 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1100;
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo-link img {
    max-width: 200px;
    height: 100px;
    transition: var(--transition);
}

.logo-link img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}


/* ==========================================================================
    Navigation
   ========================================================================== */

/* Navigation sticky avec menu responsive */
.site-nav {
    background: var(--secondary-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-nav .container {
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md-half);
}

.nav-menu li a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.nav-menu li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.nav-toggle {
    /* Visibility */
    display: none;

    /* Reset styles */
    background: none;
    border: none;

    /* Typography & Icon */
    color: var(--bg-white);
    font-size: var(--font-size-lg);
    cursor: pointer;

    /* Positioning */
    position: absolute;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);

    /* Interaction */
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* ==========================================================================
    # LAYOUT - SECTIONS
   ========================================================================== */

/* Sections génériques avec contenu centré */
section {
    padding: var(--spacing-lg);
    max-width: 1200px;
    margin: var(--spacing-lg) auto 0;
}

h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color:  var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

p {
    line-height: 2;
    font-size: var(--font-size-base);
    color: var(--text-gray);
}



/* ==========================================================================
    Footer
   ========================================================================== */

.site-footer {
    background: var(--gradient-main);
    color: var(--bg-white);
    padding: 1rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-footer p {
    font-size: var(--font-size-base);
    font-weight: 400;
    /* margin-bottom: var(--spacing-md); */
    position: relative;
    color: var(--bg-white);
    line-height: 1;
}

.site-footer p:not(:last-child)::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: var(--spacing-md) auto;
    opacity: 0.5;
}

.site-footer a {
    color:  var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--bg-white);
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem var(--spacing-sm);
    border-radius: 5px;
}



/* ==========================================================================
    Responsive
   ========================================================================== */

/* Ajustements pour tablettes */
/* @media (max-width: 1024px) {
    .logo-link img {
        max-width: 180px;
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .nav-menu li a {
        font-size: 1rem;
        padding: var(--spacing-sm) 0.8rem;
    }
} */

/* Ajustements pour mobiles */
/* @media (max-width: 768px) {
    .site-header {
        padding: var(--spacing-md) 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--secondary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: var(--spacing-md);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
        animation: slideIn 0.3s ease-in-out;
    }

    .nav-toggle {
        display: block;
    }

    .site-footer {
        padding: var(--spacing-md) 0;
    }

    .site-footer p {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: var(--font-size-lg);
    }

    .hero p {
        font-size: var(--font-size-base);
    }

    .info-content {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
} */

/* Ajustements pour petits écrans */
/* @media (max-width: 480px) {
    .logo-link img {
        max-width: 150px;
    }

    .nav-menu li a {
        font-size: 0.9rem;
        padding: var(--spacing-sm);
    }

    .site-footer p {
        font-size: 0.8rem;
    }

    .site-footer p:not(:last-child)::after {
        width: 40px;
    }
} */

/* Animation pour le menu mobile */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* ==========================================================================
    Responsive Design - Mobile (320px - 576px)
   ========================================================================== */

@media screen and (max-width: 576px) {
    /* Général : Ajuster les espacements et tailles de police */
    :root {
        --font-size-base: 0.9rem; /* Réduire légèrement la taille de base */
        --font-size-lg: 1.1rem;
        --font-size-xl: 1.5rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    /* Body */
    body {
        font-size: var(--font-size-base);
    }

    /* Header */
    .site-header {
        padding: var(--spacing-md) 0;
    }
    .site-header .container {
        padding: 0 var(--spacing-sm);
    }
    .logo-link img {
        max-width: 150px; /* Réduire la taille du logo */
        height: 80px;
    }

    /* Navigation */
    .site-nav {
        padding: var(--spacing-sm) 0;
    }
    .nav-menu {
        display: none; /* Cacher le menu par défaut */
        flex-direction: column;
        gap: var(--spacing-sm);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: var(--spacing-md);
    }
    .nav-menu.active {
        display: flex; /* Afficher le menu quand actif (via JS pour toggle) */
    }
    .nav-menu li a {
        padding: var(--spacing-sm);
        font-size: var(--font-size-base);
        text-align: center;
    }
    .nav-toggle {
        display: block; /* Afficher le bouton burger */
    }

    /* Sections */
    section {
        padding: var(--spacing-md);
        margin: var(--spacing-md) auto 0;
    }
    h2 {
        font-size: var(--font-size-lg);
        margin: var(spacing-xl) 0;
    }

    .main-section h1,
    .hero-overlay h1 {
        font-size: 1.3rem;
    }
    .main-section p,
    .hero-overlay p {
        font-size: 1rem;
    }

    /* Cartes */
    .card {
        min-height: 300px; /* Réduire la hauteur minimale */
        padding: var(--spacing-md);
    }
    .card .icon {
        font-size: 2rem;
        margin: 2rem 0;
    }
    .card h3 {
        font-size: var(--font-size-base);
    }

    /* Section Localisation */
    .location-card {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    .location-map {
        height: 300px; /* Réduire la hauteur de la carte */
    }
    .location-map iframe {
        height: 300px;
    }
    .location-info h3 {
        font-size: 1.3rem;
    }
    .transport-list li {
        font-size: var(--font-size-base);
        gap: var(--spacing-sm);
    }

    .modules-grid,
    .features-grid {
        grid-template-columns: 1fr; /* Une colonne pour mobile */
        gap: var(--spacing-md);
    }

    .module-card,
    .feature-card {
        padding: var(--spacing-sm);
        margin: 0.5rem 0;
    }
    .module-card h3,
    .feature-card h3 {
        font-size: 1.2rem;
    }
    .module-icon i,
    .feature-icon {
        font-size: 1.3rem;
    }

    /* Carte d'information */
    .info-card {
        padding: var(--spacing-sm);
        margin-bottom: 3rem;
    }
    .info-card p {
        font-size: 0.9rem; /* Légère augmentation pour lisibilité */
    }
    .info-card h3 {
        font-size: var(--font-size-base); /* 0.9rem */
        font-weight: 600;
    }

      /* Section Référente */
    .referent-card {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    .referent-photo {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-sm);
        text-align: center;
    }
    .photo-container {
        width: 100px;
        height: 100px;
    }
    .referent-photo i {
        font-size: 4rem;
    }
    .referent-badge {
        margin-top: var(--spacing-sm);
    }
    .referent-info {
        padding: var(--spacing-md);
    }
    .referent-header h3 {
        font-size: 1.3rem;
    }
    .referent-title {
        font-size: 0.85rem;
    }
    .referent-missions {
        grid-template-columns: 1fr; /* Une colonne pour mobile */
        gap: var(--spacing-sm);
    }
    .mission-item {
        padding: var(--spacing-sm);
    }
    .mission-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .mission-content h4 {
        font-size: 0.9rem;
    }
    .mission-content p {
        font-size: 0.85rem;
    }
    .referent-convention {
        padding: var(--spacing-sm);
    }
    .referent-convention p {
        font-size: 0.85rem;
    }
    .referent-contact {
        grid-template-columns: 1fr; /* Une colonne pour mobile */
        gap: var(--spacing-sm);
    }
    .contact-item p {
        font-size: 0.85rem;
    }
    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .btn-contact, .btn-download {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }


    /* Footer */
    .site-footer {
        padding: var(--spacing-md) 0;
    }
    .site-footer .container {
        padding: 0 var(--spacing-sm);
    }
    .site-footer p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
    Responsive Design - Tablette (577px - 768px)
   ========================================================================== */

@media screen and (min-width: 577px) and (max-width: 768px) {
    /* Général : Ajuster les espacements et tailles de police */
    :root {
        --font-size-base: 0.95rem;
        --font-size-lg: 1.15rem;
        --font-size-xl: 1.75rem;
        --spacing-md: 0.875rem;
        --spacing-lg: 1.75rem;
    }

    /* Header */
    .site-header .container {
        padding: 0 var(--spacing-md);
    }
    .logo-link img {
        max-width: 180px; /* Taille intermédiaire pour le logo */
        height: 90px;
    }

    /* Navigation */
    .nav-menu {
        gap: var(--spacing-sm);
    }
    .nav-menu li a {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .nav-toggle {
        display: none; /* Menu horizontal sur tablette */
    }

    /* Sections */
    section {
        padding: var(--spacing-lg);
    }
    h2 {
        font-size: var(--font-size-xl);
    }

    /* Cartes */
    .card {
        min-height: 320px;
        padding: var(--spacing-md-half);
    }
    .card .icon {
        font-size: 2.2rem;
    }

    /* Section Localisation */
    .location-card {
        flex-direction: row; /* Garder flex row pour tablette */
        padding: var(--spacing-md-half);
        gap: var(--spacing-md);
    }
    .location-map {
        height: 350px;
    }
    .location-map iframe {
        height: 350px;
    }
    .location-info h3 {
        font-size: 1.4rem;
    }

    .modules-grid,
    .features-grid  {
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour tablette */
        gap: var(--spacing-md);
    }
    .module-card,
    .feature-card  {
        padding: var(--spacing-md);
        margin: 0.5rem 0;
    }
    .module-card h3,
    .feature-card h3 {
        font-size: 1.2rem;
    }

    /* Carte d'information */
    .info-card {
        padding: var(--spacing-md);
        margin-bottom: 3rem;
    }
    .info-card p {
        font-size: 0.95rem;
    }
    .info-card h3 {
        font-size: var(--font-size-lg); /* 1.15rem */
        font-weight: 600;
    }

       /* Section Référente */
    .referent-card {
        flex-direction: row;
        padding: var(--spacing-md-half);
    }
    .referent-photo {
        width: 200px;
        padding: var(--spacing-md);
    }
    .photo-container {
        width: 110px;
        height: 110px;
    }
    .referent-photo i {
        font-size: 4.5rem;
    }
    .referent-info {
        padding: var(--spacing-md-half);
    }
    .referent-header h3 {
        font-size: 1.5rem;
    }
    .referent-title {
        font-size: var(--font-size-base);
    }
    .referent-missions {
        grid-template-columns: 1fr; /* Une colonne pour simplicité */
        gap: var(--spacing-md);
    }
    .mission-item {
        padding: var(--spacing-md);
    }
    .mission-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .mission-content h4 {
        font-size: var(--font-size-base);
    }
    .mission-content p {
        font-size: 0.9rem;
    }
    .referent-convention {
        padding: var(--spacing-md);
    }
    .referent-convention p {
        font-size: var(--font-size-base);
    }
    .referent-contact {
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour tablette */
        gap: var(--spacing-md);
    }
    .contact-item p {
        font-size: var(--font-size-base);
    }
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .btn-contact, .btn-download {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    /* Footer */
    .site-footer p {
        font-size: var(--font-size-base);
    }
}