/* Kotira — site premium (essai). Direction : chambre noire chaude, crème sur noyer,
   capitales 500 partout, seul le texte courant est en bas de casse 400.
   Les sections .is-light inversent la palette (noyer sur crème) pour aérer la page. */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("fonts/geist-500.woff2") format("woff2"); }

:root {
  --cream: #ffedd7;
  --walnut: #100904;
  --bark: #382416;
  --cork: #40372e;
  --drift: #6c5f51;
  --ember: #dc5000;

  /* Rôles : changent dans les sections claires */
  --bg: var(--walnut);
  --fg: var(--cream);
  --line: var(--cork);
  --muted: #8d7f70;
  --accent: var(--ember);
  --surface: rgba(56, 36, 22, .5);

  /* Échelle fluide : valeurs du guide à 1440 px, qui suivent la largeur de l'écran */
  --g: clamp(18px, 1.7vw, 44px);
  --t-label: clamp(12px, .8vw, 18px);
  --t-small: clamp(15px, 1.05vw, 23px);
  --t-sub: clamp(18px, 1.3vw, 29px);
  --t-card: clamp(22px, 1.65vw, 36px);
  --t-body: clamp(20px, 1.9vw, 42px);
  --t-heading: clamp(30px, 2.85vw, 62px);
  --t-display: clamp(34px, 3.55vw, 78px);
  --t-page: clamp(44px, 6.4vw, 150px);
  --gap: clamp(18px, 1.25vw, 28px);
  --sp-s: clamp(24px, 2.2vw, 48px);
  --sp-m: clamp(45px, 4.7vw, 104px);
  --sp-l: clamp(96px, 11vw, 240px);
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

.is-light {
  --bg: var(--cream);
  --fg: var(--walnut);
  --line: #cbb59b;
  --muted: #76675a;
  --accent: #b54200;
  --surface: rgba(16, 9, 4, .05);
  background: var(--bg); color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--walnut); -webkit-text-size-adjust: 100%; }
html.is-loading { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 500; font-size: var(--t-label); line-height: 1.3;
  text-transform: uppercase; font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px dashed currentColor; outline-offset: 4px; }
::selection { background: var(--fg); color: var(--bg); }

.body { font-weight: 400; text-transform: none; font-size: var(--t-body); line-height: 1.34; }
.small { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.5; }
.h-heading { font-size: var(--t-heading); line-height: 1; }
.h-display { font-size: var(--t-display); line-height: 1; text-wrap: balance; }
.label { font-size: var(--t-label); line-height: 1.3; }
.ember { color: var(--accent); font-style: normal; }
.dash { border: 0; border-top: 1px dashed var(--line); margin: 0; width: 100%; }

/* Étiquettes : « Pro » bien visible, « En préparation » en contour */
.tag { display: inline-block; vertical-align: middle; font-size: var(--t-label); line-height: 1; font-style: normal; white-space: nowrap; padding: .5em .9em; border-radius: 9999px; background: var(--ember); color: var(--walnut); letter-spacing: .02em; }
.tag--soon { background: none; color: var(--fg); border: 1px dashed var(--muted); }

/* Mots / lettres découpés pour les apparitions */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .02em .1em; margin: -.2em -.02em -.1em; }
.wi, .ch { display: inline-block; will-change: transform; }
[data-chars] { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }

/* Liens et boutons */
.link { position: relative; display: inline-block; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s cubic-bezier(.2, .7, .1, 1); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.nav__links .link { background-image: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px); background-size: 0 1px; }
.nav__links .link:hover, .nav__links .link.is-active { background-size: 100% 1px; background-position: 0 100%; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: var(--t-label); line-height: 1; white-space: nowrap; isolation: isolate; transition: color .4s; cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .5s cubic-bezier(.2, .7, .1, 1); border-radius: inherit; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--fill, .btn-primary { background: var(--bark); color: var(--cream); padding: 1.15em 2em; border-radius: 36px; }
.btn--ghost, .btn-ghost { border: 1px solid var(--fg); padding: .62em 1.5em; border-radius: 22.5px; }
.btn--block, .btn-block { width: 100%; }

/* ───────── Écran d'entrée (accueil) ───────── */
.loader { display: none; }
.js-anim .loader { position: fixed; inset: 0; z-index: 100; background: var(--walnut); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; padding: var(--g); }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); }
.loader__word { align-self: center; font-size: clamp(72px, 17.5vw, 400px); line-height: .8; margin-left: -.04em; }
.loader__count { font-variant-numeric: tabular-nums; min-width: 3ch; }
.loader__line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--cork) 0 4px, transparent 4px 8px); position: relative; }
.loader__line i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; }

