/* Le site vitrine de Nuku. Une encre, un fond, une couleur d'action ; le reste des couleurs vient de l'app. */
:root {
  --ground: #0B0B0C; --ground-2: #151517; --ground-3: #1D1D20;
  --ink: #ECE7DF; --muted: #ABA59C;
  --paper: #ECE7DF; --paper-2: #E2DCD2; --paper-ink: #151414; --paper-muted: #5E5850;
  --accent: #9EC3DE;
  --nuit: #1A2649;
  --f: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --s-small: 14px; --s-body: clamp(17px, 1rem + .2vw, 19px); --s-lead: clamp(20px, 1.1rem + .6vw, 25px);
  --s-head: clamp(40px, 1.6rem + 3.6vw, 84px); --s-disp: clamp(64px, 2rem + 8.4vw, 168px);
  --m: clamp(16px, 2.2vw, 32px); --gap-sec: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f); font-size: var(--s-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sheet :focus-visible, .slip :focus-visible, .btn:focus-visible, .cell.ink:focus-visible { outline-color: var(--paper-ink); }
.sheet .mi:focus-visible { outline: 3px solid var(--paper-ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--paper-ink); padding: 10px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }
h2 { font-size: var(--s-head); }
.lead { font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }

/* Boutons : capsule pleine, une seule forme sur tout le site */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 30px; border-radius: 99px; background: var(--paper); color: var(--paper-ink); text-decoration: none; font-weight: 600; font-size: 18px; border: 0; cursor: pointer; font-family: inherit; transition: transform .16s var(--ease-out), translate .35s var(--ease-out), background-color .2s ease; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #fff; } .btn-ghost:hover { background: var(--ground-3); } }
.btn-small { height: 42px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn-big { height: 72px; padding: 0 38px; font-size: 21px; }
.btn-ghost { background: var(--ground-2); color: var(--ink); }
.dl-ic { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6.5 10l5.5 5.5 5.5-5.5M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6.5 10l5.5 5.5 5.5-5.5M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; }
.link { color: var(--ink); font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--accent); } }

/* La barre du haut : un trou au milieu pour le notch */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 30; height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 calc(var(--m) + 52px) 0 var(--m); }
.mark { font-weight: 800; font-size: 28px; letter-spacing: -.04em; text-decoration: none; margin-right: auto; }
.links { display: flex; gap: 26px; margin-left: auto; padding-left: 260px; }
.links a { text-decoration: none; font-size: 16px; color: var(--muted); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--ink); } }
.page-notch, .page-notch.notch { position: fixed; top: 0; left: 50%; z-index: 70; transform: translateX(-50%) scale(var(--nz, 1)); transform-origin: 50% 0; transition: transform .45s var(--ease-out); }

