/* ============================================================
   BGFIBank Centrafrique — Charte Graphique Officielle
   Conforme à la Charte d'Harmonisation Digitale V1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  /* Couleurs principales */
  --bgfi-blue: #003666;
  --bgfi-green: #C2CFA4;
  --bgfi-sky: #0d91d0;
  /* Couleurs secondaires */
  --bgfi-navy: #003a74;
  --bgfi-mint: #C2CFA4;
  --bgfi-teal: #C2CFA4;
  --bgfi-steel: #3f84b6;
  --bgfi-dark-teal: #367880;
  /* Couleurs produits */
  --bgfi-p1: #3098c8;
  --bgfi-p2: #b03058;
  --bgfi-p3: #40a860;
  --bgfi-p4: #e86828;
  --bgfi-p5: #e04038;
  --bgfi-p6: #982878;
  /* Utilitaires */
  --bgfi-white: #ffffff;
  --bgfi-footer: #333333;
  --bgfi-light: #f4f6f9;
  --bgfi-border: #e0e4ea;
  --bgfi-text: #2c3e50;
  --bgfi-text-light: #6b7280;
  /* Dimensions charte */
  --nav-main-height: 35.5px;
  --nav-secondary-width: 114px;
  --shortcuts-height: 76px;
  --footer-height: 246px;
  --container-max: 1400px;
}

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

html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: 'Source Sans 3', 'Nimbus Sans Novus', Arial, sans-serif;
  color: var(--bgfi-text);
  background: var(--bgfi-white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bgfi-light); }
::-webkit-scrollbar-thumb { background: var(--bgfi-sky); border-radius: 3px; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ── TOP BAR (barre principale 35.5px) ──────────────────── */
#top-bar {
  background: var(--bgfi-navy);
  height: var(--nav-main-height);
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 100;
}
#top-bar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; margin-left: 16px; transition: color 0.2s; }
#top-bar a:hover { color: var(--bgfi-white); }
#top-bar .lang-switcher { display: flex; gap: 8px; }
#top-bar .lang-switcher a { padding: 2px 8px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.3); }
#top-bar .lang-switcher a.active { background: var(--bgfi-sky); border-color: var(--bgfi-sky); color: white; }

/* ── HEADER / BARRE RACCOURCIS (76px) ───────────────────── */
#header {
  background: var(--bgfi-white);
  height: var(--shortcuts-height);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  /* Accent bar dégradé navy→sky en bas du header */
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, var(--bgfi-navy), var(--bgfi-sky), var(--bgfi-mint));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
#header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#header .logo { display: flex; align-items: center; text-decoration: none; }
#header .logo-img { height: 62px; width: auto; display: block; object-fit: contain; }
#header .logo-icon { width: 48px; height: 48px; background: var(--bgfi-navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
#header .logo-icon span { color: white; font-weight: 700; font-size: 16px; letter-spacing: 1px; }
#header .logo-text { line-height: 1.2; }
#header .logo-text .bank-name { font-size: 18px; font-weight: 700; color: var(--bgfi-navy); display: block; }
#header .logo-text .bank-country { font-size: 12px; color: var(--bgfi-sky); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
#header .header-actions { display: flex; align-items: center; gap: 12px; }
#header .btn-client { background: var(--bgfi-sky); color: white; padding: 8px 20px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 13px; transition: background 0.2s; white-space: nowrap; }
#header .btn-client:hover { background: var(--bgfi-steel); }
#header .btn-online { border: 2px solid var(--bgfi-navy); color: var(--bgfi-navy); padding: 6px 16px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 13px; transition: all 0.2s; white-space: nowrap; }
#header .btn-online:hover { background: var(--bgfi-navy); color: white; }
#header .menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--bgfi-navy); }

/* ── NAV PRINCIPALE (fond #003666) ──────────────────────── */
#main-nav {
  background: var(--bgfi-blue);
  position: sticky;
  top: var(--shortcuts-height);
  z-index: 98;
}
#main-nav .container { display: flex; }
#main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
#main-nav ul li { position: relative; }
#main-nav ul li a {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
#main-nav ul li a:hover,
#main-nav ul li a.active { background: var(--bgfi-sky); color: white; }
#main-nav ul li .chevron { font-size: 10px; transition: transform 0.2s; }
#main-nav ul li:hover .chevron { transform: rotate(180deg); }

/* DROPDOWN */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  box-shadow: 0 8px 24px rgba(0,54,102,0.15);
  border-top: 3px solid var(--bgfi-sky);
  z-index: 200;
  border-radius: 0 0 6px 6px;
}
.dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 20px !important;
  color: var(--bgfi-text) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-bottom: 1px solid var(--bgfi-border);
  background: white !important;
  transition: background 0.15s !important;
}
.dropdown-menu a:hover { background: var(--bgfi-light) !important; color: var(--bgfi-navy) !important; }
.dropdown-menu a i { color: var(--bgfi-sky); width: 16px; }
#main-nav ul li:hover .dropdown-menu { display: block; }

/* ══════════════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: #0d1a2e;
}

/* Slides */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }

/* Overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0,26,60,0.78) 0%,
    rgba(0,26,60,0.52) 45%,
    rgba(0,20,50,0.22) 75%,
    rgba(0,10,30,0.06) 100%
  );
}

/* Particules flottantes */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(194, 207, 164, 0.35);
  border-radius: 50%;
  animation: floatParticle 8s infinite ease-in-out;
}
.particle:nth-child(1) { left:10%; top:20%; animation-delay:0s;   animation-duration:7s; }
.particle:nth-child(2) { left:25%; top:60%; animation-delay:1s;   animation-duration:9s; width:4px; height:4px; }
.particle:nth-child(3) { left:60%; top:15%; animation-delay:2s;   animation-duration:8s; width:8px; height:8px; background:rgba(13,145,208,0.3); }
.particle:nth-child(4) { left:75%; top:70%; animation-delay:0.5s; animation-duration:6s; }
.particle:nth-child(5) { left:45%; top:40%; animation-delay:3s;   animation-duration:10s; background:rgba(194,207,164,0.2); width:10px; height:10px; }
.particle:nth-child(6) { left:88%; top:30%; animation-delay:1.5s; animation-duration:7.5s; width:5px; height:5px; }
@keyframes floatParticle {
  0%,100% { transform: translateY(0) rotate(0deg); opacity:.4; }
  50%      { transform: translateY(-30px) rotate(180deg); opacity:.8; }
}

/* Contenu */
.hero-content { position: relative; z-index: 2; padding: 88px 24px 72px; }

/* Badge hero */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(194,207,164,0.15);
  border: 1px solid rgba(194,207,164,0.4);
  color: #C2CFA4;
  font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #C2CFA4;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.5); }
}

/* Titre typewriter */
#hero h1 {
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 800; color: white;
  line-height: 1.18; max-width: 720px;
  margin-bottom: 22px;
  text-shadow: 0 3px 16px rgba(0,0,0,0.4);
  min-height: 3.5em;
}
#hero h1 span { color: #C2CFA4; }
.cursor-blink { animation: blink .7s step-end infinite; color: #C2CFA4; font-weight: 300; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Sous-titre */
.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.88);
  max-width: 560px; margin-bottom: 40px;
  line-height: 1.75; text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Boutons */
#hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
#hero .btn-primary {
  position: relative; overflow: hidden;
  background: var(--bgfi-sky); color: white;
  padding: 14px 32px; border-radius: 4px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(13,145,208,0.45);
}
#hero .btn-primary:hover { background:#0b7db5; transform:translateY(-2px); box-shadow:0 8px 28px rgba(13,145,208,0.55); }
.btn-shine {
  position: absolute; top:0; left:-80%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite 1s;
  pointer-events: none; /* ← empêche le reflet d'intercepter les clics */
}
@keyframes shine { 0%{left:-80%} 30%,100%{left:130%} }

#hero .btn-secondary {
  background: rgba(255,255,255,0.10); backdrop-filter: blur(8px);
  color: white; border: 2px solid rgba(255,255,255,0.55);
  padding: 12px 26px; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 8px;
}
#hero .btn-secondary:hover { border-color:white; background:rgba(255,255,255,0.2); transform:translateY(-2px); }

#hero .btn-ghost {
  color: rgba(255,255,255,0.75); font-size: 14px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s; padding: 12px 8px;
}
#hero .btn-ghost:hover { color: #C2CFA4; }

/* Stats */
#hero .hero-stats {
  display: flex; gap: 0; margin-top: 52px; flex-wrap: wrap;
  background: rgba(0,0,0,0.20); backdrop-filter: blur(12px);
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.18);
  padding: 20px 32px; width: fit-content; max-width: 100%;
}
#hero .stat {
  text-align: center; padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