/* ───────── Navigation ───────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: var(--gap) var(--g); color: var(--cream); mix-blend-mode: difference; }
.nav__brand { font-size: calc(var(--t-label) + 2px); }
.nav__links { display: flex; align-items: center; gap: var(--sp-s); }
.nav .btn { border-color: var(--cream); }
.nav .btn::before { background: var(--cream); }
.nav .btn:hover { color: #000; }
.nav__toggle { display: none; border: 1px solid var(--cream); border-radius: 22.5px; padding: 7.5px 18px; }
html.menu-open .nav { mix-blend-mode: normal; }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--walnut); color: var(--cream); padding: 96px var(--g) var(--g); display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(34px, 9vw, 64px); line-height: 1; padding: 18px 0; border-bottom: 1px dashed var(--cork); }
.menu nav small { font-size: 12px; color: var(--ember); min-width: 2ch; }
.menu__foot { color: var(--drift); }

.serial { position: fixed; right: 9px; top: 50%; z-index: 30; writing-mode: vertical-rl; transform: translateY(-50%); font-size: 10px; letter-spacing: .02em; color: var(--cream); pointer-events: none; mix-blend-mode: difference; }

/* ───────── Téléphone (l'objet) ───────── */
.phone { --ph: 560px; height: var(--ph); aspect-ratio: 776 / 1495; padding: 8px; background: var(--bark); border: 1px solid var(--drift); border-radius: 38px; transform-style: preserve-3d; will-change: transform; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #060d1b; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ───────── Hero (accueil) ───────── */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; padding: 0 var(--g); }
.hero__top { position: absolute; top: clamp(84px, 7vw, 150px); left: var(--g); right: var(--g); z-index: 1; }
.hero__tag { margin-bottom: 14px; font-size: var(--t-sub); }
.hero__word { font-size: clamp(88px, 17.5vw, 440px); line-height: .8; margin-left: -.04em; white-space: nowrap; }

.hero__object { position: absolute; z-index: 2; right: 19vw; top: 52%; transform: translateY(-50%); perspective: 1400px; }
.hero__object .phone { --ph: min(72svh, 56vw); }
.ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripples i { position: absolute; width: 120%; aspect-ratio: 1; border: 1px dashed var(--drift); border-radius: 50%; opacity: 0; }

.hero__card { position: absolute; z-index: 3; left: var(--g); bottom: var(--g); width: min(34vw, 640px); min-width: 400px; padding: var(--sp-s); border-radius: 12px; border: 1px solid var(--cork); background: rgba(56, 36, 22, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: var(--gap); }
.hero__card-title { font-size: var(--t-sub); line-height: 1.08; }
.hero__card-text { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); }
.hero__note { font-size: max(10px, calc(var(--t-label) - 2px)); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

.hero__video { position: absolute; z-index: 3; right: calc(var(--g) + 31px); bottom: var(--g); width: clamp(204px, 14vw, 320px); border-radius: 12px; overflow: hidden; border: 1px solid var(--cork); background: var(--bark); }
.hero__video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.hero__video:hover img { transform: scale(1.06); }
.hero__video-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: max(10px, calc(var(--t-label) - 2px)); }

.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: var(--g); transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 10px; }
.hero__scroll i { width: 1px; height: 41px; background: repeating-linear-gradient(180deg, var(--cream) 0 3px, transparent 3px 6px); transform-origin: 50% 0; animation: drip 2.4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ───────── Grille éditoriale commune : libellé à gauche, contenu à droite ───────── */
.cols { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gap); }
.cols--3 { grid-template-columns: 1fr 2fr 1fr; }
.sec { padding: var(--sp-l) var(--g) var(--sp-m); }

/* ───────── 01 Manifeste ───────── */
.manifesto { min-height: 100svh; display: grid; align-content: space-between; row-gap: var(--sp-m); }
.manifesto__text { font-size: clamp(24px, 3.1vw, 68px); line-height: 1.24; max-width: 20em; display: grid; gap: .75em; }
.paras { display: grid; gap: 1.1em; font-size: var(--t-body); }
.paras .body { max-width: 22em; }
.manifesto__text p, .paras .body { text-wrap: balance; }
.manifesto__text .sw { opacity: .18; }
.manifesto__foot { display: grid; gap: var(--gap); }
.manifesto__cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: var(--gap); line-height: 1.6; }
.manifesto__cols p:first-child { grid-column: 2; }

