/* ============================================================
   GROUPE STERENN — Custom CSS 2026
   Surcouche Bootstrap 5.3 — Design Premium Corporate
   Mode : LIGHT UNIQUEMENT
   Palette officielle : Bleu #1E3D8F + Gris #4A4F5A
   ============================================================ */

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
───────────────────────────────────────────── */
:root {
  /* Palette principale Sterenn */
  --s-blue:        #1E3D8F;   /* Bleu Sterenn institutionnel */
  --s-blue-mid:    #2B52B6;   /* Bleu moyen / hover */
  --s-blue-light:  #4A6FD4;   /* Bleu clair */
  --s-blue-pale:   #EBF0FB;   /* Bleu très pâle / fond sections */
  --s-blue-dark:   #132A6A;   /* Bleu très sombre */
  --s-gray:        #4A4F5A;   /* Gris anthracite officiel Sterenn */
  --s-gray-mid:    #6B7280;   /* Gris moyen */
  --s-gray-light:  #9AA0B4;   /* Gris clair */
  --s-accent:      #1E3D8F;   /* Accent = bleu principal */
  --s-accent-alt:  #2B52B6;   /* Accent alternatif */

  /* Neutres light */
  --s-dark:        #1A1D26;
  --s-gray-900:    #2C3142;
  --s-gray-800:    #4A4F5A;
  --s-gray-600:    #6B7280;
  --s-gray-400:    #9AA0B4;
  --s-gray-200:    #E2E6EF;
  --s-gray-100:    #F4F6FC;
  --s-white:       #FFFFFF;

  /* Typographie */
  --font-heading:  'Syne', 'Montserrat', sans-serif;
  --font-body:     'Inter', 'DM Sans', sans-serif;

  /* Espacements */
  --section-py:    clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --tr-fast:   0.2s ease;
  --tr-base:   0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-slow:   0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* Ombres */
  --shadow-xs:  0 1px 4px rgba(30, 61, 143, 0.07);
  --shadow-sm:  0 2px 10px rgba(30, 61, 143, 0.09);
  --shadow-md:  0 8px 32px rgba(30, 61, 143, 0.13);
  --shadow-lg:  0 20px 60px rgba(30, 61, 143, 0.17);
  --shadow-xl:  0 32px 80px rgba(30, 61, 143, 0.22);

  /* Rayons */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 9999px;
}

/* ─────────────────────────────────────────────
   2. BASE & RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--s-gray-800);
  background-color: var(--s-white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--s-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

p { color: var(--s-gray-600); }

a {
  color: var(--s-blue);
  text-decoration: none;
  transition: color var(--tr-fast);
}
a:hover { color: var(--s-blue-mid); }

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--s-blue);
  color: var(--s-white);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--s-gray-100); }
::-webkit-scrollbar-thumb { background: var(--s-blue); border-radius: var(--radius-pill); }

/* ─────────────────────────────────────────────
   3. UTILITAIRES
───────────────────────────────────────────── */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.bg-dark-brand  { background-color: var(--s-dark); }
.bg-blue-brand  { background-color: var(--s-blue); }
.bg-pale-blue   { background-color: var(--s-blue-pale); }
.text-blue      { color: var(--s-blue) !important; }
.text-gray      { color: var(--s-gray) !important; }

/* Eyebrow / label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-blue);
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  background: var(--s-blue-pale);
  border-radius: var(--radius-pill);
  border-left: 3px solid var(--s-blue);
}

/* Ligne décorative titre */
.heading-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--s-blue);
  border-radius: var(--radius-pill);
  margin-top: 0.75rem;
}
.heading-line-center::after { margin-left: auto; margin-right: auto; }

/* ─────────────────────────────────────────────
   4. BOUTONS
───────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
}

/* Ripple */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--tr-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary-brand {
  background: var(--s-blue);
  color: var(--s-white) !important;
  border: none;
  padding: 0.82rem 2.2rem;
  box-shadow: 0 4px 18px rgba(30, 61, 143, 0.32);
}
.btn-primary-brand:hover {
  background: var(--s-blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 61, 143, 0.42);
  color: var(--s-white) !important;
}

.btn-outline-brand {
  background: transparent;
  color: var(--s-blue) !important;
  border: 2px solid var(--s-blue);
  padding: 0.77rem 2.1rem;
}
.btn-outline-brand:hover {
  background: var(--s-blue);
  color: var(--s-white) !important;
  transform: translateY(-2px);
}

