/* =========================================================
   Lenergy — Site holding corporate
   Direction CAC40 : Engie/Iberdrola institutionnel
   Charte commune avec filiales Lenergy
   ========================================================= */

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; transition: color .25s ease; }
button { background:none; border:none; cursor:pointer; font-family:inherit; }
input { font-family:inherit; }

:root {
  /* Palette officielle Lenergy : flamme tricolore vert/orange/jaune */
  --green: #5BA22D;        /* vert foncé du logo (gauche) */
  --green-vif: #7BC142;    /* vert vif (charte filiales) */
  --orange: #E8741C;       /* orange du logo */
  --yellow: #F0A82E;       /* jaune-orange du logo (droite) */
  --gold: #B8973A;         /* or institutionnel */
  --green-deep: #1B4332;   /* vert profond corporate */
  --paper: #FFFEFA;        /* blanc cassé chaud */
  --paper-alt: #F6F4ED;    /* sections alternées */
  --ink: #0F1115;          /* noir profond */
  --ink-soft: #4A4D55;     /* texte secondaire */
  --ink-faded: #82858E;    /* labels */
  --line: #E8E5DD;         /* séparateurs */
  --dark: #0E1418;         /* sections sombres */
  --dark-2: #1A2128;       /* footer */

  --display: 'Poppins', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;  /* fil rouge Lenerweb */
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --radius-lg: 16px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
sup { font-size: .55em; vertical-align: super; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.serif.y { color: var(--yellow); }

/* =========================================================
   TOPBAR — pro CAC40 (équilibré : pas trop fin, pas trop gros)
   ========================================================= */
.topbar {
  background: linear-gradient(180deg, var(--dark) 0%, #0A0F12 100%);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  padding: 9px 0;
  font-weight: 400;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative;
}
.topbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green-vif) 30%, var(--yellow) 70%, transparent 100%);
  opacity: .35;
}
.topbar-inner {
  display: flex; justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 28px;
}
.topbar-left, .topbar-right {
  display: flex; gap: 0; align-items: center;
  flex-shrink: 1; min-width: 0;
}
.topbar-left { overflow: hidden; }
.tb-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.78);
  transition: color .25s ease;
  white-space: nowrap;
  padding: 4px 14px;
  position: relative;
  font-weight: 500;
}
.tb-link:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 14px;
  background: rgba(255,255,255,.12);
}
.topbar-right .tb-link:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 14px;
  background: rgba(255,255,255,.12);
}
.tb-link:hover { color: var(--yellow); }
.tb-link .ic {
  color: var(--green-vif);
  font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: rgba(123,193,66,.1);
  border-radius: 50%;
}
.tb-private .ic { color: var(--gold); background: rgba(184,151,58,.12); }
.tb-link:hover .ic { background: rgba(240,168,46,.18); color: var(--yellow); }
.tb-divider { width: 1px; height: 14px; background: rgba(255,255,255,.15); margin: 0 4px; }
.tb-lang {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background .2s ease;
}
.tb-lang:hover { background: rgba(255,255,255,.06); }
.tb-lang.muted { color: rgba(255,255,255,.4); }
.tb-lang .flag { font-size: 14px; line-height: 1; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  background: var(--paper);
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  transition: padding .3s ease, box-shadow .3s ease;
}
.header.scrolled { box-shadow: 0 6px 20px -8px rgba(0,0,0,.1); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.brand-mark { width: 48px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.015em;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faded);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav { display: flex; gap: 0; align-items: center; margin-left: auto; margin-right: 24px; flex-wrap: nowrap; }
.nav-item { position: static; flex-shrink: 0; }
.nav-link {
  display: inline-block;
  padding: 26px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
  position: relative;
  transition: color .25s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: 22px;
  height: 1px;
  background: var(--green-deep);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-item:hover .nav-link::after, .nav-item:focus-within .nav-link::after { transform: scaleX(1); }
.nav-link:hover { color: var(--green-deep); }

/* MEGAMENU — institutionnel raffiné */
.megamenu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  box-shadow: 0 32px 60px -20px rgba(0,0,0,.12), 0 1px 0 rgba(0,0,0,.04);
  border-top: 1px solid var(--line);
  padding: 64px 0 72px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s ease;
  z-index: 200;
}
.nav-item:hover .megamenu, .nav-item:focus-within .megamenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
}
.mega-clean .mega-col h5 {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-faded);
  margin-bottom: 22px;
  padding: 0;
  border: none;
}
.mega-clean .mega-col > a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  transition: color .2s ease, padding-left .25s ease;
  border-bottom: 1px solid transparent;
}
.mega-clean .mega-col > a:hover {
  color: var(--green-deep);
  padding-left: 8px;
  transform: none;
}
.mega-clean .mega-col > a em { font-style: italic; color: var(--ink-faded); font-weight: 400; font-size: 14px; margin-left: 2px; }