/* ───────── 02 Film ───────── */
.film { padding: var(--sp-m) 0 0; }
.film__head { padding: 0 var(--g) var(--sp-m); align-items: end; }
.film__sub { line-height: 1.6; }
.film__frame { width: min(100%, calc(100svh * 16 / 9)); margin-inline: auto; aspect-ratio: 16 / 9; background: #f9f7f2; overflow: hidden; will-change: clip-path; }
.film__frame.is-portrait { width: min(100% - 2 * var(--g), calc(88svh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 12px; }
.film__frame video { width: 100%; height: 100%; object-fit: contain; }

/* ───────── 03 Étapes (épinglé) ───────── */
.steps { height: 100svh; min-height: 620px; padding: clamp(80px, 6vw, 130px) var(--g) var(--g); display: grid; grid-template-rows: auto 1fr auto; gap: var(--gap); overflow: hidden; }
.steps__head { display: flex; justify-content: space-between; gap: var(--gap); }
.steps__stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-m); align-items: center; min-height: 0; }
.steps__left, .steps__right { display: grid; }
.steps__left > *, .steps__right > * { grid-area: 1 / 1; align-self: center; }
.steps__left .h-heading { font-size: var(--t-display); }
.steps__right { max-width: 17em; font-size: var(--t-body); }
.steps__object { perspective: 1400px; display: grid; place-items: center; }
.phone--steps { --ph: min(70svh, 44vw); }
.steps__foot { display: flex; align-items: center; gap: var(--gap); }
.steps__count { font-variant-numeric: tabular-nums; }
.steps__bar { flex: 1; height: 1px; position: relative; background: repeating-linear-gradient(90deg, var(--cork) 0 4px, transparent 4px 8px); }
.steps__bar i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; }

/* Sans animation : les étapes se lisent l'une sous l'autre. */
html:not(.js-anim) .steps { height: auto; }
html:not(.js-anim) .steps__left, html:not(.js-anim) .steps__right { grid-auto-rows: 1fr; gap: 45px; }
html:not(.js-anim) .steps__left > *, html:not(.js-anim) .steps__right > * { grid-area: auto; }

/* ───────── 04 Assistant ───────── */
.assistant { min-height: 100svh; display: grid; gap: var(--sp-m); }
.assistant__head { align-items: end; }
.wave { display: flex; align-items: center; justify-content: flex-end; gap: 4px; height: clamp(45px, 4vw, 90px); }
.wave i { width: 2px; height: 100%; background: currentColor; border-radius: 2px; transform: scaleY(.15); }
.asks { border-top: 1px dashed var(--line); }
.ask { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--gap); align-items: start; padding: var(--sp-s) 0; border-bottom: 1px dashed var(--line); }
.ask__n { color: var(--accent); }
.ask__q { font-size: var(--t-heading); line-height: 1.08; }
.ask__a { font-weight: 400; text-transform: none; font-size: var(--t-sub); line-height: 1.4; }
.assistant__note { max-width: 24em; margin-left: calc(25% + var(--gap) / 2); }

/* ───────── 05 Écrans ───────── */
.screens { padding-bottom: var(--sp-l); display: grid; gap: var(--sp-m); overflow: hidden; }
.screens__head { align-items: start; }
.screens__sub { grid-column: 2 / 4; max-width: 26em; margin-top: var(--sp-s); }
.screens__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); align-items: start; }
.shot { display: grid; justify-items: center; gap: var(--gap); text-align: center; }
.shot:nth-child(2) { margin-top: var(--sp-m); }
.shot:nth-child(3) { margin-top: var(--sp-s); }
.shot:nth-child(4) { margin-top: calc(var(--sp-m) * 1.4); }
.shot:nth-child(5) { margin-top: var(--sp-s); }
.phone--flat { --ph: min(calc((100vw - 2 * var(--g) - 4 * var(--gap)) / 5 * 1.86), 74svh); padding: 6px; border-radius: clamp(20px, 2vw, 38px); }
.phone--flat .phone__screen { border-radius: clamp(15px, 1.6vw, 31px); }
.shot figcaption { display: flex; gap: .8em; justify-content: center; }
.shot figcaption span { color: var(--accent); }

