/* ============================================================
   MDJLABS — v3 (SP1)
   Vert matrix + thème clair + carrousel hero + footer global.
   Se charge APRÈS tokens.css / site.css / v2.css / brand.css.
   ============================================================ */

/* =========================================================
   0 — TOKENS v3 : couleur dominante = VERT MATRIX
   ========================================================= */
:root {
  color-scheme: dark;

  /* ---- Accent : vert matrix (proposition par défaut) ---- */
  --acc:      #00F558;
  --acc-hi:   #6CFFA1;
  --acc-deep: #00A33D;
  --acc-glow: rgba(0, 245, 88, 0.20);
  --acc-soft: rgba(0, 245, 88, 0.08);
  --acc-line: rgba(0, 245, 88, 0.32);

  --nav-bg:       rgba(7, 7, 8, 0.65);
  --nav-bg-solid: rgba(7, 7, 8, 0.90);
}

/* Variante à comparer (maquette) : phosphore, plus doux */
html[data-vert="phosphore"] {
  --acc:      #54E88A;
  --acc-hi:   #93F5B8;
  --acc-deep: #2B9A58;
  --acc-glow: rgba(84, 232, 138, 0.20);
  --acc-soft: rgba(84, 232, 138, 0.08);
  --acc-line: rgba(84, 232, 138, 0.32);
}

/* Accents hérités de la v2 (réintroduits) : cyan signal + jaune acide */
html[data-vert="cyan"] {
  --acc:      #45D2FF;
  --acc-hi:   #7FE2FF;
  --acc-deep: #1E89B3;
  --acc-glow: rgba(69, 210, 255, 0.20);
  --acc-soft: rgba(69, 210, 255, 0.08);
  --acc-line: rgba(69, 210, 255, 0.32);
}
html[data-vert="acide"] {
  --acc:      #DCFF3D;
  --acc-hi:   #E9FF7E;
  --acc-deep: #93B312;
  --acc-glow: rgba(220, 255, 61, 0.18);
  --acc-soft: rgba(220, 255, 61, 0.08);
  --acc-line: rgba(220, 255, 61, 0.32);
}

/* =========================================================
   0b — THÈME CLAIR « paillasse de labo »
   ========================================================= */
