/* ENDURIA — Sections 03->11 (scaffold éditorial). Motion avancée = étapes suivantes. */

.section__head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: var(--space-block);
}
.section__title {
  font-size: var(--type-h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.section__intro {
  font-size: var(--type-body-lg);
  color: var(--text-secondary);
  max-width: 52ch;
}

/* Sections de respiration — s'inversent avec le thème (Hero v2 toggle) */
.section-light {
  background: var(--inv-bg);
  color: var(--inv-text);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.section-light p,
.section-light .section__intro {
  color: var(--inv-fog);
}
.section-light .eyebrow {
  color: var(--inv-fog);
}
.section-light .hairline {
  background: var(--inv-line);
}

/* ---- 03 Le Constat — narration pinnée au scrub (ancienne version restaurée).
   .problem__pin = 100svh pour que le texte soit centré viewport pendant le pin.
   ScrollTrigger pin durée = +=85% viewport (cf. problem.js). */
.problem {
  position: relative;
  padding-block: 0;
}
.problem__pin {
  position: relative;
  z-index: 1;
  /* min-height: 100svh sur tous viewports — la scène pinnée occupe toute la hauteur
     du viewport pendant la narration (desktop ET mobile). Le pin scrub (problem.js)
     fait défiler les 5 phrases au scroll sans que la section sorte du cadre. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: var(--space-section);
}
/* Eyebrow "Le constat" : pinné en haut pendant tout le scroll de la section.
   Le fond derrière elle varie (aurore violette → mask fade vers fond ambient en bas),
   donc on la transforme en pill semi-opaque avec backdrop-blur → elle devient son
   propre "îlot" visuel et reste lisible quelle que soit la zone du fond qu'elle survole.
   Couleur de texte bumpée (--faint → --fog) pour meilleur contraste. */
.problem__pin > .eyebrow {
  position: absolute;
  top: var(--space-section);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(15, 17, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  color: var(--fog);
  /* Override .eyebrow base (uppercase + Inter + letter-spacing 0.06em) — même
     traitement typo que #method / #metiers / #mecanisme eyebrows. */
  text-transform: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}
[data-theme="light"] .problem__pin > .eyebrow {
  background: rgba(244, 242, 236, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--fog);
}
/* Stage pinné : les phrases occupent toutes le même slot (absolute) et swappent en place
   au scrub. Hauteur réservée pour la zone de défilement narratif. */
.problem__stage {
  position: relative;
  width: 100%;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.problem__phrase {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  max-width: 32ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
/* Fallback sans JS : on empile les phrases lisiblement (pas de pin). */
.problem__stage:not(.js-stage) {
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 3vh, 2.2rem);
  min-height: auto;
}
.problem__stage:not(.js-stage) .problem__phrase {
  position: relative;
}

/* ---- Aurora WebGL (BRIEF_AURORA_INTEGRATION + AJUSTEMENTS) ----
   Canvas plein fond. Le texte du Constat (z-index:1) reste lisible au-dessus.
   Fondu bottom (AJUSTEMENTS §4) : mask qui fait disparaître l'aurore sur les derniers ~22%
   → transition douce vers la section suivante, plus de coupure nette. */
.problem__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  /* Fallback si WebGL absent : dégradé violet→sombre */
  background:
    radial-gradient(ellipse 80% 60% at center bottom,
      rgba(124, 79, 201, 0.35) 0%,
      rgba(124, 79, 201, 0.12) 35%,
      rgba(8, 9, 12, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

/* LIGHT — pattern de points discret en fond (plus de brume violette).
   Le canvas WebGL sombre est masqué (opacity 0), un ::before dessine une grille de
   petits points gris à faible opacité, en filigrane. Cohérent avec les autres
   patterns de points du site. */
[data-theme="light"] .problem__aurora {
  opacity: 0;
}
[data-theme="light"] .problem::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Dot pattern : un point gris (~12% du noir paper) tous les 16px. */
  background-image: radial-gradient(circle, rgba(12, 13, 16, 0.16) 1px, transparent 1.6px);
  background-size: 16px 16px;
  background-position: 0 0;
  /* Fondu doux en bas pour cohérence avec la section dark (transition vers la suite). */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

/* ---- 04 Mécanisme — comparatif « Un logiciel » vs « Enduria » ---- */
.section__intro {
  margin-top: 1.2rem;
}
/* ---- Versus (port _proto-versus.html — style Reflect) ----
   2 colonnes (Soft / End) + nœud central E + ligne verticale fine.
   Chaque colonne : header (logo tile + title + sub) + bullets + mini-feed animée + total.
   Spring partagée avec l'Animated List du hero (--spring exposée via .versus). */
.versus {
  --spring: linear(
    0, 0.0276, 0.0928, 0.1763, 0.2662, 0.3552, 0.4392, 0.516, 0.5849, 0.6456,
    0.6986, 0.7444, 0.7838, 0.8174, 0.8461, 0.8704, 0.891, 0.9084, 0.9231,
    0.9355, 0.9458, 0.9546, 0.9619, 0.9681, 0.9733, 0.9776, 0.9812, 0.9843,
    0.9868, 0.989, 0.9908, 0.9923, 0.9935, 0.9946, 0.9955, 0.9962, 0.9968,
    0.9973, 0.9978, 0.9981, 0.9984);

  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}
.versus__vline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
  pointer-events: none;
  overflow: hidden; /* clip le beam ::before quand il sort en haut/bas */
}
/* E1 — Beam violet-rosé qui descend le long de la ligne en boucle (CSS pur). */
.versus__vline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 25%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(197, 208, 255, 0.7) 30%,
    rgba(209, 172, 223, 0.95) 50%,
    rgba(197, 208, 255, 0.7) 70%,
    transparent 100%);
  animation: vline-beam 4s linear infinite;
}
[data-theme="light"] .versus__vline::before {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(124, 79, 201, 0.6) 30%,
    rgba(167, 139, 250, 0.85) 50%,
    rgba(124, 79, 201, 0.6) 70%,
    transparent 100%);
}
@keyframes vline-beam {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}
@media (prefers-reduced-motion: reduce) {
  .versus__vline::before { animation: none; opacity: 0; }
}

/* ---- Colonne ---- */
.vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}
.vs-col__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.vs-col__logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.vs-col--soft .vs-col__logo {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  color: var(--fog);
}

/* Icône grille 2×2 dans le carré gauche du versus (vs-col--soft).
   4 rect aux 4 quadrants, fill neutre/gris (var(--fog)), animation séquentielle :
   chaque cellule s'illumine tour à tour via animation-delay décalés (0 → 0.6 → 1.2 → 1.8s)
   sur une boucle de 2.4s → effet "scan" doux carré par carré.
   Compositing 100% GPU (opacity + filter:drop-shadow), zéro layout, zéro coût scroll. */
.vs-col__grid {
  width: 60%;
  height: 60%;
  display: block;
  color: var(--fog);
}
.vs-col__grid-cell {
  fill: currentColor;
  opacity: 0.4;
  transform-origin: center;
  animation: vs-grid-pulse 2.4s ease-in-out infinite;
}
/* Décalage temporel : cellule 1 (haut-gauche) → 2 (haut-droite) → 3 (bas-gauche) → 4 (bas-droite).
   nth-child(1) implicite (delay 0), les 3 autres décalés de 0.6s. */
.vs-col__grid-cell:nth-child(2) { animation-delay: 0.6s; }
.vs-col__grid-cell:nth-child(3) { animation-delay: 1.2s; }
.vs-col__grid-cell:nth-child(4) { animation-delay: 1.8s; }

@keyframes vs-grid-pulse {
  /* Sur ~25% du cycle la cellule s'illumine (opacity haute + glow) puis retombe.
     Les 75% restants = repos. Avec 4 cellules × 0.6s décalées, une cellule active
     en permanence → impression de "courant" qui parcourt la grille en boucle. */
  0%, 80%, 100% { opacity: 0.4; filter: drop-shadow(0 0 0 transparent); }
  20%           { opacity: 1;   filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55)); }
}
@media (prefers-reduced-motion: reduce) {
  .vs-col__grid-cell { animation: none; opacity: 0.55; filter: none; }
}
.vs-col--end .vs-col__logo {
  background: var(--accent);
  color: #fff; /* hérité par currentColor du pattern → dots blancs */
  box-shadow: 0 0 24px -4px rgba(124, 79, 201, 0.6);
}
/* SVG du chevron en pointillés, à l'intérieur du carré violet de la colonne droite. */
.vs-col__logo-mark {
  width: 60%;   /* ~29px sur container 48 — laisse de l'air */
  height: auto;
  display: block;
}
.vs-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--paper);
}
.vs-col__sub {
  font-size: 0.84rem;
  color: var(--fog);
}

