/* DZF : encre profonde, un accent que le visiteur peut changer, une seule étincelle corail.
   Verre, lumière et typographie cinétique : chaque surface réagit au curseur et au défilement. */
:root {
  --ink: #05070c;
  --ink-2: #0b0f17;
  --ink-3: #10151f;
  --line: rgba(226, 236, 255, .12);
  --line-2: rgba(226, 236, 255, .22);
  --text: #eef2f8;
  --text-2: #cdd4df;
  --muted: #97a1b3;
  --ion: #b9ff3c;
  --ion-rgb: 185 255 60;
  --spark: #ff5a3c;
  --glass: rgba(8, 11, 18, .58);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 clamp(16px, 1.15vw, 18px)/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--ion); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--ion); color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.no-webgl #field { display: none; }
.no-webgl body {
  background:
    radial-gradient(60vw 50vh at 75% 20%, rgb(var(--ion-rgb) / .12), transparent 70%),
    radial-gradient(50vw 50vh at 10% 80%, rgba(70, 130, 255, .12), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .foot { position: relative; z-index: 2; }

/* Verre : fond flouté, bordure en dégradé posée par un masque */
.glass, .panel__copy, .case__copy, .brand__copy, .contact__copy, .controls, .steps li, .stats div, .letter {
  position: relative;
}
.glass::before, .steps li::before, .stats div::before, .letter::before, .controls::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03) 38%, rgb(var(--ion-rgb) / .16) 100%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Projecteur : la bordure s'allume là où passe le curseur, même sur la carte voisine */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgb(var(--ion-rgb) / .95), rgb(var(--ion-rgb) / .25) 40%, transparent 70%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .45s;
}
.spot.is-near::after { opacity: 1; }

/* Barre de progression */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 45; pointer-events: none;
  background: linear-gradient(90deg, var(--ion), var(--spark));
  transform: scaleX(var(--p, 0)); transform-origin: left;
  box-shadow: 0 0 14px rgb(var(--ion-rgb) / .7);
}

/* Curseur */
.cursor { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.is-on { opacity: 1; }
.cursor i, .cursor b { position: absolute; top: 0; left: 0; display: block; will-change: transform; }
.cursor i::before, .cursor b::before { content: ""; position: absolute; border-radius: 50%; }
.cursor i::before { width: 6px; height: 6px; margin: -3px; background: var(--ion); box-shadow: 0 0 12px rgb(var(--ion-rgb) / .9); }
.cursor b::before {
  width: 34px; height: 34px; margin: -17px; border: 1px solid rgb(var(--ion-rgb) / .65);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.cursor.is-link b::before { width: 64px; height: 64px; margin: -32px; background: rgb(var(--ion-rgb) / .12); }
.cursor.is-text b::before { width: 4px; height: 30px; margin: -15px -2px; border-radius: 2px; background: rgb(var(--ion-rgb) / .5); border-color: transparent; }
.cursor.has-label b::before { width: 10px; height: 10px; margin: -5px; background: var(--ion); border-color: var(--ion); }
.cursor.has-label i::before { opacity: 0; }
.cursor em {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 7px 11px; border-radius: 999px; background: var(--ion); color: var(--ink);
  font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  transform: translate(12px, 12px) scale(0); transform-origin: left top;
  transition: transform .35s var(--ease);
}
.cursor.has-label em { transform: translate(14px, 14px) scale(1); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [tabindex] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* Démarrage : le logo se dessine, puis explose en particules */
.boot {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: var(--ink); pointer-events: none;
  transition: opacity .5s var(--ease-io), visibility .5s, transform .5s var(--ease-io);
}
html:not(.js) .boot, .boot.is-done { opacity: 0; visibility: hidden; transform: scale(1.04); }
.boot__mark { overflow: visible; filter: drop-shadow(0 0 18px rgb(var(--ion-rgb) / .55)); }
.boot__mark path {
  fill: none; stroke: var(--ion); stroke-width: 6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .62s var(--ease) forwards;
}
.boot__mark .d2 { animation-delay: .32s; animation-duration: .36s; }
.boot__mark .d3 { animation-delay: .56s; animation-duration: .24s; }
.boot__mark circle { fill: var(--spark); transform-origin: 55px 54px; transform: scale(0); animation: pop .4s .76s var(--ease) forwards; }
.boot__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font: 300 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.boot__meta b { font-weight: 400; color: var(--ion); font-variant-numeric: tabular-nums; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 60% { transform: scale(1.5); } to { transform: scale(1); } }

/* Navigation : une capsule flottante qui se resserre en défilant */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 30;
  width: min(calc(100% - 2 * var(--gutter)), 1180px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 9px 9px 9px 18px; border-radius: 999px;
  background: rgba(8, 11, 18, .36);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(226, 236, 255, .09);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateX(-50%);
  transition: width .7s var(--ease), background .4s, top .5s var(--ease), box-shadow .4s, border-color .4s;
}
.nav.is-stuck {
  top: 12px;
  width: min(calc(100% - 2 * var(--gutter)), 880px);
  background: rgba(8, 11, 18, .74);
  border-color: rgba(226, 236, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgb(var(--ion-rgb) / .06);
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.logo svg { display: block; overflow: visible; transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.logo__lines path { fill: none; stroke: var(--ion); stroke-width: 6; }
.logo circle { fill: var(--spark); }
.logo i { font-weight: 300; font-style: normal; color: var(--ion); }
.nav__links { position: relative; display: flex; gap: 2px; }
.nav__pill {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 0px);
  border-radius: 999px; background: rgba(226, 236, 255, .09);
  transform: translateX(var(--x, 0px)); opacity: var(--o, 0);
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
}
.nav__links a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); transition: color .25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__cta {
  position: relative; overflow: hidden;
  padding: 11px 18px; border-radius: 999px; background: var(--ion); color: var(--ion-on, var(--ink));
  font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 rgb(var(--ion-rgb) / .5);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.nav__cta:hover { box-shadow: 0 0 34px rgb(var(--ion-rgb) / .45); transform: translateY(-1px); }

/* Rail de sections, à droite */
.rail {
  position: fixed; right: calc(var(--gutter) - 6px); top: 50%; z-index: 20;
  display: flex; flex-direction: column; gap: 6px; transform: translateY(-50%);
}
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 4px 6px; text-decoration: none; color: var(--muted);
  font: 300 10px var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease), color .3s; }
.rail a i { display: block; width: 14px; height: 1px; background: rgba(226, 236, 255, .35); transition: width .4s var(--ease), background .3s, box-shadow .3s; }
.rail:hover a span, .rail a.is-active span { opacity: 1; transform: none; }
.rail a.is-active span { color: var(--ion); }
.rail a.is-active i { width: 30px; background: var(--ion); box-shadow: 0 0 10px rgb(var(--ion-rgb) / .8); }
.rail a:hover i { background: var(--text); }

/* Instruments */
.hud {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 20;
  display: flex; gap: 22px; padding: 7px 12px; margin-left: -12px; border-radius: 999px;
  background: rgba(5, 7, 12, .6); border: 1px solid rgba(226, 236, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 300 10px var(--mono); letter-spacing: .08em; color: var(--muted);
  pointer-events: none;
  transition: opacity .3s;
}
.hud.is-hidden { opacity: 0; }
.hud i { font-style: normal; opacity: .65; margin-right: 4px; }
.hud b { font-weight: 400; color: var(--ion); font-variant-numeric: tabular-nums; }

.pulse {
  display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; vertical-align: 1px;
  background: var(--ion); box-shadow: 0 0 0 0 rgb(var(--ion-rgb) / .6);
  animation: pulse 2.2s var(--ease-io) infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(var(--ion-rgb) / 0); } to { box-shadow: 0 0 0 0 rgb(var(--ion-rgb) / 0); } }

/* Typographie commune */
.tag {
  display: flex; align-items: center; gap: 12px;
  font: 400 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ion); margin-bottom: 22px;
}
.tag::before { content: ""; width: 22px; height: 1px; background: var(--ion); box-shadow: 0 0 8px rgb(var(--ion-rgb) / .8); }
h2 {
  font: 500 clamp(28px, 3.6vw, 56px)/1.08 var(--display);
  letter-spacing: -.03em; text-wrap: balance; margin-bottom: 22px;
}
.wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .05em .14em 0; margin: -.06em -.05em -.14em 0; }
.w { display: inline-block; }
.js [data-reveal] .w { opacity: 0; transform: translateY(110%) rotate(3deg); transform-origin: left top; }
.js [data-reveal].is-in .w {
  opacity: 1; transform: none;
  transition: opacity .6s, transform 1.1s var(--ease);
  transition-delay: calc(var(--w) * 50ms + 80ms);
}

/* Boutons : le libellé glisse, le fond monte */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 26px; overflow: hidden; border-radius: 999px;
  border: 1px solid rgba(238, 242, 248, .3); background: rgba(8, 11, 18, .4); color: var(--text);
  font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: border-color .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ion);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn span { position: relative; display: block; overflow: hidden; line-height: 1.2; }
