/* ------------------------------
    VARIABLES GLOBALES
------------------------------ */
:root {
    --color-primary: #ff7f50;       /* Orange moderne (Corail) */
    --color-primary-dark: #e76e3d;
    --color-secondary: #1e3a8a;     /* Bleu profond */
    --color-dark: #1b1b1b;
    --color-light: #f8f9fa;
    --color-gray: #6b7280;

    --font-main: "Poppins", sans-serif;
    --font-title: "Montserrat", sans-serif;

    --radius: 12px;
    --transition: 0.3s ease;
}

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

/* 🚨 CORRECTION DU DÉFILEMENT HORIZONTAL (Overflow) 🚨 */
html, body {
    /* Cache toute barre de défilement horizontale non désirée */
    overflow-x: hidden; 
}

body {
    font-family: var(--font-main);
    background: var(--color-light);
    color: var(--color-dark);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
}

h2.section-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-secondary);
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1300px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background: #f5f5f5;
}

/* ------------------------------
    BOUTONS GLOBAUX
------------------------------ */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none; /* Assure que Bootstrap n'ajoute pas de bordure non désirée */
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background: #162f6a;
    transform: translateY(-3px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 18px;
    border-radius: var(--radius);
}

/* ------------------------------
    ANIMATIONS GLOBALES
------------------------------ */
/* Hover elevation */
.hover-card {
    transition: var(--transition);
}

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

/* Styles et Keyframes d'animations pour une utilisation si AOS est désactivé */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

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

.zoom-in {
    opacity: 0;
    animation: zoomIn 1s forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🚨 Corrections des animations de glissement pour éviter le défilement horizontal 🚨 */

.slide-left {
    opacity: 0;
    transform: translateX(-100%); /* Position de départ hors écran à gauche */
    animation: slideLeft 1s forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-right {
    opacity: 0;
    transform: translateX(100%); /* Position de départ hors écran à droite */
    animation: slideRight 1s forwards;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e3a8a; /* fond bleu foncé */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

/* Spinner */
#preloader .spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff7f50; /* couleur corail */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Animation rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Masquer le preloader */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* ==========================================================
 * STYLE SPÉCIFIQUE EN-TÊTE (Non-Bootstrap)
========================================================== */
/* Header global */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #1e3a8a, #ff7f50); /* Bleu → corail */
    color: white;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 1000;
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px; /* réduis le padding ou mets 0 */
    width: 100%; /* prend toute la largeur */
    margin: 0; /* pas de margin auto */
    height: 70px;
}

/* Logo */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Menu */
.nav-menu {
    flex: 1;
    margin-left: 40px;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu-list li a {
    text-decoration: none;
    color: var( --color-light);
    font-weight: 500;
    transition: 0.3s;
}

.menu-list li a:hover,
.menu-list li a.active {
    color: var(--color-primary);
}

/* CTA */
.btn-cta {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* HAMBURGER (Mobile Icon) */
.hamburger {
    display: none; /* Caché sur desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px; /* Espace entre le CTA et le hamburger */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    /* Blanc pour contraster avec le gradient du header */
    background: white; 
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation de la croix (ajoutée par le JS .open) */
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================
 * RESPONSIVE (Menu Mobile)
========================================================== */
@media (max-width: 992px) {
    
    .header-inner {
        /* Permettre au hamburger et CTA d'être visibles sur les bords */
        padding: 0 20px; 
    }

    /* Le Logo sur Mobile */
    .logo img {
        height: 40px; /* Légèrement plus petit sur mobile */
    }
    
    /* Affichage de l'icône Hamburger et positionnement */
    .hamburger {
        display: flex;
        order: 3;
    }
    
    /* Le CTA reste visible à côté du hamburger */
    .btn-cta {
        order: 2;
        margin-left: auto; /* Pousse le CTA loin du logo */
        margin-right: 15px;
        padding: 8px 15px; /* Rendre le bouton plus petit sur mobile */
        font-size: 0.9rem;
    }
    
    /* Cache la navigation principale sur mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Cacher le menu en dehors de l'écran */
        width: 100%; 
        height: 100vh; 
        /* Couleur unie foncée (plus lisible que le gradient pour la liste) */
        background: linear-gradient(90deg, #1e3a8a, #ff7f50);;
        flex-direction: column;
        display: none; /* Remplacé par le JS pour l'animation */
        padding-top: 100px;
        transition: right 0.4s ease-in-out;
        z-index: 999; 
    }

    /* Afficher le menu lorsque la classe .active est ajoutée par le JS */
    .nav-menu.active {
        /* Révélation du menu mobile */
        right: 0; 
        display: flex; 
    }
    
    .menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .menu-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Séparation des liens */
    }

    .menu-list li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
        color: white !important;
    }
    
    /* Correction: Supprimer le bord inférieur du dernier élément */
    .menu-list li:last-child {
        border-bottom: none;
    }
}

/* ============================
   SECTION NEWS (ACTUALITÉS)
   ============================ */
.news-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 70px;
    height: 4px;
    background: #ff6a00;
    display: block;
    margin: 12px auto 0;
    border-radius: 8px;
}

/* GRID DES ACTUALITÉS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
}

/* CARTE D'ACTUALITÉ */
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

/* EFFET HOVER */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: 0.4s ease;
}

.news-card:hover img {
    transform: scale(1.06);
}

/* TITRE */
.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 18px 20px 5px;
    margin: 0;
    color: #222;
}