/* ---- Bullets (anciens .vs__list / .vs__x / .vs__check conservés) ---- */
.vs__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 360px;
  padding: 0;
  margin: 0;
}
.vs__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--fog);
}
.vs-col--end .vs__list li { color: var(--paper); }
.vs__x, .vs__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  font-size: 0.58rem;
}
.vs__x { background: rgba(244, 243, 239, 0.07); color: var(--faint); }
.vs__x::before { content: "\2715"; }
.vs__check { background: var(--accent); color: #fff; }
.vs__check::before { content: "\2713"; }
[data-theme="light"] .vs__x { background: rgba(12, 13, 16, 0.06); }

/* ---- Mini-feed animée (style "calculatrice", port proto) ---- */
.vs-feed {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 150px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.vs-feed__stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.vs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--line-2);
  /* PERF — backdrop-filter retiré, fond semi-opaque uni. */
  background-color: rgba(15, 17, 22, 0.65);
}
[data-theme="light"] .vs-row { background-color: rgba(255, 255, 255, 0.9); }
.vs-row.is-in { animation: vs-row-in 0.55s var(--spring) both; }
@keyframes vs-row-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
.vs-row.is-out { animation: vs-row-out 0.4s var(--spring) both; }
@keyframes vs-row-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.9); }
}
.vs-row__lbl { color: var(--fog); font-weight: 400; font-size: 0.82rem; }
.vs-row__val { font-variant-numeric: tabular-nums; font-weight: 600; }
.vs-col--soft .vs-row__val { color: var(--red); }
.vs-col--end .vs-row__val { color: var(--green); }

/* ---- Total : SUPPRIMÉ (BRIEF_VERSUS_TOTAUX_ET_PATTERN §1).
       Les blocs "Sur 1 an −1 000 €" / "Sur 1 an +12 000 €" + le séparateur/beam
       horizontal associé ont été retirés. Les petits modules ± dans les colonnes
       (vs-row) restent. ---- */

/* ---- Nœud central E + anneau pulsant ---- */
.vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3rem;
  position: relative;
}
/* Carré central façon maquette Figma + BORDER BEAM CSS pur (T-B).
   Plus d'anneau pulsant (.vs-center__ring retiré). Le périmètre du carré reçoit
   un segment lumineux violet qui le parcourt en boucle continue (conic-gradient
   masqué pour ne montrer que la bordure, rotation animée via @property --angle). */
@property --vs-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.vs-center__node {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #754ABE 0%, #3320A1 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 40px rgba(124, 79, 201, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  color: #fff;
}
/* Border Beam — un wedge lumineux violet/blanc qui tourne autour du périmètre.
   ::before reçoit un conic-gradient + mask-composite pour ne révéler que l'anneau
   border (1px). @property --vs-beam-angle permet d'animer la rotation. */
.vs-center__node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--vs-beam-angle, 0deg),
    transparent 0deg,
    rgba(167, 139, 250, 0.4) 15deg,
    rgba(255, 255, 255, 0.95) 30deg,
    rgba(167, 139, 250, 0.4) 45deg,
    transparent 60deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: vs-beam-rotate 4s linear infinite;
}
@keyframes vs-beam-rotate {
  to { --vs-beam-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-center__node::before { animation: none; }
}
.vs-center__logo {
  width: 60%;
  height: auto;
  display: block;
  /* grid place-items: center du parent → si 2 SVG, ils occupent la même cellule et
     se superposent parfaitement. */
  grid-area: 1 / 1;
}
/* Calque SCAN (Tâche D) : même technique que hero scan mais 4s pour cohérence avec
   les autres beams du #mecanisme. Dots violet clair (#a78bfa) → contraste visible
   avec la base blanche quand la slice passe dessus. */
.vs-center__logo--scan {
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 50%, transparent 65%);
          mask-image: linear-gradient(105deg, transparent 35%, #000 50%, transparent 65%);
  -webkit-mask-size: 260% 100%;
          mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 130% 0;
          mask-position: 130% 0;
  animation: vs-center-scan 4s linear infinite;
}
@keyframes vs-center-scan {
  0%   { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
  100% { -webkit-mask-position: -130% 0; mask-position: -130% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-center__logo--scan { animation: none; opacity: 0; }
}

/* titre sur 2 lignes nettes (pas de coupure « On » isolé) */
.section__title--vs { max-width: none; }

/* ---- Pattern de fond #mecanisme : petite grille de carrés violet très léger,
       concentrée au centre derrière le nœud Enduria et fondue aux bords via mask
       radial (façon Reflect "Use Reflect with other apps"). 100% CSS statique. ----
   Technique : 2 repeating-linear-gradient croisés (vertical + horizontal) = grille.
   Cellule 32×32px, lignes 1px. Couleur = --accent à très faible alpha.
   mask-image: radial-gradient → opaque au centre, transparent aux bords. */
#mecanisme {
  /* clip pour que le pattern ne déborde pas sur les sections voisines */
  overflow: hidden;
}
#mecanisme::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(124, 79, 201, 0.07) 0 1px,
      transparent 1px 32px),
    repeating-linear-gradient(90deg,
      rgba(124, 79, 201, 0.07) 0 1px,
      transparent 1px 32px);
  /* Mask radial : pleine opacité au centre (~30% de rayon), fondu progressif vers
     les bords, transparent à 75% → grille concentrée derrière le nœud central. */
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at center 55%,
    #000 0%, #000 25%, rgba(0, 0, 0, 0.5) 55%, transparent 80%);
          mask-image: radial-gradient(ellipse 55% 65% at center 55%,
    #000 0%, #000 25%, rgba(0, 0, 0, 0.5) 55%, transparent 80%);
}
/* Light : violet un poil plus léger pour ne pas salir le fond clair. */
[data-theme="light"] #mecanisme::before {
  background-image:
    repeating-linear-gradient(0deg,
      rgba(124, 79, 201, 0.08) 0 1px,
      transparent 1px 32px),
    repeating-linear-gradient(90deg,
      rgba(124, 79, 201, 0.08) 0 1px,
      transparent 1px 32px);
}
/* Tous les enfants directs de #mecanisme doivent passer au-dessus du pattern. */
#mecanisme > .container {
  position: relative;
  z-index: 1;
}
/* Retrait du trait de séparation haut (hairline animée + border-top de .section) :
   peu esthétique au-dessus de la grille de fond violette. */