/* ───────── 06 Fonctionnalités (défilement horizontal) ───────── */
.feats { min-height: 100svh; padding: clamp(92px, 7vw, 150px) 0 var(--g); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: var(--sp-m); overflow: hidden; }
.feats__head { padding: 0 var(--g); align-items: end; }
.feats__viewport { align-self: center; }
.feats__track { display: flex; gap: var(--gap); padding: 0 var(--g); width: max-content; will-change: transform; }
.feat { flex: none; width: clamp(280px, 25vw, 560px); padding: var(--sp-s); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: var(--gap); transition: background-color .5s, border-color .5s; }
.feat:hover { background: var(--bark); border-color: var(--drift); }
.feat__n { font-size: var(--t-heading); line-height: 1; color: var(--muted); display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-s); transition: color .5s; }
.feat:hover .feat__n { color: var(--cream); }
.feat h3 { font-size: var(--t-card); line-height: 1.1; }
.feat p { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.5; min-height: 6em; }
.feat--more { border-style: dashed; background: none; }

/* ───────── 07 Parcours ───────── */
.flow { --p: 0; display: grid; gap: var(--sp-m); align-content: center; padding-bottom: var(--sp-l); }
.flow__head { align-items: end; }
.flow__steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); padding-top: var(--sp-s); }
.flow__steps::before, .flow__steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.flow__steps::before { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px); }
.flow__steps::after { background: var(--fg); height: 2px; top: -.5px; transform: scaleX(var(--p)); transform-origin: 0 50%; }
.flow__steps li { position: relative; font-size: var(--t-card); line-height: 1.1; color: var(--muted); display: grid; gap: .6em; transition: color .5s; }
.flow__steps li span { font-size: var(--t-label); }
.flow__steps li::before { content: ""; position: absolute; top: calc(-1 * var(--sp-s) - 6px); left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); z-index: 1; transition: background-color .5s, border-color .5s; }
.flow__steps li.is-on { color: var(--fg); }
.flow__steps li.is-on::before { background: var(--fg); border-color: var(--fg); }
html:not(.js-anim) .flow__steps li { color: var(--fg); }
.flow__text { max-width: 26em; margin-left: calc(25% + var(--gap) / 2); }
.flow__text.stack { max-width: none; }
.flow__text.stack .body { max-width: 26em; }
.flow__text.stack .small { max-width: 46em; }

/* ───────── Appel final + pied ───────── */
.cta { display: grid; gap: var(--sp-m); align-content: center; padding-bottom: var(--sp-l); }
.cta__title { font-size: var(--t-page); line-height: .98; text-wrap: balance; }
.cta__row { align-items: start; }
.cta__row .body { grid-column: 2; max-width: 22em; }
.cta__btns { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); }

.foot { padding: 0 var(--g) var(--g); }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap); padding: var(--sp-s) 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--sp-s); }
.foot__mail { user-select: all; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap); align-items: baseline; }
.foot__brand { font-size: var(--t-sub); }
.foot__copy { font-size: max(10px, calc(var(--t-label) - 3px)); color: var(--muted); }

/* ═════════ Pages intérieures ═════════ */
.page-hero { padding: clamp(140px, 13vw, 300px) var(--g) var(--sp-m); display: grid; gap: var(--sp-m); }
.page-hero__title { font-size: var(--t-page); line-height: .98; text-wrap: balance; max-width: 14em; }
.page-hero__row { align-items: start; }
.page-hero__row .body { grid-column: 2; max-width: 24em; }
.page-hero__row > .btn { justify-self: start; }

/* Fonctionnalités : thème collant à gauche, liste à droite */
.theme { padding: var(--sp-m) var(--g); border-top: 1px dashed var(--line); align-items: start; }
.theme__side { position: sticky; top: clamp(80px, 7vw, 140px); display: grid; gap: var(--gap); }
.theme__n { color: var(--accent); }
.theme__name { font-size: var(--t-display); line-height: 1; }
.theme__note { max-width: 22em; color: var(--muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-m); }
.item { padding: var(--sp-s) 0; border-bottom: 1px dashed var(--line); display: grid; gap: .8em; align-content: start; }
.item h4 { font-size: var(--t-card); line-height: 1.12; display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.item p { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.55; max-width: 34em; }

/* Tarifs */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.plan { padding: var(--sp-s); border-radius: 12px; border: 1px solid var(--line); display: grid; gap: var(--sp-s); align-content: start; }
.plan--pro { background: var(--walnut); color: var(--cream); border-color: var(--walnut); --fg: var(--cream); --bg: var(--walnut); --line: var(--cork); --muted: #8d7f70; --accent: var(--ember); }
.plan__name { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-card); }
.plan__price { font-size: var(--t-page); line-height: .9; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: .15em; flex-wrap: wrap; }
.plan__price small { font-size: var(--t-label); line-height: 1.3; }
.plan__year { color: var(--muted); }
.plan ul { display: grid; border-top: 1px dashed var(--line); }
.plan li { padding: 1em 0; border-bottom: 1px dashed var(--line); font-weight: 400; text-transform: none; font-size: var(--t-sub); line-height: 1.35; }
.plan__soon { color: var(--muted); }
.notes { display: grid; gap: var(--gap); max-width: 46em; margin-top: var(--sp-m); margin-left: calc(25% + var(--gap) / 2); }

.faq { border-top: 1px dashed var(--line); }
.faq details { border-bottom: 1px dashed var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--gap); padding: var(--sp-s) 0; font-size: var(--t-card); line-height: 1.12; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: var(--t-heading); line-height: .6; font-weight: 400; transition: transform .4s cubic-bezier(.2, .7, .1, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--sp-s); max-width: 36em; font-weight: 400; text-transform: none; font-size: var(--t-sub); line-height: 1.5; }

