/* ==========================================================================
   VOKX ENERGY — Système de design
   Palette dérivée du logo : navire (V) → cyan (vague) → vert (X)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Couleur ---- */
  --ink:        #0B2545;   /* navy du V — texte principal */
  --ink-deep:   #061829;   /* fond sombre */
  --ink-soft:   #46586E;   /* texte secondaire */
  --current:    #0E8FC9;   /* bleu de la vague — électricité */
  --flux:       #1FB6C4;   /* teal médian */
  --leaf:       #57C271;   /* vert du X — renouvelable */
  --ember:      #E8834A;   /* orange sobre — gaz uniquement */
  --paper:      #F6F8F8;   /* fond clair, froid (jamais crème) */
  --paper-2:    #EBEFEF;
  --white:      #FFFFFF;
  --line:       rgba(11, 37, 69, .13);
  --line-soft:  rgba(11, 37, 69, .07);
  --line-dark:  rgba(255, 255, 255, .14);

  --grad-vokx:  linear-gradient(96deg, var(--ink) 0%, var(--current) 42%, var(--flux) 66%, var(--leaf) 100%);
  --grad-soft:  linear-gradient(96deg, rgba(14,143,201,.10) 0%, rgba(87,194,113,.10) 100%);

  /* ---- Type ---- */
  --display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --body:    'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --meter:   'JetBrains Mono', ui-monospace, monospace;

  --t-hero:  clamp(2.9rem, 7.4vw, 6.6rem);
  --t-h1:    clamp(2.3rem, 5vw, 4.2rem);
  --t-h2:    clamp(1.75rem, 3.2vw, 2.85rem);
  --t-h3:    clamp(1.25rem, 1.8vw, 1.6rem);
  --t-lead:  clamp(1.06rem, 1.35vw, 1.3rem);
  --t-body:  1.0125rem;
  --t-small: .875rem;
  --t-micro: .74rem;

  /* ---- Espace / grille ---- */
  --gutter:  clamp(1.25rem, 5vw, 5.5rem);
  --max:     1440px;
  --sec-y:   clamp(4.5rem, 9vw, 9.5rem);
  --r:       14px;
  --r-lg:    22px;

  /* ---- Mouvement ---- */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .55s;
}

/* ---- Transitions de page (View Transitions API) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .34s var(--ease) both; }
::view-transition-new(root) { animation: vt-in  .48s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2.5px solid var(--current);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Grille & sections
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--dark  { background: var(--ink-deep); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.col-main { grid-column: 1 / span 7; }
.col-rail { grid-column: 9 / span 4; }
.col-wide { grid-column: 1 / span 9; }
.col-full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .col-main, .col-rail, .col-wide, .col-full { grid-column: 1 / -1; }
}

/* ---- Étiquette de section (« eyebrow ») : sert de repère, pas de décor ---- */
.eyebrow {
  font-family: var(--meter);
  font-size: var(--t-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1.5px;
  background: var(--grad-vokx);
  flex: none;
}
.section--dark .eyebrow { color: rgba(255,255,255,.62); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.52;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section--dark .lead { color: rgba(255,255,255,.72); }

/* ==========================================================================
   SIGNATURE — la vague
   Un seul trait continu qui traverse le site. Sa couleur avance le long du
   dégradé navy → cyan → vert au fil du défilement : le lecteur voit
   littéralement l'énergie circuler dans la page.
   ========================================================================== */
.wave-rule {
  width: 100%;
  height: 46px;
  overflow: hidden;
  pointer-events: none;
}
.wave-rule svg { width: 100%; height: 100%; }
.wave-rule path {
  fill: none;
  stroke: url(#vokxGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.wave-rule.is-drawn path { stroke-dashoffset: 0; }

/* Barre de progression : la vague, réduite à un fil, en haut de page */
.flow-bar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  z-index: 90;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad-vokx);
  transition: transform .12s linear;
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--line-soft);
}

/* Sélecteur d'audience — Particuliers / Professionnels / Grandes entreprises */
.audience {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--t-micro);
  font-family: var(--meter);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.audience a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: .4rem .85rem;
  border-radius: 99px;
  transition: color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.audience a:hover { color: var(--ink); background: var(--paper-2); }
.audience a[aria-current="true"] {
  color: var(--white);
  background: var(--ink);
}

.utility { display: flex; align-items: center; gap: .35rem; }
.utility a {
  text-decoration: none;
  font-size: var(--t-small);
  color: var(--ink-soft);
  padding: .4rem .7rem;
  border-radius: 8px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.utility a:hover { color: var(--ink); background: var(--paper-2); }

/* Sélecteur de langue (structure prête, FR seule active) */
.lang { position: relative; }
.lang__btn {
  font-family: var(--meter);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .35rem .6rem;
  color: var(--ink);
  display: flex; align-items: center; gap: .4rem;
}
.lang__menu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .3rem;
  min-width: 132px;
  box-shadow: 0 12px 34px rgba(11,37,69,.13);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .28s var(--ease);
  z-index: 5;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a, .lang__menu span {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem .6rem; border-radius: 6px;
  font-size: var(--t-small); text-decoration: none;
}
.lang__menu a:hover { background: var(--paper-2); }
.lang__menu span { color: rgba(70,88,110,.5); }
.lang__soon {
  font-family: var(--meter); font-size: .62rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 4px; padding: .05rem .3rem;
}

.masthead__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: .85rem;
}
.brand { display: block; flex: none; }
.brand img { height: clamp(30px, 3.4vw, 40px); width: auto; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  text-decoration: none;
  font-size: .945rem;
  font-weight: 450;
  padding: .55rem .85rem;
  border-radius: 9px;
  position: relative;
  transition: background .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .34rem;
  height: 1.5px;
  background: var(--grad-vokx);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: .5rem .6rem;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(88vw, 360px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem 1.5rem 2rem;
    gap: .2rem;
    transform: translateX(101%);
    transition: transform .5s var(--ease-out);
    box-shadow: -20px 0 60px rgba(11,37,69,.14);
    z-index: 95;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .85rem .6rem; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a::after { display: none; }
  .masthead__top { flex-wrap: wrap; }
  .audience { order: 2; width: 100%; overflow-x: auto; }
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--body);
  font-size: .97rem;
  font-weight: 500;
  padding: .82rem 1.5rem;
  border-radius: 99px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-vokx);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,143,201,.28); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.22); }