#hero .stat:last-child { border-right: none; }
#hero .stat-number { font-size: 32px; font-weight: 800; color: #FFFFFF; display: block; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
#hero .stat-label { font-size: 10px; color: rgba(255,255,255,0.80); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; display:block; }

/* Dots navigation slider */
.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.hero-dots .dot.active { background: #C2CFA4; transform: scale(1.3); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 28px; right: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.scroll-mouse {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 4px; height: 8px; background: #C2CFA4;
  border-radius: 2px; animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(12px);opacity:0} }

/* ══════════════════════════════════════════════════════════
   BANDEAU DÉFILANT (NEWS TICKER)
   ══════════════════════════════════════════════════════════ */
#news-ticker-bar {
  background: var(--bgfi-navy);
  color: white;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid rgba(194,207,164,0.3);
}
.ntb-label {
  background: #C2CFA4;
  color: var(--bgfi-navy);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0 20px; height: 100%;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 32px;
}
.ntb-track-wrap { flex: 1; overflow: hidden; }
.ntb-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap; font-size: 13px;
  animation: ntbScroll 38s linear infinite;
  padding-left: 40px;
}
.ntb-track:hover { animation-play-state: paused; }
.ntb-track span { display: inline-flex; align-items: center; gap: 6px; }
.ntb-track strong { color: #C2CFA4; }
.ntb-sep { color: rgba(194,207,164,0.5); font-size: 10px; }
.ntb-track i { color: rgba(255,255,255,0.6); font-size: 11px; }
@keyframes ntbScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL — SUPPRIMÉ (causait des zones blanches)
   Toutes les sections sont toujours visibles
   ══════════════════════════════════════════════════════════ */
.reveal-up { opacity: 1; transform: none; }
.reveal-section { opacity: 1 !important; transform: none !important; }
.js-reveal .reveal-section { opacity: 1 !important; transform: none !important; }
.js-reveal .reveal-section.revealed { opacity: 1 !important; transform: none !important; }

/* ── ECONOMIC TICKER (legacy, caché) ────────────────────── */
#economic-ticker {
  background: var(--bgfi-navy);
  color: white;
  padding: 10px 0;
  overflow: hidden;
}
#economic-ticker .ticker-inner { display: flex; align-items: center; gap: 0; }
#economic-ticker .ticker-label { background: var(--bgfi-sky); padding: 4px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; margin-right: 20px; border-radius: 2px; }
#economic-ticker .ticker-items { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
#economic-ticker .ticker-item { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
#economic-ticker .ticker-item .label { color: rgba(255,255,255,0.6); }
#economic-ticker .ticker-item .value { font-weight: 700; color: var(--bgfi-mint); }
#economic-ticker .ticker-tip { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.7); font-style: italic; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.2); }

/* ── SECTIONS GÉNÉRIQUES ─────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--bgfi-light); }
.section-dark { background: var(--bgfi-blue); color: white; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow { font-size: 12px; font-weight: 700; color: var(--bgfi-sky); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.section-header h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--bgfi-navy); line-height: 1.3; }
.section-dark .section-header h2 { color: white; }
.section-header p { font-size: 16px; color: var(--bgfi-text-light); max-width: 600px; margin: 12px auto 0; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }
.section-header .divider { width: 48px; height: 3px; background: var(--bgfi-sky); margin: 16px auto 0; border-radius: 2px; }

/* ── CARDS ───────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--bgfi-border);
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bgfi-navy), var(--bgfi-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,54,102,0.14); border-color: rgba(13,145,208,0.3); }
.card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 20px; }
.card-category { font-size: 11px; font-weight: 700; color: var(--bgfi-sky); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--bgfi-navy); margin-bottom: 10px; line-height: 1.4; }
.card-text { font-size: 14px; color: var(--bgfi-text-light); line-height: 1.6; }
.card-date { font-size: 12px; color: var(--bgfi-text-light); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--bgfi-sky); font-size: 13px; font-weight: 600; margin-top: 14px; text-decoration: none; transition: gap 0.2s; }
.card-link:hover { gap: 10px; }

/* PRODUCT CARD */
.product-card { text-align: center; }
.product-card .product-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--bgfi-navy) 0%, var(--bgfi-sky) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(13,145,208,0.25);
}
.card:hover .product-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(13,145,208,0.4);
}
.product-card .product-icon i { font-size: 26px; color: white; }
.product-card ul { list-style: none; text-align: left; margin: 12px 0; }
.product-card ul li { font-size: 13px; color: var(--bgfi-text-light); padding: 5px 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--bgfi-border); }
.product-card ul li:last-child { border-bottom: none; }
.product-card ul li::before { content: '✓'; color: var(--bgfi-sky); font-weight: 700; font-size: 13px; flex-shrink: 0; }

/* BADGE BIENTÔT DISPONIBLE */
.badge-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--bgfi-p4), var(--bgfi-p2));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: pulse-badge 2s infinite;
  z-index: 10;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,104,40,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(232,104,40,0); }
}
.card.unavailable { opacity: 0.85; }
.card.unavailable .product-icon { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.notify-form { display: flex; gap: 8px; margin-top: 12px; }
.notify-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--bgfi-border); border-radius: 4px; font-size: 13px; }
.notify-form button { background: var(--bgfi-sky); color: white; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background 0.2s; }
.notify-form button:hover { background: var(--bgfi-steel); }

/* ── BOUTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 4px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary-sm { background: var(--bgfi-sky); color: white; }
.btn-primary-sm:hover { background: var(--bgfi-steel); }
.btn-outline { border: 2px solid var(--bgfi-sky); color: var(--bgfi-sky); background: transparent; }
.btn-outline:hover { background: var(--bgfi-sky); color: white; }
.btn-white { background: white; color: var(--bgfi-navy); }
.btn-white:hover { background: var(--bgfi-light); }
.btn-full { width: 100%; justify-content: center; }

/* ── SEGMENT TABS ────────────────────────────────────────── */
.segment-tabs { display: flex; gap: 0; margin-bottom: 40px; border-bottom: 3px solid var(--bgfi-border); }
.segment-tab { padding: 12px 24px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--bgfi-text-light); border: none; background: none; transition: all 0.2s; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.segment-tab:hover { color: var(--bgfi-sky); }
.segment-tab.active { color: var(--bgfi-navy); border-bottom-color: var(--bgfi-sky); }

/* ── PRODUCT TABS NAVIGATION (pages produits) ─────────────── */
.prod-nav-wrap {
  background: white;
  border-bottom: 1px solid var(--bgfi-border);
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.prod-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.prod-nav::-webkit-scrollbar { display: none; }
.prod-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--bgfi-text-light);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  text-decoration: none;
}
.prod-nav-btn i { font-size: 15px; color: var(--bgfi-border); transition: color 0.2s; }
.prod-nav-btn:hover { color: var(--bgfi-sky); }
.prod-nav-btn:hover i { color: var(--bgfi-sky); }
.prod-nav-btn.active { color: var(--bgfi-navy); border-bottom-color: var(--bgfi-sky); }
.prod-nav-btn.active i { color: var(--bgfi-sky); }