html[data-theme="light"] {
  color-scheme: light;

  --bg-0: #F1F3EE;
  --bg-1: #FAFBF8;
  --bg-2: #FFFFFF;
  --bg-3: #E7EAE2;
  --bg-4: #DDE1D7;

  --line-weak:   rgba(18, 26, 16, 0.055);
  --line:        rgba(18, 26, 16, 0.11);
  --line-strong: rgba(18, 26, 16, 0.19);

  --fg-0:  #161A12;
  --fg-1:  #474D41;
  --fg-2:  #6E7466;
  --fg-3:  #9BA191;
  --fg-inv:#F4FFF7;

  /* Vert matrix, version encre (contraste AA sur fond clair) */
  --acc:      #00813A;
  --acc-hi:   #009C46;
  --acc-deep: #005826;
  --acc-glow: rgba(0, 129, 58, 0.16);
  --acc-soft: rgba(0, 129, 58, 0.065);
  --acc-line: rgba(0, 129, 58, 0.30);

  --nav-bg:       rgba(244, 246, 241, 0.72);
  --nav-bg-solid: rgba(247, 249, 244, 0.93);

  /* Couleurs produit assombries pour rester lisibles */
  --pl: #0B8F7A; --pl-glow: rgba(11,143,122,0.16); --pl-soft: rgba(11,143,122,0.07); --pl-line: rgba(11,143,122,0.30);
  --ps: #6A4BD0; --ps-glow: rgba(106,75,208,0.16); --ps-soft: rgba(106,75,208,0.07); --ps-line: rgba(106,75,208,0.30);
  --pf: #A06E00; --pf-glow: rgba(160,110,0,0.16);  --pf-soft: rgba(160,110,0,0.07);  --pf-line: rgba(160,110,0,0.30);
  --pr: #1268B5; --pr-glow: rgba(18,104,181,0.16); --pr-soft: rgba(18,104,181,0.07); --pr-line: rgba(18,104,181,0.30);
  --prolearn: var(--pl);
  --prolearn-glow: var(--pl-glow);
  --prolearn-soft: var(--pl-soft);
  --prolearn-line: var(--pl-line);
}
html[data-theme="light"][data-vert="phosphore"] {
  --acc:      #1E9457;
  --acc-hi:   #25A964;
  --acc-deep: #0F6238;
  --acc-glow: rgba(30, 148, 87, 0.16);
  --acc-soft: rgba(30, 148, 87, 0.065);
  --acc-line: rgba(30, 148, 87, 0.30);
}
/* Cyan + jaune acide, versions encre (contraste AA sur fond clair) */
html[data-theme="light"][data-vert="cyan"] {
  --acc:      #0E7FA8;
  --acc-hi:   #1295C4;
  --acc-deep: #095A78;
  --acc-glow: rgba(14, 127, 168, 0.16);
  --acc-soft: rgba(14, 127, 168, 0.065);
  --acc-line: rgba(14, 127, 168, 0.30);
}
html[data-theme="light"][data-vert="acide"] {
  --acc:      #5F7D00;
  --acc-hi:   #6E9000;
  --acc-deep: #3F5400;
  --acc-glow: rgba(95, 125, 0, 0.16);
  --acc-soft: rgba(95, 125, 0, 0.065);
  --acc-line: rgba(95, 125, 0, 0.30);
}
html[data-theme="light"] .mdj-fx { mix-blend-mode: multiply; }
html[data-theme="light"] *::-webkit-scrollbar-thumb { border-color: var(--bg-0); }
html[data-theme="light"] ::selection { background: var(--acc); color: #FFFFFF; }

/* Glows adoucis en clair */
html[data-theme="light"] .hero-title em,
html[data-theme="light"] .contact h2 em,
html[data-theme="light"] .ia-block h3 em { text-shadow: none; }

/* =========================================================
   0c — TAILLE DE POLICE (accessibilité basse vision)
   data-fontsize : 1 = 100 % / 2 = 112 % / 3 = 125 %
   ========================================================= */
html[data-fontsize="2"] body { zoom: 1.12; }
html[data-fontsize="3"] body { zoom: 1.25; }

/* =========================================================
   1 — NAV (fond piloté par variables, thème clair OK)
   ========================================================= */
.nav { background: var(--nav-bg); }
.nav.is-scrolled { background: var(--nav-bg-solid); }

/* =========================================================
   2 — CONTRÔLES (remplace le fab RÉACTIF/ABC)
   ========================================================= */
.mdj-controls {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--nav-bg-solid);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
  color: var(--fg-2);
}
.mdj-controls .grp { display: flex; align-items: center; gap: 5px; }
.mdj-controls .sep { color: var(--fg-3); opacity: .6; }
.mdj-controls button {
  font-family: var(--ff-mono); letter-spacing: 0.04em;
  min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--fg-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.mdj-controls button:hover { color: var(--fg-0); border-color: var(--fg-3); }
.mdj-controls button.is-active {
  color: var(--fg-inv); background: var(--acc); border-color: var(--acc-line);
}
.mdj-controls .fz1 { font-size: 10px; }
.mdj-controls .fz2 { font-size: 12px; }
.mdj-controls .fz3 { font-size: 14px; }
.mdj-controls .sw {
  width: 16px; height: 16px; min-width: 16px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-strong);
}
.mdj-controls .sw.is-active { box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 3.5px var(--fg-2); }
.mdj-controls .sw[data-vert="matrix"]    { background: #00F558; }
.mdj-controls .sw[data-vert="phosphore"] { background: #54E88A; }
.mdj-controls .sw[data-vert="cyan"]      { background: #45D2FF; }
.mdj-controls .sw[data-vert="acide"]     { background: #DCFF3D; }
.mdj-controls .maq {
  font-size: 8.5px; color: var(--fg-3); letter-spacing: 0.16em;
}

/* =========================================================
   3 — HERO : CARROUSEL D'ACCROCHES
   ========================================================= */
.hero { padding: 110px 0 110px; }

.hcar { position: relative; min-height: clamp(360px, 46vh, 500px); }
.hcar-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transform: translateY(12px);
}
.hcar-slide.is-on { opacity: 1; pointer-events: auto; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hcar-slide { transition: none; transform: none; }
}

.hcar-slide .hero-lede { margin-bottom: 0; }
.hero-title {
  font-size: clamp(44px, 8.2vw, 118px);
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.94;
  margin: 0 0 28px; text-transform: uppercase; color: var(--fg-0);
}
.hero-title .l2 { display: block; }
.hero-title em { font-style: normal; color: var(--acc); text-shadow: 0 0 32px var(--acc-glow); }
.hero-title .dot { color: var(--acc); }
.hero-title.sm { font-size: clamp(36px, 4.6vw, 68px); }

/* ---- Slide 1 : showcase ProLearn multi-supports ---- */
.hcar-slide.is-showcase { flex-direction: row; align-items: center; gap: 48px; }
.hcar-showcopy { flex: 1 1 46%; min-width: 0; }
.hcar-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--pl);
  background: var(--pl-soft);
  border: 1px solid var(--pl-line);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin-bottom: 22px;
}
.hcar-chip i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; box-shadow: 0 0 6px currentColor; animation: mpulse 1.8s var(--ease) infinite; }
.hcar-showcopy .hero-lede a { color: var(--pl); font-weight: 500; }
.hcar-showcopy .hero-lede a:hover { text-shadow: 0 0 14px var(--pl-glow); }