#mecanisme > .hairline { display: none; }
#mecanisme { border-top: none; }

/* ---- Header #mecanisme — centré (T1) + Eyebrow pilule + Titre dégradé (T-A) ---- */
#mecanisme .section__head {
  align-items: center;
  text-align: center;
  position: relative;
  padding-bottom: clamp(1.2rem, 3vh, 2rem);
}

/* Eyebrow en PILULE — gradient bg subtil + border gradient violet + text gradient.
   STRUCTURE/COULEURS de la maquette, TYPO calée sur #method / #metiers (casse normale,
   Geist Medium, letter-spacing serré) → cohérence des eyebrows du site. */
#mecanisme .eyebrow--pill {
  display: inline-block;
  align-self: center;
  position: relative;
  margin: 0 auto;
  padding: 6px 13px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(72, 110, 162, 0.10), rgba(205, 165, 221, 0.10));
  /* Override .eyebrow base (uppercase + Inter + letter-spacing 0.06em) — même
     traitement que #method .eyebrow--pill / #metiers .eyebrow--pill. */
  text-transform: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}
/* Bordure dégradée via mask-composite (trick CSS classique : padding+background-clip). */
#mecanisme .eyebrow--pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #7c4fc9 0%, rgba(51, 32, 161, 0.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* Texte de la pilule : dégradé clippé (fallback color au cas où le clip échoue). */
#mecanisme .eyebrow--pill > span {
  color: var(--paper);
  background: linear-gradient(135deg, #c5d0ff 0%, #d1acdf 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] #mecanisme .eyebrow--pill {
  background: linear-gradient(135deg, rgba(72, 110, 162, 0.08), rgba(205, 165, 221, 0.10));
}
[data-theme="light"] #mecanisme .eyebrow--pill > span {
  background: linear-gradient(135deg, #5a4b9e 0%, #7e5fae 100%); /* assombri pour fond clair */
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Titre — dégradé vertical blanc → gris clair (couleurs maquette).
   FALLBACK color: var(--paper) avant le clip pour éviter le bug d'invisibilité.
   ⚠️ reveals.js applique splitLines sur ce titre (data-split) → le texte est wrappé
   dans <div.line><span style="display:block">. Le `background-clip:text` sur le H2
   ne s'applique alors plus à la chaîne (le texte n'est plus enfant direct du H2)
   → titre invisible. Solution : réappliquer gradient + clip + text-fill aux <span>
   enfants. Sur les span, le gradient est par-ligne (chaque ligne va #fff→#ddd) mais
   visuellement c'est imperceptible sur 2 lignes. */
#mecanisme .section__title--vs {
  max-width: 22ch;
  margin-inline: auto;
  color: var(--paper);
  background-image: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] #mecanisme .section__title--vs {
  background-image: linear-gradient(180deg, var(--paper) 0%, #2a2a2a 100%);
}
/* Fix bug : applique le clip aussi sur les spans générés par splitLines après reveal. */
#mecanisme .section__title--vs .line,
#mecanisme .section__title--vs .line > span {
  color: var(--paper); /* fallback obligatoire pour rester visible si clip échoue */
  background-image: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] #mecanisme .section__title--vs .line,
[data-theme="light"] #mecanisme .section__title--vs .line > span {
  background-image: linear-gradient(180deg, var(--paper) 0%, #2a2a2a 100%);
}

/* Ligne 2 « On analyse votre entreprise. » — gradient violet-rosé (couleurs eyebrow).
   Le span .vs-title-accent est dans le markup AVANT splitLines, donc préservé inside
   la structure .line > span (SplitType conserve les inline children). Il a son propre
   gradient + clip qui override celui du parent line. Fallback color obligatoire. */
#mecanisme .vs-title-accent {
  color: var(--paper);
  background-image: linear-gradient(135deg, #c5d0ff 0%, #d1acdf 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] #mecanisme .vs-title-accent {
  background-image: linear-gradient(135deg, #5a4b9e 0%, #7e5fae 100%);
}

#mecanisme .section__intro {
  max-width: 52ch;
  margin-inline: auto;
}
/* Fade subtil sous le bloc header — fin filet violet→transparent (pas une vraie ligne,
   juste un dégradé qui s'efface aux bords, cohérent avec l'esthétique Reflect). */
#mecanisme .section__head::after {
  content: "";
  display: block;
  width: min(420px, 70%);
  height: 1px;
  margin: clamp(1.2rem, 3vh, 2rem) auto 0;
  background: linear-gradient(to right, transparent, var(--line-2), transparent);
}
[data-theme="light"] #mecanisme .section__head::after {
  background: linear-gradient(to right, transparent, rgba(124, 79, 201, 0.18), transparent);
}