.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  color: var(--s-white) !important;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 0.77rem 2.1rem;
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.85);
  color: var(--s-white) !important;
}

.btn-accent-brand {
  background: var(--s-white);
  color: var(--s-blue) !important;
  border: 2px solid var(--s-white);
  padding: 0.77rem 2.1rem;
  font-weight: 700;
}
.btn-accent-brand:hover {
  background: transparent;
  color: var(--s-white) !important;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   5. NAVIGATION
───────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  padding: 1.1rem 0;
  transition: all var(--tr-base);
  /* Hero fond blanc → nav visible dès le départ */
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--s-gray-200);
}

#main-nav.scrolled {
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 2px 24px rgba(30, 61, 143, 0.1);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: all var(--tr-base);
}

/* Hero fond blanc : logo couleur toujours affiché, blanc caché */
.nav-logo .logo-color { display: block; }
.nav-logo .logo-white { display: none; }

/* Scrolled : identique (déjà couleur) */
#main-nav.scrolled .nav-logo .logo-color { display: block; }
#main-nav.scrolled .nav-logo .logo-white { display: none; }

/* Nav links — toujours sombres sur fond blanc */
.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--s-gray-800) !important;
  padding: 0.4rem 1rem !important;
  transition: color var(--tr-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
#main-nav.scrolled .navbar-nav .nav-link:hover,
#main-nav.scrolled .navbar-nav .nav-link.active {
  color: var(--s-blue) !important;
}

#main-nav.scrolled .navbar-nav .nav-link {
  color: var(--s-gray-800) !important;
}

/* Liens navigation désactivés (pages non encore disponibles) */
.nav-disabled {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Soulignement actif */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--s-blue);
  border-radius: var(--radius-pill);
  transition: left var(--tr-base), right var(--tr-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  left: 1rem; right: 1rem;
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--s-gray-200);
  background: var(--s-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 200px;
  margin-top: 0.5rem !important;
  animation: dropIn 0.22s ease both;
}

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

.dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--s-gray-800) !important;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  transition: all var(--tr-fast);
}
.dropdown-item:hover {
  background: var(--s-blue-pale);
  color: var(--s-blue) !important;
  transform: translateX(4px);
}

/* Sélecteur de langue — toujours light */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--s-blue-pale);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.4rem;
  border: 1px solid rgba(30,61,143,0.15);
}
#main-nav.scrolled .lang-switcher {
  background: var(--s-blue-pale);
  border-color: var(--s-blue-pale);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--s-gray-600);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--tr-fast);
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--s-blue);
  color: var(--s-white);
}
#main-nav.scrolled .lang-btn {
  color: var(--s-gray-600);
}
#main-nav.scrolled .lang-btn.active,
#main-nav.scrolled .lang-btn:hover {
  background: var(--s-blue);
  color: var(--s-white);
}

/* Hamburger mobile — toujours sombre sur fond blanc */
.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }

.hamburger { width: 26px; display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; height: 2px;
  background: var(--s-dark);
  border-radius: 2px;
  transition: all var(--tr-base);
}
#main-nav.scrolled .hamburger span { background: var(--s-dark); }

/* ─────────────────────────────────────────────
   6. HERO — PAGE D'ACCUEIL (fond photo + overlay)
───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--s-white);
}

/* Image de fond */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/hero-bg.jpg?v=3');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

/* Overlay multicouche :
   — gauche : blanc dense pour lisibilité du texte
   — droite : blanc semi-transparent pour laisser respirer l'image
   — haut : léger dégradé bleu Sterenn très subtil
*/
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.88) 35%,
      rgba(255,255,255,0.55) 62%,
      rgba(255,255,255,0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(30,61,143,0.06) 0%,
      transparent 40%
    );
}

/* Grille décorative — désactivée (fond photo actif) */
.hero-grid-overlay { display: none; }

.hero-content {
  position: relative; z-index: 3;
  padding-top: 8rem; padding-bottom: 4rem;
}

/* Badge eyebrow light */
.hero-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--s-blue-pale);
  border: 1px solid rgba(30,61,143,0.15);
  border-radius: var(--radius-pill);
  padding: 0.38rem 1.1rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--s-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.dot-blue {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--s-blue);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

/* Titre hero light */
.hero-title-light {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--s-dark);
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.accent-word-blue {
  color: var(--s-blue);
  position: relative;
  display: inline-block;
}
/* Soulignement décoratif sous l'accent */
.accent-word-blue::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--s-blue), var(--s-blue-mid));
  border-radius: var(--radius-pill);
  opacity: 0.5;
}