/* ── PRODUCT SECTION ──────────────────────────────────────── */
.prod-section { display: none; animation: fadeSlide 0.3s ease; }
.prod-section.visible { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA BANNER ───────────────────────────────────────────── */
.prod-cta-banner {
  background: linear-gradient(135deg, var(--bgfi-navy) 0%, var(--bgfi-blue) 60%, #1a5fa0 100%);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
}
.prod-cta-banner h3 { color: white; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.prod-cta-banner p  { color: rgba(255,255,255,0.7); font-size: 14px; }
.prod-cta-banner .cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ── MAP (ancienne page) ─────────────────────────────────────── */
#map { height: 480px; border-radius: 8px; z-index: 1; }
.map-sidebar { background: white; border-radius: 8px; padding: 20px; height: 480px; overflow-y: auto; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--bgfi-border); }
.map-sidebar h3 { font-size: 15px; font-weight: 700; color: var(--bgfi-navy); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.agency-item { padding: 12px 0; border-bottom: 1px solid var(--bgfi-border); cursor: pointer; transition: background 0.15s; border-radius: 4px; padding: 10px; }
.agency-item:hover { background: var(--bgfi-light); }
.agency-item .agency-name { font-size: 13px; font-weight: 600; color: var(--bgfi-navy); display: flex; align-items: center; gap: 8px; }
.agency-item .agency-type { font-size: 11px; background: var(--bgfi-sky); color: white; padding: 2px 8px; border-radius: 10px; }
.agency-item .agency-type.gab { background: var(--bgfi-p3); }
.agency-item .agency-info { font-size: 12px; color: var(--bgfi-text-light); margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

/* ── ACTUALITÉS ──────────────────────────────────────────── */
.news-featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 32px; }
.news-featured .card-img { height: 280px; }
.news-side { display: flex; flex-direction: column; gap: 16px; }
.news-mini { display: flex; gap: 12px; background: white; border-radius: 6px; overflow: hidden; border: 1px solid var(--bgfi-border); transition: all 0.2s; }
.news-mini:hover { border-color: var(--bgfi-sky); box-shadow: 0 4px 12px rgba(0,54,102,0.08); }
.news-mini img { width: 90px; height: 80px; object-fit: cover; flex-shrink: 0; }
.news-mini-body { padding: 10px 12px; }
.news-mini-body .card-category { margin-bottom: 4px; }
.news-mini-body .card-title { font-size: 13px; line-height: 1.4; }

/* ── HERO SECTION INTÉRIEURE ─────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--bgfi-navy), var(--bgfi-blue)); padding: 48px 0; color: white; }
.page-hero h1 { font-size: 32px; font-weight: 700; color: white; }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { opacity: 0.4; }

/* ── HERO KEN BURNS (page Entreprises) ───────────────────── */
.ent-parallax-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* L'image avec l'animation Ken Burns */
.ent-parallax-hero .kb-img {
  position: absolute;
  inset: -10%;          /* déborde pour que le zoom ne coupe pas */
  width: 120%;
  height: 120%;
  background-image: url('/static/images/entreprises-banner.jpg');
  background-size: cover;
  background-position: center 30%;
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0%   { transform: scale(1)    translateX(0%)   translateY(0%); }
  25%  { transform: scale(1.06) translateX(-1%)  translateY(-1%); }
  50%  { transform: scale(1.1)  translateX(-2%)  translateY(1%); }
  75%  { transform: scale(1.06) translateX(1%)   translateY(-0.5%); }
  100% { transform: scale(1)    translateX(0.5%) translateY(0.5%); }
}

/* Overlay gradient pour lisibilité du texte */
.ent-parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(0, 15, 45, 0.30) 0%,
    rgba(0, 20, 60, 0.60) 45%,
    rgba(0, 10, 35, 0.88) 100%
  );
}

/* Contenu texte par-dessus */
.ent-parallax-content {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  padding-top: 32px;
  width: 100%;
}

/* Ligne décorative animée sous le titre */
.ent-parallax-content h1::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #C2CFA4, #0d91d0);
  border-radius: 2px;
  margin-top: 10px;
  animation: lineReveal 1.2s 0.6s ease forwards;
}
@keyframes lineReveal {
  to { width: 120px; }
}