.btn--lg { padding: 1.02rem 1.9rem; font-size: 1.04rem; }
.btn[disabled] { opacity: .38; pointer-events: none; }

/* ==========================================================================
   Cartes & listes
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 48px rgba(11,37,69,.11);
}
.card__mark { width: 26px; height: 26px; stroke: var(--ink); stroke-width: 1.3; fill: none; margin-bottom: 1.1rem; }
.card h3 { font-size: var(--t-h3); margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .965rem; }

.section--dark .card {
  background: rgba(255,255,255,.045);
  border-color: var(--line-dark);
}
.section--dark .card p { color: rgba(255,255,255,.68); }
.section--dark .card__mark { stroke: var(--leaf); }

/* Liste à filets — remplace les puces */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li {
  padding: .95rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .9rem;
  align-items: start;
  font-size: .975rem;
}
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list svg { width: 17px; height: 17px; stroke: var(--current); stroke-width: 1.5; fill: none; margin-top: .22rem; }
.section--dark .rule-list li { border-color: var(--line-dark); }
.section--dark .rule-list svg { stroke: var(--leaf); }

/* Données chiffrées */
.meter { font-family: var(--meter); font-variant-numeric: tabular-nums; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad-vokx);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-family: var(--meter);
  font-size: var(--t-micro);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .5rem;
}
.section--dark .stat__label { color: rgba(255,255,255,.6); }

/* ==========================================================================
   Révélation au défilement
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Curseur personnalisé
   Actif au pointeur fin uniquement. Le curseur natif reste visible sur les
   champs de saisie — on ne joue pas avec la précision d'un formulaire où
   l'on encode un code EAN ou un IBAN.
   ========================================================================== */
