/* Bunsh (ex-Doublure). Une page blanche traversée de lumière : azur, cyan, violet, flous, jamais de fond plein.
   Le motif de la marque : deux séries de disques concentriques face à face, l'original et sa doublure.
   Ce même motif, en petit, sert d'indicateur partout où quelque chose est en cours. */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --paper: #fafbff;
  --surface: #ffffff;
  --raised: #f0f3fa;
  --ink: #0b1020;
  --text: #0b1020;
  --text-2: #4a5468;
  --text-3: #8690a6;
  --hair: rgba(11, 16, 32, .07);
  --hair-2: rgba(11, 16, 32, .13);
  --azure: #1f6bff;
  --cyan: #19d8ff;
  --violet: #8f6bff;
  --mint: #4fe6c1;
  --blue: var(--azure);
  --blue-hi: var(--azure);
  --green: #12b76a;
  --red: #e5484d;
  --amber: #c98a00;
  --light: linear-gradient(100deg, var(--azure), var(--violet) 55%, var(--cyan));
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--hair), 0 14px 40px rgba(24, 48, 130, .07);
  --r-xl: 28px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);       /* sortie longue : entrées, feuilles */
  --ease-io: cubic-bezier(.65, 0, .35, 1);    /* aller-retour : boucles */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--azure); text-decoration: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.note { color: var(--text-2); font-size: 13px; }