/* DATE */
.news-card small {
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

/* EXCERPT */
.news-card p {
    padding: 0 20px;
    color: #555;
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* BOUTON READ MORE */
.read-more {
    margin: 0 20px;
    font-weight: 600;
    color: #ff6a00;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
}

.read-more:hover {
    color: #d45500;
    text-decoration: underline;
}

/* Bouton Voir toutes les actualités */
.btn-secondary {
    background-color: #ff6a00;
    border-color: #ff6a00;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background-color: #d45500;
    border-color: #d45500;
}

.news-card img {
    width: 100%;
    height: 500px;
     /*object-position: top;  important pour voir le visage */
    object-fit: contain;   /* NE COUPE PLUS LE VISAGE */
    background: #f7f7f7;   /* Pour éviter un fond vide */
    padding: 8px;
    border-bottom: 1px solid #eee;
}



/* ==========================================================
 * STYLE DES SECTIONS D'INDEX
========================================================== */

/* ------------------------------
 * SECTION HÉRO
------------------------------ */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        rgba(0,0,0,0.6), 
        rgba(0,0,0,0.6)
    ), 
    url('/assets/images/WhatsApp Image 2025-12-06 at 6.04.11 PM.jpeg') center/cover no-repeat;
    color: white;
    position: relative;
    text-align: center; /* Centrage du contenu en cas d'utilisation de flex */
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ==========================================================
    * ANIMATION DU TEXTE HÉRO (CSS pur)
========================================================== */

/* 1. Définition des Keyframes (Animation du bas vers le haut) */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        /* Déplace l'élément de 50px vers le bas */
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        /* Position finale */
        transform: translateY(0); 
    }
}

/* 2. Style de la Classe d'Animation */
.fadeInUp {
    /* Cache l'élément avant l'animation */
    opacity: 0; 
    /* Définit l'animation : nom, durée, mode de remplissage */
    animation: fadeInUp 1.2s forwards;
}

/* Vous aviez également un style spécifique pour le Héro dans l'ancien code que nous pouvons réintégrer */
.hero-text {
    max-width: 650px;
    /* La durée de 1.2s est définie dans le .fadeInUp ci-dessus */
}

/* Vous pouvez affiner les délais directement dans le Blade, comme vous l'avez fait : */
/* <h1 class="..." style="animation-delay: 0s;">...</h1>
<p class="..." style="animation-delay: 0.3s;">...</p>
<a class="..." style="animation-delay: 0.6s;">...</a> 
*/


/* ------------------------------
 * SECTION MISSION
------------------------------ */
.mission-section {
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
}

