/* Nuku · une page en chapitres de couleur : chaque chapitre prend la couleur d'un personnage. */
:root {
  color-scheme: dark;
  --charcoal: #191919;
  --surface: #242424;
  --dark: #16100e;
  --peche: #ff8fa3;
  --coulis: #d8203a;
  --coulis-light: #ff6b7d;
  --hortensia: #2f63d8;
  --hortensia-light: #8db2ff;
  --gelee: #ffb21e;
  --sakura: #ff9ccb;
  --confettis: #ffe14d;
  --matcha: #8fd18a;
  --bille: #1f4fd0;

  --m: max(clamp(16px, 2.6vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-huge: clamp(3.6rem, 11vw, 12rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--charcoal); color: #fff; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: var(--step-body); line-height: 1.5; overflow-x: hidden; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
::selection { background: var(--confettis); color: var(--dark); }

/* ---------- le notch, toujours en haut ---------- */
.notch { position: fixed; top: env(safe-area-inset-top, 0px); left: 50%; z-index: 40; width: 200px; height: 34px; margin-left: -100px; padding: 0; border: 0; background: #000; border-radius: 0 0 18px 18px; cursor: pointer; transition: transform .25s var(--ease); }
.notch:hover { transform: scale(1.05); }
.notch[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.notch canvas { position: absolute; left: 50%; top: 2px; width: 30px !important; height: 30px !important; margin-left: -15px; }

/* ---------- la barre ---------- */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px var(--m); font-size: var(--step-small); color: #fff; }
.mark { font-weight: 700; font-size: var(--step-lead); text-decoration: none; letter-spacing: -0.03em; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 0; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ink { background: var(--dark); color: #fff; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.link { font-weight: 600; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- les chapitres ---------- */
.chap { position: relative; overflow-x: clip; min-height: 92svh; background: var(--field); color: var(--ink); padding: 0 var(--m); }

/* 1 · la promesse : le titre à gauche, le vrai notch animé à droite */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; min-height: 100svh; padding-top: 110px; padding-bottom: 72px; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 6.2rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.07em; }
.hero-title .line > span { display: inline-block; white-space: nowrap; }
.hero-title .hl { color: var(--confettis); }
.hero-sub { margin-top: 28px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.hero .actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-fine { margin-top: 18px; font-size: var(--step-small); }

/* la démo : le design de l'app, en em pour suivre la taille */
.demo { position: relative; width: 100%; max-width: 600px; justify-self: end; height: 18em; font-size: clamp(12px, 1.15vw, 17px); border-radius: 1.6em; background: rgba(4, 10, 40, .32); overflow: hidden; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; color: #f5f5f7; }
.d-island { position: absolute; left: 50%; top: 0; width: 30%; max-width: calc(100% - 2em); height: 2.4em; transform: translateX(-50%); background: #000; border-radius: 0 0 1.4em 1.4em; overflow: hidden; }
.d-top { display: flex; align-items: center; justify-content: space-between; padding: 0.8em 1.1em 0; opacity: 0; }
.d-tabs { display: flex; gap: 0.9em; }
.d-tabs i { width: 1.15em; height: 1.15em; border-radius: 0.3em; background: #3a3a3c; }
.d-tabs i.on { background: #8e8e93; }
.d-gauge { display: flex; gap: 0.5em; font-size: 0.85em; }
.d-gauge b { padding: 0.15em 0.6em; border-radius: 99px; background: #1c1c1e; font-weight: 600; }
.d-gauge .g1 { color: #30d158; } .d-gauge .g2 { color: #ff453a; }
.d-card { position: relative; display: grid; grid-template-columns: 5em 1fr; gap: 0.9em; align-items: center; margin: 0.7em 1em 1em; padding: 0.8em 1em; border-radius: 1.2em; background: #1c1c1e; opacity: 0; min-height: 6.2em; }
.d-char { width: 5em; height: 5em; }
.d-char canvas { width: 100% !important; height: 100% !important; max-width: none; }
.d-panes { position: relative; display: grid; min-height: 5em; }
.d-pane { grid-area: 1 / 1; display: grid; align-content: center; gap: 0.35em; opacity: 0; }
.d-pane p { margin: 0; }
.d-h { font-size: 1em; display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }
.d-h .dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: #ff6b3d; }
.d-h em { font-style: normal; color: #8e8e93; }
.d-h small { margin-left: auto; color: #8e8e93; }
.d-g { color: #8e8e93; font-size: 0.9em; }
.d-g .plus { color: #30d158; } .d-g .minus { color: #ff453a; }
.d-l { font-size: 1em; color: #e5e5ea; }
.d-code { justify-self: start; padding: 0.3em 0.7em; border-radius: 0.5em; background: #2c2c2e; font-family: ui-monospace, Menlo, monospace; font-size: 0.95em; } /* taste-skill-ignore : commande affichée par l'app (data-ui) */
.d-btns { display: flex; gap: 0.4em; flex-wrap: wrap; }
.d-btns .b { padding: 0.35em 0.75em; border-radius: 99px; background: #2c2c2e; font-weight: 600; font-size: 0.84em; white-space: nowrap; }
.d-btns .b.w { background: #fff; color: #000; }
.d-btns kbd { font: inherit; font-size: 0.8em; padding: 0 0.35em; margin-left: 0.25em; border-radius: 0.3em; border: 1px solid currentColor; opacity: .6; } /* taste-skill-ignore : touche clavier de l'app (data-ui) */
.d-big { font-weight: 700; font-size: 1.05em; line-height: 1.3; }
.d-cursor { position: absolute; width: 1.9em; height: 1.9em; left: 80%; top: 80%; opacity: 0; }
.d-caption { position: absolute; left: 1em; right: 1em; bottom: 1.1em; line-height: 1.2; text-align: center; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; font-size: var(--step-lead); color: #fff; }

/* 1 bis · les agents */
.agents { padding-top: 120px; padding-bottom: 120px; }
.agents h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.ag-grid { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: 40px; margin-top: 56px; align-items: start; }
.ag-video { position: relative; margin: 0; aspect-ratio: 9 / 16; background: #000; overflow: hidden; border-radius: 22px; }
.ag-video video { width: 100%; height: 100%; object-fit: cover; }
.ag-sound { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); min-height: 44px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--dark); color: #fff; font-weight: 600; }
.ag-steps { display: grid; gap: 36px; }
.ag-step img { width: 100%; border-radius: 16px; background: #000; }
.ag-step h3 { margin: 16px 0 0; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.ag-step p { margin-top: 6px; max-width: 52ch; }
.ag-works { margin-top: 56px; font-size: var(--step-lead); font-weight: 600; max-width: 46ch; }

/* 2 · l'escalier */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); align-content: center; min-height: 100svh; padding-top: 12svh; padding-bottom: 12svh; }
.stairs { grid-column: 1 / 7; align-self: center; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.stairs span { display: block; color: var(--c); white-space: nowrap; }
.stairs span:nth-child(2) { padding-left: 3vw; }
.stairs span:nth-child(3) { padding-left: 6vw; }
.stairs span:nth-child(4) { padding-left: 9vw; }
.stairs span:nth-child(5) { padding-left: 12vw; }
.intro-pics { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: center; }
.intro-pics figure:first-child { grid-column: 1 / -1; }
.intro-pics figure:first-child img { aspect-ratio: auto; }
.intro-pics figure { overflow: hidden; background: #000; }
.intro-pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intro-note { grid-column: 1 / 6; margin-top: 4svh; font-size: var(--step-small); color: #fff; }


/* 4 · les interrupteurs */
.feats { min-height: auto; padding: 0; }
.band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; min-height: 20vh; padding: 28px var(--m); background: var(--charcoal); color: #e6e6e6; transition: background-color .45s var(--ease), color .45s; }
.band.on { background: var(--on); color: var(--on-ink); }
.say { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.more { max-height: 0; overflow: hidden; opacity: 0; font-size: var(--step-body); font-weight: 500; transition: max-height .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.band.on .more { max-height: 8em; opacity: 1; margin-top: 12px; }
.switch { position: relative; width: 3.6em; height: 2em; font-size: clamp(22px, 2.6vw, 36px); border: 0; padding: 0; border-radius: 99px; background: #3a3a3a; transition: background-color .3s; }
.switch span { position: absolute; top: .2em; left: .2em; width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.band.on .switch { background: var(--dark); }
.band.on .switch span { transform: translateX(1.6em); }

/* 5 · la journée */
.day { padding-top: 120px; padding-bottom: 120px; }
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.day-head h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.soft { color: #6b4300; }
.day-body { display: grid; grid-template-columns: 170px 1fr; gap: 40px; margin-top: 56px; }
.day-tabs { display: grid; gap: 6px; align-content: start; }
.day-tabs button { display: grid; text-align: left; height: 72px; padding: 10px 16px; border: 0; background: #ffc95a; color: var(--dark); transition: background-color .2s, transform .2s var(--ease); }
.day-tabs button:hover { transform: translateX(4px); }
.day-tabs button b { font-size: var(--step-body); }
.day-tabs button small { font-size: var(--step-small); }
.day-tabs button[aria-selected="true"] { background: var(--dark); color: #fff; }
.day-list { display: grid; gap: 4px; align-content: start; }
.slot { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; min-height: 84px; padding: 12px 20px; background: #ffc44a; }
.slot:nth-child(even) { background: #ffd47a; }
.slot time { font-size: var(--step-lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot b { display: block; font-size: var(--step-body); font-weight: 600; }
.slot span { font-size: var(--step-small); }
.slot canvas { width: 54px !important; height: 54px !important; }

/* 6 · le mur d'extraits */
.wall { padding-top: 140px; padding-bottom: 140px; }
.wall h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 48px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile video { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.tile .strip { display: grid; gap: 4px; min-height: 84px; padding: 12px 14px; background: var(--s); color: var(--si); font-size: var(--step-small); }
.tile .strip b { font-size: var(--step-body); }
.tile .strip span { display: flex; justify-content: space-between; }
@media (hover: hover) { .tile:hover video { transform: scale(1.02); } }
.tile video { transition: transform .4s var(--ease); }
.tile { overflow: hidden; }

/* 7 · sur ton bureau : quatre petits écrans en motion design */
.desk { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 0; }
.desk .field { position: relative; display: flex; flex-direction: column; gap: 28px; min-height: 80svh; padding: 40px 28px 32px; background: var(--field); color: var(--ink); }
.desk h2 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.desk p { margin-top: auto; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.scr { position: relative; width: min(100%, 380px); align-self: center; aspect-ratio: 4 / 5; margin-top: 2svh; border-radius: 22px; background: rgba(0, 0, 0, .2); overflow: hidden; }
.s-notch { position: absolute; left: 50%; top: 0; width: 38%; height: 7%; transform: translateX(-50%); background: #000; border-radius: 0 0 14px 14px; }
.s-char { position: absolute; left: 50%; top: 2%; width: 46%; aspect-ratio: 2 / 3; transform: translate(-50%, 0); }
.s-char canvas { width: 100% !important; height: 100% !important; max-width: none; }
.s-shadow { position: absolute; left: 50%; top: 66%; width: 26%; height: 4%; transform: translateX(-50%); background: rgba(0, 0, 0, .28); border-radius: 50%; opacity: 0; }
.s-cursor { position: absolute; left: 70%; top: 80%; width: 28px; height: 28px; opacity: 0; }
.s-ring { position: absolute; inset: 0; }
.s-ring i { position: absolute; width: 15%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: clamp(13px, 1.2vw, 18px); background: #1c1c1e; color: var(--c); transform: translate(-50%, -50%); }
@media (hover: hover) { .desk .field:hover .scr { transform: translateY(-6px); } }
.scr { transition: transform .25s var(--ease); }

/* 9 · les prix */
.price { padding-top: 120px; padding-bottom: 120px; }
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.price-head h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.period { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: var(--dark); }
.period button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: transparent; color: #fff; font-weight: 600; transition: background-color .2s, color .2s; }
.period button[aria-checked="true"] { background: var(--confettis); color: var(--dark); }
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 56px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: #fff3a6; color: var(--dark); }
.plan-pro { background: var(--dark); color: #fff; }
.p-name { font-size: var(--step-lead); font-weight: 700; }
.p-price { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.p-price small { font-size: var(--step-lead); letter-spacing: -0.01em; font-weight: 600; }
.p-note { font-weight: 500; }
.plan ul { margin: 8px 0 20px; padding: 0 0 0 1.1em; display: grid; gap: 8px; }
.plan li::marker { color: var(--peche); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.btn-pro { background: var(--confettis); color: var(--dark); }

/* 8 · choisis ton Nuku */
.pick { display: grid; grid-template-columns: repeat(12, 1fr); min-height: 100svh; transition: background-color .5s var(--ease); }
.pick-copy { grid-column: 1 / 6; align-self: end; padding-bottom: 48px; }
.pick-copy h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; }
.pick-copy p { margin-top: 28px; max-width: 34ch; }
.welcome { grid-column: 7 / 12; align-self: center; width: min(460px, 100%); justify-self: end; padding: 22px; background: #1d1d1f; color: #f5f5f7; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); /* taste-skill-ignore : fenêtre de l'app (data-ui) */ font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.w-title { font-size: 15px; font-weight: 600; text-align: center; }
.w-stage { height: 210px; margin: 6px 0 0; display: grid; place-items: center; }
.w-stage canvas { width: 180px !important; height: 270px !important; margin-top: -40px; }
.w-name { text-align: center; font-weight: 600; font-size: 17px; margin-top: -10px; }
.w-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.w-grid button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; background: #2c2c2e; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.w-grid button:hover { transform: translateY(-2px); background: #3a3a3c; }
.w-grid button[aria-checked="true"] { background: #4a4a4e; box-shadow: inset 0 0 0 2px #fff; /* taste-skill-ignore : sélection de l'app (data-ui) */ }
.w-grid canvas { width: 100% !important; height: 100% !important; pointer-events: none; }
.w-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }
.w-geste { min-height: 52px; padding: 0 18px; border: 0; border-radius: 10px; background: #2c2c2e; font-weight: 600; }
.w-geste:hover { background: #3a3a3c; }
.w-go { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; background: #0a84ff; color: #fff; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease); }
.w-go:hover { transform: translateY(-2px); }

/* 9 · le pied de page en tuiles */
.foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 10px; background: var(--charcoal); }
.t { min-height: 220px; padding: 22px; background: var(--surface); color: #fff; }
.t-say { grid-column: 1 / -1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
.t-say p { font-size: var(--step-lead); line-height: 1.2; font-weight: 600; }
.t-say small { font-size: var(--step-small); color: #c4c4c4; }
.t-nav { grid-column: 5 / 8; display: grid; align-content: start; gap: 8px; }
.t-nav a { text-decoration: none; }
.t-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.t-time { grid-column: 8 / 10; display: flex; flex-direction: column; justify-content: space-between; }
.clock { font-size: var(--step-lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.t-mac { grid-column: 10 / 13; }
.t-word { grid-column: 1 / 9; min-height: 320px; display: grid; place-items: center; background: #fff; color: var(--dark); overflow: hidden; }
.t-word span { font-size: 18vw; font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; }
.t-go { grid-column: 9 / 13; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; background: var(--peche); color: var(--dark); text-decoration: none; font-size: var(--step-lead); font-weight: 700; line-height: 1.05; transition: background-color .2s; }
.t-go svg { width: 64px; height: 64px; align-self: flex-end; transition: transform .25s var(--ease); }
.t-go:hover svg { transform: translate(6px, -6px); }

/* ---------- téléphone ---------- */
@media (max-width: 760px) {
  .links { display: none; }
  .bar .btn-small { margin-left: auto; }
  .notch { width: 140px; margin-left: -70px; height: 30px; }
  .intro { display: block; padding-top: 72px; padding-bottom: 72px; min-height: 0; }
  .stairs { font-size: 7.4vw; line-height: 1.08; }
  .stairs span { white-space: normal; }
  .stairs span:nth-child(2) { padding-left: 4vw; }
  .stairs span:nth-child(3) { padding-left: 8vw; }
  .stairs span:nth-child(4) { padding-left: 12vw; }
  .stairs span:nth-child(5) { padding-left: 16vw; }
  .intro-pics { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
  .intro-note { margin-top: 28px; font-size: var(--step-body); }

  .band { min-height: 132px; padding: 22px var(--m); }
  .say { font-size: 7vw; line-height: 1.05; }
  .switch { font-size: 22px; }
  .day { padding-top: 88px; padding-bottom: 88px; }
  .day-head { flex-direction: column; align-items: stretch; }
  .day-body { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .day-head { flex-direction: row; align-items: flex-end; }
  .day-cta { min-height: 44px; padding: 0 16px; font-size: var(--step-small); flex-shrink: 0; }
  .day-body { gap: 12px; margin-top: 28px; }
  .day-tabs { grid-template-columns: repeat(4, 1fr); gap: 4px; position: static; }
  .day-tabs button { height: 48px; padding: 0 6px; place-items: center; text-align: center; border-radius: 99px; }
  .day-tabs button:hover { transform: none; }
  .day-tabs button small { display: none; }
  .day-tabs button b { font-size: 16px; white-space: nowrap; }
  .day-list { gap: 6px; }
  .slot { grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 16px; min-height: 0; border-radius: 16px; }
  .slot canvas { grid-column: 1; grid-row: 1 / 3; width: 48px !important; height: 48px !important; align-self: start; }
  .slot time { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 700; opacity: .7; }
  .slot div { grid-column: 2; grid-row: 2; }
  .slot b { font-size: 18px; line-height: 1.25; }
  .slot span { display: block; margin-top: 2px; line-height: 1.4; }
  .wall { padding-top: 88px; padding-bottom: 88px; }
  .wall h2 { margin-bottom: 28px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile .strip span:last-child { display: none; }
  .tile .strip { min-height: 0; padding: 12px; }
  .desk { grid-template-columns: 1fr 1fr; }
  .desk .field { min-height: 0; gap: 14px; padding: 24px 14px 26px; }
  .desk h2 { min-height: 2.2em; }
  .desk .field:nth-child(2) { padding-top: calc(24px + 2.2em + 14px); }
  .scr { margin-top: 0; border-radius: 16px; }
  .desk p { margin-top: 0; font-size: 18px; }
  .price { padding-top: 80px; padding-bottom: 80px; }
  .plans { grid-template-columns: 1fr; margin-top: 32px; }
  .plan { padding: 24px 20px; }
  .plan .btn { align-self: stretch; }
  .pick { display: flex; flex-direction: column; gap: 32px; padding-top: 96px; padding-bottom: 40px; }
  .pick-copy { padding-bottom: 0; }

  .welcome { width: 100%; }
  .w-grid { grid-template-columns: repeat(5, 1fr); }
  .w-actions { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .t { min-height: 150px; padding: 20px; }
  .t-word { grid-column: 1 / -1; min-height: 160px; order: -2; }
  .t-word span { font-size: 30vw; }
  .t-go { grid-column: 1 / -1; min-height: 160px; order: -1; }
  .t-say { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- le notch ouvert (aperçu de l'app) ---------- */
.island { overscroll-behavior: contain; position: fixed; top: env(safe-area-inset-top, 0px); left: 50%; z-index: 45; width: min(760px, calc(100vw - 16px)); transform: translateX(-50%); padding: 14px 18px 12px; background: #000; color: #f5f5f7; border-radius: 0 0 34px 34px; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; transform-origin: 50% 0; }
.island[hidden] { display: none; }
.i-top { display: flex; align-items: center; gap: 10px; }
.i-tabs { display: flex; gap: 4px; }
.i-tabs button { width: 44px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 99px; background: transparent; color: #8e8e93; transition: background-color .2s, color .2s; }
.i-tabs button svg { width: 20px; height: 20px; fill: currentColor; }
.i-tabs button[aria-selected="true"] { background: #2c2c2e; color: #fff; }
.i-tabs button:hover { color: #fff; }
.i-timer { margin-left: auto; padding: 4px 12px; border-radius: 99px; background: #1c1c1e; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.i-timer::before { content: "◷ "; color: #ff453a; }
.i-icons { display: flex; gap: 14px; margin-left: auto; color: #8e8e93; }
.i-timer:not([hidden]) + .i-icons { margin-left: 12px; }
.i-icons svg { width: 20px; height: 20px; }
.i-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; margin-top: 12px; min-height: 150px; }
.i-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px 16px; background: #1c1c1e; border-radius: 20px; }
.i-card canvas { width: 96px !important; height: 96px !important; }
.i-card h3 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.i-card h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #30d158); }
.i-card h3 small { font-weight: 500; color: #8e8e93; font-size: 15px; }
.i-card p { margin: 4px 0 0; font-size: 14px; color: #a1a1a6; line-height: 1.35; }
.i-card .i-big { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0 6px; color: #fff; }
.i-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.i-acts button, .i-acts a { padding: 5px 12px; border: 0; border-radius: 99px; background: #2c2c2e; color: #e5e5ea; font-size: 14px; font-weight: 600; text-decoration: none; }
.i-acts .red { background: #4a1517; color: #ff6961; }
.i-acts .link { background: none; padding: 5px 0; color: #64d2ff; }
.i-grid { display: grid; gap: 6px; padding: 8px; background: #141416; border-radius: 20px; align-content: center; }
.i-grid.g2 { grid-template-columns: 1fr 1fr; }
.i-grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.i-grid button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 4px 8px; border: 1.5px solid #2a2a2c; border-radius: 99px; background: #1c1c1e; color: #a1a1a6; font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s; }
.i-grid button:hover, .i-grid button[aria-pressed="true"] { border-color: var(--c, #ff453a); color: #fff; }
.i-grid button canvas { width: 30px !important; height: 30px !important; }
.i-grid button i { font-style: normal; color: var(--c); }
.i-chat { grid-column: 1 / -1; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 16px; background: #1c1c1e; border-radius: 20px; }
.i-chat canvas { width: 64px !important; height: 64px !important; align-self: end; }
.i-log { display: grid; gap: 8px; align-content: end; min-height: 70px; font-size: 14px; }
.i-log .me { justify-self: end; max-width: 80%; padding: 7px 12px; border-radius: 14px; background: #2c2c2e; }
.i-log .it { max-width: 90%; color: #e5e5ea; line-height: 1.4; }
.i-in { display: flex; gap: 8px; margin-top: 10px; }
.i-in input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #2c2c2e; color: #fff; font: inherit; font-size: 15px; }
.i-in button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #000; font-size: 18px; font-weight: 700; }
.i-drop { grid-column: 1 / -1; display: grid; place-items: center; gap: 8px; min-height: 150px; border: 2px dashed #3a3a3c; border-radius: 20px; color: #a1a1a6; text-align: center; font-size: 15px; } /* taste-skill-ignore : zone de dépôt de l'app (data-ui) */
.i-drop b { color: #fff; font-size: 17px; }
.i-demo { margin: 10px 0 0; font-size: 13px; color: #8e8e93; text-align: center; }
@media (max-width: 760px) {
  .island { padding: 12px 10px 10px; border-radius: 0 0 26px 26px; max-height: 88svh; overflow-y: auto; }
  .i-tabs button { width: 40px; }
  .i-icons { display: none; }
  .i-body { grid-template-columns: 1fr; }
  .i-card { grid-template-columns: 72px 1fr; }
  .i-card canvas { width: 72px !important; height: 72px !important; }
}

@media (max-width: 760px) {
  .slot span, .tile .strip, .day-tabs button small { font-size: 15px; }
}

.day-tabs .short { display: none; }
@media (max-width: 760px) { .day-tabs .long { display: none; } .day-tabs .short { display: inline; } .day-head h2 { font-size: 2.4rem; } }

/* 7 bis · l'anneau des outils, dessin de l'app */
.ring-sec { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.ring-copy h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.ring-copy p { margin-top: 24px; max-width: 38ch; }
.ring-label { min-height: 3.2em; padding: 14px 18px; background: var(--surface); }
.ring-label b { display: block; font-size: var(--step-lead); }
.ring-stage { position: relative; width: min(100%, 620px); aspect-ratio: 1; justify-self: center; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.ring-orbit { position: absolute; inset: 7%; border-radius: 50%; border: 2px dotted rgba(255,255,255,.14); } /* taste-skill-ignore : orbite pointillée de l'anneau de l'app (data-ui) */
.ring-bubbles { position: absolute; inset: 0; }
.rb { position: absolute; width: 14%; aspect-ratio: 1; margin: -7% 0 0 -7%; border-radius: 50%; border: 2px solid var(--c); background: #1d1a1f; color: var(--c); display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 0 0 0 transparent; } /* taste-skill-ignore : bulle de l'anneau de l'app (data-ui) */
.rb svg { width: 44%; height: 44%; }
.rb.in { width: 15%; margin: -7.5% 0 0 -7.5%; }
.rb:hover, .rb[aria-pressed="true"] { transform: scale(1.14); box-shadow: 0 0 22px -2px var(--c); } /* taste-skill-ignore : survol de l'app (data-ui) */
.rb-tip { position: absolute; left: 50%; top: -34%; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: #fff; color: #111; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rb[aria-pressed="true"] .rb-tip { opacity: 1; }
.ring-char { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 2 / 3; transform: translate(-50%, -58%); border: 0; padding: 0; background: none; cursor: pointer; }
.ring-char canvas { width: 100% !important; height: 100% !important; max-width: none; }
.ring-hearts { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: #26232a; color: #ff5fa2; display: flex; gap: 3px; }
.ring-hearts svg { width: clamp(11px, 1.5vw, 17px); height: clamp(11px, 1.5vw, 17px); }
@media (max-width: 900px) {
  .ring-sec { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 64px; gap: 24px; }
  .ring-stage { width: 100%; }
  .rb-tip { font-size: 12px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 92px; padding-bottom: 56px; min-height: 0; }
  .hero-title { font-size: 9.3vw; }
  .hero-sub { font-size: 18px; }
  .demo { justify-self: stretch; max-width: none; font-size: 3.2vw; height: 21.5em; }
  .d-card { grid-template-columns: 4em 1fr; gap: 0.7em; margin: 0.7em 0.8em 1em; padding: 0.8em 0.9em; }
  .d-char { width: 4em; height: 4em; }
  .d-btns .b { padding: 0.35em 0.6em; }
  .d-btns kbd { margin-left: 0.15em; }
  .d-caption { font-size: clamp(17px, 3.4vw, 24px); }
  .agents { padding-top: 80px; padding-bottom: 80px; }
  .ag-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .ag-video { width: min(100%, 360px); justify-self: center; }
  .ag-works { margin-top: 36px; font-size: 18px; }
}