.btn span i { display: block; font-style: normal; transition: transform .5s var(--ease); }
.btn span i + i { position: absolute; left: 0; top: 100%; }
.btn:hover span i { transform: translateY(-100%); }
.btn:hover { color: var(--ink); border-color: var(--ion); box-shadow: 0 0 44px rgb(var(--ion-rgb) / .35); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--ion); border-color: var(--ion); color: var(--ion-on, var(--ink)); box-shadow: 0 0 24px rgb(var(--ion-rgb) / .2); }
.btn--solid::before { background: var(--text); }
.btn--solid:hover { border-color: var(--text); box-shadow: 0 0 44px rgb(var(--ion-rgb) / .35); }
.nav__cta span { position: relative; display: block; overflow: hidden; line-height: 1.2; }
.nav__cta span i { display: block; font-style: normal; transition: transform .5s var(--ease); }
.nav__cta span i + i { position: absolute; left: 0; top: 100%; }
.nav__cta:hover span i { transform: translateY(-100%); }

/* Accueil */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.hero__meta {
  position: absolute; top: 96px; right: var(--gutter); text-align: right;
  display: grid; gap: 6px;
  font: 300 10.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero__meta time { color: var(--ion); font-variant-numeric: tabular-nums; }
.js .hero__meta li { opacity: 0; transform: translateY(-6px); }
.is-live .hero__meta li { opacity: 1; transform: none; transition: opacity .8s, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 900ms); }
.hero__meta li:nth-child(2) { --i: 1; } .hero__meta li:nth-child(3) { --i: 2; }
.hero__inner { width: 100%; padding: 0 var(--gutter) clamp(56px, 8vh, 84px); }
.hero__title {
  --size: clamp(44px, min(8.4vw, 15.5vh), 150px);
  font: 800 var(--size)/.98 var(--display);
  letter-spacing: -.05em; margin-bottom: clamp(18px, 2.6vh, 30px);
}
.hero__title .line { display: block; white-space: nowrap; }
.line--name { font-size: calc(var(--size) * var(--fit, 1)); transition: font-size .45s var(--ease); }
.hero__title em { font-style: normal; color: var(--ion); text-shadow: 0 0 44px rgb(var(--ion-rgb) / .5); }
.hero__title .ch { display: inline-block; font-variation-settings: "wght" var(--wg, 800); }
.js .hero__title .ch { opacity: 0; transform: translateY(.4em) rotateX(-70deg); filter: blur(8px); }
.is-live .hero__title .ch {
  opacity: 1; transform: none; filter: none;
  transition: opacity .7s, transform 1s var(--ease), filter .7s;
  transition-delay: calc(var(--i) * 26ms + 500ms);
}
.is-live .hero__title em .ch { animation: letterIn .55s var(--ease) both; transition: none; }
@keyframes letterIn { from { opacity: 0; transform: translateY(.3em) scale(.8); filter: blur(6px); } }
.hero__lead { max-width: 50ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--text-2); margin-bottom: 22px; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__form { max-width: 620px; }
.hero__form label { display: block; font: 300 11px var(--mono); letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.hero__field {
  display: flex; padding: 5px; border-radius: 999px;
  background: rgba(8, 11, 18, .6); border: 1px solid rgb(var(--ion-rgb) / .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .3s, border-color .3s;
}
.hero__field:focus-within { border-color: var(--ion); box-shadow: 0 0 40px rgb(var(--ion-rgb) / .22), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hero__field input {
  flex: 1 1 auto; min-width: 0; padding: 12px 18px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text);
  font: 500 17px var(--body);
}
.hero__field input::placeholder { color: #8390a3; }
.hero__field input:focus { outline: 0; }
.hero__field .btn { padding-block: 14px; }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 3;
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font: 300 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: opacity .4s, transform .5s var(--ease);
}
.hero__cue i { position: relative; display: block; width: 54px; height: 1px; background: rgba(226, 236, 255, .18); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: var(--ion); transform: translateX(-100%); animation: cue 1.8s var(--ease-io) infinite; }
.hero__cue.is-gone { opacity: 0; transform: translateY(8px); pointer-events: none; }
@keyframes cue { 50% { transform: none; } to { transform: translateX(100%); } }

/* Défilant */
.ticker {
  display: flex; align-items: stretch; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(5, 7, 12, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ticker__label {
  flex: none; position: relative; z-index: 1; display: flex; align-items: center;
  padding: 16px var(--gutter); background: var(--ion); color: var(--ion-on, var(--ink));
  font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ticker__track { display: flex; flex: none; animation: slide 46s linear infinite; }
.ticker__track ul { display: flex; flex: none; align-items: center; }
.ticker__track li {
  padding: 0 28px; white-space: nowrap;
  font: 300 12px var(--mono); color: #cfd6e2; position: relative;
}
.ticker__track li::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  background: var(--spark); border-radius: 50%;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.anchor { position: relative; top: -70px; }

/* Le nom */
.brand { min-height: 130vh; display: flex; align-items: center; padding: 100px var(--gutter); }
.brand__copy { width: min(46%, 640px); }
.brand__intro { color: var(--text-2); max-width: 50ch; margin-bottom: 26px; }
.letters { display: grid; gap: 6px; }
.letters li {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px;
  padding: 13px 14px; border-radius: 14px; overflow: hidden;
  background: rgba(8, 11, 18, .4); border: 1px solid var(--line);
  transition: padding .4s var(--ease), background .3s, border-color .3s;
}
.letters li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(var(--ion-rgb) / .16), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.letters li.is-on { padding-left: 22px; border-color: rgb(var(--ion-rgb) / .35); }
.letters li.is-on::before { transform: none; }
.letters b { font: 800 28px/1 var(--display); color: rgba(226, 236, 255, .3); transition: color .3s, transform .4s var(--ease); }
.letters b.spark { font-size: 34px; color: var(--spark); }
.letters li.is-on b { color: var(--ion); transform: scale(1.12); }
.letters li.is-on b.spark { color: var(--spark); }
.letters span { font-size: .95em; color: #c7ced9; line-height: 1.35; }
.letters strong { display: block; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--text); margin-bottom: 3px; }
.brand__foot { margin-top: 20px; font: 300 12px var(--mono); color: var(--muted); }

/* Services : un numéro fantôme dérive derrière le texte */
.panel, .case {
  position: relative; min-height: 118vh;
  display: flex; align-items: center;
  padding: 90px var(--gutter);
}
.panel::before {
  content: attr(data-n); position: absolute; left: calc(var(--gutter) - .04em); top: 50%; z-index: 0;
  font: 200 clamp(180px, 30vw, 460px)/1 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(226, 236, 255, .15);
  transform: translateY(-58%); pointer-events: none; user-select: none;
}
@supports (animation-timeline: view()) {
  .panel::before { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: translateY(-20%); } to { transform: translateY(-95%); } }
}
.panel__copy, .case__copy { width: min(44%, 620px); z-index: 1; }
.panel__copy > p:not(.tag), .case__copy > p:not(.tag, .case__claim, .source) { color: var(--text-2); max-width: 48ch; }
.specs { margin-top: 28px; display: grid; gap: 6px; }
.specs li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 12px;
  background: rgba(8, 11, 18, .42); border: 1px solid var(--line);
  font: 300 12.5px var(--mono);
  transition: transform .5s var(--ease), background .3s;
}
.specs li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 10px rgb(var(--ion-rgb) / .9); }
.specs li:hover { transform: translateX(6px); background: rgba(8, 11, 18, .6); }

/* Studio */
.studio { padding: clamp(100px, 16vh, 170px) var(--gutter) clamp(70px, 10vh, 110px); }
.studio__head { max-width: 760px; margin-bottom: clamp(30px, 6vh, 60px); }
.studio__head h2 { font-size: clamp(30px, 4vw, 64px); margin-bottom: 14px; overflow-wrap: anywhere; }
.studio__head h2 span { color: var(--ion); }
.studio__head p { color: var(--text-2); max-width: 52ch; }
.studio__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.stage { order: 2; position: sticky; top: 76px; perspective: 1500px; height: calc(100vh - 110px); max-height: 760px; display: grid; place-items: center; }
.stage__rig {
  position: relative; width: 100%; display: grid; place-items: center;
  transform-style: preserve-3d;
  transform: rotateX(calc(5deg + var(--rx, 0deg))) rotateY(calc(-11deg + var(--ry, 0deg)));
}
.stage__rig::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; bottom: 0; z-index: -1;
  border-radius: 50%; filter: blur(50px); opacity: .55;
  background: conic-gradient(from var(--ang), transparent 0 28%, rgb(var(--ion-rgb) / .55) 42%, transparent 56%, rgba(90, 140, 255, .35) 78%, transparent 90%);
  transform: translateZ(-120px) scale(1.1);
  animation: ang 14s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }
.device {
  position: relative; width: 100%; max-width: min(860px, calc((100vh - 190px) * 1.5));
  background: #0d1119; border: 1px solid rgba(226, 236, 255, .22); border-radius: 14px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .65), 0 0 90px rgb(var(--ion-rgb) / .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  overflow: hidden;
  transition: max-width .7s var(--ease), border-radius .7s var(--ease), box-shadow .5s;
}
@media (min-width: 901px) {
  .device { -webkit-box-reflect: below 14px linear-gradient(transparent 74%, rgba(255, 255, 255, .13)); }
}
.device__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(226, 236, 255, .12); background: #10151f; transition: opacity .3s; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(226, 236, 255, .22); }
.device__bar span { margin-left: 10px; padding: 3px 14px; border-radius: 20px; background: rgba(226, 236, 255, .08); font: 300 10px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device__screen { container-type: inline-size; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.device__screen > div { position: absolute; inset: 0; }
.device--app { max-width: min(320px, calc((100vh - 170px) * .49)); border-radius: 40px; border-width: 5px; border-color: #1b212d; }
.device--app .device__bar { display: none; }
.device--app .device__screen { aspect-ratio: 9 / 18.2; }
.device.is-building::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(var(--ion-rgb) / .4) 85%, rgb(var(--ion-rgb)));
  mix-blend-mode: screen;
  animation: scan .95s var(--ease) forwards;
}
@keyframes scan { from { transform: translateY(-110%); } to { transform: translateY(420%); opacity: .2; } }
.float {
  position: absolute; z-index: 4; padding: 8px 12px; white-space: nowrap; border-radius: 999px;
  background: rgba(5, 7, 12, .82); border: 1px solid rgb(var(--ion-rgb) / .5); color: var(--ion);
  font: 400 10.5px var(--mono);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translateZ(70px);
  animation: hover 5s ease-in-out infinite;
}
.float--a { top: -3%; right: 8%; }
.float--b { bottom: 12%; left: 4%; transform: translateZ(100px); animation-delay: -1.7s; }
.float--c { bottom: -3%; right: 14%; transform: translateZ(50px); animation-delay: -3.1s; }
@keyframes hover { 50% { margin-top: -6px; } }

.controls { order: 1; padding: 22px; border-radius: var(--radius); background: rgba(8, 11, 18, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.controls .chips, .controls .swatches { margin-bottom: 18px; }
.controls .btn { width: 100%; margin-top: 4px; }
.controls__note { margin-top: 12px; font: 300 10.5px/1.6 var(--mono); color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { font: 300 11px var(--mono); color: var(--muted); letter-spacing: .05em; margin-bottom: 10px; padding: 0; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches span { display: block; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px rgba(226, 236, 255, .25); transition: transform .3s var(--ease), box-shadow .3s; }
.swatches label:hover span { transform: scale(1.12); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--text), 0 0 26px currentColor; transform: scale(1.1); }
.swatches input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 6px; }

/* La maquette générée : tout est en em, l'échelle suit la largeur de l'écran.
   Chaque style redéfinit les jetons : fond, police, rayons, ombres, casse. */
.mock {
  --mA: var(--ion); --mOn: var(--ion-on, #05070c);
  --mBg: #070a12; --mFg: #eef2f8;
  --mMut: color-mix(in srgb, var(--mFg) 58%, transparent);
  --mSoft: color-mix(in srgb, var(--mFg) 6%, transparent);
  --mLine: color-mix(in srgb, var(--mFg) 12%, transparent);
  --mD: var(--display); --mDW: 500; --mIt: normal; --mB: var(--body);
  --mR: .8em; --mBR: .55em; --mBd: 1px; --mSh: none; --mCase: none; --mLS: -.03em;
  --mOk: #2fd47a; --mWarn: #ffb020;
  background: var(--mBg); color: var(--mFg); font-family: var(--mB);
  transition: background .5s, color .5s;
}
.mock--futur {
  --mSh: 0 0 1.6em color-mix(in srgb, var(--mA) 28%, transparent);
  background-image:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--mA) 22%, transparent), transparent 42%),
    linear-gradient(color-mix(in srgb, var(--mFg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--mFg) 5%, transparent) 1px, transparent 1px);
  background-size: auto, 3em 3em, 3em 3em;
}
.mock--elegant { --mBg: #f5f0e6; --mFg: #1c1712; --mD: "Instrument Serif", Georgia, serif; --mDW: 400; --mR: 1.1em; --mBR: 2em; --mLS: -.01em; }
.mock--audace { --mBg: var(--ion); --mFg: var(--ion-on, #05070c); --mA: var(--ion-on, #05070c); --mOn: var(--ion); --mDW: 800; --mCase: uppercase; --mLS: -.04em; --mR: 0; --mBR: 0; --mBd: 2px; --mLine: color-mix(in srgb, var(--ion-on, #05070c) 75%, transparent); --mSoft: color-mix(in srgb, var(--ion-on, #05070c) 8%, transparent); }
.mock--minimal { --mBg: #fff; --mFg: #141414; --mD: var(--body); --mDW: 600; --mLS: -.035em; --mR: .6em; --mBR: .45em; --mLine: color-mix(in srgb, #141414 9%, transparent); --mSoft: color-mix(in srgb, #141414 3.5%, transparent); }
.mock--brutal { --mBg: #f3efe4; --mFg: #111; --mD: var(--mono); --mDW: 500; --mCase: uppercase; --mLS: 0; --mR: 0; --mBR: 0; --mBd: 2px; --mLine: #111; --mSoft: #fff; --mSh: .28em .28em 0 #111; --mMut: #444; }
.mock--editorial { --mBg: #f8f4ec; --mFg: #17150f; --mD: "Fraunces", Georgia, serif; --mDW: 400; --mIt: italic; --mR: 0; --mBR: 0; --mLine: color-mix(in srgb, #17150f 28%, transparent); --mSoft: transparent; }
.mock--luxe { --mBg: #0e0c0a; --mFg: #f2eadb; --mD: "Fraunces", Georgia, serif; --mDW: 300; --mR: 0; --mBR: 0; --mLine: color-mix(in srgb, #f2eadb 18%, transparent); --mSoft: color-mix(in srgb, #f2eadb 4%, transparent); }
.mock--doux { --mBg: color-mix(in oklab, var(--ion) 10%, #fff); --mFg: #2a2733; --mD: "Space Grotesk", var(--body); --mDW: 700; --mLS: -.03em; --mR: 1.5em; --mBR: 1.2em; --mSoft: #fff; --mLine: transparent; --mSh: 0 .8em 2em color-mix(in srgb, var(--ion) 22%, transparent); }

.m { position: relative; height: 100%; font: 400 calc(100cqw / 58)/1.4 var(--mB); overflow: hidden; }
.m small { display: block; font-size: .8em; color: var(--mMut); }
.m svg { display: block; }
.m-in { animation: mIn .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 22ms + 100ms); }
@keyframes mIn { from { opacity: 0; transform: translateY(1.2em); filter: blur(4px); } }
.m-ic { display: inline-flex; flex: none; width: 1.7em; height: 1.7em; align-items: center; justify-content: center; border-radius: var(--mBR); background: color-mix(in srgb, var(--mA) 16%, transparent); color: var(--mA); }
.m-ic svg, .m-side svg, .m-search svg, .m-bell svg { width: 1em; height: 1em; }
.m-logo { display: inline-flex; align-items: center; gap: .5em; font: var(--mDW) 1.05em/1 var(--mD); letter-spacing: var(--mLS); white-space: nowrap; }
.m-logo svg { width: 1.25em; height: 1.25em; color: var(--mA); flex: none; }
.m-logo b { overflow: hidden; text-overflow: ellipsis; }
.m-h { font: var(--mDW) 3.1em/1.04 var(--mD); font-style: var(--mIt); letter-spacing: var(--mLS); text-transform: var(--mCase); text-wrap: balance; }
.m-b { font: var(--mDW) 1.15em/1.1 var(--mD); letter-spacing: var(--mLS); }
.m-p { color: var(--mMut); max-width: 34ch; }
.m-eyebrow { font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--mA); font-weight: 600; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; padding: .75em 1.3em; border-radius: var(--mBR); background: var(--mA); color: var(--mOn); font-weight: 600; font-size: .92em; border: var(--mBd) solid transparent; box-shadow: var(--mSh); white-space: nowrap; text-transform: var(--mCase); }
.m-btn--ghost { background: transparent; color: var(--mFg); border-color: var(--mLine); box-shadow: none; }
.m-btn--sm { padding: .5em .9em; font-size: .8em; }
.mock--brutal .m-btn { border-color: #111; }
.mock--luxe .m-btn { background: transparent; color: var(--mA); border-color: var(--mA); letter-spacing: .12em; text-transform: uppercase; font-size: .78em; font-weight: 500; }
.mock--luxe .m-btn--ghost { color: var(--mFg); border-color: var(--mLine); }
.m-card, .m-kpi, .m-row, .m-chart, .m-donut, .m-table, .m-search, .m-mini { background: var(--mSoft); border: var(--mBd) solid var(--mLine); border-radius: var(--mR); box-shadow: var(--mSh); }
.m-badge { font-size: .72em; padding: .25em .65em; border-radius: 999px; background: color-mix(in srgb, var(--mA) 18%, transparent); color: var(--mA); white-space: nowrap; font-style: normal; font-weight: 600; }
.m-badge--ok { background: color-mix(in srgb, var(--mOk) 18%, transparent); color: var(--mOk); }
.m-badge--warn { background: color-mix(in srgb, var(--mWarn) 20%, transparent); color: var(--mWarn); }
.m-badge--off { background: color-mix(in srgb, var(--mFg) 8%, transparent); color: var(--mMut); }
.mock--brutal .m-badge, .mock--editorial .m-badge, .mock--luxe .m-badge, .mock--audace .m-badge { border-radius: 0; }
.mock--audace .m-badge--ok, .mock--audace .m-badge--warn { color: var(--mFg); background: color-mix(in srgb, var(--mFg) 14%, transparent); }
.m-art { position: relative; overflow: hidden; color: var(--mA); border-radius: var(--mR); box-shadow: var(--mSh); min-height: 0; }
.m-art__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock--luxe .m-art, .mock--editorial .m-art { border: 1px solid var(--mLine); }
.mock--audace .m-art { border: 2px solid var(--mFg); }

/* Site : une page complète qui défile lentement */
.m--site .m-page { display: flex; flex-direction: column; gap: 1.6em; padding: 1.3em 2em 1.6em; }
.m-page.is-scroll, .m-apage.is-scroll { animation: mScroll var(--dur, 16s) ease-in-out 2.4s infinite alternate; }
@keyframes mScroll { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(var(--d, 0px)); } }
.stage:hover .is-scroll { animation-play-state: paused; }
.m-nav { display: flex; align-items: center; gap: 1.6em; font-size: .88em; }
.m-nav nav { display: flex; gap: 1.4em; margin-left: auto; color: var(--mMut); }
.m-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2em; align-items: center; min-height: 20em; }
.m-hero__t { display: flex; flex-direction: column; align-items: flex-start; gap: 1em; min-width: 0; }
.m-actions { display: flex; gap: .6em; flex-wrap: wrap; }
.m-stats { display: flex; gap: 1.8em; padding-top: 1em; border-top: 1px solid var(--mLine); width: 100%; }
.m-stats b { display: block; font: var(--mDW) 1.5em/1.1 var(--mD); letter-spacing: var(--mLS); }
.m-hero .m-art { aspect-ratio: 4 / 3; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; }
.m-card { padding: 1.1em 1.2em; display: flex; flex-direction: column; gap: .5em; }
.m-card b { font-weight: 600; }
.m-quote { padding: 2em 1em; text-align: center; border-top: 1px solid var(--mLine); border-bottom: 1px solid var(--mLine); }
.m-quote p { font: var(--mDW) 1.6em/1.25 var(--mD); font-style: var(--mIt); letter-spacing: var(--mLS); text-wrap: balance; max-width: 28ch; margin: 0 auto .5em; }
.m-foot { display: flex; justify-content: space-between; gap: 1em; font-size: .78em; color: var(--mMut); padding-top: 1em; }

.mock--elegant .m-h { font-size: 4em; line-height: 1; }
.mock--elegant .m-hero__t { gap: 1.2em; }
.mock--elegant .m-card { text-align: center; align-items: center; }
.mock--audace .m-h { font-size: 3.6em; line-height: .96; }
.mock--audace .m-nav { border-bottom: 2px solid var(--mFg); padding-bottom: .8em; }
.mock--audace .m-nav nav { color: var(--mFg); font-weight: 700; text-transform: uppercase; }
.mock--minimal .m-hero { grid-template-columns: 1fr; min-height: 0; }
.mock--minimal .m-hero__t { align-items: center; text-align: center; }
.mock--minimal .m-p { margin: 0 auto; }
.mock--minimal .m-stats { justify-content: center; border: 0; padding-top: 0; }
.mock--minimal .m-hero .m-art { aspect-ratio: 16 / 7; }
.mock--minimal .m-h { font-size: 3.4em; }
.mock--brutal .m-nav { padding: .7em .9em; border: 2px solid #111; background: #fff; box-shadow: var(--mSh); }
.mock--brutal .m-nav nav { color: #111; }
.mock--brutal .m-h { font-size: 2.6em; }
.mock--brutal .m-quote { border-width: 2px; border-color: #111; }
.mock--editorial .m-nav { border-bottom: 2px solid var(--mFg); padding-bottom: .8em; }
.mock--editorial .m-nav nav { text-transform: uppercase; letter-spacing: .12em; font-size: .85em; color: var(--mFg); }
.mock--editorial .m-h { font-size: 3.8em; line-height: 1; }
.mock--editorial .m-eyebrow { font: italic 400 1.05em/1 var(--mD); letter-spacing: 0; text-transform: none; }
.mock--editorial .m-cards { gap: 0; border-top: 1px solid var(--mLine); }
.mock--editorial .m-card { border: 0; border-right: 1px solid var(--mLine); padding: 1.2em; }
.mock--editorial .m-card:last-child { border-right: 0; }
.mock--editorial .m-ic { background: transparent; border: 1px solid var(--mLine); color: var(--mFg); }
.mock--luxe .m-h { font-size: 3.3em; line-height: 1.08; }
.mock--luxe .m-eyebrow { letter-spacing: .32em; font-size: .62em; font-weight: 500; }
.mock--luxe .m-nav nav { letter-spacing: .18em; text-transform: uppercase; font-size: .74em; }
.mock--luxe .m-stats b { font-weight: 300; }
.mock--luxe .m-card { background: transparent; }
.mock--doux .m-hero .m-art { border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%; }
.mock--doux .m-ic { border-radius: 50%; }
.mock--doux .m-h { font-size: 3.3em; }

/* Application : écran de téléphone, barre d'état, onglets et bouton flottant */
.m--app { font-size: calc(100cqw / 24); display: flex; flex-direction: column; }
.m-status { display: flex; justify-content: space-between; align-items: center; padding: .85em 1.6em 0; font-size: .72em; font-weight: 600; }
.m-status__r { display: flex; align-items: flex-end; gap: .15em; }
.m-status__r i { width: .25em; background: currentColor; border-radius: .05em; }
.m-status__r i:nth-child(1) { height: .45em; } .m-status__r i:nth-child(2) { height: .65em; } .m-status__r i:nth-child(3) { height: .85em; }
.m-status__r b { width: 1.4em; height: .7em; margin-left: .4em; border: .1em solid currentColor; border-radius: .2em; background: linear-gradient(90deg, currentColor 70%, transparent 70%); background-clip: content-box; padding: .08em; }
.m-apage { flex: 1; min-height: 0; padding: .6em 1.1em 5.2em; display: flex; flex-direction: column; gap: .9em; }
.m-ahead { display: flex; align-items: center; justify-content: space-between; }
.m-ahead .m-b { font-size: 1.3em; }
.m-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--mA); color: var(--mOn); font-style: normal; font-weight: 700; font-size: .9em; flex: none; }
.mock--brutal .m-avatar, .mock--audace .m-avatar { border-radius: 0; }
.m-search { display: flex; align-items: center; gap: .6em; padding: .7em .9em; color: var(--mMut); font-size: .9em; border-radius: var(--mBR); box-shadow: none; }
.m-chips { display: flex; gap: .4em; overflow: hidden; }
.m-chips span { padding: .4em .8em; border-radius: 999px; border: var(--mBd) solid var(--mLine); font-size: .78em; white-space: nowrap; color: var(--mMut); }
.m-chips .is-on { background: var(--mA); color: var(--mOn); border-color: transparent; }
.mock--brutal .m-chips span, .mock--editorial .m-chips span, .mock--luxe .m-chips span, .mock--audace .m-chips span { border-radius: 0; }
.m-art--app { aspect-ratio: 16 / 11; flex: none; }
.m-art__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1em; display: flex; flex-direction: column; align-items: flex-start; gap: .55em; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); color: #fff; }
.m-art__cap b { font: var(--mDW) 1.15em/1.15 var(--mD); letter-spacing: var(--mLS); text-wrap: balance; text-transform: var(--mCase); }
.m-art__cap .m-btn { background: #fff; color: #111; border-color: transparent; box-shadow: none; }
.m-section { display: flex; justify-content: space-between; align-items: baseline; }
.m-section b { font-weight: 600; }
.m-section small { color: var(--mA); }
.m-list { display: grid; gap: .5em; }
.m-row { display: flex; align-items: center; gap: .7em; padding: .7em .8em; font-size: .9em; }
.m-row > div { flex: 1; min-width: 0; }
.m-row b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-mini { display: flex; align-items: center; gap: 1em; padding: .8em 1em; color: var(--mA); }
.m-mini svg { width: 7em; height: 2.4em; }
.m-mini div { color: var(--mFg); }
.m-mini b { font: var(--mDW) 1.3em/1.1 var(--mD); letter-spacing: var(--mLS); }
.m-fab { position: absolute; right: 1.2em; bottom: 4.8em; z-index: 2; width: 2.8em; height: 2.8em; border-radius: 50%; display: grid; place-items: center; background: var(--mA); color: var(--mOn); font-size: 1.1em; font-weight: 700; box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .3); }
.mock--brutal .m-fab, .mock--audace .m-fab { border-radius: 0; border: 2px solid var(--mFg); box-shadow: var(--mSh); }
.m-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); padding: .6em .4em 1.2em; background: color-mix(in srgb, var(--mBg) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--mLine); }
.m-tabs span { display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: .68em; color: var(--mMut); }
.m-tabs svg { width: 1.6em; height: 1.6em; }
.m-tabs .is-on { color: var(--mA); }
.mock--brutal .m-tabs { border-top-width: 2px; }

/* Logiciel : barre latérale, indicateurs, graphiques et tableau */
.m--soft { font-size: calc(100cqw / 66); display: flex; }
.m-side { width: 19%; padding: 1.2em 1em; display: flex; flex-direction: column; gap: .3em; border-right: var(--mBd) solid var(--mLine); background: var(--mSoft); }
.m-side .m-logo { margin-bottom: 1em; font-size: 1em; }
.m-side > span:not(.m-logo):not(.m-side__foot) { display: flex; align-items: center; gap: .6em; padding: .55em .65em; border-radius: var(--mBR); color: var(--mMut); font-size: .9em; white-space: nowrap; overflow: hidden; }
.m-side .is-on { background: var(--mA); color: var(--mOn); }
.m-side__foot { margin-top: auto; display: flex; align-items: center; gap: .6em; }
.m-side__foot .m-avatar { width: 1.8em; height: 1.8em; font-size: .8em; }
.mock--brutal .m-side { background: #fff; }
.mock--luxe .m-side .is-on, .mock--editorial .m-side .is-on { background: transparent; color: var(--mA); box-shadow: inset .2em 0 0 var(--mA); }
.m-main { flex: 1; min-width: 0; padding: 1.1em 1.3em; display: flex; flex-direction: column; gap: .9em; }
.m-top { display: flex; align-items: center; gap: 1em; }
.m-top .m-b { font-size: 1.25em; margin-right: auto; }
.m-search--sm { padding: .45em .8em; font-size: .8em; width: 13em; }
.m-bell { display: inline-flex; width: 2.1em; height: 2.1em; align-items: center; justify-content: center; border-radius: var(--mBR); border: var(--mBd) solid var(--mLine); position: relative; font-style: normal; }
.m-bell::after { content: ""; position: absolute; top: .35em; right: .35em; width: .45em; height: .45em; border-radius: 50%; background: var(--mWarn); }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.m-kpi { position: relative; padding: .8em .9em; overflow: hidden; }
.m-kpi b { display: block; font: var(--mDW) 1.6em/1.1 var(--mD); letter-spacing: var(--mLS); margin: .15em 0; white-space: nowrap; }
.m-kpi em { font-style: normal; font-size: .72em; color: var(--mOk); font-weight: 600; }
.m-kpi svg { position: absolute; right: .7em; bottom: .6em; width: 4.4em; height: 1.5em; color: var(--mA); opacity: .9; }
.m-charts { display: grid; grid-template-columns: 1fr 13em; gap: .7em; flex: 1; min-height: 0; }
.m-chart { padding: .8em .9em; display: flex; flex-direction: column; gap: .5em; min-height: 0; }
.m-chart__h { display: flex; justify-content: space-between; align-items: baseline; }
.m-chart__h b { font-weight: 600; }
.m-bars { flex: 1; min-height: 4em; display: flex; align-items: flex-end; gap: .35em; border-bottom: 1px solid var(--mLine); }
.m-bars i { flex: 1; background: var(--mA); opacity: .35; border-radius: .2em .2em 0 0; transform-origin: bottom; animation: mBar .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms + 200ms); }
.m-bars i:nth-last-child(2) { opacity: .7; }
.m-bars i:last-child { opacity: 1; }
.mock--brutal .m-bars i, .mock--audace .m-bars i, .mock--editorial .m-bars i, .mock--luxe .m-bars i { border-radius: 0; }
@keyframes mBar { from { transform: scaleY(0); } }
.m-donut { padding: .8em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; text-align: center; }
.m-donut svg { width: 5.6em; height: 5.6em; transform: rotate(-90deg); }
.m-donut circle { fill: none; stroke-width: 3.4; }
.m-donut .bg { stroke: var(--mLine); }
.m-donut .val { stroke: var(--mA); stroke-linecap: round; animation: mDonut 1.2s var(--ease) both; }
@keyframes mDonut { from { stroke-dasharray: 0 100; } }
.m-donut b { font: var(--mDW) 1.3em/1 var(--mD); margin-top: -.2em; }
.m-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .86em; overflow: hidden; }
.m-table th { text-align: left; font-weight: 500; color: var(--mMut); font-size: .85em; padding: .55em .9em; border-bottom: var(--mBd) solid var(--mLine); }
.m-table td { padding: .5em .9em; border-top: 1px solid var(--mLine); white-space: nowrap; }
.m-table tr:first-child td { border-top: 0; }
.m-table td:first-child { font-weight: 600; }

/* Typographie cinétique : lignes en contour, une seule pleine */
.fors { padding: 40px 0 70px; overflow: hidden; }
.fors__line {
  font: 800 clamp(52px, 10.5vw, 180px)/1.12 var(--display); letter-spacing: -.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(226, 236, 255, .22);
  will-change: transform;
}
.fors__line--me { color: var(--ion); -webkit-text-stroke: 0; text-shadow: 0 0 60px rgb(var(--ion-rgb) / .35); }

/* Réalisations */
.case--right { justify-content: flex-end; }
.case__name {
  font: 800 clamp(48px, 7.4vw, 120px)/.95 var(--display);
  letter-spacing: -.05em; margin-bottom: 18px;
}
.case__claim {
  font: 500 clamp(18px, 1.7vw, 25px)/1.3 var(--body);
  margin-bottom: 16px; max-width: 30ch; color: var(--text);
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 30px 0 12px; }
.stats div { padding: 18px 20px 16px; border-radius: 14px; background: rgba(8, 11, 18, .5); overflow: hidden; }
.stats div::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--ion), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s;
}
.is-in .stats div::after { transform: none; }
.stats dt { font: 300 10px/1.4 var(--mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.stats dd { font: 500 clamp(24px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.03em; color: var(--ion); font-variant-numeric: tabular-nums; }
.source { font: 300 10.5px var(--mono); color: var(--muted); margin-bottom: 26px; }
.case .btn { margin-top: 24px; }
.stats ~ .btn { margin-top: 0; }

/* Méthode */
.method { position: relative; padding: clamp(100px, 16vh, 180px) var(--gutter); }
.method__head { max-width: 860px; margin-bottom: clamp(44px, 8vh, 84px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps::before {
  content: ""; position: absolute; left: 0; top: -14px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--ion), var(--spark));
  box-shadow: 0 0 12px rgb(var(--ion-rgb) / .7);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}
.steps li { padding: 26px 24px 30px; border-radius: var(--radius); background: rgba(8, 11, 18, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .6s var(--ease); }
.steps li:hover { transform: translateY(-6px); }
.steps__n { display: block; font: 300 11px var(--mono); color: var(--ion); margin-bottom: clamp(30px, 6vh, 64px); }
.steps h3 { font: 500 clamp(16px, 1.45vw, 21px)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 12px; }
.steps p { font-size: .95em; color: #c7ced9; }

/* Contact */
.contact { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px var(--gutter) 90px; }
.contact__copy { width: min(52%, 720px); }
.contact h2 { font-size: clamp(30px, 4.2vw, 68px); margin-bottom: 34px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips legend { font: 300 11px var(--mono); color: var(--muted); letter-spacing: .05em; margin-bottom: 10px; padding: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: block; padding: 10px 15px; cursor: pointer; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(5, 7, 12, .55);
  font: 400 12px var(--mono); transition: border-color .2s, background .2s, color .2s, transform .3s var(--ease);
}
.chips label:hover span { border-color: var(--ion); transform: translateY(-1px); }
.chips input:checked + span { background: var(--ion); border-color: var(--ion); color: var(--ion-on, var(--ink)); box-shadow: 0 0 18px rgb(var(--ion-rgb) / .35); }
.chips input:focus-visible + span { outline: 2px solid var(--ion); outline-offset: 3px; }
.controls .chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 11.5px; }
.controls .chips span svg { width: 12px; height: 12px; flex: none; opacity: .8; }
.controls .btn + .btn { margin-top: 8px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font: 300 11px var(--mono); color: var(--muted); letter-spacing: .05em; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(5, 7, 12, .6); color: var(--text); font: 400 16px/1.45 var(--body); resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #8390a3; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ion); box-shadow: 0 0 0 3px rgb(var(--ion-rgb) / .16); }
.letter {
  margin: 4px 0 20px; padding: 14px 18px 16px 20px; border-radius: 12px;
  background: rgba(8, 11, 18, .5); border-left: 2px solid var(--ion);
  font: 300 11.5px/1.7 var(--mono); color: var(--muted);
  max-height: 0; opacity: 0; overflow: hidden; padding-block: 0; margin-block: 0;
  transition: max-height .7s var(--ease), opacity .5s, padding .5s var(--ease), margin .5s var(--ease);
}
.letter.is-on { max-height: 320px; opacity: 1; padding-block: 14px 16px; margin-block: 4px 20px; }
.letter::before { border-radius: 12px; }
.letter__line { display: flex; gap: 12px; }
.letter__line span { min-width: 44px; opacity: .55; }
.letter__line b { font-weight: 400; color: var(--text); }
.letter__body { margin-top: 8px; white-space: pre-wrap; color: var(--text-2); }
.letter__body::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--ion); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.brief__error { color: #ff9c87; font-size: .92em; margin-bottom: 14px; }
.brief__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief.is-busy .btn--solid { opacity: .7; pointer-events: none; }
.brief__done {
  display: none; padding: 30px 24px; border-radius: var(--radius); text-align: center;
  background: rgba(8, 11, 18, .55); border: 1px solid rgb(var(--ion-rgb) / .35);
  box-shadow: 0 0 60px rgb(var(--ion-rgb) / .12);
}
.brief.is-sent > :not(.brief__done) { display: none; }
.brief.is-sent .brief__done { display: block; animation: letterIn .6s var(--ease) both; }
.brief__done svg { display: block; width: 52px; height: 52px; margin: 0 auto 14px; fill: none; stroke: var(--ion); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgb(var(--ion-rgb) / .7)); }
.brief__done svg circle, .brief__done svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) .15s forwards; }
.brief__done svg path { animation-delay: .6s; animation-duration: .45s; }
.brief__done h3 { font: 500 clamp(20px, 2vw, 28px)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.brief__done h3 span { color: var(--ion); }
.brief__done p { color: var(--text-2); margin-bottom: 20px; }
.brief__note { margin-top: 16px; font-size: .88em; color: var(--muted); }
.brief__note a { color: var(--ion); }

/* Pied de page */
.foot { padding: 0 var(--gutter) 40px; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(5, 7, 12, .85)); }
.foot__mark {
  position: relative;
  font: 800 clamp(64px, 18.6vw, 340px)/1 var(--display);
  letter-spacing: -.06em; text-align: center; margin: 24px 0; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(226, 236, 255, .2), rgba(226, 236, 255, .02));
  -webkit-background-clip: text;
  background-clip: text;
}
.foot__mark::after {
  content: attr(data-t); position: absolute; inset: 0;
  color: var(--ion); text-shadow: 0 0 40px rgb(var(--ion-rgb) / .6);
  -webkit-mask-image: radial-gradient(circle 240px at var(--x, -999px) var(--y, -999px), #000, transparent);
  mask-image: radial-gradient(circle 240px at var(--x, -999px) var(--y, -999px), #000, transparent);
}
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font: 300 11px var(--mono); color: var(--muted);
}
.foot__row time { color: var(--ion); font-variant-numeric: tabular-nums; }
.foot__top { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .3s, color .3s; }
.foot__top:hover { border-color: var(--ion); color: var(--ion); }

/* Apparitions */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.steps li:nth-child(2) { transition-delay: .08s; }
.steps li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4) { transition-delay: .24s; }

/* Grand écran : titre et commandes à gauche, aperçu fixe à droite sur toute la hauteur */
@media (min-width: 901px) {
  .studio { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
  .studio__grid { display: contents; }
  .studio__head { grid-column: 1; grid-row: 1; margin-bottom: 26px; }
  .controls { grid-column: 1; grid-row: 2; }
  .stage { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

/* Écrans moyens : la navigation se resserre, le rail disparaît */
@media (max-width: 1180px) {
  .nav__links a:nth-child(6) { display: none; }
  .rail { display: none; }
}

/* Tablette et téléphone : la forme passe en haut, le texte en bas */
@media (max-width: 900px) {
  .nav__links, .hud, .hero__meta, .hero__cue { display: none; }
  .nav { top: 10px; padding: 7px 7px 7px 14px; }
  .nav__cta { padding: 9px 13px; font-size: 10px; }
  .hero__inner { padding-bottom: 34px; }
  .hero__lead { margin-bottom: 16px; }
  .hero__field { flex-direction: column; border-radius: 22px; gap: 6px; }
  .hero__field input { width: 100%; }
  .hero__title { --size: clamp(44px, 14.5vw, 96px); }

  .brand { min-height: 0; padding: 60vh var(--gutter) 70px; align-items: flex-end; }
  .panel, .case { min-height: 0; padding: 62vh var(--gutter) 70px; align-items: flex-end; justify-content: flex-start; }
  .panel::before { top: 34vh; left: auto; right: var(--gutter); font-size: 120px; transform: none; animation: none; }
  .panel__copy, .case__copy, .contact__copy, .brand__copy { width: 100%; }
  .panel__copy, .case__copy, .brand__copy {
    padding: 22px 18px; border-radius: var(--radius);
    background: rgba(5, 7, 12, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
  }

  .studio { padding-top: 90px; }
  .studio__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stage {
    order: 1; position: sticky; top: 62px; z-index: 3; min-height: 0; height: 40vh; max-height: none; padding: 8px 0;
    background: linear-gradient(180deg, rgba(5, 7, 12, .92) 78%, transparent);
  }
  .stage__rig { height: 100%; transform: none; }
  .stage__rig::before { display: none; }
  .device { width: auto; max-width: 100%; height: auto; }
  .device--site, .device--soft { width: min(100%, 60vh); }
  .device--app { height: 100%; width: auto; aspect-ratio: 9 / 18.2; max-width: none; border-radius: 24px; border-width: 3px; }
  .device--app .device__screen { height: 100%; aspect-ratio: auto; }
  .float { display: none; }
  .controls { order: 2; padding: 18px; background: rgba(5, 7, 12, .72); border: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; padding-left: 20px; }
  .steps::before { top: 0; left: 0; width: 1px; height: 100%; transform: scaleY(var(--progress, 0)); transform-origin: top; background: linear-gradient(180deg, var(--ion), var(--spark)); }
  .steps li { padding: 22px 18px; }
  .steps__n { margin-bottom: 14px; }
  .contact { padding-top: 46vh; }
  .brief { padding: 20px 18px; border-radius: var(--radius); background: rgba(5, 7, 12, .72); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .foot__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .brief__row { grid-template-columns: 1fr; gap: 0; }
  .ticker__label { padding-inline: 16px; font-size: 10px; }
  .logo { font-size: 16px; }
  .logo svg { width: 26px; height: 26px; }
  .letters li { grid-template-columns: 42px 1fr; }
  .panel::before { font-size: 90px; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; flex-wrap: wrap; }
  .ticker__track ul[aria-hidden] { display: none; }
  .js [data-reveal], .js .hero__title .ch, .js [data-reveal] .w, .js .hero__meta li { opacity: 1; transform: none; filter: none; transition: none; }
  .m-in, .is-live .hero__title em .ch, .float, .stage__rig::before, .pulse, .hero__cue i::after, .letter__body::after { animation: none; }
  .device.is-building::after { display: none; }
  .boot__mark path, .boot__mark circle { animation: none; stroke-dashoffset: 0; transform: none; }
  .btn, .btn::before, .btn span i, .nav__cta span i { transition: none; }
  .panel::before { animation: none; }
}
