/* VERSION-2026-07-14-B — si vous voyez ce texte en ouvrant ce fichier dans le navigateur,
   c'est que la NOUVELLE version est bien en ligne. */
/* FLOKO CONSULT — styles additionnels (Laravel) : chips, formations, recherche, popups */

/* ---------- Recherche globale ---------- */
.floko-search-trigger{display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;margin-left:8px;color:#1F55C4;font-size:16px;border-radius:50%;
  transition:background .25s}
.floko-search-trigger:hover{background:rgba(46,107,230,.12)}
.floko-search-overlay{position:fixed;inset:0;z-index:9998;background:rgba(8,20,48,.92);
  backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:24px}
.floko-search-overlay.open{display:flex}
.floko-search-form{display:flex;align-items:center;gap:14px;width:100%;max-width:680px;
  background:#fff;border-radius:20px;padding:14px 20px;box-shadow:0 30px 80px rgba(0,0,0,.4)}
.floko-search-form i{color:#2E6BE6;font-size:20px}
.floko-search-form input{flex:1;border:none;outline:none;font-size:18px;font-family:inherit;
  background:transparent}
.floko-search-close{position:absolute;top:26px;right:26px;background:rgba(255,255,255,.15);color:#fff}

/* ---------- Chips de filtre par catégorie ---------- */
.floko-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:28px auto 0;
  max-width:900px;padding:0 16px}
.floko-chips a{display:inline-block;padding:8px 18px;border-radius:22px;font-size:14px;
  font-weight:500;color:#1F55C4;background:#EAF1FF;border:1px solid #D5E2FB;
  transition:all .25s;text-decoration:none}
.floko-chips a:hover{background:#D5E2FB}
.floko-chips a.active{background:linear-gradient(135deg,#2E6BE6,#1F55C4);color:#fff;
  border-color:transparent;box-shadow:0 8px 18px rgba(31,85,196,.3)}

/* ---------- Cartes formation ---------- */
.floko-formation-card{background:#fff;border-radius:22px;overflow:hidden;margin-bottom:30px;
  box-shadow:0 14px 40px rgba(20,40,90,.08);transition:transform .3s,box-shadow .3s;height:100%;
  display:flex;flex-direction:column}
.floko-formation-card:hover{transform:translateY(-6px);box-shadow:0 22px 55px rgba(20,40,90,.16)}
.floko-formation-card .thumb{position:relative;display:block;aspect-ratio:16/10;overflow:hidden}
.floko-formation-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.floko-formation-card:hover .thumb img{transform:scale(1.06)}
.floko-formation-card .type{position:absolute;left:14px;bottom:14px;display:inline-flex;
  align-items:center;gap:6px;background:rgba(8,20,48,.78);color:#fff;font-size:12px;font-weight:600;
  padding:6px 12px;border-radius:14px;backdrop-filter:blur(4px)}
.floko-formation-card .body{padding:22px;display:flex;flex-direction:column;flex:1}
.floko-formation-card .cat{color:#2E6BE6;font-size:12px;font-weight:600;text-transform:uppercase;
  letter-spacing:.5px}
.floko-formation-card h4{margin:8px 0 10px;font-size:18px;line-height:26px}
.floko-formation-card h4 a{color:#0A1E4A}
.floko-formation-card p{color:#333;font-size:14px;line-height:22px;flex:1}
.floko-formation-card .main-button-link{margin-top:14px;align-self:flex-start}

/* ---------- Lecteur vidéo 16:9 ---------- */
.floko-video{position:relative;width:100%;aspect-ratio:16/9;border-radius:20px;overflow:hidden;
  margin-bottom:30px;box-shadow:0 18px 50px rgba(20,40,90,.2);background:#000}
.floko-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ---------- Cartes expertise ---------- */
.floko-exp-card{background:#fff;border-radius:22px;overflow:hidden;margin-bottom:30px;
  box-shadow:0 14px 40px rgba(20,40,90,.08);transition:transform .3s}
.floko-exp-card:hover{transform:translateY(-6px)}
.floko-exp-card img{width:100%;height:150px;object-fit:cover}
.floko-exp-card .body{padding:22px}
.floko-exp-card .body h4{font-size:18px;color:#0A1E4A;margin-bottom:6px}
.floko-exp-card .body h4 span{font-size:12px;color:#2E6BE6;font-weight:500}
.floko-exp-card ul{list-style:none;padding:0;margin:14px 0}
.floko-exp-card ul li{font-size:13.5px;color:#333;margin-bottom:8px;line-height:20px}
.floko-exp-card ul li i{color:#2E6BE6;margin-right:8px}

/* ---------- Listes texte ---------- */
.floko-text{padding:70px 0}
.floko-text p{color:#333;font-size:16px;line-height:29px;margin-bottom:20px}
.floko-why{margin-top:40px;padding:30px;background:#F5F8FE;border-radius:20px}
.floko-why h3{color:#1F55C4;margin-bottom:16px}
.floko-list{list-style:none;padding:0;margin:0 0 30px}
.floko-list li{position:relative;padding:16px 16px 16px 54px;margin-bottom:14px;background:#F5F8FE;
  border-radius:16px;color:#333;line-height:24px}
.floko-list li i{position:absolute;left:18px;top:18px;color:#2E6BE6;font-size:20px}
.floko-list li strong{color:#0A1E4A;display:block;margin-bottom:2px}

/* ---------- Pagination ---------- */
.floko-text .pagination,.amazing-deals .pagination,.container .pagination{display:flex;
  gap:8px;justify-content:center;list-style:none;padding:20px 0;flex-wrap:wrap}
.pagination .page-link{display:inline-block;padding:8px 14px;border-radius:12px;color:#1F55C4;
  background:#EAF1FF;text-decoration:none;font-size:14px}
.pagination .active .page-link{background:#2E6BE6;color:#fff}
.pagination .disabled .page-link{opacity:.4}

/* ---------- Point presse (section) ---------- */
.floko-press{background:linear-gradient(135deg,#0A1E4A,#1F55C4);padding:50px 0;color:#fff;margin-top:10px}
.floko-press h3{color:#fff;font-size:24px;margin-bottom:8px}
.floko-press p{color:#CFE0FF;margin:0}
.floko-press-form{display:flex;gap:10px;flex-wrap:wrap}
.floko-press-form input{flex:1;min-width:200px;border:none;border-radius:24px;padding:13px 20px;
  font-family:inherit;font-size:14px;outline:none}
.floko-press-done{color:#BFF0D0;margin-top:12px;font-weight:600}

@media (max-width:992px){
  .floko-search-trigger{margin-left:0}
  .floko-press-form{margin-top:16px}
}

/* ================= Popups, cookies, chat, préloader (complément) ================= */

/* ---------- Préloader ---------- */
.js-preloader{position:fixed;inset:0;z-index:9999;background:#fff;display:flex;
  align-items:center;justify-content:center;transition:opacity .5s,visibility .5s}
.js-preloader.loaded{opacity:0;visibility:hidden}
.preloader-inner .dots{display:flex;gap:8px}
.preloader-inner .dots span{width:14px;height:14px;border-radius:50%;
  background:#2E6BE6;animation:flokoBounce 1s infinite ease-in-out}
.preloader-inner .dots span:nth-child(2){animation-delay:.15s;background:#1F55C4}
.preloader-inner .dots span:nth-child(3){animation-delay:.3s;background:#0A1E4A}
.preloader-inner .dot{display:none}
@keyframes flokoBounce{0%,80%,100%{transform:scale(.4);opacity:.4}40%{transform:scale(1);opacity:1}}

/* ---------- Overlay commun aux popups ---------- */
.floko-popup-overlay{position:fixed;inset:0;z-index:9990;background:rgba(8,20,48,.72);
  backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;
  opacity:0;transition:opacity .3s}
.floko-popup-overlay.open{opacity:1}
.floko-popup-overlay[hidden]{display:none}
.floko-popup-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:none;
  border-radius:50%;background:#EAF1FF;color:#1F55C4;cursor:pointer;font-size:15px;z-index:3;
  display:flex;align-items:center;justify-content:center;transition:transform .25s,background .25s}
.floko-popup-close:hover{transform:rotate(90deg);background:#D5E2FB}

/* ---------- Popup événement ---------- */
.floko-popup{position:relative;background:#fff;border-radius:24px;max-width:460px;width:100%;
  overflow:hidden;box-shadow:0 34px 90px rgba(6,18,46,.45);
  animation:flokoPopIn .5s cubic-bezier(.22,1,.36,1) both}
.floko-popup>img{width:100%;height:190px;object-fit:cover}
.floko-popup-body{padding:28px}
.floko-popup-body h3{color:#0A1E4A;font-size:22px;margin:0 0 12px}
.floko-popup-body p{color:#333;line-height:24px;margin:0 0 20px}
@keyframes flokoPopIn{from{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:none}}

/* ---------- Popup presse ---------- */
.floko-press-popup{position:relative;background:#fff;border-radius:26px;max-width:440px;width:100%;
  overflow:hidden;box-shadow:0 34px 90px rgba(6,18,46,.45);
  animation:flokoPopIn .55s cubic-bezier(.22,1,.36,1) both}
.floko-press-popup .floko-popup-close{background:rgba(255,255,255,.2);color:#fff}
.floko-press-popup .floko-popup-close:hover{background:rgba(255,255,255,.35)}
.floko-press-popup-head{background:linear-gradient(135deg,#0A1E4A,#123A8F 55%,#2E6BE6);
  padding:34px 34px 28px;color:#fff;position:relative;overflow:hidden}
.floko-press-popup-head::after{content:'';position:absolute;right:-60px;top:-60px;width:190px;
  height:190px;border-radius:50%;background:rgba(255,255,255,.08)}
.floko-press-popup-head .badge{display:inline-flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);border-radius:16px;
  padding:5px 14px;font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;
  margin-bottom:14px}
.floko-press-popup-head h3{color:#fff;font-size:22px;font-weight:700;line-height:31px;margin:0 0 10px;
  position:relative;z-index:1}
.floko-press-popup-head p{color:#CFE0FF;font-size:13.5px;line-height:22px;margin:0;position:relative;z-index:1}
.floko-press-popup-body{padding:26px 34px 30px}
.floko-press-popup-body .field{position:relative;margin-bottom:12px}
.floko-press-popup-body .field i{position:absolute;left:18px;top:50%;transform:translateY(-50%);
  color:#93A7D6;font-size:14px}
.floko-press-popup-body .field input{width:100%;border:1px solid #DCE5F5;background:#F8FAFF;
  border-radius:24px;padding:13px 20px 13px 44px;font-size:14px;font-family:inherit;outline:none;
  transition:border-color .3s,box-shadow .3s}
.floko-press-popup-body .field input:focus{border-color:#2E6BE6;box-shadow:0 0 0 4px rgba(46,107,230,.12)}
.floko-press-popup-body .subscribe{width:100%;border:none;border-radius:24px;padding:13px;
  background:linear-gradient(135deg,#2E6BE6,#1F55C4);color:#fff;font-size:14.5px;font-weight:600;
  box-shadow:0 10px 24px rgba(31,85,196,.35);transition:transform .25s;cursor:pointer}
.floko-press-popup-body .subscribe:hover{transform:translateY(-2px)}
.floko-press-popup-body .subscribe i{margin-left:8px;font-size:13px}
.floko-press-popup-body .no-thanks{display:block;text-align:center;margin-top:14px;font-size:12.5px;
  color:#8A97B5;text-decoration:underline}
.floko-press-popup-body .no-thanks:hover{color:#2E6BE6}
.floko-press-popup-done{text-align:center;padding:12px 0 6px}
.floko-press-popup-done i{font-size:44px;color:#2E6BE6}
.floko-press-popup-done p{margin:12px 0 0;font-weight:600;color:#1F55C4;font-size:15px}

/* ---------- Bandeau cookies ---------- */
.floko-cookies{position:fixed;left:20px;right:20px;bottom:20px;z-index:9985;background:#fff;
  border-radius:18px;box-shadow:0 20px 60px rgba(6,18,46,.25);padding:18px 24px;display:flex;
  align-items:center;justify-content:space-between;gap:18px;max-width:900px;margin:0 auto;
  flex-wrap:wrap;border:1px solid #E4ECFA}
.floko-cookies p{margin:0;color:#333;font-size:13.5px;line-height:20px;flex:1;min-width:240px}
.floko-cookies p i{color:#2E6BE6;margin-right:8px}
.floko-cookies div{display:flex;gap:10px}
.floko-cookies button{border:none;border-radius:22px;padding:10px 20px;font-family:inherit;
  font-size:13.5px;font-weight:600;cursor:pointer;background:linear-gradient(135deg,#2E6BE6,#1F55C4);
  color:#fff}
.floko-cookies button.ghost{background:#EAF1FF;color:#1F55C4}

/* ---------- Messages du chatbot ---------- */
.floko-chat-messages{padding:16px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:10px}
.floko-msg{max-width:80%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:20px;
  animation:flokoMsgIn .25s ease both}
.floko-msg.bot{align-self:flex-start;background:#EAF1FF;color:#22314f;border-bottom-left-radius:4px}
.floko-msg.user{align-self:flex-end;background:linear-gradient(135deg,#2E6BE6,#1F55C4);color:#fff;
  border-bottom-right-radius:4px}
.floko-msg.typing{opacity:.6;font-style:italic}
@keyframes flokoMsgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- Menu langues (déroulant) ---------- */
.lang-switch{position:relative;margin-left:6px}
.lang-current{display:inline-flex;align-items:center;gap:6px;color:#1F55C4;font-size:13px;
  font-weight:600;padding:8px 12px;border-radius:20px;background:#EAF1FF;cursor:pointer}
.lang-current i.fa-chevron-down{font-size:10px}
.lang-menu{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border-radius:14px;
  box-shadow:0 18px 50px rgba(6,18,46,.2);list-style:none;padding:8px;margin:0;min-width:150px;
  opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .25s;z-index:60}
.lang-switch.open .lang-menu{opacity:1;visibility:visible;transform:none}
.lang-menu li a{display:block;padding:9px 14px;border-radius:9px;color:#3a4a6a;font-size:14px}
.lang-menu li a:hover{background:#EAF1FF}
.lang-menu li a.active{background:linear-gradient(135deg,#2E6BE6,#1F55C4);color:#fff}

@media (max-width:768px){
  .floko-cookies{flex-direction:column;text-align:center}
  .floko-press-popup-head,.floko-press-popup-body{padding-left:24px;padding-right:24px}
}

/* ================= Logo horizontal FLOKO (nouveau) ================= */
/* Le logo est une image large (icône + texte) sur fond blanc :
   on annule la pastille ronde et on l'affiche à sa hauteur naturelle. */
.header-area .main-nav .logo,
.background-header .main-nav .logo{display:flex;align-items:center;height:80px}
.header-area .main-nav .logo img,
.background-header .main-nav .logo img{
  background:transparent!important;box-shadow:none!important;padding:0!important;
  border-radius:0!important;margin-top:0!important;height:52px!important;width:auto!important;
  object-fit:contain;display:block}
@media (max-width:768px){
  .header-area .main-nav .logo img,
  .background-header .main-nav .logo img{height:42px!important}
}

/* Logo dans l'administration (rond -> rectangulaire propre) */
.adm-side>img{width:auto!important;max-width:150px;height:44px!important;border-radius:0!important;
  object-fit:contain;background:#fff;padding:6px 10px;margin:18px auto}
.adm-login-card img{width:auto!important;max-width:200px;height:56px!important;border-radius:0!important;
  object-fit:contain}

/* ================= Finitions "soft & agréables" ================= */

/* Transitions douces globales sur les éléments interactifs */
a, button, .main-button a, .border-button a, .item, .floko-formation-card,
.floko-exp-card, .visit-country .item, .amazing-deals .item, .chips a {
  transition: all .3s cubic-bezier(.25,.8,.25,1);
}

/* Apparition en fondu au chargement de page */
@keyframes flokoFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.visit-country .item, .amazing-deals .item, .floko-formation-card,
.floko-exp-card, .weekly-offers .item, .floko-text > .container > .row {
  animation: flokoFadeUp .7s cubic-bezier(.25,.8,.25,1) both;
}

/* Cartes : ombdre douce + élévation au survol */
.amazing-deals .item, .weekly-offers .item {
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(20,40,90,.07);
  overflow: hidden;
}
.amazing-deals .item:hover, .weekly-offers .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(20,40,90,.14);
}

/* Boutons : effet doux */
.main-button a, .border-button a, .main-button-link {
  border-radius: 24px !important;
  letter-spacing: .3px;
}
.main-button a:hover, .border-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31,85,196,.28);
}

/* Titres de section : respiration */
.section-heading h2, .floko-text h3 {
  line-height: 1.25;
}

/* Liens du menu : soulignement animé discret */
@media (min-width: 1200px) {
  .header-area .main-nav .nav li a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #2E6BE6;
    transition: width .3s ease;
    margin-top: 3px;
    border-radius: 2px;
  }
  .header-area .main-nav .nav li a:hover::after,
  .header-area .main-nav .nav li a.active::after {
    width: 100%;
  }
  .header-area .main-nav .nav li.has-sub > a::after { display: none; }
}

/* Défilement fluide */
html { scroll-behavior: smooth; }

/* Images : arrondi harmonieux + rendu net */
.visit-country .item .image img,
.amazing-deals .item .thumb img { border-radius: 18px; }

/* Champs de formulaire : focus tout en douceur */
input, select, textarea {
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

/* Réduction du mouvement si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
  .visit-country .item, .amazing-deals .item, .floko-formation-card,
  .floko-exp-card, .weekly-offers .item, .floko-text > .container > .row {
    animation: none;
  }
  html { scroll-behavior: auto; }
}

/* ================================================================
   MENU : alignement recherche + langue sur la même ligne
   + responsivité soignée sur tout le site
   ================================================================ */

@media (min-width: 1200px) {
  /* Barre de navigation en flex propre : logo | menu | recherche | langue */
  .header-area .main-nav {
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .header-area .main-nav .logo {
    flex: 0 0 auto;
  }
  .header-area .main-nav .nav {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-top: 0 !important;
    height: auto !important;
  }
  .header-area .main-nav .nav li {
    padding-left: 6px;
    padding-right: 6px;
  }
  .header-area .main-nav .nav li a {
    padding: 8px 4px;
    font-size: 14px;
    white-space: nowrap;
  }
  /* Recherche : alignée, verticalement centrée, sur la même ligne */
  .header-area .main-nav .floko-search-trigger {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 2px;
    color: #fff;
    font-size: 16px;
    border-radius: 50%;
    transition: background .25s ease;
  }
  .header-area .main-nav .floko-search-trigger:hover {
    background: rgba(255,255,255,.18);
  }
  /* Sélecteur de langue : même ligne, centré */
  .header-area .main-nav .lang-switch {
    flex: 0 0 auto;
    position: relative;
    margin: 0 0 0 4px;
    display: flex;
    align-items: center;
  }
  /* Bouton menu mobile masqué sur desktop */
  .header-area .main-nav .menu-trigger {
    display: none;
  }
}

/* Quand l'en-tête devient "collant" (fond blanc), lisibilité de la loupe */
.background-header .main-nav .floko-search-trigger { color: #1e1e1e; }
.background-header .main-nav .floko-search-trigger:hover { background: rgba(46,107,230,.12); color: #2E6BE6; }

/* ---------------- Tablette / petit desktop (993–1200px) : compacter ---------------- */
/* (règle « menu tassé » retirée : les tablettes reçoivent le menu hamburger) */

/* (ancien bloc mobile retiré : il supposait un header en flex, ce qui n'est pas le cas) */


/* ---------------- Très petits écrans (≤ 480px) ---------------- */
@media (max-width: 480px) {
  /* Le header est en flex (voir plus bas) : on n'y remet PAS de position
     absolue, on ajuste seulement les tailles. */
  .header-area .main-nav { padding: 0 10px !important; gap: 4px; }
  .header-area .main-nav .logo img { height: 32px !important; }
  .header-area .main-nav .floko-search-trigger { width: 32px; height: 32px; font-size: 15px; }
  .header-area .main-nav .lang-switch .lang-current { padding: 5px 7px !important; font-size: 11px !important; }
  .header-area .main-nav .menu-trigger { width: 26px; }
  .header-area .main-nav .menu-trigger span,
  .header-area .main-nav .menu-trigger span:before,
  .header-area .main-nav .menu-trigger span:after { width: 26px !important; }

  /* Contenus : réduire les paddings géants du template sur mobile */
  .floko-text { padding: 50px 0 30px; }
  .floko-why { padding: 26px; }
  section, .amazing-deals, .visit-country, .weekly-offers { overflow-x: hidden; }
}

/* ---------------- Anti-débordement global (responsivité) ---------------- */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }
.container { width: 100%; }
.floko-search-form { width: min(680px, 92vw); }

/* ================= Support RTL (arabe) ================= */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .nav,
html[dir="rtl"] .main-nav .nav { padding-right: 0; }
html[dir="rtl"] .header-area .main-nav .logo { float: right; }
html[dir="rtl"] .header-area .main-nav .nav { float: left; }
html[dir="rtl"] .more-info h4,
html[dir="rtl"] .main-caption { text-align: right; }
html[dir="rtl"] .visit-country .item .content,
html[dir="rtl"] .amazing-deals .item .down-content { text-align: right; }
html[dir="rtl"] ul { padding-right: 0; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .footer-area,
html[dir="rtl"] footer { text-align: right; }
/* Chatbot reste à droite mais le texte s'aligne correctement */
html[dir="rtl"] .floko-chat-box { direction: rtl; text-align: right; }

/* ================================================================
   Slider d'accueil — AUTO-PLAY 100% CSS (indépendant du JavaScript)
   Aucun radio coché au départ → l'animation tourne toute seule.
   Dès qu'un bouton radio est cliqué, on bascule en navigation
   manuelle (le :checked l'emporte).
   ================================================================ */
#section-1 .content-slider .slider .banner {
  animation: flokoSlideCycle 20s infinite;
}
#section-1 .content-slider .slider #top-banner-1 { animation-delay: 0s; }
#section-1 .content-slider .slider #top-banner-2 { animation-delay: 5s; }
#section-1 .content-slider .slider #top-banner-3 { animation-delay: 10s; }
#section-1 .content-slider .slider #top-banner-4 { animation-delay: 15s; }

/* Navigation manuelle : un radio coché stoppe l'auto-play */
#section-1 .content-slider:has(input:checked) .slider .banner {
  animation: none;
}

@keyframes flokoSlideCycle {
  0%    { opacity: 1; }
  25%   { opacity: 1; }
  30%   { opacity: 0; }
  95%   { opacity: 0; }
  100%  { opacity: 1; }
}

/* ================= Bouton d'abonnement (point presse) soigné ================= */
.floko-press-form .main-button,
.floko-press-form button {
  flex: 0 0 auto;
  border: none;
  border-radius: 24px;
  padding: 13px 28px;
  background: #fff;
  color: #1F55C4;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  white-space: nowrap;
}
.floko-press-form .main-button:hover,
.floko-press-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  background: #EAF1FF;
}
.floko-press-form .main-button:active,
.floko-press-form button:active { transform: translateY(0); }

/* Champ e-mail assorti */
.floko-press-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.45);
}

/* Bouton du popup presse (overlay) */
.floko-press-popup .subscribe {
  width: 100%;
  border: none;
  border-radius: 24px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1F55C4, #2E6BE6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 22px rgba(31,85,196,.3);
}
.floko-press-popup .subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31,85,196,.45);
}

/* ================================================================
   PAGE À PROPOS — design professionnel (inspiré maquette)
   Palette bleue FLOKO. Sections : hero, mission, parcours, why.
   ================================================================ */
.ab-chip {
  display: inline-block;
  background: #EAF1FF; color: #1F55C4;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 20px; margin-bottom: 18px;
}

/* --- Hero --- */
.ab-hero { padding: 70px 0 50px; background: #fff; }
.ab-hero-text h1, .ab-hero-text h2 { font-size: 34px; font-weight: 800; color: #16213e; line-height: 1.2; margin-bottom: 18px; }
.ab-hero-text > p { color: #1a1a1a; font-size: 17px; line-height: 1.7; margin-bottom: 26px; max-width: 520px; }
.ab-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.ab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 30px; font-weight: 600; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.ab-btn-primary { background: #1F55C4; color: #fff; box-shadow: 0 8px 22px rgba(31,85,196,.28); }
.ab-btn-primary:hover { background: #1748a8; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,85,196,.4); }
.ab-btn-ghost { background: #fff; color: #1F55C4; border: 1.5px solid #d3e0f7; }
.ab-btn-ghost:hover { border-color: #1F55C4; color: #1F55C4; transform: translateY(-2px); }

.ab-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.ab-stat { display: flex; align-items: center; gap: 12px; }
.ab-stat-icon {
  width: 46px; height: 46px; border-radius: 12px; background: #EAF1FF; color: #1F55C4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.ab-stat strong { display: block; font-size: 24px; font-weight: 800; color: #16213e; line-height: 1; }
.ab-stat small { color: #333; font-size: 13px; }

.ab-hero-img { position: relative; }
.ab-hero-img img {
  width: 100%; border-radius: 22px; object-fit: cover; aspect-ratio: 4/3;
  box-shadow: 0 24px 60px rgba(16,33,62,.18);
}

/* --- Mission --- */
.ab-mission { padding: 60px 0; background: #F7FAFF; }
.ab-mission-img img {
  width: 100%; border-radius: 22px; object-fit: cover; aspect-ratio: 4/3;
  box-shadow: 0 24px 60px rgba(16,33,62,.14);
}
.ab-mission-text { padding-left: 20px; }
.ab-mission-text h2 { font-size: 32px; font-weight: 800; color: #16213e; line-height: 1.2; margin-bottom: 16px; }
.ab-mission-text > p { color: #1a1a1a; font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.ab-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.ab-check { display: flex; align-items: center; gap: 10px; color: #24324c; font-weight: 500; font-size: 15px; }
.ab-check i { color: #1F55C4; font-size: 18px; }

/* --- Parcours (timeline) --- */
.ab-journey { padding: 66px 0; background: #fff; }
.ab-journey h2 { font-size: 30px; font-weight: 800; color: #16213e; line-height: 1.2; }
.ab-journey-sub { display: flex; align-items: flex-end; }
.ab-journey-sub p { color: #333; font-size: 15px; margin: 0 0 6px; }
.ab-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.ab-tl-card {
  position: relative; background: #fff; border: 1px solid #eef2f9; border-radius: 18px;
  padding: 26px 22px; box-shadow: 0 10px 30px rgba(16,33,62,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ab-tl-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(16,33,62,.12); }
.ab-tl-icon {
  width: 54px; height: 54px; border-radius: 50%; background: #EAF1FF; color: #1F55C4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.ab-tl-card h4 { font-size: 17px; font-weight: 700; color: #16213e; margin-bottom: 8px; }
.ab-tl-card p { color: #1a1a1a; font-size: 14px; line-height: 1.6; margin: 0; }
.ab-tl-connector {
  position: absolute; top: 52px; right: -12px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, #cdd9ee 0 5px, transparent 5px 10px); z-index: 2;
}

/* --- Pourquoi FLOKO --- */
.ab-why { padding: 54px 0 20px; background: #F7FAFF; }
.ab-why h3 { font-size: 26px; font-weight: 800; color: #16213e; margin-bottom: 18px; }
.ab-why p { color: #1a1a1a; font-size: 16px; line-height: 1.8; margin-bottom: 14px; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .ab-hero-img, .ab-mission-img { margin-top: 32px; }
  .ab-mission-text { padding-left: 0; margin-top: 8px; }
  .ab-timeline { grid-template-columns: 1fr 1fr; }
  .ab-tl-connector { display: none; }
  .ab-hero-text h1 { font-size: 32px; }
}
@media (max-width: 575px) {
  .ab-timeline { grid-template-columns: 1fr; }
  .ab-check-grid { grid-template-columns: 1fr; }
  .ab-stats { gap: 18px; }
}
html[dir="rtl"] .ab-mission-text { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .ab-tl-connector { right: auto; left: -12px; }

/* ================================================================
   PAGE RÉFÉRENCES — design pro (inspiré maquette), grandes icônes
   ================================================================ */
/* --- Chiffres clés --- */
.ref-stats { padding: 56px 0 20px; background: #fff; }
.ref-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: #F7FAFF; border-radius: 22px; padding: 36px 30px;
}
.ref-stat { text-align: center; }
.ref-stat-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #EAF1FF; color: #1F55C4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px;
}
.ref-stat-num { font-size: 38px; font-weight: 800; color: #1F55C4; line-height: 1; }
.ref-stat-label { color: #1a1a1a; font-size: 14px; margin-top: 6px; }

/* --- Cartes d'expérience (grandes icônes) --- */
.ref-cards { padding: 44px 0 20px; background: #fff; }
.ref-card {
  height: 100%; background: #fff; border: 1px solid #eef2f9; border-radius: 20px;
  padding: 34px 28px; margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(16,33,62,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ref-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(16,33,62,.13); }
.ref-card-icon {
  width: 76px; height: 76px; border-radius: 20px;
  background: linear-gradient(135deg, #1F55C4, #2E6BE6); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 20px;
  box-shadow: 0 12px 28px rgba(31,85,196,.32);
}
.ref-card h4 { font-size: 18px; font-weight: 700; color: #16213e; line-height: 1.35; margin-bottom: 12px; }
.ref-card p { color: #1a1a1a; font-size: 15px; line-height: 1.7; margin: 0; }

/* --- Citation --- */
.ref-quote { padding: 30px 0 60px; background: #fff; }
.ref-quote-box {
  position: relative; background: linear-gradient(135deg, #0A1E4A, #1F55C4);
  border-radius: 24px; padding: 44px 48px; color: #fff;
  box-shadow: 0 20px 50px rgba(16,33,62,.2);
}
.ref-quote-box .fa-quote-left { font-size: 34px; color: rgba(255,255,255,.35); margin-bottom: 14px; display: block; }
.ref-quote-box p { font-size: 18px; line-height: 1.75; margin: 0; color: #EAF1FF; font-style: italic; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .ref-stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 575px) {
  .ref-stats-grid { grid-template-columns: 1fr; }
  .ref-quote-box { padding: 32px 26px; }
  .ref-quote-box p { font-size: 16px; }
}

/* ================================================================
   BOUTON S'ABONNER — design premium
   ================================================================ */
.floko-subscribe-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 30px;
  padding: 14px 30px;
  background: #fff;
  color: #1F55C4;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, color .3s ease;
  white-space: nowrap;
}
/* Vague de couleur au survol */
.floko-subscribe-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2E6BE6, #1F55C4);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  z-index: 0;
}
.floko-subscribe-btn span,
.floko-subscribe-btn i { position: relative; z-index: 1; transition: color .3s ease, transform .3s ease; }
.floko-subscribe-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(31,85,196,.4); }
.floko-subscribe-btn:hover::before { transform: translateY(0); }
.floko-subscribe-btn:hover i { transform: translateX(4px) rotate(8deg); }
.floko-subscribe-btn:active { transform: translateY(-1px); }
.floko-subscribe-btn:disabled { opacity: .7; cursor: default; }

/* Champ e-mail assorti au bouton */
.floko-press-form input {
  transition: box-shadow .25s ease, background .25s ease;
}
.floko-press-form input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.4);
}

/* ================================================================
   NOTIFICATIONS POPUP (toasts)
   ================================================================ */
.floko-toasts {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}
.floko-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 16px 44px rgba(10,30,74,.22);
  border-left: 4px solid #1F55C4;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s ease;
  pointer-events: auto;
}
.floko-toast.show { transform: translateX(0); opacity: 1; }
.floko-toast-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.floko-toast-text { flex: 1; font-size: 14px; line-height: 1.5; color: #1a1a1a; padding-top: 4px; }
.floko-toast-close {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  color: #9aa4b5; font-size: 16px; padding: 4px; line-height: 1;
}
.floko-toast-close:hover { color: #1a1a1a; }
/* Variantes */
.floko-toast.success { border-left-color: #1e9e5a; }
.floko-toast.success .floko-toast-icon { background: #1e9e5a; }
.floko-toast.info { border-left-color: #1F55C4; }
.floko-toast.info .floko-toast-icon { background: #1F55C4; }
.floko-toast.error { border-left-color: #C0263A; }
.floko-toast.error .floko-toast-icon { background: #C0263A; }

@media (max-width: 575px) {
  .floko-toasts { left: 16px; right: 16px; top: 16px; max-width: none; }
}
html[dir="rtl"] .floko-toasts { right: auto; left: 24px; }
html[dir="rtl"] .floko-toast { border-left: none; border-right: 4px solid #1F55C4; transform: translateX(-120%); }
html[dir="rtl"] .floko-toast.show { transform: translateX(0); }

/* ================================================================
   PAGE À PROPOS — Section ÉQUIPE (dynamique, grille adaptative)
   ================================================================ */
.ab-team { padding: 66px 0; background: #F7FAFF; }
.ab-team-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.ab-team-head h2 { font-size: 32px; font-weight: 800; color: #16213e; margin-bottom: 12px; }
.ab-team-head p { color: #1a1a1a; font-size: 16px; line-height: 1.7; }

/* Grille adaptative : les cartes se centrent et se répartissent élégamment.
   flex + justify-content:center → 1 carte au milieu, 2 rapprochées, etc. */
.ab-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.ab-team-card {
  flex: 0 1 260px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #eef2f9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,33,62,.06);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.ab-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(31,85,196,.18);
}

/* Photo / avatar */
.ab-team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #EAF1FF, #d6e4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ab-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ab-team-card:hover .ab-team-photo img { transform: scale(1.05); }
/* Initiales quand pas de photo */
.ab-team-initials {
  font-size: 52px;
  font-weight: 800;
  color: #1F55C4;
  letter-spacing: 1px;
}
/* Icônes sociales : apparaissent au survol */
.ab-team-social {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(31,85,196,.85), rgba(46,107,230,.8));
  opacity: 0;
  transition: opacity .3s ease;
}
.ab-team-card:hover .ab-team-social { opacity: 1; }
.ab-team-social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #1F55C4;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transform: translateY(10px);
  transition: transform .3s ease, background .2s ease, color .2s ease;
}
.ab-team-card:hover .ab-team-social a { transform: translateY(0); }
.ab-team-social a:hover { background: #16213e; color: #fff; }

/* Infos */
.ab-team-info { padding: 20px 20px 24px; text-align: center; }
.ab-team-info h4 { font-size: 18px; font-weight: 700; color: #16213e; margin-bottom: 4px; }
.ab-team-role {
  display: inline-block;
  color: #1F55C4;
  font-size: 13px;
  font-weight: 600;
  background: #EAF1FF;
  padding: 4px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
}
.ab-team-info p { color: #1a1a1a; font-size: 14px; line-height: 1.6; margin: 0; }

/* Responsive : les cartes rétrécissent proprement */
@media (max-width: 767px) {
  .ab-team-card { flex: 0 1 45%; max-width: none; }
}
@media (max-width: 479px) {
  .ab-team-card { flex: 0 1 100%; max-width: 320px; }
}

/* ================================================================
   Slider — barres de progression synchronisées avec l'auto-play
   Chaque trait sous les numéros 1-2-3-4 se remplit progressivement
   pendant les 5 s d'affichage de son slide, en boucle (cycle 20 s).
   ================================================================ */
/* Le trait de fond reste visible en permanence */
#section-1 .content-slider nav .controls label .progressbar {
  background: rgba(255, 255, 255, .35);
}
/* Chaque remplissage s'anime en boucle, décalé de 5 s comme les slides */
#section-1 .content-slider nav .controls label:nth-of-type(1) .progressbar-fill { animation: flokoBarFill 20s linear infinite; animation-delay: 0s; }
#section-1 .content-slider nav .controls label:nth-of-type(2) .progressbar-fill { animation: flokoBarFill 20s linear infinite; animation-delay: 5s; }
#section-1 .content-slider nav .controls label:nth-of-type(3) .progressbar-fill { animation: flokoBarFill 20s linear infinite; animation-delay: 10s; }
#section-1 .content-slider nav .controls label:nth-of-type(4) .progressbar-fill { animation: flokoBarFill 20s linear infinite; animation-delay: 15s; }
#section-1 .content-slider nav .controls label .progressbar-fill { background: #fff; }

/* Se remplit sur 25% du cycle (5 s / 20 s), puis reste vide le reste du temps */
@keyframes flokoBarFill {
  0%   { margin-left: -100%; }
  25%  { margin-left: 0; }
  25.01% { margin-left: -100%; }
  100% { margin-left: -100%; }
}

/* Si l'utilisateur clique un bouton (navigation manuelle), l'auto-play CSS
   s'arrête : on stoppe alors ces barres cycliques pour laisser la barre
   du slide sélectionné se remplir (règle du template d'origine). */
#section-1 .content-slider:has(input:checked) nav .controls label .progressbar-fill {
  animation: none;
  margin-left: -100%;
}

/* ================================================================
   Slider — dégradé bleu de bas en haut (superposé à l'image)
   Le bleu est concentré en bas (lisibilité du texte) et s'estompe
   vers le haut pour laisser apparaître l'image nettement.
   ================================================================ */
/* IMPORTANT : le template impose un dégradé bleu UNIFORME + des images
   en dur sur #top-banner-1..4, qui recouvre tout. On le neutralise
   pour ne garder que l'image (définie en inline dans le blade) et
   notre dégradé ::before qui devient transparent vers le haut. */
#section-1 .content-slider .slider #top-banner-1,
#section-1 .content-slider .slider #top-banner-2,
#section-1 .content-slider .slider #top-banner-3,
#section-1 .content-slider .slider #top-banner-4 {
  background-image: none;
}
#section-1 .content-slider .slider .banner {
  position: absolute; /* déjà défini par le template, on le confirme */
}
#section-1 .content-slider .slider .banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 30, 74, .90) 0%,
    rgba(18, 58, 143, .55) 30%,
    rgba(31, 85, 196, .20) 55%,
    rgba(31, 85, 196, 0) 78%,
    rgba(31, 85, 196, 0) 100%
  );
}
/* Le contenu (texte, boutons) passe au-dessus du dégradé */
#section-1 .content-slider .slider .banner .banner-inner-wrapper {
  position: relative;
  z-index: 1;
}

/* ================================================================
   LISIBILITÉ : tout bouton à fond bleu a un texte BLANC
   (corrige les cas de texte sombre sur fond bleu, côté site)
   ================================================================ */
.main-button a,
.main-button-link,
.border-button a:hover,
.floko-subscribe-btn:hover,
.ab-btn-primary,
.floko-press-popup .subscribe,
.floko-press-popup-body .subscribe,
button.floko-subscribe-btn:hover,
.floko-cookies button:not(.ghost) {
  color: #fff !important;
}
.main-button a:hover,
.main-button-link:hover {
  color: #fff !important;
}
/* Sur les fonds bleus foncés (bandeaux, CTA), forcer les liens-boutons en blanc */
.page-heading .main-button a,
.second-page-heading .main-button a,
.call-to-action .main-button a,
#section-1 .main-button a { color: #fff !important; }

/* ================================================================
   LISIBILITÉ DES TEXTES : supprimer les gris pâles dans les pages
   Le template met les paragraphes en gris clair (#afafaf) ; on
   fonce l'ensemble des textes de contenu pour un rendu net.
   ================================================================ */
.floko-text p,
.floko-text li,
.floko-list li,
.floko-exp-card ul li,
.floko-formation-card p,
.visit-country .item p,
.amazing-deals .item p,
.about-main-content .content p,
.section-heading p,
.more-info h4,
section p {
  color: #333 !important;
}
/* Exception : la citation est sur fond bleu foncé → texte blanc */
.ref-quote-box p,
.ref-quote-box .fa-quote-left {
  color: #FFFFFF !important;
}
/* Textes secondaires (sous-titres, méta) : gris foncé lisible, jamais pâle */
.floko-formation-card .cat,
.ab-stat small,
.ab-journey-sub p {
  color: #4a4a4a !important;
}

/* ================================================================
   Contenu d'article riche (éditeur WYSIWYG) — affichage sur le site
   ================================================================ */
.floko-article-content { color: #333; font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
.floko-article-content h2 { font-size: 26px; font-weight: 700; color: #16213e; margin: 28px 0 14px; }
.floko-article-content h3 { font-size: 21px; font-weight: 700; color: #16213e; margin: 24px 0 12px; }
.floko-article-content p { color: #333; margin-bottom: 16px; }
.floko-article-content strong, .floko-article-content b { color: #16213e; font-weight: 700; }
.floko-article-content a { color: #1F55C4; text-decoration: underline; }
.floko-article-content a:hover { color: #16213e; }
.floko-article-content ul, .floko-article-content ol { margin: 0 0 18px 24px; }
.floko-article-content li { margin-bottom: 8px; color: #333; }
.floko-article-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 20px 0; box-shadow: 0 14px 40px rgba(16,33,62,.12); }
.floko-article-content blockquote {
  border-left: 4px solid #1F55C4; background: #F5F8FE; margin: 20px 0;
  padding: 16px 22px; border-radius: 0 12px 12px 0; color: #24324c; font-style: italic;
}
.floko-article-content .ql-align-center { text-align: center; }
.floko-article-content .ql-align-right { text-align: right; }
.floko-article-content .ql-align-justify { text-align: justify; }

/* ================================================================
   Popup événement — gestion propre de l'absence d'image
   Sans image (ou image cassée), aucun cadre blanc vide ne subsiste.
   ================================================================ */
/* Avec image : la photo occupe le haut du popup */
.floko-popup.has-image > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
/* Sans image : le corps du popup remonte, plus d'espace vide.
   Le bouton fermer devient bleu sur fond clair pour rester visible. */
.floko-popup.no-image > img { display: none; }
.floko-popup.no-image .floko-popup-body { padding-top: 34px; }
.floko-popup.no-image .floko-popup-close {
  background: #EAF1FF;
  color: #1F55C4;
}
.floko-popup.no-image .floko-popup-close:hover { background: #d6e4ff; }

/* ================================================================
   Curseur personnalisé (anneau + point qui suivent la souris)
   ================================================================ */
.floko-cursor-ring,
.floko-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.floko-cursor-ring {
  width: 40px; height: 40px;
  /* Bordure plus franche : l'effet était presque invisible */
  border: 2.5px solid rgba(46, 107, 230, .95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35),
              0 4px 14px rgba(46, 107, 230, .28);
  transition: opacity .3s ease, width .25s ease, height .25s ease,
              background .25s ease, border-color .25s ease, transform .12s ease;
}
.floko-cursor-dot {
  width: 8px; height: 8px;
  background: #2E6BE6;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
}
/* Visibles une fois la souris détectée */
body.floko-cursor-on .floko-cursor-ring,
body.floko-cursor-on .floko-cursor-dot { opacity: 1; }
/* Au survol d'un élément cliquable : l'anneau grandit et se colore */
.floko-cursor-ring.is-hover {
  width: 62px; height: 62px;
  background: rgba(46, 107, 230, .18);
  border-color: #2E6BE6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5),
              0 6px 22px rgba(46, 107, 230, .38);
}
/* Petit retour visuel au clic */
body.floko-cursor-click .floko-cursor-ring {
  transform: translate(-50%, -50%) scale(.78);
}
/* On masque ce curseur personnalisé sur les écrans tactiles */
@media (hover: none), (pointer: coarse) {
  .floko-cursor-ring, .floko-cursor-dot { display: none !important; }
}


/* ================================================================
   Constructeur de pages — Modèle LANDING
   ================================================================ */
.tpl-hero-sub {
  color: #CFE0FF !important; font-size: 17px; line-height: 1.7;
  max-width: 720px; margin: 14px auto 0;
}
/* Points forts */
.tpl-points { padding: 70px 0 40px; background: #fff; }
.tpl-point-card {
  background: #fff; border: 1px solid #e6edf8; border-radius: 18px;
  padding: 30px 26px; margin-bottom: 30px; height: calc(100% - 30px);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tpl-point-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(16,33,62,.12);
  border-color: #cfe0ff;
}
.tpl-point-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, #2E6BE6, #1F55C4);
  color: #fff; font-size: 21px;
}
.tpl-point-card h3 { font-size: 19px; font-weight: 700; color: #16213e; margin-bottom: 10px; }
.tpl-point-card p { color: #333 !important; font-size: 15px; line-height: 1.7; margin: 0; }
/* Clôture */
.tpl-closing {
  padding: 70px 0; text-align: center;
  background: linear-gradient(135deg, #0A1E4A 0%, #123A8F 55%, #1F55C4 100%);
}
.tpl-closing h2 { color: #fff; font-size: 30px; font-weight: 700; margin: 0; }
.tpl-closing .main-button a { background: #fff !important; color: #1F55C4 !important; }
.tpl-closing .main-button a:hover { background: #EAF1FF !important; color: #1F55C4 !important; }

/* ================================================================
   Constructeur de pages — Modèles FAQ, Galerie, Contact, Prestations
   ================================================================ */
/* Lien "En savoir plus" des cartes prestations */
.tpl-card-link {
  display: inline-block; margin-top: 12px; color: #1F55C4 !important;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.tpl-card-link:hover { color: #16213e !important; }

/* --- FAQ --- */
.tpl-faq { padding: 30px 0 70px; background: #fff; }
.tpl-faq-item {
  border: 1px solid #e6edf8; border-radius: 14px;
  margin-bottom: 12px; overflow: hidden; background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.tpl-faq-item.is-open { border-color: #cfe0ff; box-shadow: 0 10px 30px rgba(16,33,62,.08); }
.tpl-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 16px; font-weight: 600; color: #16213e;
}
.tpl-faq-q:hover { background: #F7FAFF; }
.tpl-faq-q i { color: #1F55C4; font-size: 15px; transition: transform .28s ease; flex-shrink: 0; }
.tpl-faq-item.is-open .tpl-faq-q i { transform: rotate(45deg); }
.tpl-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.tpl-faq-item.is-open .tpl-faq-a { max-height: 600px; }
.tpl-faq-a p {
  color: #333 !important; font-size: 15.5px; line-height: 1.8;
  margin: 0; padding: 0 24px 22px;
}

/* --- Galerie --- */
.tpl-gallery { padding: 30px 0 60px; background: #fff; }
.tpl-gal-item {
  position: relative; margin: 0 0 30px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,33,62,.10);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tpl-gal-item:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(16,33,62,.18); }
.tpl-gal-item img { width: 100%; height: 240px; object-fit: cover; display: block; }
.tpl-gal-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(31,85,196,.94); color: #fff;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.tpl-gal-item figcaption {
  padding: 14px 18px; background: #fff;
  color: #16213e; font-size: 14.5px; font-weight: 600;
}

/* --- Contact --- */
.tpl-contact { padding: 50px 0 70px; background: #fff; }
.tpl-contact-info { list-style: none; padding: 0; margin: 22px 0 0; }
.tpl-contact-info li {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px; color: #333; font-size: 15.5px; line-height: 1.6;
}
.tpl-contact-info i {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EAF1FF; color: #1F55C4; font-size: 16px;
}
.tpl-contact-info a { color: #333; text-decoration: none; }
.tpl-contact-info a:hover { color: #1F55C4; }
.tpl-contact-form input, .tpl-contact-form textarea {
  width: 100%; box-sizing: border-box; margin-bottom: 16px;
  padding: 14px 16px; border: 1.5px solid #dce6f5; border-radius: 12px;
  font-size: 15px; color: #1a1a1a; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tpl-contact-form input:focus, .tpl-contact-form textarea:focus {
  outline: none; border-color: #1F55C4; box-shadow: 0 0 0 3px rgba(31,85,196,.12);
}
.tpl-contact-submit {
  background: linear-gradient(135deg, #2E6BE6, #1F55C4);
  color: #fff !important; border: 0; border-radius: 26px;
  padding: 14px 34px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tpl-contact-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,85,196,.3); }

/* ================================================================
   Variantes de HEADER et de FOOTER
   ================================================================ */
/* --- Header CENTRÉ --- */
.hdr-centered .hdr-centered-top {
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 14px 0 6px;
}
.hdr-centered .hdr-centered-top .logo img { height: 46px; }
.hdr-centered .hdr-centered-tools {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px;
}
.hdr-centered .hdr-centered-nav { justify-content: center; padding-bottom: 6px; }
.hdr-centered .hdr-centered-nav .nav { float: none; display: flex; justify-content: center; flex-wrap: wrap; }
@media (max-width: 991px) {
  .hdr-centered .hdr-centered-tools { right: 60px; }
  .hdr-centered .hdr-centered-nav .nav { display: block; }
}

/* --- Header ÉPURÉ --- */
.hdr-minimal .hdr-minimal-cta {
  display: flex; align-items: center; gap: 14px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.hdr-cta-btn {
  background: linear-gradient(135deg, #2E6BE6, #1F55C4);
  color: #fff !important; padding: 10px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hdr-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,85,196,.32); color: #fff !important; }
@media (max-width: 991px) { .hdr-minimal .hdr-minimal-cta { right: 60px; } .hdr-cta-btn { display: none; } }

/* --- Footer SIMPLE --- */
.ftr-simple { background: #0A1E4A; padding: 42px 0; text-align: center; }
.ftr-simple-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ftr-simple-logo img { height: 44px; filter: brightness(0) invert(1); opacity: .95; }
.ftr-simple-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.ftr-simple-links a { color: #CFE0FF; font-size: 14.5px; text-decoration: none; transition: color .2s ease; }
.ftr-simple-links a:hover { color: #fff; }
.ftr-simple-copy { color: #8A9EC9; font-size: 13.5px; margin: 0; }

/* --- Bandeau d'appel à l'action au-dessus du footer --- */
.ftr-cta-band {
  padding: 64px 0; text-align: center;
  background: linear-gradient(135deg, #2E6BE6 0%, #1F55C4 100%);
}
.ftr-cta-band h2 { color: #fff; font-size: 30px; font-weight: 700; margin: 0 0 10px; }
.ftr-cta-band p { color: #E4EDFF !important; font-size: 16px; margin: 0; }
.ftr-cta-band .main-button a { background: #fff !important; color: #1F55C4 !important; }
.ftr-cta-band .main-button a:hover { background: #EAF1FF !important; color: #1F55C4 !important; }

/* Bandeau d'aperçu (visible seulement par l'administrateur) */
.floko-preview-bar {
  position: sticky; top: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: #B8791F; color: #fff;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.floko-preview-bar a { color: #fff; text-decoration: underline; font-weight: 700; }
.floko-preview-bar a:hover { color: #FFE9C7; }

/* ================================================================
   AFFICHAGE DES ARTICLES — corrections
   ================================================================ */

/* Image de couverture d'un article : hauteur maîtrisée, jamais démesurée */
.floko-article-cover {
  margin: 0 0 30px;
  border-radius: 20px;
  overflow: hidden;
  background: #F3F7FE;
  box-shadow: 0 14px 40px rgba(16, 33, 62, .12);
}
.floko-article-cover img {
  display: block;
  width: 100%;
  height: 420px;          /* hauteur fixe : les portraits ne débordent plus */
  object-fit: cover;      /* l'image est recadrée proprement, sans déformation */
  object-position: center;
}
@media (max-width: 767px) {
  .floko-article-cover img { height: 240px; }
}

/* Images des cartes (listes publications / formations) : toutes la même hauteur */
.floko-card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}
@media (max-width: 991px) {
  .floko-card-img { height: 200px; }
}

/* ================================================================
   BOUTONS DE PARTAGE — refaits (icônes SVG, aucune dépendance)
   ================================================================ */
.floko-share {
  margin: 40px 0 12px;
  padding-top: 26px;
  border-top: 1px solid #e6edf8;
}
.floko-share-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #16213e;
  margin-bottom: 14px;
}
.floko-share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.floko-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.floko-share-btn svg {
  width: 19px;
  height: 19px;
  fill: #fff;              /* icône blanche sur pastille colorée */
  display: block;
}
.floko-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 33, 62, .22);
  opacity: .94;
}
.floko-share-btn.fb   { background: #1877F2; }
.floko-share-btn.tw   { background: #111111; }
.floko-share-btn.in   { background: #0A66C2; }
.floko-share-btn.wa   { background: #25D366; }
.floko-share-btn.mail { background: #1F55C4; }
.floko-share-btn.copy { background: #6B7A94; }
.floko-share-btn.copy.is-copied { background: #1E9E5A; }

/* ================================================================
   SECTION « DOMAINES D'EXPERTISE » (accueil) — corrections
   ================================================================ */

/* 1. Retirer le voile bleu qui recouvrait les photos.
      Un léger assombrissement subsiste au survol, sans teinte bleue. */
.visit-country .item .image::after {
  background: transparent !important;
  opacity: 0 !important;
}
.visit-country .item:hover .image::after {
  background: rgba(10, 30, 74, .12) !important;
  opacity: 1 !important;
}

/* 2. Hauteur des photos maîtrisée : elles avaient une largeur de 100 %
      sans hauteur, donc une photo en portrait devenait démesurée. */
.visit-country .item .image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.visit-country .item .image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

/* 3. Le bouton bleu « En Savoir Plus » était collé en haut à droite et
      RECOUVRAIT le titre (« Coordination Sécurité-Santé - Génie ci… »).
      On le masque : le lien « En savoir plus → » en bas de carte, lui,
      se place naturellement et fait le même travail. */
.visit-country .item .right-content .main-button { display: none !important; }

.visit-country .item .right-content h4 {
  padding-right: 0;      /* le titre reprend toute la largeur */
  line-height: 1.35;
  margin-bottom: 4px;
}
/* Le lien d'action, bien visible en bas de chaque carte */
.visit-country .item .right-content .text-button { margin-top: 14px; }
.visit-country .item .right-content .text-button a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #1F55C4; font-weight: 600; font-size: 14.5px; text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.visit-country .item .right-content .text-button a:hover {
  color: #16213e; gap: 12px;
}

@media (max-width: 767px) {
  .visit-country .item .image img { height: 180px; }
}

/* ================================================================
   PAGE SERVICES — cartes alignées
   ================================================================ */
/* Les cartes d'une même rangée ont la même hauteur */
.services-page .item,
.floko-services .item {
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}
/* L'image ne déborde plus (une photo en portrait devenait démesurée) */
.services-page .item .image img,
.floko-services .item .image img { border-radius: 18px; }

/* ================================================================
   PIED DE PAGE — modifiable depuis l'admin
   ================================================================ */
footer.ftr-rich {
  background: #0A1E4A;
  color: #cdd8ee;
  padding: 60px 0 0;
  margin-top: 0;
}
footer.ftr-rich .ftr-col { margin-bottom: 34px; }
footer.ftr-rich .ftr-logo img { max-height: 52px; background: #fff; padding: 8px 12px; border-radius: 10px; }
footer.ftr-rich .ftr-about { margin-top: 18px; font-size: 14px; line-height: 1.75; color: #a9b8d6; }
footer.ftr-rich h5 {
  color: #fff; font-size: 16px; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,.12);
}
footer.ftr-rich ul { list-style: none; padding: 0; margin: 0; }
footer.ftr-rich .ftr-links li { margin-bottom: 11px; }
footer.ftr-rich .ftr-links a,
footer.ftr-rich .ftr-contact a {
  color: #a9b8d6; text-decoration: none; font-size: 14.5px;
  transition: color .2s ease, padding-left .2s ease;
}
footer.ftr-rich .ftr-links a:hover { color: #fff; padding-left: 5px; }
footer.ftr-rich .ftr-contact li {
  margin-bottom: 13px; font-size: 14.5px;
  display: flex; align-items: center; gap: 11px;
}
footer.ftr-rich .ftr-contact i { color: #2E6BE6; width: 17px; }
footer.ftr-rich .ftr-contact a:hover { color: #fff; }
footer.ftr-rich .ftr-socials { margin-top: 20px; display: flex; gap: 10px; }
footer.ftr-rich .ftr-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
footer.ftr-rich .ftr-socials a:hover { background: #2E6BE6; transform: translateY(-3px); }
footer.ftr-rich .ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 12px; padding: 24px 0;
  text-align: center;
}
footer.ftr-rich .ftr-bottom p { margin: 0; font-size: 13.5px; color: #8c9dbe; }
@media (max-width: 767px) {
  footer.ftr-rich { padding-top: 44px; }
  footer.ftr-rich .ftr-socials { justify-content: flex-start; }
}



/* ================================================================
   PIED DE PAGE — neutraliser la règle du thème
   Le thème impose : footer { background-color:#2E6BE6; text-align:center;
   padding:25px 0 }. C'est ce qui « désorganisait » le pied de page
   (fond bleu, tout centré, colonnes écrasées).
   ================================================================ */
footer.ftr-rich {
  background-color: #0A1E4A !important;
  background-image: none !important;
  text-align: left !important;
  padding: 60px 0 0 !important;
}
footer.ftr-rich p,
footer.ftr-rich li,
footer.ftr-rich h5 { text-align: left; }

/* Le thème colore tous les <p> et liens du footer en blanc pur ;
   on garde nos nuances. */
footer.ftr-rich p { color: #a9b8d6; }
footer.ftr-rich .ftr-bottom { text-align: center !important; }
footer.ftr-rich .ftr-bottom p { text-align: center !important; color: #8c9dbe; }
footer.ftr-rich a { text-decoration: none; }
footer.ftr-rich p a { color: #a9b8d6; font-weight: 400; }
footer.ftr-rich p a:hover { color: #fff; }

/* Le logo : cadre blanc net, taille maîtrisée (il s'affichait énorme) */
footer.ftr-rich .ftr-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
footer.ftr-rich .ftr-logo img {
  height: 44px !important;
  width: auto !important;
  max-width: 100%;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  footer.ftr-rich { padding: 44px 0 0 !important; text-align: center !important; }
  footer.ftr-rich p,
  footer.ftr-rich li,
  footer.ftr-rich h5 { text-align: center; }
  footer.ftr-rich h5 { display: inline-block; }
  footer.ftr-rich .ftr-contact li { justify-content: center; }
  footer.ftr-rich .ftr-socials { justify-content: center; }
  footer.ftr-rich .ftr-col { margin-bottom: 30px; }
}

/* ================================================================
   MENU MOBILE (≤ 992 px)
   Les actions (recherche, langue, hamburger) sont alignées en FLEX,
   plus en absolu : elles ne peuvent plus se chevaucher.
   ================================================================ */
@media (max-width: 1199px) {

  /* Rien ne doit être coupé : le menu déroulant sort du header */
  .header-area,
  .header-area .container,
  .header-area .row,
  .header-area .col-12 { overflow: visible !important; }

  /* La barre : logo à gauche, actions à droite, alignées et espacées */
  .header-area .main-nav {
    display: flex !important;
    align-items: center;
    gap: 6px;
    position: relative !important;
    padding: 0 14px !important;
    min-height: 70px;
    overflow: visible !important;
    float: none !important;
  }

  /* LOGO À GAUCHE, LES TROIS ICÔNES À DROITE.
     Le logo prend « margin-right: auto » : il pousse tout le reste
     vers la droite. Aucun élément n'est en position absolue, donc
     plus aucun chevauchement possible. */
  .header-area .main-nav .logo                 { order: 1; }
  .header-area .main-nav .floko-search-trigger { order: 2; }
  .header-area .main-nav .lang-switch          { order: 3; }
  .header-area .main-nav .menu-trigger         { order: 4; }

  .header-area .main-nav .logo,
  .background-header .main-nav .logo {
    display: flex !important;
    align-items: center;
    height: 70px !important;
    margin: 0 auto 0 0 !important;   /* auto à DROITE = pousse les icônes à droite */
    padding: 0 !important;
    flex: 0 0 auto;
    float: none !important;
    position: static !important;     /* le thème le mettait en absolu */
  }
  .header-area .main-nav .logo img,
  .background-header .main-nav .logo img {
    height: 38px !important;
    width: auto !important;
    max-width: none !important;
  }

  /* ---- Recherche : simple élément de la rangée ---- */
  .header-area .main-nav .floko-search-trigger {
    position: static !important;
    transform: none !important;
    top: auto !important; right: auto !important;
    flex: 0 0 auto;
    width: 36px; height: 36px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    color: #fff;
    font-size: 16px;
  }
  .background-header .main-nav .floko-search-trigger { color: #16213e; }

  /* ---- Langue : reste "relative" pour que son déroulant se place bien ---- */
  .header-area .main-nav .lang-switch {
    position: relative !important;
    transform: none !important;
    top: auto !important; right: auto !important;
    flex: 0 0 auto;
    margin: 0 !important;
    float: none !important;
  }
  .header-area .main-nav .lang-switch .lang-current {
    padding: 6px 8px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* ---- Hamburger : dernier élément de la rangée, jamais superposé ---- */
  .header-area .main-nav .menu-trigger,
  .background-header .main-nav .menu-trigger {
    position: relative !important;
    transform: none !important;
    top: auto !important; right: auto !important;
    display: block !important;
    flex: 0 0 auto;
    width: 28px;
    height: 24px;
    margin-left: 4px;
    text-indent: -9999em;
    cursor: pointer;
    z-index: 120;
  }
  .header-area .main-nav .menu-trigger span,
  .header-area .main-nav .menu-trigger span:before,
  .header-area .main-nav .menu-trigger span:after {
    background-color: #fff !important;
    height: 3px !important;
    width: 28px !important;
    border-radius: 3px;
    position: absolute;
    display: block;
    content: '';
    left: 0;
    transition: all .3s ease;
  }
  .header-area .main-nav .menu-trigger span { top: 11px; }
  .header-area .main-nav .menu-trigger span:before { top: -8px; }
  .header-area .main-nav .menu-trigger span:after { top: 8px; }
  /* Croix à l'ouverture */
  .header-area .main-nav .menu-trigger.active span { background: transparent !important; }
  .header-area .main-nav .menu-trigger.active span:before { top: 0; transform: rotate(45deg); }
  .header-area .main-nav .menu-trigger.active span:after  { top: 0; transform: rotate(-45deg); }
  /* En-tête blanc (collant) : barres foncées */
  .background-header .main-nav .menu-trigger span,
  .background-header .main-nav .menu-trigger span:before,
  .background-header .main-nav .menu-trigger span:after { background-color: #16213e !important; }
  .background-header .main-nav .menu-trigger.active span { background: transparent !important; }

  /* ---- Le panneau du menu ----
     PAS de !important sur display:none : ainsi le menu s'ouvre aussi
     bien via notre classe .is-open que via le display posé par jQuery.
     Les deux mécanismes fonctionnent, aucun ne peut bloquer l'autre. */
  .header-area .main-nav .nav {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    left: 8px;
    right: 8px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(10, 30, 74, .25);
    max-height: 76vh;
    overflow-y: auto;
    z-index: 200;
    float: none !important;
    list-style: none;
  }
  .header-area .main-nav .nav.is-open { display: block !important; }

  .header-area .main-nav .nav li {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    float: none !important;
    display: block !important;
    position: relative !important;
  }
  .header-area .main-nav .nav li:first-child { border-top: 0 !important; }
  .header-area .main-nav .nav li a {
    color: #24324c !important;
    padding: 13px 22px !important;
    font-size: 15px !important;
    display: block !important;
    border-bottom: 1px solid #F0F4FB;
    height: auto !important;
    line-height: 1.4 !important;
    text-align: left;
  }
  .header-area .main-nav .nav > li:last-child > a { border-bottom: 0; }
  .header-area .main-nav .nav li a:hover,
  .header-area .main-nav .nav li a.active {
    color: #2E6BE6 !important;
    background: #F5F8FE;
  }
  .header-area .main-nav .nav li a::after { display: none !important; }

  /* Sous-menus : dépliés et indentés (il n'y a pas de survol sur mobile) */
  .header-area .main-nav .nav li.has-sub { padding-right: 0 !important; }
  .header-area .main-nav .nav li.has-sub > ul.sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    background: #F8FAFF !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .header-area .main-nav .nav li.has-sub > ul.sub-menu li a {
    padding-left: 44px !important;
    font-size: 14px !important;
    color: #4a5a75 !important;
  }
}

/* ================================================================
   PROTECTION ANTI-ROBOT (CAPTCHA)
   ================================================================ */
/* Le pot de miel : invisible pour l'humain, visible pour un robot.
   On ne met PAS display:none (certains robots l'ignorent) : on le
   sort de l'écran tout en le laissant "présent". */
.floko-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.floko-captcha {
  margin: 18px 0;
  padding: 16px 18px;
  background: #F5F8FE;
  border: 1px solid #DCE7F9;
  border-radius: 12px;
}
.floko-captcha label {
  display: block;
  font-weight: 600;
  color: #16213e;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.floko-captcha label i { color: #2E6BE6; margin-right: 6px; }
.floko-captcha label .req { color: #C0263A; }
.floko-captcha input[type=number] {
  width: 100%;
  max-width: 180px;
  padding: 11px 14px;
  border: 1.5px solid #C9D9F2;
  border-radius: 9px;
  font-size: 15px;
  background: #fff;
}
.floko-captcha input[type=number]:focus {
  outline: none;
  border-color: #2E6BE6;
  box-shadow: 0 0 0 3px rgba(46, 107, 230, .14);
}
.floko-captcha small {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: #6B7A94;
}
.cf-turnstile { margin: 14px 0; }


/* ================================================================
   FIL D'ARIANE (site)
   ================================================================ */
.floko-breadcrumb {
  background: #F5F8FE;
  border-bottom: 1px solid #E4EBF7;
  padding: 14px 0;
}
.floko-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
}
.floko-breadcrumb li { display: inline-flex; align-items: center; }
.floko-breadcrumb a {
  color: #5A6C8A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color .18s ease, background .18s ease;
}
.floko-breadcrumb a:hover { color: #2E6BE6; background: #E9F0FE; }
.floko-breadcrumb .sep { color: #B6C4DC; margin: 0 4px; font-size: 12px; }
.floko-breadcrumb span[aria-current] {
  color: #16213e;
  font-weight: 600;
  padding: 3px 6px;
}
@media (max-width: 767px) {
  .floko-breadcrumb { padding: 11px 0; }
  .floko-breadcrumb ol { font-size: 12.5px; }
  /* Sur petit écran, on n'affiche que le mot « Accueil » en icône */
  .floko-breadcrumb li:first-child a span { display: none; }
}

/* ================================================================
   BARRE DE RECHERCHE DES LISTES (publications, formations)
   ================================================================ */
.floko-listsearch { margin: 26px 0 4px; }
.floko-listsearch-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #DCE7F9;
  border-radius: 999px;
  padding: 4px 6px 4px 20px;
  box-shadow: 0 6px 22px rgba(16, 33, 62, .06);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.floko-listsearch-box:focus-within {
  border-color: #2E6BE6;
  box-shadow: 0 8px 28px rgba(46, 107, 230, .16);
}
.floko-listsearch-box > i.fa-search { color: #8C9DBE; font-size: 16px; flex: 0 0 auto; }
.floko-listsearch input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 14px;
  font-size: 15.5px;
  color: #16213e;
  min-width: 0;
}
.floko-listsearch input::placeholder { color: #9DAAC2; }
.floko-listsearch input::-webkit-search-cancel-button { display: none; }
.floko-listsearch-clear {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: #F0F4FB;
  color: #6B7A94;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease;
}
.floko-listsearch-clear:hover { background: #E1E9F7; color: #16213e; }
.floko-listsearch-count {
  margin: 12px 4px 0;
  font-size: 13.5px;
  color: #6B7A94;
}
@media (max-width: 767px) {
  .floko-listsearch-box { padding-left: 15px; }
  .floko-listsearch input { padding: 12px 10px; font-size: 15px; }
}

/* ================================================================
   POPUPS — RESPONSIVES
   Le popup n'avait ni hauteur maximale ni défilement : sur une
   fenêtre basse (ou un téléphone), il débordait et le bouton de
   fermeture sortait de l'écran.
   ================================================================ */
.floko-popup-overlay {
  padding: 16px !important;
  overflow-y: auto;              /* si vraiment trop haut, on peut défiler */
  align-items: center;
}
.floko-popup {
  max-height: calc(100vh - 32px); /* ne dépasse jamais l'écran */
  display: flex;
  flex-direction: column;
  margin: auto;
}
/* La zone de contenu défile ; le bouton de fermeture reste atteignable */
.floko-popup .floko-popup-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.floko-popup > img { flex: 0 0 auto; }

/* Le bouton de fermeture doit toujours se voir, même sur fond clair */
.floko-popup-close {
  background: #fff !important;
  color: #16213e !important;
  box-shadow: 0 3px 12px rgba(6, 18, 46, .22);
}

/* ---- Téléphones et fenêtres étroites ---- */
@media (max-width: 575px) {
  .floko-popup-overlay { padding: 10px !important; }
  .floko-popup {
    border-radius: 18px;
    max-height: calc(100vh - 20px);
  }
  .floko-popup > img { height: 130px !important; }
  .floko-popup-body { padding: 20px 18px !important; }
  .floko-popup-body h3 { font-size: 18px !important; line-height: 1.3; }
  .floko-popup-body p { font-size: 14.5px !important; line-height: 22px !important; }
  .floko-popup-close { top: 10px; right: 10px; width: 34px; height: 34px; }
}

/* ---- Fenêtres BASSES (le cas de votre capture) ---- */
@media (max-height: 620px) {
  .floko-popup > img { height: 100px !important; }
  .floko-popup-body { padding: 18px !important; }
  .floko-popup-body h3 { font-size: 18px !important; margin-bottom: 8px !important; }
  .floko-popup-body p { margin-bottom: 14px !important; }
}

/* Le formulaire du popup s'empile proprement */
.floko-popup .floko-press-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floko-popup .floko-press-form input { width: 100%; }
.floko-popup .floko-press-form button { width: 100%; justify-content: center; }