/* cascade des lignes du comparatif à l'entrée (conservée) */
.js .vs__list li { opacity: 0; transform: translateY(10px); }
.versus.is-in .vs__list li {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.versus.is-in .vs__list li:nth-child(2) { transition-delay: 0.08s; }
.versus.is-in .vs__list li:nth-child(3) { transition-delay: 0.16s; }
.versus.is-in .vs__list li:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; gap: 2.5rem; }
  .versus__vline { display: none; }
  .vs-center { order: -1; padding-top: 0; }
  .vs-col { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vs-row.is-in, .vs-row.is-out { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vs--enduria::before { animation: none; }
}

/* ---- Trait de progression vertical (§6.4) ---- */
.progress {
  position: fixed;
  left: max(2vw, 1rem);
  top: 0;
  width: 1px;
  height: 100vh;
  z-index: 900;
  background: var(--line);
  pointer-events: none;
}
.progress__bar {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}
@media (max-width: 768px) {
  .progress { display: none; }
}

/* ---- 05 Méthode — BRIEF_METHODE_CONTAINER : section encapsulée dans un grand panneau
       arrondi à fond dégradé violet, façon section Métiers. Header centré + pilule
       blanche, titre blanc/gris, timeline et étapes adaptées au fond violet. ---- */

/* Pas de border-top + pas de hairline pour #method (le shell est l'élément visuel
   séparateur, on n'a plus besoin du trait). */
#method { border-top: none; }
#method > .hairline { display: none; }

/* Container arrondi. Padding interne généreux pour que le contenu respire.
   Fond SOLIDE var(--ink) (= couleur de fond du site, adaptée au thème) → le
   canvas Ferrofluid derrière fait alpha compositing dessus, continuité
   parfaite avec le reste de la page. */
.method__shell {
  position: relative;
  border-radius: 32px;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(2.5rem, 7vw, 6rem);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;      /* clippe le canvas Ferrofluid au border-radius */
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  /* SAFARI FIX : `isolation: isolate` RETIRÉE (bug WebKit : z-index -1 dans
     isolation s'échappe et casse le layout). Le canvas Ferrofluid passe en
     z-index: 0 (jamais négatif) et le contenu (section__head + timeline) en
     z-index: 1 explicite pour un stacking déterministe cross-browser. */
}
[data-theme="light"] .method__shell {
  border-color: rgba(12, 13, 16, 0.08);
  box-shadow: 0 20px 44px -18px rgba(12, 13, 16, 0.20);
}

/* ---- Glows violets latéraux DANS le shell (au lieu de .method sur la section) —
       même pattern que .hero et #faq mais contenus dans .method__shell qui a déjà
       overflow: hidden + border-radius → clippés proprement aux bords arrondis, ne
       débordent plus autour de la section. Dark only. ---- */
.method__shell::before,
.method__shell::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(124, 79, 201, 0.22) 0%,
    rgba(124, 79, 201, 0.09) 30%,
    rgba(124, 79, 201, 0.03) 55%,
    transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
.method__shell::before { left: -30vw; }
.method__shell::after  { right: -30vw; }
[data-theme="light"] .method__shell::before,
[data-theme="light"] .method__shell::after { display: none; }
@media (max-width: 768px) {
  .method__shell::before,
  .method__shell::after { width: 80vw; max-width: 480px; }
}

/* Canvas Ferrofluid WebGL — fond animé du shell.
   SAFARI FIX : z-index: 0 (PAS -1). Le -1 dans isolation est un bug WebKit
   qui fait sortir le canvas du contexte et le fait empiler AU-DESSUS du
   contenu (rend la section 2× trop haute car le canvas prend l'espace en
   flow au lieu d'être en absolute réel). Positions explicites top/right/
   bottom/left au lieu de `inset: 0` par sécurité Safari. */
.ferrofluid-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none !important;
  overflow: hidden;
}
.ferrofluid-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
}

/* Contenu au-dessus du canvas via z-index: 1 explicite. */
.method__shell > .section__head,
.method__shell > .timeline { position: relative; z-index: 1; }

/* ---- Header #method : pilule blanche + titre blanc/gris (sur fond violet) ---- */

/* Eyebrow pill BLANCHE (AJUSTEMENTS §2) — différente de la pilule sombre de #mecanisme.
   - Inline-flex pour aligner icône + texte
   - Casse NORMALE (pas d'uppercase, override de la base .eyebrow)
   - Geist Medium (var --font-display) au lieu d'Inter
   - Bordure dégradée gris clair → gris via mask-composite. */
#method .eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  position: relative;
  margin: 0 auto;
  padding: 7px 14px 7px 12px;
  border-radius: 99px;
  /* Fond glass adaptatif : semi-opaque paper pour ressortir sur --ink dans
     les 2 thèmes. */
  background: color-mix(in srgb, var(--paper) 12%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Override .eyebrow base (uppercase + Inter + letter-spacing 0.06em). */
  text-transform: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}
#method .eyebrow--pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #fefefe 0%, #7a7a7a 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* Icône de la pilule : violet pour matcher l'accent du site. */
.eyebrow--pill__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #7c4fc9;
}
#method .eyebrow--pill > span {
  color: var(--paper);
  font-size: var(--type-label);
  line-height: 1;
}

/* Titre H2 : couleur var(--paper) → auto-adapt (blanc-cassé en dark, sombre
   en light). Plus de dégradé blanc forcé (parasite en light mode). */
#method .section__title--method {
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--paper);
}
#method .section__title--method .line,
#method .section__title--method .line > span {
  color: var(--paper);
}

/* Gaps de respiration (AJUSTEMENTS §1) :
   - section__head.gap : entre pilule et titre (override .section__head { gap: 1.2rem }).
   - section__head.margin-bottom : entre titre et bloc des 4 étapes. */
#method .section__head {
  gap: clamp(1.8rem, 3.5vh, 2.6rem);
  margin-bottom: clamp(3.5rem, 7vh, 5.5rem);
}

/* ---- Timeline : recolorée pour fond violet (blanc/translucide) ---- */
.timeline { position: relative; }
.timeline__track {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--inv-line);
  border-radius: 2px;
  z-index: 1; /* la ligne reste SOUS les nœuds numérotés */
}
.timeline__progress {
  position: absolute;
  left: 0;
  top: -2px;
  height: 5px;
  width: 0;
  border-radius: 5px;
  /* neon plus marque (retour Theo : barre plus dynamique / meilleur effet, cap DA reflect.app) */
  background: linear-gradient(90deg, var(--accent-2), var(--accent), #c4b0ff);
  box-shadow: 0 0 8px rgba(124, 79, 201, 0.7), 0 0 22px rgba(167, 139, 250, 0.55), 0 0 2px #fff inset;
}
.timeline__progress::after { /* comete lumineuse en tete de progression */
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--accent-2) 45%, var(--accent) 100%);
  box-shadow: 0 0 0 5px rgba(124, 79, 201, 0.18), 0 0 16px var(--accent-2), 0 0 30px rgba(167, 139, 250, 0.7);
}
.timeline__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  position: relative;
  z-index: 2; /* les étapes (et leurs nœuds opaques) passent AU-DESSUS de la ligne */
}
.tl-step {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-right: 1rem;
}
.tl-step__node {
  position: relative;
  z-index: 2; /* nœud opaque qui masque proprement la ligne (plus de "01" barré) */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--inv-line);
  background: var(--inv-bg);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--inv-fog);
  margin-bottom: 0.7rem;
  transition: border-color 0.45s var(--ease-out), color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