/* Cartes d'avantage (Pionnier) */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.perk { padding: var(--sp-s); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: var(--gap); align-content: start; }
.perk__n { font-size: var(--t-heading); line-height: 1; color: var(--muted); margin-bottom: var(--sp-s); }
.perk h3 { font-size: var(--t-card); line-height: 1.1; }
.perk p { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.5; }
.list { border-top: 1px dashed var(--line); }
.list li { padding: 1em 0; border-bottom: 1px dashed var(--line); font-weight: 400; text-transform: none; font-size: var(--t-sub); line-height: 1.4; display: grid; grid-template-columns: 3em 1fr; }
.list li span { color: var(--accent); font-weight: 500; font-size: var(--t-label); padding-top: .35em; }
.stack { display: grid; gap: var(--sp-s); align-content: start; }

/* Formulaires : trait sous le champ, pas de boîte */
.formcard { padding: var(--sp-s); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); max-width: 46em; }
.formcard > h3 { font-size: var(--t-card); margin-bottom: var(--sp-s); }
.field { display: grid; gap: 8px; margin-bottom: var(--sp-s); }
.field label { font-size: var(--t-label); }
.field input, .field textarea { width: 100%; font: inherit; font-weight: 400; text-transform: none; font-size: var(--t-sub); line-height: 1.4; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; padding: 6px 2px 10px; outline: none; transition: border-color .3s; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-bottom-style: dashed; }
.hint, .formnote { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.hint a, .formnote a, .check a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }
.formnote { margin-top: var(--sp-s); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--sp-s); font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.5; }
.check input { margin-top: .3em; accent-color: var(--cream); width: 1.1em; height: 1.1em; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { font-weight: 400; text-transform: none; font-size: var(--t-small); line-height: 1.5; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--muted); margin-top: 12px; }
.note.err { border-color: var(--ember); color: var(--ember); }
.formmsg .cta { display: flex; gap: var(--gap); padding: 0; min-height: 0; }