.devices { position: relative; flex: 1 1 54%; aspect-ratio: 16 / 10.5; min-width: 0; }
.dev {
  position: absolute; margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.2);
}
html[data-theme="light"] .dev { box-shadow: 0 24px 60px -28px rgba(20,30,18,0.35); }
.dev .bar {
  height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.dev .bar i { width: 7px; height: 7px; border-radius: 999px; background: var(--bg-4); }
.dev .bar .url {
  margin-left: 6px; flex: 1;
  font-family: var(--ff-mono); font-size: 8px; letter-spacing: 0.08em; color: var(--fg-3);
  background: var(--bg-3); border-radius: 3px; padding: 2px 8px;
  white-space: nowrap; overflow: hidden;
}
.dev video, .dev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dev-desktop { left: 0; top: 0; width: 76%; aspect-ratio: 16 / 9.6; z-index: 1; }
.dev-desktop .scr { height: calc(100% - 22px); }
.dev-desktop .scr video { height: 100%; }
.dev-tablet { right: 0; top: 22%; width: 40%; aspect-ratio: 4 / 3; z-index: 2; border-radius: 10px; border-width: 2px; padding: 6px; background: var(--bg-2); }
.dev-tablet img { border-radius: 4px; }
.dev-phone {
  left: 52%; bottom: 0; width: 15.5%; aspect-ratio: 9 / 18.5; z-index: 3;
  border-radius: 14px; border-width: 2px; padding: 5px; background: var(--bg-2);
}
.dev-phone img { border-radius: 9px; object-position: 4% 0; }
.devices .figcap {
  position: absolute; left: 0; bottom: -28px;
  font-family: var(--ff-mono); font-size: 9.5px; color: var(--fg-3); letter-spacing: 0.12em;
  white-space: nowrap;
}

/* La marginalia s'efface quand le showcase occupe la droite */
.hero.is-showcase .hero-meta { opacity: 0; transition: opacity .4s var(--ease); }
.hero-meta { transition: opacity .4s var(--ease); }

/* ---- Navigation du carrousel ---- */
.hcar-nav { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hcar-segs { display: flex; align-items: center; gap: 4px; }
.hcar-seg { padding: 10px 2px; cursor: pointer; }
.hcar-seg .tr {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--line-strong);
  position: relative; overflow: hidden;
  transition: width var(--dur) var(--ease);
}
.hcar-seg.is-on .tr { width: 46px; background: var(--bg-4); }
.hcar-seg .tr i {
  position: absolute; inset: 0; display: block;
  background: var(--acc);
  transform: scaleX(0); transform-origin: left;
}
.hcar-seg.is-on .tr i { animation: hcarFill var(--d, 6000ms) linear forwards; }
.hcar.is-paused .hcar-seg .tr i, .hcar.is-still .hcar-seg .tr i { animation-play-state: paused; }
@keyframes hcarFill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hcar-seg.is-on .tr i { animation: none; transform: scaleX(1); }
}
.hcar-arr {
  font-family: var(--ff-mono); font-size: 14px; color: var(--fg-2);
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.hcar-arr:hover { color: var(--acc); border-color: var(--acc-line); }
.hcar-count { font-family: var(--ff-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.14em; }

.hero-cta { margin-top: 30px; }

/* =========================================================
   4 — TEASER « ATOME DE CONNAISSANCE » (renvoi ProLearn)
   ========================================================= */
.atome-band { padding: 84px 0; border-top: 1px solid var(--line-weak); position: relative; overflow: hidden; }
.atome-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
.atome-orbit { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.atome-orbit .ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.atome-orbit .ring.r2 { inset: 28px; border-style: dashed; }
.atome-orbit .ring.r3 { inset: 62px; border-color: var(--acc-line); }
.atome-orbit .core {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 999px;
  background: var(--acc); box-shadow: 0 0 18px var(--acc-glow), 0 0 4px var(--acc);
  animation: mpulse 2.4s var(--ease) infinite;
}
.atome-orbit .sat {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 999px; background: var(--pl);
}
@media (prefers-reduced-motion: no-preference) {
  .atome-orbit .orb { position: absolute; inset: 0; animation: atomeSpin 14s linear infinite; }
  .atome-orbit .orb.o2 { animation-duration: 22s; animation-direction: reverse; }
}
.atome-orbit .orb .sat { transform: translateX(99px); }
.atome-orbit .orb.o2 .sat { transform: translateX(71px); background: var(--fg-2); }
@keyframes atomeSpin { to { transform: rotate(360deg); } }
.atome-orbit .cap {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 9.5px; color: var(--fg-3); letter-spacing: 0.14em; white-space: nowrap;
}
.atome-body .label { margin-bottom: 14px; color: var(--acc); }
.atome-body h3 {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.1; margin: 0 0 16px;
}
.atome-body h3 em { font-style: normal; color: var(--acc); }
.atome-body p { margin: 0 0 22px; color: var(--fg-1); font-size: 16px; max-width: 62ch; text-wrap: pretty; }
.atome-body p b { color: var(--fg-0); font-weight: 500; }
.atome-link {
  font-family: var(--ff-mono); font-size: 13px; color: var(--acc);
  display: inline-flex; gap: 8px; align-items: center;
}
.atome-link:hover { text-shadow: 0 0 14px var(--acc-glow); }

/* =========================================================
   4a — FONDATEUR : portrait détouré (WebP transparent) sur grille labo
   Le sujet est posé sur la grille du panneau, fondu en bas.
   ========================================================= */
.founder-visual img {
  filter: grayscale(0.16) contrast(1.04);
}

/* =========================================================
   4b — FONDATEUR : badge propre « Pe » + bulle de dialogue
   ========================================================= */
/* Badge exclusif du fondateur : sa propre compétence, pas un expert consulté */
.founder-self { margin-top: 26px; }
.founder-self .el-self {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.03em;
  display: inline-flex; gap: 10px; align-items: baseline;
  color: var(--acc-hi);
  border: 1px solid var(--acc-line);
  background: var(--acc-soft);
  border-radius: var(--r-sm);
  padding: 8px 13px;
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.founder-self .el-self b {
  color: var(--fg-inv); background: var(--acc); font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.02em;
}
.founder-self .self-cap {
  display: block; margin-top: 10px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.13em;
  color: var(--acc);
}

/* Bulle de dialogue + carrousel de punchlines (Slimane parle) */
.say { margin: 30px 0 6px; }
.say-bubble {
  position: relative;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--acc);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  background:
    radial-gradient(620px 200px at 0% 0%, var(--acc-soft), transparent 70%),
    var(--bg-2);
  padding: 18px 22px 20px;
  box-shadow: 0 26px 64px -38px rgba(0, 0, 0, 0.6);
}
/* Ergot pointant vers le portrait (desktop) */
.say-bubble::before {
  content: "";
  position: absolute; left: -8px; top: 26px;
  width: 14px; height: 14px;
  background: var(--bg-2);
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.say-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--fg-3); margin-bottom: 12px;
}
.say-meta i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--acc);
  box-shadow: 0 0 8px var(--acc); animation: mpulse 1.8s var(--ease) infinite;
}
.say-line {
  margin: 0; padding: 0; border: 0;
  font-size: clamp(18px, 1.9vw, 23px); font-weight: 500; line-height: 1.36;
  letter-spacing: -0.015em; color: var(--fg-0); text-wrap: pretty;
  min-height: 2.7em;
}
.say.is-vibe .say-bubble { animation: sayVibe 0.34s steps(2, end) 1; }
@keyframes sayVibe {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 1px); }
  80%  { transform: translate(1px, 0); }
  100% { transform: translate(0, 0); }
}
.say-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.say-dots { display: inline-flex; gap: 7px; }
.say-dots button {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--line-strong); padding: 0; border: 0; cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease), border-radius var(--dur) var(--ease);
}
.say-dots button:hover { background: var(--fg-3); }
.say-dots button.is-on { width: 22px; border-radius: 4px; background: var(--acc); }
.say-tag {
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--fg-3); margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  .say.is-vibe .say-bubble { animation: none; }
}
@media (max-width: 980px) {
  .say-bubble { border-left-width: 1px; border-top: 2px solid var(--acc); }
  .say-bubble::before {
    left: 30px; top: -8px;
    border-left: 1px solid var(--line-strong);
    border-bottom: none;
    border-top: 1px solid var(--line-strong);
  }
  .say-tag { margin-left: 0; width: 100%; }
}