/* mega-quote — section éditoriale */
.mega-quote {
  padding: 0 0 0 32px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
}
.mq-text {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -.005em;
}
.mq-text .serif { color: var(--green-deep); font-style: italic; font-weight: 400; }
.mq-author {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

/* Legacy mega (encore utilisé par filiales menu) */
.mega-grid:not(.mega-clean) .mega-col h5 {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--green);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mega-grid:not(.mega-clean) .mega-col h5.mega-h5-accent { color: var(--orange); }
.mega-grid:not(.mega-clean) .mega-col > a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease, transform .2s ease;
}
.mega-grid:not(.mega-clean) .mega-col > a:hover { color: var(--green); transform: translateX(4px); }
.mega-grid:not(.mega-clean) .mega-col > a .ic { color: var(--green-vif); font-size: 11px; flex-shrink: 0; width: 14px; }
.mega-grid:not(.mega-clean) .mega-col > a em { font-style: italic; color: var(--ink-faded); font-weight: 400; font-size: 13px; }
.badge-soon {
  display: inline-block;
  background: var(--paper-alt);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-left: 4px;
}

/* mega-filiale (filiales avec dot couleur) */
.mega-filiale {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  transition: background .2s ease;
}
.mega-filiale:hover { background: var(--paper-alt); transform: none !important; }
.mega-filiale .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-yellow { background: var(--yellow); }
.dot-blue { background: #3B82F6; }
.dot-cyan { background: #06B6D4; }
.dot-tech { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.dot-purple { background: #8B5CF6; }
.dot-orange { background: var(--orange); }
.dot-grey { background: #6B7280; }
.dot-green { background: var(--green-vif); }
.dot-gold { background: var(--gold); }
.dot-leaf { background: #16A34A; }
.dot-wave { background: linear-gradient(135deg, #06B6D4, var(--green-vif)); }
.mega-filiale span:nth-child(2) { display: flex; flex-direction: column; }
.mega-filiale strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.mega-filiale em { color: var(--ink-faded); font-size: 12px; font-style: normal; margin-top: 2px; }
.mega-filiale small { font-size: 11px; opacity: .7; }
.flag-fr { font-size: 14px; }

/* mega-feat */
.mega-feat {
  background: linear-gradient(135deg, rgba(123,193,66,.08) 0%, rgba(232,116,28,.04) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.mega-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}
.mega-feat h6 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.mega-feat p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.mega-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--green);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  margin-top: auto;
  transition: background .25s, transform .25s;
}
.mega-cta:hover { background: var(--green-deep); transform: translateY(-2px); }
.mini-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.mini-link:hover { color: var(--green); border-color: var(--green); }
.mini-link:last-child { border: none; }

/* Header actions */
.header-cta { display: flex; align-items: center; gap: 14px; }
.search-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  color: var(--ink);
  transition: background .2s, border-color .2s;
}
.search-btn:hover { background: var(--paper-alt); border-color: var(--green); color: var(--green); }
.btn-primary-mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .25s ease;
}
.btn-primary-mini:hover { background: var(--green); }

.burger { display: none; }

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-size: 15px; font-weight: 600;
  border-radius: 999px;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn span { transition: transform .3s ease; display: inline-block; }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(91,162,45,.45); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--orange); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(232,116,28,.5); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap .25s ease;
}
.link-arrow:hover { gap: 14px; color: var(--green); border-color: var(--green); }
.link-arrow.small { font-size: 13px; padding-bottom: 2px; }

/* =========================================================
   HERO ÉDITORIAL avec CARD KPI
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(110deg, rgba(14,20,24,.92) 0%, rgba(14,20,24,.7) 45%, rgba(14,20,24,.2) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
  color: #fff;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .2s ease forwards;
}
.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-vif);
  box-shadow: 0 0 0 0 rgba(123,193,66,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(123,193,66,.7); }
  70% { box-shadow: 0 0 0 14px rgba(123,193,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,193,66,0); }
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(40px);
  animation: fadeUp 1s .4s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--yellow);
  display: inline-block;
}
.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  max-width: 60ch;
  margin-bottom: 40px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .9s .7s ease forwards;
}
.hero-sub strong { color: var(--yellow); font-weight: 600; }
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .9s .9s ease forwards;
}

/* CARD KPI temps réel */
.hero-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  opacity: 0; transform: translateY(20px) scale(.98);
  animation: fadeUp 1s 1s ease forwards;
}
.hero-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.hero-card-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-vif);
  box-shadow: 0 0 0 0 rgba(123,193,66,.7);
  animation: pulse 2s infinite;
}
.hero-kpi {
  display: flex; flex-direction: column;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
}
.kpi-num {
  font-family: var(--display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -.02em;
}
.kpi-unit {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  margin-top: 8px;
}
.hero-kpi-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.hero-kpi-mini > div { display: flex; flex-direction: column; }
.kpi-num-s {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.suffix { font-size: .7em; color: var(--green-vif); font-weight: 600; }
.hero-kpi-mini small {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 6px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-vif);
  border-bottom: 1px solid rgba(123,193,66,.4);
  padding-bottom: 4px;
  transition: gap .25s, color .25s, border-color .25s;
}
.card-link:hover { gap: 12px; color: var(--yellow); border-color: var(--yellow); }
.card-link span { display: inline-block; transition: transform .3s; }
.card-link:hover span { transform: translateX(4px); }

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

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee-track {
  display: flex;
  animation: scroll 35s linear infinite;
  width: max-content;
}
.marquee-group {
  display: flex; align-items: center; gap: 20px;
  padding-right: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.marquee-group strong {
  font-family: var(--display);
  font-weight: 800;
  color: var(--green-vif);
  margin-right: 4px;
}
.marquee-group .sep { color: rgba(255,255,255,.3); }
@keyframes scroll {
  to { transform: translateX(calc(-50% - 10px)); }
}

/* =========================================================
   SECTIONS génériques
   ========================================================= */
.sec-head { margin-bottom: 64px; }
.sec-head.center { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.sec-head.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.sec-head.light .sec-tag { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.sec-tag {
  display: inline-block;
  background: rgba(91,162,45,.1);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(91,162,45,.2);
}
.sec-tag.light { color: var(--yellow); background: rgba(240,168,46,.12); border-color: rgba(240,168,46,.3); }
.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.sec-title.light { color: #fff; }
.sec-title .serif { color: var(--green); }
.sec-title.light .serif { color: var(--yellow); }
.sec-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 70ch;
}
.sec-lead.light { color: rgba(255,255,255,.85); margin-left: auto; margin-right: auto; }
.center-wrap { text-align: center; }

/* =========================================================
   FILIALES grid
   ========================================================= */
.filiales { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper); }
.filiales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.filiale-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex; flex-direction: column;
}
.filiale-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(14,17,21,.16);
  border-color: var(--green-vif);
}
.filiale-card.big { grid-row: span 2; grid-column: span 2; }
.filiale-card.big .filiale-img { aspect-ratio: 16/9; }
.filiale-img { aspect-ratio: 4/3; overflow: hidden; }
.filiale-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.filiale-card:hover .filiale-img img { transform: scale(1.05); }
.filiale-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.filiale-card.big .filiale-body { padding: 32px; }
.filiale-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  width: fit-content;
}
.pill-yellow { background: rgba(240,168,46,.15); color: var(--gold); }
.pill-blue { background: rgba(59,130,246,.12); color: #1E40AF; }
.pill-green { background: rgba(91,162,45,.12); color: var(--green); }
.pill-gold { background: rgba(184,151,58,.15); color: var(--gold); }
.pill-purple { background: rgba(139,92,246,.12); color: #6D28D9; }
.pill-orange { background: rgba(232,116,28,.12); color: var(--orange); }
.pill-grey { background: rgba(107,114,128,.12); color: #4B5563; }
.pill-leaf { background: rgba(22,163,74,.12); color: #15803D; }
.pill-soon { background: rgba(232,116,28,.1); color: var(--orange); border: 1px dashed var(--orange); }
.pill-impact { background: linear-gradient(135deg, rgba(91,162,45,.15), rgba(240,168,46,.15)); color: var(--green-deep); }
.filiale-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.filiale-card.big h3 { font-size: 28px; }
.filiale-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.filiale-card.big p { font-size: 16px; line-height: 1.65; }
.filiale-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
}
.filiale-link::after { content: ""; }
.filiale-soon { opacity: .8; border-style: dashed; }
.filiale-soon:hover { opacity: 1; }
.filiale-foundation { background: linear-gradient(135deg, rgba(91,162,45,.05), rgba(240,168,46,.05)); }
.filiale-more {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0E1A12 100%);
  color: #fff;
  border-color: transparent;
}
.filiale-more h3 { color: #fff; }
.filiale-more p { color: rgba(255,255,255,.75); }
.filiale-more .filiale-link { color: var(--yellow); }
.filiale-more .filiale-pill {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  padding: 0 12px;
  line-height: 1.2;
}

/* =========================================================
   IMPACT DASHBOARD
   ========================================================= */
.impact-dash {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
  overflow: hidden;
  color: #fff;
}
.impact-bg { position: absolute; inset: 0; z-index: 0; }
.impact-bg img { width: 100%; height: 100%; object-fit: cover; }
.impact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,20,24,.94), rgba(14,20,24,.86));
}
.impact-content { position: relative; z-index: 1; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 50px 0 40px;
}
.impact-kpi {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.impact-kpi:hover {
  background: rgba(123,193,66,.08);
  border-color: var(--green-vif);
  transform: translateY(-3px);
}
.impact-kpi strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  color: var(--green-vif);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.impact-kpi span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  letter-spacing: .03em;
  margin-bottom: 12px;
}
.impact-trend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}
.impact-trend.up { background: rgba(123,193,66,.15); color: var(--green-vif); }
.impact-trend.stable { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }

/* =========================================================
   VISION + TIMELINE
   ========================================================= */
.vision { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper-alt); }
.vision-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.vision-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}
.vision-lead strong { color: var(--ink); font-weight: 600; }
.vision-list { list-style: none; margin-bottom: 36px; }
.vision-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.vision-list li:last-child { border: none; }
.vision-list .bullet { color: var(--green); font-size: 20px; font-weight: 700; }
.vision-list strong { color: var(--green); font-weight: 700; margin-right: 4px; }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--green-vif) 0%, var(--green-vif) 60%, var(--line) 60%);
}
.tl-item {
  position: relative;
  padding-bottom: 32px;
}
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 50%;
}
.tl-item.active::before {
  background: var(--green-vif);
  border-color: var(--green-vif);
  box-shadow: 0 0 0 4px rgba(123,193,66,.2);
}
.tl-year {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.tl-item h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.tl-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.tl-item p strong { color: var(--orange); }

/* =========================================================
   ENGAGEMENT
   ========================================================= */
.engagement { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper); }
.engage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.engage-card {
  padding: 36px 28px;
  background: var(--paper-alt);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.engage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(14,17,21,.12);
}
.engage-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.engage-card h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.engage-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.engage-stat {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(91,162,45,.1);
  color: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.engage-stat strong { font-weight: 700; }

/* =========================================================
   NEWS
   ========================================================= */
.news { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper-alt); }
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(0,0,0,.12); }
.news-feat { grid-row: span 2; }
.news-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.news-feat .news-img { aspect-ratio: 4/3; }
.news-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.news-card:hover img { transform: scale(1.04); }
.news-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--green);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news-cat.tag-rd { background: var(--orange); }
.news-cat.tag-fin { background: var(--gold); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-feat .news-body { padding: 32px; }
.news-meta {
  font-size: 12px;
  color: var(--ink-faded);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.news-feat h3 { font-size: 26px; }
.news-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

/* =========================================================
   PRIVATE ZONES
   ========================================================= */
.private-zones { padding: clamp(80px, 12vh, 140px) 0; background: var(--ink); color: #fff; }
.private-zones .sec-tag { background: rgba(240,168,46,.12); color: var(--yellow); border-color: rgba(240,168,46,.3); }
.private-zones .sec-title { color: #fff; }
.private-zones .sec-title .serif { color: var(--yellow); }
.private-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.private-card {
  padding: 36px 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  display: block;
}
.private-card:hover {
  background: rgba(240,168,46,.08);
  border-color: var(--yellow);
  transform: translateY(-4px);
}
.private-ic { font-size: 32px; display: block; margin-bottom: 16px; }
.private-card h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.private-card p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  margin-bottom: 18px;
}
.private-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
}

/* =========================================================
   CTA final
   ========================================================= */
.cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  padding: clamp(80px, 14vh, 160px) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,168,46,.2), transparent 70%);
  border-radius: 50%;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.cta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.cta-title .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--yellow);
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta .btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-ghost-dark:hover { background: #fff; color: var(--green-deep); border-color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark-2); color: rgba(255,255,255,.7); padding: 80px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text em { color: rgba(255,255,255,.5); }
.footer-pitch {
  margin-top: 18px; margin-bottom: 22px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  font-size: 14px;
  max-width: 32ch;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.footer-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.footer h5 {
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.footer a:not(.brand):not([class*="social"]):not(.credit-lw) {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: color .25s, transform .25s;
}
.footer a:not(.brand):not([class*="social"]):not(.credit-lw):hover {
  color: var(--green-vif);
  transform: translateX(3px);
}
.f-contact {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 14px;
}
.f-contact strong { color: #fff; font-weight: 600; }
.f-contact a { display: inline !important; margin: 0 !important; padding: 0; transform: none !important; }

.footer-bot {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal span { color: rgba(255,255,255,.5); }
.footer-legal a {
  color: rgba(255,255,255,.7) !important;
  display: inline !important;
  margin: 0 !important;
}
.footer-credit {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5);
}
.credit-lw {
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
}
.credit-lw em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--yellow);
  font-weight: 400;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* =========================================================
   RESPONSIVE — mobile first, optimisé tous devices
   ========================================================= */
@media (max-width: 1400px) {
  .nav-link { padding: 26px 11px; font-size: 13px; }
  .brand-text strong { font-size: 22px; }
  .brand-text em { font-size: 10px; }
}
@media (max-width: 1200px) {
  .topbar-left .tb-link:nth-child(2),
  .topbar-right .tb-link:nth-child(2) { display: none; }
  .nav { margin-right: 12px; }
  .nav-link { padding: 26px 9px; font-size: 12.5px; }
  .filiales-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .footer-grid > div:nth-child(4),
  .footer-grid > div:nth-child(5) { grid-column: span 1; }
  .mega-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .mega-quote { display: none; }
}
@media (max-width: 1024px) {
  .topbar { display: none; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; inset: 80px 0 0; background: var(--paper); padding: 32px var(--pad); z-index: 99; gap: 0; align-items: stretch; overflow-y: auto; }
  .nav.open .nav-item { width: 100%; border-bottom: 1px solid var(--line); }
  .nav.open .nav-link { padding: 18px 0; display: block; font-size: 16px; }
  .nav.open .nav-link::after { display: none; }
  .nav.open .megamenu { position: static; box-shadow: none; padding: 0 0 24px; opacity: 1; visibility: visible; transform: none; border: none; }
  .nav.open .mega-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 16px; }
  .filiales-grid { grid-template-columns: repeat(2, 1fr); }
  .filiale-card.big { grid-row: span 1; grid-column: span 2; }
  .filiale-card.big .filiale-img { aspect-ratio: 16/6; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .private-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-feat { grid-column: span 2; grid-row: auto; }
  .news-feat .news-img { aspect-ratio: 21/9; }
  .vision-grid, .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .burger {
    display: flex; flex-direction: column; gap: 5px;
    width: 36px; height: 36px; align-items: center; justify-content: center;
    margin-left: auto;
  }
  .burger span {
    display: block; width: 24px; height: 2px; background: var(--ink);
    transition: transform .3s, opacity .3s;
  }
  .header-cta .search-btn { width: 36px; height: 36px; }
  .brand-text em { display: none; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .filiales-grid, .impact-grid, .engage-grid, .private-grid {
    grid-template-columns: 1fr;
  }
  .filiale-card.big { grid-column: span 1; }
  .news-grid { grid-template-columns: 1fr; }
  .news-feat { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bot { flex-direction: column; gap: 16px; }
  .footer-legal { flex-direction: column; gap: 6px; }
  .sec-head.split { flex-direction: column; align-items: start; }
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero-title { font-size: clamp(32px, 8vw, 50px) !important; }
  .hero-card { padding: 22px; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; padding: 14px 24px; font-size: 14px; }
  .container { padding: 0 16px; }
  .sec-title { font-size: clamp(22px, 6vw, 36px) !important; }
  .brand-text strong { font-size: 18px; }
  .brand-mark { width: 38px; height: 44px; }
  .marquee { font-size: 11px; padding: 14px 0; }
  .marquee-group { gap: 14px; padding-right: 14px; }
}
@media (max-width: 480px) {
  .header-cta .search-btn { display: none; }
  .vision-list li { font-size: 14px; padding: 10px 0; }
  .impact-kpi { padding: 22px 16px; }
  .impact-kpi strong { font-size: 28px !important; }
  .filiale-card { padding: 0; }
  .filiale-body { padding: 20px; }
  .cta-title, .h2, .sec-title { font-size: clamp(20px, 7vw, 32px) !important; line-height: 1.15; }
}

/* =========================================================
   THEME SMART — override palette bleu cyan tech
   ========================================================= */
body.theme-smart {
  --green: #0EA5E9;        /* cyan tech principal */
  --green-vif: #38BDF8;    /* cyan clair */
  --green-deep: #0C4A6E;   /* bleu profond corporate */
  --orange: #6366F1;       /* indigo accent (vs orange) */
  --yellow: #38BDF8;       /* cyan vif accent */
  --gold: #6366F1;         /* indigo institutionnel */
}

body.theme-smart .brand-suffix {
  color: #0EA5E9;
  font-weight: 700;
  font-style: italic;
  margin-left: 4px;
}

/* Dot couleurs ajustées */
body.theme-smart .dot-cyan { background: #06B6D4; }
body.theme-smart .dot-blue { background: #3B82F6; }
body.theme-smart .dot-purple { background: #8B5CF6; }

/* Pill couleurs ajustées */
body.theme-smart .pill-cyan { background: rgba(6,182,212,.12); color: #0E7490; }
body.theme-smart .pill-blue { background: rgba(59,130,246,.12); color: #1E40AF; }
body.theme-smart .pill-purple { background: rgba(139,92,246,.12); color: #6D28D9; }
body.theme-smart .pill-yellow { background: rgba(56,189,248,.15); color: #0369A1; }

/* CTA finale gradient bleu */
body.theme-smart .cta {
  background: linear-gradient(135deg, #0C4A6E 0%, #0EA5E9 100%);
}
body.theme-smart .cta::before {
  background: radial-gradient(circle, rgba(99,102,241,.25), transparent 70%);
}

/* Suffix pourcentage */
.suffix-pct {
  display: inline-block;
  font-size: .55em;
  margin-left: 4px;
  vertical-align: top;
  margin-top: .2em;
  color: var(--yellow);
  font-weight: 700;
}

/* Footer contact button (remplace tel/email) */
.footer-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  transition: background .25s, border-color .25s;
}
.footer-contact-btn:hover {
  background: var(--green-vif);
  border-color: var(--green-vif);
  transform: translateY(-2px) !important;
}
/* === FORCE_ONE_LINE_NAV === */
.nav, .nav-main, .nav-links {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
.nav-main a, .nav a, .nav-links a, .nav-link {
  white-space: nowrap !important;
}
@media (min-width: 1025px) {
  .nav-main, .nav, .nav-links { display: flex !important; }
}