/* Noeud actif : emphase STATIQUE (retour frere 17/06 : plus de rond qui pulse "tres Claude") */
.tl-step.is-active .tl-step__node {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 79, 201, 0.10);
}
@media (prefers-reduced-motion: reduce) {
  .tl-step.is-active .tl-step__node { transform: none; }
}
.tl-step h3 {
  font-size: var(--type-h3);
  letter-spacing: -0.02em;
}
.tl-step p { color: var(--inv-fog); }
.tl-step__tag {
  margin-top: 0.5rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 79, 201, 0.32);
  background: rgba(124, 79, 201, 0.08);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.tl-step__tag::before { /* petit point accent */
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tl-step__tag--free {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 1024px) {
  .timeline__track { display: none; }
  .timeline__steps { grid-template-columns: 1fr; gap: 2rem; }
  .tl-step { border-left: 2px solid var(--inv-line); padding-left: 1.4rem; }
  .tl-step__node { margin-left: -1.4rem; }
}

/* ---- Timeline #method : recolorée sur fond Ferrofluid (var(--ink) adapté au thème) ---- */
#method .timeline__steps {
  gap: clamp(2.5rem, 5vw, 4rem);
}
/* Track + progress : neutres auto-adapt via --paper (blanc en dark, sombre en light). */
#method .timeline__track {
  background: color-mix(in srgb, var(--paper) 22%, transparent);
}
#method .timeline__progress {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--paper) 65%, transparent),
    var(--paper),
    color-mix(in srgb, var(--paper) 85%, transparent));
  box-shadow:
    0 0 8px color-mix(in srgb, var(--paper) 70%, transparent),
    0 0 22px color-mix(in srgb, var(--paper) 55%, transparent);
}
#method .timeline__progress::after {
  background: radial-gradient(circle,
    var(--paper) 0%,
    var(--paper) 45%,
    color-mix(in srgb, var(--paper) 50%, transparent) 100%);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--paper) 18%, transparent),
    0 0 16px var(--paper),
    0 0 30px color-mix(in srgb, var(--paper) 70%, transparent);
}

/* Nœud numéroté : glass adaptatif (couche semi-transparente qui utilise le
   contraste inverse au thème). */
#method .tl-step__node {
  background: color-mix(in srgb, var(--paper) 18%, transparent);
  border-color: color-mix(in srgb, var(--paper) 40%, transparent);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* État actif : plein paper, chiffre violet en dark. */
#method .tl-step.is-active .tl-step__node {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--paper) 22%, transparent);
}
/* Light mode : le node actif a un fond SOMBRE (paper = dark en light), donc
   le chiffre doit être BLANC pour ressortir (le violet accent est mal
   contrasté sur un fond sombre en light). */
[data-theme="light"] #method .tl-step.is-active .tl-step__node {
  color: #ffffff;
}

/* Textes : couleur paper auto-adaptative. */
#method .tl-step h3 {
  color: var(--paper);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}
#method .tl-step p {
  color: color-mix(in srgb, var(--paper) 85%, transparent);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Progressive blur (AJUSTEMENTS §4) : les étapes pas encore atteintes par la jauge sont
   légèrement floutées + atténuées. La classe .is-active est ajoutée par method.js (via
   setActive dans le onUpdate du ScrollTrigger existant) quand la progression dépasse le
   seuil de l'étape — on réutilise cette classe, pas besoin d'un nouveau listener.
   PERF : la transition CSS sur filter+opacity joue UNE FOIS par changement d'état
   (compositing GPU), pas frame par frame au scroll. */
#method .tl-step {
  filter: blur(7px);
  opacity: 0.5;
  transition:
    filter 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out);
}
#method .tl-step.is-active {
  filter: blur(0px);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  #method .tl-step,
  #method .tl-step.is-active {
    filter: none;
    opacity: 1;
    transition: none;
  }
}

/* Étiquettes : semi-opaques auto-adapt (glass léger avec accent violet-rosé). */
#method .tl-step__tag {
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--paper);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#method .tl-step__tag--free {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-color: color-mix(in srgb, var(--paper) 28%, transparent);
  color: var(--paper);
}
/* Light mode : les pilules passent en BLANC (fond blanc + texte sombre) →
   neutres, aucune dominante violette parasite sur le fond clair. */
[data-theme="light"] #method .tl-step__tag {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(12, 13, 16, 0.14);
  color: rgba(12, 13, 16, 0.82);
}
[data-theme="light"] #method .tl-step__tag--free {
  background: #ffffff;
  border-color: rgba(12, 13, 16, 0.28);
  color: rgba(12, 13, 16, 0.95);
}

/* Responsive : mobile = stack vertical, border-left auto-adapt. */
@media (max-width: 1024px) {
  #method .tl-step {
    border-left-color: color-mix(in srgb, var(--paper) 25%, transparent);
  }
  .method__shell {
    padding: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 4vw, 2rem);
    border-radius: 24px;
  }
}

