/* ============================================================
   PROPOSITION « NUIT » v2 — refonte de zéro, 20/08/2026.
   Chaque valeur marquée [M] est MESURÉE sur framer.com
   (extraction prismd 25/07/2026, ../VARIABLES-EXTRAITES.md +
   charte.json) ; les valeurs marquées [C] sont CHOISIES et
   assumées comme telles (aucune n'est présentée comme mesurée).
   Police : Switzer — substitut documenté d'Inter Variable
   (liste noire R37/R41), auto-hébergée.
   ============================================================ */

@font-face {
  font-family: "Switzer";
  src: url("/accueil/fonts/switzer-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/accueil/fonts/switzer-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/accueil/fonts/switzer-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/accueil/fonts/jetbrains-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  /* [M] fonds relevés : rgb(0,0,0) · rgba(15,15,15,.95) · rgb(17,17,17) */
  --bg: #000;
  --nav-bg: rgba(15, 15, 15, 0.95);
  --panel: #111;
  --panel-2: #141414;
  --panel-3: #1d1d1d;
  /* [M] accents relevés : rgb(0,102,255) / rgb(0,153,255) */
  --accent: #0066ff;
  --accent-2: #0099ff;
  /* [M] bordure rgba(255,255,255,.1) */
  --line: rgba(255, 255, 255, 0.1);
  --txt: #fff;
  /* [M] neutres relevés dans les variables du site : #999 · #666 · #ffffffa6 */
  --muted: rgba(255, 255, 255, 0.65);
  --dim: #999;
  --faint: #888;
  /* [M] rayons relevés : 4/8/14/20/30 px */
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 30px;
  /* [M] ombre à liseré blanc interne — jamais une ombre grise plate */
  --shadow-1: rgba(0, 0, 0, 0.15) 0px 10px 20px 0px,
              rgba(255, 255, 255, 0.05) 0px 1px 0px 0px inset;
  /* [M] ombre teintée bleu relevée sur les éléments actifs */
  --shadow-blue: rgba(0, 153, 255, 0.15) 0px 1px 2px 0px,
                 rgba(0, 153, 255, 0.2) 0px 2px 4px 0px;
  /* [M] anneau sombre relevé (shadow-2/3) */
  --ring: rgb(17, 17, 17) 0px 0px 0px 2px;
  /* [M] approche serrée -0.040em · graisse max 600 */
  --track: -0.04em;
  /* [M] gouttière latérale ≈ 8,3 % de la fenêtre, relevée sur la capture 1440 */
  --gutter: clamp(20px, 8.3vw, 120px);
  /* [M] révélation 400 ms — durée dominante (×9 sur 18 animations) */
  --reveal: 400ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  /* [M] corps compact relevé (base 12–15 px) — 15 px retenu pour le français */
  font: 400 15px/1.5 "Switzer", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: var(--track); }

.ic { width: 15px; height: 15px; flex: none; }

::selection { background: rgba(0, 153, 255, 0.3); } /* [M] --selection-color #09f relevé */

/* ---------- révélation : opacité + flou, 400 ms [M] ---------- */
[data-anim] {
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--reveal) ease, filter var(--reveal) ease;
}
[data-anim].in { opacity: 1; filter: blur(0); }
[data-anim][data-delay="1"] { transition-delay: 90ms; }
[data-anim][data-delay="2"] { transition-delay: 180ms; }
[data-anim][data-delay="3"] { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAVIGATION — 64 px [M], verre givré blur(5px) [M], fixe
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(5px); /* [M] signature « verre givré » relevée */
  -webkit-backdrop-filter: blur(5px);
}
.nav-in {
  height: 64px; /* [M] */
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em;
}
.brand-mark { width: 21px; height: 21px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  /* [M] liens de nav relevés : rayon 15 px, remplissage 15 px, 44 px de haut */
  padding: 8px 15px; border-radius: 15px;
  font-size: 14px; color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav-links a:hover { color: var(--txt); background: rgba(255, 255, 255, 0.07); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14px; color: var(--muted); transition: color 200ms ease; }
.nav-login:hover { color: var(--txt); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer;
  font: 500 14px/1 "Switzer", sans-serif; letter-spacing: -0.01em;
  border-radius: var(--r-sm); /* [M] rayon bouton relevé : 8 px */
  padding: 0 16px; height: 36px;
  transition: background-color 200ms ease, color 200ms ease,
              box-shadow 200ms ease, border-color 200ms ease;
}
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e6e6e6; }
.btn-dark {
  background: var(--panel); color: var(--txt);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-dark:hover { background: var(--panel-3); }
.btn-blue { background: var(--accent); color: #fff; }
.btn-blue:hover { background: var(--accent-2); box-shadow: var(--shadow-blue); }
.btn-ghost {
  background: transparent; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { color: var(--txt); }
.btn-nav { height: 32px; border-radius: 9999px; } /* [M] pilule 9999 relevée */
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 10px; } /* [C] agrandi pour le héros */

/* ============================================================
   HÉROS
   ============================================================ */
.hero { padding: 64px var(--gutter) 0; }
.hero-title {
  /* [M] spécimen display relevé : 54 px / graisse 500 / interligne serré */
  margin-top: clamp(70px, 12vh, 130px);
  font-size: clamp(37px, 3.9vw, 57px);
  line-height: 1.07; font-weight: 500;
}
.hero-row {
  margin-top: 44px; /* [M] pas d'espacement : 40/50 */
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-news {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--dim);
  transition: color 200ms ease;
}
.hero-news strong { color: var(--txt); font-weight: 500; }
.hero-news:hover { color: var(--txt); }

/* ============================================================
   CADRE APPLICATIF (réplique de l'éditeur au-dessus du pli)
   ============================================================ */
.stage {
  margin-top: 54px;
  background: var(--panel-2);
  border-radius: var(--r-lg); /* [M] 20 px */
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  overflow: hidden;
}
.stage-bar {
  height: 52px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.stage-bar-left, .stage-bar-right { display: flex; align-items: center; gap: 10px; }
.stage-logo { display: inline-flex; color: var(--txt); }
.stage-logo svg { width: 18px; height: 18px; }
.stage-mode {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-3); color: var(--txt);
  border: 0; border-radius: var(--r-sm);
  font: 500 13px/1 "Switzer", sans-serif;
  padding: 7px 10px; cursor: default;
}
.stage-tools { display: inline-flex; align-items: center; gap: 14px; color: var(--dim); }
.stage-tools svg { width: 15px; height: 15px; }
.stage-bar-center {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--txt); font-weight: 500;
}
.stage-branch {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--dim); font-weight: 400;
  background: var(--panel-3); border-radius: 9999px; padding: 4px 10px;
  font-size: 12px;
}
.avatars { display: inline-flex; align-items: center; }
.av {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: #fff;
  box-shadow: 0 0 0 2px var(--panel-2);
  margin-left: -6px;
}
.av:first-child { margin-left: 0; }
/* [C] teintes d'avatars dérivées des deux accents mesurés + neutre */
.av-1 { background: #245; }
.av-2 { background: var(--accent); }
.av-3 { background: #333; }
.av-count { font-size: 11px; color: var(--dim); margin-left: 6px; }
.stage-play {
  background: transparent; border: 0; color: var(--muted);
  display: inline-flex; cursor: default;
}
.stage-play svg { width: 16px; height: 16px; }

.stage-body {
  display: grid;
  grid-template-columns: 218px 1fr 252px;
  min-height: 460px;
}

/* --- panneaux latéraux --- */
.pane { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pane-left { border-right: 1px solid var(--line); }
.pane-right { border-left: 1px solid var(--line); }
.pane-tabs { display: flex; gap: 4px; }
.tab {
  background: transparent; border: 0; color: var(--dim);
  font: 500 12px/1 "Switzer", sans-serif;
  padding: 6px 9px; border-radius: var(--r-sm); cursor: default;
}
.tab.is-on { background: var(--panel-3); color: var(--txt); }
.pane-search {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel-3); border-radius: var(--r-sm);
  padding: 7px 9px; color: var(--faint); font-size: 12px;
}
.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 500; color: var(--txt);
  padding: 4px 2px 0;
}
.pane-head .ic { color: var(--dim); }
.tree { display: flex; flex-direction: column; gap: 1px; }
.t-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
  padding: 6px 8px; border-radius: var(--r-sm);
}
.t-row .ic { width: 13px; height: 13px; color: var(--dim); }
.t-row.is-active { background: var(--panel-3); color: var(--txt); }
.t-child { padding-left: 30px; }
.t-caret { width: 11px; height: 11px; }
.t-open .t-caret { transform: rotate(90deg); }