/* =========================================================
   6b — ÉCOSYSTÈME : schéma animé des synergies
   ========================================================= */
.eco-anim { margin: 8px 0 30px; }
.eco-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* liens d'identité partagée */
.eco-svg .eidlink { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 7; opacity: 0.42; }

/* chemins de flux */
.eco-svg .epath { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.eco-svg .epath.base { opacity: 0.14; }
.eco-svg .epath.src-ps { stroke: var(--ps); color: var(--ps); }
.eco-svg .epath.src-pf { stroke: var(--pf); color: var(--pf); }
.eco-svg .epath.src-pl { stroke: var(--pl); color: var(--pl); }
.eco-svg .epath.src-pr { stroke: var(--pr); color: var(--pr); }
.eco-svg .epath.lit { opacity: 0; filter: drop-shadow(0 0 5px currentColor); transition: opacity var(--dur) var(--ease); }
.eco-svg .epath.lit.is-active { opacity: 1; }
.eco-svg .epath.lit.is-done { opacity: 0.5; }

/* comète (tête de flux) */
.eco-svg .ecomet { fill: #FFFFFF; opacity: 0; }

/* HUB — MDJ ID */
.eco-svg .hub-ring { fill: none; stroke: var(--acc-line); opacity: 0.35; }
.eco-svg .hub-core { fill: var(--bg-3); stroke: var(--acc-line); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.eco-svg .hub-t1 { fill: var(--fg-0); font-family: var(--ff-mono); font-weight: 700; font-size: 19px; letter-spacing: 0.08em; }
.eco-svg .hub-t2 { fill: var(--acc); font-family: var(--ff-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; }
.eco-svg .ehub.is-boost .hub-core { animation: hubBoost 0.8s var(--ease); fill: var(--acc-soft); stroke: var(--acc); }
.eco-svg .ehub.is-boost .hub-ring { animation: hubRingPulse 0.8s var(--ease); }
@keyframes hubBoost { 0% { transform: scale(1); } 42% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes hubRingPulse { 0% { opacity: 0.35; } 45% { opacity: 0.9; } 100% { opacity: 0.35; } }

/* nœuds produits */
.eco-svg .enode .nbg { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 1.5; transition: stroke var(--dur) var(--ease); }
.eco-svg .enode .nsym { fill: var(--fg-0); font-family: var(--ff-mono); font-weight: 600; font-size: 30px; letter-spacing: 0.01em; }
.eco-svg .enode .nsym .b[data-p="pl"] { fill: var(--pl); }
.eco-svg .enode .nsym .b[data-p="ps"] { fill: var(--ps); }
.eco-svg .enode .nsym .b[data-p="pf"] { fill: var(--pf); }
.eco-svg .enode .nsym .b[data-p="pr"] { fill: var(--pr); }
.eco-svg .enode .nname { fill: var(--fg-2); font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.08em; }
.eco-svg .enode .hitring { fill: none; stroke: var(--acc); stroke-width: 2; opacity: 0; }
.eco-svg .enode.is-hit { animation: enodeHit 0.42s steps(2, end); }
.eco-svg .enode.is-hit .nbg { stroke: var(--acc); }
.eco-svg .enode.is-hit .hitring { animation: hitRing 0.58s var(--ease); }
@keyframes enodeHit {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}
@keyframes hitRing { 0% { r: 40px; opacity: 0.9; } 100% { r: 76px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .eco-svg .enode.is-hit, .eco-svg .ehub.is-boost .hub-core, .eco-svg .ehub.is-boost .hub-ring { animation: none; }
}

/* légende dynamique + compteur de synergie */
.eco-anim-cap { display: flex; gap: 14px; align-items: baseline; margin-top: 20px; min-height: 2.8em; }
.eco-anim-cap .route {
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--acc);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 10px;
  white-space: nowrap; flex: none;
}
.eco-anim-cap .route i { font-style: normal; padding: 0 5px; }
.eco-anim-cap .desc { color: var(--fg-1); font-size: 15px; text-wrap: pretty; }
.eco-anim-cap.is-vibe .desc { animation: sayVibe 0.3s steps(2, end); }
.eco-meter {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-3);
}
.eco-meter .ticks { display: inline-flex; gap: 5px; }
.eco-meter .ticks i { width: 28px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.eco-meter .ticks i.on { background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); }
.eco-meter .state { color: var(--acc); margin-left: 4px; }

@media (max-width: 760px) {
  .eco-anim-cap { flex-direction: column; gap: 8px; }
  .eco-meter { flex-wrap: wrap; }
}

/* =========================================================
   4c — GLITCH périodique des boutons d'action (CTA ProLearn / contact)
   Déclenché par fx-v3.js via la classe .is-glitching, comme les titres.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @keyframes btnGlitch {
    0%, 100% { transform: translate(0, 0); filter: none; }
    18% { transform: translate(-2px, 1px) skewX(-1.5deg); filter: drop-shadow(2px 0 0 var(--acc-hi)) drop-shadow(-2px 0 0 var(--pl)); }
    40% { transform: translate(2px, -1px); filter: drop-shadow(-2px 0 0 var(--acc-hi)) drop-shadow(2px 0 0 var(--pl)); }
    64% { transform: translate(-1px, 0) skewX(1deg); filter: drop-shadow(1px 0 0 var(--pl)); }
    82% { transform: translate(1px, 0); filter: none; }
  }
  /* boutons pleins : glitch chromatique (n'altère pas l'ombre de base) */
  .btn.is-glitching { animation: btnGlitch 0.36s steps(2, end); }
  /* liens CTA texte : héritent du glitch « titre » (mdjGlitch) */
}

/* =========================================================
   5 — CONTACT : champ sujet
   ========================================================= */
.field select {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  font-size: 15px;
  color: var(--fg-0);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field select:hover { border-color: var(--line-strong); }
.field select:focus { border-color: var(--acc-line); background: var(--bg-2); box-shadow: none; outline: none; }

/* =========================================================
   6 — FOOTER GLOBAL v3 : newsletter + réseaux + légal
   ========================================================= */
footer.foot-v3 { border-top: 1px solid var(--line); padding: 0 0 44px; }
.nl {
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.nl-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.nl-copy h4 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px;
}
.nl-copy p { margin: 0; color: var(--fg-1); font-size: 14.5px; max-width: 44ch; text-wrap: pretty; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input[type="email"] {
  flex: 1; min-width: 0;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14.5px; color: var(--fg-0);
}
.nl-row input[type="email"]:focus { border-color: var(--acc-line); outline: none; }
.nl-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--fg-2); line-height: 1.55; cursor: pointer;
  max-width: 58ch;
}
.nl-consent input { accent-color: var(--acc); margin-top: 2px; }
.nl-consent a { color: var(--fg-1); text-decoration: underline; text-underline-offset: 3px; }
.nl-consent a:hover { color: var(--acc); }
.nl-ok {
  display: none;
  align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--acc-line); border-radius: var(--r-sm);
  background: var(--acc-soft);
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--acc-hi); letter-spacing: 0.06em;
  padding: 12px 14px;
}
.nl-form.is-sent .nl-ok { display: flex; }
.nl-form.is-sent .nl-row, .nl-form.is-sent .nl-consent { display: none; }
.nl-ok .wa {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--fg-0); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 7px 12px; display: inline-flex; gap: 8px; align-items: center;
}
.nl-ok .wa:hover { border-color: var(--acc-line); color: var(--acc); }
.nl-ok .pend { font-size: 9px; color: var(--fg-3); letter-spacing: 0.12em; }