/* ---- 05 Métiers (placeholder dock — §3.6 à venir) ---- */
.metiers__placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- 06 Cas clients (rangées full-width, chiffre énorme) ---- */
/* Resultats : grille 2x2 de cartes metriques neon (refonte 17/06, retour Theo : section a ameliorer) */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}
.case {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.7rem, 3vw, 2.3rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.case::after { /* glow neon au survol */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 120% at 80% 0%, rgba(124, 79, 201, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.case:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 22px 60px -34px rgba(124, 79, 201, 0.6);
}
.case:hover::after { opacity: 1; }
.case__metric {
  order: -1; /* le chiffre en avant, en haut de la carte */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.case__metric span[data-count] {
  background-image: linear-gradient(120deg, var(--accent-2), var(--accent), #c4b0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.45)); /* glow neon sur le chiffre */
}
.case__sector {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}
.case__desc {
  font-size: 1.04rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: none;
}
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   07 Démo conversationnelle "Une journée type" — .bg-pattern retiré, remplacé
   par un DOT PATTERN local style Magic UI : grille de petits points subtils,
   fondu radial vers les bords pour éviter le cadre dur. */
#demo {
  position: relative;
  overflow: hidden;
}
#demo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Grille de dots 20×20px, points de 1px. Couleur violet-rosé DA très discrète. */
  background-image: radial-gradient(circle, rgba(209, 172, 223, 0.13) 1px, transparent 1.5px);
  background-size: 20px 20px;
  /* Mask radial ellipse : dots visibles au centre, fondus aux bords → pas de
     cadre dur, effet flottant style Magic UI. */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
[data-theme="light"] #demo::before {
  /* Light : dots gris foncés très discrets sur fond clair. */
  background-image: radial-gradient(circle, rgba(12, 13, 16, 0.12) 1px, transparent 1.5px);
}
/* Contenu de la section au-dessus du dot pattern. */
#demo > .container {
  position: relative;
  z-index: 1;
}

/* Wrapper CADRE du chat #demo (le contenu interne = .panel-chat + .chat-stack
   avec bulles + typing dots + typewriter, structure et anim identiques au
   panel4 "Service client 24/7" de #metiers, cf. panel4-chat.js).
   Ce wrapper apporte le cadre visuel (bordure, fond, radius, hauteur stable). */
.demo-chat {
  max-width: 440px;
  margin-inline: auto;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  /* Hauteur STABLE pour absorber la conversation la plus longue (4 messages
     denses avec typewriter) : ~520px. Évite tout scaling de la section quand
     de nouveaux messages arrivent. */
  min-height: 520px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.demo-chat .panel-chat {
  /* Le .panel-chat interne a `width: min(360px, 96%)` par défaut. On l'étire
     pour remplir le wrapper .demo-chat qui a déjà son propre padding. */
  width: 100%;
  min-height: 100%;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   08 Témoignages — cartes d'avis style Limova (étoiles jaune-orangé).
   Suit le thème du site (dark en dark, light en light) via tokens standards
   var(--bg-elevated) / var(--paper) / var(--fog) / var(--border-subtle).
   .section-light retirée du HTML (inversion parasite corrigée).
   Grille 3 col × 2 rows (3 avis visibles + 3 cachés révélés par toggle). */
/* Glow violet en FOND de la section (calqué derrière les cartes), radial-gradient
   large et discret. Visible à travers les cartes qui ont un fond semi-transparent
   + backdrop-blur (effet glass). Positionné en absolute sur la section. */
#temoignages { position: relative; overflow: hidden; }
#temoignages::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 92vw);
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(139, 63, 245, 0.18) 0%,
    rgba(139, 63, 245, 0.08) 35%,
    rgba(139, 63, 245, 0.02) 60%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}
/* Light mode : PAS DE GLOW en fond (rendait mal sur fond clair, Théo). */
[data-theme="light"] #temoignages::after {
  display: none;
}
#temoignages > .container { position: relative; z-index: 1; }

.testimonials {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 920px;
  margin: var(--space-block) auto 0;
}
/* Fondu bas RETIRÉ (Théo — faisait toujours une barre visible malgré les
   itérations). Les 3 cartes initiales ont un bas net et propre. */

.tmoin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  border-radius: 22px;
  background: rgba(15, 17, 22, 0.55);
  border: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  /* Relief : ombre interne haute violet-rosé (liseré coloré) + drop-shadow
     soft pour la profondeur → les cartes sont bien incrustées, pas flat.
     La micro-anim tmoin-breathe fait pulser le liseré (composant inset). */
  box-shadow:
    inset 0 1px 0 rgba(197, 172, 223, 0.28),
    0 6px 20px -12px rgba(0, 0, 0, 0.45);
  animation: tmoin-breathe 5s ease-in-out infinite;
}
.tmoin:nth-child(2) { animation-delay: 1.2s; }
.tmoin:nth-child(3) { animation-delay: 2.4s; }
.tmoin:nth-child(4) { animation-delay: 0.6s; }
.tmoin:nth-child(5) { animation-delay: 1.8s; }
.tmoin:nth-child(6) { animation-delay: 3s; }
@keyframes tmoin-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(197, 172, 223, 0.24),
      0 6px 20px -12px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(197, 172, 223, 0.48),
      0 6px 20px -12px rgba(0, 0, 0, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tmoin { animation: none; }
}
[data-theme="light"] .tmoin {
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(139, 63, 245, 0.18),
    0 6px 20px -14px rgba(12, 13, 16, 0.15);
}
[data-theme="light"] .tmoin {
  animation-name: tmoin-breathe-light;
}
@keyframes tmoin-breathe-light {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(139, 63, 245, 0.15),
      0 6px 20px -14px rgba(12, 13, 16, 0.15);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(139, 63, 245, 0.32),
      0 6px 20px -14px rgba(12, 13, 16, 0.15);
  }
}
/* Pas de hover : les cartes sont informatives, aucun cursor pointer, aucune
   élévation qui suggérerait un click. */
/* Étoiles jaune-orangé fixées quel que soit le thème (style Limova/Trustpilot). */
.tmoin__stars {
  display: inline-flex;
  gap: 2px;
  color: #f5a623;
  align-items: center;
}
.tmoin__star {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.tmoin__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0.2rem 0 0;
}
.tmoin__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fog);
  margin: 0;
  flex: 1;
}
.tmoin__author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.tmoin__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1acdf 0%, #c5d0ff 100%);
  color: #1a1030;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.tmoin__id {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tmoin__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--paper);
  line-height: 1.2;
}
.tmoin__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--fog);
  line-height: 1.2;
}

/* Bouton "Voir plus d'avis" ↔ "Voir moins" (toggle géré en JS). Le z-index: 3
   passe au-dessus du fade overlay (z-index: 2) pour rester cliquable. */
.testimonials__actions {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}
.testimonials__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  /* Fond semi-transparent + backdrop-blur = bouton s'incruste dans la section,
     glow violet du fond transparaît légèrement à travers. Plus discret. */
  background: rgba(15, 17, 22, 0.35);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}
[data-theme="light"] .testimonials__more {
  background: rgba(255, 255, 255, 0.4);
}
.testimonials__more:hover {
  /* Hover discret : léger changement de fond, bordure stable. */
  background: rgba(15, 17, 22, 0.55);
  border-color: var(--line-2);
}
[data-theme="light"] .testimonials__more:hover {
  background: rgba(255, 255, 255, 0.65);
}
.testimonials__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}
.testimonials__more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
/* Avis supplémentaires : cachés via [hidden] par défaut, révélés en JS. */
.tmoin[hidden] { display: none; }