/* Entrée du texte avec fondu */
.ent-parallax-content .kb-title {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.ent-parallax-content .kb-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s ease forwards;
}
.ent-parallax-content .kb-btns {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.8s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SIMULATEUR ──────────────────────────────────────────── */
.simulator-tabs { display: flex; gap: 0; background: var(--bgfi-light); border-radius: 6px; padding: 4px; margin-bottom: 28px; }
.sim-tab { flex: 1; padding: 10px; text-align: center; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--bgfi-text-light); background: none; border: none; transition: all 0.2s; }
.sim-tab.active { background: white; color: var(--bgfi-navy); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sim-box { background: white; border-radius: 8px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--bgfi-border); }
.sim-box label { font-size: 13px; font-weight: 600; color: var(--bgfi-navy); display: block; margin-bottom: 6px; }
.sim-box input, .sim-box select { width: 100%; padding: 10px 14px; border: 1px solid var(--bgfi-border); border-radius: 4px; font-size: 14px; margin-bottom: 16px; background: var(--bgfi-light); }
.sim-box input:focus, .sim-box select:focus { outline: none; border-color: var(--bgfi-sky); background: white; }
.sim-result { background: var(--bgfi-navy); color: white; border-radius: 6px; padding: 20px; text-align: center; margin-top: 8px; }
.sim-result .result-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.sim-result .result-value { font-size: 28px; font-weight: 700; color: var(--bgfi-mint); margin: 4px 0; }
.sim-result .result-detail { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── TÉMOIGNAGES ─────────────────────────────────────────── */
.testimonial-card { background: white; border-radius: 8px; padding: 28px; border: 1px solid var(--bgfi-border); position: relative; }
.testimonial-card::before { content: '"'; font-size: 80px; color: var(--bgfi-sky); opacity: 0.15; position: absolute; top: 10px; left: 20px; font-family: Georgia, serif; line-height: 1; }
.testimonial-card blockquote { font-size: 15px; color: var(--bgfi-text); line-height: 1.7; font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; background: var(--bgfi-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }
.testimonial-author .author-name { font-weight: 700; color: var(--bgfi-navy); font-size: 14px; }
.testimonial-author .author-role { font-size: 12px; color: var(--bgfi-text-light); }

/* ── NEWSLETTER / CTA BANNER ─────────────────────────────── */
#newsletter-section { background: linear-gradient(135deg, var(--bgfi-sky), var(--bgfi-teal)); padding: 56px 0; }
#newsletter-section h2 { color: white; font-size: 28px; font-weight: 700; }
#newsletter-section p { color: rgba(255,255,255,0.85); margin-top: 8px; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter-apps { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form { display: flex; gap: 12px; margin-top: 24px; max-width: 480px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: none; border-radius: 4px; font-size: 14px; outline: none; }
.newsletter-form button { background: var(--bgfi-navy); color: white; border: none; padding: 12px 24px; border-radius: 4px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s; font-size: 14px; }
.newsletter-form button:hover { background: var(--bgfi-blue); }

/* ── FOOTER ──────────────────────────────────────────────── */
#footer { background: var(--bgfi-footer); color: rgba(255,255,255,0.8); padding: 0 0 0; }
#footer-accent { height: 4px; background: linear-gradient(90deg, var(--bgfi-navy), var(--bgfi-sky), var(--bgfi-mint)); }
#footer .footer-inner { padding: 48px 0 0; }
#footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
#footer .footer-logo-img { height: 64px; width: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 12px; }
#footer .footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); }
#footer .footer-social { display: flex; gap: 10px; margin-top: 16px; }
#footer .footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 14px; transition: all 0.2s; text-decoration: none; }
#footer .footer-social a:hover { background: var(--bgfi-sky); color: white; }
#footer .footer-col h4 { font-size: 13px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
#footer .footer-col ul { list-style: none; }
#footer .footer-col ul li { margin-bottom: 8px; }
#footer .footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
#footer .footer-col ul li a:hover { color: var(--bgfi-mint); }
#footer .footer-contact p { font-size: 13px; color: rgba(255,255,255,0.6); display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
#footer .footer-contact i { color: var(--bgfi-sky); margin-top: 2px; }
#footer .footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
#footer .footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
#footer .footer-bottom a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
#footer .footer-bottom a:hover { color: rgba(255,255,255,0.7); }
#footer .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }


/* ── ADMIN ───────────────────────────────────────────────── */
#admin-layout { display: flex; min-height: 100vh; }
#admin-sidebar { width: 260px; background: var(--bgfi-navy); color: white; flex-shrink: 0; position: fixed; height: 100vh; overflow-y: auto; z-index: 10; }
#admin-sidebar .admin-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; }
#admin-sidebar .admin-logo span { font-weight: 700; font-size: 14px; }
#admin-sidebar .admin-logo .badge { font-size: 9px; background: var(--bgfi-sky); padding: 2px 6px; border-radius: 10px; text-transform: uppercase; }
#admin-nav { padding: 16px 0; }
#admin-nav .nav-section { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; padding: 8px 20px 4px; }
#admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; transition: all 0.2s; }
#admin-nav a:hover, #admin-nav a.active { background: rgba(255,255,255,0.1); color: white; }
#admin-nav a i { width: 16px; text-align: center; font-size: 13px; }
#admin-content { margin-left: 260px; flex: 1; background: #f0f2f5; min-height: 100vh; }
#admin-topbar { background: white; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 5; }
#admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--bgfi-navy); }
#admin-topbar .admin-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--bgfi-text-light); }
.admin-main { padding: 28px; }
.stat-card { background: white; border-radius: 8px; padding: 20px 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); border: 1px solid var(--bgfi-border); display: flex; align-items: center; gap: 16px; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; flex-shrink: 0; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--bgfi-navy); line-height: 1; }
.stat-card .stat-label { font-size: 12px; color: var(--bgfi-text-light); margin-top: 2px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.admin-table th { background: var(--bgfi-light); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--bgfi-navy); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--bgfi-border); }
.admin-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--bgfi-border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bgfi-light); }
.admin-card { background: white; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); border: 1px solid var(--bgfi-border); margin-bottom: 24px; }
.admin-card h2 { font-size: 16px; font-weight: 700; color: var(--bgfi-navy); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--bgfi-navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--bgfi-border); border-radius: 4px; font-size: 14px; font-family: inherit; background: var(--bgfi-light); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--bgfi-sky); background: white; }
.form-group textarea { min-height: 100px; resize: vertical; }
.badge-published { background: #dcfce7; color: #16a34a; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-draft { background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-unavail { background: #fee2e2; color: #dc2626; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.action-btns { display: flex; gap: 6px; }
.btn-edit { background: var(--bgfi-sky); color: white; border: none; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.btn-delete { background: var(--bgfi-p5); color: white; border: none; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.btn-toggle { background: var(--bgfi-p3); color: white; border: none; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bgfi-navy); color: white; padding: 14px 20px; border-radius: 6px; font-size: 13px; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; transform: translateY(100px); opacity: 0; transition: all 0.3s; max-width: 320px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--bgfi-p3); }
.toast.error { border-left: 4px solid var(--bgfi-p5); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: 8px; width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,0.2); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--bgfi-border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 1; }
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--bgfi-navy); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--bgfi-text-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--bgfi-border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── PME SECTION ─────────────────────────────────────────── */
.pme-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.pme-step { text-align: center; }
.pme-step .step-num { width: 48px; height: 48px; background: var(--bgfi-sky); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin: 0 auto 16px; }
.pme-step h4 { font-size: 14px; font-weight: 700; color: var(--bgfi-navy); margin-bottom: 8px; }
.pme-step p { font-size: 13px; color: var(--bgfi-text-light); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 1024px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { height: 300px; }
  .pme-steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .container { padding: 0 20px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navigation */
  #main-nav { display: none; }
  #main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bgfi-navy); z-index: 999; padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  #main-nav ul { flex-direction: column; width: 100%; padding: 0 16px; gap: 2px; }
  #main-nav ul li a { padding: 12px 16px; border-radius: 6px; font-size: 14px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.07); border-radius: 6px; margin-top: 4px; }
  .dropdown-menu a { color: rgba(255,255,255,0.85) !important; background: transparent !important; font-size: 13px; padding: 8px 16px !important; }
  #header .btn-online { display: none; }
  #header .menu-toggle { display: flex; }
  #header { height: auto; min-height: 56px; }
  #header .header-inner { padding: 0 16px; height: 56px; }
  #header .logo-img { height: 48px; }
  #top-bar { display: none; }

  /* Hero */
  #hero { min-height: 420px; }
  #hero .hero-content { padding: 48px 16px 36px; }
  #hero h1 { font-size: clamp(22px, 7vw, 32px); margin-bottom: 14px; }
  #hero p { font-size: 14px; margin-bottom: 24px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; max-width: 280px; justify-content: center; padding: 12px 20px; font-size: 14px; }
  .hero-stats { gap: 16px; margin-top: 28px; flex-wrap: wrap; }
  .hero-stats .stat-number { font-size: 24px; }
  .hero-stats .stat-label { font-size: 10px; }

  /* Sections */
  .section { padding: 36px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: clamp(20px, 5vw, 28px); }

  /* Grilles */
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-featured { grid-template-columns: 1fr; }

  /* Cards */
  .product-card { padding: 20px 16px; }
  .news-card .news-body { padding: 16px; }

  /* Formulaires */
  .simulator-tabs { flex-direction: column; }
  .sim-form { padding: 20px 16px; }

  /* Carte agences */
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { height: 260px; overflow-y: auto; }
  #map { height: 300px; }

  /* Newsletter */
  .newsletter-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-form input { width: 100%; }
  .newsletter-form button { width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  #footer { padding: 32px 0 16px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; font-size: 11px; }

  /* Ticker économique */
  #economic-ticker .ticker-tip { display: none; }
  #economic-ticker { font-size: 12px; }

  /* Navigation segments */
  .segment-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .segment-tabs::-webkit-scrollbar { display: none; }

  /* Steps PME */
  .pme-steps { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { padding: 32px 16px; }
  .page-hero h1 { font-size: clamp(20px, 6vw, 28px); }
  .breadcrumb { font-size: 12px; }

  /* Ken Burns hero mobile */
  .ent-parallax-hero { height: 440px; }
  .ent-parallax-hero .kb-img { animation-duration: 24s; }
  .ent-parallax-content { padding-bottom: 36px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Tables responsive */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive table { min-width: 600px; }

  /* Bandeau défilant */
  #news-ticker { font-size: 12px; }
  #news-ticker .ntb-label { padding: 0 12px; font-size: 10px; }

  /* Témoignages */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ── Grilles inline responsives ── */
  /* Toutes les divs avec display:grid et plusieurs colonnes passent en 1 colonne */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Exception : grilles 2 colonnes qui doivent rester (badges, petits items) */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:16px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Newsletter widget en bas de page */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:40px"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Sections avec image + texte côte à côte → empilées */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:60px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Grille 4 colonnes (stats entreprises/pro) → 2 colonnes sur mobile */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Grille 3 colonnes → 1 colonne sur mobile */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Barre newsletter avec widget BGFIMobile/BGFIOnline */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:48px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE (≤ 480px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { justify-content: flex-start; }
  .hero-stats > div { flex: 0 0 calc(50% - 8px); }
  .section-header h2 { font-size: 20px; }
  #hero h1 { font-size: 22px; }
  #hero p { font-size: 13px; }
  .btn-primary, .btn-secondary { font-size: 13px; padding: 10px 16px; }
  .stat-card { padding: 12px; }
  .stat-number { font-size: 26px; }
}

/* ══════════════════════════════════════════════════════════
   LOADER — Page de chargement
   ══════════════════════════════════════════════════════════ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bgfi-navy);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loader-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.97); }
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--bgfi-sky);
  border-radius: 2px;
  animation: loaderFill 1.4s ease-out forwards;
}
@keyframes loaderFill {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   BOUTON RETOUR EN HAUT
   ══════════════════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--bgfi-sky);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 9000;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--bgfi-navy);
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS REVEAL AU SCROLL — v2
   ══════════════════════════════════════════════════════════ */

/* Base — fade + montée */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2), transform 0.65s cubic-bezier(.22,.68,0,1.2);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Slide depuis la gauche */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2), transform 0.65s cubic-bezier(.22,.68,0,1.2);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Slide depuis la droite */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2), transform 0.65s cubic-bezier(.22,.68,0,1.2);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Zoom subtil */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.68,0,1.2);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Fade simple (sans translation) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.reveal-fade.visible { opacity: 1; }

/* Délais en cascade via data-delay ou nth-child */
.reveal-delay-1, [data-delay="1"] { transition-delay: 0.08s !important; }
.reveal-delay-2, [data-delay="2"] { transition-delay: 0.16s !important; }
.reveal-delay-3, [data-delay="3"] { transition-delay: 0.24s !important; }
.reveal-delay-4, [data-delay="4"] { transition-delay: 0.32s !important; }
.reveal-delay-5, [data-delay="5"] { transition-delay: 0.40s !important; }
.reveal-delay-6, [data-delay="6"] { transition-delay: 0.48s !important; }

/* Grilles — enfants avec délais auto */
.reveal-grid > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(.22,.68,0,1.2), transform 0.55s cubic-bezier(.22,.68,0,1.2);
}
.reveal-grid.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.reveal-grid.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.08s; }
.reveal-grid.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.16s; }
.reveal-grid.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.24s; }
.reveal-grid.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.32s; }
.reveal-grid.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.40s; }
.reveal-grid.visible > *:nth-child(n+7) { opacity:1; transform:none; transition-delay: 0.48s; }

/* Ligne séparatrice animée */
.reveal-line {
  width: 0;
  height: 3px;
  background: var(--bgfi-sky);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(.22,.68,0,1.2);
  display: block;
}
.reveal-line.visible { width: 60px; }

/* Désactiver pour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-fade,
  .reveal-grid > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════
   WAVE DIVIDERS
   ══════════════════════════════════════════════════════════ */
.wave-divider {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}
.wave-top { margin-bottom: -2px; }
.wave-bottom { margin-top: -2px; }

/* ══════════════════════════════════════════════════════════
   BADGES MODERNISÉS
   ══════════════════════════════════════════════════════════ */