/* Sous-titre hero light */
.hero-subtitle-light {
  color: var(--s-gray-600);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  max-width: 460px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

/* Statistiques hero light */
.hero-stats-light {
  display: flex; flex-wrap: nowrap; gap: 1.25rem;
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--s-gray-200);
}
.hero-stat-item-light { text-align: left; flex: 1; min-width: 0; }
.hero-stat-number-light {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--s-dark);
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.hero-stat-number-light sup {
  font-size: 0.5em;
  color: var(--s-blue);
}
.hero-stat-label-light {
  font-size: 0.78rem;
  color: var(--s-gray-400);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Grille filiales côté droit hero */
.hero-card-visual-light {
  padding: 0.25rem;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Mini-card filiale */
.hero-filiale-mini {
  background: var(--s-white);
  border: 1.5px solid var(--s-gray-200);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.25rem;
  transition: all var(--tr-base);
  cursor: default;
}
.hero-filiale-mini:hover {
  border-color: var(--s-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.hero-filiale-icon {
  width: 40px; height: 40px;
  background: var(--s-blue-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--s-blue); font-size: 1rem;
  margin-bottom: 0.85rem;
  transition: all var(--tr-base);
}
.hero-filiale-mini:hover .hero-filiale-icon {
  background: var(--s-blue); color: var(--s-white);
}
.hero-filiale-name {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 0.9rem;
  color: var(--s-dark); margin-bottom: 0.2rem;
}
.hero-filiale-sub {
  font-size: 0.73rem;
  color: var(--s-gray-400);
}

/* Card Fournial — pleine largeur */
.hero-filiale-wide {
  background: var(--s-blue-pale);
  border: 1.5px solid rgba(30,61,143,0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all var(--tr-base);
}
.hero-filiale-wide:hover {
  background: var(--s-white);
  border-color: var(--s-blue);
  box-shadow: var(--shadow-sm);
}
.hero-filiale-link {
  font-size: 0.8rem; font-weight: 700;
  color: var(--s-blue);
  display: flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
  transition: gap var(--tr-fast);
}
.hero-filiale-link:hover { gap: 0.6rem; }

/* Scroll indicator light */
.scroll-indicator-light {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  color: var(--s-gray-400);
  font-size: 0.67rem; letter-spacing: 0.14em; text-transform: uppercase;
  animation: bounceDown 2.5s ease-in-out infinite;
}
.scroll-mouse-light {
  width: 22px; height: 34px;
  border: 2px solid var(--s-gray-200);
  border-radius: 11px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-mouse-light::before {
  content: ''; width: 3px; height: 7px;
  background: var(--s-blue); border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────────────────────────────────
   7. BANDE DÉFILANTE (conservée mais non utilisée)
   — masquée par défaut, peut être réactivée
───────────────────────────────────────────── */
.brand-strip { display: none; }
.brand-strip-track {
  display: flex; gap: 4rem; align-items: center;
  animation: stripScroll 28s linear infinite;
  width: max-content;
}
@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-strip-item {
  display: flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--s-gray-light);
}
.brand-strip-item i { font-size: 1.1rem; color: var(--s-blue); }

/* ─────────────────────────────────────────────
   8. SECTION "À PROPOS"
───────────────────────────────────────────── */
.about-visual-wrap { position: relative; }

.about-img-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
  object-fit: cover; width: 100%;
}
.about-img-secondary {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 42%; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-xl);
  border: 4px solid var(--s-white);
}
.about-badge-float {
  position: absolute; top: 2rem; left: -1.5rem;
  background: var(--s-blue); color: var(--s-white);
  border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-md); text-align: center;
}
.about-badge-float .badge-number {
  font-family: var(--font-heading); font-size: 1.9rem;
  font-weight: 800; line-height: 1; display: block;
}
.about-badge-float .badge-text { font-size: 0.7rem; letter-spacing: 0.07em; opacity: 0.82; }

/* Valeurs */
.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--s-gray-200);
}
.values-list li:last-child { border-bottom: none; }
.values-icon {
  width: 42px; height: 42px;
  background: var(--s-blue-pale); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--s-blue); font-size: 1rem; flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   9. SECTION FILIALES (HUB CARDS)
───────────────────────────────────────────── */
#filiales { background: var(--s-gray-100); }

.filiale-card {
  background: var(--s-white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--s-gray-200);
  transition: all var(--tr-base); height: 100%;
  display: flex; flex-direction: column; position: relative;
}
.filiale-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg); border: 2px solid transparent;
  transition: border-color var(--tr-base);
  pointer-events: none; z-index: 1;
}
.filiale-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.filiale-card:hover::before { border-color: var(--s-blue); }