@media (max-width: 980px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials { grid-template-columns: 1fr; gap: 1rem; }
  .tmoin { padding: 1.4rem 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   09 FAQ — accordéon inspiré Limova (single-open) + mécanique GRID 0fr→1fr
   identique #metiers pour le recalcul de hauteur smooth. Séparateurs fins
   entre chaque question, chevron qui pivote 180° à l'ouverture.
   Le JS (faq.js) toggle .is-open + aria-expanded. */

/* Glows violets latéraux (dark only) — même technique que le hero : deux ronds
   radiaux à moitié hors écran à gauche/droite. Apportent du peps sans encombrer
   le centre. bg-pattern retiré (Théo — lignes parasites). */
#faq {
  position: relative;
  overflow: hidden;
}
#faq::before,
#faq::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(124, 79, 201, 0.20) 0%,
    rgba(124, 79, 201, 0.08) 30%,
    rgba(124, 79, 201, 0.03) 55%,
    transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
#faq::before { left: -30vw; }
#faq::after  { right: -30vw; }
#faq > .container { position: relative; z-index: 1; }
/* Light : pas de glow violet (rend sale sur fond clair, cf. hero). */
[data-theme="light"] #faq::before,
[data-theme="light"] #faq::after { display: none; }
@media (max-width: 768px) {
  /* Mobile : glows plus petits pour ne pas encombrer. */
  #faq::before,
  #faq::after { width: 80vw; max-width: 480px; }
}

.faq__list {
  max-width: 760px;
  margin: var(--space-block) auto 0;
  border-top: 1px solid var(--border-subtle);
}
.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.4rem;
  border: none;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}
.faq__q:hover { color: var(--accent-2); }
[data-theme="light"] .faq__q:hover { color: var(--accent); }
.faq__q:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.faq__q-text {
  flex: 1;
  min-width: 0;
}
.faq__chevron {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}
.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
  color: var(--accent-2);
}
[data-theme="light"] .faq__item.is-open .faq__chevron {
  color: var(--accent);
}
/* Accordéon body — mécanique GRID 0fr→1fr (technique #metiers pour animer
   height:auto smooth, recalcule au pixel près, les items en dessous suivent). */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq__a-inner {
  overflow: hidden;
  min-height: 0; /* obligatoire pour que 0fr puisse être à 0 */
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}
.faq__a-inner p {
  margin: 0;
  padding: 0 0.4rem 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fog);
  max-width: 62ch;
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq__item.is-open .faq__a-inner {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 640px) {
  .faq__q { font-size: 1rem; padding: 1.2rem 0.2rem; }
  .faq__a-inner p { padding: 0 0.2rem 1.2rem; font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   10 CTA final — background Ferrofluid (WebGL/ogl) CONTENU DANS LE CONTAINER
   uniquement. Canvas clippé au border-radius du panel via overflow:hidden.
   Traits de section haut/bas retirés (Théo). */
.cta-final {
  position: relative;
  /* Retire le border-top hérité de .section (le trait gris en haut). */
  border-top: none;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem);
}
/* Retire le trait qui apparaît sous le CTA (border-top du footer qui suit). */
#contact + .footer { border-top: none; }

.cta-final__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px; /* container plus large (avant 880px) — Théo */
  min-height: 460px; /* plus haut, plus imposant */
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(2.5rem, 6vw, 5rem);
  border-radius: 32px;
  /* Fond sombre violet-noir + bordure violet DA discrète + liseré interne haut.
     Ferrofluid violet visible sur fond sombre. */
  background: rgba(12, 8, 22, 0.55);
  border: 1px solid rgba(139, 63, 245, 0.14);
  box-shadow: inset 0 1px 0 rgba(197, 172, 223, 0.14);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  /* CRITICAL : overflow hidden clippe le canvas Ferrofluid au border-radius. */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.6rem;
}
[data-theme="light"] .cta-final__panel {
  /* Light : panel clair semi-transparent, bordure sombre neutre. */
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(12, 13, 16, 0.08);
  box-shadow: inset 0 1px 0 rgba(12, 13, 16, 0.06);
}
/* LIGHT — le Ferrofluid se met en gris neutre + glow bas (géré par le module JS
   via MutationObserver [data-theme]) → cohérent avec le fond clair, aucun override
   nécessaire ici. On garde en revanche le DOT PATTERN discret pour texture (comme
   sur #problem en light) — il ne cache pas le canvas mais le complète subtilement. */
[data-theme="light"] .cta-final__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(12, 13, 16, 0.16) 1px, transparent 1.6px);
  background-size: 16px 16px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}
/* Voile radial au CENTRE — sombre en dark, clair en light. */
.cta-final__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 55% at center,
    rgba(8, 9, 12, 0.40) 0%,
    rgba(8, 9, 12, 0.22) 40%,
    rgba(8, 9, 12, 0.06) 70%,
    transparent 90%
  );
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .cta-final__panel::after {
  background: radial-gradient(
    ellipse 60% 55% at center,
    rgba(255, 255, 255, 0.40) 0%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 90%
  );
}
/* Contenu du panel au-dessus du canvas Ferrofluid (positionné z-index 0 par le CSS
   générique .ferrofluid-container plus haut dans ce fichier) ET du voile radial. */
.cta-final__panel > *:not(.ferrofluid-container) {
  position: relative;
  z-index: 2;
}

.cta-final__title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 24ch;
  color: #ffffff;
  margin: 0;
}
[data-theme="light"] .cta-final__title {
  color: var(--paper);
}
.cta-final__desc {
  max-width: 52ch;
  font-size: var(--type-body-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
[data-theme="light"] .cta-final__desc {
  color: var(--fog);
}
.cta-final__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}
.cta-final__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}
[data-theme="light"] .cta-final__trust li {
  color: var(--fog);
}
.cta-final__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
[data-theme="light"] .cta-final__trust li::before {
  background: var(--paper);
  box-shadow: none;
}

@media (max-width: 640px) {
  .cta-final__panel {
    min-height: 400px;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
  }
  .cta-final__title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11 Footer — recentré (max-width 900px, plus resserré que le container global).
   Signature géante "Enduria" en bas avec dégradé + mask fade to background. */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(4rem, 8vh, 6rem) 0;
  overflow: hidden; /* clip la signature géante si elle dépasse */
}
.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 2rem;
  margin-top: var(--space-block);
}
.footer__mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  display: inline-block;
  position: relative;
}
.footer__mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-micro) var(--ease-out);
}
.footer__mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Titres de blocs : Geist NORMAL (pas mono) + CAPITALES (Théo). Poids 400
   conservé pour le rendu doux. */