.badge-new {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  position: absolute; top: 12px; left: 12px; z-index: 2;
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}
.badge-popular {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--bgfi-sky), var(--bgfi-navy));
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  position: absolute; top: 12px; left: 12px; z-index: 2;
  box-shadow: 0 2px 8px rgba(13,145,208,0.4);
}
.badge-promo {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  position: absolute; top: 12px; left: 12px; z-index: 2;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

/* ══════════════════════════════════════════════════════════
   TITRES H2 AVEC MOT CLÉ COLORÉ
   ══════════════════════════════════════════════════════════ */
.section-header h2 .accent { color: var(--bgfi-sky); }
.section-header h2 .accent-mint { color: var(--bgfi-mint); }

/* Divider section header amélioré */
.section-header .divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--bgfi-sky), var(--bgfi-mint));
  margin: 16px auto 0; border-radius: 2px;
}
.section-header.left .divider { margin-left: 0; }

/* ══════════════════════════════════════════════════════════
   AMÉLIORATION BOUTONS GLOBAUX
   ══════════════════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--bgfi-sky), var(--bgfi-blue));
  border: none;
  box-shadow: 0 4px 14px rgba(13,145,208,0.35);
  transition: all 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,145,208,0.45);
}
.btn-primary-sm {
  background: linear-gradient(135deg, var(--bgfi-sky), var(--bgfi-blue)) !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(13,145,208,0.3);
  transition: all 0.25s !important;
}
.btn-primary-sm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(13,145,208,0.4) !important;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADER DIVIDER AMÉLIORÉ
   ══════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--bgfi-sky);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════
   STAT CARDS AMÉLIORÉES (hero stats)
   ══════════════════════════════════════════════════════════ */
.hero-stats .stat {
  text-align: center;
  padding: 8px 16px;
  border-left: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.hero-stats .stat:first-child { border-left: none; }
.hero-stats .stat-number { 
  font-size: 28px;
  font-weight: 800;
  color: white;
  display: block;
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 11px;
  color: var(--bgfi-mint);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION PRODUITS (tabs) AMÉLIORÉE
   ══════════════════════════════════════════════════════════ */
.prod-nav-btn {
  transition: all 0.22s;
  border-radius: 6px !important;
}
.prod-nav-btn:hover:not(.active) {
  background: rgba(13,145,208,0.08) !important;
  color: var(--bgfi-sky) !important;
}
.prod-nav-btn.active {
  background: linear-gradient(135deg, var(--bgfi-navy), var(--bgfi-sky)) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(13,145,208,0.3) !important;
}

/* ══════════════════════════════════════════════════════════
   HEADER SHRINK AU SCROLL
   ══════════════════════════════════════════════════════════ */
#header {
  transition: height 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#header.shrunk {
  height: 52px !important;
  min-height: 52px !important;
  box-shadow: 0 4px 20px rgba(0,54,102,0.18) !important;
}
#header.shrunk .logo-img {
  height: 38px !important;
  transition: height 0.3s ease;
}
#header.shrunk .btn-client,
#header.shrunk .btn-online {
  padding: 5px 14px !important;
  font-size: 12px !important;
}

/* ── NAV — indicateur page active animé (souligné glissant) */
#main-nav ul li {
  position: relative;
}
#main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--bgfi-mint);
  transition: left 0.25s ease, right 0.25s ease;
}
#main-nav ul li a.active::after,
#main-nav ul li a:hover::after {
  left: 8px;
  right: 8px;
}
#main-nav ul li a.active {
  background: rgba(255,255,255,0.08) !important;
  color: white !important;
}

/* ══════════════════════════════════════════════════════════
   DRAWER MOBILE — SLIDE-IN LATÉRAL
   ══════════════════════════════════════════════════════════ */
#nav-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#nav-drawer-overlay.open { display: block; opacity: 1; }

#nav-drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100dvh;
  background: var(--bgfi-navy);
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
}
#nav-drawer.open { right: 0; }

/* Header du drawer */
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
}
.drawer-header img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.drawer-close {
  background: rgba(255,255,255,0.1);
  border: none; cursor: pointer;
  color: white; font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.2); }

/* Liens du drawer */
.drawer-nav { flex: 1; padding: 12px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.drawer-nav a:hover,
.drawer-nav a.active {
  background: rgba(13,145,208,0.2);
  color: white;
  padding-left: 32px;
}
.drawer-nav a i { color: var(--bgfi-mint); width: 18px; font-size: 14px; }
.drawer-nav a.active i { color: var(--bgfi-sky); }
.drawer-section-title {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 2px;
  padding: 16px 24px 6px;
}

/* Footer du drawer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-footer a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 0; border-radius: 6px;
  text-decoration: none; font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}
.drawer-btn-client {
  background: var(--bgfi-sky); color: white !important;
}
.drawer-btn-client:hover { background: #0b7db5 !important; }
.drawer-btn-online {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85) !important;
}
.drawer-btn-online:hover { border-color: white; background: rgba(255,255,255,0.08) !important; }

/* ══════════════════════════════════════════════════════════
   EFFET RIPPLE SUR BOUTONS
   ══════════════════════════════════════════════════════════ */
.btn-ripple {
  position: relative; overflow: hidden;
}
.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   SCROLL INDICATOR — FLÈCHE BOUNCE
   ══════════════════════════════════════════════════════════ */
.scroll-arrow-bounce {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer;
  animation: arrowBounce 1.6s ease-in-out infinite;
}
.scroll-arrow-bounce i {
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  display: block;
}
.scroll-arrow-bounce i:nth-child(2) { opacity: 0.45; margin-top: -6px; font-size: 16px; }
@keyframes arrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════════
   COMPTEURS ANIMÉS — .stat-number avec data-count
   ══════════════════════════════════════════════════════════ */
.stat-number[data-count] {
  display: block;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE DRAWER (≥ 769px : caché)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  #nav-drawer,
  #nav-drawer-overlay { display: none !important; }
}


/* ══════════════════════════════════════════════════════════
   PAGE HERO — TYPEWRITER (pages internes)
   ══════════════════════════════════════════════════════════ */
.page-hero { 
  background: linear-gradient(135deg, var(--bgfi-navy) 0%, var(--bgfi-blue) 60%, #0a2a5c 100%);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}
/* Petit motif décoratif en arrière-plan */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(13,145,208,0.15) 0%, transparent 65%),
              radial-gradient(ellipse at 10% 80%, rgba(194,207,164,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Badge pastille animée */
.ph-tw-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}

/* Titre */
.ph-tw-title {
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  letter-spacing: -0.3px;
  min-height: 1.3em; /* évite le layout shift */
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Icône dans le titre */
.ph-tw-icon {
  color: var(--bgfi-mint);
  font-size: 0.75em;
  flex-shrink: 0;
}

/* Curseur clignotant */
.ph-tw-cursor {
  color: var(--bgfi-mint);
  font-weight: 300;
  animation: blink .65s step-end infinite;
}

/* Sous-titre */
.ph-tw-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .page-hero { padding: 36px 0 28px; }
  .ph-tw-title { font-size: clamp(22px, 6vw, 30px); gap: 10px; }
  .ph-tw-sub { font-size: 14px; }
}


/* ================================================================
   VISUAL CARDS (product cards redesign avec image de fond)
   ================================================================ */

.visual-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 24px rgba(0,40,100,0.10);
  transition: transform 0.38s cubic-bezier(.22,.68,0,1.2), box-shadow 0.38s ease;
  display: flex;
  flex-direction: column;
}

.visual-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 48px rgba(0,40,100,0.18);
}

/* Image de fond */
.vc-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.vc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.22,.68,0,1.2);
  will-change: transform;
}

.visual-card:hover .vc-img {
  transform: scale(1.10);
}

/* Overlay dégradé sombre bas */
.vc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,22,58,0.08) 0%,
    rgba(0,22,58,0.15) 45%,
    rgba(0,22,58,0.72) 100%
  );
  transition: background 0.38s ease;
}

.visual-card:hover .vc-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,22,58,0.12) 0%,
    rgba(0,22,58,0.22) 40%,
    rgba(0,22,58,0.82) 100%
  );
}

/* Badges positionnés sur l'image */
.vc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.vc-badge-new   { background: rgba(34,197,94,0.92); color: white; }
.vc-badge-pop   { background: rgba(239,68,68,0.92); color: white; }
.vc-badge-promo { background: rgba(245,158,11,0.95); color: white; }
.vc-badge-soon  { background: rgba(100,116,139,0.92); color: white; }

/* Corps de la card */
.vc-body {
  padding: 20px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Icône */
.vc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bgfi-sky), var(--bgfi-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,145,208,0.30);
  margin-top: -36px;        /* Chevauche l'image */
  position: relative;
  z-index: 3;
  border: 2px solid white;
}

.vc-icon {
  color: white;
  font-size: 18px;
}

/* Titre */
.vc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--bgfi-navy);
  line-height: 1.3;
  margin: 0;
}