/* 1. Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; padding: 120px var(--m) 80px; }
.hero-copy { display: grid; gap: 32px; max-width: 980px; }
.hero h1 { font-size: var(--s-disp); line-height: .88; letter-spacing: -.045em; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.meta { color: var(--muted); font-size: var(--s-small); }
.hero-hint { position: absolute; right: calc(var(--m) + 330px); bottom: 64px; max-width: 26ch; font-size: var(--s-small); color: var(--muted); }
.hint-touch { display: none; }
.giant { position: fixed; right: 0; top: 0; z-index: 40; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 100% 50%; will-change: transform; -webkit-tap-highlight-color: transparent; }
.giant canvas { display: block; }
.giant.gone { visibility: hidden; }
.giant { transition: opacity .2s ease; }
.giant.away { opacity: 0; pointer-events: none; }
.sb.giant-on .sb-bulle { visibility: hidden; }
.sb-bulle.nudge { animation: nudge .9s var(--ease-out); }
@keyframes nudge { 0% { transform: translateX(0); } 18% { transform: translateX(-14px); } 40% { transform: translateX(2px); } 60% { transform: translateX(-6px); } 100% { transform: translateX(0); } }

/* 2. Le notch */
.notch-sec { padding: var(--gap-sec) var(--m) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; margin-bottom: 56px; }
.sec-head p { font-size: var(--s-body); max-width: 44ch; }
/* L'écran : un haut de Mac, bord noir, caméra, le notch posé dans le bord, le bas qui se fond dans la page. */
.device { position: relative; max-width: 1180px; margin: 0 auto; perspective: 1800px; perspective-origin: 50% 0; }
.device::before { content: ""; position: absolute; left: 8%; right: 8%; top: 12%; height: 70%; background: radial-gradient(closest-side, rgba(158,195,222,.22), transparent); filter: blur(40px); pointer-events: none; }
.lid { position: relative; transform-origin: 50% 100%; padding: 14px 14px 0; border-radius: 30px 30px 0 0; background: linear-gradient(#18181B, #0B0B0D 40%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.14); -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); }
.lid::before { content: ""; position: absolute; left: 50%; top: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1E2026; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.screen { position: relative; border-radius: 16px 16px 0 0; overflow: hidden; background: #000; aspect-ratio: 1200 / 520; container-type: inline-size; }
.screen-in { position: absolute; left: 0; top: 0; width: 1200px; height: 520px; transform-origin: 0 0; transform: scale(var(--sz, 1)); }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen-bulle { position: absolute; right: 0; top: 250px; }
.states { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; position: relative; }
.states button { font-family: inherit; font-size: 16px; font-weight: 600; height: 44px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--ground-2); color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .14s var(--ease-out); }
.states button.on { background: var(--paper); color: var(--paper-ink); }
.states button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .states button:not(.on):hover { background: var(--ground-3); color: var(--ink); } }
.note { margin-top: 16px; color: var(--muted); font-size: var(--s-small); }

/* Les tickets (légèreté) */
.slip { justify-self: end; width: min(100%, 500px); background: var(--paper); color: var(--paper-ink); padding: 34px 34px 56px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%); font-variant-numeric: tabular-nums; }
.slip h3 { font-size: 17px; font-weight: 800; margin: 28px 0 8px; }
.slip h3:first-child { margin-top: 0; }
.ln { display: flex; align-items: baseline; gap: 10px; font-size: 16px; padding: 6px 0; }
.ln i { flex: 1; border-bottom: 4px dotted rgba(21,20,20,.35); transform: translateY(-4px); min-width: 16px; }
.ln span:last-child { text-align: right; font-weight: 600; }
.ln.total { margin-top: 24px; background: var(--paper-ink); color: var(--paper); justify-content: space-between; padding: 12px 16px; margin-left: -16px; margin-right: -16px; font-weight: 600; }

/* 4. Les outils : une carte de menu */
.outils { background: var(--nuit); padding: clamp(80px, 9vw, 140px) var(--m); display: grid; justify-items: center; }
.sheet { width: min(100%, 640px); background: var(--paper); color: var(--paper-ink); padding: 72px 48px 84px; --sc: radial-gradient(circle at 50% 0, transparent 11px, #000 11.5px); -webkit-mask: radial-gradient(circle at 12px 0, transparent 11px, #000 11.5px) 0 0 / 24px 51% repeat-x, radial-gradient(circle at 12px 100%, transparent 11px, #000 11.5px) 0 100% / 24px 51% repeat-x; mask: radial-gradient(circle at 12px 0, transparent 11px, #000 11.5px) 0 0 / 24px 51% repeat-x, radial-gradient(circle at 12px 100%, transparent 11px, #000 11.5px) 0 100% / 24px 51% repeat-x; }
.sheet h2 { font-size: clamp(40px, 1.5rem + 2.6vw, 60px); text-align: center; }
.sheet-sub { text-align: center; color: var(--paper-muted); font-size: 17px; margin-top: 16px; max-width: 36ch; margin-inline: auto; }
.menu-grp { margin-top: 44px; }
.menu-grp h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.mi { display: grid; gap: 4px; width: 100%; text-align: left; font-family: inherit; color: inherit; background: none; border: 0; padding: 10px 12px; margin: 0 -12px; width: calc(100% + 24px); border-radius: 14px; cursor: pointer; transition: background-color .2s ease, transform .14s var(--ease-out); }
.mi:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .mi:hover { background: var(--paper-2); } }
.mi-l { display: flex; align-items: baseline; gap: 10px; font-size: 19px; }
.mi-l b { font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.mi-l b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--d, var(--paper-ink)); flex: none; transform: translateY(-1px); }
.mi-l i { flex: 1; border-bottom: 4px dotted rgba(21,20,20,.3); transform: translateY(-5px); min-width: 16px; }
.mi-l span { font-weight: 600; text-align: right; }
.mi small { font-size: 16px; color: var(--paper-muted); max-width: 40ch; padding-left: 22px; line-height: 1.45; }
.mi-eyes { margin-top: 36px; } .mi-eyes .mi-l b::before { width: 16px; border-radius: 4px; background: var(--paper-ink); }

/* 5. Humeurs : une plaque carrée et sa colonne */
.humeurs { background: var(--ground-2); padding: clamp(64px, 7vw, 110px) var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); min-height: 88svh; align-items: stretch; }
.plate { position: relative; aspect-ratio: 1; align-self: center; width: 100%; background: #4E5E7E; overflow: hidden; }
.plate canvas { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.plate-name { position: absolute; left: 24px; bottom: 20px; font-family: var(--f); font-weight: 800; font-size: 22px; color: #fff; }
.h-col { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 8px 0; }
.h-tabs { display: flex; gap: 28px; }
.h-tabs button { font-family: inherit; font-size: 18px; font-weight: 600; background: none; border: 0; color: var(--muted); padding: 6px 0; cursor: pointer; transition: color .2s ease; }
.h-tabs button[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; text-decoration-color: var(--accent); }
.h-mid { display: grid; gap: 24px; }
.h-mid h2 { font-size: clamp(36px, 1.4rem + 2.4vw, 56px); }
.h-mid p { max-width: 40ch; }
.h-opts { display: flex; flex-wrap: wrap; gap: 8px; min-height: 150px; align-content: flex-start; }
.h-opts button { font-family: inherit; font-size: 15px; font-weight: 600; height: 40px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--ground-3); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s ease, color .2s ease, transform .14s var(--ease-out); }
.h-opts button:active { transform: scale(.96); }
.h-opts button.on { background: var(--paper); color: var(--paper-ink); }
@media (hover: hover) and (pointer: fine) { .h-opts button:not(.on):hover { background: #2A2A2E; } }
.h-opts .sw-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.h-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cell { height: 72px; border: 0; font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer; background: var(--ground-3); color: var(--ink); transition: background-color .2s ease, transform .14s var(--ease-out); }
.cell.ink { background: var(--paper); color: var(--paper-ink); }
.cell:active { transform: scale(.98); }

/* 6. Légèreté : le total et son ticket */
.leger { padding: var(--gap-sec) var(--m); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
.l-left { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.l-left p { max-width: 40ch; margin-top: 24px; }
.total em { font-style: normal; } .total b { display: block; font-variant-numeric: tabular-nums; font-size: clamp(120px, 3rem + 14vw, 290px); font-weight: 800; letter-spacing: -.06em; line-height: .8; }
.total b span { font-size: .32em; letter-spacing: -.02em; }
.total p { margin-top: 18px; color: var(--muted); }
.receipt { align-self: start; }
@media (max-width: 1100px) { .print-wrap { justify-self: start; } }

/* 7. Téléchargement */
.cta { padding: 0 var(--m) var(--gap-sec); display: grid; gap: 40px; }
.cta h2 { font-size: var(--s-disp); line-height: .88; letter-spacing: -.045em; max-width: 12ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.cta-row p { max-width: 46ch; color: var(--muted); font-size: 16px; }
.perms { max-width: 62ch; font-size: 16px; }
.toast { min-height: 1.5em; color: var(--accent); font-weight: 600; }

/* Pied : le nom construit en blocs */
.foot { background: var(--ground); padding: 0 var(--m) 40px; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 220px; }
.bk { flex: 1; display: grid; place-items: center; color: var(--paper-ink); font-weight: 800; font-size: clamp(90px, 16vw, 260px); line-height: 1; letter-spacing: -.05em; overflow: hidden; padding-bottom: .08em; }
.b1 { height: 78%; background: #D8A4B0; } .b2 { height: 100%; background: #9EC3DE; } .b3 { height: 62%; background: var(--nuit); flex: .8; } .b4 { height: 88%; background: #9DBFA6; } .b5 { height: 70%; background: #D9B77E; }
.b3 canvas { display: block; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; margin-top: 56px; }
.foot-cols nav { display: grid; gap: 10px; align-content: start; }
.foot-cols b { font-size: 16px; }
.foot-cols a { color: var(--muted); text-decoration: none; font-size: 16px; } .foot-cols a:hover { color: var(--ink); }
.foot-note { color: var(--muted); font-size: 16px; max-width: 46ch; justify-self: end; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; color: var(--muted); }
.foot-last .btn { background: var(--ground-2); color: var(--ink); }

/* Titres en masque : chaque ligne monte depuis sous sa ligne de base */
.split .sl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split .sl > span { display: block; }
.js .split .sl > span { transform: translateY(105%); }
.js .split.in .sl > span { transform: none; transition: transform 1s var(--ease-out); }
.js .split.in .sl:nth-child(2) > span { transition-delay: 90ms; }
/* La grosse bulle sort du bord au chargement */
.js .giant canvas { transform: translateX(70%); opacity: 0; }
.js .giant.ready canvas { transform: none; opacity: 1; transition: transform 1.1s var(--ease-out) .35s, opacity .3s ease .35s; }
/* Le ticket s'imprime de haut en bas */
.print-wrap { align-self: start; justify-self: end; width: min(100%, 500px); }
.print-wrap .slip { width: 100%; }
.js .print { clip-path: inset(0 0 100% 0); }
.js .print.in { clip-path: inset(0 0 -20px 0); transition: clip-path 1.4s cubic-bezier(0.32, 0.72, 0, 1) .15s; }
/* Les blocs du nom montent l'un après l'autre */
.js .rise .bk { transform: translateY(101%); }
.js .rise.in .bk { transform: none; transition: transform .9s var(--ease-out); }
.js .rise.in .b2 { transition-delay: 70ms; } .js .rise.in .b3 { transition-delay: 140ms; } .js .rise.in .b4 { transition-delay: 210ms; } .js .rise.in .b5 { transition-delay: 280ms; }
.blocks { overflow: hidden; }
/* Le point de couleur de chaque outil grossit au survol */
.mi-l b::before { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mi:hover .mi-l b::before { transform: translateY(-1px) scale(1.5); } .mi:hover .mi-l i { border-bottom-color: rgba(21,20,20,.55); } }
.mi-l i { transition: border-color .2s ease; }
/* Le nom de l'humeur change en fondu */
.plate-name { transition: opacity .2s ease, transform .3s var(--ease-out); } .plate-name.swap { opacity: 0; transform: translateY(6px); }

/* Entrées des sections : seulement si le script tourne */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--rd, 0ms); }

/* Tablette */
@media (max-width: 1100px) {
  .links { display: none; }
  .hero-hint { right: auto; left: var(--m); bottom: 32px; }
  .sec-head, .leger { grid-template-columns: 1fr; }
  .slip { justify-self: start; }
  .humeurs { grid-template-columns: 1fr; min-height: 0; }
  .plate { max-width: 620px; }
  .foot-cols { grid-template-columns: 1fr 1fr; } .foot-note { grid-column: 1 / -1; justify-self: start; }
}
/* Téléphone */
@media (max-width: 640px) {
  .bar { height: 60px; padding-right: var(--m); }
  .mark { font-size: 24px; }
  .bar .btn-small { width: 42px; padding: 0; justify-content: center; } .bar .lbl-long { display: none; }
  .hero { padding-top: 104px; padding-bottom: 300px; align-content: start; min-height: 100svh; }
  .hero h1 { font-size: 15.5vw; }
  .hero-copy { gap: 22px; max-width: none; }
  .lead { max-width: none; }
  .hero-hint { position: absolute; left: var(--m); bottom: 40px; max-width: 46vw; }
  .hint-desk { display: none; } .hint-touch { display: inline; }
  .btn { height: 56px; padding: 0 24px; font-size: 17px; }
  .lid { padding: 8px 8px 0; border-radius: 20px 20px 0 0; } .lid::before { top: 2px; width: 4px; height: 4px; margin-left: -2px; }
  .screen { border-radius: 12px 12px 0 0; aspect-ratio: 700 / 520; }
  .screen-in { width: 700px; height: 520px; }
  .screen-bulle { top: 290px; }
  .states button { font-size: 15px; height: 42px; padding: 0 16px; }
  .slip { padding: 26px 22px 48px; }
  .ln { font-size: 16px; } .ln span:last-child { max-width: 52%; }
  .sheet { padding: 60px 20px 72px; }
  .mi-l { font-size: 17px; flex-wrap: wrap; } .mi-l i { display: none; } .mi-l span { width: 100%; text-align: left; padding-left: 22px; font-weight: 500; color: var(--paper-muted); font-size: 15px; } .mi small { font-size: 16px; }
  .h-tabs { gap: 20px; } .h-tabs button { font-size: 17px; }
  .h-cells { grid-template-columns: 1fr; } .cell { height: 60px; }
  .total b { font-size: 34vw; }
  .cta h2 { font-size: 12.6vw; }
  .btn-big { height: 64px; font-size: 19px; }
  .blocks { height: 22svh; min-height: 150px; } .bk { font-size: 19vw; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .split .sl > span, .js .rise .bk, .js .giant canvas { transform: none !important; opacity: 1 !important; }
  .js .print { clip-path: none; }
  .js .rv { transform: none; } .js .rv.in { transition: opacity .3s ease; }
  .page-notch { transition: none; }
}

/* Placé en dernier : le ticket repasse à gauche sous 1100 px */
@media (max-width: 1100px) { .print-wrap { justify-self: start; } }
/* Barre ouverte : le notch passe sous le panneau, et s'efface au téléphone */
body.sb-open .page-notch { z-index: 50; }
@media (max-width: 640px) { body.sb-open .page-notch { opacity: 0; pointer-events: none; } }

/* Sans souris (téléphone, tablette) : pas de barre latérale, Nuku vise le Mac. */
body.no-sb .sb { display: none; }
body.no-sb .hero-hint, body.no-sb .desk-only { display: none; }
body.no-sb .mi { pointer-events: none; cursor: default; }
#demoNote { text-align: center; margin-left: auto; margin-right: auto; }

/* MARK: passe de mouvement 2 */
/* Les mots-outils du haut de page : soulignés à la couleur de leur outil, un par un ; un clic ouvre la barre dessus. */
.tw { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; position: relative; white-space: nowrap; letter-spacing: inherit; transition: color .2s ease; }
.tw::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: 3px; border-radius: 2px; background: var(--c); transform-origin: 0 50%; }
.js .lead .tw::after { transform: scaleX(0); }
.js .lead.in .tw::after { transform: scaleX(1); transition: transform .7s var(--ease-out) calc(450ms + var(--i) * 110ms); }
@media (hover: hover) and (pointer: fine) { body:not(.no-sb) .tw:hover { color: var(--c); } }
body.no-sb .tw { pointer-events: none; cursor: default; }

/* Les titres de section montent mot par mot, chacun sorti de sa fente. */
.wsplit .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wsplit .wd > span { display: inline-block; }
.js .wsplit .wd > span { transform: translateY(108%); }
.js .wsplit.in .wd > span { transform: none; transition: transform .85s var(--ease-out) calc(var(--wi) * 55ms); }

/* L'écran qui se rallume quand le Mac se redresse (le JS règle l'angle au scroll). */
.screen-off { position: absolute; inset: 0; background: #050507; opacity: 0; pointer-events: none; }
.w-d, .w-sun { will-change: transform; }

/* Le menu des outils s'écrit : la pastille saute, la ligne pointillée se trace. */
@keyframes dotPop { from { transform: translateY(-1px) scale(0); } }
@keyframes leadDraw { from { transform: translateY(-5px) scaleX(0); } }
.mi-l i { transform-origin: 0 50%; }
.js .mi.rv.in .mi-l b::before { animation: dotPop .55s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--rd, 0ms) + 120ms); }
.js .mi.rv.in .mi-l i { animation: leadDraw .9s var(--ease-out) backwards; animation-delay: calc(var(--rd, 0ms) + 180ms); }

@media (prefers-reduced-motion: reduce) {
  .js .lead .tw::after, .js .wsplit .wd > span { transform: none !important; transition: none !important; }
  .js .mi.rv.in .mi-l b::before, .js .mi.rv.in .mi-l i { animation: none; }
  .lid, .w-d, .w-sun { transform: none !important; } .screen-off { opacity: 0 !important; }
  .btn { translate: none !important; }
}
