/* BARRE DE NAVIGATION GLOBALE (Mise à jour .main-site-navbar) */

.main-site-navbar {
    position: relative; /* Conserve ton positionnement d'origine */
    z-index: 999;       /* Garde la priorité haute pour toute la barre de navigation */
    background-color: #ffffff; /* Conserve le fond blanc opaque */
}

/* Alignement horizontal du menu principal (sécurisé avec la classe parent) */
.main-site-navbar .main-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

/* Positionnement pour permettre le menu déroulant */
.main-site-navbar .dropdown {
    position: relative;
}

/* Style du menu qui descend */
.main-site-navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px; /* Largeur confortable pour les titres longs */
    background: #ffffff;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    
    /* Animation fluide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Affichage au survol */
.main-site-navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Liens des sous-menus */
.main-site-navbar .dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: #0f2c4a;
    font-size: 14px;
}

/* Effet au survol des sous-menus */
.main-site-navbar .dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #0f2c4a; 
}

/* ZONE SPÉCIFIQUE : PAGE "NOS SERVICES" */

.services-page-header {
    position: relative;
    width: 100%;
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
    aspect-ratio: 21 / 9; /* Calcule la hauteur selon la largeur */
}

/* Contenu texte spécifique au centre du header service */
.services-page-header .container {
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    z-index: 2;
}

.services-page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ffffff;
}

.services-page-header p {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 15px;
}

/* STRUCTURE COMMUNE DES EN-TÊTES DE PAGE (OVERLAY & BREADCRUMB)*/