/* Description */
.vc-desc {
  font-size: 13px;
  color: var(--bgfi-text-light);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Features */
.vc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vc-features li {
  font-size: 12px;
  color: var(--bgfi-text);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}

.vc-features li .fa-check {
  color: var(--bgfi-sky);
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Footer CTA */
.vc-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--bgfi-border);
}

.vc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--bgfi-sky), var(--bgfi-blue));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  width: 100%;
  justify-content: center;
}

.vc-cta:hover {
  background: linear-gradient(135deg, var(--bgfi-blue), var(--bgfi-navy));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,145,208,0.35);
}

.vc-notify {
  display: flex;
  gap: 6px;
}

.vc-notify input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--bgfi-border);
  border-radius: 6px;
  font-size: 12px;
}

.vc-notify button {
  padding: 8px 12px;
  background: var(--bgfi-sky);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* Indisponible */
.vc-unavailable .vc-img { filter: grayscale(55%); }
.vc-unavailable .vc-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.55)) !important; }

/* Animation fade-in-up pour les visual-cards */
.visual-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.68,0,1.2), box-shadow 0.38s ease;
}

.visual-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Décalage en cascade */
.visual-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.visual-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.visual-card.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 640px) {
  .vc-img-wrap { height: 170px; }
  .vc-body { padding: 14px 14px 12px; }
  .vc-title { font-size: 15px; }
}


/* ================================================================
   HERO CINÉMATIQUE CSS — BASE COMMUNE
   ================================================================ */

.cinehero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ch-content {
  position: relative;
  z-index: 10;
  padding: 80px 20px 60px;
}

.ch-breadcrumb {
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 20px;
}

.ch-breadcrumb a {
  color: rgba(255,255,255,0.65) !important;
}

.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,145,208,0.18);
  border: 1px solid rgba(13,145,208,0.40);
  color: var(--bgfi-mint);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.ch-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.8s infinite;
}

/* Grille tech */
.ch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Lignes lumineuses */
.ch-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.ch-lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,145,208,0.7), transparent);
  animation: lineSweep 6s linear infinite;
  opacity: 0;
}

.ch-lines span:nth-child(1) { top: 15%; width: 60%; left: 20%; animation-delay: 0s; }
.ch-lines span:nth-child(2) { top: 38%; width: 40%; left: 0%;  animation-delay: 1.2s; }
.ch-lines span:nth-child(3) { top: 62%; width: 70%; left: 15%; animation-delay: 2.4s; }
.ch-lines span:nth-child(4) { top: 78%; width: 35%; left: 40%; animation-delay: 3.6s; }
.ch-lines span:nth-child(5) { top: 92%; width: 50%; left: 10%; animation-delay: 4.8s; }

@keyframes lineSweep {
  0%   { opacity: 0; transform: translateX(-100%); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* Orbes flottants */
.ch-orbs { position: absolute; inset: 0; z-index: 2; overflow: hidden; }

.ch-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.ch-orb-1 { width: 500px; height: 500px; top: -20%; right: -10%; animation-delay: 0s; }
.ch-orb-2 { width: 350px; height: 350px; bottom: -15%; left: -5%; animation-delay: 4s; }
.ch-orb-3 { width: 250px; height: 250px; top: 30%; left: 40%; animation-delay: 8s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.95); }
}

/* Particules flottantes */
.ch-particles { position: absolute; inset: 0; z-index: 3; }

.ch-p {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(194,207,164,0.7);
  animation: chParticle 8s ease-in-out infinite;
}

/* Positions individuelles */
.ch-p-1  { top: 20%; left: 15%; animation-delay: 0s;    width: 3px; height: 3px; }
.ch-p-2  { top: 50%; left: 80%; animation-delay: 1s;    width: 5px; height: 5px; background: rgba(13,145,208,0.6); }
.ch-p-3  { top: 75%; left: 30%; animation-delay: 2s; }
.ch-p-4  { top: 30%; left: 60%; animation-delay: 3s;    width: 3px; height: 3px; }
.ch-p-5  { top: 85%; left: 70%; animation-delay: 1.5s;  width: 6px; height: 6px; background: rgba(255,255,255,0.3); }
.ch-p-6  { top: 10%; left: 45%; animation-delay: 2.5s; }
.ch-p-7  { top: 65%; left: 10%; animation-delay: 3.5s;  width: 3px; height: 3px; }
.ch-p-8  { top: 40%; left: 90%; animation-delay: 0.5s;  width: 5px; height: 5px; background: rgba(13,145,208,0.5); }
.ch-p-9  { top: 90%; left: 55%; animation-delay: 4s; }
.ch-p-10 { top: 5%;  left: 75%; animation-delay: 2s;    width: 3px; height: 3px; }
.ch-p-11 { top: 55%; left: 22%; animation-delay: 1.2s;  width: 5px; height: 5px; }
.ch-p-12 { top: 22%; left: 88%; animation-delay: 3.2s; }

@keyframes chParticle {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
  50%       { transform: translateY(-28px) scale(1.3); opacity: 1; }
}

/* Boutons communs cinehero */
.ch-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ch-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(255,255,255,0.10);
  color: white;
  border: 2px solid rgba(255,255,255,0.30);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.ch-btn-ghost:hover {
  background: rgba(255,255,255,0.20);
  color: white;
  border-color: rgba(255,255,255,0.55);
}

/* Métriques */
.ch-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.ch-metric { text-align: center; }

.ch-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.ch-lbl {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.ch-metric-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}


/* ================================================================
   HERO CINÉMATIQUE — PROFESSIONNELS (bleu tech)
   ================================================================ */

.cinehero-pro {
  background: linear-gradient(135deg, #003666 0%, #002a58 40%, #001a3a 100%);
}

.cinehero-pro .ch-orb-1 { background: radial-gradient(circle, rgba(13,145,208,0.35), transparent 70%); }
.cinehero-pro .ch-orb-2 { background: radial-gradient(circle, rgba(0,80,180,0.25), transparent 70%); }
.cinehero-pro .ch-orb-3 { background: radial-gradient(circle, rgba(194,207,164,0.12), transparent 70%); }


/* ================================================================
   HERO CINÉMATIQUE — ENTREPRISES (bleu marine + silhouette)
   ================================================================ */

.cinehero-ent {
  background: linear-gradient(135deg, #001428 0%, #002244 50%, #003060 100%);
}

.cinehero-ent .ch-orb-1 { background: radial-gradient(circle, rgba(0,100,200,0.30), transparent 70%); }
.cinehero-ent .ch-orb-2 { background: radial-gradient(circle, rgba(13,145,208,0.20), transparent 70%); }
.cinehero-ent .ch-orb-3 { background: radial-gradient(circle, rgba(194,207,164,0.10), transparent 70%); }

/* Skyline silhouette */
.ch-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 4;
  pointer-events: none;
}

.ch-skyline svg {
  width: 100%;
  height: 100%;
}


/* ================================================================
   HERO CINÉMATIQUE — BANQUE PRIVÉE (luxe doré)
   ================================================================ */

.cinehero-prive {
  background: linear-gradient(135deg, #0d0628 0%, #1a082e 30%, #0a1a3d 70%, #003060 100%);
  min-height: 620px;
}

/* Dégradé doré animé */
.ch-gold-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 80% at 70% 40%,
    rgba(212,175,55,0.10) 0%,
    transparent 60%
  );
  animation: goldShimmer 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes goldShimmer {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

/* Cercles concentriques */
.ch-rings { position: absolute; inset: 0; z-index: 2; overflow: hidden; }

.ch-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.12);
  animation: ringExpand 12s ease-in-out infinite;
}

.ch-ring-1 { width: 600px; height: 600px; right: -200px; top: -150px; animation-delay: 0s; }
.ch-ring-2 { width: 450px; height: 450px; right: -100px; top: -75px;  animation-delay: 2s; border-color: rgba(212,175,55,0.08); }
.ch-ring-3 { width: 300px; height: 300px; right: -0px;   top: 0px;    animation-delay: 4s; border-color: rgba(212,175,55,0.06); }

@keyframes ringExpand {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.06) rotate(8deg); }
}

/* Lignes diagonales dorées */
.ch-diag { position: absolute; inset: 0; z-index: 3; overflow: hidden; }

.ch-diag span {
  position: absolute;
  width: 1px;
  height: 200%;
  background: linear-gradient(to bottom, transparent, rgba(212,175,55,0.15), transparent);
  transform-origin: top center;
  animation: diagFloat 10s ease-in-out infinite;
}