/* Texte long (support, pages légales) */
.prose-wrap { padding: 0 var(--g) var(--sp-l); align-items: start; }
.prose-side { position: sticky; top: clamp(80px, 7vw, 140px); color: var(--muted); display: grid; gap: 1em; }
.prose { max-width: 46em; font-weight: 400; text-transform: none; font-size: clamp(16px, 1.1vw, 22px); line-height: 1.65; }
.prose > h1:first-child { display: none; }
.prose h2 { font-weight: 500; text-transform: uppercase; font-size: var(--t-card); line-height: 1.12; margin: 2.2em 0 .8em; padding-top: 1.2em; border-top: 1px dashed var(--line); }
.prose h3 { font-weight: 500; text-transform: uppercase; font-size: var(--t-sub); line-height: 1.2; margin: 1.8em 0 .6em; }
.prose h4 { font-weight: 500; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 500; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7em .9em .7em 0; border-bottom: 1px dashed var(--line); }
.prose th { font-weight: 500; text-transform: uppercase; font-size: .8em; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.prose code { font-size: .92em; }

.center-page { min-height: 100svh; display: grid; align-content: center; gap: var(--sp-m); padding: var(--sp-l) var(--g); }

/* ───────── Tablette et mobile ───────── */
@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .serial { display: none; }
  .cols, .cols--3 { grid-template-columns: 1fr; }
  .sec { padding-top: 112px; }

  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; gap: 24px; padding-top: 84px; padding-bottom: var(--g); }
  .hero__top, .hero__object, .hero__card, .hero__video { position: relative; inset: auto; transform: none; width: auto; min-width: 0; }
  .hero__tag { font-size: var(--t-label); }
  .hero__word { font-size: 25.5vw; }
  .hero__object { align-self: center; margin: 8px 0; }
  .hero__object .phone { --ph: 46svh; }
  .hero__video { display: flex; align-items: center; }
  .hero__video img { width: 96px; flex: none; }
  .hero__video-bar { flex: 1; }
  .hero__scroll { display: none; }

  .manifesto__cols { grid-template-columns: 1fr; }
  .manifesto__cols p:first-child { grid-column: auto; }

  .steps { padding-top: 72px; }
  .steps__title { display: none; }
  .steps__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 14px; justify-items: start; }
  .steps__left .h-heading { font-size: var(--t-heading); }
  .steps__object { justify-self: center; }
  .phone--steps { --ph: 40svh; border-radius: 28px; padding: 6px; }
  .phone--steps .phone__screen { border-radius: 22px; }
  .steps__right { font-size: 18px; min-height: 6.4em; }
  .steps__right > * { align-self: start; }

  .wave { justify-content: flex-start; }
  .ask { grid-template-columns: 1fr; gap: 12px; }
  .assistant__note, .flow__text, .notes { margin-left: 0; }

  .screens__sub { grid-column: auto; margin-top: 0; }
  .screens__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g); align-items: flex-start; }
  .screens__row::-webkit-scrollbar { display: none; }
  .shot { flex: none; scroll-snap-align: center; }
  .shot:nth-child(n) { margin-top: 0; }
  .phone--flat { --ph: 58svh; border-radius: 30px; }
  .phone--flat .phone__screen { border-radius: 24px; }

  .feats { min-height: 0; padding-top: 112px; }
  .feats__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .feats__viewport::-webkit-scrollbar { display: none; }
  .feat { scroll-snap-align: center; width: min(78vw, 340px); }

  .flow__steps { grid-template-columns: 1fr; padding: 0 0 0 31px; gap: 24px; }
  .flow__steps::before, .flow__steps::after { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow__steps::before { background: repeating-linear-gradient(180deg, var(--muted) 0 4px, transparent 4px 8px); }
  .flow__steps::after { width: 2px; left: 5.5px; transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .flow__steps li::before { top: 2px; left: -31px; }

  .cta__row .body, .page-hero__row .body { grid-column: auto; }
  .page-hero { padding-top: 132px; }
  .theme__side, .prose-side { position: static; }
  .items, .plans, .perks { grid-template-columns: 1fr; }
  .foot__links { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i { animation: none; }
  .manifesto__text .sw { opacity: 1; }
}

/* ---------- Essai : couleurs du site actuel (encre / pierre / cyan) ----------
   Activé par <html data-theme="kotira"> ; ne change que les couleurs. */
html[data-theme="kotira"] {
  --cream: #FAF8F3;   /* pierre 50 */
  --walnut: #0E1A2E;  /* encre 900 */
  --bark: #243553;    /* encre 700 */
  --cork: #354868;    /* encre 600 */
  --drift: #6E7F9C;
  --ember: #C97A1F;   /* terre 500 : accent général */
  --voice: #1FB8CB;   /* cyan signal 400 : réservé à la voix et à l'IA */
  --muted: #94A1B8;
  --surface: rgba(36, 53, 83, .45);
}
html[data-theme="kotira"] .is-light {
  --line: #D6CEBC;    /* pierre 300 */
  --muted: #5F5849;   /* pierre 600 */
  --accent: #8C4F12;  /* terre 700 */
  --surface: rgba(14, 26, 46, .05);
}
html[data-theme="kotira"] .plan--pro { --muted: #94A1B8; --accent: #C97A1F; }
html[data-theme="kotira"] .assistant { --accent: var(--voice); }
html[data-theme="kotira"] .assistant .tag:not(.tag--soon) { background: var(--voice); }
html[data-theme="kotira"] .ripples i { border-color: rgba(31, 184, 203, .55); }
html[data-theme="kotira"] .hero__card { background: rgba(36, 53, 83, .5); }
html[data-theme="kotira"] .is-light .tag:not(.tag--soon) { background: #0E1A2E; color: #FAF8F3; }
html[data-theme="kotira"] .is-light .plan--pro .tag:not(.tag--soon) { background: #C97A1F; color: #0E1A2E; }
