/* Clarnest — site vitrine.
   Même langage que l'app : dégradé orange de l'icône, cercle + aura,
   cartes arrondies, typographie système. */

:root {
  --orange-1: #F27D3F;          /* icône : display-p3(0.933 0.498 0.267) */
  --orange-2: #F6AC4E;          /* icône : display-p3(0.949 0.670 0.298) */
  --accent: #FF8A30;            /* AccentColor de l'app */
  --gradient: linear-gradient(180deg, var(--orange-1), var(--orange-2));
  --gradient-diag: linear-gradient(135deg, #FF7730, #FFA730);

  --bg: #FBFAF8;
  --bg-2: #F3F1EE;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #4A4A50;
  --muted: #8A8A90;
  --line: rgba(29, 29, 31, .08);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(60, 30, 10, .08);
  --shadow-lg: 0 30px 80px rgba(120, 50, 10, .18);
  --glass: rgba(255, 255, 255, .72);

  --blue: #1F5FD1;
  --red: #E5484D;
  --bezel: #1D1D1F;

  --radius: 24px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0F;
    --bg-2: #141417;
    --card: #1B1B1F;
    --ink: #F5F5F7;
    --ink-2: #C7C7CC;
    --muted: #8E8E93;
    --line: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.35);
    --shadow-lg: 0 30px 80px rgba(0,0,0,.5);
    --glass: rgba(27, 27, 31, .72);
    --blue: #6E9BFF;
    --bezel: #55555B;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0D0D0F; --bg-2: #141417; --card: #1B1B1F; --ink: #F5F5F7; --ink-2: #C7C7CC;
  --muted: #8E8E93; --line: rgba(255,255,255,.08); --glass: rgba(27,27,31,.72); --blue: #6E9BFF; --bezel: #55555B;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
/* Icônes SVG (sprite en haut de index.html) */
.i { display: inline-block; width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }
.i--ink { width: .8em; height: .8em; stroke-width: 3; }
.i--proof { width: 26px; height: 26px; color: var(--ink); stroke-width: 2.4; vertical-align: -6px; margin-right: 2px; }
p { margin: 0; }

.hand { font-family: var(--hand); }
.ink-word { font-style: normal; font-family: var(--hand); font-size: 1.25em; color: var(--orange-1); }
.gradient-text {
  background: var(--gradient-diag);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-1);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px rgba(242,125,63,.18); }

/* ---------------------------------------------------------------- Logo */
.mark {
  --s: 40px;
  position: relative; display: inline-grid; place-items: center;
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * .2237);
  background: var(--gradient);
  box-shadow: 0 calc(var(--s) * .08) calc(var(--s) * .25) rgba(200, 80, 20, .35);
  flex: none;
}
.mark i, .mark b { position: absolute; border-radius: 50%; }
.mark i { width: 65%; height: 65%; background: rgba(255,255,255,.35); backdrop-filter: blur(2px); }
.mark b { width: 36%; height: 36%; background: #fff; box-shadow: 0 calc(var(--s) * .02) calc(var(--s) * .06) rgba(150, 60, 10, .3); }
.mark--sm { --s: 30px; }
.mark--xl { --s: 150px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gradient-diag); color: #fff; box-shadow: 0 10px 30px rgba(255, 119, 48, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 119, 48, .45); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange-1); color: var(--orange-1); }
.btn--store { height: 58px; padding: 0 24px 0 18px; background: var(--ink); color: var(--bg); text-align: left; }
.btn--store svg { width: 26px; height: 26px; fill: currentColor; }
.btn--store span { display: flex; flex-direction: column; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; }
.btn--store small { font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.btn--store:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--light { background: #fff; color: #1D1D1F; }
/* Google Play : bientôt disponible */
.btn--soon { position: relative; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--soon:hover { box-shadow: inset 0 0 0 1.5px var(--orange-1); }
.btn--soon svg { width: 22px; height: 22px; }
.btn--soon span { opacity: .78; }
.soon-pill {
  position: absolute; top: -9px; right: -8px; padding: 3px 8px; border-radius: 999px;
  font: 700 10.5px/1.2 var(--font); font-style: normal; letter-spacing: .02em; color: #fff;
  background: var(--gradient-diag); box-shadow: 0 6px 14px rgba(255,119,48,.35);
  animation: pulse-pill 2.6s ease-in-out infinite;
}
.btn--soon-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.65); }
.btn--soon-light:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.12); }
.btn--soon-light .soon-pill { background: #1D1D1F; box-shadow: none; }
.final__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Menu Télécharger de la navigation */
.dl { position: relative; }
.dl > summary { list-style: none; cursor: pointer; }
.dl > summary::-webkit-details-marker { display: none; }
.dl__chev { width: 14px; height: 14px; stroke-width: 2.6; transition: transform .25s; }
.dl[open] .dl__chev { transform: rotate(180deg); }
.dl__menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 290px; padding: 8px; border-radius: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  transform-origin: top right; animation: menu-in .25s cubic-bezier(.2,.8,.2,1);
}
.dl__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background .2s; }
.dl__item:hover { background: var(--bg-2); }
.dl__item > span:nth-child(2) { display: grid; flex: 1; line-height: 1.25; }
.dl__item b { font-size: 15px; }
.dl__item small { color: var(--muted); font-size: 12px; }
.dl__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); }
.dl__icon svg { width: 20px; height: 20px; }
.dl__icon--play { background: var(--bg-2); color: var(--ink); }
.dl__tag { padding: 3px 8px; border-radius: 999px; font: 700 11px var(--font); font-style: normal; color: var(--muted); background: var(--bg-2); }
.dl__tag--ok { color: #1E8E3E; background: color-mix(in srgb, #34A853 16%, transparent); }
@media (max-width: 760px) { .nav .dl { margin-left: auto; } .dl__menu { width: min(290px, calc(100vw - 40px)); } }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- Ambient */
.cursor-aura {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 172, 78, .22), rgba(242, 125, 63, .08) 40%, transparent 70%);
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0);
  transition: opacity .4s;
}
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 1; }