.cursor, .cursor-dot { display: none; }

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.cursor-on body { cursor: none; }
  html.cursor-on a,
  html.cursor-on button,
  html.cursor-on [role="button"],
  html.cursor-on summary { cursor: none; }
  html.cursor-on input,
  html.cursor-on textarea,
  html.cursor-on select,
  html.cursor-on label { cursor: auto; }

  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    border: 1.4px solid var(--ink);
    pointer-events: none;
    z-index: 9999;
    transition: width .32s var(--ease-out), height .32s var(--ease-out),
                margin .32s var(--ease-out), border-color .32s var(--ease),
                background .32s var(--ease), opacity .3s var(--ease);
    display: grid;
    place-items: center;
  }
  .cursor svg {
    width: 13px; height: 13px;
    fill: none; stroke-width: 1.5;
    stroke: var(--ink);
    opacity: 0;
    transform: scale(.5);
    transition: opacity .3s var(--ease), transform .3s var(--ease-out), stroke .3s var(--ease);
  }
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 4px; height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
    z-index: 9999;
    transition: opacity .3s var(--ease), background .3s var(--ease);
  }

  /* Contexte : électricité */
  .cursor.is-elec { border-color: var(--current); }
  .cursor.is-elec svg.i-bolt { opacity: 1; transform: none; stroke: var(--current); }
  .cursor.is-elec ~ .cursor-dot, .cursor-dot.is-elec { background: var(--current); }

  /* Contexte : gaz */
  .cursor.is-gas { border-color: var(--ember); }
  .cursor.is-gas svg.i-flame { opacity: 1; transform: none; stroke: var(--ember); }
  .cursor-dot.is-gas { background: var(--ember); }

  /* Contexte : solaire */
  .cursor.is-solar { border-color: var(--leaf); }
  .cursor.is-solar svg.i-sun { opacity: 1; transform: none; stroke: var(--leaf); }
  .cursor-dot.is-solar { background: var(--leaf); }

  /* Survol d'un élément actionnable */
  .cursor.is-hot {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    background: color-mix(in srgb, var(--ink) 10%, transparent);
  }
  .cursor.is-hot.is-elec { background: color-mix(in srgb, var(--current) 14%, transparent); }
  .cursor.is-hot.is-gas  { background: color-mix(in srgb, var(--ember) 14%, transparent); }
  .cursor-dot.is-hot { opacity: 0; }

  /* Sur fond sombre */
  .cursor.on-dark { border-color: rgba(255,255,255,.8); }
  .cursor-dot.on-dark { background: #fff; }
}

/* Interrupteur de curseur — accessibilité, pas gadget */
.cursor-switch {
  position: fixed; bottom: 1.1rem; left: 1.1rem;
  z-index: 88;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .42rem .8rem;
  font-family: var(--meter);
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  display: none;
  align-items: center; gap: .45rem;
  box-shadow: 0 6px 20px rgba(11,37,69,.09);
}
@media (pointer: fine) { .cursor-switch { display: flex; } }
.cursor-switch__led { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
html:not(.cursor-on) .cursor-switch__led { background: var(--line); }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.field { margin-bottom: 1.15rem; }
.field > label,
.field-label {
  display: block;
  font-family: var(--meter);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.input, select.input, textarea.input {
  width: 100%;
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.input:focus {
  outline: none;
  border-color: var(--current);
  box-shadow: 0 0 0 3.5px rgba(14,143,201,.13);
}
.input-unit { display: flex; align-items: stretch; }
.input-unit .input { border-radius: var(--r) 0 0 var(--r); border-right: none; }
.input-unit__u {
  display: grid; place-items: center;
  padding-inline: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--meter);
  font-size: var(--t-small);
  color: var(--ink-soft);
  white-space: nowrap;
}
.hint { font-size: var(--t-small); color: var(--ink-soft); margin-top: .45rem; }
.err  { font-size: var(--t-small); color: #C43D3D; margin-top: .45rem; display: none; }
.field.has-error .input { border-color: #C43D3D; }
.field.has-error .err { display: block; }

/* Choix en tuiles */
.choices { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choice {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color .32s var(--ease), transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.choice:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11,37,69,.09); }
.choice svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.3; fill: none; margin-bottom: .9rem; transition: stroke .3s var(--ease); }
.choice strong { display: block; font-weight: 500; }
.choice small { display: block; color: var(--ink-soft); font-size: var(--t-small); margin-top: .25rem; line-height: 1.45; }
.choice[aria-pressed="true"] { border-color: var(--current); box-shadow: 0 0 0 3px rgba(14,143,201,.12); }
.choice[aria-pressed="true"] svg { stroke: var(--current); }
.choice__tick {
  position: absolute; top: 1rem; right: 1rem;
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all .3s var(--ease);
}
.choice[aria-pressed="true"] .choice__tick { background: var(--current); border-color: var(--current); }
.choice__tick svg { width: 11px; height: 11px; margin: 0; stroke: #fff; stroke-width: 2.4; opacity: 0; transition: opacity .25s var(--ease); }
.choice[aria-pressed="true"] .choice__tick svg { opacity: 1; }

.checkline {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  font-size: .97rem;
  transition: border-color .3s var(--ease);
}
.checkline:hover { border-color: var(--ink-soft); }
.checkline input { margin-top: .28rem; accent-color: var(--current); width: 16px; height: 16px; }

/* ==========================================================================
   Accordéon (FAQ)
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--display);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  position: relative;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--current); }
.acc summary::after {
  content: '';
  position: absolute; right: .35rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .4s var(--ease-out);
}
.acc details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.acc__body { padding: 0 2.5rem 1.6rem 0; color: var(--ink-soft); max-width: 68ch; }
.acc details[open] .acc__body { animation: accIn .5s var(--ease-out) both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   Bandeau de note légale / conformité
   ========================================================================== */
.legal-note {
  border-left: 2px solid var(--current);
  padding: .1rem 0 .1rem 1.1rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
  max-width: 70ch;
}
.section--dark .legal-note { border-color: var(--leaf); color: rgba(255,255,255,.62); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--ink-deep); color: rgba(255,255,255,.72); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .25s var(--ease); }
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 36px; width: auto; margin-bottom: 1.1rem; }
.footer h4 {
  font-family: var(--meter);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .62rem; font-size: .945rem; }
.footer__legal {
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  justify-content: space-between; align-items: center;
  font-size: var(--t-small);
  color: rgba(255,255,255,.5);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.footer__entity {
  width: 100%;
  padding-top: 1.4rem;
  font-size: var(--t-micro);
  line-height: 1.7;
  color: rgba(255,255,255,.42);
  font-family: var(--meter);
}

/* ==========================================================================
   Agent VOKX (co-pilote)
   ========================================================================== */
.agent-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  z-index: 96;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 14px 38px rgba(11,37,69,.32);
  transition: transform .45s var(--ease-out), box-shadow .4s var(--ease);
}
.agent-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--grad-vokx); opacity: 0; transition: opacity .4s var(--ease);
}
.agent-fab:hover { transform: scale(1.07); }
.agent-fab:hover::before { opacity: 1; }
.agent-fab img { width: 34px; height: 34px; border-radius: 50%; position: relative; z-index: 1; }
.agent-fab__pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--flux);
  animation: fabPulse 2.8s var(--ease-out) infinite;
}
@keyframes fabPulse { 0% { transform: scale(.9); opacity: .75; } 70%, 100% { transform: scale(1.35); opacity: 0; } }