.mission-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mission-item i {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.mission-item h3 {
    margin-bottom: 10px;
    font-size: 22px;
}


/* ------------------------------
 * SECTION À PROPOS
------------------------------ */
.about-section .about-flex {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 45px;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.about-text h3 {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-secondary);
}

.why-choose-list {
    margin-top: 20px;
    list-style: none;
}

.why-choose-list li {
    margin-bottom: 12px;
    font-size: 16px;
}

.why-choose-list i {
    color: var(--color-primary);
    margin-right: 8px;
}


/* SECTION ABOUT – RESPONSIVE */
@media (max-width: 768px) {
    .about-section .about-flex {
        grid-template-columns: 1fr; /* une seule colonne */
        text-align: center;
    }

    .about-image img {
        width: 90%;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
        margin-top: 20px;
    }

    .about-text h2,
    .about-text h3 {
        text-align: center !important;
    }
}


/* ------------------------------
 * SECTION TÉMOIGNAGES
------------------------------ */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-item {
    padding: 30px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    min-height: 320px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Avatar */
.author-avatar img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Texte */
.quote-text {
    font-style: italic;
    color: var(--color-gray-dark);
    margin: 20px 0;
    line-height: 1.6;
}

.testimonial-item cite {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 10px;
    display: block;
}

.testimonial-item .designation {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-item {
        padding: 25px;
        min-height: 280px;
    }
    .quote-text {
        font-size: 0.95rem;
    }
}



/* ------------------------------
 * SECTION ACTUALITÉS
------------------------------ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.news-card img {
    height: 230px;
    width: 100%;
    object-fit: cover;
}

.news-card h3 {
    font-size: 22px;
    margin: 15px;
}

.news-card p {
    color: var(--color-gray);
    margin: 0 15px 15px 15px;
}

.read-more {
    margin: 15px;
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--color-primary-dark);
}


/* ------------------------------
 * SECTION PARTENAIRES
------------------------------ */
/* ==========================================================
 * STYLE POUR LE DÉFILEMENT DES PARTENAIRES (INDEX)
========================================================== */

/* 1. Conteneur principal qui cache le débordement */
.partners-section .container {
    overflow: hidden; /* Nécessaire pour cacher le défilement */
}

.partner-logos {
    white-space: nowrap; /* Force tous les logos à rester sur une seule ligne */
    display: flex;
    justify-content: flex-start; /* Aligner les logos au début */
    align-items: center;
    padding: 20px 0;
    
    /* Animation de défilement */
    animation: scroll-partners 35s linear infinite; /* 35s est la durée du cycle */
}

/* 2. Style de chaque emplacement de logo */
.logo-placeholder {
    /* Remplacer 'width: 150px' par une taille appropriée */
    flex: 0 0 150px; 
    height: 80px; 
    margin-right: 40px; /* Espace entre chaque logo */
    
    /* S'assurer que le contenu du placeholder est centré */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Style visuel de base */
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* ------------------------------
 * Définition de l'Animation (Déplacement de droite à gauche)
------------------------------ */

/* Pour que l'animation soit fluide et infinie, la somme de la largeur de tous les éléments 
   doit être déplacée de manière continue. */
@keyframes scroll-partners {
    /* Nous déplaçons le conteneur vers la gauche de la largeur cumulée de tous les logos */
    from {
        transform: translateX(0); 
    }
    to {
        /* 🚨 NOTE : 
           Cette valeur 'to' doit correspondre à la largeur cumulée de vos 10 éléments.
           Si chaque logo fait 150px + 40px de marge = 190px. 
           190px * 10 logos = 1900px.
           Ajustez la valeur '-1900px' si vos dimensions changent.
        */
        transform: translateX(calc(-190px * 10)); 
    }
}


/* ------------------------------
 * Média Queries (Ajustement pour les petits écrans)
------------------------------ */
@media (max-width: 768px) {
    /* Réduire la vitesse du défilement sur mobile */
    .partner-logos {
        animation-duration: 25s;
    }
    
    /* Réduire la taille des logos sur mobile */
    .logo-placeholder {
        flex: 0 0 120px;
        margin-right: 30px;
    }
    
    /* 🚨 Ajuster la translation pour les nouvelles dimensions du mobile (120px + 30px = 150px par élément) */
    @keyframes scroll-partners {
        to {
            transform: translateX(calc(-150px * 10)); 
        }
    }
}


/* ==========================================================
 * STYLE SPÉCIFIQUE À LA PAGE PARTENAIRES (partenaires.blade.php)
========================================================== */

/* ------------------------------
 * Header (Réutilise le style Actualités/Mission)
------------------------------ */
.partners-header-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #172d68 100%);
    color: var(--color-light);
}

.partners-header-section h1 {
    font-size: 50px;
}

/* ------------------------------
 * Grille des Partenaires
------------------------------ */
.partners-grid-page {
    display: grid;
    /* Crée 4 colonnes, ou moins sur petit écran, pour un affichage centré */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 30px;
}

.partner-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

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

.partner-logo-box {
    min-height: 200px; /* Hauteur minimale du conteneur */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-logo-img {
    max-height: 80px; /* Limite la taille des logos */
    max-width: 80%;
    object-fit: contain;
    filter: grayscale(80%); /* Logos en niveaux de gris par défaut */
    transition: filter 0.3s;
}

.partner-item:hover .partner-logo-img {
    filter: grayscale(0%); /* Couleurs au survol */
}

.partner-item h3 {
    font-size: 18px;
    margin-top: 15px;
    color: var(--color-secondary);
}


/* ------------------------------
 * CTA FINAL
------------------------------ */
.cta-banner {
    padding: 80px 0;
    background: var(--color-secondary);
    color: white;
    text-align: center;
}

.cta-banner h2 {
    font-size: 34px;
    margin-bottom: 20px;
}


/* ==========================================================
 * RESPONSIVE
========================================================== */

@media (max-width: 992px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .section-padding { padding: 60px 0; }
    
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-flex {
        grid-template-columns: 1fr;
    }
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { width: 92%; }
    body { font-size: 15px; }

    .hero-section {
        height: auto;
        padding: 100px 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 26px;
    }
    h2 { font-size: 22px; }
    .btn { padding: 10px 22px; }
    
    .partner-logos {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 26px;
    }
}

/* ==========================================================
 * SECTION PIED DE PAGE (FOOTER)
========================================================== */
.main-footer {
    background: var(--color-dark); /* Arrière-plan sombre */
    color: var(--color-light); /* Texte clair */
    padding-top: 60px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    /* 4 colonnes pour desktop (1 pour la description, 3 pour les liens) */
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Ligne de séparation */
}

.main-footer h4 {
    color: var(--color-primary); /* Titres en orange */
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* Styles des liens */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--color-primary); /* Effet au survol */
    transform: translateX(5px);
    display: inline-block; /* Permet le translateX */
}

/* Bas du pied de page */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: var(--color-gray);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--color-light);
    margin-left: 15px;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* Icônes Sociales */
.footer-bottom i {
    font-size: 18px;
    vertical-align: middle;
}

/* ==========================================================
 * RESPONSIVE FOOTER
========================================================== */

/* Tablette (992px) : 2 colonnes */
@media (max-width: 992px) {
    .footer-grid {
        /* 2 colonnes de taille égale */
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (576px) : 1 colonne */
@media (max-width: 576px) {
    .main-footer {
        padding-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center; /* Centre le contenu des colonnes */
    }
    
    .footer-col a:hover {
        transform: none; /* Désactive l'effet de glissement sur les petits écrans */
    }
    
    .footer-col ul li {
        margin-bottom: 8px;
    }
}

/* ==========================================================
 * STYLE SPÉCIFIQUE À LA PAGE À PROPOS (about.blade.php)
========================================================== */

/* ------------------------------
 * Titre de page
------------------------------ */
.about-us-section .page-title {
    color: var(--color-secondary);
    font-size: 42px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
    max-width: 800px;
    margin: 0 auto 60px auto !important;
    font-family: var(--font-title);
}

/* ------------------------------
 * Blocs d'information (Flexbox pour l'alternance)
------------------------------ */
.about-block {
    display: flex; /* Utilisation de Flexbox pour le Desktop */
    gap: 40px;
    align-items: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    transition: var(--transition);
}

/* 🚨 Alternance sur Desktop 🚨 */
.about-block:nth-of-type(even) {
    /* Pour les blocs pairs (2, 4...), inverse l'ordre : Texte à gauche, Image à droite */
    flex-direction: row-reverse;
}

.about-image {
    /* L'image prend 1/3 de l'espace */
    flex: 1; 
}

.about-text {
    /* Le texte prend 2/3 de l'espace */
    flex: 2; 
}


.about-block h2 {
    color: var(--color-secondary);
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: var(--font-title);
}

.about-image img {
    height: auto;
    width: 100%;
    object-fit: cover;
    max-height: 400px;
    border-radius: var(--radius);
    border: 4px solid var(--color-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Liste à puces stylisée */
.about-text ul.styled-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.about-text ul.styled-list li {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-dark);
}

.about-text ul.styled-list i {
    color: var(--color-primary);
    margin-right: 8px;
}

/* ------------------------------
 * RESPONSIVE POUR LA PAGE À PROPOS
------------------------------ */

@media (max-width: 992px) {
    .about-us-section .page-title {
        font-size: 30px;
    }
    
    .about-block {
        /* Mobile/Tablette : Empilement en une seule colonne */
        flex-direction: column; 
        padding: 20px;
        gap: 20px;
    }
    
    /* Le texte doit toujours être en haut, l'image en bas */
    .about-block .about-image {
        order: 2; /* L'image passe toujours en bas */
    }

    .about-block .about-text {
        order: 1; /* Le texte passe toujours en haut */
        text-align: center; 
    }
    
    .about-block h2 {
        font-size: 24px;
        text-align: center !important; 
    }
    
    .about-image img {
        max-height: 250px; 
    }
}


/* ==========================================================
 * STYLE SPÉCIFIQUE À LA PAGE MISSION (mission.blade.php)
========================================================== */

/* ------------------------------
 * Mission Hero
------------------------------ */
.mission-hero-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #172d68 100%);
    color: var(--color-light);
}

.mission-hero-section h1 {
    font-family: var(--font-title);
    font-size: 50px;
}

.mission-hero-section p.lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------
 * Mission Vision
------------------------------ */
.mission-vision-section h2 {
    color: var(--color-secondary);
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-title);
}

.mission-vision-section .border-primary-mission {
    border: 4px solid var(--color-primary);
}


/* ------------------------------
 * Piliers d'Action (Cards)
------------------------------ */
.mission-pillars-section .section-title {
    color: var(--color-dark);
    font-family: var(--font-title);
    margin-bottom: 50px;
}

.mission-card {
    border: none;
    border-radius: var(--radius);
    padding: 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px); /* Léger soulèvement au survol */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.mission-card i {
    color: var(--color-primary); /* Utilisation de la couleur primaire pour les icônes */
    transition: var(--transition);
}

.mission-card:hover i {
    color: var(--color-primary-dark);
}

/* ------------------------------
 * RESPONSIVE MISSION
------------------------------ */

@media (max-width: 992px) {
    .mission-hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .mission-hero-section h1 {
        font-size: 36px;
    }
    
    .mission-vision-section img {
        margin-bottom: 30px;
    }
    
    .mission-vision-section h2 {
        text-align: center !important;
    }
    
    .mission-vision-section p {
        text-align: center;
    }
    
    .mission-vision-section h3 {
        text-align: center;
    }
    
    .mission-pillars-section .col-md-4 {
        margin-bottom: 20px;
    }
}


/* ==========================================================
 * STYLE SPÉCIFIQUE À LA PAGE CONFIANCE (why-trust-us.blade.php)
========================================================== */

/* ------------------------------
 * Trust Hero (Reprend le style Mission Hero pour la cohérence)
------------------------------ */
.trust-hero-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #172d68 100%);
    color: var(--color-light);
}

.trust-hero-section h1 {
    font-family: var(--font-title);
    font-size: 50px;
}

.trust-hero-section p.lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------
 * Grille des Raisons de Confiance (4 colonnes sur Desktop)
------------------------------ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
    gap: 30px;
    text-align: center;
}