.ch-diag span:nth-child(1) { left: 25%; top: -50%; transform: rotate(15deg); animation-delay: 0s; }
.ch-diag span:nth-child(2) { left: 60%; top: -50%; transform: rotate(20deg); animation-delay: 3s; opacity: 0.6; }
.ch-diag span:nth-child(3) { left: 80%; top: -50%; transform: rotate(12deg); animation-delay: 6s; opacity: 0.4; }

@keyframes diagFloat {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* Étoiles */
.ch-stars { position: absolute; inset: 0; z-index: 3; }

.ch-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(212,175,55,0.8);
  animation: starTwinkle 3s ease-in-out infinite;
}

/* Positions étoiles */
.ch-star:nth-child(1)  { top: 8%;  left: 12%; animation-delay: 0s; }
.ch-star:nth-child(2)  { top: 15%; left: 55%; animation-delay: 0.5s; width:3px; height:3px; }
.ch-star:nth-child(3)  { top: 25%; left: 82%; animation-delay: 1s; }
.ch-star:nth-child(4)  { top: 40%; left: 22%; animation-delay: 1.5s; width:3px; height:3px; }
.ch-star:nth-child(5)  { top: 60%; left: 70%; animation-delay: 2s; }
.ch-star:nth-child(6)  { top: 72%; left: 35%; animation-delay: 0.3s; width:3px; height:3px; }
.ch-star:nth-child(7)  { top: 85%; left: 90%; animation-delay: 1.2s; }
.ch-star:nth-child(8)  { top: 5%;  left: 40%; animation-delay: 2.5s; width:3px; height:3px; }
.ch-star:nth-child(9)  { top: 50%; left: 15%; animation-delay: 0.8s; }
.ch-star:nth-child(10) { top: 30%; left: 48%; animation-delay: 1.8s; }
.ch-star:nth-child(11) { top: 20%; left: 68%; animation-delay: 2.3s; width:3px; height:3px; }
.ch-star:nth-child(12) { top: 78%; left: 58%; animation-delay: 0.6s; }
.ch-star:nth-child(13) { top: 90%; left: 25%; animation-delay: 3.0s; width:3px; height:3px; }
.ch-star:nth-child(14) { top: 45%; left: 92%; animation-delay: 1.4s; }
.ch-star:nth-child(15) { top: 65%; left: 50%; animation-delay: 2.8s; width:3px; height:3px; }
.ch-star:nth-child(16) { top: 35%; left: 8%;  animation-delay: 0.2s; }
.ch-star:nth-child(17) { top: 55%; left: 78%; animation-delay: 3.5s; width:3px; height:3px; }
.ch-star:nth-child(18) { top: 12%; left: 92%; animation-delay: 1.6s; }
.ch-star:nth-child(19) { top: 80%; left: 5%;  animation-delay: 4.0s; width:3px; height:3px; }
.ch-star:nth-child(20) { top: 95%; left: 45%; animation-delay: 0.9s; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.6); }
}

/* Particules dorées */
.ch-gold-particles { position: absolute; inset: 0; z-index: 4; }

.ch-gp {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #D4AF37, rgba(212,175,55,0.3));
  animation: goldFloat 7s ease-in-out infinite;
}

.ch-gp-1 { top: 30%; left: 20%; animation-delay: 0s; }
.ch-gp-2 { top: 60%; left: 75%; animation-delay: 1s; width:7px; height:7px; }
.ch-gp-3 { top: 20%; left: 65%; animation-delay: 2s; width:4px; height:4px; }
.ch-gp-4 { top: 75%; left: 40%; animation-delay: 3s; }
.ch-gp-5 { top: 45%; left: 85%; animation-delay: 1.5s; width:6px; height:6px; }
.ch-gp-6 { top: 85%; left: 15%; animation-delay: 2.5s; }
.ch-gp-7 { top: 15%; left: 30%; animation-delay: 4s; width:4px; height:4px; }
.ch-gp-8 { top: 50%; left: 50%; animation-delay: 0.8s; width:7px; height:7px; }

@keyframes goldFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50%       { transform: translateY(-35px) rotate(180deg); opacity: 1; }
}

/* Diamond SVG décoratif */
.ch-diamond-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.7;
  animation: diamondSpin 40s linear infinite;
  z-index: 3;
}

@keyframes diamondSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* Badge doré Banque Privée */
.ch-badge-gold {
  background: rgba(212,175,55,0.12) !important;
  border-color: rgba(212,175,55,0.35) !important;
  color: #D4AF37 !important;
}

/* Bouton doré */
.ch-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #D4AF37, #b8922e);
  color: #0d0628;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 4px 18px rgba(212,175,55,0.35);
}

.ch-btn-gold:hover {
  background: linear-gradient(135deg, #e8c84a, #D4AF37);
  color: #0d0628;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.50);
}

/* Tags privilège Banque Privée */
.ch-privilege-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ch-privilege-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.22);
  color: rgba(255,255,255,0.80);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ch-privilege-tags span i {
  color: #D4AF37;
  font-size: 11px;
}

/* Responsive cinehero */
@media (max-width: 768px) {
  .cinehero { min-height: 480px; }
  .ch-content { padding: 60px 16px 40px; }
  .ch-diamond-deco { display: none; }
  .ch-metrics { gap: 16px; }
  .ch-num { font-size: 22px; }
  .cinehero-prive { min-height: 520px; }
  .ch-skyline { height: 120px; }
}


/* ══════════════════════════════════════════════════════════════
   VIDEO HERO — hero avec vidéo en arrière-plan
   ══════════════════════════════════════════════════════════════ */

.video-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #001a3a;
}

/* Vidéo en fond */
.vh-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Overlay sombre pour lisibilité du texte */
.vh-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 60, 0.72) 0%,
    rgba(0, 40, 90, 0.55) 50%,
    rgba(0, 20, 60, 0.68) 100%
  );
}

/* Overlay doré pour Banque Privée */
.vh-overlay-gold {
  background: linear-gradient(
    135deg,
    rgba(10, 8, 2, 0.78) 0%,
    rgba(40, 28, 5, 0.60) 50%,
    rgba(10, 8, 2, 0.75) 100%
  );
}

/* Contenu au-dessus de la vidéo */
.vh-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  width: 100%;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .video-hero { min-height: 440px; }
  .vh-content { padding: 60px 0 40px; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION CARRIÈRES — MARQUE EMPLOYEUR
   ═══════════════════════════════════════════════════════════ */
.carrieres-band {
  position: relative;
  background: linear-gradient(135deg, #001a3a 0%, #003666 45%, #001f4a 100%);
  padding: 80px 0;
  overflow: hidden;
}

/* Motif géométrique discret en fond */
.carrieres-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13,145,208,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(194,207,164,0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(13,145,208,0.07) 0%, transparent 35%);
  pointer-events: none;
}

.carrieres-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.015) 60px,
    rgba(255,255,255,0.015) 61px
  );
  pointer-events: none;
}

.carrieres-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── CÔTÉ GAUCHE ── */
.carrieres-text .eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: block;
  margin-bottom: 14px;
}

.carrieres-text h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0 0 18px;
}

.carrieres-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 460px;
}

