/* dev2cafes — feuille de style unique */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/Archivo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/Archivo-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("fonts/PlexSans-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/PlexMono-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/PlexMono-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --panel: #121418;
  --panel-2: #181b20;
  --line: rgba(232, 234, 237, .09);
  --line-2: rgba(232, 234, 237, .17);
  --text: #e8eaed;
  --muted: rgba(232, 234, 237, .7);
  --dim: rgba(232, 234, 237, .46);
  --amber: #ff5b1f;
  --amber-deep: #e0480e;
  --green: #4ade80;
  --red: #f87171;
  --violet: #7aa2ff;
  --cyan: #5fd4e0;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(232, 234, 237, .075) 1px, transparent 1.2px);
  background-size: 26px 26px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.amber { color: var(--amber); }
.green { color: var(--green); }
.red { color: var(--red); }
.violet { color: var(--violet); }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); box-shadow: 0 0 12px rgba(255,91,31,.7); }

/* ---------- Typo ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  color: var(--dim); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.prompt { color: var(--amber); padding: 3px 9px; border: 1px solid rgba(255,91,31,.35); border-radius: 6px; background: rgba(255,91,31,.06); }

h1, h2, h3 { font-weight: 400; margin: 0; }
.h2 {
  font-family: var(--display); font-weight: 700; font-stretch: 92%;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04; letter-spacing: -.026em; word-spacing: .04em;
  max-width: 18ch;
}
.h2 em, h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; margin: 22px 0 0; }
.link { color: var(--text); text-decoration-color: var(--amber); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--amber); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 22px; border-radius: 12px;
  background: var(--amber); color: var(--bg);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 34px -14px rgba(255,91,31,.75);
}
.btn:hover { transform: translateY(-2px); background: #ff7a45; }
.btn .arrow { font-family: var(--mono); width: 26px; height: 26px; border-radius: 7px; background: rgba(10,11,13,.12); display: grid; place-items: center; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: rgba(232,234,237,.03); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); padding: 14px 22px; }
.btn-ghost:hover { background: rgba(232,234,237,.07); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled {
  background: rgba(10, 11, 13, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.logo b { font-weight: 600; color: var(--amber); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(232,234,237,.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding: 9px 12px 9px 16px; font-size: 14.5px; border-radius: 10px; }
.nav .btn .arrow { width: 22px; height: 22px; }
.nav .btn .label-short { display: none; }
.kbd-btn { display: inline-flex; gap: 4px; align-items: center; background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 9px; padding: 6px 8px; cursor: pointer; font-family: var(--mono); font-size: 12px; transition: color .2s, border-color .2s; }
.kbd-btn span { padding: 1px 6px; border-radius: 5px; background: rgba(232,234,237,.07); }
.kbd-btn:hover { color: var(--text); border-color: rgba(255,91,31,.5); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 90px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px circle at var(--mx, 75%) var(--my, 15%), rgba(255,91,31,.09), transparent 60%); transition: background .2s; }
.hero h1 { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: clamp(42px, 6.6vw, 96px); line-height: .98; letter-spacing: -.032em; word-spacing: .05em; }
.hero .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero-head { display: grid; gap: 34px; }
.hero-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 60px; align-items: end; opacity: 0; animation: fade .9s .4s var(--ease) forwards; }
.hero-side .lead { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Fenêtres */
.window, .ide {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.05) inset;
  overflow: hidden;
}
.window-bar, .ide-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(232,234,237,.02); }
.dots { display: flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(232,234,237,.14); }
.dots i { background: rgba(232,234,237,.16); }
.window-title { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.window-meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }

/* IDE du hero */
.ide { margin-top: 64px; opacity: 0; animation: fade 1s .55s var(--ease) forwards; }
.tabs { display: flex; height: 100%; align-items: stretch; min-width: 0; overflow: hidden; }
.tab { display: flex; align-items: center; gap: 8px; padding: 0 16px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); border-right: 1px solid var(--line); white-space: nowrap; }
.tab.active { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--amber); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.ide-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.08fr); min-height: 420px; }
.explorer { border-right: 1px solid var(--line); padding: 14px 10px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.explorer p { margin: 0 0 10px 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
.explorer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.explorer li { padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explorer .sub { padding-left: 20px; }
.explorer .sub2 { padding-left: 34px; }
.explorer .active { background: rgba(255,91,31,.1); color: var(--text); }

.code {
  margin: 0; padding: 18px 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.85;
  color: var(--muted); counter-reset: ln; overflow: hidden; white-space: normal; border-right: 1px solid var(--line);
  tab-size: 2;
}
.code .ln { display: block; padding-right: 16px; min-height: 1.85em; white-space: pre; }
.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: rgba(232,234,237,.22); }
.code .ln.cur { background: rgba(232,234,237,.035); }
.k { color: var(--violet); }
.s { color: var(--amber); }
.t { color: var(--cyan); }
.a { color: var(--green); }
.f { color: #e8eaed; }
.n { color: var(--red); }
.p { color: var(--muted); }
.c { color: var(--dim); font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.15em; vertical-align: -3px; background: var(--amber); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Aperçu : maquette → produit */
.preview { padding: 18px; background: radial-gradient(120% 80% at 50% 0%, rgba(255,91,31,.08), transparent 60%); display: flex; }
.app { position: relative; flex: 1; background: #f3f4f6; color: #0f1114; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; padding: 10px; min-height: 360px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden; }
.st { position: relative; border-radius: 8px; transition: background .5s, outline-color .5s; }
.st .st-in { height: 100%; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.st:not(.on) { outline: 1.5px dashed rgba(15,17,20,.3); outline-offset: -1.5px; background: repeating-linear-gradient(135deg, rgba(15,17,20,.04) 0 7px, transparent 7px 14px); }
.st.on .st-in, .preview.done .st .st-in { opacity: 1; transform: none; }
.preview.done .st { outline: none; background: none; }

.app-top .st-in { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(15,17,20,.08); }
.app-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--amber); flex: none; }
.app-nav { display: flex; gap: 8px; }
.app-nav i { width: 34px; height: 6px; border-radius: 3px; background: #dde1e6; }
.app-nav i.on { background: #0f1114; }
.app-search { flex: 1; height: 20px; border-radius: 10px; background: #eceef1; max-width: 180px; margin-left: auto; }
.app-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--violet); flex: none; }
.app-body { flex: 1; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
.app-side .st-in { display: flex; flex-direction: column; gap: 10px; padding: 10px 9px; background: #0f1114; border-radius: 8px; }
.app-side i { height: 24px; border-radius: 6px; background: rgba(232,234,237,.12); }
.app-side i.on { background: var(--amber); }
.app-main { display: grid; gap: 10px; grid-template-rows: auto auto 1fr; min-width: 0; }
.app-kpis .st-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-kpis .st-in > div { background: #fff; border-radius: 8px; padding: 7px 10px; box-shadow: 0 1px 2px rgba(15,17,20,.06); }
.app-kpis small { display: block; font-size: 10px; color: #6b7280; line-height: 1.3; }
.app-kpis b { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.app-table .st-in { background: #fff; border-radius: 8px; padding: 4px 12px; box-shadow: 0 1px 2px rgba(15,17,20,.06); }
.row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; }
.row + .row { border-top: 1px solid #eceef1; }
.row i { width: 14px; height: 14px; border-radius: 50%; background: #dde1e6; }
.row span { height: 7px; border-radius: 4px; background: #dde1e6; max-width: 70%; }
.row:nth-child(2) span { max-width: 55%; }
.pill { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.wait { background: #ffe4d6; color: #b43d0a; }
.app-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; min-height: 90px; }
.app-cal .st-in { background: #fff; border-radius: 8px; padding: 9px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-content: start; box-shadow: 0 1px 2px rgba(15,17,20,.06); }
.app-cal i { aspect-ratio: 1; border-radius: 3px; background: #eceef1; }
.app-cal i.b { background: var(--amber); }
.app-cal i.b2 { background: var(--violet); }
.app-chart .st-in { background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(15,17,20,.06); display: flex; }
.app-chart svg { width: 100%; height: 100%; min-height: 70px; }
.app-chart .area { fill: rgba(255,91,31,.22); }
.app-chart .stroke { fill: none; stroke: var(--amber-deep); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 0; }
.app-chart.on .stroke { animation: draw 1.4s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 400; } }
.app-toast { position: absolute; right: 16px; bottom: 16px; }
.app-toast .st-in { background: #0f1114; color: #e8eaed; font-size: 12px; font-weight: 500; padding: 9px 14px; border-radius: 10px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.app-toast:not(.on) { min-width: 210px; min-height: 36px; }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #0f1114; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

.ide-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 32px; padding: 0 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); background: rgba(255,91,31,.04); }
.status-left, .status-right { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.busy { background: var(--amber); animation: blink 1s steps(1) infinite; }
.replay { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; padding: 1px 8px; font-family: var(--mono); font-size: 11.5px; cursor: pointer; }
.replay:hover { color: var(--amber); border-color: rgba(255,91,31,.5); }

.pillars { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillars li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--muted); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(232,234,237,.015); }
.pillars .mono { color: var(--amber); font-size: 12px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .lead { margin: 0; }

/* Diff du devis : bloc de calcul interactif */
.calc { position: relative; margin: 18px; padding: clamp(18px, 2.6vw, 28px); border-radius: 14px; background: var(--panel-2); border: 1px solid rgba(255,91,31,.28); box-shadow: 0 0 0 4px rgba(255,91,31,.04); }
.calc-hint { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--amber); }
.calc-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; animation: pulse-o 1.6s infinite; }
@keyframes pulse-o { 0% { box-shadow: 0 0 0 0 rgba(255,91,31,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,91,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,31,0); } }
.calc.touched .calc-pulse { animation: none; opacity: .5; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.calc-label { font-size: 17px; font-weight: 500; color: var(--text); }
.calc-label span { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 4px; }
.calc-field { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 16px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); cursor: text; transition: border-color .2s, box-shadow .2s; }
.calc-field:hover { border-color: rgba(255,91,31,.55); }
.calc-field:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,91,31,.18); }
.calc-field input { width: 7.2ch; background: transparent; border: 0; outline: none; text-align: right; color: var(--text); font-family: var(--mono); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; padding: 2px 0; }
.calc-unit { font-family: var(--mono); font-size: clamp(20px, 2.2vw, 24px); color: var(--muted); }
.calc-edit { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--amber); font-size: 16px; }
.calc-slider { position: relative; margin: 26px 0 8px; padding-bottom: 26px; }
.range { display: block; width: 100%; margin: 0; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--amber) var(--p, 18%), rgba(232,234,237,.12) var(--p, 18%)); cursor: grab; outline: none; }
.range:active { cursor: grabbing; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 7px solid var(--amber); box-shadow: 0 0 0 6px rgba(255,91,31,.18), 0 6px 18px rgba(0,0,0,.6); transition: transform .2s var(--ease), box-shadow .2s; }
.range:hover::-webkit-slider-thumb { transform: scale(1.1); box-shadow: 0 0 0 9px rgba(255,91,31,.22), 0 6px 18px rgba(0,0,0,.6); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 7px solid var(--amber); box-shadow: 0 0 0 6px rgba(255,91,31,.18); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--amber); }
.ticks { position: absolute; left: 15px; right: 15px; bottom: 0; height: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 5px; background: var(--line-2); }
.calc-result { display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; align-items: end; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.calc-result small { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 2px; }
#est-us { font-family: var(--mono); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: var(--text); white-space: nowrap; }
#est-save { font-family: var(--mono); font-size: clamp(16px, 1.6vw, 18px); font-weight: 500; color: #a7e8c0; white-space: nowrap; }
.calc-result > div:last-child { text-align: right; }

.diff-body { padding: 6px 0 4px; }
.hunk { margin: 0; padding: 16px 22px 8px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.dl { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 9px 22px; font-size: 16px; color: var(--muted); border-left: 2px solid transparent; }
.dl b { color: var(--text); font-weight: 600; }
.dl .sign { font-family: var(--mono); font-size: 15px; text-align: center; }
.dl.del { background: rgba(248,113,113,.025); border-left-color: rgba(248,113,113,.22); }
.dl.del .sign { color: rgba(248,113,113,.75); }
.dl.add { background: rgba(74,222,128,.025); border-left-color: rgba(74,222,128,.22); }
.dl.add .sign { color: rgba(74,222,128,.75); }
.diff-note { margin: 0; padding: 16px 22px 20px 62px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.reveal .dl, .reveal .hunk { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.in .dl, .reveal.in .hunk { opacity: 1; transform: none; }

/* Méthode : graphe de commits */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.method-intro { position: sticky; top: 120px; }
.git-cmd { margin: 34px 0 0; font-size: 14px; color: var(--muted); padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); display: inline-block; }
.graph { list-style: none; margin: 0; padding: 6px 0 0 56px; position: relative; --fill: 0%; }
.graph::before, .graph::after { content: ""; position: absolute; left: 13px; top: 14px; width: 2px; border-radius: 2px; }
.graph::before { bottom: 40px; background: var(--line-2); }
.graph::after { height: calc(var(--fill) - 14px); max-height: calc(100% - 54px); background: linear-gradient(var(--amber), var(--amber-deep)); box-shadow: 0 0 14px rgba(255,91,31,.5); }
.commit { position: relative; padding-bottom: 56px; }
.commit:last-child { padding-bottom: 0; }
.node { position: absolute; left: -56px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); display: grid; place-items: center; z-index: 1; transition: border-color .4s, box-shadow .4s; }
.node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background .4s; }
.commit.reached .node { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255,91,31,.12); }
.commit.reached .node::after { background: var(--amber); }
.commit.merge.reached .node { border-color: var(--green); box-shadow: 0 0 0 5px rgba(74,222,128,.14); }
.commit.merge.reached .node::after { background: var(--green); }
.commit-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hash { font-family: var(--mono); font-size: 12.5px; color: var(--amber); padding: 2px 8px; border-radius: 6px; background: rgba(255,91,31,.08); }
.tag { font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line-2); }
.tag.green { color: var(--green); border-color: rgba(74,222,128,.4); }
.commit h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.15; letter-spacing: -.025em; margin: 14px 0 10px; }
.commit p { margin: 0; color: var(--muted); max-width: 54ch; }
.mini-track { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini-track span { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px dashed var(--line-2); color: var(--dim); }
.mini-track .done { border-style: solid; border-color: rgba(74,222,128,.35); color: var(--green); background: rgba(74,222,128,.06); }

/* Services : explorateur */
.svc { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 400px; }
.svc-tree { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.tree-label { margin: 0 0 8px 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.svc-tree button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 12px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); cursor: pointer; position: relative; transition: background .2s, color .2s; white-space: nowrap; }
.svc-tree button:hover { background: rgba(232,234,237,.05); color: var(--text); }
.svc-tree button[aria-selected="true"] { background: rgba(255,91,31,.1); color: var(--text); }
.svc-tree button[aria-selected="true"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--amber); }
.svc-tree .ic { color: var(--amber); width: 14px; text-align: center; }
.svc-panels { padding: clamp(20px, 3vw, 36px); display: grid; }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: center; animation: panel .5s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.svc-visual { border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 30% 0%, rgba(255,91,31,.1), transparent 60%), var(--bg); padding: 10px; }
.svc-visual svg { width: 100%; height: auto; }
.svc-visual .flow { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.svc-text h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.svc-text p { color: var(--muted); margin: 14px 0 0; }
.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 12.5px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }

/* Engagements & à propos */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.config { margin: 0; padding: 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--muted); overflow-x: auto; white-space: pre; }
.term { padding: 20px 24px 24px; font-family: var(--mono); font-size: 14px; line-height: 1.85; }
.tl { margin: 0; white-space: pre-wrap; }
.tl.out { color: var(--muted); }
.reveal .tl { opacity: 0; }
.reveal.in .tl { animation: line .01s steps(1) forwards; }
.reveal.in .tl:nth-child(1) { animation-delay: .2s; } .reveal.in .tl:nth-child(2) { animation-delay: .5s; }
.reveal.in .tl:nth-child(3) { animation-delay: .9s; } .reveal.in .tl:nth-child(4) { animation-delay: 1.2s; }
.reveal.in .tl:nth-child(5) { animation-delay: 1.35s; } .reveal.in .tl:nth-child(6) { animation-delay: 1.8s; }
.reveal.in .tl:nth-child(7) { animation-delay: 2.1s; } .reveal.in .tl:nth-child(8) { animation-delay: 2.5s; }
.reveal.in .tl:nth-child(9) { animation-delay: 2.8s; } .reveal.in .tl:nth-child(10) { animation-delay: 2.95s; }
.reveal.in .tl:nth-child(11) { animation-delay: 3.3s; }
@keyframes line { to { opacity: 1; } }
.cursor { display: inline-block; width: 9px; height: 1.1em; vertical-align: -3px; background: var(--amber); animation: blink 1s steps(1) infinite; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-grid .section-intro { position: sticky; top: 120px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 19px; font-weight: 500; letter-spacing: -.01em; display: flex; gap: 16px; align-items: baseline; transition: color .2s; }
.faq summary:hover { color: var(--amber); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--dim); transition: transform .3s var(--ease), color .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--amber); }
.q { font-family: var(--mono); font-size: 14px; color: var(--amber); flex: none; }
.faq details p { margin: -6px 0 24px 30px; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact { padding: clamp(90px, 11vw, 150px) 0; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 1000px; height: 1000px; left: -380px; bottom: -560px; background: radial-gradient(closest-side, rgba(255,91,31,.16), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.h2.big { font-size: clamp(38px, 5.2vw, 72px); }
.direct { margin-top: 36px; display: grid; gap: 10px; }
.direct a { text-decoration: none; display: inline-flex; gap: 16px; align-items: baseline; font-size: 18px; width: fit-content; }
.direct a .mono { font-size: 12px; width: 34px; }
.direct a:hover { color: var(--amber); }

form.quote { padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 13px; color: var(--text); }
.field label span { color: var(--dim); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); border-radius: 10px; padding: 12px 14px; font-size: 16px; outline: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,91,31,.15); background: rgba(0,0,0,.35); }
::placeholder { color: rgba(232,234,237,.35); }
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 20px; text-align: center; background: rgba(0,0,0,.2); transition: border-color .2s, background .2s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--amber); background: rgba(255,91,31,.06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop strong { display: block; font-weight: 600; font-size: 15px; }
.drop small { color: var(--dim); font-size: 13px; }
.drop .file-name { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot p { margin: 0; font-size: 13px; color: var(--dim); max-width: 34ch; }
.form-foot a { color: var(--muted); }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-family: var(--mono); }
.form-status.ok { background: rgba(74,222,128,.12); color: #bbf7d0; border: 1px solid rgba(74,222,128,.3); }
.form-status.err { background: rgba(248,113,113,.12); color: #fecaca; border: 1px solid rgba(248,113,113,.3); }

/* Pied */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13.5px; color: var(--dim); background: var(--bg-2); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot .mono { font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.dot.on { box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }

/* Pages légales */
.legal { padding: 140px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }

/* Palette de commandes */
.palette { padding: 0; border: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 32px)); margin: 14vh auto auto; }
.palette::backdrop { background: rgba(4,5,6,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.palette[open] .palette-box { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; font-family: var(--mono); }
#palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
#palette-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--muted); }
#palette-list li[aria-selected="true"] { background: rgba(255,91,31,.12); color: var(--text); }
#palette-list kbd { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.palette-foot { margin: 0; display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.no-js .reveal, .no-js .reveal .dl, .no-js .reveal .hunk, .no-js .reveal .tl { opacity: 1; transform: none; }
.no-js .hero-side, .no-js .ide { opacity: 1; animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .reveal .dl, .reveal .hunk, .reveal .tl { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .ide-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .explorer { display: none; }
  .code { font-size: 12.5px; }
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .hero-side, .section-head, .method, .split, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .method-intro, .faq-grid .section-intro { position: static; }
  .ide-body { grid-template-columns: 1fr; }
  .code { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .preview { padding: 14px; }
  .app { min-height: 320px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-tree { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .svc-tree::-webkit-scrollbar { display: none; }
  .tree-label { display: none; }
  .svc-tree button { width: auto; }
  .svc-tree button[aria-selected="true"]::before { left: 10px; right: 10px; top: auto; bottom: -1px; width: auto; height: 2px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 112px 0 70px; }
  .nav { height: 64px; }
  .kbd-btn { display: none; }
  .nav .btn .label-long { display: none; }
  .nav .btn .label-short { display: inline; }
  .hide-sm { display: none; }
  .ide { margin-top: 44px; border-radius: 14px; }
  .code { font-size: 11px; line-height: 1.75; }
  .code .ln::before { width: 30px; padding-right: 10px; }
  .app-kpis b { font-size: 18px; }
  .app-nav { display: none; }
  .app-toast { right: 10px; bottom: 10px; }
  .pillars { grid-template-columns: 1fr; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .dl { grid-template-columns: 18px minmax(0, 1fr); padding: 9px 14px; gap: 10px; font-size: 15px; }
  .calc { margin: 12px; }
  .calc-row { flex-direction: column; align-items: stretch; }
  .calc-field input { width: 100%; text-align: left; }
  .calc-result { grid-template-columns: 1fr; }
  .calc-result > div:last-child { text-align: left; }
  .ticks span:nth-child(2), .ticks span:nth-child(4) { display: none; }
  .hunk { padding: 14px 14px 6px; }
  .diff-note { padding: 14px; }
  .svc-panel { grid-template-columns: 1fr; }
  .config { font-size: 12px; padding: 18px 16px; }
  .term { font-size: 12.5px; padding: 16px; }
  form.quote { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .faq details p { margin-left: 0; }
  .graph { padding-left: 44px; }
  .node { left: -44px; width: 24px; height: 24px; }
  .graph::before, .graph::after { left: 11px; }
}

/* =====================================================================
   Effets : écran d'arrivée, titres, survols, bandeau, grand mot
   ===================================================================== */

/* Écran d'arrivée */
.boot { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--bg); background-image: radial-gradient(rgba(232,234,237,.075) 1px, transparent 1.2px); background-size: 26px 26px; clip-path: inset(0 0 0 0); }
.intro .boot { display: grid; }
.intro body { overflow: hidden; }
.boot-inner { width: min(440px, calc(100vw - 40px)); font-family: var(--mono); }
.boot-logo { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: -.02em; animation: boot-in .6s var(--ease) both; }
.boot-logo svg { width: 40px; height: 40px; }
.boot-logo b { color: var(--amber); font-weight: 600; }
.boot-term { margin: 28px 0 18px; min-height: 7.6em; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.boot-term p { margin: 0; display: flex; justify-content: space-between; gap: 20px; animation: boot-line .28s var(--ease) both; }
.boot-term .ok { color: var(--green); }
.boot-term p:last-child .ok { color: var(--amber); }
.boot-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 14px rgba(255,91,31,.8); transition: width 1.5s cubic-bezier(.55, 0, .2, 1); }
.boot-skip { margin: 16px 0 0; font-size: 11.5px; color: var(--dim); animation: boot-in .6s .5s var(--ease) both; }
.boot.out { animation: boot-out .72s cubic-bezier(.76, 0, .24, 1) forwards; }
.boot.out .boot-inner { animation: boot-lift .72s cubic-bezier(.76, 0, .24, 1) forwards; }
@keyframes boot-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes boot-line { from { opacity: 0; transform: translateX(-8px); } }
@keyframes boot-out { to { clip-path: inset(0 0 100% 0); } }
@keyframes boot-lift { to { transform: translateY(-60px); opacity: 0; } }
.intro .hero .line > span, .intro .hero-side, .intro .ide { animation-play-state: paused !important; }

/* Rayon lumineux qui balaie le fond du hero */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,91,31,.07) 50%, transparent 60%);
  background-size: 250% 100%; animation: beam 9s ease-in-out infinite; }
@keyframes beam { 0% { background-position: 120% 0; } 55%, 100% { background-position: -120% 0; } }

/* Éditeur incliné */
.ide-wrap { transform-style: preserve-3d; will-change: transform; }
.ide { position: relative; }

/* Titres : mots qui montent */
.h2.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.h2.words .w > span { display: inline-block; transform: translateY(110%); transition: transform .85s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms + 80ms); }
.reveal.in .h2.words .w > span { transform: none; }

/* Lumière qui suit la souris */
.window, .pillars li { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  padding: 1px; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,91,31,.75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,91,31,.05), transparent 50%); }
.spot:hover::after, .spot:hover::before { opacity: 1; }
.pillars li { transition: transform .35s var(--ease), border-color .35s; }
.pillars li:hover { transform: translateY(-3px); }

/* Boutons aimantés */
.btn { transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, translate .25s var(--ease); }

/* Bandeau défilant */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 34px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-skew { transition: transform .4s var(--ease); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: clamp(38px, 5.4vw, 76px); letter-spacing: -.035em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(232,234,237,.3); transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee-track span.fill { color: rgba(232,234,237,.85); -webkit-text-stroke: 0; }
.marquee-track span:hover { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.marquee-track i { font-style: normal; color: var(--amber); font-size: clamp(18px, 2vw, 28px); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Graphe : point lumineux qui descend */
.graph-head { position: absolute; left: 7px; top: 0; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255,91,31,.2), 0 0 24px 4px rgba(255,91,31,.7); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 2; }
.graph-head.on { opacity: 1; }
.node::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.commit.reached .node::before { animation: ripple 1s var(--ease); }
.commit.merge.reached .node::before { border-color: var(--green); }
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.commit h3 { transition: color .4s; }
.commit.reached h3 { color: var(--text); }
.commit:not(.reached) h3, .commit:not(.reached) p { opacity: .55; }
.commit h3, .commit p { transition: opacity .5s, color .4s; }

/* Services : barre de progression de l'onglet actif */
.svc-tree button .prog { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; opacity: .7; pointer-events: none; }
.explorer-window.manual .svc-tree button .prog { display: none; }
.svc-panel .svc-visual { animation: svc-visual .7s var(--ease); }
.svc-panel .svc-text > * { animation: svc-text .6s var(--ease) both; }
.svc-panel .svc-text > :nth-child(2) { animation-delay: .06s; }
.svc-panel .svc-text > :nth-child(3) { animation-delay: .12s; }
@keyframes svc-visual { from { opacity: 0; transform: scale(.96) rotate(-1deg); filter: blur(6px); } }
@keyframes svc-text { from { opacity: 0; transform: translateY(12px); } }

/* Grand mot de fin */
.footer-word { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: clamp(64px, 17.5vw, 290px); line-height: .78; letter-spacing: -.055em; text-align: center; padding: 60px 0 0; margin-bottom: -.06em; overflow: hidden; user-select: none; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(232,234,237,.1);
  background-image: linear-gradient(90deg, rgba(232,234,237,.07) calc(var(--fw, 0%) - 14%), var(--amber) var(--fw, 0%), transparent calc(var(--fw, 0%) + .4%));
  -webkit-background-clip: text; background-clip: text; }

@media (prefers-reduced-motion: reduce) {
  .boot { display: none !important; }
  .h2.words .w > span { transform: none; }
  .marquee-track { animation: none; }
  .commit:not(.reached) h3, .commit:not(.reached) p { opacity: 1; }
  .footer-word { background-image: none; -webkit-text-stroke: 1px rgba(232,234,237,.14); }
}
@media (max-width: 680px) {
  .marquee { padding: 24px 0; }
  .boot-term { font-size: 12.5px; }
}