.trust-item {
    background: white;
    border-radius: var(--radius);
    border-bottom: 5px solid var(--color-primary); /* Touche d'accentuation */
    transition: transform var(--transition);
}

.trust-item:hover {
    transform: translateY(-8px);
}

.trust-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.trust-item i {
    color: var(--color-primary);
}


/* ------------------------------
 * Section des Chiffres d'Impact
------------------------------ */
.impact-numbers-section {
    background: var(--color-light);
}

.impact-box {
    background: white;
    border: 1px solid var(--color-light);
    transition: var(--transition);
    height: 100%;
}

.impact-box:hover {
    background: var(--color-secondary);
    color: var(--color-light);
}

.impact-box:hover .impact-number {
    color: var(--color-light) !important;
}

.impact-number {
    font-family: var(--font-title);
    margin-bottom: 5px;
}

.impact-label {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-gray);
}

.impact-box:hover .impact-label {
    color: var(--color-light);
}


/* ------------------------------
 * RESPONSIVE CONFIANCE
------------------------------ */

@media (max-width: 992px) {
    .trust-hero-section h1 {
        font-size: 36px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes sur tablette */
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
    
    .trust-item {
        margin-bottom: 15px;
    }
    
    .impact-box {
        margin-bottom: 20px;
    }
}


/* ==========================================================
 * STYLE SPÉCIFIQUE À LA PAGE ACTUALITÉS (actualites.blade.php)
========================================================== */

/* ------------------------------
 * Header (Reprend le style Mission Hero pour la cohérence)
------------------------------ */
.news-header-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #172d68 100%);
    color: var(--color-light);
}