.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 1rem;
}
.footer__col a {
  display: block;
  /* Padding vertical AUGMENTÉ (0.3 → 0.55) — plus d'espacement entre les liens
     pour que les hover-underline ne se touchent plus. */
  padding: 0.55rem 0;
  color: var(--text-secondary);
}
.footer__col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.footer__flag {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  margin-left: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.footer__clock {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Signature géante "Enduria" en bas — dégradé violet-rosé + mask fade to
   background (le texte s'estompe vers le bas comme sur Vercel/Framer). */
.footer__signature {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 20rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-align: center;
  padding: 0 clamp(1rem, 3vw, 3rem);
  margin-top: clamp(2rem, 5vh, 4rem);
  background-image: linear-gradient(180deg, #d1acdf 0%, #7c4fc9 45%, #5c3ba1 80%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Fade to background via mask-image : le bas s'estompe en transparence pure. */
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 25%, transparent 95%);
  /* Opacité globale réduite (Théo — trop visible avant, plus fondu maintenant). */
  opacity: 0.35;
  user-select: none;
  overflow: hidden;
}
[data-theme="light"] .footer__signature {
  /* Light : dégradé NEUTRE gris/noir (Théo — plus de violet en light, cohérent
     avec le reste du site en light). Dark reste violet (inchangé). */
  background-image: linear-gradient(180deg, #4a4a52 0%, #2a2a30 45%, #1a1a20 80%);
}
@media (prefers-reduced-motion: reduce) {
  .footer__signature { animation: none; }
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
@media (max-width: 768px) {
  .case {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ---- Grille de features "Pourquoi Enduria" (style reflect.app : hairlines + icones line + glow neon) ---- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  margin-top: var(--space-block);
}
.feature {
  position: relative;
  padding: 2rem 1.6rem 2.2rem;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s var(--ease-out);
  /* Clip le canvas PixelCard aux bords de la card (canvas en absolute inset:0). */
  overflow: hidden;
}
/* Canvas PixelCard en fond de chaque .feature (JS : js/modules/pixel-card.js).
   Placé en 1er enfant par le JS. Opacity réduite pour rester discret, le texte
   prime. Pointer-events none → le hover se déclenche sur .feature, pas le canvas. */
.pixel-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .pixel-card {
  /* Pixels violets soutenus (cf. pixel-card.js) sur fond clair : opacity un peu
     plus haute pour rester visible sans blend excessif. */
  opacity: 0.6;
}
/* Scrim dégradé — voile qui assombrit progressivement le bas du bloc pour rendre
   h3 + p lisibles par-dessus les pixels violets. Placé entre .pixel-card (z:0) et
   le contenu (z:1) via ::after (paint après pixel-card, sous le contenu). Multi-stops
   pour éviter toute ligne de démarcation. */
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 9, 12, 0) 0%,
    rgba(8, 9, 12, 0.05) 20%,
    rgba(8, 9, 12, 0.20) 40%,
    rgba(8, 9, 12, 0.45) 58%,
    rgba(8, 9, 12, 0.65) 74%,
    rgba(8, 9, 12, 0.78) 88%,
    rgba(8, 9, 12, 0.82) 100%
  );
}
[data-theme="light"] .feature::after {
  background: linear-gradient(
    to bottom,
    rgba(244, 242, 236, 0) 0%,
    rgba(244, 242, 236, 0.06) 20%,
    rgba(244, 242, 236, 0.22) 40%,
    rgba(244, 242, 236, 0.48) 58%,
    rgba(244, 242, 236, 0.68) 74%,
    rgba(244, 242, 236, 0.80) 88%,
    rgba(244, 242, 236, 0.85) 100%
  );
}
/* Contenu de .feature au-dessus du canvas ET du scrim — z-index explicite. */
.feature > *:not(.pixel-card) {
  position: relative;
  z-index: 1;
}
.feature__ico {
  width: 30px;
  height: 30px;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 0 9px rgba(167, 139, 250, 0.55)); /* glow neon reflect-like */
}
.feature h3 {
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.feature p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 980px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; } }

/* DA Nina : icones features encapsulees en badge (glow au hover seulement, plus en deco permanente) */
.feature__ico-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(124, 79, 201, 0.10);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 0 4px rgba(124, 79, 201, 0.06);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.feature .feature__ico { width: 20px; height: 20px; margin-bottom: 0; filter: none; }
.feature:hover .feature__ico-wrap {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(124, 79, 201, 0.18);
  box-shadow: 0 0 0 4px rgba(124, 79, 201, 0.10), 0 0 20px rgba(124, 79, 201, 0.25);
}

/* LIGHT MODE — neutralise le violet des badges d'icônes (cohérent avec les autres
   sections en light : palette noir/gris/blanc, aucun violet).
   Dark mode : violet inchangé (règles de base au-dessus). */
[data-theme="light"] .feature__ico-wrap {
  border-color: rgba(12, 13, 16, 0.10);
  background: rgba(12, 13, 16, 0.04);
  box-shadow: 0 0 0 4px rgba(12, 13, 16, 0.03);
}
[data-theme="light"] .feature__ico {
  color: var(--paper); /* --paper = noir en light → trait icône neutre foncé */
}
[data-theme="light"] .feature:hover .feature__ico-wrap {
  border-color: rgba(12, 13, 16, 0.22);
  background: rgba(12, 13, 16, 0.07);
  box-shadow: 0 0 0 4px rgba(12, 13, 16, 0.05), 0 0 20px rgba(12, 13, 16, 0.12);
}
/* Resultats : fond opaque + metrique dominante + separateur glow.
   (PERF — backdrop-filter retiré pour limiter le compositing GPU.) */
.case {
  background: rgba(15, 17, 22, 0.92);
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.15);
}
.case__metric {
  font-size: clamp(3.2rem, 6vw, 5rem);
  padding-bottom: 1.1rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid rgba(124, 79, 201, 0.20);
  box-shadow: 0 1px 0 0 rgba(124, 79, 201, 0.08);
}

/* DA Nina — "Pourquoi Enduria" épuré : 4 features, badges imposants.
   Sous-titres RÉAFFICHÉS (courte phrase grise sous chaque titre — même style
   que les p de #metiers/.tl-step). Le style de .feature p défini plus haut
   (color: var(--text-tertiary); font-size: 0.9rem; line-height: 1.55) fait le job. */
.features__grid .feature:nth-child(n+5) { display: none; }
.feature { padding: 3rem 2.4rem; }
.feature__ico-wrap { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 2rem; }
.feature .feature__ico { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; }

/* DA Nina — Résultats asymétriques : 1ere carte pleine largeur horizontale, métrique géante */
@media (min-width: 760px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  .case:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); }
  .case:first-child .case__metric { font-size: clamp(3.6rem, 7vw, 6rem); border-bottom: none; box-shadow: none; padding-bottom: 0; margin-bottom: 0; flex-shrink: 0; }
  .case:first-child > div { flex: 1; }
}
.case__metric { font-size: clamp(2.4rem, 4.2vw, 3.4rem); }
.case__sector { text-transform: none; color: var(--faint); letter-spacing: 0; }
.case { padding: clamp(2.2rem, 3.5vw, 3rem); }