.agent {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: min(94vw, 420px);
  height: min(78vh, 640px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  z-index: 97;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11,37,69,.26);
  opacity: 0; visibility: hidden;
  transform: translateY(18px) scale(.97);
  transform-origin: 100% 100%;
  transition: opacity .42s var(--ease), transform .52s var(--ease-out), visibility .42s;
}
.agent.is-open { opacity: 1; visibility: visible; transform: none; }
.agent__head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .75rem;
  background: var(--paper);
}
.agent__head img { width: 32px; height: 32px; border-radius: 50%; }
.agent__title { font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: -.02em; }
.agent__sub { font-family: var(--meter); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.agent__close { margin-left: auto; background: none; border: none; padding: .35rem; border-radius: 7px; }
.agent__close svg { width: 18px; height: 18px; stroke: var(--ink-soft); stroke-width: 1.6; fill: none; }
.agent__log { flex: 1; overflow-y: auto; padding: 1.15rem; display: flex; flex-direction: column; gap: .85rem; }
.msg { max-width: 88%; font-size: .95rem; line-height: 1.55; padding: .8rem 1rem; border-radius: 15px; }
.msg--bot { background: var(--paper-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg--me  { background: var(--ink); color: var(--white); border-bottom-right-radius: 5px; align-self: flex-end; }
.msg--sys { align-self: center; font-family: var(--meter); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); background: none; padding: .2rem; }
.agent__actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.15rem .9rem; }
.chip {
  font-size: .84rem; padding: .48rem .85rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  cursor: pointer; transition: all .28s var(--ease);
}
.chip:hover { border-color: var(--current); color: var(--current); }
.agent__foot { border-top: 1px solid var(--line); padding: .8rem; display: flex; gap: .5rem; align-items: flex-end; }
.agent__foot textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px;
  padding: .65rem .8rem; font-family: var(--body); font-size: .95rem; max-height: 110px;
}
.agent__foot textarea:focus { outline: none; border-color: var(--current); }
.icon-btn { background: var(--ink); border: none; border-radius: 11px; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 1.6; fill: none; }
.icon-btn--ghost { background: var(--paper-2); }
.icon-btn--ghost svg { stroke: var(--ink); }
.typing { display: flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: tp 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tp { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.stack-sm > * + * { margin-top: .8rem; }
.stack   > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.6rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.grad-text {
  background: var(--grad-vokx);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wave-rule path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   CORRECTIF — texte des boutons masqué au survol
   La superposition en dégradé était un ::before positionné : il se peignait
   au-dessus des nœuds de texte, qui ne sont pas des éléments et ne peuvent
   donc pas recevoir de z-index. Un z-index négatif place la superposition
   entre le fond du bouton et son contenu, où qu'il soit dans le DOM.
   ========================================================================== */
.btn--primary { isolation: isolate; }
.btn--primary::before { z-index: -1; }
.btn--primary > * { position: static; z-index: auto; }
.agent-fab { isolation: isolate; }
.agent-fab::before { z-index: -1; }
.agent-fab img { position: static; z-index: auto; }

/* ==========================================================================
   Illustrations
   ========================================================================== */
.figure { margin: 0; position: relative; }
.figure .illu { width: 100%; height: auto; display: block; }
.figure figcaption {
  font-family: var(--meter);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--current);
}
.section--dark .figure figcaption { color: rgba(255,255,255,.6); border-color: var(--leaf); }

.figure--pane {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(1.2rem, 3vw, 2.6rem);
  overflow: hidden;
}
.section--dark .figure--pane { background: rgba(255,255,255,.04); border-color: var(--line-dark); }

.figure--bleed { border-radius: 26px; overflow: hidden; background: var(--grad-soft); padding: clamp(1.5rem, 4vw, 3.4rem); }

/* Le trait de la vague se dessine à l'entrée dans le champ */
.figure .illu path[stroke^="url"] { stroke-dasharray: 900; stroke-dashoffset: 900; }
.figure.is-in .illu path[stroke^="url"] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease-out) .15s; }
@media (prefers-reduced-motion: reduce) {
  .figure .illu path[stroke^="url"] { stroke-dashoffset: 0; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide { grid-template-columns: 1.05fr 1fr; }
.split--flip > .figure { order: -1; }
@media (max-width: 900px) {
  .split, .split--wide { grid-template-columns: 1fr; }
  .split--flip > .figure { order: 0; }
}

/* ==========================================================================
   Sélecteur de langue
   ========================================================================== */
.lang__btn {
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lang__btn:hover { border-color: var(--ink); }
.lang__btn svg { transition: transform .35s var(--ease-out); }
.lang.is-open .lang__btn svg { transform: rotate(180deg); }
.lang.is-open .lang__btn { border-color: var(--current); }

.lang__code { display: inline-block; position: relative; }

.lang__menu {
  min-width: 178px;
  padding: .35rem;
  transform: translateY(-8px) scale(.97);
  transform-origin: 100% 0;
}
.lang.is-open .lang__menu { transform: none; }
.lang__menu a, .lang__menu span {
  gap: .7rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .34s var(--ease), transform .38s var(--ease-out), background .25s var(--ease);
}
.lang.is-open .lang__menu > *          { opacity: 1; transform: none; }
.lang.is-open .lang__menu > *:nth-child(1) { transition-delay: .04s; }
.lang.is-open .lang__menu > *:nth-child(2) { transition-delay: .10s; }
.lang.is-open .lang__menu > *:nth-child(3) { transition-delay: .16s; }

.lang__tag {
  font-family: var(--meter);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .09em;
  width: 26px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-soft);
  flex: none;
}
.lang__menu a[aria-current="true"] .lang__tag { background: var(--ink); color: #fff; }
.lang__name { flex: 1; }
.lang__menu [aria-disabled="true"] .lang__name { color: rgba(70,88,110,.55); }

/* La bascule de langue fait glisser la page, elle ne la fait pas sauter */
.lang-wipe {
  position: fixed; inset: 0; z-index: 200;
  background: var(--grad-vokx);
  transform: scaleY(0); transform-origin: 50% 100%;
  pointer-events: none;
}
.lang-wipe.is-run { animation: langWipe .9s var(--ease-out) forwards; }
@keyframes langWipe {
  0%   { transform: scaleY(0); transform-origin: 50% 100%; }
  46%  { transform: scaleY(1); transform-origin: 50% 100%; }
  47%  { transform: scaleY(1); transform-origin: 50% 0; }
  100% { transform: scaleY(0); transform-origin: 50% 0; }
}

/* ==========================================================================
   Réseaux sociaux
   ========================================================================== */
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  position: relative;
  isolation: isolate;
  transition: transform .42s var(--ease-out), border-color .35s var(--ease), color .35s var(--ease);
}
.social svg { width: 21px; height: 21px; }
.social::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: var(--grad-vokx); opacity: 0; z-index: -1;
  transition: opacity .38s var(--ease);
}
.social:hover { transform: translateY(-3px); border-color: transparent; color: #fff; }
.social:hover::before { opacity: 1; }

/* Sur fond clair */
.socials--light .social { border-color: var(--line); color: var(--ink-soft); }
.socials--light .social:hover { color: #fff; }
