/* ==========================================================================
   Keystone Logik — landing page
   Thème repris de la page d'accueil de Payload : fond quasi noir, grille de
   colonnes en filigrane, boutons à angle droit, titres très serrés.
   Polices : Clash Grotesk (titres et texte) + Geist Mono (code), toutes deux auto-hébergées.
   ========================================================================== */

/* Clash Grotesk (Indian Type Foundry, licence ITF Free Font License : usage commercial
   et auto-hébergement autorisés, fichiers à ne pas modifier). Une seule fonte variable 200–700. */
@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/clash-grotesk/ClashGrotesk-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
/* Geist Mono (Vercel, SIL Open Font License 1.1), sous-ensemble latin, fonte variable. */
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono/GeistMono-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0e;
  --surface: #111116;
  --surface-2: #16161c;
  --surface-3: #1d1d24;
  --line: #33333a;
  --line-soft: #25252b;
  --grid: #18181c;
  --text: #f4f4f2;
  --text-2: #d0d0d3;
  --text-3: #8e8e96;
  --text-4: #5f5f68;
  --gold: #c9ae6c;
  --gold-soft: #bdae74;
  --gold-deep: #93804a;
  --steel: #8d96a1;
  --red: #e5484d;
  --purple: #8b5cf6;
  --blue: #3b82f6;

  --font: "Clash Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --cols: 4;
  --header-h: 64px;
  --section-y: clamp(6rem, 4rem + 8vw, 12.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --cols: 6; --header-h: 72px; }
}
@media (min-width: 1200px) {
  /* 12 colonnes pleine largeur : le contenu occupe les 10 du centre */
  :root { --gutter: calc(100vw / 12); --cols: 10; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
pre { margin: 0; }
::selection { background: rgba(201, 174, 108, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: .75rem 1rem;
  background: var(--text); color: var(--bg); font-weight: 500;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { position: relative; z-index: 2; padding-inline: var(--gutter); }

.display {
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: .94;
  text-wrap: balance;
}

/* ---------- Icônes et boutons ---------- */
.i-arrow {
  display: inline-block; flex: none; width: .72em; height: .72em;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square;
  transition: transform .35s var(--ease);
}
a:hover > .i-arrow, button:hover > .i-arrow { transform: translate(2px, -2px); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 48px; padding: 0 1rem;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; white-space: nowrap;
  transition: background-color .25s, border-color .25s;
}
.btn:hover { background: var(--surface-2); border-color: #4b4b54; }

/* ---------- Grille en filigrane ---------- */
main { position: relative; isolation: isolate; }
.grid-lines {
  position: absolute; inset: 0 var(--gutter); z-index: 1; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
  border-right: 1px solid var(--grid);
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 14, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
}
@media (min-width: 1200px) { .site-header__inner { padding-inline: calc(var(--gutter) / 2); } }
.brand { display: block; flex: none; }
.brand img { height: 24px; width: auto; }
@media (min-width: 768px) { .brand img { height: 26px; } }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2.15rem; }
.nav__list a { font-size: .9375rem; color: #e2e2e5; transition: color .2s; }
.nav__list a:hover { color: #fff; }
.btn--header { height: 43px; font-size: .9375rem; padding: 0 1rem; }

/* Sélecteur de langue */
.lang { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 500; letter-spacing: .03em; color: var(--text-4); }
.lang a { color: var(--text-3); transition: color .2s; }
.lang a:hover, .lang a[aria-current] { color: var(--text); }
.site-header .lang { margin-right: -.5rem; }
.lang--menu { align-self: flex-start; font-size: 1rem; gap: .6rem; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 60ms); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), background-color .2s; }
.nav-toggle__bars { position: relative; transform: translateY(-3px); }
.nav-toggle__bars::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 1023px) {
  .nav, .btn--header, .site-header .lang { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 2rem;
  padding: 1.5rem var(--gutter) 2rem; background: var(--bg); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav:not(.lang) { display: flex; flex-direction: column; }
.mobile-menu nav:not(.lang) a {
  padding: .9rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 600; letter-spacing: -.014em; line-height: 1.1;
}
.mobile-menu nav:not(.lang) a, .mobile-menu__cta { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 60ms); }
.mobile-menu__cta { align-self: flex-start; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   Animations génériques (apparition au défilement, titres mot à mot)
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(108%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--wi) * 45ms + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }
.line { display: block; }

.caret { display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: blink 1.05s steps(1) infinite; }

/* ==========================================================================
   1. Héros
   ========================================================================== */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(100svh, 1080px);
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  overflow: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #07080b; }
.streaks { position: absolute; left: -5%; top: -5%; width: 110%; height: 110%; translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); transition: translate 1.2s var(--ease); }
.streak { transform-box: view-box; }
.streak--a { animation: drift-a 22s ease-in-out infinite alternate; }
.streak--b { animation: drift-b 17s ease-in-out infinite alternate; }
.streak--c { animation: drift-c 22s ease-in-out infinite alternate; }
.streak-glow { transform-box: fill-box; transform-origin: center; animation: glow 9s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-40px, 26px); } }
@keyframes drift-b { from { transform: translate(-60px, 0); } to { transform: translate(90px, -16px); } }
@keyframes drift-c { to { transform: translate(-40px, 26px); } }
@keyframes glow { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
.hero:not(.is-visible) .streak, .hero:not(.is-visible) .streak-glow { animation-play-state: paused; }
.hero__bg::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(to bottom, rgba(11, 11, 14, 0), var(--bg)); }

.hero__grid { display: grid; gap: 3.5rem; width: 100%; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 5.4fr); align-items: center; gap: 0; }
}
.hero__title { font-size: clamp(2.9rem, 1rem + 4.4vw, 6.5rem); max-width: 7.4em; margin-bottom: 2.25rem; }
.hero__lead {
  max-width: 22.5em; margin-bottom: 3rem;
  font-size: clamp(1.0625rem, .9rem + .45vw, 1.375rem); line-height: 1.33; letter-spacing: 0; color: var(--text-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .625rem; }

.cmd {
  display: inline-flex; align-items: center; gap: .7rem; height: 48px; padding: 0 .55rem 0 .9rem;
  border: 1px solid var(--line); background: var(--bg);
  font-family: var(--mono); font-size: .9375rem; color: var(--text); letter-spacing: 0;
  transition: border-color .25s, background-color .25s;
}
.cmd:hover { border-color: #4b4b54; background: var(--surface); }
.cmd__prompt { color: var(--text-3); }
.cmd__line { display: inline-flex; align-items: center; min-width: 28ch; white-space: pre; }
@media (min-width: 1024px) and (max-width: 1599px) { .cmd { font-size: .875rem; } }
.cmd__arg { color: var(--gold); }
.cmd__chip { padding: .28rem .5rem; background: #26262d; font-family: var(--font); font-size: .75rem; font-weight: 500; color: var(--text); transition: background-color .25s; }
.cmd:hover .cmd__chip { background: #34343c; }
@media (max-width: 479px) {
  .cmd { width: 100%; font-size: .8125rem; }
  .cmd__line { min-width: 0; flex: 1; overflow: hidden; }
}

/* Composition de fenêtres (tout en em : l'ensemble s'échelonne avec son conteneur) */
.hero__visual { position: relative; container-type: inline-size; aspect-ratio: 875 / 608; }
@media (min-width: 1024px) { .hero__visual { margin-left: 3%; } }
@media (min-width: 1600px) { .hero__visual { margin-left: -4%; margin-right: -1%; } }
.hv, .collage, .bv, .av { letter-spacing: .012em; }
.hv {
  position: absolute; inset: 0; font-size: calc(100cqi / 87.5); line-height: 1.35;
  transform: perspective(1400px) rotateY(calc(var(--mx, 0) * -4deg)) rotateX(calc(var(--my, 0) * 3deg));
  transition: transform 1.2s var(--ease);
}

.win {
  position: absolute; overflow: hidden;
  background: #0d0d11; border: 1px solid #2d2d34;
  box-shadow: 0 2.4em 6em -1em rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4);
  color: var(--text);
}
.win--studio { left: 15.8em; top: 0; width: 71.7em; height: 43em; }
.win--code { left: 0; top: 35em; width: 42em; height: 25.8em; background: #0a0a0d; }
.js .win--studio { opacity: 0; transform: translate3d(4em, 1.5em, 0); transition: opacity 1.2s var(--ease) .45s, transform 1.4s var(--ease) .45s; }
.js .win--code { opacity: 0; transform: translate3d(-2em, 4em, 0); transition: opacity 1.2s var(--ease) .75s, transform 1.4s var(--ease) .75s; }
.is-ready .win--studio, .is-ready .win--code { opacity: 1; transform: none; }

/* studio */
.st-bar { display: flex; align-items: center; gap: .9em; height: 3.4em; padding: 0 1.4em; border-bottom: 1px solid #202027; font-size: .95em; color: #d8d8dc; }
.st-burger { width: 1.4em; height: 1.4em; border: 1px solid #3a3a42; border-radius: .2em; background: linear-gradient(#8d8d95, #8d8d95) center 35% / 55% 1px no-repeat, linear-gradient(#8d8d95, #8d8d95) center 65% / 55% 1px no-repeat; }
.st-mark { width: 1.9em; height: auto; filter: invert(1) opacity(.85); }
.st-sep { color: #56565e; }
.st-crumb--muted { color: #a4a4ab; }
.st-avatar { margin-left: auto; width: 1.7em; height: 1.7em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6e9ec, #6b7480 60%, #2c3138); }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 2em; padding: 1.5em 1.4em 1.1em; }
.st-title { font-size: 1.75em; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tabs { display: flex; gap: 1.4em; font-size: .95em; color: #c8c8cd; white-space: nowrap; }
.st-tabs .is-on { padding: .25em .55em; margin: -.25em 0; background: #26262d; color: #fff; }
.st-tabs b { font-weight: 500; padding: 0 .35em; margin-left: .2em; background: #2d2d35; }
.st-meta { display: flex; align-items: center; gap: 1.6em; padding: .9em 1.4em; border-block: 1px solid #202027; font-size: .88em; color: #7d7d86; white-space: nowrap; }
.st-meta b { color: #e3e3e6; font-weight: 500; }
.st-meta u { color: #e3e3e6; text-underline-offset: .15em; }
.st-btns { margin-left: auto; display: flex; gap: .5em; }
.sbtn { display: inline-block; padding: .45em .8em; border: 1px solid #34343c; background: #16161b; color: #dcdce0; font-size: .95em; white-space: nowrap; }
.sbtn--on { background: #f2f2f0; border-color: #f2f2f0; color: #0b0b0e; font-weight: 500; }
.st-body { display: grid; grid-template-columns: 26.5em 1fr; height: calc(100% - 13.2em); }
.st-form { padding: 1.2em 1.4em; border-right: 1px solid #202027; overflow: hidden; }
.st-subtabs { display: flex; gap: 1.3em; margin-bottom: 1.4em; padding-bottom: .7em; border-bottom: 1px solid #202027; font-size: .95em; color: #85858d; }
.st-subtabs .is-on { color: #fff; box-shadow: 0 calc(.7em + 1px) 0 -.5px #fff; }
.f-label { margin-bottom: .45em; font-size: .88em; color: #b8b8be; }
.f-label i { color: var(--red); font-style: normal; }
.f-input { display: flex; align-items: center; height: 2.7em; padding: 0 .8em; margin-bottom: 1.1em; background: #16161c; border: 1px solid #2b2b33; font-size: .92em; white-space: nowrap; overflow: hidden; }
.f-upload { display: flex; align-items: center; gap: .9em; padding: .6em; margin-bottom: 1.1em; background: #16161c; border: 1px solid #2b2b33; font-size: .88em; }
.f-thumb { width: 5.6em; height: 3.2em; flex: none; background: url("../brand/keystone-logik-mark-dark.svg") 62% 40% / 260% no-repeat, radial-gradient(circle at 70% 30%, #3a4454, #0c0f15 70%); }
.f-file { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.f-file small { font-size: .85em; color: #7d7d86; }
.f-x { margin-left: auto; color: #8a8a92; }
.f-toolbar { display: flex; gap: .95em; align-items: center; padding: .55em .7em; border: 1px solid #2b2b33; border-bottom: 0; font-size: .86em; color: #9d9da4; white-space: nowrap; }
.f-rich { padding: 1em .9em; border: 1px solid #2b2b33; font-size: .9em; }
.f-rich b { display: block; margin-bottom: .6em; font-weight: 600; }
.f-rich p { font-family: var(--serif); color: #b4b4ba; line-height: 1.5; }

.st-preview { position: relative; padding: .7em 1.2em 1.2em; background: #0a0a0d; overflow: hidden; }
.pv-tools { display: flex; justify-content: flex-end; align-items: center; gap: .6em; margin-bottom: .7em; font-size: .8em; color: #85858d; }
.pv-dim { padding: .1em .45em; background: #1d1d23; color: #d0d0d4; }
.pv-page { height: 100%; padding: 1.6em 2.2em; background: linear-gradient(180deg, #0f141c, #0b0e13 60%); border: 1px solid #1f2530; }
.pv-nav { display: flex; align-items: center; gap: 1.2em; margin-bottom: 2.4em; font-size: .7em; letter-spacing: .08em; text-transform: uppercase; color: #9aa2ad; }
.pv-nav img { width: 2.6em; margin-right: auto; filter: invert(1) opacity(.8); }
.pv-date { margin-bottom: .8em; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: #8a93a0; }
.pv-h { max-width: 15em; margin-bottom: 1.2em; font-size: 2em; line-height: 1.12; letter-spacing: 0; font-weight: 400; color: #e8ebf0; min-height: 2.24em; }
.pv-h b { font-weight: 600; }
.pv-img {
  height: 9.6em; margin-bottom: 1.4em;
  background:
    linear-gradient(115deg, transparent 38%, rgba(201, 174, 108, .55) 47%, rgba(255, 230, 170, .8) 49%, rgba(201, 174, 108, .35) 52%, transparent 60%),
    linear-gradient(125deg, #1a2231 10%, #3b475a 40%, #0e131b 70%);
}
.pv-label { margin-bottom: .6em; font-size: .7em; letter-spacing: .1em; text-transform: uppercase; color: #8a93a0; }
.pv-p { font-family: var(--serif); font-size: .82em; line-height: 1.5; color: #aab1bc; }

/* code */
.cd-chrome { display: flex; align-items: center; gap: .5em; height: 2.4em; padding: 0 .9em; border-bottom: 1px solid #1f1f26; background: #111116; }
.cd-chrome i { width: .75em; height: .75em; border-radius: 50%; background: #3a3a42; }
.cd-tab { margin-left: 1.2em; padding: .2em .8em; font-size: .85em; color: #d4d4d8; background: #0a0a0d; border: 1px solid #25252c; border-bottom: 0; }
.cd-body { display: grid; grid-template-columns: 11.5em 1fr; height: calc(100% - 2.4em); }
.cd-tree { padding: .9em .8em; border-right: 1px solid #1f1f26; font-size: .86em; line-height: 1.75; color: #b9b9bf; white-space: nowrap; overflow: hidden; }
.cd-root { margin-bottom: .2em; color: #e8e8eb; font-weight: 500; }
.cd-tree .t2 { padding-left: .9em; }
.cd-tree .t3 { padding-left: 1.9em; }
.cd-tree .dim { color: #6d6d75; }
.cd-tree .is-on { margin: 0 -.8em; padding-left: 2.7em; background: #1c2233; color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.cd-code { padding: .9em 1em; font-family: var(--mono); font-size: .95em; line-height: 1.68; color: #adbac7; white-space: pre; overflow: hidden; }

/* coloration syntaxique (esprit GitHub Dark Dimmed) */
.ln { display: inline-block; width: 2.1em; margin-right: 1.1em; text-align: right; color: #4c535d; user-select: none; }
.k { color: #f47067; }
.s { color: #96d0ff; }
.f { color: #dcbdfb; }
.c2 { color: #6cb6ff; }
.t { color: #f69d50; }

.js [data-code-lines] .cl { opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(var(--li) * 60ms + 1.3s); }
.is-ready [data-code-lines] .cl { opacity: 1; }

/* ==========================================================================
   2. Approche — collage d'interfaces
   ========================================================================== */
.duo { position: relative; padding: var(--section-y) 0 calc(var(--section-y) * .45); overflow: clip; }
.duo__title { max-width: 8.5em; margin: 0 auto; font-size: clamp(2.2rem, 1rem + 3.75vw, 5.5rem); text-align: center; }
@media (min-width: 768px) { .duo__title { max-width: none; } }

.collage {
  position: relative; z-index: 2; container-type: inline-size;
  width: min(100% - 2 * var(--gutter), 1460px); margin: clamp(4rem, 8vw, 7.5rem) auto 0;
}
.collage__col { display: flex; flex-direction: column; gap: 2.6em; will-change: transform; }

@media (min-width: 1100px) {
  .collage {
    display: grid; grid-template-columns: 37.5fr 56fr 41.5fr; column-gap: 5em; align-items: start;
    font-size: calc(100cqi / 145.3);
  }
  .collage__col--l { margin-top: 8.5em; }
  .collage__col--r { margin-top: 9em; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .collage { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.6em; font-size: 8.5px; }
  .collage__col--r { display: none; }
}
@media (max-width: 699px) {
  .collage { display: flex; flex-direction: column; gap: 2.6em; font-size: 9px; }
  .collage__col--c { order: 1; }
  .collage__col--l { order: 2; }
  .collage__col--r, .collage .lp, .collage .files { display: none; }
  .u-hide { display: none; }
}

.panel { position: relative; background: var(--surface); border: 1px solid #2a2a31; }

/* liste « Modules » et « Retours » */
.lp, .fb { font-size: 1.35em; }
.lp { background: transparent; border: 0; }
.lp__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .8em; }
.lp__title { font-size: 1.2em; font-weight: 500; }
.lp__tools { display: flex; gap: .8em; font-size: .75em; color: #cfcfd4; }
.lp__row, .fb__item { margin-bottom: .45em; background: var(--surface); border: 1px solid #2a2a31; font-size: .78em; }
.lp__row:not(.is-open), .lp__line, .fb__line { display: flex; align-items: center; gap: .75em; height: 2.9em; padding: 0 .9em; }
.lp__row b, .fb__line b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.chip { flex: none; white-space: nowrap; }
.lp__n { color: #cfcfd4; font-variant-numeric: tabular-nums; }
.chip { padding: .15em .45em; background: #202027; color: #dcdce0; }
.grip { width: .5em; height: .9em; background: radial-gradient(circle, #6b6b73 1px, transparent 1.3px) 0 0 / .25em .3em; }
.lp__end { margin-left: auto; display: flex; align-items: center; gap: .9em; color: #b0b0b6; }
.chev { display: inline-block; width: .45em; height: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-25%) rotate(45deg); }
.chev--up { transform: translateY(20%) rotate(-135deg); }
.lp__row.is-open { border-color: #34343c; }
.lp__line { border-bottom: 1px solid #25252c; }
.lp__fields { padding: 1.1em 1.1em 1.2em; }
.f2-label { margin-bottom: .45em; font-size: .9em; color: #c8c8cd; }
.f2-input { display: flex; align-items: center; height: 2.6em; padding: 0 .75em; margin-bottom: 1em; background: #16161c; border: 1px solid #2b2b33; }
.f2-select { display: flex; align-items: center; justify-content: space-between; height: 2.6em; padding: 0 .9em; margin-top: .7em; background: #16161c; border: 1px solid #2b2b33; }
.lp__add { display: flex; align-items: center; gap: .6em; margin-top: .9em; font-size: .78em; color: #a9a9af; }
.lp__add i { display: grid; place-items: center; width: 1.4em; height: 1.4em; border: 1px solid #55555d; border-radius: 50%; font-style: normal; }

/* éditeur de texte riche */
.rte { padding-top: 1em; }
.rte__bar { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 1.15em; padding: .7em 1em; margin-bottom: 1.7em; background: #0f0f13; border: 1px solid #23232a; font-size: 1.15em; color: #a9a9af; }
.rte__bar .is-on { padding: .1em .35em; background: #2a2a32; color: #fff; }
.rte__text { position: relative; margin-bottom: 1.2em; font-size: 2.55em; line-height: 1.16; letter-spacing: -.008em; color: #f1f1f0; }
.rte__text mark { padding: 0 .08em; background: #3c2f63; color: #fff; }
.rte__serif { font-family: var(--serif); font-size: 1.35em; line-height: 1.6; color: #a4a4ab; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }

/* curseurs collaboratifs */
.cursor { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
.cursor i { position: absolute; left: .08em; bottom: -.18em; width: 2px; height: 1.12em; background: var(--c); animation: blink 1.05s steps(1) infinite; }
.cursor em {
  position: absolute; left: .08em; bottom: .95em; padding: .22em .5em;
  background: var(--c); color: #fff; font-family: var(--font); font-size: max(10px, .4em); font-style: normal; font-weight: 500; letter-spacing: 0; line-height: 1.25; white-space: nowrap;
  animation: tagFloat 4s ease-in-out infinite;
}
.cursor--purple { --c: var(--purple); }
.cursor--red { --c: var(--red); }
.cursor--blue { --c: var(--blue); }
.cursor--gold { --c: var(--gold); }
.cursor--gold em { color: #1a1609; }
.panel.code .cursor em, .f3-input .cursor em, .fb__note .cursor em { font-size: 10.5px; }
@media (min-width: 1100px) { .panel.code .cursor em, .f3-input .cursor em, .fb__note .cursor em { font-size: max(10px, 1.1em); } }
@keyframes tagFloat { 50% { transform: translateY(-3px); } }

/* table « Utilisateurs » */
.users { padding: 2.6em 2.8em 2.8em; border-radius: .9em; background: #121217; }
.users__head { display: flex; align-items: center; gap: 1em; margin-bottom: 1.6em; }
.users__title { font-size: 2em; font-weight: 500; letter-spacing: 0; }
.mini-btn { padding: .3em .6em; background: #2a2a31; font-size: 1em; color: #e3e3e6; }
.users__search { display: flex; align-items: center; gap: .9em; height: 3.2em; padding: 0 1em; margin-bottom: 1.8em; background: #1a1a20; font-size: 1.1em; color: #7d7d86; }
.users__tools { margin-left: auto; display: flex; gap: .6em; }
.users__tools > span { display: inline-flex; align-items: center; gap: .5em; padding: .25em .6em; background: #26262d; color: #d0d0d4; font-size: .9em; }
.i-search { width: 1em; height: 1em; flex: none; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.i-search::after { content: ""; position: absolute; right: -.35em; bottom: -.3em; width: .4em; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.users__table { font-size: 1.1em; }
.u-row { position: relative; display: grid; grid-template-columns: 2em 1.3fr 1fr 1fr .8fr; align-items: center; height: 2.55em; padding: 0 .9em; color: #d6d6da; }
.u-row:nth-child(odd):not(.u-row--head) { background: #18181e; }
.u-row--head { color: #7d7d86; font-size: .92em; }
.u-row u { text-underline-offset: .2em; text-decoration-color: #6b6b73; }
.u-check { width: 1em; height: 1em; border: 1px solid #45454d; border-radius: .15em; }
.u-lock { width: .8em; height: .7em; margin-top: .3em; border: 1.5px solid #cfd6e6; border-radius: .1em; position: relative; }
.u-lock::before { content: ""; position: absolute; left: 50%; top: -.55em; width: .5em; height: .55em; border: 1.5px solid #cfd6e6; border-bottom: 0; border-radius: .3em .3em 0 0; transform: translateX(-50%); }
.u-row.is-locked { background: #1d2a44 !important; box-shadow: inset 0 0 0 1px #2d4270; }
.u-tip {
  position: absolute; left: -3.5em; top: -2.6em; padding: .35em .7em;
  background: #f1f1ef; color: #111; font-size: .9em; font-weight: 500; white-space: nowrap;
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .5);
  animation: tagFloat 5s ease-in-out infinite;
}
.u-tip::after { content: ""; position: absolute; left: 4.2em; bottom: -.35em; width: .7em; height: .7em; background: inherit; transform: rotate(45deg); }

/* bloc de code du collage */
.panel.code { padding: 2.4em 2.2em; border-radius: .9em; background: #0f0f13; }
.panel.code pre { font-family: var(--mono); font-size: 1.2em; line-height: 1.75; color: #adbac7; white-space: pre; overflow: hidden; }

/* dossiers et fichiers */
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1em; font-size: 1.1em; }
.folder { display: flex; align-items: center; gap: .9em; padding: 1.1em; background: var(--surface); border: 1px solid #2a2a31; }
.folder b { display: block; font-weight: 500; font-size: .95em; }
.folder small { color: #7d7d86; font-size: .85em; }
.folder .dots { margin-left: auto; color: #8a8a92; }
.folder.is-on { background: #211d14; border-color: #6d5d33; }
.i-folder { width: 1.9em; height: 1.45em; flex: none; position: relative; background: #6a6a72; border-radius: .12em; }
.i-folder::before { content: ""; position: absolute; left: 0; top: -.3em; width: .8em; height: .4em; background: inherit; border-radius: .1em .1em 0 0; }
.folder.is-on .i-folder { background: var(--gold); }
.file { padding: .7em; background: var(--surface); border: 1px solid #2a2a31; }
.file__img { display: block; aspect-ratio: 1 / .82; margin-bottom: .8em; background-color: #07080b; background-repeat: no-repeat; }
.file__img--1 { background-image: url("../brand/keystone-logik-mark-dark.svg"), radial-gradient(circle at 30% 20%, #1c2433, #07080b 70%); background-size: 330%, cover; background-position: 8% 18%, center; }
.file__img--2 { background-image: url("../brand/keystone-logik-mark-circuit-dark.svg"), radial-gradient(circle at 70% 80%, #2a2415, #07080b 70%); background-size: 260%, cover; background-position: 88% 52%, center; }
.file__img--3 { background-image: url("../brand/keystone-logik-mark-dark.svg"), radial-gradient(circle at 60% 40%, #1a2230, #07080b 70%); background-size: 420%, cover; background-position: 52% 50%, center; }
.file__name { display: flex; justify-content: space-between; font-size: .9em; color: #d0d0d4; }
.file__name i { font-style: normal; color: #8a8a92; }

/* aperçu en direct (colonne droite) */
.live { padding: 1.3em 0 0 1.4em; overflow: hidden; font-size: 1.05em; border-right: 0; }
.live__crumb { display: flex; align-items: center; gap: .6em; margin-bottom: 1.2em; font-size: .75em; color: #9d9da4; white-space: nowrap; }
.live__crumb i { width: 1.1em; height: 1.1em; border: 1px solid #3a3a42; }
.live__title { margin-bottom: 1em; font-size: 1.55em; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.live__meta { margin-bottom: 1em; padding-bottom: .8em; border-bottom: 1px solid #25252c; font-size: .75em; color: #7d7d86; white-space: nowrap; }
.live__meta b, .live__meta u { color: #dcdce0; font-weight: 500; }
.live__body { display: grid; grid-template-columns: 20em 1fr; }
.live__form { padding-right: 1.2em; border-right: 1px solid #25252c; }
.live__tabs { display: flex; gap: 1.1em; margin-bottom: 1.2em; font-size: .78em; color: #85858d; }
.live__tabs .is-on { color: #fff; }
.f3-label { margin-bottom: .35em; font-size: .72em; color: #b3b3b9; }
.f3-input { position: relative; display: flex; align-items: center; height: 2.3em; padding: 0 .6em; margin-bottom: .9em; background: #16161c; border: 1px solid #2b2b33; font-size: .78em; white-space: nowrap; }
.f3-input--ai { border-color: #6d5d33; }
.f3-upload { display: flex; gap: .7em; align-items: center; padding: .5em; margin-bottom: .9em; background: #16161c; border: 1px solid #2b2b33; font-size: .72em; }
.f3-upload small { display: block; color: #7d7d86; }
.f3-rich { padding: .8em; border: 1px solid #2b2b33; font-size: .72em; color: #a9a9af; font-family: var(--serif); line-height: 1.5; }
.f3-rich b { display: block; margin-bottom: .4em; font-family: var(--font); color: #fff; font-weight: 600; }
.live__preview { padding: 1.2em 1.4em; background: #0a0d12; min-height: 100%; }
.live__preview img { width: 2.2em; margin-bottom: 1.8em; filter: invert(1) opacity(.8); }
.lpv-date { margin-bottom: .5em; font-size: .62em; letter-spacing: .1em; text-transform: uppercase; color: #8a93a0; }
.lpv-h { margin-bottom: .9em; font-size: 1.35em; line-height: 1.15; letter-spacing: 0; color: #e8ebf0; }
.lpv-h b { font-weight: 600; }
.lpv-img { height: 7em; margin-bottom: 1em; background: linear-gradient(120deg, transparent 40%, rgba(201, 174, 108, .5) 50%, transparent 60%), linear-gradient(135deg, #1a2231, #0c1017 60%, #262e3a); }
.lpv-label { margin-bottom: .4em; font-size: .6em; letter-spacing: .1em; text-transform: uppercase; color: #8a93a0; }
.live__preview p { font-family: var(--serif); font-size: .72em; line-height: 1.5; color: #aab1bc; }

/* retours */
.fb__item.is-open { border-color: #34343c; }
.fb__item.is-open .fb__line { border-bottom: 1px solid #25252c; }
.fb__body { padding: 1.1em; }
.fb__note { min-height: 4.6em; padding: .7em .8em; margin-bottom: 1em; background: #16161c; border: 1px solid #2b2b33; line-height: 1.45; }
.fb__tags { display: flex; align-items: center; gap: .5em; padding: .45em; background: #16161c; border: 1px solid #2b2b33; }
.tag { display: inline-flex; gap: .5em; padding: .2em .5em; background: #26262d; border: 1px solid #3a3a42; }
.tag i { font-style: normal; color: #9d9da4; }
.fb__tagtools { margin-left: auto; display: flex; gap: .7em; align-items: center; color: #9d9da4; }
.fb__plus { padding-left: .7em; border-left: 1px solid #34343c; color: #9d9da4; }

/* ==========================================================================
   3. Solutions
   ========================================================================== */
.build { position: relative; padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.build__grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) {
  .build__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 4%; }
}
.build__intro { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); font-size: clamp(1.0625rem, .95rem + .35vw, 1.3125rem); font-weight: 400; line-height: 1.35; letter-spacing: 0; color: var(--text-2); max-width: 26em; }
.build__items { display: flex; flex-direction: column; gap: clamp(.4rem, 1vw, 1rem); }
.build__item { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; }
.build__trigger {
  display: block; flex: 0 1 auto; min-width: 0; font-size: clamp(2rem, .45rem + 2.5vw, 3.75rem); font-weight: 500; line-height: 1.04; letter-spacing: -.016em;
  color: #8a8a92; transition: color .45s var(--ease);
}
.build__trigger .nw { white-space: nowrap; }
.build__trigger .i-arrow { width: .36em; height: .36em; margin-left: .12em; stroke-width: 1.3; vertical-align: baseline; }
.build__item.is-active .build__trigger, .build__trigger:hover { color: var(--text); }
.build__more { flex: none; white-space: nowrap; font-size: .875rem; color: var(--text-2); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: #6b6b73; transition: color .2s, text-decoration-color .2s; }
.build__more:hover { color: #fff; text-decoration-color: var(--gold); }
.build__desc { flex-basis: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.build__desc > p { overflow: hidden; max-width: 30em; font-size: clamp(.975rem, .9rem + .2vw, 1.0625rem); line-height: 1.5; color: var(--text-3); opacity: 0; transition: opacity .5s var(--ease), padding .6s var(--ease); }
.build__item.is-active .build__desc { grid-template-rows: 1fr; }
.build__item.is-active .build__desc > p { opacity: 1; padding: .9rem 0 .6rem; }

.build__visual { position: relative; container-type: inline-size; aspect-ratio: 585 / 380; width: 100%; max-width: 640px; justify-self: center; }
.bv { position: absolute; inset: 0; font-size: calc(100cqi / 58.5); line-height: 1.3; }
.bv__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(1.2em) scale(.985); transition: opacity .55s var(--ease), transform .8s var(--ease), visibility 0s .55s; }
.bv__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bw { inset: 0; width: 100%; height: 100%; background: #0e0e12; }
.bw-bar { display: flex; align-items: center; gap: .9em; height: 3.2em; padding: 0 1.3em; border-bottom: 1px solid #202027; font-size: .95em; color: #cfcfd4; }
.bw-crumb { color: #b5b5bb; }
.bw-status { margin-left: auto; padding: .2em .6em; border: 1px solid #6d5d33; color: var(--gold); font-size: .85em; }
.bw-bar .dot { width: .75em; height: .75em; border-radius: 50%; background: #3a3a42; }
.bw-url { margin: 0 auto; padding: .25em 1.4em; background: #17171d; color: #9d9da4; font-size: .85em; }
.bw-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3em 1.4em 1em; }
.bw-head b { font-size: 1.5em; font-weight: 500; letter-spacing: 0; }

.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; padding: 0 1.4em; }
.kb__h { display: flex; justify-content: space-between; margin-bottom: .7em; font-size: .9em; color: #a9a9af; }
.kb__h i { font-style: normal; color: #6d6d75; }
.kb__card { position: relative; display: flex; flex-direction: column; gap: .2em; padding: .8em .9em; margin-bottom: .7em; background: #16161c; border: 1px solid #2a2a31; font-size: .92em; }
.kb__card b { font-weight: 500; }
.kb__card span { color: #85858d; font-size: .9em; }
.kb__card em { margin-top: .4em; font-style: normal; font-size: .82em; color: var(--gold); }
.kb__card.is-done b { color: #9d9da4; text-decoration: line-through; text-decoration-color: #55555d; }
.kb__card--ghost { height: 3.2em; background: transparent; border-style: dashed; }
.is-active .kb__card--move { animation: kbMove 5.5s var(--ease) infinite; }
@keyframes kbMove { 0%, 18% { transform: none; box-shadow: none; } 30%, 70% { transform: translate(.6em, -.5em) rotate(1.2deg); box-shadow: 0 1.2em 2.4em rgba(0, 0, 0, .6); border-color: #6d5d33; } 85%, 100% { transform: none; } }

.bw--web { right: 18%; width: auto; }
.web { padding: 1.4em 1.6em; }
.web__nav { display: flex; align-items: center; gap: 1.4em; margin-bottom: 2em; font-size: .85em; color: #a9a9af; }
.web__nav img { width: 2.4em; margin-right: auto; filter: invert(1) opacity(.85); }
.web__h { margin-bottom: 1.2em; font-size: 1.65em; font-weight: 500; letter-spacing: 0; }
.web__rows > div { display: flex; gap: 1.2em; align-items: center; padding: .85em 1em; margin-bottom: .5em; background: #16161c; border: 1px solid #2a2a31; font-size: .95em; }
.web__rows b { font-weight: 500; }
.web__rows span { padding: .1em .5em; border: 1px solid #6d5d33; color: var(--gold); font-size: .85em; }
.web__rows span.is-ok { border-color: #3a3a42; color: #a9a9af; }
.phone {
  position: absolute; right: 3%; bottom: -4%; width: 29%; aspect-ratio: 9 / 18.5; padding: 2.6em .9em 1em;
  background: #0b0b0f; border: 1px solid #3a3a42; border-radius: 2.2em;
  box-shadow: 0 2em 5em rgba(0, 0, 0, .75), inset 0 0 0 .35em #16161b;
}
.is-active .phone { animation: phoneIn 1s var(--ease) both .15s; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(2.5em); } }
.phone__notch { position: absolute; left: 50%; top: .9em; width: 30%; height: .9em; border-radius: 1em; background: #1d1d23; transform: translateX(-50%); }
.phone__h { margin-bottom: .9em; font-size: 1em; font-weight: 500; letter-spacing: 0; }
.phone__card { display: flex; flex-direction: column; padding: .6em .7em; margin-bottom: .5em; background: #16161c; border: 1px solid #2a2a31; font-size: .82em; }
.phone__card span { color: #85858d; }
.phone__sign { margin-top: 1em; padding: .7em; background: #f2f2f0; color: #0b0b0e; text-align: center; font-size: .85em; font-weight: 500; }

.steps { padding: 1.6em 1.5em .8em; }
.steps li { display: flex; align-items: center; gap: .8em; margin-bottom: .95em; font-size: 1.1em; color: #d6d6da; }
.steps li i { position: relative; width: 1.2em; height: 1.2em; flex: none; border: 1px solid #55555d; border-radius: 50%; }
.steps li i::after { content: ""; position: absolute; left: .34em; top: .16em; width: .32em; height: .6em; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg); }
.steps__wait { color: var(--gold) !important; }
.steps__wait i { border-color: var(--gold) !important; }
.steps__wait i::after { display: none; }
.steps__wait i::before { content: ""; position: absolute; inset: .28em; border-radius: 50%; background: var(--gold); animation: blink 1.4s ease-in-out infinite; }
.is-active [data-steps] li { opacity: 0; animation: rise .6s var(--ease) forwards; }
.is-active [data-steps] li:nth-child(1) { animation-delay: .2s; }
.is-active [data-steps] li:nth-child(2) { animation-delay: .75s; }
.is-active [data-steps] li:nth-child(3) { animation-delay: 1.3s; }
.is-active [data-steps] li:nth-child(4) { animation-delay: 1.85s; }
.mail { margin: .4em 1.5em 0; padding: 1.1em 1.2em; background: #16161c; border: 1px solid #2a2a31; font-size: 1em; }
.bw-foot { position: absolute; left: 1.5em; right: 1.5em; bottom: 1.3em; padding-top: .9em; border-top: 1px solid #202027; font-size: .85em; color: #7d7d86; }
.is-active .mail { animation: rise .7s var(--ease) both 2.3s; }
.mail__meta { display: flex; flex-wrap: wrap; gap: .3em 1.4em; margin-bottom: .7em; color: #85858d; font-size: .9em; }
.mail__meta b { color: #dcdce0; font-weight: 500; }
.mail p { font-family: var(--serif); color: #c3c3c8; line-height: 1.5; margin-bottom: .9em; }
.mail__btns { display: flex; gap: .5em; }

.hub { position: relative; height: calc(100% - 3.2em); }
.hub__lines { position: absolute; inset: 8% 6%; width: 88%; height: 84%; overflow: visible; }
.hub__lines path { fill: none; stroke: #3a3a42; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; }
.is-active .hub__lines path { animation: dash 1.6s linear infinite; stroke: #6d5d33; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.hub__node {
  position: absolute; left: calc(6% + var(--x) * .88); top: calc(8% + var(--y) * .84); transform: translate(-50%, -50%);
  padding: .55em 1em; background: #16161c; border: 1px solid #34343c; font-size: .95em; color: #dcdce0; white-space: nowrap;
}
.hub__node--core { left: 50%; top: 50%; display: flex; align-items: center; gap: .6em; padding: .9em 1.3em; background: #1b1810; border-color: #6d5d33; color: #fff; font-weight: 500; }
.hub__node--core img { width: 2em; filter: invert(1); }
.is-active .hub__node:not(.hub__node--core) { animation: rise .6s var(--ease) both; }

/* ==========================================================================
   4. IA — accordéon + visuel
   ========================================================================== */
.future { position: relative; padding: var(--section-y) 0; }
.future__title { max-width: 9.5em; margin-bottom: clamp(3rem, 6vw, 5.5rem); font-size: clamp(2.5rem, 1rem + 3.9vw, 5.9rem); }

.acc { display: block; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:first-child { border-top: 1px solid var(--line); }
.acc__btn {
  position: relative; display: flex; align-items: center; gap: 1.6rem; width: 100%; min-height: 66px; padding: .9rem .25rem;
  font-size: clamp(1.125rem, 1rem + .3vw, 1.3rem); font-weight: 500; letter-spacing: 0; color: #e6e6e8;
  transition: color .3s, background-color .3s;
}
.acc__btn:hover { color: #fff; background: rgba(255, 255, 255, .015); }
.acc__btn:focus-visible { outline: 1px solid #fff; outline-offset: -1px; box-shadow: inset 0 0 0 3px var(--gold); }
.acc__n { width: 1.5rem; flex: none; font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.acc__pm { position: relative; width: 12px; height: 12px; margin-left: auto; margin-right: .75rem; flex: none; }
.acc__pm::before, .acc__pm::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 2px; margin-top: -1px; background: currentColor; transition: transform .4s var(--ease); }
.acc__pm::after { transform: rotate(90deg); }
.is-active .acc__pm::after { transform: rotate(0deg) scaleX(0); }
.acc__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
@media (max-width: 1023px) { .acc__progress { display: none; } }

.acc__panel { padding: .5rem 0 2rem; }
.acc__panel:not([hidden]) { animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.acc__visual { position: relative; container-type: inline-size; aspect-ratio: 904 / 600; background: var(--surface); border: 1px solid #2a2a31; border-bottom: 0; overflow: hidden; }
.av { position: absolute; inset: 0; font-size: calc(100cqi / 90.4); line-height: 1.4; }
.acc__caption { padding: 1.6rem 1.6rem 1.7rem; background: var(--surface); border: 1px solid #2a2a31; }
.acc__ct { margin-bottom: .6rem; font-size: clamp(1.25rem, 1.1rem + .35vw, 1.5rem); font-weight: 600; letter-spacing: 0; }
.acc__cd { margin-bottom: 1.5rem; max-width: 40em; font-size: clamp(1rem, .95rem + .15vw, 1.0625rem); color: var(--text-2); line-height: 1.5; }
.acc__link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; font-weight: 500; }

@media (min-width: 1024px) {
  .acc { display: grid; grid-template-columns: minmax(0, 40.4fr) minmax(0, 56.5fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: 3.1%; }
  .acc__item { display: contents; }
  .acc__h { grid-column: 1; border-bottom: 1px solid var(--line); }
  .acc__item:first-child .acc__h { border-top: 1px solid var(--line); }
  .acc__item { border: 0 !important; }
  .acc__panel { grid-column: 2; grid-row: 1 / -1; padding: 0; }
  .acc__visual { aspect-ratio: 904 / 600; }
}

/* 01 agent */
.av--agent { display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(201, 174, 108, .10), transparent 50%), linear-gradient(160deg, #13131a, #0c0c10); }
.aw { position: relative; display: flex; flex-direction: column; width: 74em; height: 46em; }
.chat { flex: 1; padding: 2.2em 2.4em 1em; display: flex; flex-direction: column; gap: 1.3em; font-size: 1.45em; }
.chat__input { display: flex; align-items: center; justify-content: space-between; margin: 0 2em 2em; padding: .7em .7em .7em 1.2em; background: #16161c; border: 1px solid #2b2b33; font-size: 1.3em; color: #7d7d86; }
.chat__msg { max-width: 34em; padding: .9em 1.1em; line-height: 1.45; }
.chat__msg--me { align-self: flex-end; background: #202027; color: #e6e6e8; }
.chat__msg--ai { align-self: flex-start; background: #15151b; border: 1px solid #2c2c33; color: #d6d6da; }
.chat__tools { display: flex; flex-direction: column; gap: .35em; margin-bottom: .9em; padding-bottom: .8em; border-bottom: 1px solid #2a2a31; font-size: .82em; color: #9d9da4; }
.chat__tools span::before { content: "✓"; margin-right: .6em; color: var(--gold); }
.chat__btns { display: flex; gap: .5em; margin-top: 1em; font-size: .85em; }
.acc__panel:not([hidden]) .chat__msg--me { animation: rise .6s var(--ease) both .15s; }
.acc__panel:not([hidden]) .chat__tools span { animation: rise .5s var(--ease) both; }
.acc__panel:not([hidden]) .chat__tools span:nth-child(1) { animation-delay: .6s; }
.acc__panel:not([hidden]) .chat__tools span:nth-child(2) { animation-delay: .95s; }
.acc__panel:not([hidden]) .chat__tools span:nth-child(3) { animation-delay: 1.3s; }
.acc__panel:not([hidden]) .chat__msg--ai { animation: rise .6s var(--ease) both .45s; }

/* 02 RAG */
.av--rag { display: grid; place-items: center; background: linear-gradient(160deg, #111118, #0b0b0f); }
.rag__dots { position: absolute; inset: 0; }
.rag__dots i { position: absolute; left: var(--x); top: var(--y); width: .7em; height: .7em; border-radius: 50%; background: #3d4552; animation: float 6s ease-in-out infinite; animation-delay: calc(var(--x) * -.08s); }
.rag__dots i.is-hit { background: var(--gold); box-shadow: 0 0 0 .5em rgba(201, 174, 108, .15); }
@keyframes float { 50% { transform: translate(.6em, -.8em); } }
.rag { position: relative; width: 50em; font-size: 1.55em; }
.rag__q { display: flex; align-items: center; gap: .9em; padding: 1em 1.2em; margin-bottom: 1em; background: #16161c; border: 1px solid #3a3a42; color: #f0f0f2; }
.rag__a { padding: 1.2em 1.3em; background: rgba(21, 21, 27, .92); border: 1px solid #2c2c33; }
.rag__a p { margin-bottom: 1em; line-height: 1.5; color: #d6d6da; }
.rag__src { display: flex; flex-wrap: wrap; gap: .5em; }
.rag__src span { padding: .3em .6em; border: 1px solid #6d5d33; color: var(--gold); font-family: var(--mono); font-size: .78em; }
.acc__panel:not([hidden]) .rag__a { animation: rise .7s var(--ease) both .5s; }

/* 03 flux */
.av--flow { display: flex; flex-direction: column; justify-content: center; gap: 3.6em; padding: 0 4.5em; background: linear-gradient(160deg, #111118, #0b0b0f); }
.flow__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.1em; border-bottom: 1px solid #25252c; font-size: 1.35em; color: #c8c8cd; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 3.4em; row-gap: 4.2em; }
.flow__node { position: relative; padding: 1.1em .7em; background: #16161c; border: 1px solid #34343c; font-size: 1.45em; font-weight: 500; text-align: center; }
.flow__node small { display: block; margin-top: .25em; font-size: .74em; font-weight: 400; color: #85858d; }
.flow__node--ai { border-color: #6d5d33; background: #1b1810; }
.flow__node--alert { grid-column: 3; border-color: #6d5d33; color: var(--gold); }
.flow__node:nth-child(-n+3)::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: calc(3.4em / 1.45); height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) no-repeat -60% 0 / 60% 100%, #3a3a42;
  animation: pulse 2.2s var(--ease-io) infinite;
}
.flow__node:nth-child(2)::after { animation-delay: .45s; }
.flow__node:nth-child(3)::after { animation-delay: .9s; }
.flow__node--alert::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: calc(4.2em / 1.45); background: linear-gradient(#3a3a42, #6d5d33); }
@keyframes pulse { from { background-position: -160% 0, 0 0; } to { background-position: 260% 0, 0 0; } }
.acc__panel:not([hidden]) .flow__node--alert { animation: rise .7s var(--ease) both 1.2s; }

/* 04 code */
.av--code { background: linear-gradient(160deg, #111118, #0b0b0f); }
.cw { background: #0d0d11; border-color: #26262d; }
.cw pre { padding: 1.6em 1.8em; font-family: var(--mono); font-size: 1.25em; line-height: 1.7; color: #adbac7; white-space: pre; }
.cw--a { left: 3.5%; top: 11%; width: 50%; height: 78%; }
.cw--b { right: -2%; top: 1.5%; width: 53%; height: 98%; box-shadow: -2em 0 4em rgba(0, 0, 0, .5); }
.acc__panel:not([hidden]) .cw--b { animation: rise .8s var(--ease) both .2s; }

/* ==========================================================================
   5. Manifeste
   ========================================================================== */
.manifesto { position: relative; padding: var(--section-y) 0 calc(var(--section-y) * 1.1); overflow: clip; }
.manifesto::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--section-y) - 12rem); z-index: 0; width: min(64rem, 130vw); height: 28rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 174, 108, .085), rgba(201, 174, 108, 0)); pointer-events: none;
}
.anchor { position: absolute; top: 0; }
.manifesto__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.emblem { width: clamp(150px, 16vw, 240px); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.emblem svg { display: block; width: 100%; height: auto; overflow: visible; }
.emblem__q { transition: transform 1.3s var(--ease), opacity 1s var(--ease); }
.js .emblem__q { opacity: 0; }
.js .emblem__q--tl { transform: translate(-90px, -60px); }
.js .emblem__q--tr { transform: translate(90px, -60px); }
.js .emblem__q--bl { transform: translate(-90px, 60px); }
.js .emblem__q--br { transform: translate(90px, 60px); }
.emblem.is-in .emblem__q { opacity: 1; transform: none; }
.emblem__traces > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .emblem__traces > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) 1s; }
.js .emblem__traces > circle { transition-delay: 2.2s; transition-duration: .6s; }
.emblem.is-in .emblem__traces > * { stroke-dashoffset: 0; }
.manifesto__title { margin-bottom: 1.6rem; font-size: clamp(2.5rem, 1rem + 3.6vw, 5.4rem); max-width: 11em; }
.manifesto__p { max-width: 42em; margin-top: 1.1rem; font-size: clamp(1.0625rem, .95rem + .35vw, 1.3125rem); line-height: 1.42; letter-spacing: 0; color: var(--text-2); }
.manifesto__p--short { margin-block: 2.6rem 2.4rem; color: var(--text); }
.manifesto__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; margin-top: 2.6rem; }
.manifesto__contact { margin-top: 2rem; font-size: .9375rem; color: var(--text-3); }
.manifesto__contact a { color: var(--text-2); white-space: nowrap; transition: color .2s; }
.manifesto__contact a:hover { color: #fff; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1200px) {
  .site-footer__grid { grid-template-columns: 5fr 2.6fr 2.4fr; }
}
.site-footer__brand img { height: 26px; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { font-size: 1.125rem; color: var(--text-2); }
.site-footer__address { margin-top: 1.5rem; font-style: normal; font-size: .9375rem; line-height: 1.7; color: var(--text-3); }
.site-footer__address a { color: var(--text-2); transition: color .2s; }
.site-footer__address a:hover { color: #fff; }
.site-footer__h { margin-bottom: 1.4rem; font-size: .9375rem; font-weight: 600; }
.site-footer__col li + li { margin-top: .75rem; }
.site-footer__col a { font-size: .9375rem; color: var(--text-2); transition: color .2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.site-footer__legal { font-size: .8125rem; color: var(--text-3); }
.site-footer__links { display: flex; align-items: center; gap: 1.75rem; font-size: .8125rem; }
.site-footer__links > a { color: var(--text-3); transition: color .2s; }
.site-footer__links > a:hover { color: #fff; }

/* ==========================================================================
   Mentions légales
   ========================================================================== */
.legal { position: relative; padding: calc(var(--header-h) + clamp(4rem, 3rem + 5vw, 8rem)) 0 var(--section-y); }
.legal__inner { max-width: calc(48rem + 2 * var(--gutter)); }
.legal__title { margin-bottom: 1.25rem; font-size: clamp(2.6rem, 1rem + 3.6vw, 5rem); }
.legal__updated { margin-bottom: clamp(2.5rem, 5vw, 4rem); font-size: .9375rem; color: var(--text-3); }
.legal h2 { margin: 2.75rem 0 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem); font-weight: 600; }
.legal p, .legal dd { font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); }
.legal p + p { margin-top: 1rem; }
.legal dl { display: grid; gap: .35rem 2rem; margin: 0; }
.legal dt { font-size: .9375rem; color: var(--text-3); }
.legal dd { margin: 0 0 .9rem; }
@media (min-width: 768px) {
  .legal dl { grid-template-columns: 15rem minmax(0, 1fr); row-gap: .9rem; }
  .legal dd { margin: 0; }
}
.legal a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: #6b6b73; transition: color .2s, text-decoration-color .2s; }
.legal a:hover { color: #fff; text-decoration-color: var(--gold); }

/* ==========================================================================
   Mouvement réduit : états finaux, sans animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .streaks { translate: none; }
}