.foot-social {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 26px 0 0;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em;
}
.foot-social .lbl { color: var(--fg-3); font-size: 10px; letter-spacing: 0.14em; margin-right: 6px; }
.foot-social .soc {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 6px 11px; color: var(--fg-2);
  display: inline-flex; gap: 7px; align-items: center;
}
.foot-social a.soc:hover { color: var(--acc); border-color: var(--acc-line); }
.foot-social .soc.is-main { color: var(--fg-0); border-color: var(--line-strong); font-weight: 500; }
.foot-social span.soc { opacity: .45; cursor: default; }
.foot-social .pend { color: var(--fg-3); font-size: 9px; letter-spacing: 0.14em; margin-left: auto; }

.foot-v3 .foot-grid { padding-top: 26px; }

/* =========================================================
   7 — PAGE MENTIONS LÉGALES
   ========================================================= */
.legal { max-width: 820px; margin: 0 auto; padding: 150px 32px 110px; }
.legal .crumbs { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--fg-3); margin-bottom: 28px; display: flex; gap: 10px; }
.legal .crumbs a { color: var(--fg-2); }
.legal .crumbs a:hover { color: var(--fg-0); }
.legal h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 14px; }
.legal .lede { color: var(--fg-1); font-size: 15.5px; margin: 0 0 56px; max-width: 60ch; }
.legal section { border-top: 1px solid var(--line); padding: 36px 0; }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; display: flex; gap: 14px; align-items: baseline; }
.legal h2 .n { font-family: var(--ff-mono); font-size: 11px; color: var(--acc); letter-spacing: 0.14em; }
.legal p, .legal li { color: var(--fg-1); font-size: 14.5px; text-wrap: pretty; }
.legal p b { color: var(--fg-0); font-weight: 500; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal .todo {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--pf); background: var(--pf-soft);
  border: 1px dashed var(--pf-line); border-radius: var(--r-sm);
  padding: 3px 9px;
}
.legal .blank {
  display: inline-block; min-width: 180px; height: 13px; vertical-align: -2px;
  background: repeating-linear-gradient(90deg, var(--bg-4) 0 8px, transparent 8px 12px);
  border-radius: 2px;
}