/* --- canevas central --- */
.canvas {
  background: #0a0a0a;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 18px 14px; position: relative;
}
.canvas-bar {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel-3); border-radius: var(--r-sm);
  padding: 7px 10px; color: var(--dim); font-size: 12px;
}
.canvas-bp { color: var(--txt); font-weight: 500; }
.canvas-add { margin-left: auto; }
.canvas-frame {
  position: relative; flex: 1;
  background: #050505;
  border: 1px solid var(--line);
}
.canvas-select { position: absolute; inset: 0; border: 1px solid var(--accent-2); pointer-events: none; }
.h {
  position: absolute; width: 7px; height: 7px;
  background: #fff; border: 1px solid var(--accent-2);
}
.h-tl { top: -4px; left: -4px; } .h-tr { top: -4px; right: -4px; }
.h-bl { bottom: -4px; left: -4px; } .h-br { bottom: -4px; right: -4px; }

.mini-site { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.mini-nav { display: flex; align-items: center; justify-content: space-between; }
.mini-brand { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; }
.mini-brand i {
  font-style: normal; font-size: 9px; letter-spacing: 0.04em;
  color: var(--dim); border: 1px solid var(--line);
  border-radius: 9999px; padding: 2px 7px; margin-left: 8px;
  vertical-align: 2px;
}
.mini-links { display: flex; gap: 12px; font-size: 10px; color: var(--dim); }
.mini-links i { font-style: normal; }
.mini-links b { font-weight: 500; color: var(--txt); }
.mini-statement {
  font-size: clamp(15px, 1.7vw, 24px); line-height: 1.25;
  font-weight: 500; letter-spacing: -0.02em; max-width: 30ch;
  margin-top: 6px;
}
.mini-scroll { font-size: 10px; color: var(--faint); align-self: flex-end; }
.mini-cards { display: flex; gap: 10px; margin-top: auto; }
.mini-card {
  flex: 1; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.mini-k { font-size: 10px; color: var(--dim); }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.mini-bars i { flex: 1; background: rgba(255, 255, 255, 0.25); border-radius: 2px 2px 0 0; }
.mini-bars .b1 { height: 30%; } .mini-bars .b2 { height: 45%; }
.mini-bars .b3 { height: 38%; } .mini-bars .b4 { height: 62%; }
.mini-bars .b5 { height: 50%; } .mini-bars .b6 { height: 78%; }
.mini-bars .b7 { height: 100%; background: var(--accent-2); }
.mini-gauge {
  height: 6px; border-radius: 9999px; background: var(--panel-3);
  overflow: hidden; margin-top: auto;
}
.mini-gauge i { display: block; height: 100%; width: 64%; background: var(--accent); }

.canvas-dock {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  background: var(--panel-3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 9px 14px;
  color: var(--muted);
  box-shadow: var(--shadow-1);
}
.canvas-dock svg { width: 15px; height: 15px; }
.dock-zoom {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--txt);
  border-left: 1px solid var(--line); padding-left: 14px;
}

/* --- copilote --- */
.agent-select {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel-3); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 12px; font-weight: 500;
}
.agent-select .ic { color: var(--dim); }
.agent-msg {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px; font-size: 12px; line-height: 1.45; color: var(--txt);
  display: flex; flex-direction: column; gap: 8px;
}
.agent-thumbs { display: flex; gap: 5px; }
.agent-thumbs i {
  width: 26px; height: 26px; border-radius: var(--r-xs);
  border: 1px solid var(--line);
}
.agent-thumbs i:nth-child(1) { background: linear-gradient(135deg, #0a2a6b, #0066ff); }
.agent-thumbs i:nth-child(2) { background: linear-gradient(135deg, #123, #0099ff); }
.agent-thumbs i:nth-child(3) { background: linear-gradient(135deg, #1d1d1d, #17324f); }
.agent-steps { display: flex; flex-direction: column; gap: 5px; padding: 0 2px; }
.step-line {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.step-line b { font-weight: 400; color: var(--faint); }
.step-dim { color: var(--faint); }
.agent-reply { font-size: 12px; line-height: 1.5; color: var(--muted); padding: 0 2px; }
.agent-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel-3); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 11px; color: var(--muted);
}
.agent-changes {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 11px;
}
.chg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--txt); font-weight: 500;
}
.chg-head b {
  font-weight: 400; color: var(--dim);
  border: 1px solid var(--line); border-radius: var(--r-xs); padding: 2px 7px;
}
.chg-row {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; color: var(--muted);
}
.chg-row b { margin-left: auto; font-weight: 400; color: var(--faint); }
.agent-input {
  margin-top: auto;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px; display: flex; flex-direction: column; gap: 16px;
  font-size: 12px; color: var(--faint);
}
.agent-input-foot { display: flex; align-items: center; justify-content: space-between; }
.agent-model { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 11px; }
.agent-send {
  width: 22px; height: 22px; border-radius: 9999px;
  background: var(--panel-3); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.agent-send svg { width: 13px; height: 13px; }

.stage .btn, .stage .tab, .glow-frame .tab { cursor: default; }
.stage-note {
  margin-top: 10px; font-size: 11px; color: var(--faint);
  text-align: right;
}
.hero-learn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: clamp(60px, 9vw, 130px) auto 0;
  font-size: 14px; color: var(--dim); width: fit-content;
  transition: color 200ms ease;
}
.hero-learn:hover { color: var(--txt); }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec { padding: clamp(110px, 13vw, 200px) var(--gutter) 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 56px;
}
.sec-head h2, .sec-edit h2, .cta h2 {
  /* [M] échelle relevée : 44 px (3xl) */
  font-size: clamp(30px, 3.05vw, 44px);
  line-height: 1.1; font-weight: 500;
}

/* --- galerie des surfaces --- */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 264px;
}
.g-card {
  background: var(--panel);
  border-radius: var(--r-md); /* [M] 14 px */
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden; position: relative;
  transition: box-shadow 300ms ease; /* [M] transition 300 ms relevée */
}
.g-card:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), var(--shadow-1); }
.g-wide { grid-column: span 2; }
.g-card-accent { background: linear-gradient(160deg, #0b1e3a, var(--panel) 55%); } /* [C] fond teinté par l'accent mesuré */
.g-chrome {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--dim);
}
.g-brand { font-weight: 600; color: var(--txt); letter-spacing: 0.02em; }
.g-menu { display: flex; gap: 10px; }
.g-menu i { font-style: normal; }
.g-menu b { font-weight: 500; color: var(--txt); }
.g-line {
  font-size: clamp(16px, 1.45vw, 21px); line-height: 1.3;
  font-weight: 500; letter-spacing: -0.02em;
}
.g-skel { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.g-pill { width: 52px; height: 14px; border-radius: 9999px; background: var(--panel-3); }
.g-pill-on { background: var(--accent); }
.g-block { width: 100%; height: 40px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); }
.g-block-low { height: 26px; }
.g-row { width: 100%; height: 8px; border-radius: 9999px; background: var(--panel-3); }
.g-row-short { width: 62%; }
.g-serp { margin-top: auto; display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.g-serp i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, 0.18); }
.g-serp-blue i { background: rgba(0, 102, 255, 0.55); }
.g-serp .s1 { height: 22%; } .g-serp .s2 { height: 34%; } .g-serp .s3 { height: 28%; }
.g-serp .s4 { height: 48%; } .g-serp .s5 { height: 40%; } .g-serp .s6 { height: 66%; }
.g-serp .s7 { height: 55%; } .g-serp .s8 { height: 80%; } .g-serp .s9 { height: 100%; }
.g-grid { margin-top: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.g-grid i { aspect-ratio: 1; border-radius: var(--r-xs); background: var(--panel-3); border: 1px solid var(--line); }

.logos {
  margin-top: clamp(56px, 6vw, 90px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 34px 20px; justify-items: center;
  max-width: 820px; margin-inline: auto;
}
.logos li {
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}

/* --- exploration --- */
.sec-head-split h2 { max-width: 24ch; }
.explore {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(16px, 2.4vw, 34px);
}
.x-card { display: flex; flex-direction: column; gap: 10px; }
.x-tag { font: 500 11px/1 "JetBrains Mono", monospace; color: var(--accent-2); letter-spacing: 0.02em; }
.x-frame {
  position: relative; flex: 1; min-height: 240px;
  border: 1px solid var(--accent-2);
  background: #0a0a0a;
  padding: 14px;
}
.x-ui { display: flex; flex-direction: column; gap: 8px; }
.x-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.x-row {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 6px 8px;
  display: flex; align-items: center; gap: 6px;
}
.x-row::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--faint); flex: none;
}
.x-ok::before { background: var(--accent-2); }
.x-warn::before { background: #fb0; } /* [M] jeton #fb0 relevé dans les variables du site */
.x-flow { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.x-flow b { font-weight: 500; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 8px; }
.x-flow em { flex: 1; height: 1px; background: var(--line); }

/* --- bande connecteurs --- */
.band {
  margin-top: clamp(100px, 12vw, 180px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 60px); align-items: center;
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(28px, 4vw, 60px);
}
.band-txt h3 { font-size: clamp(24px, 2.3vw, 33px); line-height: 1.15; }
.band-txt p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.band-code {
  background: #0a0a0a; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px;
  font: 500 13px/2 "JetBrains Mono", monospace;
  box-shadow: var(--shadow-1);
}
.c-line { display: block; color: var(--txt); }
.c-line b { font-weight: 500; color: var(--accent-2); }
.c-line i { font-style: normal; color: var(--txt); }
.c-dim { color: var(--faint); }
.c-part { font-style: normal; color: var(--dim); border: 1px solid var(--line); border-radius: 9999px; padding: 2px 8px; font-size: 11px; }

/* --- bento --- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.b-lg {
  grid-column: span 3; min-height: 400px; padding: 28px;
}
.b-lg p { max-width: 46ch; }
.b-tile {
  grid-column: span 2;
  background: var(--panel);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 20px;
  min-height: 190px;
  display: flex; flex-direction: column;
  transition: box-shadow 300ms ease;
}
.b-tile:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.b-tile h3 { font-size: 15px; margin-top: auto; }
.b-tile h3 span { color: var(--faint); font-weight: 400; }
.b-tile p { margin-top: 6px; font-size: 13px; color: var(--dim); line-height: 1.45; }
.b-viz { min-height: 54px; display: flex; align-items: flex-start; }
.b-stat .b-big {
  font-size: clamp(40px, 3.4vw, 50px); font-weight: 500;
  letter-spacing: var(--track);
  margin-bottom: 14px;
}
.b-stat-accent { background: linear-gradient(160deg, #0b1e3a, var(--panel) 60%); }
.b-stat-accent .b-big { color: var(--accent-2); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 40px; width: 120px; }
.spark-lg { height: 120px; width: 100%; gap: 8px; }
.spark i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, 0.22); }
.spark .p1 { height: 25%; } .spark .p2 { height: 42%; } .spark .p3 { height: 30%; }
.spark .p4 { height: 55%; } .spark .p5 { height: 44%; } .spark .p6 { height: 68%; }
.spark .p7 { height: 58%; } .spark .p8 { height: 100%; background: var(--accent-2); }
.flowrow { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.flowrow-lg { font-size: 13px; }
.flowrow-lg b { padding: 8px 14px; }
.flowrow-lg em { flex: 1; }
.flowrow b { font-weight: 500; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 8px; }
.flowrow em { width: 14px; height: 1px; background: var(--line); }
.avatars-tile .av { width: 30px; height: 30px; font-size: 10px; box-shadow: 0 0 0 2px var(--panel); }
.checks { display: flex; gap: 6px; }
.checks i {
  width: 26px; height: 26px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--panel-2);
}
.checks .ok { background: rgba(0, 102, 255, 0.25); border-color: rgba(0, 153, 255, 0.5); }
.checks .warn { background: rgba(255, 187, 0, 0.15); border-color: rgba(255, 187, 0, 0.4); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips i {
  font-style: normal; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 9999px; padding: 5px 10px;
}
.ab { display: flex; gap: 6px; }
.ab i {
  font-style: normal; width: 30px; height: 30px; border-radius: var(--r-xs);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted);
}
.ab .ab-b { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- bandes éditoriales --- */
.sec-edit .edit-row {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 5vw, 80px); align-items: end;
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 70px);
}
.edit-side p { color: var(--muted); max-width: 46ch; margin-bottom: 22px; }

/* ============================================================
   CTA FINAL — lueur bleue derrière l'outilier, recadré en bas
   ============================================================ */
.cta {
  margin-top: clamp(120px, 15vw, 230px);
  padding: 0 var(--gutter);
  text-align: center;
  overflow: hidden;
}
.cta h2 { margin-bottom: 28px; }
.glow-stage {
  position: relative;
  margin: clamp(60px, 7vw, 110px) auto 0;
  max-width: 1100px;
  height: clamp(190px, 26vw, 300px);
}
.glow {
  position: absolute; inset: -60% -28% auto; height: 190%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(0, 102, 255, 0.7), rgba(0, 153, 255, 0.28) 45%, transparent 72%);
  filter: blur(46px);
}
.glow-frame {
  position: absolute; inset: 0 0 auto; top: 24px;
  margin: 0 auto; max-width: 880px;
  background: rgba(15, 15, 15, 0.95); /* [M] */
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--shadow-1);
  padding-bottom: 30px;
  text-align: left;
}
.glow-frame .stage-bar { border-bottom: 1px solid var(--line); }
.glow-tabs { display: flex; gap: 4px; padding: 12px 14px 0; }
.glow-tabs .tab { font-size: 13px; padding: 8px 12px; }
.glow-search { margin: 12px 14px 0; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.foot {
  margin-top: clamp(70px, 8vw, 120px);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 5vw, 70px) var(--gutter) 34px;
}
.foot-in {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px 24px;
}
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; align-content: flex-start; }
.foot-brand > span { font-size: 16px; font-weight: 600; }
.foot-tag { width: 100%; margin-top: 12px; font-size: 13px; color: var(--faint); line-height: 1.5; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .foot-head {
  font-size: 12px; font-weight: 500; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.foot-col a { font-size: 14px; color: var(--muted); transition: color 200ms ease; }
.foot-col a:hover { color: var(--txt); }
.foot-base {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .stage-body { grid-template-columns: 200px 1fr; }
  .pane-right { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-wide { grid-column: span 2; }
  .b-lg { grid-column: span 6; min-height: 300px; }
  .b-tile { grid-column: span 3; }
  .explore { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-login { display: none; }
  .hero-title { font-size: clamp(30px, 8.4vw, 40px); }
  .stage-body { grid-template-columns: 1fr; min-height: 0; }
  .pane-left { display: none; }
  .canvas { min-height: 340px; min-width: 0; }
  .canvas-dock { display: none; }
  .stage-bar-center { display: none; }
  .stage-tools, .avatars, .av-count, .stage-play, .stage-bar-right .btn-ghost { display: none; }
  .mini-links i { display: none; }
  .mini-statement { font-size: 17px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .g-card { min-height: 210px; }
  .g-wide { grid-column: auto; }
  .b-tile, .b-lg { grid-column: span 6; min-height: 0; }
  .band { grid-template-columns: 1fr; }
  .sec-edit .edit-row { grid-template-columns: 1fr; align-items: start; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
  .hero-row { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   ACCUEIL PUBLIC (20/08) — médias réels + bande « 4 phases »
   ============================================================ */
.g-media {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.g-media img { display: block; width: 100%; height: auto; }
.b-proof {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  overflow: hidden;
}
.b-proof img { display: block; width: 100%; height: auto; }

.phases {
  margin-top: clamp(100px, 12vw, 180px);
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(28px, 4vw, 60px);
}
.phases-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.phases-head h3 { font-size: clamp(24px, 2.3vw, 33px); line-height: 1.15; }
.phases-head p { color: var(--muted); max-width: 40ch; }
.phases-grid {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; counter-reset: none;
}
.phases-grid li {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  background: #0a0a0a;
  display: flex; flex-direction: column; gap: 8px;
}
.ph-num { font: 500 12px/1 "JetBrains Mono", monospace; color: var(--accent-2); }
.phases-grid h4 { font-size: 16px; }
.phases-grid p { font-size: 13px; color: var(--dim); line-height: 1.5; }

.foot-in { grid-template-columns: 1.6fr repeat(3, 1fr); }

@media (max-width: 1080px) {
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .phases-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