.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--gradient-diag); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px;
  width: min(1080px, calc(100% - 28px));
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: var(--glass);
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s;
}
.nav.is-hidden { transform: translate(-50%, -140%); opacity: 0; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover { color: var(--orange-1); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------------------------------------------------------------- Sections */
section { padding: 120px 20px; }
.section-head { max-width: 920px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.section-head h2 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; }
.section-head > p:last-child:not(.eyebrow) { color: var(--ink-2); font-size: 19px; max-width: 560px; }

.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: min(100svh, 960px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 130px 24px 80px;
}
.hero__copy { display: grid; gap: 26px; position: relative; z-index: 2; }
.hero__title { font-size: clamp(56px, 8.4vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
.hero__copy > :not(h1) { opacity: 0; animation: fade-up .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__copy > :nth-child(1) { animation-delay: .05s; } .hero__copy > :nth-child(3) { animation-delay: .35s; }
.hero__copy > :nth-child(4) { animation-delay: .5s; } .hero__copy > :nth-child(5) { animation-delay: .65s; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { height: 58px; padding: 0 26px; font-size: 16px; }
.hero__actions .btn--store { padding: 0 26px 0 20px; }
.hero__proof { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 14px; }
.hero__proof strong { color: var(--ink); font-size: 22px; margin-right: 4px; font-weight: 700; }

/* L'orbite : le logo au centre, les contenus gravitent autour */
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; perspective: 1200px; }
.orbit__aura {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 172, 78, .55), rgba(242, 125, 63, .18) 45%, transparent 70%);
  filter: blur(10px);
  transform: scale(var(--aura, 1));
  animation: breathe 6s ease-in-out infinite;
}
.orbit__ring { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px dashed rgba(242, 125, 63, .28); transform: rotateX(68deg); }
.orbit__ring--2 { inset: 0; border-style: solid; border-color: rgba(242, 125, 63, .12); }
.orbit__core { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; transform: scale(var(--core, 1)); transition: transform .2s; }
.orbit__core .mark { --s: clamp(110px, 18vw, 170px); animation: float 7s ease-in-out infinite; }
.orbit__item { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.chip {
  display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, -50%);
  padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip code { font-family: var(--mono); font-size: 13px; color: #C678DD; }
.chip .hand { font-size: 22px; color: var(--blue); font-weight: 700; }
.chip__icon {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px;
  color: #fff; font-size: 12px; font-weight: 800; background: var(--c, var(--orange-1));
}
.chip__icon .i { width: 18px; height: 18px; }
.chip--pdf { --c: #E8534A; } .chip--ink { --c: #1F5FD1; } .chip--code { --c: #1ABC9C; }
.chip--exam { --c: linear-gradient(135deg, #FF7730, #FFA730); } .chip--audio { --c: #9B59B6; }
.chip--td { --c: #8B5E3C; }
.chip__icon { background: var(--c); }
.wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: #9B59B6; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange-1); animation: scrollhint 1.6s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 110px; }
  .orbit { max-width: 440px; order: -1; margin-bottom: -40px; }
  .orbit__core .mark { --s: 84px; }
  .chip { font-size: 11px; gap: 7px; padding: 6px 9px 6px 6px; border-radius: 12px; }
  .chip__icon { min-width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
  .chip__icon .i { width: 14px; height: 14px; }
  .chip .hand { font-size: 17px; }
  .chip code { font-size: 11px; }
}

/* ---------------------------------------------------------------- Chaos → Clarté */
.chaos { padding: 0; height: 260vh; overflow-x: clip; }
.chaos__sticky {
  position: sticky; top: 0; height: 100svh; overflow: visible;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 90px 24px 40px;
}
.chaos__copy { position: relative; display: grid; gap: 22px; }

/* Mots barrés au stylo rouge (avant) */
.scribble { position: relative; display: inline-block; }
.scribble__ink { position: absolute; left: -4%; bottom: -.08em; width: 108%; height: .32em; overflow: visible; pointer-events: none; }
.scribble__ink path { fill: none; stroke: #E5484D; stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s cubic-bezier(.6,.1,.3,1); transition-delay: calc(.4s + var(--d) * .25s); }
.scribble__ink path + path { stroke-width: 2.2; opacity: .7; transition-delay: calc(.6s + var(--d) * .25s); }
.chaos.is-visible .scribble__ink path { stroke-dashoffset: 0; }

/* Mots surlignés (après) */
.hl-word { position: relative; display: inline-block; z-index: 0; }
.gradient-text .hl-word, .gradient-text .scribble { background: var(--gradient-diag); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-word__ink { position: absolute; z-index: -1; left: -3%; bottom: .02em; width: 106%; height: .42em; overflow: visible; }
.hl-word__ink path { fill: none; stroke: #FFB36B; stroke-width: 14; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s cubic-bezier(.6,.1,.3,1); transition-delay: calc(.2s + var(--d) * .3s); }
.chaos[data-state="order"] .hl-word__ink path { stroke-dashoffset: 0; }
.tick-mark { display: inline-grid; place-items: center; width: .62em; height: .62em; margin-left: .18em; vertical-align: .08em; border-radius: 50%; background: #34A853; color: #fff; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1) .5s; }
.tick-mark .i { width: 64%; height: 64%; stroke-width: 3.4; }
.tick-mark--2 { transition-delay: .8s; }
.chaos[data-state="order"] .tick-mark { transform: none; }

/* Jauge désordre → clarté */
.chaos__meter { display: flex; align-items: center; gap: 12px; max-width: 420px; font-size: 13px; font-weight: 600; color: var(--muted); }
.meter { position: relative; flex: 1; height: 8px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.meter i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #E5484D, #FF8A30 55%, #34A853); clip-path: inset(0 calc((1 - var(--order-t)) * 100%) 0 0 round 999px); }
.meter b { position: absolute; top: 50%; left: calc(var(--order-t) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.18), inset 0 0 0 4px #FF8A30; }
.chaos__meter strong { min-width: 3.4em; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Notes manuscrites fléchées vers le tableau */
.chaos__note { position: absolute; right: -24px; bottom: -78px; display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 700; transform: rotate(-4deg); transition: opacity .5s, transform .5s; pointer-events: none; }
.chaos__note svg { width: 92px; height: 50px; margin-top: -34px; overflow: visible; }
.chaos__note svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chaos__note--before { color: #E5484D; opacity: var(--mess); }
.chaos__note--after { color: #34A853; opacity: calc(var(--order-t) * 2 - 1); }
.chaos__note--after .i { width: .8em; height: .8em; }
.chaos__title { display: grid; font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; }
.chaos__before, .chaos__after { grid-area: 1 / 1; align-self: start; transition: opacity .5s, transform .5s, filter .5s; }
.chaos__after { opacity: 0; transform: translateY(20px); filter: blur(6px); }
.chaos[data-state="order"] .chaos__before { opacity: 0; transform: translateY(-20px); filter: blur(6px); }
.chaos[data-state="order"] .chaos__after { opacity: 1; transform: none; filter: none; }
.chaos__lead { color: var(--ink-2); font-size: 18px; max-width: 420px; }

.chaos { --mess: 1; --order-t: 0; }
.chaos__stage { position: relative; }
.chaos__board {
  position: relative; height: min(70vh, 560px); border-radius: 32px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  overflow: hidden;
}
.chaos__lanes { position: absolute; inset: 18px 18px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; opacity: var(--lanes, 0); transition: opacity .3s; }
.chaos__lanes span {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  font-weight: 700; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.chaos__lanes span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.doc {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  width: calc((100% - 36px - 24px) / 3); padding: 12px; border-radius: 14px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0,0,0,.08);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  border-left: 4px solid color-mix(in srgb, var(--c) calc(var(--order, 0) * 100%), transparent);
  will-change: transform; z-index: 3;
}
.doc b { flex: none; display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 4px; border-radius: 8px; font-size: 11px; color: #fff; background: var(--c); }
.doc b .i { width: 16px; height: 16px; }
/* D'où vient le fichier (disparaît une fois rangé) */
.doc__from {
  position: absolute; left: 12px; top: -11px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px; border-radius: 999px;
  font: 600 10px/1.4 var(--font); font-style: normal; color: var(--ink-2); white-space: nowrap;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 4px 10px rgba(0,0,0,.08);
  opacity: calc(1 - var(--order, 0) * 1.6);
}
.doc__from .i { width: 11px; height: 11px; color: var(--c); }

/* Désordre autour du tableau : s'envole quand tout est rangé */
.clutter {
  position: absolute; z-index: 2;
  opacity: var(--mess);
  transform: translate(calc(var(--dx) * (1 - var(--mess))), calc(var(--dy) * (1 - var(--mess)))) rotate(var(--rot)) scale(calc(.85 + var(--mess) * .15));
  animation: bob 5s ease-in-out infinite;
  pointer-events: none;
}
.clutter:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
.clutter:nth-child(3n) { animation-duration: 7.5s; animation-delay: -4s; }
.clutter--mail, .clutter--folder, .clutter--alert {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: 13px;
}
.clutter span { display: grid; line-height: 1.25; }
.clutter small { color: var(--muted); font-size: 11.5px; }
.clutter__app { display: grid !important; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; }
.clutter__app .i { width: 18px; height: 18px; }
.clutter__app--mail { background: linear-gradient(160deg, #4FA3FF, #1F6FE0); }
.clutter__app--folder { background: linear-gradient(160deg, #8EC5FF, #4A90D9); }
.clutter__badge { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font: 700 11px var(--font); font-style: normal; color: #fff; background: #FF3B30; box-shadow: 0 0 0 3px var(--bg); }
.clutter--mail { top: -62px; left: 3%; }
.clutter--alert { top: -50px; right: 1%; padding: 8px 12px; color: #C2410C; font-weight: 600; background: color-mix(in srgb, #FF8A30 14%, var(--card)); }
.clutter--alert .i { width: 16px; height: 16px; }
.clutter--postit {
  top: 36%; right: -84px; width: 128px; padding: 14px 12px 16px;
  font-size: 22px; font-weight: 700; line-height: 1.05; color: #5B4300;
  background: linear-gradient(170deg, #FFE98A, #FFD84D); box-shadow: 0 14px 30px rgba(120, 90, 0, .22);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
}
.clutter--postit small { display: block; font-size: 17px; color: #7A5C00; }
.clutter--photo { bottom: -54px; right: 9%; display: grid; gap: 6px; padding: 8px 8px 10px; border-radius: 6px; background: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.clutter__board-photo { position: relative; display: block !important; width: 120px; height: 78px; border-radius: 3px; background: linear-gradient(160deg, #3F5A4C, #2C4236); overflow: hidden; }
.clutter__board-photo i { position: absolute; left: 12px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.6); }
.clutter__board-photo i:nth-child(1) { top: 16px; width: 70px; } .clutter__board-photo i:nth-child(2) { top: 28px; width: 52px; } .clutter__board-photo i:nth-child(3) { top: 40px; width: 82px; }
.clutter__board-photo i.hand { top: 48px; height: auto; background: none; color: rgba(255,255,255,.85); font-style: normal; font-size: 17px; }
.clutter--photo small { color: #8A8A90; font-size: 10px; text-align: center; }
.clutter--folder { bottom: -50px; left: 2%; }
.clutter--q { top: auto; bottom: 14%; left: -44px; font-size: 54px; font-weight: 700; color: var(--orange-1); opacity: calc(var(--mess) * .7); }
.clutter--q2 { top: auto; left: auto; bottom: 26%; right: -30px; font-size: 40px; color: var(--muted); }
@media (max-width: 1180px) { .clutter--postit, .clutter--q2 { display: none; } }
@media (max-width: 900px) { .chaos__note { display: none; } .chaos__meter { max-width: none; } }
@media (max-width: 900px) { .clutter { display: none; } }

.doc span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }

.chaos__panel {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: grid; gap: 12px;
  opacity: var(--panel, 0); transform: translateY(calc((1 - var(--panel, 0)) * 30px));
}
.cp-search {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg-2); color: var(--muted); font-size: 14px;
}
.cp-search .i { width: 18px; height: 18px; color: var(--orange-1); }
.cp-search span { flex: 1; }
.cp-search kbd { font: 600 12px var(--font); padding: 3px 7px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cp-next {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, #E8534A 14%, var(--card)), var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #E8534A 25%, transparent);
}
.cp-badge { display: grid; place-items: center; width: 58px; height: 46px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(160deg, #E8534A, #B63B33); }
.cp-next div { display: grid; flex: 1; }
.cp-next strong { font-size: 15px; }
.cp-next small { color: var(--muted); font-size: 13px; }
.cp-bell { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #E8534A; background: color-mix(in srgb, #E8534A 12%, transparent); animation: bell 3s ease-in-out infinite; transform-origin: 50% 20%; }
.cp-bell .i { width: 17px; height: 17px; }
.cp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cp-stats span { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--bg-2); color: var(--muted); font-size: 12px; }
.cp-stats b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.cp-stats span:last-child b { background: var(--gradient-diag); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .chaos__panel { gap: 8px; left: 10px; right: 10px; bottom: 10px; }
  .cp-search { padding: 9px 11px; font-size: 12px; }
  .cp-search kbd { display: none; }
  .cp-next { padding: 9px; gap: 10px; }
  .cp-badge { width: 44px; height: 36px; font-size: 14px; }
  .cp-stats span { padding: 8px; }
  .cp-stats b { font-size: 18px; }
}

@media (max-width: 900px) {
  .chaos__sticky { grid-template-columns: 1fr; align-content: center; gap: 24px; padding-top: 80px; }
  .chaos__title { font-size: 28px; }
  .chaos__board { height: 60svh; }
  .doc { flex-direction: column; align-items: flex-start; font-size: 10.5px; padding: 7px 8px; gap: 5px; }
  .doc span { max-width: 100%; overflow-wrap: normal; word-break: normal; }
  .doc b { min-width: 24px; height: 24px; font-size: 9px; }
  .doc b .i { width: 13px; height: 13px; }
}

/* ---------------------------------------------------------------- Bento */
.features { max-width: 1200px; margin: 0 auto; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.tile { transform-style: preserve-3d; will-change: transform; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(246,172,78,.14), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.tile:hover::after { opacity: 1; }
.tile__text { display: grid; gap: 8px; }
.tile h3 { font-size: 26px; font-weight: 700; }
.tile p { color: var(--ink-2); font-size: 16px; }

.tile--pdf { grid-column: span 4; grid-row: span 2; }
.tile--infinite { grid-column: span 2; grid-row: span 2; }
.tile--code { grid-column: span 3; }
.tile--countdown { grid-column: span 3; }
.tile--widgets { grid-column: span 4; }
.tile--courses { grid-column: span 2; }
.tile--sync { grid-column: span 3; }
.tile--audio { grid-column: span 3; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile { grid-column: span 2; grid-row: auto; }
  .tile--infinite, .tile--courses, .tile--sync, .tile--audio { grid-column: span 1; }
}
@media (max-width: 640px) { .bento .tile { grid-column: span 2 !important; } }

/* PDF annoté */
.pdf-demo { flex: 1; display: grid; place-items: center; padding: 6px 0 0; }
.pdf-page {
  position: relative; width: min(100%, 540px); padding: 34px 40px 40px;
  background: #fff; color: #1D1D1F; border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
  transform: rotate(-1.5deg);
}
.pdf-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #8E8E93; }
.pdf-h { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 18px; color: #1D1D1F; }
.pdf-line { position: relative; display: block; height: 7px; margin: 11px 0; border-radius: 4px; background: #E5E5EA; }
.pdf-line.short { width: 60%; }
.pdf-line.hl i { position: absolute; inset: -6px -4px; border-radius: 4px; background: rgba(255, 214, 10, .55); transform-origin: left; transform: scaleX(0); transition: transform 1s .9s cubic-bezier(.2,.8,.2,1); }
.is-visible .pdf-line.hl i { transform: scaleX(.7); }
.pdf-eq-row { text-align: center; margin: 26px 0; }
.pdf-eq-row:last-of-type { margin-bottom: 58px; }
.pdf-eq { position: relative; display: inline-block; font-size: 24px; font-weight: 500; color: #1D1D1F; }
.ink { position: absolute; overflow: visible; pointer-events: none; }
.ink--circle { left: -26px; right: -26px; top: -14px; bottom: -14px; width: calc(100% + 52px); height: calc(100% + 28px); }
.ink--under { left: -8px; right: -8px; bottom: -12px; width: calc(100% + 16px); height: 12px; }
.ink-path { fill: none; stroke: #1F5FD1; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s .3s cubic-bezier(.6,.1,.3,1); }
.ink-path--marker { stroke: #FF8A30; stroke-width: 8; opacity: .85; transition-delay: 1.3s; }
.is-visible .ink-path { stroke-dashoffset: 0; }
.pdf-note {
  position: absolute; left: calc(100% + 34px); top: 50%; white-space: nowrap;
  font-size: 26px; font-weight: 700; color: #1F5FD1;
  opacity: 0; transform: translateY(-40%) rotate(-4deg); transition: opacity .6s 1.5s, transform .6s 1.5s;
}
.pdf-note--red { color: #E5484D; left: auto; right: -40px; top: calc(100% + 18px); transform: translateY(6px) rotate(-5deg); transition-delay: 2s; }
.is-visible .pdf-note { opacity: 1; transform: translateY(-50%) rotate(-4deg); }
.is-visible .pdf-note--red { transform: rotate(-5deg); }
@media (max-width: 640px) {
  .pdf-page { padding: 24px 22px 32px; }
  .pdf-eq { font-size: 19px; }
  .pdf-note { left: auto; right: -10px; top: -30px; font-size: 21px; }
  .pdf-note--red { top: calc(100% + 14px); right: 0; }
}

/* Page infinie */
.infinite { position: relative; flex: 1 1 auto; height: 420px; max-height: 100%; border-radius: 16px; background: #FFFDF8; overflow: hidden; color: #1D1D1F; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.infinite::before, .infinite::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; z-index: 1; }
.infinite::before { top: 0; background: linear-gradient(#FFFDF8, transparent); }
.infinite::after { bottom: 0; background: linear-gradient(transparent, #FFFDF8); }
.infinite__scroll { padding: 20px 22px; font-size: 24px; line-height: 1.35; animation: infinite 26s linear infinite; }
.infinite__scroll .big { font-size: 34px; font-weight: 700; margin-top: 10px; text-decoration: underline; text-decoration-color: rgba(255,138,48,.8); text-decoration-thickness: 6px; text-underline-offset: 2px; }
.infinite__scroll .boxed { display: inline-block; margin: 8px 0; padding: 2px 12px; border: 2.5px solid #FF8A30; border-radius: 8px; color: #E8590C; font-weight: 700; }
.infinite__scroll .blue { color: #1F5FD1; font-weight: 700; }
.infinite__badge { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-diag); color: #fff; box-shadow: 0 8px 20px rgba(255,119,48,.4); animation: pulse 2.4s ease-in-out infinite; }
.infinite__badge .i { width: 24px; height: 24px; stroke-width: 2.4; }

/* Code */
.code-demo { display: grid; gap: 10px; }
.code-demo pre { margin: 0; padding: 16px 18px; min-height: 230px; border-radius: 14px; background: #1E1E22; color: #E6E6E6; font: 14px/1.6 var(--mono); overflow: hidden; }
.code-demo pre code::after { content: "▍"; color: var(--orange-2); animation: blink 1s steps(1) infinite; }
.tok-k { color: #C678DD; } .tok-f { color: #61AFEF; } .tok-s { color: #98C379; } .tok-n { color: #D19A66; } .tok-c { color: #5C6370; }
.block-label { justify-self: start; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.code-result { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); opacity: 0; transform: translateY(8px); transition: .5s; }
.code-result.is-shown { opacity: 1; transform: none; }
.code-result code { font: 13px var(--mono); }

/* Compte à rebours */
.countdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-tile { display: grid; gap: 2px; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 12px 30px color-mix(in srgb, var(--c) 35%, transparent); }
.cd-tile strong { font-size: 44px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-tile span { font-weight: 700; }
.cd-tile small { opacity: .85; }
.cd-clock { grid-column: span 2; display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 14px; border-radius: 16px; background: var(--bg-2); font-variant-numeric: tabular-nums; }
.cd-clock span { font-size: 34px; font-weight: 800; letter-spacing: -.03em; min-width: 1.3em; text-align: right; }
.cd-clock i { font-style: normal; color: var(--muted); margin-right: 10px; font-weight: 600; }
.cd-clock span.tick { animation: tick .45s cubic-bezier(.2,.8,.2,1); }
.cd-tile { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cd-tile:hover { transform: translateY(-4px) rotate(-1.5deg); }

/* Widgets */
.widget-demo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 640px) { .widget-demo { grid-template-columns: 1fr; } }
.widget-preview {
  --w: #F27D3F;
  display: grid; gap: 10px; padding: 18px; border-radius: 20px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .35s, box-shadow .35s;
}
.widget-preview[data-style="tinted"] { background: color-mix(in srgb, var(--w) 14%, var(--bg)); box-shadow: none; }
.widget-preview[data-style="outlined"] { background: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--w) 60%, transparent); }
.wp-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wp-head small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.wp-icon { display: grid; color: var(--w); transition: color .35s; }
.wp-row { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.wp-row b { display: grid; place-items: center; width: 54px; height: 36px; border-radius: 10px; color: #fff; background: var(--w); font-size: 15px; transition: background .35s; }
.widget-controls { display: grid; gap: 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.seg button { flex: 1; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 0 var(--c); transition: box-shadow .2s, transform .2s; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.swatches button:hover { transform: scale(1.1); }

/* Matières */
.courses { display: flex; flex-wrap: wrap; gap: 8px; }
.courses span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
.courses span:hover { transform: translateY(-3px) rotate(-2deg); background: var(--c); color: #fff; }

/* Sync */
.sync { position: relative; height: 250px; }
.sync__art { width: 100%; height: 100%; overflow: visible; }
.dev-bezel { fill: var(--bezel); }
.dev-base { fill: color-mix(in srgb, var(--ink) 22%, #D1D1D6); }
.dev-label { fill: var(--muted); font: 600 10px var(--font); }
.dev-jtext { fill: #fff; font: 800 8.5px var(--font); }
.sync-link { fill: none; stroke: url(#sync-line); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 7; opacity: .7; animation: flow 1.2s linear infinite; }
.sync-ink { fill: none; stroke: #1F5FD1; stroke-width: 1.8; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ink-loop 4s ease-in-out infinite; }
.sync-ring { fill: none; stroke: #FF8A30; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring-out 2.8s ease-out infinite; }
.sync-ring--2 { animation-delay: 1.4s; }
.sync-hub { filter: drop-shadow(0 6px 10px rgba(242, 125, 63, .4)); transform-box: fill-box; transform-origin: center; animation: hub 2.8s ease-in-out infinite; }
.packet { filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.sync__badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.sync__badge .i { width: 15px; height: 15px; color: #4A90D9; }
.sync__badge i { width: 7px; height: 7px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: dot-ping 2s ease-out infinite; }

/* Audio + scan */
@property --played { syntax: "<percentage>"; initial-value: 18%; inherits: true; }
.media { display: grid; gap: 14px; min-width: 0; }
.player, .scan-demo { min-width: 0; }
.player { display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, #9B59B6 12%, var(--card)), var(--card)); box-shadow: inset 0 0 0 1px var(--line); }
.player__head { display: flex; align-items: center; gap: 12px; }
.player__art { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #B57AD0, #7D3C98); box-shadow: 0 8px 20px rgba(125, 60, 152, .3); }
.player__art .i { width: 22px; height: 22px; }
.player__meta { display: grid; flex: 1; min-width: 0; }
.player__meta strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta small { color: var(--muted); font-size: 13px; }
.player__speed { padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #7D3C98; background: color-mix(in srgb, #9B59B6 16%, transparent); }
.player__wave { position: relative; height: 48px; animation: played 24s linear infinite; }
.bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.bars i { flex: 1; min-width: 2px; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.bars--played { clip-path: inset(0 calc(100% - var(--played)) 0 0); }
.bars--played i { background: linear-gradient(180deg, #FFA730, #FF7730); }
.player__head-line { position: absolute; top: -4px; bottom: -4px; left: var(--played); width: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--card) 80%, transparent); }
.player__controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.player__time { width: 64px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__time--end { text-align: right; }
.player__btn { display: grid; color: var(--ink-2); }
.player__btn .i { width: 22px; height: 22px; }
.player__play { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; background: var(--gradient-diag); box-shadow: 0 10px 24px rgba(255,119,48,.35); animation: ring 2s ease-out infinite; }
.player__play .i { width: 20px; height: 20px; }

.scan-demo { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
.scan-sheet {
  position: relative; overflow: hidden; display: grid; gap: 7px; align-content: start;
  height: 112px; padding: 14px 16px; border-radius: 10px; background: #FFFDF8;
  box-shadow: 0 10px 24px rgba(0,0,0,.08), inset 0 0 0 1px rgba(0,0,0,.05); transform: rotate(-2deg);
}
.scan-line { display: block; height: 5px; border-radius: 3px; background: #E5E5EA; }
.scan-line.short { width: 55%; }
.scan-hand { font-size: 20px; font-weight: 700; color: #1F5FD1; line-height: 1; }
.scan-beam { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(255,138,48,.25) 70%, #FF8A30); animation: beam 3.2s cubic-bezier(.6,0,.4,1) infinite; }
.scan-arrow { display: grid; color: var(--muted); animation: nudge 3.2s ease-in-out infinite; }
.scan-arrow .i { width: 22px; height: 22px; }
.scan-pdf { display: grid; justify-items: center; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); animation: pop 3.2s cubic-bezier(.2,.8,.2,1) infinite; }
.scan-pdf .i { width: 26px; height: 26px; color: #E8534A; }
.scan-pdf b { font-size: 13px; }
.scan-pdf small { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .player { padding: 12px; }
  .player__controls { gap: 12px; }
  .player__time { width: auto; flex: 1; }
  .player__speed { padding: 4px 8px; font-size: 12px; }
  .scan-sheet { height: 96px; }
  .scan-pdf small { display: none; }
}

/* Fil de synchronisation */
.sync-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
@media (max-width: 640px) { .sync-feed small { display: none; } .sync-feed li:first-child::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34C759; } }
.sync-feed li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; min-width: 0;
  background: var(--bg-2); font-size: 13px; color: var(--ink-2);
  opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.sync-feed li:nth-child(2) { transition-delay: .2s; } .sync-feed li:nth-child(3) { transition-delay: .4s; }
.is-visible .sync-feed li { opacity: 1; transform: none; }
.sync-feed li span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-feed b { color: var(--ink); font-weight: 600; }
.sync-feed small { flex: none; color: var(--muted); font-size: 11px; }
.sf-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: var(--c); }
.sf-icon .i { width: 15px; height: 15px; }
.sync-feed li:first-child small { color: #34A853; font-weight: 700; }

/* ---------------------------------------------------------------- Manifeste */
.manifesto { padding: 160px 24px; }
.manifesto__text { max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.manifesto__text .w { color: var(--ink); opacity: .14; transition: opacity .25s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .w.accent.on { color: var(--orange-1); }

/* ---------------------------------------------------------------- Offres */
.pricing { max-width: 1160px; margin: 0 auto; }
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-2); margin-top: 8px; }
.billing button { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: var(--ink-2); }
.billing button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.save { padding: 2px 8px; border-radius: 999px; background: var(--gradient-diag); color: #fff; font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.plan h3 { font-size: 22px; }
.plan__price { display: grid; gap: 2px; }
.plan__price strong { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__price .swap { animation: swap .5s cubic-bezier(.2,.8,.2,1); }
.plan__desc { color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: radial-gradient(circle, #fff 30%, transparent 32%), var(--gradient); }
.plan--featured { box-shadow: var(--shadow-lg); isolation: isolate; }
.plan--featured::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 30px;
  background: conic-gradient(from var(--angle, 0deg), #FF7730, #FFD0A0, #FFA730, #FF7730);
  animation: spin 6s linear infinite;
}
.plan--featured::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px; background: var(--card); }
.plan__badge { position: absolute; top: -14px; left: 32px; padding: 6px 12px; border-radius: 999px; background: var(--gradient-diag); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(255,119,48,.35); }
.pricing__note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------------------------------------------------------------- Communauté */
.community { max-width: 1160px; margin: 0 auto; }
.community__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .community__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .community__grid { grid-template-columns: 1fr; } }
.ccard {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 26px; border-radius: 24px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.ccard:hover { transform: translateY(-6px) rotate(-.6deg); }
.ccard[aria-disabled="true"] { cursor: default; }
.ccard__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ccard__icon .i { width: 26px; height: 26px; stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.6s .2s cubic-bezier(.6,.1,.3,1); }
.ccard.is-visible .ccard__icon .i { stroke-dashoffset: 0; }
.ccard:hover .ccard__icon { transform: rotate(-8deg) scale(1.08); }
.ccard h3 { font-size: 21px; }
.ccard p { color: var(--ink-2); flex: 1; }
.soon, .go { align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.soon { color: var(--muted); background: var(--bg-2); }
.go { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--gradient-diag); }
.go .i { transition: transform .3s; }
.ccard:hover .go .i { transform: translateX(4px); }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); color: var(--orange-1); font-weight: 700; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------------------------------------------------------------- CTA final */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; gap: 22px; text-align: center;
  margin: 40px 16px 0; padding: 140px 24px; border-radius: 40px;
  background: var(--gradient-diag); color: #fff;
}
.final__aura { position: absolute; z-index: -1; left: 50%; top: 50%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.14) 0 2px, transparent 2px 70px);
  animation: ripple 8s linear infinite; }
.final h2 { font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -.05em; }
.final p { font-size: 20px; opacity: .92; }
.final.is-visible .final__mark { animation: mark-pop 1s cubic-bezier(.2,.8,.2,1) both, float 7s 1s ease-in-out infinite; }
.final__mark { --s: 110px; box-shadow: 0 30px 60px rgba(120, 40, 0, .35); background: linear-gradient(180deg, #FFA06A, #FFC97A); }

/* ---------------------------------------------------------------- Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; max-width: 1160px; margin: 0 auto; padding: 48px 24px; color: var(--muted); font-size: 14px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.footer__links { display: flex; gap: 20px; margin-left: auto; }
.footer__links a:hover { color: var(--orange-1); }
.footer__legal { width: 100%; font-size: 12px; }

/* ---------------------------------------------------------------- Bandeaux */
.ribbons { position: relative; z-index: 1; padding: 40px 0; overflow: hidden; }
.ribbon { width: 110%; margin-left: -5%; overflow: hidden; padding: 14px 0; transform: rotate(-2deg); background: var(--gradient-diag); color: #fff; box-shadow: 0 20px 50px rgba(255, 119, 48, .25); }
.ribbon--reverse { margin-top: 18px; transform: rotate(-2deg); background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.ribbon__track { display: flex; width: max-content; gap: 44px; animation: marquee 36s linear infinite; }
.ribbon--reverse .ribbon__track { animation-direction: reverse; animation-duration: 44s; }
.ribbon span { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.ribbon .i { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.ribbons:hover .ribbon__track { animation-play-state: paused; }

/* Titres de section révélés mot à mot */
.split .wr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .wr > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 45ms); }
.is-visible .split .wr > span, .split.is-visible .wr > span { transform: none; }

/* ---------------------------------------------------------------- Animations */
@keyframes breathe { 50% { transform: scale(calc(var(--aura, 1) * 1.06)); opacity: .85; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes infinite { to { transform: translateY(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes ripple { to { transform: scale(1.12); } }
@keyframes rise { to { transform: none; } }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes ink-loop { 0% { stroke-dashoffset: 100; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes ring-out { from { transform: scale(1); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }
@keyframes hub { 50% { transform: scale(1.06); } }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.5); } 100% { box-shadow: 0 0 0 8px rgba(52,199,89,0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes pulse-pill { 50% { transform: translateY(-2px); } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes played { from { --played: 4%; } to { --played: 96%; } }
@keyframes beam { 0% { transform: translateY(-30px); } 70%, 100% { transform: translateY(120px); } }
@keyframes nudge { 0%, 55% { transform: none; opacity: .5; } 70% { transform: translateX(5px); opacity: 1; } 100% { transform: none; opacity: .5; } }
@keyframes pop { 0%, 62% { transform: scale(.92); opacity: .45; } 74% { transform: scale(1.06); opacity: 1; } 84%, 100% { transform: none; opacity: 1; } }
@keyframes bell { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { transform: scale(1.1); box-shadow: 0 8px 30px rgba(255,119,48,.6); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,119,48,.45); } 100% { box-shadow: 0 0 0 16px rgba(255,119,48,0); } }
@keyframes tick { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swap { from { transform: translateY(40%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes mark-pop { 0% { transform: scale(.6) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.06) rotate(3deg); opacity: 1; } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cursor-aura { display: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span, .split .wr > span { transform: none; }
  .hero__copy > :not(h1) { opacity: 1; }
}
@media (hover: none) { .cursor-aura { display: none; } }