.news-header-section h1 {
    font-family: var(--font-title);
    font-size: 50px;
}

.news-header-section p.lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------
 * Grille des Actualités
------------------------------ */
.news-grid {
    display: grid;
    /* 3 colonnes sur desktop, ajustement auto si nécessaire */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
}

.news-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden; /* Important pour arrondir l'iframe */
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-video-container {
    /* Maintient le ratio 16:9 pour la vidéo */
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 (9 / 16 * 100) */
}

.news-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-card h3 {
    font-size: 20px;
    font-family: var(--font-title);
    line-height: 1.3;
}

.news-text small {
    color: var(--color-gray);
}

.news-text .btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transition: var(--transition);
}

.news-text .btn-outline-primary:hover {
    background: var(--color-primary);
    color: white;
}

/* ------------------------------
 * Sélecteur de Tri
------------------------------ */
.news-sort-control .form-select {
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 8px 15px;
    cursor: pointer;
}

/* ------------------------------
 * RESPONSIVE ACTUALITÉS
------------------------------ */
@media (max-width: 768px) {
    .news-header-section h1 {
        font-size: 36px;
    }
    
    .news-grid {
        /* 1 colonne sur les petits écrans */
        grid-template-columns: 1fr; 
    }
}

/* Style pour la Page Conditions Générales */
.cgu-article {
    padding: 30px;
    background-color: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cgu-article h2, .cgu-article h3 {
    font-family: var(--font-title);
}

.cgu-article p, .cgu-article ul {
    line-height: 1.8;
    color: var(--color-gray);
    font-size: 16px;
}

.cgu-article ul {
    list-style: none;
    padding-left: 0;
}

.cgu-article ul li {
    margin-bottom: 10px;
}

.alert-info {
    border-left: 5px solid var(--color-primary);
    background-color: #f0f8ff;
    color: #0b507e;
}