.filiale-card-header { height: 240px; overflow: hidden; position: relative; }
.filiale-card-header img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  filter: brightness(0.96) saturate(1.08);
}
.filiale-card:hover .filiale-card-header img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.12);
}
/* Dégradé subtil en bas de l'image pour lisibilité du tag */
.filiale-card-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 70px;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 100%);
  pointer-events: none;
}

.filiale-card-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--s-blue);
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill); backdrop-filter: blur(8px);
  border: 1px solid rgba(30,61,143,0.18);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.filiale-card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.filiale-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.filiale-card-body p  { font-size: 0.875rem; flex: 1; margin-bottom: 1.4rem; }

.filiale-card-footer {
  padding: 0.9rem 1.6rem;
  border-top: 1px solid var(--s-gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.filiale-link {
  font-size: 0.83rem; font-weight: 700; color: var(--s-blue);
  display: flex; align-items: center; gap: 0.4rem;
  transition: gap var(--tr-fast), color var(--tr-fast);
}
.filiale-link:hover { gap: 0.7rem; color: var(--s-blue-mid); }

/* ─────────────────────────────────────────────
   10. SECTION NOS MÉTIERS
───────────────────────────────────────────── */
.metier-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding: 5rem 0; border-bottom: 1px solid var(--s-gray-200);
}
.metier-item:last-child { border-bottom: none; }
.metier-item.reverse { direction: rtl; }
.metier-item.reverse > * { direction: ltr; }

.metier-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/10; position: relative;
}
.metier-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--tr-slow);
}
.metier-visual:hover img { transform: scale(1.04); }

.metier-icon-wrap {
  width: 52px; height: 52px; background: var(--s-blue-pale);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  color: var(--s-blue); font-size: 1.3rem; margin-bottom: 1.4rem;
}

.metier-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.metier-tag {
  background: var(--s-blue-pale); color: var(--s-blue);
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.28rem 0.75rem; border-radius: var(--radius-pill);
}

/* ─────────────────────────────────────────────
   11. CARDS OFFRES
───────────────────────────────────────────── */
.offre-card {
  background: var(--s-white); border: 1px solid var(--s-gray-200);
  border-radius: var(--radius-lg); padding: 2.5rem; height: 100%;
  transition: all var(--tr-base); position: relative; overflow: hidden;
}
.offre-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--s-blue), var(--s-blue-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--tr-base);
}
.offre-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.offre-card:hover::before { transform: scaleX(1); }

.offre-card.featured {
  background: linear-gradient(145deg, var(--s-blue) 0%, var(--s-blue-dark) 100%);
  border-color: transparent; color: var(--s-white);
}
.offre-card.featured h3,
.offre-card.featured p { color: var(--s-white) !important; }

.offre-icon {
  width: 62px; height: 62px; background: var(--s-blue-pale);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--s-blue); margin-bottom: 1.7rem;
  transition: all var(--tr-base);
}
.offre-card:hover .offre-icon { background: var(--s-blue); color: var(--s-white); }
.offre-card.featured .offre-icon { background: rgba(255,255,255,0.18); color: var(--s-white); }

.offre-card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.offre-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.offre-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem; color: var(--s-gray-600); padding: 0.38rem 0;
}
.offre-list li::before {
  content: ''; width: 6px; height: 6px;
  background: var(--s-blue); border-radius: 50%; flex-shrink: 0;
}
.offre-card.featured .offre-list li { color: rgba(255,255,255,0.82); }
.offre-card.featured .offre-list li::before { background: #5AEEC8; }

/* ─────────────────────────────────────────────
   12. SECTION CHIFFRES CLÉS
───────────────────────────────────────────── */
#chiffres-cles {
  background: linear-gradient(135deg, var(--s-blue) 0%, #0F1A40 100%);
  position: relative; overflow: hidden;
}
#chiffres-cles::before {
  content: ''; 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: 40px 40px;
}
.counter-card {
  text-align: center; padding: 2.5rem 1.5rem; position: relative;
}
.counter-card::after {
  content: ''; position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px; background: rgba(255,255,255,0.1);
}
.counter-card:last-child::after { display: none; }

.counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900; color: var(--s-white);
  line-height: 1; display: block;
}
.counter-number .counter-suffix { font-size: 0.5em; color: #5AEEC8; }
.counter-label {
  font-size: 0.88rem; color: rgba(255,255,255,0.58);
  margin-top: 0.5rem; letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────
   13. ACTUALITÉS
───────────────────────────────────────────── */
.news-card {
  background: var(--s-white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--s-gray-200); transition: all var(--tr-base);
  display: flex; flex-direction: column; height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.news-card-img { height: 195px; overflow: hidden; }
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--tr-slow);
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 1.7rem; flex: 1; display: flex; flex-direction: column; }
.news-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--s-blue); margin-bottom: 0.7rem;
}
.news-card-body h3 { font-size: 1rem; margin-bottom: 0.55rem; }
.news-card-body p  { font-size: 0.86rem; flex: 1; margin-bottom: 1.2rem; }
.news-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.76rem; color: var(--s-gray-400); margin-top: auto;
}

/* ─────────────────────────────────────────────
   14. CTA BANDE
───────────────────────────────────────────── */
.cta-band {
  background: var(--s-blue); padding: 4.5rem 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute;
  top: -50%; right: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-band::after {
  content: ''; position: absolute;
  bottom: -60%; left: 10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* ─────────────────────────────────────────────
   15. FORMULAIRE CONTACT
───────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--s-white); border-radius: var(--radius-xl);
  padding: 3rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--s-gray-200);
}

.form-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--s-gray-800); margin-bottom: 0.38rem;
}

.form-control, .form-select {
  background: var(--s-gray-100); border: 1.5px solid var(--s-gray-200);
  border-radius: var(--radius-sm); color: var(--s-dark);
  padding: 0.82rem 1.05rem; font-size: 0.9rem; transition: all var(--tr-fast);
}
.form-control:focus, .form-select:focus {
  background: var(--s-white); border-color: var(--s-blue);
  box-shadow: 0 0 0 4px rgba(30, 61, 143, 0.1); outline: none;
}
.form-control::placeholder { color: var(--s-gray-400); }
textarea.form-control { min-height: 130px; resize: vertical; }

.contact-info-card {
  background: var(--s-blue); border-radius: var(--radius-lg);
  padding: 2.5rem; color: var(--s-white); height: 100%;
}
.contact-info-item {
  display: flex; gap: 1rem; padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   16. FOOTER
───────────────────────────────────────────── */
#main-footer {
  background: #0D1220;
  color: rgba(255,255,255,0.65);
  padding: 5rem 0 0;
}

.footer-brand p {
  color: rgba(255,255,255,0.48);
  font-size: 0.875rem; max-width: 280px; margin-top: 1.25rem;
}

.footer-heading {
  font-family: var(--font-heading); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-white); margin-bottom: 1.5rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.62rem; }