/* =========================================================
   8 — RESPONSIVE MOBILE (version mobile complète)
   ========================================================= */
@media (max-width: 980px) {
  .hcar-slide.is-showcase { gap: 32px; }
  .hero-title { font-size: clamp(40px, 9.5vw, 76px); }
}

@media (max-width: 760px) {
  .ct { padding: 0 20px; }
  .nav { padding: 0 16px; gap: 14px; height: 56px; }
  .nav-links { display: none; }
  .nav-cta .btn { padding: 7px 12px; font-size: 12px; }

  .hero { padding: 96px 0 120px; min-height: auto; }
  .hero-eyebrow { margin-bottom: 24px; font-size: 10.5px; }
  .hcar { min-height: 540px; }
  .hcar-slide { justify-content: flex-start; padding-top: 8px; }
  .hcar-slide.is-showcase { flex-direction: column; align-items: stretch; gap: 26px; justify-content: flex-start; }
  .hcar-showcopy { flex: none; }
  .hero-title { margin-bottom: 20px; }
  .hero-title.sm { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-lede { font-size: 15.5px; }
  .devices { flex: none; width: 100%; aspect-ratio: 16 / 10.5; }
  .devices .figcap { bottom: -24px; font-size: 8.5px; }
  .dev .bar { height: 16px; gap: 4px; padding: 0 6px; }
  .dev .bar i { width: 5px; height: 5px; }
  .dev .bar .url { font-size: 6.5px; padding: 1px 6px; }
  .dev-desktop .scr { height: calc(100% - 16px); }
  .dev-tablet { padding: 4px; }
  .dev-phone { padding: 3px; border-radius: 10px; }
  .dev-phone img { border-radius: 7px; }

  .hcar-nav { margin-top: 24px; gap: 10px; }
  .hcar-seg .tr { width: 12px; }
  .hcar-seg.is-on .tr { width: 30px; }
  .hcar-count { display: none; }
  .hero-cta { margin-top: 22px; gap: 10px; }
  .hero-cta .btn { padding: 12px 16px; font-size: 13.5px; }
  .hero-cta .hint { margin-left: 0; width: 100%; font-size: 10px; }
  .hero-foot { left: 20px; right: 20px; bottom: 18px; font-size: 9.5px; gap: 12px; }

  .sec { padding: 84px 0; }
  .sec-head { flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
  .sol-intro { margin-bottom: 36px; }
  .prod-feature { padding: 28px 22px; }
  .sol-card { padding: 22px; }

  .atome-band { padding: 64px 0; }
  .atome-grid { grid-template-columns: 1fr; gap: 56px; }
  .atome-orbit { width: 160px; height: 160px; }
  .atome-orbit .orb .sat { transform: translateX(79px); }
  .atome-orbit .orb.o2 .sat { transform: translateX(56px); }

  .ia-block { padding: 28px 20px; gap: 28px; }
  .contact { padding: 96px 0 84px; }
  .form-foot { flex-wrap: wrap; }

  .nl { padding: 44px 0; }
  .nl-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-social { gap: 6px; }
  .foot-social .pend { margin-left: 0; width: 100%; }
  .foot-grid { flex-direction: column; gap: 14px; }

  .mdj-controls { right: 10px; bottom: 10px; padding: 6px 10px; gap: 7px; }
  .mdj-controls .lbl-aff { display: none; }

  .legal { padding: 110px 20px 80px; }
}

@media (max-width: 420px) {
  .hcar { min-height: 560px; }
  .hero-title { font-size: clamp(34px, 11vw, 44px); }
}

/* =========================================================
   LÉGAL — masquage coordonnées (révéler au clic) + sous-nav
   (ré-appliqué après import v4 — pages mentions/confidentialité/cookies)
   ========================================================= */
.legal .reveal-wrap { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.legal button.reveal {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--acc); background: transparent;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 2px 10px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.legal button.reveal:hover { border-color: var(--acc); color: var(--fg-0); }
.legal .revealed { color: var(--fg-0); }
.legal .legal-nav {
  display: flex; gap: 8px 18px; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
  margin: 0 0 48px; padding-bottom: 4px;
}
.legal .legal-nav a { color: var(--fg-2); }
.legal .legal-nav a:hover { color: var(--fg-0); }
.legal .legal-nav a[aria-current] { color: var(--acc); }
.legal a.xref { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Contact : messages pré-écrits selon le profil (ré-appliqué post-v4) ---- */
.msg-suggest { margin: 0 0 10px; }
.msg-suggest[hidden] { display: none; }
.msg-suggest-lbl { display: block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--fg-3); margin-bottom: 8px; }
.msg-suggest-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.msg-chip {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--fg-1); background: var(--bg-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.msg-chip:hover, .msg-chip:focus-visible { color: var(--fg-inv); background: var(--acc); border-color: var(--acc-line); outline: none; }