.note:empty { display: none; }
.note.error, .error { color: var(--red); }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -.045em; color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--azure); font-size: 13px; cursor: pointer; text-align: left; align-self: flex-start; }
.linkish:hover { text-decoration: underline; }
.grad { background: var(--light); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Le signal « en cours » : des cercles qui partent du centre ---- */
.pulse { position: relative; width: 28px; height: 28px; flex: none; display: inline-block; }
.pulse::before, .pulse::after, .pulse i { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--azure); opacity: 0; animation: ripple 2.1s cubic-bezier(.2, .6, .35, 1) infinite; }
.pulse::after { animation-delay: .7s; border-color: var(--violet); }
.pulse i { animation-delay: 1.4s; border-color: var(--cyan); }
.pulse.small { width: 16px; height: 16px; }
.pulse.big { width: 56px; height: 56px; }
@keyframes ripple { 0% { transform: scale(.15); opacity: 0; } 25% { opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); display: inline-block; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; opacity: .9; }
@keyframes spin { to { transform: rotate(1turn); } }
.boot { min-height: 100vh; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; color: var(--text-2); font-size: 14px; }
/* Barre de progression des envois et des actions : en haut, toujours au même endroit. */
.bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s .2s; }
.bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--light); transition: transform .4s var(--ease); }
.bar.on { opacity: 1; transition: opacity .1s; }
.bar.on:not([data-p]) i { animation: creep 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes creep { to { transform: scaleX(.9); } }

/* ---- Boutons ---- */
.btn { position: relative; overflow: hidden; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 0 0 1px var(--hair-2), 0 1px 2px rgba(11, 16, 32, .05); transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .25s; }
.btn:hover { box-shadow: 0 0 0 1px rgba(11, 16, 32, .22), 0 6px 18px rgba(24, 48, 130, .1); }
.btn:active { transform: scale(.97); }
.btn.primary, .btn.dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 22px rgba(11, 16, 32, .2); }
/* Un reflet de lumière traverse le bouton principal au survol. */
.btn.primary::after, .btn.dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(120, 170, 255, .55) 48%, rgba(180, 140, 255, .45) 54%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn.primary:hover::after, .btn.dark:hover::after { transform: translateX(120%); }
.btn.primary:hover, .btn.dark:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 30px rgba(31, 107, 255, .3); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.big { height: 56px; padding: 0 32px; font-size: 17px; }
.btn.wide { width: 100%; height: 52px; border-radius: 16px; font-size: 16px; font-weight: 600; justify-content: space-between; padding: 0 18px; }
.btn.wide small { font-weight: 500; font-size: 13px; opacity: .72; font-variant-numeric: tabular-nums; }
.btn:disabled { opacity: .38; cursor: default; transform: none; box-shadow: none; }
.btn[aria-busy=true] { opacity: 1; cursor: progress; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, transform .15s var(--ease); }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.glass { background: rgba(11, 16, 32, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }

/* ---- Champs ---- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
input:not([type=checkbox]):not([type=file]), select, textarea { background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--hair-2); border-radius: var(--r-sm); padding: 10px 12px; color: var(--text); font-size: 15px; outline: none; width: 100%; transition: box-shadow .2s; }
input:not([type=checkbox]):not([type=file]):focus, select:focus, textarea:focus { box-shadow: 0 0 0 1.5px var(--azure), 0 0 0 5px rgba(31, 107, 255, .14); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%234a5468' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type=file] { font-size: 13px; color: var(--text-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields { display: flex; flex-direction: column; gap: 10px; }
.fields .hint { display: block; margin-top: 6px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.check input { margin: 1px 0 0; width: 18px; height: 18px; accent-color: var(--azure); flex: none; }
.toggle { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); color: var(--text); font-size: 14px; cursor: pointer; }
.toggle span { display: flex; flex-direction: column; gap: 2px; }
.toggle small { color: var(--text-3); font-size: 12px; }
.toggle input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: rgba(11, 16, 32, .16); position: relative; flex: none; cursor: pointer; transition: background .3s var(--ease); margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(11, 16, 32, .25); transition: transform .35s var(--ease), width .2s; }
.toggle input:active::after { width: 26px; }
.toggle input:checked { background: var(--azure); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:checked:active::after { transform: translateX(14px); }
/* Sélecteur à segments : la pastille blanche glisse d'un choix à l'autre (posée par motion.js). */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; background: rgba(11, 16, 32, .06); border-radius: 12px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--text-2); padding: 0 14px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .25s; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--ink); }
.seg:not(.live) button.on { background: #fff; box-shadow: 0 1px 3px rgba(11, 16, 32, .14); }
.seg .thumb { position: absolute; top: 3px; left: 0; height: calc(100% - 6px); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(11, 16, 32, .14), 0 0 0 1px var(--hair); pointer-events: none; }
.seg.small button { height: 28px; padding: 0 12px; }

/* ================= Accueil public ================= */
.landing { position: relative; overflow: clip; padding-top: 14px; }
.landing > *:not(.halo) { position: relative; }
/* Le halo : deux séries de disques face à face, floues, qui respirent. */
.halo { position: absolute; top: 0; left: 0; right: 0; height: 1180px; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.rings { position: absolute; top: 330px; width: 50%; height: 0; }
.rings.left { left: 0; }
.rings.right { right: 0; }
.rings i { position: absolute; top: 0; width: var(--w); height: var(--h); margin-top: calc(var(--h) / -2); border-radius: 50%; filter: blur(var(--b, 10px)); }
.rings.left i { right: 0; background: radial-gradient(closest-side at 58% 50%, rgba(255, 255, 255, .0) 30%, rgba(25, 216, 255, .5) 62%, rgba(31, 107, 255, .78) 82%, rgba(31, 107, 255, 0) 100%); }
.rings.right i { left: 0; background: radial-gradient(closest-side at 42% 50%, rgba(255, 255, 255, .0) 30%, rgba(143, 107, 255, .46) 62%, rgba(79, 230, 193, .7) 84%, rgba(79, 230, 193, 0) 100%); }
.rings i:nth-child(1) { --w: min(92vw, 1040px); --h: 1180px; --b: 26px; opacity: .5; }
.rings i:nth-child(2) { --w: min(70vw, 780px); --h: 900px; --b: 18px; opacity: .62; }
.rings i:nth-child(3) { --w: min(46vw, 520px); --h: 610px; --b: 12px; opacity: .74; }
.rings i:nth-child(4) { --w: min(24vw, 270px); --h: 330px; --b: 8px; opacity: .85; }
.core { position: absolute; top: 330px; left: 50%; width: min(96vw, 900px); height: 620px; margin: -310px 0 0 calc(min(96vw, 900px) / -2); background: radial-gradient(closest-side, rgba(255, 255, 255, .96) 38%, rgba(255, 255, 255, 0)); }
/* Filets verticaux de lumière, comme des repères de cadrage. */
.beams { position: absolute; inset: 0 0 auto; height: 900px; display: flex; justify-content: center; gap: clamp(34px, 6.2vw, 78px); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent); }
.beams i { width: 1px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.pill-nav { position: sticky; top: 14px; z-index: 30; margin: 0 auto; width: min(1120px, calc(100% - 28px)); height: 58px; padding: 0 9px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 999px; background: rgba(255, 255, 255, .62); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(11, 16, 32, .06), 0 14px 44px rgba(24, 48, 130, .1); transition: width .6s var(--ease), box-shadow .4s; }
.pill-nav.tight { width: min(760px, calc(100% - 28px)); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(11, 16, 32, .08), 0 18px 50px rgba(24, 48, 130, .16); }
.pill-nav nav { display: flex; gap: 4px; }
.pill-nav nav a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 999px; transition: color .2s, background .3s; }
.pill-nav nav a:hover { color: var(--ink); }
.pill-nav nav a.on { color: var(--ink); background: rgba(11, 16, 32, .06); }
.hero { text-align: center; padding: 96px 24px 0; max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: clamp(38px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -.05em; font-weight: 500; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: inline-block; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 56ch; margin: 26px auto 32px; text-wrap: pretty; }
.login { display: flex; gap: 8px; max-width: 470px; margin: 0 auto; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--hair-2), 0 18px 50px rgba(24, 48, 130, .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: box-shadow .3s; }
.login:focus-within { box-shadow: 0 1px 0 #fff inset, 0 0 0 1.5px var(--azure), 0 0 0 6px rgba(31, 107, 255, .13), 0 18px 50px rgba(24, 48, 130, .14); }
.login input { background: transparent !important; box-shadow: none !important; border-radius: 999px !important; padding: 0 16px !important; height: 46px; }
.login .btn { height: 46px; padding: 0 24px; }
.hero .note { margin-top: 12px; }
/* L'éventail : la même prise, déclinée. La carte du centre est la vidéo d'origine. */
.fan { display: flex; justify-content: center; align-items: flex-end; margin: 64px auto 0; padding: 0 12px; perspective: 1400px; }
.fan .card { margin: 0 -22px; width: clamp(120px, 19vw, 232px); border-radius: clamp(16px, 2.2vw, 28px); overflow: hidden; position: relative; background: var(--raised); box-shadow: 0 30px 70px rgba(24, 48, 130, .22), 0 0 0 1px rgba(255, 255, 255, .7); will-change: transform; }
.fan img, .fan video { display: block; width: 100%; aspect-ratio: 5 / 6; height: auto; object-fit: cover; object-position: 50% 0; background: var(--raised); }
/* Au survol d'une carte, elle passe devant et les autres s'effacent un peu : on compare un visage à la fois. */
.fan video, .fan img { transition: filter .5s var(--ease), opacity .5s var(--ease); }
.fan:hover .card:not(:hover) video, .fan:hover .card:not(:hover) img { filter: saturate(.65); opacity: .7; }
.fan .card:hover { z-index: 5; }
.fan figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(11, 16, 32, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fan figcaption b { font-weight: 600; }
.fan .c1 { transform: rotate(-11deg) translateY(34px); z-index: 1; }
.fan .c2 { transform: rotate(-5.5deg) translateY(10px); z-index: 2; }
.fan .c3 { z-index: 3; width: clamp(136px, 21vw, 258px); box-shadow: 0 40px 90px rgba(24, 48, 130, .3), 0 0 0 3px #fff; }
.fan .c4 { transform: rotate(5.5deg) translateY(10px); z-index: 2; }
.fan .c5 { transform: rotate(11deg) translateY(34px); z-index: 1; }
.fan-note { margin-top: 44px; font-size: 13px; color: var(--text-3); }
.manifesto { max-width: 1040px; margin: 0 auto; padding: 150px 24px 140px; text-align: center; }
.manifesto p { font-size: clamp(30px, 5vw, 60px); line-height: 1.1; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.manifesto .w { color: rgba(11, 16, 32, .14); transition: color .3s; }
.manifesto .w.lit { color: var(--ink); }
.block { max-width: 1120px; margin: 0 auto; padding: 0 24px 130px; }
.block.narrow { max-width: 760px; }
.block h2, .how h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; font-weight: 500; max-width: 20ch; margin-bottom: 36px; text-wrap: balance; }
.block .sub { color: var(--text-2); margin: -20px 0 32px; max-width: 60ch; }
.bento .b, .price, .block details { background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--r-xl); }

/* Comment ça marche : la démonstration reste à l'écran et se joue au défilement. */
.how { max-width: 1120px; margin: 0 auto; padding: 0 24px 130px; }
.how-pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; min-height: min(100vh, 780px); }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.how-steps li { position: relative; padding: 18px 20px 18px 24px; border-radius: var(--r-lg); opacity: .38; transition: opacity .5s var(--ease), background .5s, box-shadow .5s; }
.how-steps li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--light); transform: scaleY(0); transform-origin: 50% 0; transition: transform .6s var(--ease); }
.how-steps li.on { opacity: 1; background: var(--glass); box-shadow: var(--shadow); }
.how-steps li.on::before { transform: scaleY(1); }
.how-steps h3 { font-size: 20px; margin-bottom: 6px; }
.how-steps p { color: var(--text-2); }
.demo { position: relative; }
.demo::before { content: ""; position: absolute; inset: -12% -8%; background: radial-gradient(closest-side at 30% 40%, rgba(25, 216, 255, .32), transparent), radial-gradient(closest-side at 72% 62%, rgba(143, 107, 255, .3), transparent); filter: blur(30px); }
.demo-win { position: relative; padding: 18px; border-radius: 30px; background: rgba(255, 255, 255, .78); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--hair), 0 40px 100px rgba(24, 48, 130, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.demo-src { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--raised); }
.demo-src img, .demo-out img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
.chip { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(11, 16, 32, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.demo-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.demo-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.demo-faces { display: flex; gap: 10px; }
.df { position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; }
.df img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%; display: block; box-shadow: 0 0 0 1px var(--hair-2); }
.df::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--azure); opacity: var(--sel, 1); transform: scale(calc(.8 + .2 * var(--sel, 1))); }
.df i { position: absolute; top: -5px; right: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--azure); color: #fff; font: 700 11px/19px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; }
.demo-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.demo-out figure { margin: 0; position: relative; aspect-ratio: 9 / 15; border-radius: 12px; overflow: hidden; background: var(--raised); }
.demo-out figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(11, 16, 32, .7)); }
.demo-out .veil { display: none; }
.motion .demo-out .veil { position: absolute; inset: 0; background: rgba(250, 251, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; }
.demo-out .prog { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(11, 16, 32, .1); overflow: hidden; }
.demo-out .prog b { display: block; height: 100%; background: var(--light); transform-origin: 0 50%; transform: scaleX(0); }
.demo-cta { margin-top: auto; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 14px; }
.demo-cta small { opacity: .7; font-weight: 500; font-variant-numeric: tabular-nums; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* Une tache de lumière suit le pointeur dans chaque carte. */
.bento .b, .price { position: relative; overflow: hidden; }
.bento .b::before, .price::before { content: ""; position: absolute; width: 420px; height: 420px; left: calc(var(--mx, -400px) - 210px); top: calc(var(--my, -400px) - 210px); background: radial-gradient(closest-side, rgba(31, 107, 255, .16), rgba(143, 107, 255, .1) 45%, transparent); opacity: 0; transition: opacity .4s; pointer-events: none; }
.bento .b:hover::before, .price:hover::before { opacity: 1; }
.bento .b { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; justify-content: flex-end; }
.bento .b > *, .price > * { position: relative; }
.bento .wide { grid-column: span 2; }
.bento h3 { font-size: 20px; }
.bento .wide h3 { font-size: 26px; }
.bento p, .price p, .block details p { color: var(--text-2); font-size: 15px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.price { padding: 28px; display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--ease), box-shadow .5s; }
.price:hover { transform: translateY(-6px); }
.price h3 { font-size: 16px; font-weight: 500; color: var(--text-2); }
.price strong { font-size: 54px; letter-spacing: -.05em; font-weight: 500; line-height: 1.05; margin-top: 18px; font-variant-numeric: tabular-nums; }
.price span { font-weight: 500; }
.price p { margin-top: 18px; }
.price.hot { background: var(--ink); color: #fff; padding-top: 44px; box-shadow: 0 40px 90px rgba(31, 107, 255, .28); }
.price.hot::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; background: radial-gradient(closest-side, rgba(31, 107, 255, .75), rgba(143, 107, 255, .4) 50%, transparent); filter: blur(24px); pointer-events: none; }
.price.hot h3, .price.hot p { color: rgba(255, 255, 255, .74); }
.block details { padding: 0 24px; margin-bottom: 10px; border-radius: var(--r-lg); overflow: hidden; }
.block summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.block summary::-webkit-details-marker { display: none; }
.block summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 400; color: var(--text-3); transition: transform .4s var(--ease); }
.block details[open] summary::after { transform: rotate(45deg); }
.block details p { padding: 0 0 22px; max-width: 62ch; }
.cta { position: relative; text-align: center; padding: 120px 24px 170px; overflow: hidden; }
.cta > *:not(.cta-rings) { position: relative; }
.cta h2 { font-size: clamp(30px, 5vw, 58px); letter-spacing: -.045em; font-weight: 500; max-width: 24ch; margin: 0 auto 36px; text-wrap: balance; }
.cta-rings { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.cta-rings .rings { top: 50%; }
.cta-rings .core { top: 50%; height: 440px; margin-top: -220px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--hair); }
.legal { display: flex; gap: 20px; font-size: 13px; }
.legal a { color: var(--text-2); }
.legal a:hover { color: var(--ink); }

/* ================= Atelier ================= */
/* Derrière l'atelier : trois lueurs très douces qui dérivent lentement. */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .26; animation: drift 26s var(--ease-io) infinite alternate; }
.aura i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -220px; background: var(--cyan); }
.aura i:nth-child(2) { width: 560px; height: 560px; right: -180px; top: 18%; background: var(--violet); opacity: .24; animation-duration: 32s; animation-delay: -8s; }
.aura i:nth-child(3) { width: 520px; height: 520px; left: 34%; bottom: -320px; background: var(--azure); opacity: .22; animation-duration: 38s; animation-delay: -15s; }
@keyframes drift { to { transform: translate3d(70px, 50px, 0) scale(1.14); } }
.shell { position: relative; display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.shell > .main { position: relative; z-index: 1; }
.side { position: sticky; top: 0; z-index: 2; height: 100vh; padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 26px; border-right: 1px solid var(--hair); background: rgba(255, 255, 255, .5); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.side .brand { padding: 0 10px; }
.nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.nav button { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text-2); cursor: pointer; font-size: 14px; font-weight: 500; text-align: left; transition: color .25s; }
.nav button span { white-space: nowrap; }
.nav button:hover { color: var(--ink); }
.nav button.on { color: var(--ink); }
.nav button .ico { transition: color .3s, transform .4s var(--ease); }
.nav button.on .ico { color: var(--azure); transform: scale(1.08); }
.nav .dot { margin-left: auto; }
/* La pastille de la section active glisse d'un lien à l'autre. */
.nav-ind { position: absolute; left: 0; right: 0; top: 0; height: 40px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 6px 18px rgba(24, 48, 130, .08); pointer-events: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.wallet { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: var(--r); border: 0; cursor: pointer; text-align: left; color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(31, 107, 255, .22); transition: transform .2s var(--ease); }
.wallet::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(25, 216, 255, .9), rgba(31, 107, 255, .7) 45%, rgba(143, 107, 255, .0)); filter: blur(14px); animation: drift 12s var(--ease-io) infinite alternate; }
.wallet > * { position: relative; }
.wallet:active { transform: scale(.98); }
.wallet span { font-size: 13px; opacity: .9; }
.wallet b { font-size: 22px; letter-spacing: -.03em; margin-right: 4px; display: inline-block; }
.wallet small { font-size: 12px; font-weight: 600; opacity: .85; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-left: 10px; font-size: 12px; color: var(--text-3); }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; }
.page { padding: 34px 40px 110px; max-width: 1320px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1, .board-head h1 { font-size: 30px; letter-spacing: -.04em; font-weight: 500; }
.page-head .sub { flex-basis: 100%; color: var(--text-2); margin-top: -8px; max-width: 70ch; }
.page-actions { margin-left: auto; display: flex; gap: 8px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin: 44px 0 14px; }
.row-head h2 { font-size: 20px; }
.panel, .start, .group, .sheet-card, .list-row, .scene, .adbar, .libcard, .empty { background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* Accueil */
.hello { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; font-weight: 500; margin: 18px 0 26px; max-width: 16ch; }
.drop { position: relative; overflow: hidden; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 50px 24px; border-radius: var(--r-xl); cursor: pointer; color: var(--text-2); font-size: 14px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: box-shadow .3s, transform .4s var(--ease); }
.drop::before { content: ""; position: absolute; left: 50%; top: -60%; width: 640px; height: 420px; margin-left: -320px; background: radial-gradient(closest-side, rgba(25, 216, 255, .34), rgba(143, 107, 255, .16) 55%, transparent); filter: blur(20px); transition: transform .8s var(--ease), opacity .4s; pointer-events: none; }
.drop > * { position: relative; }
.drop:hover::before, .drop.over::before { transform: translateY(26%) scale(1.15); }
.drop:hover { box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(31, 107, 255, .35), 0 20px 50px rgba(24, 48, 130, .12); }
.drop.over { box-shadow: 0 0 0 2px var(--azure), 0 0 0 8px rgba(31, 107, 255, .14); transform: scale(1.01); }
.drop .ico { width: 30px; height: 30px; color: var(--azure); margin-bottom: 8px; transition: transform .5s var(--ease); }
.drop:hover .ico, .drop.over .ico { transform: translateY(-5px); }
.drop b { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
/* La carte de départ : déposer une vidéo, ou repartir d'un mouvement déjà importé. */
.composer { border-radius: var(--r-xl); background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; transition: box-shadow .3s; }
.composer:hover, .composer:focus-within { box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(31, 107, 255, .3), 0 24px 60px rgba(24, 48, 130, .12); }
.composer .drop { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.composer .drop:hover { box-shadow: none; }
.composer .drop.over { box-shadow: inset 0 0 0 2px var(--azure); transform: none; }
.composer-foot { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--hair); background: rgba(255, 255, 255, .5); }
.composer-foot > span { color: var(--text-3); font-size: 13px; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip-motion { flex: none; display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair-2); cursor: pointer; text-align: left; max-width: 220px; transition: transform .35s var(--ease), box-shadow .25s; }
.chip-motion:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--azure), 0 10px 24px rgba(31, 107, 255, .16); }
.chip-motion:active { transform: scale(.97); }
.chip-motion .thumb { width: 34px; height: 46px; border-radius: 9px; overflow: hidden; background: #0b1020; flex: none; }
.chip-motion .thumb video, .chip-motion .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip-motion > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.chip-motion b { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-motion small { font-size: 11px; color: var(--text-3); }
/* Créer : ce qui va être lancé, une tuile par variante, avant de payer quoi que ce soit. */
.launch { margin-bottom: 30px; padding: 18px 20px 12px; border-radius: var(--r-xl); background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.launch .board-head { margin-bottom: 12px; }
.launch .board-head h1 { font-size: 20px; }
.launch .strip { grid-auto-columns: 132px; }
.tile.ghost { cursor: default; }
.tile.ghost .media video { filter: saturate(.75); opacity: .86; }
.tile.ghost .who { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -40px 0 0 -29px; border-radius: 50%; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(11, 16, 32, .4); display: grid; place-items: center; color: var(--text-2); }
.tile.ghost .who img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* Les états vides portent le motif de la marque. */
.empty { position: relative; overflow: hidden; }
.empty::before { content: ""; position: absolute; left: 50%; top: -150px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(31, 107, 255, 0) 0 26px, rgba(31, 107, 255, .1) 27px 28px); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent); mask-image: radial-gradient(closest-side, #000 20%, transparent); pointer-events: none; }
.empty > * { position: relative; }
/* Pendant un envoi : la zone dit où on en est, en pourcentage puis en étape. */
.drop.busy { cursor: progress; }
.drop .upl { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(360px, 100%); }
.meter { width: 100%; height: 6px; border-radius: 6px; background: rgba(11, 16, 32, .08); overflow: hidden; }
.meter b { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--light); transition: transform .3s linear; border-radius: 6px; }
.meter.wait b { transform: none; width: 40%; animation: slide 1.2s var(--ease-io) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.quick button { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 16px 18px; border: 0; border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--shadow); color: var(--text); cursor: pointer; transition: transform .4s var(--ease), box-shadow .3s; }
.quick button:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(31, 107, 255, .3), 0 18px 44px rgba(24, 48, 130, .12); }
.quick button:active { transform: scale(.98); }
.quick .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--azure); }
.quick b { font-weight: 600; }
.quick span { color: var(--text-3); font-size: 13px; }
.start { margin-top: 44px; padding: 26px; border-radius: var(--r-xl); }
.start h2 { font-size: 20px; margin-bottom: 16px; }
.start ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.start li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair); }
.start li > i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--text-2); flex: none; }
.start li.done > i { background: var(--green); box-shadow: none; color: #fff; font-weight: 700; }
.start li.done span { color: var(--text-3); text-decoration: line-through; }
.start li .btn { margin-left: auto; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 164px; gap: 12px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }

/* Créer */
.create { display: grid; grid-template-columns: 392px minmax(0, 1fr); min-height: 100vh; }
.rail { border-right: 1px solid var(--hair); padding: 22px 20px 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(255, 255, 255, .42); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.rail > * { flex-shrink: 0; }
.rail > .seg { align-self: stretch; }
.rail > .seg button { flex: 1; }
.step { font-size: 15px; display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
h2.step + .faces { margin-top: -10px; }
.step small { font-weight: 400; color: var(--text-3); font-size: 13px; }
.step > span:not([hidden]), .step-inline > span:not([hidden]) { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: inline-grid; place-items: center; font-weight: 600; flex: none; }
.step-inline { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.stage { position: relative; width: 100%; height: 190px; border-radius: var(--r-lg); border: 0; box-shadow: inset 0 0 0 1.5px var(--hair-2); background: rgba(255, 255, 255, .6); overflow: hidden; cursor: pointer; padding: 0; display: grid; place-items: center; color: var(--text-2); transition: box-shadow .3s; }
.stage:not(.filled):hover { box-shadow: inset 0 0 0 1.5px var(--azure); }
.stage.filled { height: auto; aspect-ratio: 4 / 5; max-height: 42vh; box-shadow: 0 18px 44px rgba(24, 48, 130, .16); }
.stage video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.stage-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; text-align: center; font-size: 13px; }
.stage-empty .ico { width: 26px; height: 26px; margin-bottom: 6px; color: var(--azure); }
.stage-empty b { color: var(--text); font-weight: 600; font-size: 15px; }
.stage .meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(11, 16, 32, .55); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); font-size: 13px; color: #fff; }
.tokens { display: flex; padding-left: 8px; }
.token { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff; background: var(--raised); margin-left: -8px; display: grid; place-items: center; color: var(--text-2); animation: pop .45s var(--ease) both; }
.token img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.stage .meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage .meta > span:last-child { color: rgba(255, 255, 255, .72); margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage .clear { position: absolute; top: 10px; right: 10px; }
.faces { display: flex; gap: 12px; overflow-x: auto; padding: 6px 4px 6px; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-2); font-size: 12px; position: relative; }
.face .round { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--raised); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--hair-2); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.face:hover .round { transform: scale(1.05); }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.face > span:last-child { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.face[aria-selected=true] .round { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--azure), 0 10px 22px rgba(31, 107, 255, .3); }
.face[aria-selected=true] > span:last-child { color: var(--ink); font-weight: 600; }
.face .tick { position: absolute; top: -2px; right: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--azure); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); animation: pop .45s var(--ease) both; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.18); } }
.face:active .round { transform: scale(.94); }
.face.add .round { box-shadow: inset 0 0 0 1.5px var(--hair-2); background: transparent; color: var(--text-2); }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 6px 8px; }
.place { aspect-ratio: 3 / 4; border-radius: var(--r-sm); overflow: hidden; border: 0; padding: 0; background: var(--raised); cursor: pointer; color: var(--text-2); display: grid; place-items: center; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.place img { width: 100%; height: 100%; object-fit: cover; }
.place[aria-selected=true] { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--azure); }
.disclosure { border-top: 1px solid var(--hair); padding-top: 12px; }
.disclosure summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 2px 0; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary small { color: var(--text-3); font-size: 13px; display: inline-flex; align-items: center; }
.disclosure summary small::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(-45deg); margin-left: 10px; transition: transform .4s var(--ease); }
.disclosure[open] summary small::after { transform: rotate(45deg); }
.disclosure { overflow: hidden; }
.settings { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.setting { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.go { margin: auto -20px 0; padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; bottom: 0; background: rgba(250, 251, 255, .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--hair); z-index: 4; }
#estimate.calc { opacity: .5; }
.board { padding: 26px 32px 110px; min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }

/* Tuiles vidéo */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: #0b1020; border: 0; padding: 0; text-align: left; cursor: pointer; color: #fff; display: block; width: 100%; box-shadow: 0 10px 28px rgba(24, 48, 130, .12); transition: transform .45s var(--ease), box-shadow .35s; }
button.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(24, 48, 130, .2); }
button.tile:active { transform: scale(.98); }
.tile .media { aspect-ratio: 9 / 16; background: #0b1020; display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-size: 12px; text-align: center; padding: 0; }
.tile .media img, .tile .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(11, 16, 32, .8)); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-end; color: #fff; }
.tile .cap b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap span { color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; flex: none; }
.tile[aria-pressed=true] { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--azure), 0 18px 40px rgba(31, 107, 255, .26); }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: rgba(11, 16, 32, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.badge.ok::before, .badge.run::before, .badge.ko::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ee08f; }
.badge.run::before { background: var(--cyan); animation: blink 1.4s ease-in-out infinite; }
.badge.ko::before { background: #ff7a7a; }
/* Une génération en cours : le motif pulse, l'étape est nommée, le temps écoulé tourne. */
.tile.pending { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.tile.pending .media { position: relative; overflow: hidden; background: #fff; color: var(--text-2); padding: 14px 12px 44px; }
.tile.pending .media::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 0deg, rgba(25, 216, 255, .0), rgba(25, 216, 255, .42), rgba(143, 107, 255, .38), rgba(79, 230, 193, .3), rgba(25, 216, 255, .0)); filter: blur(34px); animation: spin 9s linear infinite; }
.tile.pending .badge { background: rgba(255, 255, 255, .8); color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }
.tile.pending .badge.run::before { background: var(--azure); }
.tile.pending .cap { background: none; color: var(--ink); padding-bottom: 12px; }
.tile.pending .cap span { color: var(--text-3); }
.wait-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.wait-body b { color: var(--ink); font-size: 13px; font-weight: 600; }
.wait-body small { font-size: 11px; color: var(--text-3); line-height: 1.35; }
.steps-mini { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; align-self: stretch; text-align: left; font-size: 11.5px; color: var(--text-3); }
.steps-mini li { display: flex; align-items: center; gap: 7px; }
.steps-mini li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair-2); flex: none; }
.steps-mini li.done { color: var(--text-2); }
.steps-mini li.done::before { background: var(--green); box-shadow: none; }
.steps-mini li.now { color: var(--ink); font-weight: 600; }
.steps-mini li.now::before { background: var(--azure); box-shadow: 0 0 0 3px rgba(31, 107, 255, .2); animation: blink 1.4s ease-in-out infinite; }
.clock { font-variant-numeric: tabular-nums; }
.tile.pending .meter { position: absolute; left: 12px; right: 12px; bottom: 38px; width: auto; height: 3px; }
.tile.failed { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.tile.failed .media { background: #fff; padding: 16px; color: var(--red); }
.tile.failed .cap { background: none; color: var(--ink); }
.tile.failed .badge { background: rgba(229, 72, 77, .1); color: var(--red); }
.tile.fresh { animation: fresh 1.6s var(--ease) both; }
@keyframes fresh { from { box-shadow: 0 0 0 3px var(--azure), 0 0 0 14px rgba(31, 107, 255, .2); } }
.tile .del { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .2s; }
.tile:hover .del, .tile:focus-within .del { opacity: 1; }
.tile .del[data-sure="1"] { opacity: 1; width: auto; padding: 0 10px; font-size: 12px; color: #ffb4b4; }
.empty { grid-column: 1 / -1; padding: 70px 24px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: var(--r-xl); }
.empty b { color: var(--text); font-weight: 600; font-size: 18px; }
.empty .btn { margin-top: 8px; }
/* Squelettes : la forme de ce qui arrive, pendant que ça charge. */
.skel { border-radius: var(--r); aspect-ratio: 9 / 16; background: linear-gradient(100deg, rgba(11, 16, 32, .05) 30%, rgba(11, 16, 32, .1) 50%, rgba(11, 16, 32, .05) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -100% 0; } }

/* Variantes : un groupe par mouvement */
.groups { display: flex; flex-direction: column; gap: 18px; }
.group { padding: 20px; border-radius: var(--r-xl); }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.group-head h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-head .note { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.group-head .btn { margin-left: auto; flex: none; }
.group-row { display: grid; grid-auto-flow: column; grid-auto-columns: 164px; gap: 12px; overflow-x: auto; padding: 6px 6px 12px; scrollbar-width: thin; }
.group-row .original { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--hair-2); cursor: default; }

/* Bibliothèque */
.libcard { border-radius: var(--r); overflow: hidden; transition: transform .45s var(--ease); }
.libcard:hover { transform: translateY(-3px); }
.libcard .tile { border-radius: 0; cursor: default; box-shadow: none; }
.tile-actions { padding: 10px 12px 12px; display: flex; gap: 6px; flex-wrap: wrap; }

/* Feuilles */
.sheet { border: 0; padding: 0; background: rgba(255, 255, 255, .92); color: var(--text); border-radius: var(--r-xl); width: min(480px, 94vw); max-height: 90vh; box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--hair), 0 50px 120px rgba(24, 48, 130, .28); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.sheet::backdrop { background: rgba(240, 244, 255, .55); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
.sheet[open] { animation: rise .5s var(--ease); }
.sheet[open]::backdrop { animation: fade .4s ease-out; }
.sheet.closing { animation: sink .22s ease-in forwards; }
.sheet.closing::backdrop { animation: fade .22s ease-in reverse forwards; }
@keyframes rise { from { transform: translateY(22px) scale(.97); opacity: 0; } }
@keyframes sink { to { transform: translateY(12px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet form { display: flex; flex-direction: column; gap: 14px; padding: 0 22px 22px; }
.sheet > .note, .sheet > .packs { margin: 0 22px; }
.sheet > :last-child { margin-bottom: 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 10px 22px; }
.sheet-head h2 { font-size: 20px; }
.sheet form .sheet-head { padding: 18px 0 0; margin-right: -6px; }
.refs { display: flex; flex-direction: column; gap: 10px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0 10px; }
.pack-buy { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 14px; border-radius: var(--r); border: 0; box-shadow: inset 0 0 0 1px var(--hair-2); background: #fff; cursor: pointer; transition: box-shadow .25s, transform .35s var(--ease); }
.pack-buy:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--azure), 0 14px 30px rgba(31, 107, 255, .16); transform: translateY(-3px); }
.pack-buy:disabled { opacity: .45; cursor: default; }
.pack-buy span { color: var(--text-2); font-size: 13px; }
.pack-buy strong { font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin-top: 8px; }
.wide-sheet { width: min(1100px, 96vw); }
.views-body, .compare-body { padding: 0 22px; display: flex; flex-direction: column; gap: 14px; }
.views-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px; align-items: start; }
.views-grid figure, .compare-pair figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.views-grid img { width: 100%; border-radius: var(--r); display: block; background: var(--raised); }
figcaption { font-size: 12px; color: var(--text-3); }
.sheet-empty { aspect-ratio: 3 / 2; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--text-2); font-size: 13px; }
.sheet-empty b { color: var(--text); font-weight: 600; font-size: 15px; }
.views-actions { display: flex; gap: 12px; align-items: center; }
.compare-sheet { width: min(760px, 96vw); }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-pair video, .compare-pair .wait { width: 100%; aspect-ratio: 9 / 16; max-height: 62vh; object-fit: contain; border-radius: var(--r); background: #0b1020; display: block; }
.compare-pair .wait { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--text-2); font-size: 13px; background: var(--raised); }
.compare-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.compare-bar .note { margin-left: auto; }
.compare-body details { font-size: 12px; color: var(--text-3); }
.compare-body details p { white-space: pre-wrap; line-height: 1.5; margin-top: 6px; }

/* Messages : empilés en bas, chacun dit ce qui vient de se passer et propose la suite. */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; width: min(460px, 92vw); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 18px; background: rgba(11, 16, 32, .92); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 18px 50px rgba(11, 16, 32, .3); font-size: 14px; max-width: 100%; animation: rise .5s var(--ease); }
.toast.out { animation: sink .25s ease-in forwards; }
.toast img { width: 34px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; margin-left: -6px; }
.toast .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; margin-left: -4px; background: #3ee08f; color: #06301b; }
.toast.bad .mark { background: #ff7a7a; color: #3a0808; }
.toast p { flex: 1; min-width: 0; line-height: 1.35; }
.toast button { flex: none; border: 0; border-radius: 999px; height: 30px; padding: 0 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--light); transform-origin: 0 50%; animation: drain var(--life, 6s) linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
/* Ce qui tourne en ce moment, visible depuis toutes les pages. */
.activity { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 12px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .86); color: var(--ink); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--hair), 0 18px 50px rgba(24, 48, 130, .2); font-size: 13px; text-align: left; animation: rise .5s var(--ease); transition: transform .4s var(--ease), box-shadow .3s; }
.activity:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(31, 107, 255, .3), 0 24px 60px rgba(24, 48, 130, .26); }
.activity b { display: block; font-weight: 600; }
.activity small { color: var(--text-3); font-size: 12px; }

/* Pubs écrites */
.ads-home { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.sheet-card { border-radius: var(--r-xl); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.sheet-card h2 { font-size: 20px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); }
.info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.adhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.adhead h1 { font-size: 28px; font-weight: 500; }
.adbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r); margin-bottom: 14px; position: sticky; top: 10px; z-index: 5; }
.adbar select { width: auto; }
.scene { display: grid; grid-template-columns: 120px 1fr minmax(0, 1.4fr); gap: 18px; padding: 16px; border-radius: var(--r-lg); margin-bottom: 12px; }
.scene .frame { aspect-ratio: 9 / 16; border-radius: var(--r-sm); overflow: hidden; background: var(--raised); display: grid; place-items: center; color: var(--text-3); font-size: 11px; text-align: center; padding: 6px; }
.scene .frame img { width: 100%; height: 100%; object-fit: cover; }
.takes { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.take { width: 132px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.take video, .take .wait { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-sm); background: #0b1020; object-fit: cover; }
.take .wait { display: grid; place-items: center; text-align: center; padding: 8px; color: var(--text-3); background: linear-gradient(100deg, rgba(11, 16, 32, .05) 30%, rgba(31, 107, 255, .12) 50%, rgba(11, 16, 32, .05) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.take.chosen video { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--azure); }
.qc { font-size: 11px; color: var(--text-2); }
.qc.keep { color: var(--green); }
.qc.retry { color: var(--amber); }
.montage { margin-top: 18px; }
.final { display: flex; gap: 14px; align-items: flex-end; margin-top: 12px; }
.final video { width: 220px; border-radius: var(--r); }

/* La lumière continue sous la page : une lueur par section, d'un côté puis de l'autre. */
.block, .how { position: relative; }
.block::before, .how::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 620px; top: -40px; left: -320px; background: radial-gradient(closest-side, rgba(25, 216, 255, .2), rgba(31, 107, 255, .1) 50%, transparent); filter: blur(30px); pointer-events: none; }
#atouts::before { left: auto; right: -340px; top: 120px; background: radial-gradient(closest-side, rgba(143, 107, 255, .2), rgba(79, 230, 193, .1) 55%, transparent); }
#questions::before { left: auto; right: -420px; background: radial-gradient(closest-side, rgba(79, 230, 193, .18), rgba(25, 216, 255, .08) 55%, transparent); }
.landing { isolation: isolate; }
/* Le motif de la marque, en filigrane dans les grandes cartes. */
.bento .wide::after { content: ""; position: absolute; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(31, 107, 255, .0) 0 22px, rgba(31, 107, 255, .13) 23px 24px); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); pointer-events: none; transition: transform 1.2s var(--ease); }
.bento .wide:hover::after { transform: scale(1.18) rotate(8deg); }
.bento .wide:last-child::after { background: repeating-radial-gradient(circle, rgba(143, 107, 255, 0) 0 22px, rgba(143, 107, 255, .16) 23px 24px); }
.demo-src .scan { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--light); transform-origin: 0 50%; }