.carrieres-args {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carrieres-args li {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrieres-args li i {
  color: var(--bgfi-mint);
  font-size: 15px;
  flex-shrink: 0;
}

.carrieres-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.carrieres-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;   /* nécessaire pour contenir le btn-shine */
  overflow: hidden;     /* confine l'animation de reflet */
  text-decoration: none;
  cursor: pointer;
  color: white;
  background: var(--bgfi-sky);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(13,145,208,0.45);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.carrieres-cta:hover {
  background: #0b7db5;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,145,208,0.55);
  color: white;
  text-decoration: none;
}

.carrieres-count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jobs-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--bgfi-mint);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.jobs-label {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── CÔTÉ DROIT — PILIERS ── */
.carrieres-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.carrieres-pillar {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.carrieres-pillar:hover {
  background: rgba(13,145,208,0.10);
  border-color: rgba(13,145,208,0.30);
  transform: translateY(-3px);
}

.cp-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(13,145,208,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cp-icon i {
  color: var(--bgfi-sky);
  font-size: 17px;
}

.cp-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.cp-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  line-height: 1.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .carrieres-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .carrieres-text p { max-width: 100%; }
}

@media (max-width: 480px) {
  .carrieres-band { padding: 56px 0; }
  .carrieres-pillars { grid-template-columns: 1fr 1fr; gap: 10px; }
  .carrieres-pillar { padding: 18px 14px; }
  .carrieres-actions { gap: 16px; }
  .jobs-num { font-size: 34px; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION AGENCES ACCUEIL — ONGLETS COMPACTS
   ══════════════════════════════════════════════════════════════ */

.agences-home-section { padding: 72px 0; }

.agences-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.agences-home-title {
  color: white;
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 5px;
  line-height: 1.3;
}

.agences-home-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  margin: 0;
}

.agences-home-counters {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.agences-home-counter {
  text-align: center;
  border-radius: 10px;
  padding: 12px 20px;
  min-width: 76px;
}

.agences-home-counter--blue {
  background: rgba(13,145,208,0.12);
  border: 1px solid rgba(13,145,208,0.25);
}

.agences-home-counter--mint {
  background: rgba(194,207,164,0.10);
  border: 1px solid rgba(194,207,164,0.22);
}

.agences-home-counter-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--bgfi-sky);
  line-height: 1;
}

.agences-home-counter-label {
  display: block;
  color: rgba(255,255,255,0.50);
  font-size: 10px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Onglets accueil ── */
.agences-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255,255,255,0.10);
  margin-bottom: 0;
}

.agences-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.50);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.agences-tab:hover { color: rgba(255,255,255,0.85); }

.agences-tab.active {
  color: var(--bgfi-sky);
  border-bottom-color: var(--bgfi-sky);
}

/* ── Liste compacte ── */
.agences-compact-list {
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.agences-compact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}

.agences-compact-item:last-child { border-bottom: none; }

.agences-compact-item:hover {
  background: rgba(13,145,208,0.08);
}

.agences-compact-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.agences-compact-icon--agence {
  background: rgba(13,145,208,0.18);
  color: var(--bgfi-sky);
}

.agences-compact-icon--gab {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.agences-compact-name {
  font-weight: 700;
  color: white;
  font-size: 13px;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.agences-compact-sep {
  color: rgba(255,255,255,0.25);
  font-size: 14px;
  flex-shrink: 0;
}

.agences-compact-city {
  color: rgba(255,255,255,0.50);
  font-size: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.agences-compact-city i { font-size: 10px; color: var(--bgfi-sky); }

.agences-compact-phone {
  color: rgba(255,255,255,0.40);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.agences-compact-phone i { font-size: 10px; color: rgba(255,255,255,0.30); }

.agences-compact-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.20);
  font-size: 11px;
  flex-shrink: 0;
}

.agences-compact-item:hover .agences-compact-arrow {
  color: var(--bgfi-sky);
}

/* ── CTA bas accueil ── */
.agences-home-cta {
  text-align: center;
  padding-top: 4px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   PAGE /AGENCES — LAYOUT BGFI GABON STYLE
   ══════════════════════════════════════════════════════════════ */

/* Bandeau navy */
.agences-page-banner {
  background: linear-gradient(135deg, #001a3a 0%, #002b5c 60%, #003d80 100%);
  padding: 40px 0 36px;
  border-bottom: 3px solid var(--bgfi-sky);
}

.agences-page-banner-title {
  color: white;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.agences-page-banner-title i {
  color: var(--bgfi-sky);
  margin-right: 10px;
}

.agences-page-banner-sub {
  color: rgba(255,255,255,0.60);
  font-size: 14px;
  margin: 0;
}

/* Corps principal */
.agences-page-body {
  display: flex;
  height: 700px;
  min-height: 520px;
  max-height: 820px;
}

/* Panneau liste gauche (35%) */
.agences-page-sidebar {
  width: 35%;
  min-width: 280px;
  max-width: 420px;
  background: #f8f9fb;
  border-right: 1px solid #e4e8ef;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Barre de recherche */
.agences-search-bar {
  position: relative;
  padding: 14px 16px 10px;
  background: white;
  border-bottom: 1px solid #edf0f5;
}

.agences-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab0bc;
  font-size: 13px;
  pointer-events: none;
}

.agences-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1.5px solid #e2e6ee;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #f5f7fa;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}

.agences-search-input:focus {
  border-color: var(--bgfi-sky);
  background: white;
}

/* Onglets page */
.agences-page-tabs {
  display: flex;
  background: white;
  border-bottom: 2px solid #e8ecf2;
  flex-shrink: 0;
}

.agences-page-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 11px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a94a6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
}

.agences-page-tab:hover { color: #444; }

.agences-page-tab.active {
  color: #002b5c;
  border-bottom-color: var(--bgfi-sky);
}

.agences-page-tab-count {
  background: #e8ecf2;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

.agences-page-tab.active .agences-page-tab-count {
  background: var(--bgfi-sky);
  color: white;
}

/* Liste scrollable */
.agences-page-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.agences-page-list::-webkit-scrollbar { width: 4px; }
.agences-page-list::-webkit-scrollbar-track { background: transparent; }
.agences-page-list::-webkit-scrollbar-thumb { background: #cdd3de; border-radius: 4px; }

/* Item agence dans la liste */
.agences-page-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f5;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}

.agences-page-item:hover {
  background: #eef4fb;
}

.agences-page-item.active {
  background: #e6f2fb;
  border-left: 3px solid var(--bgfi-sky);
}

.agences-page-item-left { flex-shrink: 0; padding-top: 2px; }

.agences-page-item-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.agences-page-item-dot--agence {
  background: rgba(13,145,208,0.12);
  color: var(--bgfi-sky);
}

.agences-page-item-dot--gab {
  background: rgba(34,197,94,0.10);
  color: #22c55e;
}

.agences-page-item-body { flex: 1; min-width: 0; }

.agences-page-item-name {
  font-weight: 700;
  font-size: 13px;
  color: #002b5c;
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agences-page-item-meta {
  font-size: 11.5px;
  color: #7a8494;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agences-page-item-meta i {
  color: var(--bgfi-sky);
  margin-right: 4px;
  font-size: 10px;
}

.agences-page-item-phone {
  font-size: 11.5px;
  color: var(--bgfi-sky);
  font-weight: 600;
  margin-top: 3px;
}

.agences-page-item-phone i { margin-right: 4px; font-size: 10px; }
.agences-page-item-phone a { color: inherit; text-decoration: none; }

.agences-page-item-gab-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 2px 9px;
  margin-top: 5px;
}
.agences-page-item-gab-badge i { font-size: 9px; }

.agences-page-empty-gab {
  padding: 32px 20px;
  text-align: center;
  color: #9aa0b0;
  font-size: 13px;
}

.agences-page-empty-gab i { margin-right: 6px; }

/* Zone carte droite (65%) */
.agences-page-map-wrap {
  flex: 1;
  position: relative;
  background: #e8edf3;
}

.agences-page-map {
  width: 100%;
  height: 100% !important;
  min-height: 520px;
}

/* Surcharge règle globale #map pour la page /agences */
.agences-page-map-wrap #map {
  height: 100% !important;
  min-height: 520px;
  border-radius: 0;
}

/* Contrôle couches custom */
.agences-map-layers {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: white;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.agences-map-layer-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s, color .15s;
}

.agences-map-layer-btn:hover { background: #f0f4f8; color: #333; }

.agences-map-layer-btn.active {
  background: #002b5c;
  color: white;
}

/* Marqueurs carte */
.map-marker-agence {
  width: 36px;
  height: 36px;
  background: #002b5c;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0,43,92,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker-agence i {
  transform: rotate(45deg);
  color: white;
  font-size: 13px;
}

.map-marker-gab {
  width: 30px;
  height: 30px;
  background: #22c55e;
  border-radius: 8px;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(34,197,94,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker-gab i {
  color: white;
  font-size: 11px;
}

/* Popup Leaflet stylisé */
.agences-popup .leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
}

.agences-popup .leaflet-popup-content { margin: 0 !important; }

.agences-popup .leaflet-popup-tip { background: white !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .agences-page-sidebar { width: 40%; }
}

@media (max-width: 768px) {
  /* Accueil — onglets compacts */
  .agences-home-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .agences-compact-name { max-width: 140px; }
  .agences-compact-phone { display: none; }

  /* Page /agences */
  .agences-page-body {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  .agences-page-sidebar {
    width: 100%;
    max-width: 100%;
    max-height: 340px;
  }
  .agences-page-map-wrap {
    height: 400px;
    flex: none;
  }
  .agences-page-banner-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .agences-compact-sep { display: none; }
  .agences-compact-city { display: none; }
  .agences-home-counters { gap: 10px; }
  .agences-home-counter { padding: 10px 14px; min-width: 62px; }
  .agences-home-counter-num { font-size: 22px; }
}

/* Ligne "Voir les X autres agences" dans la liste compacte accueil */
.agences-compact-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  text-decoration: none;
  color: var(--bgfi-sky);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(13,145,208,0.06);
  border-top: 1px solid rgba(13,145,208,0.15);
  transition: background .15s;
}

.agences-compact-more:hover {
  background: rgba(13,145,208,0.14);
}

.agences-compact-more i:first-child {
  color: var(--bgfi-sky);
  font-size: 13px;
}