.footer-links a {
  color: rgba(255,255,255,0.52); font-size: 0.875rem;
  transition: all var(--tr-fast); display: inline-flex; align-items: center; gap: 0.35rem;
}
.footer-links a:hover { color: var(--s-white); transform: translateX(4px); }
.footer-links a::before {
  content: '→'; font-size: 0.72em; opacity: 0;
  transform: translateX(-6px); transition: all var(--tr-fast);
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: all var(--tr-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { background: var(--s-blue); color: var(--s-white); border-color: var(--s-blue); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 0; margin-top: 3rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.32);
}
.footer-bottom a { color: rgba(255,255,255,0.38); }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ─────────────────────────────────────────────
   17. PAGE FILIALE
───────────────────────────────────────────── */
.filiale-hero {
  padding-top: 10rem; padding-bottom: 5rem;
  background: linear-gradient(135deg, #0D1220 0%, #0F1A40 100%);
  position: relative; overflow: hidden;
}

.breadcrumb-custom {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem;
}
.breadcrumb-custom a { font-size: 0.8rem; color: rgba(255,255,255,0.48); }
.breadcrumb-custom a:hover { color: #5AEEC8; }
.breadcrumb-custom span { color: rgba(255,255,255,0.2); font-size: 0.72rem; }
.breadcrumb-custom .current { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

/* Tabs filiale sticky */
.filiale-nav {
  background: var(--s-white); position: sticky; top: 70px;
  z-index: 100; border-bottom: 1px solid var(--s-gray-200);
  box-shadow: 0 2px 16px rgba(30,61,143,0.06);
}
.filiale-nav .nav-link {
  font-size: 0.875rem; font-weight: 600;
  color: var(--s-gray-600) !important; padding: 1.05rem 1.5rem !important;
  border-bottom: 2px solid transparent; border-radius: 0 !important;
}
.filiale-nav .nav-link.active,
.filiale-nav .nav-link:hover { color: var(--s-blue) !important; border-bottom-color: var(--s-blue); }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0.75rem; top: 0; bottom: 0;
  width: 2px; background: var(--s-gray-200);
}
.timeline-item { position: relative; padding-bottom: 2.75rem; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -2.5rem; top: 0.3rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--s-blue); border: 3px solid var(--s-white);
  box-shadow: 0 0 0 2px var(--s-blue);
}
.timeline-year {
  font-family: var(--font-heading); font-size: 0.73rem;
  font-weight: 700; color: var(--s-blue);
  letter-spacing: 0.1em; margin-bottom: 0.45rem;
}

/* ─────────────────────────────────────────────
   18. ANIMATIONS AU SCROLL
───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--tr-slow), transform var(--tr-slow);
}
[data-reveal="up"]    { transform: translateY(36px); }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.93); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed { opacity: 1; transform: none !important; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ─────────────────────────────────────────────
   19. LOADER
───────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: #0D1220; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loader-bar {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s-blue), #5AEEC8);
  animation: loaderFill 1.1s ease-out forwards;
}
@keyframes loaderFill {
  from { width: 0; } to { width: 100%; }
}

/* ─────────────────────────────────────────────
   20. BACK TO TOP
───────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px; background: var(--s-blue); color: var(--s-white);
  border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-md);
  z-index: 500; opacity: 0; transform: translateY(18px);
  transition: all var(--tr-base); pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--s-blue-mid); transform: translateY(-3px); }

/* ─────────────────────────────────────────────
   21. PAGE HERO INTÉRIEURE
───────────────────────────────────────────── */
.page-hero {
  padding-top: 9rem; padding-bottom: 5rem;
  background: linear-gradient(135deg, #0D1220 0%, #0F1A40 55%, #1E3D8F 100%);
  position: relative; overflow: hidden;
}

/* ─────────────────────────────────────────────
   22. SKILL BARS (métiers)
───────────────────────────────────────────── */
.skill-bar {
  background: var(--s-gray-200); border-radius: var(--radius-pill);
  height: 6px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--s-blue), var(--s-blue-mid));
  width: 0; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────────
   23. RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1199px) {
  .metier-item { grid-template-columns: 1fr; gap: 2.5rem; }
  .metier-item.reverse { direction: ltr; }
}
@media (max-width: 991px) {
  /* Mobile nav : fond blanc opaque — light only (tout déjà en blanc, renforcement !important) */
  #main-nav,
  #main-nav.scrolled {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(30,61,143,0.1);
  }
  .navbar-nav .nav-link,
  #main-nav.scrolled .navbar-nav .nav-link { color: var(--s-gray-800) !important; }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active { color: var(--s-blue) !important; }
  .hamburger span,
  #main-nav.scrolled .hamburger span { background: var(--s-dark) !important; }
  /* Logo couleur forcé sur mobile */
  .nav-logo .logo-white,
  #main-nav.scrolled .nav-logo .logo-white { display: none !important; }
  .nav-logo .logo-color,
  #main-nav.scrolled .nav-logo .logo-color { display: block !important; }
  /* Lang switcher */
  .lang-switcher,
  #main-nav.scrolled .lang-switcher { background: var(--s-blue-pale); border-color: var(--s-blue-pale); }
  .lang-btn,
  #main-nav.scrolled .lang-btn { color: var(--s-gray-600); }
  /* Soulignement désactivé sur mobile */
  .navbar-nav .nav-link::after { display: none; }
  /* Eléments visuels optionnels cachés sur tablette */
  .about-img-secondary, .about-badge-float { display: none; }
  .counter-card::after { display: none; }
}
@media (max-width: 767px) {
  :root { --section-py: clamp(3rem, 6vw, 5rem); }
  .contact-form-wrap { padding: 1.75rem; }
  .hero-stats-light { gap: 1.5rem; }
}

/* ─────────────────────────────────────────────
   24. PRINT
───────────────────────────────────────────── */
@media print {
  #main-nav, #back-to-top, #page-loader, .hero-blob { display: none !important; }
}