/* ---- Petits écrans ---- */
@media (max-width: 980px) {
  .pill-nav nav { display: none; }
  .prices { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .how-pin { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
  .how-steps li { opacity: 1; background: var(--glass); box-shadow: var(--shadow); }
  .how-steps li::before { transform: scaleY(1); }
  .fan .card { margin: 0 -16px; }
  .fan figcaption { font-size: 11px; padding: 3px 8px; left: 6px; bottom: 6px; }
  .rings { top: 300px; }
  .shell, .create { grid-template-columns: minmax(0, 1fr); }
  .shell { padding-bottom: 72px; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 40; flex-direction: row; align-items: center; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--hair); background: rgba(255, 255, 255, .86); }
  .side .brand, .who, .nav-ind { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav button { flex-direction: column; gap: 3px; height: 52px; padding: 0 4px; font-size: 10px; justify-content: center; }
  .nav .dot { position: absolute; top: 8px; right: 14px; }
  .side-foot { margin: 0; }
  .wallet { padding: 8px 12px; border-radius: 12px; }
  .wallet b { font-size: 15px; }
  .wallet span { font-size: 11px; }
  .wallet small { display: none; }
  .page { padding: 20px 16px 60px; min-width: 0; }
  .quick { grid-template-columns: 1fr; }
  .composer-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .rail { position: static; height: auto; border-right: 0; overflow: visible; min-width: 0; }
  .go { bottom: 72px; }
  .board { padding: 24px 16px 40px; min-width: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-actions { margin-left: 0; }
  .ads-home, .views-grid { grid-template-columns: 1fr; }
  .scene { grid-template-columns: 90px 1fr; }
  .scene > .takes:last-child { grid-column: 1 / -1; }
  .packs { grid-template-columns: 1fr; }
  .views-actions { flex-direction: column; align-items: flex-start; }
  .group-head { flex-wrap: wrap; }
  .activity { right: 12px; bottom: 84px; }
  .toasts { bottom: 86px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; }
  .login { flex-direction: column; border-radius: 26px; }
  .hero { padding-top: 60px; }
  .manifesto { padding: 100px 20px 90px; }
  .foot { flex-direction: column; }
  .demo-win { grid-template-columns: minmax(0, 1fr); }
  .beams { display: none; }
  .rings i { filter: blur(22px); }
  .demo-src { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .manifesto .w { color: var(--ink); }
  .how-steps li { opacity: 1; }
  .pulse::before { opacity: .8; transform: none; }
}
.group-head .btn + .btn { margin-left: 0; }