/* L'overlay sombre commun qui couvre l'image */
.header-overlay {
    background: rgba(0, 0, 0, 0.6); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Positionnement global du fil d'Ariane au centre */
.breadcrumb-container, .breadcrum-container {
    margin-top: 20px;
    display: flex;
    width: 100%;
    justify-content: center; 
}

/* La pilule contenant les liens */
.breadcrumb-pill {
    background-color: #1a2b3c; /* Bleu très foncé */
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: 'Arial Normal', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Le lien ACCUEIL doré */
.breadcrumb-link-gold {
    color: #e2b13c;
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb-link-gold:hover {
    color: #ffffff;
}

/* Séparateurs (/) */
.breadcrumb-pill .separator, .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

/* États actuels (Non cliquables) */
.breadcrumb-current-white, .breadcrumb-current {
    color: #ffffff;
    cursor: default;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.service-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-text {
    padding: 25px;
}

.read-more {
    color: #0f2c4a;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}
/* sous Pages services */

/* En-tête unique pour la page de détail */
.service-show-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 7; /* Ratio grand écran type bannière */
    min-height: 320px;    /* Sécurité pour les petits écrans (mobile) */
    max-height: 450px;
    display: flex;
    align-items: center;
}


.service-show-header .header-overlay .container {
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.service-show-header .header-overlay,
.formation-show-header .header-overlay{
    background: rgba(0, 0, 0, 0.6); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-show-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Zone d'introduction sous le header */
.pole-intro-section {
    padding: 60px 0;
    background: #ffffff;
    text-align: center;
}

.intro-fusion-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.pole-intro-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #1a2b3c;
    font-weight: 600;
    margin-bottom: 20px;
}

.pole-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

/* Grille des sous-blocs (Contenu découpé par l'explode) */
.sub-services-grid-ery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Variante : force les 4 cartes sur une seule ligne (desktop) quand un pôle
   compte exactement 4 sous-services (ex: Management & Humain).
   N'affecte aucun autre pôle ni la grille par défaut ci-dessus. */
.sub-services-grid-4up {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) and (min-width: 769px) {
    .sub-services-grid-4up { grid-template-columns: repeat(2, 1fr); }
}
/* En dessous de 768px, la règle générale .sub-services-grid-ery (!important,
   plus bas dans ce fichier) reprend la main et repasse en 1 colonne :
   aucune règle supplémentaire nécessaire ici, donc rien ne peut casser le mobile. */

.sub-service-card-ery {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sub-service-card-ery:hover {
    transform: translateY(-5px);
}

.card-ery-img {
    height: 2OOpx;
    width: 100%;
}

.card-ery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-ery-content {
    padding: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    flex-grow: 1;
}

.card-ery-content p {
    margin: 0;
}

/* --- 4. Section Formations (Fond Alternatif Gris/Bleu Doux) --- */

.pole-formations-alt-row {
    background: #f4f7f9; /* Style d'arrière-plan distinct */
    padding: 80px 0;
    width: 100%;
}
.pole-formations-alt-row h2 {
    color: #1a2b3c;
    font-size: 26px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}
.formations-grid-ery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.formation-card-ery {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.formation-title-ery {
    color: #1a2b3c;
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}
.formation-desc-ery {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}
.formation-footer-ery {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
}
.formation-time-ery {
    color: #e2b13c; /* Touche dorée */
    font-weight: 600;
    font-size: 14px;
}
.btn-discover-program {
    color: #1a2b3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}
.btn-discover-program:hover {
    color: #e2b13c;
}

/* --- 5. Section CTA Besoin d'un accompagnement --- */
.pole-cta-centered-row {
    padding: 80px 0;
    background: #ffffff;
    text-align: center;
}
.cta-box-ery {
    max-width: 800px;
    margin: 0 auto;
    padding: 45px;
    background: #f7fafc;
    border-radius: 8px;
    border-top: 4px solid #e2b13c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.cta-box-ery h3 {
    color: #1a2b3c;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}
.cta-box-ery p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}
.btn-cta-ery {
    display: inline-block;
    background: #1a2b3c;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.btn-cta-ery:hover {
    background: #e2b13c;
    color: #1a2b3c;
    transform: translateY(-2px);
}
/* --- PAGE DÉTAIL DE FORMATION --- */
/* ==========================================================================
   4. ZONE SPÉCIFIQUE : DETAIL D'UNE FORMATION (SHOW)
   ========================================================================== */

.formation-show-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    
    /* On remplace la hauteur fixe par un ratio et des limites */
    aspect-ratio: 21 / 7; /* Ratio grand écran type bannière */
    min-height: 280px;    /* Sécurité pour les petits écrans (mobile) */
    max-height: 450px;    /* Sécurité pour les écrans géants */
    
    display: flex;
    align-items: center;
}

.formation-show-header .header-overlay .container {
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.formation-show-header h1 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Layout à deux colonnes asymétriques pour le détail */
.formation-body-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.formation-main-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colonne de gauche (70%) */
.formation-details-content {
    flex: 2;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.formation-details-content h2 {
    color: #1a2b3c;
    font-size: 24px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.formation-separator {
    border: 0;
    height: 2px;
    background: #e2b13c; /* Rappel doré */
    width: 60px;
    margin: 20px 0 30px 0;
}

.formation-description-lead {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    white-space: pre-line;
}

/* Colonne de droite (30%) */
.formation-sidebar-info {
    flex: 1;
    min-width: 300px;
}

/* Conteneur principal de la fiche technique */
.fiche-technique-card {
    background-color: #1a2b3c; /* Bleu nuit de ta capture */
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    color: #ffffff;
}

.fiche-technique-card h3 {
    color: #d4af37; /* Couleur dorée du titre */
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.divider-gold {
    height: 1px;
    background-color: rgba(212, 175, 55, 0.3);
    margin-bottom: 25px;
}

.fiche-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.fiche-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.fiche-info-item i {
    color: #d4af37; /* Icônes dorées */
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 🟩 🟦 STYLE DES NOUVEAUX BOUTONS */
.fiche-actions-container {
    display: flex;
    flex-direction: column; /* Superposés pour donner de l'espace au texte */
    gap: 12px;
}

.btn-fiche-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    color: #ffffff !important;
}

.btn-fiche-action:hover {
    transform: translateY(-2px);
}

/* Bouton WhatsApp */
.btn-whatsapp {
    background-color: #25D366; /* Vert officiel WhatsApp */
}

.btn-whatsapp:hover {
    background-color: #1ea952;
}

/* Bouton Google Sheets */
.btn-sheets {
    background-color: #107c41; /* Vert Excel / Google Sheets */
}

.btn-sheets:hover {
    background-color: #0b592e;
}
/* Fond semi-transparent pour assombrir le reste du site */
.custom-modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 35, 64, 0.6); /* Bleu nuit transparent */
    z-index: 9999; /* Par-dessus tout le reste */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* La carte de la fenêtre modale */
.custom-modal-card {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeInModal 0.3s ease-out;
}

.custom-modal-card.modal-large {
    max-width: 95% !important;
    width: 700px; /* Un formulaire est plus vertical qu'un tableau, 700px c'est parfait */
    height: 85vh !important;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.modal-body.no-padding {
    padding: 0;
    flex-grow: 1;
    overflow-y: auto !important; /* Force le défilement vertical */
    -webkit-overflow-scrolling: touch;
}

.sheets-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* En-tête de la modale */
.modal-header {
    background-color: #0c2340; /* Bleu nuit corporatif */
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Bouton de fermeture (la croix) */
.modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.modal-close-btn:hover { opacity: 1; }

/* Corps de la modale */
.modal-body {
    padding: 30px;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}
.modal-body.no-padding { padding: 0; flex-grow: 1; }
.text-center { text-align: center; }

/* Contenu WhatsApp spécifique */
.whatsapp-giant-icon {
    font-size: 60px;
    color: #25D366;
    margin-bottom: 20px;
}
.modal-action-btn-green {
    display: inline-block;
    background-color: #25D366;
    color: #ffffff !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.2s;
}
.modal-action-btn-green:hover { background-color: #1ea952; }

/* iFrame Google Sheets pour l'intégration propre */
.sheets-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Animation d'ouverture fluide */
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablettes et Mobiles */
@media (max-width: 992px) {
    .formation-main-layout {
        flex-direction: column;
    }
    .formation-sidebar-info {
        width: 100%;
    }
}
/*PAGE CATALOGUE DES FORMATIONS GLOBALES */
.formations-page-header {
  position: relative;
    width: 100%;
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
    aspect-ratio: 21 / 9;
}



/* Titre principal sous le header de la formation */
.catalog-main-title {
    color: #1a2b3c;
    font-size: 36px;
    text-align: center;
    font-weight: 700;
    margin: 40px auto;
    width: 100%;
    display: bloc
}
   
.catalog-layout-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr; /* 320px fixes pour les filtres, le reste pour les cartes */
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

/* --- LE COMPOSANT FILTRES (CONFORME À LA CAPTURE) --- */
.catalog-sidebar-filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* Bandeau entête bleu nuit */
.filter-header-blue {
    background-color: #0f2c4a; /* Bleu foncé de ta capture */
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.btn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e2e8f0; /* Gris clair */
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-reset-filter:hover {
    background-color: #cbd5e1; /* Gris un peu plus foncé au survol */
    color: #1a2b3c;
}

.filter-body-content {
    padding: 25px 20px;
}

.filter-section {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eef2f5;
}

.filter-section h3 {
    font-size: 15px;
    color: #0f2c4a;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Style de la boîte Select Thématiques */
.select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    outline: none;
}

.filter-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* Alignement des Checkboxes verticales */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    user-select: none;
    line-height: 20px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox carrée fine */
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #0f2c4a;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0f2c4a;
    border-color: #0f2c4a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Bouton Soumettre en bas de formulaire */
.btn-apply-filters {
    width: 100%;
    background: transparent;
    border: 1px solid #0f2c4a;
    color: #0f2c4a;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-apply-filters:hover {
    background: #0f2c4a;
    color: #ffffff;
}

/* --- ZONE CARTES RESPONSIVE --- */
@media (max-width: 992px) {
    .catalog-layout-wrapper {
        grid-template-columns: 1fr; /* Empilés sur tablette et mobile */
    }
}
/* --- LE CADRAN ENGLOBANT BLANC --- */
.catalog-pole-container-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* L'en-tête du pôle avec la puce ronde dorée */
.pole-rich-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pole-avatar-badge {
    background-color: #bfa361; /* Couleur dorée adoucie */
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.pole-rich-header h2 {
    font-size: 24px;
    color: #0f2c4a;
    font-weight: 700;
    margin: 0;
}

.pole-header-divider-line {
    height: 2px;
    background-color: #bfa361; /* Ligne fine sous le titre du pôle */
    margin-bottom: 30px;
    width: 100%;
}

/* --- LA GRILLE & LES CARTES RICHES --- */
.formations-rich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.formation-rich-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-rich-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

/* 1. Zone Image & Badge en_ligne */
.card-image-wrapper {
    position: relative;
    width: 100%;
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
    aspect-ratio: 21 / 9;
    
}


.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge-format {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    color: #0f2c4a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

/* ====================================================================
   BANNIÈRE BLEUE PRO PARTAGÉE — Réseau & Publications
   (même style que l'entête bleu de la page formations)
   ==================================================================== */
.pro-blue-banner {
    background: linear-gradient(135deg, #0a1a3c, #1e3a6e);
    padding: 34px 0;
}
.pro-blue-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}
.pro-blue-banner-title {
    color: #fff;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0;
}
.pro-blue-banner-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pro-blue-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.pro-blue-nav-link i { color: #e2b13c; }
.pro-blue-nav-link:hover,
.pro-blue-nav-link.active {
    background: #fff;
    color: #0a1a3c;
    border-color: #fff;
}
.pro-blue-nav-link:hover i,
.pro-blue-nav-link.active i { color: #e2b13c; }
@media (max-width: 700px) {
    .pro-blue-banner-inner { flex-direction: column; align-items: flex-start; }
    .pro-blue-banner-nav { width: 100%; }
    .pro-blue-nav-link { flex: 1; justify-content: center; }
}

.floating-badge-parcours {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 44, 74, 0.9);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

/* Ligne durée + prix dans le corps de la carte */
.formation-footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.formation-duration-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.formation-duration-tag i { color: #94a3b8; }

.formation-price-tag {
    font-size: 15px;
    font-weight: 800;
    color: #e2b13c;
}

/* Barre de recherche du catalogue (remplace le breadcrumb) */
.formations-search-bar-wrap {
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
}

.formations-search-bar-wrap i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 14px;
}

.formations-search-bar-wrap input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color .2s;
}

.formations-search-bar-wrap input:focus {
    border-color: #e2b13c;
}

/* Conteneur sticky : SEULE la barre de recherche reste fixe au scroll,
   le titre "Notre catalogue de formation" au-dessus n'est pas concerné. */
.formations-search-sticky-wrap {
    position: -webkit-sticky;
    position: sticky;
    top: 76px; /* juste sous la navbar (min-height: 76px) */
    z-index: 500;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(10,26,60,.05);
    padding: 14px 0;
}
@media (max-width: 900px) {
    .formations-search-sticky-wrap { top: 70px; }
}

/* 2. Corps de la carte */
.card-main-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.formation-theme-title {
    font-size: 18px;
    color: #0f2c4a;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.formation-short-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Icône calendrier et date grise */
.formation-calendar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 25px;
}

.formation-calendar-info i {
    color: #94a3b8;
    font-size: 15px;
}

/* Bouton d'inscription Bleu Nuit identique à la capture */
.btn-card-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f2c4a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    width: fit-content; /* S'adapte à la taille du texte comme sur l'image */
    margin-top: auto;
    transition: background 0.2s;
}

.btn-card-register:hover {
    background: #1e4d7b;
}

/* 3. Pied de carte avec les badges espacés */
.card-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.badge-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-align: center;
}

/* Couleurs exactes de ta capture d'écran */
.bg-yellow-capture {
    background-color: #ffc107;
    color: #000000;
}

.bg-grey-capture {
    background-color: #6c757d;
    color: #ffffff;
}

.bg-cyan-capture {
    background-color: #00d2ff;
    color: #ffffff;
}
/* --- LE TITRE : CENTRAGE PARFAIT --- */
.catalog-main-title {
    color: #1a2b3c;
    font-size: 36px;
    text-align: center; /* Centre le texte */
    font-weight: 700;
    margin: 40px auto; /* Centre le bloc dans la page */
    width: 100%;
    display: block;
}
/*  css pour la zone d'alerte:aucune formation trouvée */

.empty-catalog-card-custom {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-width: 650px;
    margin: 40px auto;
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #fef3c7; /* Fond jaune très doux */
    color: #e2b13c;            /* Rappel du doré d'Intermédia */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px auto;
    animation: pulse-search 2s infinite;
}

.empty-catalog-card-custom h2 {
    color: #1a2b3c;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-catalog-card-custom p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Bouton de réinitialisation interne */
.btn-empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1a2b3c; /* Bleu Corporate */
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(26, 43, 60, 0.15);
    transition: all 0.3s ease;
}

.btn-empty-reset:hover {
    background-color: #e2b13c; /* Passe au doré au survol */
    color: #1a2b3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(226, 177, 60, 0.2);
}

@keyframes pulse-search {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* formulaire page contact */
.contact-page-layout {
    padding: 60px 0;
    background-color: #f8fafc;
}

.contact-grid-container {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto; /* 🔑 Force les lignes à coller au contenu et non à s'étirer */
    gap: 40px;
    align-items: flex-start !important; 
}
/* 🔵 DESIGN COLONNE GAUCHE (DÉGRADÉ) */
.contact-info-card-blue {
    background: linear-gradient(135deg, #0f2c4a 0%, #1e3a6e 100%);
    border-radius: 8px;
    padding: 40px 30px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 44, 74, 0.15);
   /* 🎯 LE DUO STICKY PARFAIT */
    position: -webkit-sticky !important; /* Sécurité pour Safari */
    position: sticky !important;
    top: 100px !important;
    align-self: start !important;        /* 🔥 AJOUT INDISPENSABLE pour briser l'étirement Grid */
}

.contact-info-card-blue h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-info-card-blue .intro-text {
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 40px;
}

.info-items-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 35px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.info-details p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.social-icons-footer {
    display: flex;
    gap: 20px;
}

.social-icons-footer a {
    color: #ffffff;
    font-size: 18px;
    transition: opacity 0.3s;
}

.social-icons-footer a:hover { opacity: 0.7; }

/* ⚪ DESIGN COLONNE DROITE (FORMULAIRE) */
.contact-form-card-white {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    
    /* 🔥 LE CORRECTIF ESSENTIEL */
    height: auto !important; /* 💡 Modifié de 100% à auto pour laisser le formulaire s'étirer naturellement et créer la zone de scroll */
}

.form-card-header-blue {
    background-color: #0c2340;
    padding: 24px 35px;
}

.form-card-header-blue h2 {
    font-size: 22px;
    color: #ffffff !important;
    margin: 0;
    font-weight: 600;
}

.form-padded-body { padding: 35px; }

.form-section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon-badge {
    width: 36px;
    height: 36px;
    background-color: #e6f0fa;
    color: #0f2c4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.form-section-title-wrapper h3 {
    font-size: 18px;
    color: #0c2340;
    font-weight: 700;
    margin: 0;
}

.form-divider-line {
    height: 1px;
    background-color: #f1f5f9;
    margin: 30px 0;
}

.form-inputs-flex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width { grid-column: span 2; }

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #0c2340;
}

.required-star { color: #dc2626; }

.form-group input, .form-group select {
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
}

.form-group input:focus, .form-group select:focus {
    border-color: #0f2c4a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 44, 74, 0.1);
}

.form-group input::placeholder { color: #94a3b8; }

/* ENCADRÉ RGPD BLEU CIEL */
.rgpd-consent-wrapper {
    background-color: #e3f5fc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.rgpd-consent-wrapper h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f2c4a;
    margin: 0 0 15px 0;
}

.rgpd-consent-wrapper p {
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rgpd-consent-wrapper p:last-child { margin-bottom: 0; }

.consent-checkbox-block { margin-bottom: 35px; }
.consent-checkbox-container { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-checkbox-container input { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }
.checkbox-text { font-size: 14px; color: #475569; line-height: 1.5; }

/* BOUTON PLEINE LARGEUR */
.btn-submit-contact-full {
    width: 100%;
    background-color: #0c2340;
    color: #ffffff;
    border: none;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit-contact-full:hover { background-color: #1e3a6e; }

/* ERREURS */
.is-invalid { border-color: #dc2626 !important; }
.error-msg { color: #dc2626; font-size: 12px; font-weight: 600; margin-top: 2px; }

/* FLASH SUCCÈS */
.alert-success-flash {
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-grid-container { grid-template-columns: 1fr; }
    .form-inputs-flex-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: 1; }
}

/* Badges for publication cards (event / article / actualité) - gold theme
   Scoped selector to avoid global conflicts: targets badges inside edc-img-clickable
*/
.edc-img-clickable .edc-type-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #e2b13c; /* gold */
    color: #0c2340;      /* dark text for contrast on gold */
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(226,177,60,0.18);
    text-transform: uppercase;
}

/* Smaller badge on very small screens */
@media (max-width: 480px) {
    .edc-img-clickable .edc-type-badge {
        left: 8px;
        top: 8px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Scoped placeholder selectors so future color variations are easy to implement */
.edc-card a .edc-img-clickable .edc-type-badge,
.edc-card .edc-img-clickable .edc-type-badge {
    /* keep same gold visual — selector present so we can modify later without touching markup */
}

/* ===== PUBLICATIONS GRID - 4 COLONNES PAR LIGNE ===== */
.pub-bloc-gris {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0;
}

@media (max-width: 1400px) {
    .pub-bloc-gris {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .pub-bloc-gris {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pub-bloc-gris {
        grid-template-columns: 1fr;
    }
}





/* Navigation publique responsive + lien admin */
.main-site-navbar {
    border-bottom: 1px solid #edf2f7;
}

.main-site-navbar nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.main-site-navbar .logo {
    color: #0f2c4a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}

.site-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f2c4a;
    font-size: 1.1rem;
    cursor: pointer;
}

.main-site-navbar .main-menu {
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-site-navbar .main-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a2b3c;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 8px;
}

.main-site-navbar .main-menu > li > a:hover {
    background: #f8fafc;
    color: #0f2c4a;
}

.main-site-navbar .admin-menu-link {
    background: #0f2c4a;
    color: #ffffff !important;
}

.main-site-navbar .admin-menu-link:hover {
    background: #1e4d7b !important;
    color: #ffffff !important;
}

@media (max-width: 1040px) {
    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .main-site-navbar nav {
        position: relative;
        min-height: 68px;
    }

    .main-site-navbar .main-menu {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .main-site-navbar .main-menu.is-open {
        display: flex;
    }

    .main-site-navbar .main-menu > li > a {
        width: 100%;
        justify-content: space-between;
        padding: 13px 14px;
    }

    .main-site-navbar .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-left: 3px solid #e2b13c;
        margin: 0 0 8px 8px;
        padding: 2px 0;
        display: none;
    }

    .main-site-navbar .dropdown:hover .dropdown-menu,
    .main-site-navbar .dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

@media (max-width: 560px) {
    .main-site-navbar nav {
        width: min(100% - 20px, 1180px);
        gap: 12px;
    }

    .main-site-navbar .logo {
        font-size: .95rem;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Nouvelle page d'accueil publique */
.home-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.home-hero-carousel {
    position: relative;
    min-height: clamp(520px, 78vh, 760px);
    overflow: hidden;
    background: #0f2c4a;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 900ms ease, transform 5200ms ease;
}

.home-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: clamp(520px, 78vh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.home-hero-content span,
.section-heading span,
.eyebrow {
    color: #e2b13c;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .08em;
}

.home-hero-content h1 {
    max-width: 760px;
    margin: 14px 0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.04;
    color: #ffffff;
}

.home-hero-content p {
    max-width: 620px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.home-hero-content a,
.feature-card a,
.circle-service-card a,
.event-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #0f2c4a;
    background: #e2b13c;
    text-decoration: none;
    font-weight: 800;
    border-radius: 8px;
    padding: 13px 18px;
    margin-top: 22px;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 35, 64, .88), rgba(12, 35, 64, .35));
}

.home-section {
    padding: 48px 0;
    background: #ffffff;
}

.home-featured {
    background: #f8fafc;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2,
.why-grid h2,
.simple-content h2 {
    color: #0f2c4a;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
    margin: 14px 0 0;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card,
.event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 26px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.feature-card h3,
.event-card h3,
.circle-service-card h3 {
    color: #0f2c4a;
    margin: 10px 0;
    line-height: 1.3;
}

.feature-card p,
.event-card p,
.circle-service-card p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.feature-card a,
.event-card a,
.circle-service-card a {
    margin-top: auto;
    background: transparent;
    color: #0f2c4a;
    padding: 16px 0 0;
}

.feature-type,
.event-card span {
    color: #b78b22;
    font-weight: 800;
    font-size: 13px;
}

.circle-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}

.circle-service-card {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-image {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    padding: 8px;
    border: 2px solid #e2b13c;
    margin-bottom: 18px;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.why-choose-us {
    padding: 56px 0;
    background: #f4f7fb;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 48px;
    align-items: center;
}

.why-grid p {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

.why-animation {
    position: relative;
    min-height: 430px;
}

.why-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #0f2c4a;
    color: #e2b13c;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 20px 60px rgba(15, 44, 74, .22);
    z-index: 2;
}

.why-orbit {
    position: absolute;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 10px;
    text-align: center;
    color: #0f2c4a;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .09);
    animation: floatWhy 4s ease-in-out infinite;
    z-index: 1;
}

.why-orbit i {
    color: #e2b13c;
    font-size: 1.5rem;
}

.why-orbit span {
    display: block;
    width: 100%;
    font-weight: 800;
}

.why-orbit.one { left: 8%; top: 10%; }
.why-orbit.two { right: 4%; top: 20%; animation-delay: .7s; }
.why-orbit.three { left: calc(50% - 63px); top: calc(50% + 85px); animation-delay: 1.2s; }

@keyframes floatWhy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.home-stats-band {
    background: linear-gradient(135deg, #0a1a3c 0%, #1e3a6e 100%);
    color: #ffffff;
    padding: 54px 0;
    position: relative;
    z-index: 3;
    margin-top: -32px;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.12);
}
@media (max-width: 600px) {
    .home-stats-band { margin-top: -20px; border-radius: 20px 20px 0 0; padding: 40px 0; }
}

.stats-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.stats-band-grid div {
    border-left: 3px solid #e2b13c;
    padding-left: 20px;
}

.stats-band-grid strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: #e2b13c;
    line-height: 1;
}

.stats-band-grid span {
    display: block;
    margin-top: 8px;
    color: #dbeafe;
    font-weight: 700;
}

.home-testimonials {
    padding: 48px 0;
    background: linear-gradient(135deg, #fef7df, #eaf2fb);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(226, 177, 60, .32);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.testimonial-card p {
    color: #334155;
    line-height: 1.75;
    font-size: 1.02rem;
}

.testimonial-card strong {
    display: block;
    color: #0f2c4a;
    margin-top: 20px;
}

.testimonial-card span {
    color: #b78b22;
    font-weight: 700;
}

.home-events {
    background: #ffffff;
}

.site-footer {
    background: #0c2340;
    color: #dbeafe;
    margin-top: 0;
}

.footer-gold-line {
    height: 5px;
    background: #e2b13c;
}

.footer-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 36px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand h2,
.footer-column h3 {
    color: #ffffff;
    margin-top: 0;
}

.footer-brand h2 {
    color: #e2b13c;
}

.footer-brand p,
.footer-column p {
    line-height: 1.7;
    color: #cbd5e1;
}

.footer-column a {
    display: block;
    color: #dbeafe;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: #e2b13c;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #e2b13c;
    text-decoration: none;
    font-weight: 800;
}

.simple-page-hero {
    background: #0c2340;
    color: #ffffff;
    padding: 86px 0;
}

.simple-page-hero span {
    color: #e2b13c;
    font-weight: 800;
    text-transform: uppercase;
}

.simple-page-hero h1 {
    max-width: 850px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.simple-page-hero p,
.simple-content p {
    max-width: 820px;
    line-height: 1.8;
}

.pagination-wrap {
    margin-top: 30px;
}

@media (max-width: 900px) {
    .why-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .stats-band-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-hero-carousel,
    .home-hero-content {
        min-height: 560px;
    }

    .home-section,
    .why-choose-us,
    .home-testimonials {
        padding: 36px 0;
    }

    .stats-band-grid {
        grid-template-columns: 1fr;
    }

    .why-animation {
        min-height: 400px;
    }

    .why-orbit {
        width: 105px;
        height: 105px;
    }

    .why-orbit.three {
        left: calc(50% - 52.5px);
    }
}
/* ================================================================
   INTERMÉDIA CONSULTING — NOUVELLES RÈGLES CSS
   À COLLER À LA FIN DE public/css/style.css
   ================================================================ */


/* ─────────────────────────────────────────────
   1. NAVBAR STICKY (fixe au scroll)
   ───────────────────────────────────────────── */
.navbar-sticky {
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.navbar-sticky.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 24px rgba(15, 44, 74, .13);
}


/* ─────────────────────────────────────────────
   2. HERO CAROUSEL SOPHISTIQUÉ
   ───────────────────────────────────────────── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(226, 177, 60, 0.18);
    border: 2px solid rgba(226, 177, 60, 0.55);
    color: #e2b13c;
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.25s, border-color 0.25s;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: #e2b13c; color: #0f2c4a; border-color: #e2b13c; }
.hero-arrow-prev { left: 28px; }
.hero-arrow-next { right: 28px; }

.hero-dots {
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    border: 2px solid rgba(226, 177, 60, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}
.hero-dot.is-active { background: #e2b13c; transform: scale(1.35); border-color: #e2b13c; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(226, 177, 60, 0.13);
    border: 1px solid rgba(226, 177, 60, 0.5);
    border-radius: 40px;
    padding: 6px 18px;
    margin-bottom: 18px;
    color: #e2b13c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    width: fit-content;
    backdrop-filter: blur(4px);
}
.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e2b13c;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(0.7); }
}



.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.hero-btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    background: #e2b13c; color: #0f2c4a !important;
    text-decoration: none; font-weight: 800;
    border-radius: 8px; padding: 14px 26px; font-size: 15px;
    transition: background 0.25s, transform 0.2s;
    box-shadow: 0 8px 28px rgba(226, 177, 60, .32);
}
.hero-btn-gold:hover { background: #f0c84a; transform: translateY(-2px); }

.hero-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #ffffff !important;
    text-decoration: none; font-weight: 700;
    border-radius: 8px; border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 22px; font-size: 15px;
    transition: border-color 0.25s, background 0.25s;
}
.hero-btn-ghost:hover { border-color: #e2b13c; color: #e2b13c !important; background: rgba(226,177,60,0.08); }

.hero-slide-number {
    position: absolute; right: 48px; bottom: 38%;
    font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 900;
    color: rgba(255,255,255,0.07); line-height: 1;
    pointer-events: none; user-select: none;
}




/* ─────────────────────────────────────────────
   3. CARDS ARTICLES & FORMATIONS EN VEDETTE
   ───────────────────────────────────────────── */
.section-sub { color: #64748b; margin-top: 8px; font-size: 1rem; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.featured-card {
    background: #ffffff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(15,23,42,.07);
    border: 1px solid #e2e8f0;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(15,23,42,.12); }

.featured-card-img {
    height: 190px; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.featured-card-img-placeholder {
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    display: flex; align-items: center; justify-content: center;
}
.featured-placeholder-icon { font-size: 2.8rem; color: rgba(226,177,60,0.35); }

.featured-tag {
    position: absolute; top: 14px; left: 14px;
    background: #e2b13c; color: #0f2c4a;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em;
    padding: 5px 12px; border-radius: 20px;
}

.featured-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.featured-card-body h3 { color: #0f2c4a; font-size: 1.1rem; line-height: 1.3; margin: 0 0 10px; }
.featured-card-body p  { color: #64748b; font-size: 0.95rem; line-height: 1.65; flex: 1; }
.featured-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; color: #e2b13c; font-weight: 800;
    text-decoration: none; font-size: 14px; transition: gap 0.2s;
}
.featured-link:hover { gap: 12px; }


/* ─────────────────────────────────────────────
   4. "Intermédia Consulting" dans le cercle central
   ───────────────────────────────────────────── */
.why-center {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    padding: 10px;
}
.why-center-text {
    display: block; font-size: 0.72rem; font-weight: 900;
    color: #e2b13c; line-height: 1.3; text-align: center;
}


/* ─────────────────────────────────────────────
   5. BANDEAU STATS
   ───────────────────────────────────────────── */
.stats-item { border-left: 3px solid #e2b13c; padding-left: 20px; }
.stat-icon  { margin-right: 6px; font-size: 0.85em; color: #0a1a3c; }


/* ─────────────────────────────────────────────
   6. TÉMOIGNAGES
   ───────────────────────────────────────────── */
.testimonial-quote-icon { font-size: 1.6rem; color: #e2b13c; margin-bottom: 14px; opacity: 0.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    background: #0f2c4a; display: grid; place-items: center;
    overflow: hidden; flex-shrink: 0; border: 2px solid #e2b13c;
    position: relative;
}
.testimonial-avatar img  { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar span { color: #e2b13c; font-weight: 900; font-size: 1.1rem; }
.testimonial-company-badge {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    overflow: hidden;
    display: grid; place-items: center;
}
.testimonial-company-badge img { width: 100%; height: 100%; object-fit: contain; }
.testimonial-author strong { display: block; color: #0f2c4a; font-size: 0.95rem; margin-top: 0; }
.testimonial-author span   { color: #b78b22; font-size: 0.85rem; font-weight: 700; }


/* ─────────────────────────────────────────────
   7. ÉVÉNEMENTS — 3 cartes
   ───────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 900px) { .events-grid { grid-template-columns: 1fr; } }

.event-card-new {
    display: flex; gap: 20px;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 26px;
    box-shadow: 0 6px 22px rgba(15,23,42,.06);
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: flex-start;
}
.event-card-new:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(15,23,42,.11); }
.event-card-placeholder { opacity: 0.7; border-style: dashed; }

.event-card-date {
    min-width: 60px; text-align: center;
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    border-radius: 10px; padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.event-day   { font-size: 1.55rem; font-weight: 900; color: #e2b13c; line-height: 1; }
.event-month { font-size: 0.72rem; color: #dbeafe; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-card-body { flex: 1; }
.event-card-body h3 { color: #0f2c4a; font-size: 1rem; margin: 0 0 8px; line-height: 1.3; }
.event-card-body p  { color: #64748b; font-size: 0.92rem; line-height: 1.6; margin: 0; }
.event-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px; color: #e2b13c; font-weight: 800;
    font-size: 13px; text-decoration: none; transition: gap 0.2s;
}
.event-link:hover { gap: 10px; }


/* ─────────────────────────────────────────────
   8. FOOTER — titres dorés + encadré adresse
   ───────────────────────────────────────────── */
.footer-column-gold h3 {
    color: #e2b13c !important;
    font-size: 1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 2px solid rgba(226,177,60,0.3);
    padding-bottom: 8px; margin-bottom: 14px;
}
.footer-address-box {
    background: rgba(226,177,60,0.08);
    border: 1px solid rgba(226,177,60,0.25);
    border-radius: 10px; padding: 20px 18px;
}
.footer-address-box p   { color: #cbd5e1 !important; font-size: 0.92rem; line-height: 1.7; margin: 0 0 6px; }
.footer-address-box a   { color: #e2b13c !important; }
.footer-brand h2 { color: #e2b13c !important; font-size: 1.3rem; }
/* ===== Style du Logo dans le Footer ===== */
.logo-img-footer {
    display: block;
    height: 70px;             /* 💡 On force une hauteur fixe et basse pour réduire la boîte */
    width: auto;              /* Laisse la largeur s'adapter proportionnellement */
    max-width: 100%;
    object-fit: contain;      /* Garantit que le logo n'est JAMAIS déformé ou écrasé */
    background-color: #ffffff; /* Conserve le fond blanc proprement si l'image est transparente */
    padding: 8px 16px;        /* 💡 Crée un fond blanc rectangulaire (plus large que haut) */
    border-radius: 4px;       /* Un léger arrondi pour l'élégance */
    margin-bottom: 20px;      /* Espace propre avec le texte du dessous */
}

.logo-img-footer:hover {
    opacity: 0.9;             /* Légère variation au survol */
}



/* ─────────────────────────────────────────────
   9. EN-TÊTES DE PAGE AVEC IMAGE
   ───────────────────────────────────────────── */
.page-hero-img {
    position: relative; min-height: 360px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding-bottom: 0;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(170deg, rgba(12,35,64,.82) 0%, rgba(12,35,64,.60) 55%, rgba(12,35,64,.78) 100%);
}
.page-hero-content {
    position: relative; z-index: 2; color: #ffffff; padding-top: 0;
}
.page-hero-content h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    line-height: 1.1; margin: 12px 0 22px; max-width: 820px;
}
.page-hero-content .eyebrow {
    color: #0f2c4a; font-weight: 800; text-transform: uppercase;
    font-size: 13px; letter-spacing: .08em;
}


/* ─────────────────────────────────────────────
   ÉVÉNEMENTS — cartes verticales avec image
   ───────────────────────────────────────────── */
.event-card-vertical {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.event-card-img {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    width: 100%;
    flex-shrink: 0;
    border-radius: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}
.event-card-img-placeholder {
    background: linear-gradient(135deg, #0f2c4a 0%, #1e4d7b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,35,64,0.15) 0%, rgba(12,35,64,0.65) 100%);
}
.event-date-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    /* écrase le style horizontal existant */
    flex-direction: column !important;
    min-width: unset;
}
.event-placeholder-icon {
    font-size: 3rem;
    color: rgba(226, 177, 60, 0.25);
    position: absolute;
    bottom: 16px;
    right: 16px;
}

/* body de la carte verticale */
.event-card-vertical .event-card-body {
    padding: 22px 24px 24px;
}


/* ─────────────────────────────────────────────
   CARTES FORMATION — page service (avec image)
   ───────────────────────────────────────────── */
.formation-card-ery {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 22px rgba(15,23,42,.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.formation-card-ery:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
}

.formation-card-img-ery {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
}
.formation-card-img-ery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.formation-card-ery:hover .formation-card-img-ery img {
    transform: scale(1.05);
}
.formation-card-img-placeholder-ery {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    font-size: 2.5rem; color: rgba(226,177,60,0.3);
}
.formation-badge-format {
    position: absolute; top: 12px; left: 12px;
    background: #e2b13c; color: #0f2c4a;
    font-size: 10px; font-weight: 800;
    letter-spacing: .06em; padding: 4px 10px;
    border-radius: 20px;
}

.formation-card-content-ery { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.formation-title-ery { color: #0f2c4a; font-size: 1rem; font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.formation-desc-ery  { color: #64748b; font-size: 0.9rem; line-height: 1.6; flex: 1; margin: 0 0 14px; }

.formation-footer-ery {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    margin-top: auto; flex-wrap: wrap;
}
.formation-time-ery {
    display: flex; align-items: center; gap: 6px;
    color: #0f2c4a; font-size: 0.85rem; font-weight: 700;
}
.formation-time-ery i { color: #e2b13c; }


/* ─────────────────────────────────────────────
   BLOC FORMATIONS VEDETTE accueil — bouton inscrit
   ───────────────────────────────────────────── */
.feat-duration {
    display: inline-flex; align-items: center; gap: 6px;
    color: #64748b; font-size: 0.82rem; font-weight: 600;
    margin-bottom: 8px;
}
.feat-duration i { color: #e2b13c; }

.feat-inscrit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 22px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    width: fit-content;
}


/* ================================================================
   ASPECT-RATIO — RENDU VISUEL GARANTI SANS PHOTOSHOP
   ================================================================
   Ces règles s'appliquent à chaque zone du site.
   L'image se recadre automatiquement au centre sans jamais
   s'étirer, quelle que soit sa dimension d'origine.
   ================================================================ */


/* ─────────────────────────────────────────────
   HERO / BANNIÈRES D'EN-TÊTE
   Ratio idéal à générer sur l'IA : 16:9 ou 21:9
   ───────────────────────────────────────────── */
.home-hero-slide,
.page-hero-img,
.formation-show-header {
    aspect-ratio: unset;           /* la hauteur min est déjà définie */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* ─────────────────────────────────────────────
   CARTES FORMATIONS — image en haut de carte
   Ratio à générer sur l'IA : 16:9
   ───────────────────────────────────────────── */
.featured-card-img,
.formation-card-img-ery {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto !important;       /* laisse l'aspect-ratio piloter */
    overflow: hidden;
    display: block;
}
/* Pour les balises <img> à l'intérieur */
.formation-card-img-ery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    aspect-ratio: 16 / 9;
}


/* ─────────────────────────────────────────────
   CARTES ÉVÉNEMENTS — image en haut de carte
   Ratio à générer sur l'IA : 16:9
   ───────────────────────────────────────────── */
.event-card-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto !important;
    background-size: cover !important;
    background-position: center center !important;
}


/* ─────────────────────────────────────────────
   CERCLES "NOS PRESTATIONS" — portraits/icônes
   Ratio à générer sur l'IA : 1:1 (carré)
   ───────────────────────────────────────────── */
.circle-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;   /* garde le visage/sujet principal en haut */
}


/* ─────────────────────────────────────────────
   TÉMOIGNAGES — avatar photo
   Ratio à générer sur l'IA : 1:1 (carré)
   ───────────────────────────────────────────── */
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 1 / 1;
}


/* ─────────────────────────────────────────────
   LOGOS PARTENAIRES & CLIENTS
   Pas besoin d'un ratio fixe — on contient le logo
   ───────────────────────────────────────────── */
.partner-logo-img,
.client-logo-img {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;           /* pas de recadrage — le logo entier visible */
    object-position: center;
    filter: grayscale(30%);
    transition: filter 0.3s;
}
.partner-logo-img:hover,
.client-logo-img:hover {
    filter: grayscale(0%);
}


/* ─────────────────────────────────────────────
   LOGO INTERMÉDIA CONSULTING (navbar/footer)
   Fichier PNG fond transparent recommandé
   ───────────────────────────────────────────── */
.site-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}


/* ================================================================
   GESTION UNIVERSELLE DES IMAGES — aspect-ratio
   Fonctionne quelle que soit la dimension originale de l'image
   ================================================================ */

/* ── Hero / bannières d'en-tête (très larges) ── */
.home-hero-slide,
.formation-show-header,
.page-hero-img {
    aspect-ratio: 32 / 9;       /* ultra-wide bannière */
    min-height: 420px;           /* plancher de sécurité sur mobile */
    background-size: cover !important;
    background-position: center center !important;
    object-fit: cover;
}

/* ── Images cartes formations & services ── */
.featured-card-img,
.formation-card-img-ery,
.event-card-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto !important;     /* on laisse l'aspect-ratio décider */
    background-size: cover !important;
    background-position: center center !important;
    overflow: hidden;
}
/* balise <img> à l'intérieur des cartes */
.formation-card-img-ery img,
.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Cercles équipe / partenaires / prestations ── */
.circle-image,
.testimonial-avatar {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}
.circle-image img,
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;  /* centre sur le visage */
}

/* ── Logo Intermédia Consulting dans la navbar ── */
.main-site-navbar .logo img,
.logo-img-navbar {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* ── Logos partenaires / clients ── */
.partner-logo img,
.client-logo img {
    max-height: 80px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s;
}
.partner-logo img:hover,
.client-logo img:hover {
    filter: grayscale(0%);
}

/* ── Fallback : toute image orpheline dans le contenu ── */
.simple-content img,
.home-container img:not(.circle-image img):not(.testimonial-avatar img) {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
/* ================================================================
   PAGES RÉSEAU — Experts / Partenaires / Clients
   ================================================================ */

/* ── Sections de base ── */
.rn-intro-section {
    padding: 64px 0 48px;
    background: #ffffff;
}
.rn-intro-head { margin-bottom: 28px; }
.rn-intro-head h2 { color: #0f2c4a; margin: 10px 0 16px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.rn-intro-lead { color: #4a5568; font-size: 1.05rem; line-height: 1.8; max-width: 760px; }

.rn-intro-pills {
    display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px;
}
.rn-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f0f4f8; border: 1px solid #e2e8f0;
    color: #0f2c4a; font-weight: 700; font-size: 14px;
    padding: 10px 20px; border-radius: 40px; text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rn-pill:hover { background: #e2b13c; border-color: #e2b13c; color: #0f2c4a; }
.rn-pill i { color: #e2b13c; transition: color 0.2s; }
.rn-pill:hover i { color: #0f2c4a; }

/* ── Blocs alternés ── */
.rn-bloc { padding: 72px 0; }
.rn-bloc-white { background: #ffffff; }
.rn-bloc-gray  { background: #f4f7fa; }

.rn-bloc-header {
    display: flex; align-items: flex-start; gap: 22px; margin-bottom: 44px;
}
.rn-bloc-icon-wrap {
    width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    display: grid; place-items: center; font-size: 1.4rem; color: #e2b13c;
}
.rn-bloc-icon-gold { background: linear-gradient(135deg, #c8962a, #e2b13c) !important; color: #ffffff !important; }
.rn-bloc-header h2 { margin: 6px 0 10px; color: #0f2c4a; font-size: clamp(1.5rem, 3vw, 2rem); }
.rn-bloc-desc { color: #4a5568; font-size: 1rem; line-height: 1.7; max-width: 680px; }

/* ── Grille experts ── */
.rn-experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}
.rn-expert-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px rgba(15,23,42,.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.rn-expert-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.rn-expert-photo {
    height: 200px; overflow: hidden; background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
}
.rn-expert-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transition: transform 0.4s;
}
.rn-expert-card:hover .rn-expert-photo img { transform: scale(1.04); }
.rn-expert-body { padding: 20px; flex: 1; }
.rn-expert-body h3 { color: #0f2c4a; font-size: 1.05rem; font-weight: 800; margin: 0 0 5px; }
.rn-expert-specialty {
    display: inline-block; background: #e2b13c; color: #0f2c4a;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.rn-expert-body p { color: #64748b; font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ── CTA zone experts (logo gauche + bloc blanc droite) ── */
.expert-cta-zone {
    display: flex; align-items: stretch;
    background: #e8edf2; border-radius: 18px;
    overflow: hidden; margin-top: 20px;
    box-shadow: 0 8px 32px rgba(15,23,42,.08);
}
.expert-cta-logo-side {
    min-width: 220px; width: 28%;
    background: #e8edf2;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 30px;
}
.expert-cta-logo {
    max-width: 160px; width: 100%; height: auto; object-fit: contain;
}
.expert-cta-content-side {
    flex: 1;
    background: #ffffff;
    padding: 40px 44px;
    display: flex; flex-direction: column; justify-content: center;
    border-left: 4px solid #e2b13c;
}
.expert-cta-content-side h3 {
    color: #0f2c4a; font-size: 1.4rem; font-weight: 800; margin: 0 0 14px;
}
.expert-cta-content-side p {
    color: #4a5568; font-size: 0.98rem; line-height: 1.75; margin: 0 0 28px;
}
.expert-cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.expert-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 15px; border-radius: 8px;
    padding: 13px 24px; text-decoration: none; transition: transform 0.2s, background 0.2s;
}
.expert-cta-btn:hover { transform: translateY(-2px); }
.expert-cta-btn-blue {
    background: #0f2c4a; color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15,44,74,.22);
}
.expert-cta-btn-blue:hover { background: #1e4d7b; }
.expert-cta-btn-gold {
    background: #e2b13c; color: #0f2c4a !important;
    box-shadow: 0 6px 20px rgba(226,177,60,.28);
}
.expert-cta-btn-gold:hover { background: #f0c84a; }

/* ── Partenaires grille ── */
.rn-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
}
.rn-partners-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}
.rn-partner-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 28px 20px; border-radius: 14px;
    background: #fff; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    text-decoration: none; color: #0f2c4a;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.rn-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15,23,42,.12);
    border-color: #e2b13c;
}
.rn-partner-card-large { padding: 36px 24px; }
.rn-partner-logo {
    width: 100%; max-height: 90px;
    display: flex; align-items: center; justify-content: center;
}
.rn-partner-logo-large { max-height: 110px; }
.rn-partner-logo img {
    max-height: 90px; max-width: 100%; object-fit: contain;
}
.rn-partner-logo-large img { max-height: 110px; }
.rn-partner-logo-placeholder {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    display: grid; place-items: center;
    font-size: 2rem; color: rgba(226,177,60,0.5);
}
.rn-partner-name {
    font-weight: 800; font-size: 1rem; color: #0f2c4a; text-align: center;
}
.rn-partner-visit {
    font-size: 12px; font-weight: 700; color: #e2b13c;
    display: flex; align-items: center; gap: 5px;
}

/* ── État vide ── */
.rn-empty-state {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 48px; color: #94a3b8; text-align: center;
    grid-column: 1 / -1;
}
.rn-empty-state i { font-size: 2.5rem; color: #cbd5e1; }

/* ── Défilement logos clients ── */
.clients-logos-section { overflow: hidden; }
.logos-scroll-track-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.logos-scroll-track {
    display: flex; align-items: center; gap: 48px;
    width: max-content;
    animation: logosScroll 50s linear infinite;
}
.logos-scroll-track:hover { animation-play-state: paused; }

@keyframes logosScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logos-scroll-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-width: 130px;
}
.logos-scroll-item img {
    max-height: 70px; max-width: 130px; object-fit: contain;
    filter: grayscale(30%); transition: filter 0.3s;
}
.logos-scroll-item:hover img { filter: grayscale(0%); }
.logos-scroll-item span {
    font-size: 12px; font-weight: 700; color: #64748b;
    text-align: center; white-space: nowrap;
}
.logos-scroll-placeholder { }
.logos-placeholder-circle {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    display: grid; place-items: center;
    color: #e2b13c; font-weight: 900; font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .expert-cta-zone { flex-direction: column; }
    .expert-cta-logo-side { width: 100%; min-width: unset; padding: 30px; }
    .expert-cta-content-side { padding: 28px; border-left: none; border-top: 4px solid #e2b13c; }
    .rn-experts-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .rn-partners-grid, .rn-partners-grid-large { grid-template-columns: repeat(2, 1fr); }
}
/* ================================================================
   AJOUT SEULEMENT — coller après la dernière ligne du style.css
   NE PAS remplacer ce qui existe déjà
   ================================================================ */


/* ── Centrage contenu pages intérieures (À propos, Réseau, Publications) ── */
.page-hero-content {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}
.page-hero-content h1     { text-align: center; }
.page-hero-content .eyebrow { text-align: center; display: block; }


/* ── Formations header : texte au-dessus du breadcrumb ── */
.formations-hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}
.formations-hero-content .breadcrum-container { justify-content: center; }


/* ── Services list : intro titre + texte avant la grille ── */
.services-list-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
    padding-top: 16px;
}
.services-list-intro .eyebrow {
    color: #0f2c4a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}
.services-list-intro h2 { color: #0f2c4a; font-size: clamp(1.6rem,3vw,2.2rem); margin: 0 0 16px; }
.services-list-intro p  { color: #4a5568; font-size: 1rem; line-height: 1.8; }


/* ── Publications : page intro ── */
.pub-intro-section { padding: 60px 0 44px; background: #ffffff; }
.pub-intro-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.pub-intro-head h2 { color: #0f2c4a; font-size: clamp(1.7rem,3.5vw,2.4rem); margin: 10px 0 16px; }
.pub-intro-lead { color: #4a5568; font-size: 1.05rem; line-height: 1.8; }

.pub-intro-pills { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.pub-type-pill {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 14px;
    padding: 11px 22px; border-radius: 40px; text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pub-type-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.12); }
.pub-pill-actualite { background: #0f2c4a; color: #ffffff !important; border-color: #0f2c4a; }
.pub-pill-actualite:hover { background: #1e4d7b; border-color: #1e4d7b; }
.pub-pill-article   { background: #e2b13c; color: #0f2c4a !important; border-color: #e2b13c; }
.pub-pill-article:hover { background: #f0c84a; border-color: #f0c84a; }
.pub-pill-event     { background: #ffffff; color: #0f2c4a !important; border: 2px solid #0f2c4a; }
.pub-pill-event:hover { background: #f0f4f8; }

/* ── Publications : section contenu ── */
.pub-content-section { padding: 56px 0 64px; background: #ffffff; }

.pub-type-intro { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
.pub-type-icon {
    width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    display: grid; place-items: center;
    font-size: 1.4rem; color: #e2b13c;
}
.pub-type-intro h2 { color: #0f2c4a; margin: 0 0 8px; font-size: clamp(1.4rem,2.5vw,1.9rem); }
.pub-type-intro p  { color: #4a5568; font-size: 0.98rem; line-height: 1.7; margin: 0; max-width: 640px; }

/* Bloc gris */
.pub-bloc-gris {
    background: #f0f4f8;
    border-radius: 16px;
    padding: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Cartes */
.pub-card {
    background: #ffffff; border-radius: 12px; overflow: hidden;
    border: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(15,23,42,.06);
    display: flex; flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(15,23,42,.11); }
.pub-card-img {
    height: 170px; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.pub-card-img-placeholder {
    background: linear-gradient(135deg, #0f2c4a, #1e4d7b);
    display: flex; align-items: center; justify-content: center;
}
.pub-placeholder-icon { font-size: 2.5rem; color: rgba(226,177,60,.3); }
.pub-card-tag {
    position: absolute; top: 12px; left: 12px;
    background: #e2b13c; color: #0f2c4a;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 3px 10px; border-radius: 20px;
}
.pub-card-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pub-card-date { color: #94a3b8; font-size: 12px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.pub-card-body h3 { color: #0f2c4a; font-size: 1rem; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.pub-card-body p  { color: #64748b; font-size: 0.9rem; line-height: 1.6; margin: 0; }

.pub-empty-state {
    grid-column: 1/-1;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 48px; color: #94a3b8; text-align: center;
}
.pub-empty-state i { font-size: 2.5rem; color: #cbd5e1; }

/* Bloc vidéos */
.pub-videos-bloc { margin-top: 60px; }
.pub-videos-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.pub-videos-header i { font-size: 1.8rem; color: #e2b13c; flex-shrink: 0; margin-top: 4px; }
.pub-videos-header h2 { color: #0f2c4a; margin: 0 0 8px; font-size: clamp(1.4rem,2.5vw,1.9rem); }
.pub-videos-header p  { color: #4a5568; font-size: 0.98rem; line-height: 1.7; margin: 0; }
.pub-videos-grid {
    background: #f0f4f8; border-radius: 16px; padding: 36px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px;
}
.pub-video-placeholder {
    grid-column: 1/-1;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 60px; color: #94a3b8; text-align: center;
}
.pub-video-placeholder i { font-size: 3rem; color: #cbd5e1; }

/* Responsive */
@media (max-width: 768px) {
    .pub-bloc-gris, .pub-videos-grid { padding: 20px; gap: 16px; }
}

/* ================================================================
   BLOC VIDÉOS ÉVÉNEMENTS PASSÉS — accueil
   ================================================================ */
.home-event-videos { background: #f5f3f3; padding: 72px 0; }
.home-event-videos .section-heading span { color: #0f2c4a; }
.home-event-videos .section-heading h2   { color: #0f2c4a; }
.home-event-videos .section-sub          { color: #4a5568; }

.event-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.event-video-card {
    background: #132d4e;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226,177,60,.18);
    transition: transform .3s, box-shadow .3s;
}
.event-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    border-color: rgba(226,177,60,.45);
}
.event-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.event-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.event-video-body { padding: 18px 20px 22px; }
.event-video-body h3 { color: #ffffff; font-size: 1rem; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.event-video-body p  { color: #94a3b8; font-size: .88rem; line-height: 1.6; margin: 0; }

/* Pub video card dans page événements */
.pub-video-card {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
}
.pub-video-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .event-videos-grid { grid-template-columns: 1fr; gap: 20px; }
    .home-event-videos { padding: 48px 0; }
}
/* ─────────────────────────────────────────────
   RESPONSIVE GLOBAL — mobile first
   Couvre tout le site sans exception
   ───────────────────────────────────────────── */

/* ── Base : overflow caché sur body pour éviter scroll horizontal ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* ── Conteneurs ── */
.home-container,
.container {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* ── Images globales ── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Tableaux ── */
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* ════════════════════════════════════════════
   BREAKPOINT 1024px — tablettes paysage
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Hero carousel */
    .home-hero-slide,
    .home-hero-carousel { min-height: 480px; }
    .home-hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
    .hero-slide-number { display: none; }

    /* Featured grid */
    .featured-grid { grid-template-columns: repeat(2, 1fr); }

    /* Events grid */
    .events-grid { grid-template-columns: repeat(2, 1fr); }

    /* Services circles */
    .circle-services-grid { grid-template-columns: repeat(3, 1fr); }

    /* Why choose us */
    .why-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .why-animation { min-height: 430px; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr 1fr !important; gap: 28px; }

    /* Expert CTA zone */
    .expert-cta-zone { flex-direction: column; }
    .expert-cta-logo-side { width: 100%; padding: 28px; }
    .expert-cta-content-side { border-left: none; border-top: 4px solid #e2b13c; padding: 28px; }
}


/* ════════════════════════════════════════════
   BREAKPOINT 768px — tablettes portrait / grands mobiles
   ════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Sections ── */
    .home-section,
    .why-choose-us,
    .home-testimonials,
    .rn-bloc,
    .pub-content-section,
    .rn-intro-section { padding: 48px 0; }

    /* ── Hero ── */
    .home-hero-slide,
    .home-hero-carousel { min-height: 420px; }
    .home-hero-content { padding: 0 20px; }
    .home-hero-content h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .home-hero-content p  { font-size: 0.95rem; }
    .hero-arrow { width: 40px; height: 40px; font-size: 0.9rem; }
    .hero-arrow-prev { left: 12px; }
    .hero-arrow-next { right: 12px; }
    .hero-cta-group { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* ── Bannières pages intérieures ── */
    .page-hero-img { min-height: 280px; }
    .page-hero-content h1 { font-size: clamp(1.4rem, 5vw, 2rem); }

    .formation-show-header { min-height: 280px; }

    /* ── Formations page header ── */
    .formations-page-header { aspect-ratio: 16/9 !important; }
    .formations-hero-content { padding: 0 16px; }
    .formations-hero-content h1 { font-size: clamp(1.3rem, 5vw, 1.8rem) !important; }

    /* ── Featured / articles ── */
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card-img { height: 160px; }

    /* ── Events ── */
    .events-grid { grid-template-columns: 1fr; }

    /* ── Stats ── */
    .stats-band-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }

    /* ── Témoignages ── */
    .testimonial-grid { grid-template-columns: 1fr; }

    /* ── Cercles prestations ── */
    .circle-services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .circle-service-card { padding: 16px; }

    /* ── Services grille ── */
    .services-grid { grid-template-columns: 1fr !important; }
    .sub-services-grid-ery { grid-template-columns: 1fr !important; }

    /* ── Formations catalogue ── */
    .catalog-layout-wrapper { grid-template-columns: 1fr !important; }
    .formations-grid-ery { grid-template-columns: 1fr !important; }

    /* ── Contact ── */
    .contact-grid-container { grid-template-columns: 1fr !important; }
    .contact-left-sticky-wrap { position: static; }
    .form-inputs-flex-grid { grid-template-columns: 1fr !important; }
    .form-group.full-width { grid-column: 1 !important; }
    .contact-page-layout { padding: 32px 0; }

    /* ── Notre Réseau ── */
    .rn-experts-grid { grid-template-columns: repeat(2, 1fr); }
    .rn-partners-grid,
    .rn-partners-grid-large { grid-template-columns: repeat(2, 1fr); }
    .rn-bloc-header { flex-direction: column; gap: 14px; }

    /* ── Publications ── */
    .pub-bloc-gris { padding: 20px; gap: 16px; grid-template-columns: 1fr; }
    .pub-intro-pills { flex-direction: column; align-items: center; }
    .pub-type-intro { flex-direction: column; gap: 12px; }
    .pub-videos-grid { padding: 20px; grid-template-columns: 1fr; }

    /* ── Footer ── */
    .footer-container { grid-template-columns: 1fr !important; gap: 24px; padding: 36px 0 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

    /* ── Admin layout ── */
    .admin-sidebar { transform: translateX(-100%); }
    .admin-content { margin-left: 0 !important; }

    /* ── Breadcrumb ── */
    .breadcrumb-pill {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 14px;
        gap: 4px;
    }
}


/* ════════════════════════════════════════════
   BREAKPOINT 480px — mobiles standards
   ════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* ── Hero ── */
    .home-hero-slide,
    .home-hero-carousel { min-height: 380px; }
    .home-hero-content h1 { font-size: clamp(1.3rem, 7vw, 1.8rem); }
    .hero-btn-gold { padding: 12px 20px; font-size: 14px; }
    .hero-dots { bottom: 60px; }

    /* ── Stats ── */
    .stats-band-grid { grid-template-columns: 1fr !important; }
    .stats-item strong { font-size: 2rem; }

    /* ── Cercles ── */
    .circle-services-grid { grid-template-columns: 1fr !important; }

    /* ── Experts ── */
    .rn-experts-grid { grid-template-columns: 1fr; }
    .rn-partners-grid,
    .rn-partners-grid-large { grid-template-columns: 1fr; }

    /* ── Contact ── */
    .contact-info-card-blue { padding: 24px 18px; }
    .contact-info-card-blue h2 { font-size: 22px; }
    .btn-submit-contact-full { font-size: 15px; padding: 14px; }

    /* ── Bannières ── */
    .page-hero-img { min-height: 240px; }
    .page-hero-content h1 { font-size: 1.3rem; }

    /* ── Section headings ── */
    .section-heading h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }

    /* ── Formation show header ── */
    .formation-show-header { min-height: 240px; }

    /* ── Services show ── */
    .service-show-header { min-height: 240px; }

    /* ── Footer ── */
    .footer-container { padding: 28px 0 20px; }
}


/* ════════════════════════════════════════════
   BREAKPOINT 360px — très petits mobiles
   ════════════════════════════════════════════ */
@media (max-width: 360px) {

    .home-hero-content h1 { font-size: 1.2rem; }
    .hero-btn-gold { width: 100%; justify-content: center; }
    .section-heading h2 { font-size: 1.2rem; }
    .page-hero-content h1 { font-size: 1.1rem; }
    .breadcrumb-pill { font-size: 11px; padding: 6px 10px; }
    .contact-info-card-blue { padding: 18px 14px; }
    .why-orbit { width: 90px; height: 90px; font-size: 0.6rem; }
    .why-center { width: 100px; height: 100px; }
    .why-center-text { font-size: 0.6rem; }
    .why-animation { min-height: 330px; }
    .why-orbit.three { left: calc(50% - 45px); top: calc(50% + 70px); }
}


/* ============================================================
   IMC — PATCH CSS COMPLET ET NETTOYÉ
   À COLLER À LA FIN DE public/css/style.css
   (remplace l'ancienne version du patch en entier)
   ============================================================ */


/* ====================================================================
   1. BANNIÈRES D'EN-TÊTE STANDARD (toutes les pages : À propos,
      Services, Réseau, Experts, Partenaires, Clients, Publications…)
   ==================================================================== */
.page-banner {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    width: 100%;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,26,60,0.82) 0%, rgba(10,26,60,0.55) 100%);
}
.page-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 24px;
    color: #fff;
    box-sizing: border-box;
}
.page-banner-content h1 {
    font-size: clamp(1.35rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 10px 0 20px;
    line-height: 1.25;
    word-wrap: break-word;
}
.page-banner-content p {
    color: #e2e8f0;
    font-size: 1rem;
    max-width: 580px;
    margin-bottom: 20px;
}
.services-banner { min-height: 300px; }

/* Breadcrumb pill : doit pouvoir wrapper sur petit écran */
.breadcrumb-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    row-gap: 4px;
}
.breadcrumb-pill .separator { opacity: .6; }

@media (max-width: 768px) {
    .page-banner { min-height: 240px; }
    .page-banner-content { padding: 32px 18px; }
}
@media (max-width: 480px) {
    .page-banner { min-height: 210px; }
    .page-banner-content { padding: 26px 16px; }
    .page-banner-content h1 { font-size: 1.25rem; margin: 8px 0 14px; }
    .page-banner-content p { font-size: .9rem; }
    .breadcrumb-pill { font-size: .72rem; }
}


/* ====================================================================
   1bis. CORRECTIF .page-hero-img (ancienne classe encore utilisée sur
   certaines pages comme team.blade.php) — le CSS d'origine impose
   aspect-ratio:32/9 + min-height:420px, ce qui rend la bannière trop
   haute sur mobile et peut faire passer le texte hors-cadre. On force
   un comportement raisonnable, sans toucher à la mise en page desktop.
   ==================================================================== */
@media (max-width: 768px) {
    .page-hero-img {
        aspect-ratio: unset !important;
        min-height: 260px !important;
        padding: 24px 0 !important;
    }
    .page-hero-content {
        padding: 0 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-hero-content h1 {
        font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
        margin: 8px 0 14px !important;
        word-wrap: break-word !important;
    }
    .page-hero-content .eyebrow { font-size: 11px !important; }
    .breadcrumb-pill { font-size: 11px !important; flex-wrap: wrap; row-gap: 4px; }
}
@media (max-width: 480px) {
    .page-hero-img {
        aspect-ratio: unset !important;
        min-height: 220px !important;
    }
    .page-hero-content {
        padding: 0 14px !important;
    }
    .page-hero-content h1 {
        font-size: 1.1rem !important;
    }
}

/* Onglets internes Réseau (Experts / Partenaires / Clients) — wrap mobile */
@media (max-width: 600px) {
    .reseau-tabs {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .reseau-tabs .tab-item {
        padding: 8px 12px !important;
        font-size: .85rem !important;
    }
}


/* ====================================================================
   2. ACCUEIL — HERO BANNIÈRE SLIDER (relais des 4 images de service)
   ==================================================================== */
.hero-banner-slider {
    position: relative;
    min-height: 340px;      /* s'adapte au contenu, ne coupe jamais le texte */
    overflow: hidden;
    width: 100%;
    border-radius: 0 0 28px 28px;
}
.hbs-slide {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    min-height: 340px;
}
.hbs-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.hbs-slide:not(.active) { position: absolute; }

.hbs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,15,40,0.82) 0%, rgba(5,15,40,0.45) 70%, rgba(5,15,40,0.25) 100%);
}
.hbs-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 56px 24px;
    box-sizing: border-box;
}
.hbs-content .eyebrow {
    display: inline-block;
    background: #e2b13c;
    color: #0a1a3c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    width: fit-content;
}
.hbs-content h1 {
    font-size: clamp(1.3rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.25;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.hbs-content .hero-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-outline-white {
    display: inline-flex; align-items: center; gap:8px;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff; font-weight:700; font-size:.85rem;
    padding: 9px 20px; border-radius: 30px;
    text-decoration: none; transition: background .2s, border-color .2s;
    white-space: nowrap;
}
.hero-btn-outline-white:hover { background:rgba(255,255,255,0.15); border-color:#fff; }

/* Flèches du slider */
.hbs-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 15px;
    transition: background .2s, border-color .2s, color .2s;
}
.hbs-arrow:hover { background: #e2b13c; border-color: #e2b13c; color: #0a1a3c; }
.hbs-prev { left: 16px; }
.hbs-next { right: 16px; }

.hbs-dots {
    position: absolute;
    bottom: 16px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 7px;
    z-index: 10;
}
.hbs-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer; padding: 0;
    transition: background .25s, transform .25s;
}
.hbs-dot.active { background: #e2b13c; transform: scale(1.45); }

@media (max-width: 900px) {
    .hero-banner-slider { min-height: 380px; }
    .hbs-slide { min-height: 380px; }
    .hbs-content { padding: 48px 20px; }
}
@media (max-width: 600px) {
    .hero-banner-slider { min-height: 340px; border-radius: 0 0 20px 20px; }
    .hbs-slide { min-height: 340px; }
    .hbs-content { padding: 40px 18px 56px; }
    .hbs-content h1 { font-size: 1.35rem; margin-bottom: 14px; }
    .hbs-content .eyebrow { font-size: 10px; padding: 3px 11px; }
    .hero-btn-gold, .hero-btn-outline-white { font-size: .8rem; padding: 8px 16px; }
    .hbs-prev { left: 8px; } .hbs-next { right: 8px; }
    .hbs-arrow { width: 36px; height: 36px; font-size: 13px; }
}
@media (max-width: 380px) {
    .hero-banner-slider { min-height: 320px; }
    .hbs-slide { min-height: 320px; }
    .hbs-content .hero-banner-actions { flex-direction: column; align-items: flex-start; }
    .hbs-content .hero-banner-actions a { width: 100%; justify-content: center; }
}


/* ====================================================================
   3. CAROUSEL SERVICES SUR ACCUEIL (hc = home carousel)
   ==================================================================== */
.hero-carousel-section { background:#fff; }
.hc-outer { position:relative; display:flex; align-items:center; gap:0; }
.hc-viewport { overflow:hidden; flex:1; }
.hc-track {
    display:flex; gap:24px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.hc-card { flex: 0 0 calc(50% - 12px); min-width: calc(50% - 12px); }
.hc-card-img {
    position:relative; height:360px; border-radius:18px;
    background-size:cover; background-position:center;
    overflow:hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform .3s, box-shadow .3s;
}
.hc-card-img:hover { transform:translateY(-5px); box-shadow: 0 16px 45px rgba(0,0,0,0.22); }
.hc-card-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(5,15,40,.88) 0%, rgba(5,15,40,.25) 60%, transparent 100%);
}
.hc-card-content { position:absolute; bottom:0; left:0; right:0; padding:24px 24px 28px; z-index:2; color:#fff; }
.hc-tag {
    display:inline-block; background:#e2b13c; color:#0a1a3c;
    font-size:11px; font-weight:800; letter-spacing:.1em;
    padding:3px 10px; border-radius:20px; margin-bottom:8px;
}
.hc-card-content h3 { font-size:clamp(1rem,2vw,1.35rem); font-weight:800; color:#fff; margin:0 0 6px; }
.hc-card-content p  { font-size:.875rem; color:rgba(255,255,255,.85); margin-bottom:14px; line-height:1.5; }
.hc-link {
    display:inline-flex; align-items:center; gap:7px;
    background:#e2b13c; color:#0a1a3c;
    font-weight:700; font-size:.82rem;
    padding:8px 18px; border-radius:30px; text-decoration:none;
    transition:background .2s;
}
.hc-link:hover { background:#c99a2e; }
.hc-arrow {
    width:44px; height:44px; border-radius:50%;
    background:#0a1a3c; color:#fff; border:none;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:16px; flex-shrink:0;
    transition:background .2s; box-shadow:0 4px 14px rgba(0,0,0,0.18);
    z-index:2;
}
.hc-arrow:hover { background:#e2b13c; color:#0a1a3c; }
.hc-prev { margin-right:12px; } .hc-next { margin-left:12px; }
.hc-dots { display:flex; justify-content:center; gap:8px; margin-top:20px; }
.hc-dot { width:9px; height:9px; border-radius:50%; background:#c9d5e8; border:none; cursor:pointer; transition:background .2s, transform .2s; }
.hc-dot.active { background:#0a1a3c; transform:scale(1.35); }

@media (max-width:768px) {
    .hc-card { flex:0 0 85vw; min-width:85vw; }
    .hc-card-img { height:260px; }
    .hc-arrow { width:38px; height:38px; font-size:14px; }
}


/* ====================================================================
   4. ÉVÉNEMENTS — CARTES IMAGE CLIQUABLE + MODAL
   ==================================================================== */
.events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.edc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform .25s, box-shadow .25s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.edc-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.14); }

.edc-img-clickable {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}
.edc-img-placeholder {
    background: linear-gradient(135deg, #0a1a3c, #1e3a6e);
    display: flex; align-items: center; justify-content: center;
}
.edc-placeholder-icon { font-size: 2.8rem; color: rgba(255,255,255,.2); z-index: 1; }
.edc-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,15,40,.6) 0%, transparent 55%);
    transition: background .25s;
}
.edc-img-clickable:hover .edc-img-overlay {
    background: linear-gradient(to top, rgba(5,15,40,.75) 0%, rgba(5,15,40,.15) 60%);
}
.edc-date-chip {
    position: absolute; bottom: 44px; left: 14px;
    background: #0f2c4a; color:#dbeafe ;
    border-radius: 10px; padding: 4px 12px;
    display: flex; flex-direction: column; align-items: center;
    line-height: 1.2; z-index: 2; font-weight: 800;
}
.edc-day   { font-size: 1.2rem; font-weight: 900; }
.edc-month { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.edc-click-hint {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(255,255,255,.9);
    color: #0a1a3c; font-size: .72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
    opacity: 0; transform: translateY(4px);
    transition: opacity .2s, transform .2s;
    z-index: 2;
}
.edc-img-clickable:hover .edc-click-hint { opacity: 1; transform: translateY(0); }
.edc-card-footer { padding: 16px 18px 18px; }
.edc-card-footer h3 { font-size: .95rem; font-weight: 700; color: #0a1a3c; margin: 0; line-height: 1.35; }

/* Modal événement */
.event-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 16px;
}
.event-modal-overlay.active { display: flex; }
.event-modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 540px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
.event-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: #f1f5f9; border: none; border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: #475569;
    transition: background .2s;
    z-index: 2;
}
.event-modal-close:hover { background: #e2b13c; color: #0a1a3c; }
.event-modal-header {
    background: linear-gradient(135deg, #0a1a3c, #1e3a6e);
    padding: 28px 24px 22px;
    border-radius: 20px 20px 0 0;
}
.event-modal-header h2 { color: #fff; font-size: 1.15rem; margin: 0; font-weight: 800; }
.event-modal-body { padding: 22px 24px 26px; }
.event-modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.emi-item { display: flex; align-items: flex-start; gap: 12px; background: #f8faff; border-radius: 10px; padding: 12px 14px; }
.emi-item i { font-size: 1.1rem; color: #e2b13c; margin-top: 2px; }
.emi-item div { display: flex; flex-direction: column; }
.emi-item strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
.emi-item span { font-size: .875rem; color: #0a1a3c; font-weight: 600; }
.event-modal-desc { margin-bottom: 20px; }
.event-modal-desc p { color: #475569; font-size: .875rem; line-height: 1.7; }

@media (max-width: 480px) {
    .event-modal-info-grid { grid-template-columns: 1fr; }
    .event-modal-box { border-radius: 14px; }
    .event-modal-header { padding: 22px 18px 18px; }
    .event-modal-body { padding: 18px 18px 22px; }
}


/* ====================================================================
   5. À PROPOS — CARTES EN ÉVENTAIL
   ==================================================================== */
.about-fan-section { padding: 40px 0 80px; background: #f8faff; }
.fan-cards-scene { position: relative; height: 380px; display: flex; align-items: flex-end; justify-content: center; margin: 10px 0 24px; transform: translateX(40px); }
.fan-card {
    position: absolute; bottom: 0; width: 220px; height: 320px;
    transform-origin: bottom center;
    transform: rotate(var(--fan-rotate)) translateX(var(--fan-translate-x));
    z-index: var(--fan-z);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.4,0,.2,1), z-index 0s, box-shadow .35s;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    perspective: 900px;
}
.fan-card:hover { z-index: 10 !important; transform: rotate(0deg) translateX(var(--fan-translate-x)) translateY(-16px); }
.fan-card-active { z-index: 10 !important; }
.fan-card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .5s ease; border-radius: 16px; }
.fan-card-flipped .fan-card-inner { transform: rotateY(180deg); }
.fan-card-front, .fan-card-back {
    position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px;
    padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    overflow-y: auto; overflow-wrap: break-word; word-break: break-word;
}
.fan-card-front { background: linear-gradient(160deg, #0a1a3c 0%, #1e3a6e 100%); color: #fff; }
.fan-card-back { background: linear-gradient(160deg, #e2b13c 0%, #c99a2e 100%); color: #0a1a3c; transform: rotateY(180deg); }
.fan-card-icon { font-size: 2rem; color: #e2b13c; margin-bottom: 14px; }
.fan-card-front h3 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.fan-card-back h3 { color: #0a1a3c; font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.fan-card-back p { font-size: .85rem; line-height: 1.6; color: #1a2a4c; }
.fan-card-hint { font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.fan-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.fan-nav-btn {
    width: 38px; height: 38px; border-radius: 50%; background: #0a1a3c; color: #fff;
    border: none; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.fan-nav-btn:hover { background: #e2b13c; color: #0a1a3c; }
.fan-nav-counter { font-weight: 700; color: #0a1a3c; font-size: .9rem; }

@media (max-width: 640px) {
    .fan-cards-scene { height: auto; flex-direction: column; align-items: center; gap: 16px; position: static; transform: none; }
    .fan-card { position: static !important; transform: none !important; width: 90%; max-width: 320px; height: 340px; min-height: 340px; }
    .fan-card:hover { transform: none !important; }
    .fan-card-front, .fan-card-back { padding: 20px 16px; justify-content: flex-start; padding-top: 30px; }
    .fan-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
    .fan-card-back p { font-size: .78rem; line-height: 1.5; }
}

/* Valeurs */
.about-values-section { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; margin-top: 40px; }
.value-item { background: #f8faff; border-radius: 16px; padding: 32px 24px; text-align: center; border-bottom: 4px solid #e2b13c; transition: transform .25s; }
.value-item:hover { transform: translateY(-6px); }
.value-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #0a1a3c, #1e3a6e); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.value-icon i { font-size: 1.4rem; color: #e2b13c; }
.value-item h3 { font-size: 1.05rem; font-weight: 700; color: #0a1a3c; margin: 0 0 8px; }
.value-item p { font-size: .875rem; color: #64748b; line-height: 1.6; }


/* ====================================================================
   6. SERVICES — 4 CARTES + MODAL SOUS-SERVICES
   ==================================================================== */
.services-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }

.service-popup-card {
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    transition: transform .25s, box-shadow .25s;
    background: #fff;
}
.service-popup-card:hover { transform: translateY(-7px); box-shadow: 0 18px 48px rgba(0,0,0,0.16); }
.service-popup-card:hover .spc-img-wrapper img { transform: scale(1.06); }

.spc-img-wrapper { position: relative; height: 260px; overflow: hidden; background: linear-gradient(135deg,#0a1a3c,#1e3a6e); }
.spc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.spc-img-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.spc-img-placeholder i { font-size: 3rem; color: rgba(255,255,255,.25); }
.spc-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,15,40,.8) 0%, rgba(5,15,40,.15) 60%, transparent 100%); }
.spc-img-title {
    position: absolute; bottom: 0; left: 0; right: 0;
    color: #fff; font-weight: 800; font-size: 1.05rem;
    padding: 36px 18px 16px; z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Modal services */
.service-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 9999; align-items: center; justify-content: center; padding: 16px;
}
.service-modal-overlay.active { display: flex; }
.service-modal-box {
    background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3); animation: modalIn .3s ease;
}
.service-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: #fff; z-index: 2; transition: background .2s;
}
.service-modal-close:hover { background: #e2b13c; color: #0a1a3c; }
.service-modal-header { background: linear-gradient(135deg, #0a1a3c, #1e3a6e); padding: 28px 24px 22px; border-radius: 20px 20px 0 0; }
.smo-icon { width: 52px; height: 52px; background: #e2b13c; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.smo-icon i { font-size: 1.3rem; color: #0a1a3c; }
.service-modal-header h2 { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.service-modal-header p  { color: rgba(255,255,255,.8); font-size: .875rem; margin: 0; }
.service-modal-body { padding: 22px 24px 26px; }
.service-modal-body h4 { font-size: .92rem; font-weight: 700; color: #0a1a3c; margin: 0 0 16px; display: flex; gap: 8px; align-items: center; }
.subservice-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.subservice-list li {
    display: flex; align-items: center; gap: 12px;
    background: #f8faff; border-radius: 10px; padding: 13px 16px;
    border-left: 3px solid #e2b13c; font-weight: 600; color: #0a1a3c; font-size: .9rem;
}
.subservice-list li i { color: #e2b13c; font-size: 1rem; flex-shrink: 0; }
.no-subservice { color: #64748b; font-style: italic; font-weight: 400 !important; }
.service-modal-footer { text-align: center; }

@media (max-width: 1024px) { .services-4-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-4-grid { grid-template-columns: 1fr; } }


/* ====================================================================
   7. FORMATIONS — FILTRE STICKY + CATALOGUE
   ==================================================================== */
.formations-no-header .formations-page-title-bar {
    background: linear-gradient(135deg, #0a1a3c, #1e3a6e);
    padding: 40px 0 30px;
}
.formations-no-header .catalog-main-title {
    color: #fff;
    font-size: clamp(1.25rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0;
    word-wrap: break-word;
}
.formations-no-header .breadcrumb-current { color: rgba(255,255,255,.7); }
.formations-no-header .breadcrumb-pill { font-size: .85rem; }

/* CORRECTIF STICKY — overflow:hidden hérité de .catalog-sidebar-filters
   empêchait position:sticky de fonctionner. On le neutralise ici. */
.catalog-sidebar-filters.catalog-sidebar-sticky {
    overflow: visible !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 156px !important; /* 76px navbar + ~80px barre de recherche fixe, pour ne pas se chevaucher */
    max-height: calc(100vh - 176px);
    overflow-y: auto !important;
    align-self: start !important;
}

/* S'assurer que le wrapper parent ne casse pas le sticky */
.catalog-layout-wrapper {
    align-items: start !important;
}

@media (max-width: 992px) {
    .catalog-sidebar-filters.catalog-sidebar-sticky {
        position: static !important;
        max-height: none;
        top: auto !important;
    }
}

@media (max-width: 600px) {
    .formations-page-title-bar { padding: 28px 0 22px; }
    .formations-page-title-bar .home-container { padding-left: 16px; padding-right: 16px; }
}


/* ====================================================================
   8. CONTACT — RENFORCER LE STICKY DU BANDEAU BLEU
   (corrige une régression possible due à des règles globales)
   ==================================================================== */
html, body, #app,
main.contact-page-layout,
main.contact-page-layout .container,
.contact-grid-container {
    overflow: visible !important;
}
.contact-info-card-blue {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 90px !important;
    align-self: start !important;
}
@media (max-width: 992px) {
    .contact-info-card-blue {
        position: static !important;
        top: auto !important;
    }
}


/* ====================================================================
   9. RÉSEAU — 3 CARTES DE NAVIGATION
   ==================================================================== */
.reseau-nav-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:40px; }
.reseau-nav-card {
    background:#fff; border-radius:20px; padding:36px 28px; text-decoration:none; color:inherit;
    box-shadow:0 4px 24px rgba(0,0,0,0.07);
    display:flex; flex-direction:column; gap:12px;
    border-bottom:4px solid transparent;
    transition:transform .25s, box-shadow .25s, border-color .25s;
}
.reseau-nav-card:hover { transform:translateY(-6px); box-shadow:0 16px 45px rgba(0,0,0,0.13); border-color:#e2b13c; }
.rnc-icon-wrap { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#0a1a3c,#1e3a6e); display:flex; align-items:center; justify-content:center; }
.rnc-gold { background:linear-gradient(135deg,#e2b13c,#c99a2e) !important; }
.rnc-icon-wrap i { font-size:1.4rem; color:#e2b13c; }
.rnc-gold i { color:#0a1a3c !important; }
.reseau-nav-card h3 { font-size:1.15rem; font-weight:800; color:#0a1a3c; margin:0; }
.reseau-nav-card p  { font-size:.875rem; color:#64748b; line-height:1.6; flex:1; margin:0; }
.rnc-cta { display:inline-flex; align-items:center; gap:7px; color:#0a1a3c; font-weight:700; font-size:.875rem; }

@media (max-width:900px) { .reseau-nav-grid { grid-template-columns:1fr; } }


/* ====================================================================
   10. TÉMOIGNAGES — DÉFILEMENT CONTINU (style logos partenaires)
   ==================================================================== */
.testi-viewport-auto {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.testi-track-auto { display: flex; gap: 32px; width: max-content; will-change: transform; }
.testi-slide-auto { width: 340px; flex-shrink: 0; }

@media (max-width: 640px) { .testi-slide-auto { width: 280px; } }

/* Masquer d'éventuels anciens chevrons */
.home-testimonials .testi-arrow,
.home-testimonials .testi-wrapper { display: none !important; }


/* ====================================================================
   11. RESPONSIVE GLOBAL
   ==================================================================== */
@media (max-width: 480px) {
    .home-section { padding: 40px 0; }
    .section-heading h2 { font-size: 1.3rem; }
    .home-container { padding-left: 16px; padding-right: 16px; }
}

/* ===================================================
   STYLE DES ONGLETS DE NAVIGATION DU RÉSEAU
   =================================================== */
.tab-item {
    transition: all 0.3s ease;
}
.tab-item:hover {
    color: #0c2340 !important;
    border-bottom-color: #e2b13c !important;
}

/* ====================================================================
   9. FORMATIONS — RENFORCER LE STICKY DE LA BARRE DE RECHERCHE ET DU FILTRE
   (même correctif que pour Contact : html/body en overflow-x:hidden
   cassent tout position:sticky descendant dans certains navigateurs)
   ==================================================================== */
html, body, #app,
main.formations-catalog-page,
.catalog-layout-wrapper {
    overflow: visible !important;
}
.formations-search-sticky-wrap {
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: 500 !important;
}

























