/* Kira : de l’heure bleue à l’aube. La page descend de 480p à 4K, du cobalt nocturne au ciel d’anime clair. */
@font-face { font-family: 'Dela Gothic One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/dela-gothic-one-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Dela Gothic One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/dela-gothic-one-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/zen-kaku-gothic-new-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/zen-kaku-gothic-new-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/zen-kaku-gothic-new-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/zen-kaku-gothic-new-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-display: swap; src: url(assets/fonts/Fredoka.ttf) format('truetype'); }

:root {
  /* Heure bleue : du plus profond au plus clair */
  --night: #070c24;
  --cobalt: #0d1640;
  --cobalt-2: #16246b;
  --hour: #2744c4;
  /* Lumière */
  --amber: #ffb347;
  --amber-hi: #ffc874;
  --amber-ink: #2b1700;
  --kira: #ff3d7f;
  --dawn: #eef3ff;
  --dawn-2: #dbe5fb;
  --peach: #ffd4bd;
  /* Texte */
  --text: #eaf0ff;
  --text-2: #b6c3ee;
  --ink: #0d1640;
  --ink-2: #44537d;
  --line: rgba(182, 195, 238, 0.22);

  --display: 'Dela Gothic One', 'Zen Kaku Gothic New', system-ui, sans-serif;
  --body: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand: 'Fredoka', 'Zen Kaku Gothic New', system-ui, sans-serif;

  --gutter: clamp(20px, 3vw, 40px);
  --wrap: 1180px;
  --section: clamp(72px, 9vw, 132px);
  --r-frame: 18px;
  --r-card: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--hour) var(--night); }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.08; }

/* ------------------------------------------------------------------ boutons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: 700 1rem/1 var(--body); text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; padding: 17px 26px; border-radius: 6px; color: var(--amber-ink);
  background: var(--amber); transform: skewX(-9deg);
  box-shadow: 0 2px 4px rgba(7, 12, 36, 0.35), 0 14px 28px -12px rgba(7, 12, 36, 0.7);
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn > span { display: block; transform: skewX(9deg); white-space: nowrap; }
.btn:hover { background: var(--amber-hi); transform: skewX(-9deg) translateY(-2px); }
.btn:active { transform: skewX(-9deg) translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { padding: 12px 18px; font-size: 0.9375rem; }

/* ------------------------------------------------------------------ haut de page */
.hero { position: relative; min-height: max(100svh, 760px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--cobalt); isolation: isolate; }
.stage { position: absolute; inset: 0; z-index: 0; cursor: ew-resize; -webkit-user-drag: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; --tilt: 0px; }
.frames { position: absolute; inset: 0; }
.frame { pointer-events: none; -webkit-user-drag: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.frame-after { clip-path: polygon(calc(var(--split) + var(--tilt)) 0, 100% 0, 100% 100%, calc(var(--split) - var(--tilt)) 100%); }
.frame.is-swapping { animation: swap 0.6s var(--ease); }
@keyframes swap { from { opacity: 0.2; } to { opacity: 1; } }
/* Le pied de l’image passe au cobalt pour porter le titre, sans toucher à l’image elle-même */
.stage-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 12, 36, 0.7) 0%, rgba(7, 12, 36, 0.28) 38%, rgba(7, 12, 36, 0) 58%),
    linear-gradient(180deg, rgba(7, 12, 36, 0.6) 0%, rgba(7, 12, 36, 0) 18%, rgba(7, 12, 36, 0) 46%, rgba(13, 22, 64, 0.62) 66%, rgba(13, 22, 64, 0.94) 86%, var(--cobalt) 100%); }

.badge { position: absolute; top: 96px; z-index: 3; padding: 7px 12px; border-radius: 4px; font: 700 0.8125rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none;
  background: rgba(7, 12, 36, 0.78); color: var(--text); box-shadow: 0 6px 18px -8px rgba(7, 12, 36, 0.7); }
.badge b { font-weight: 700; color: var(--amber); margin-left: 4px; }
.badge-before { left: var(--gutter); }
.badge-after { right: var(--gutter); background: var(--amber); color: var(--amber-ink); }
.badge-after b { color: var(--amber-ink); }

.title-card { position: absolute; z-index: 3; right: var(--gutter); top: 142px; font: 400 clamp(1.4rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 0 rgba(7, 12, 36, 0.35), 0 10px 30px rgba(7, 12, 36, 0.6); opacity: 0; transform: translateX(16px); transition: opacity 0.4s, transform 0.5s var(--ease); pointer-events: none; }
.title-card.is-on { opacity: 1; transform: none; }

.seam { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.seam-line { position: absolute; top: -10%; bottom: -10%; left: var(--split); width: 3px; margin-left: -1.5px; background: var(--kira);
  transform: rotate(var(--tilt-deg, 3deg)); transform-origin: 50% 50%; box-shadow: 0 0 0 1px rgba(7, 12, 36, 0.35), 0 8px 20px rgba(7, 12, 36, 0.45); }
.seam-knob { position: absolute; top: clamp(150px, 20%, 220px); left: calc(var(--split) + var(--knob-dx, 0px)); width: 54px; height: 54px; margin: -27px 0 0 -27px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--kira); color: #fff; cursor: ew-resize; pointer-events: auto;
  display: grid; place-items: center; box-shadow: 0 4px 8px rgba(7, 12, 36, 0.4), 0 18px 34px -10px rgba(7, 12, 36, 0.7); transition: transform 0.25s var(--ease); }
.seam-knob:hover, .is-dragging .seam-knob { transform: scale(1.1); }
.seam-knob svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stage[data-edge='after'] .badge-before, .stage[data-edge='before'] .badge-after { opacity: 0.25; }

.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.5rem/1 var(--brand); }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav li a { display: block; padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.9375rem; text-shadow: 0 1px 3px rgba(7, 12, 36, 0.9), 0 0 12px rgba(7, 12, 36, 0.6); transition: background 0.2s; }
.nav li a:hover { background: rgba(7, 12, 36, 0.55); }

.hero-foot { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 32px var(--gutter); align-items: end; padding: 0 var(--gutter) clamp(24px, 3.5vw, 44px); pointer-events: none; }
.hero-foot form, .hero-foot .episodes, .hero-foot a { pointer-events: auto; }
.hero-copy { max-width: 780px; }
h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.03em; text-shadow: 0 2px 0 rgba(7, 12, 36, 0.25), 0 16px 40px rgba(7, 12, 36, 0.55); }
h1 em { font-style: normal; color: var(--amber); }
.lede { margin-top: 18px; max-width: 34ch; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.5; color: var(--text); }

.signup { margin-top: 26px; max-width: 540px; }
.install { margin-top: 26px; }
.btn-install { padding: 20px 30px; font-size: 1.0625rem; }
.install-note { margin-top: 12px; font-size: 0.9375rem; color: var(--text-2); text-shadow: 0 1px 3px rgba(7, 12, 36, 0.9); }
.field { display: flex; gap: 14px; align-items: stretch; }
.field input { flex: 1; min-width: 0; padding: 0 18px; min-height: 54px; border-radius: 8px; border: 2px solid var(--line); background: rgba(7, 12, 36, 0.72); color: var(--text); font: 400 1rem var(--body); }
.field input::placeholder { color: #93a2d6; }
.field input:focus { border-color: var(--amber); outline: none; }
.field input[aria-invalid='true'] { border-color: var(--kira); }
.form-msg { min-height: 1.5em; margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
.form-msg.is-error { color: #ff9ab9; }
.form-msg.is-ok { color: var(--amber-hi); }

/* Sélecteur d’épisodes */
.episodes { min-width: 0; }
.demo-hint { font-size: 0.9375rem; color: var(--text); margin-bottom: 10px; text-shadow: 0 1px 8px rgba(7, 12, 36, 0.8); }
.tv-mode { font-weight: 700; color: var(--amber); }
.remote { position: relative; display: flex; align-items: center; gap: 6px; }
.picker { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px; flex: 1; min-width: 0; }
.picker::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 auto; width: 118px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--night); cursor: pointer; position: relative; scroll-snap-align: start; color: #fff; text-align: left; opacity: 0.78; transition: opacity 0.2s, transform 0.25s var(--ease), border-color 0.2s; }
.pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; background: linear-gradient(0deg, rgba(7, 12, 36, 0.92), rgba(7, 12, 36, 0)); display: flex; flex-direction: column; gap: 1px; }
.pick i { font: 700 0.625rem/1 var(--body); letter-spacing: 0.08em; color: var(--amber); font-style: normal; }
.pick em { font: 700 0.75rem/1.15 var(--body); font-style: normal; }
.pick:hover { opacity: 1; transform: translateY(-3px); }
.pick[aria-pressed='true'] { opacity: 1; border-color: var(--amber); }
.ch-nav { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: rgba(7, 12, 36, 0.72); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background 0.2s, opacity 0.2s; }
.ch-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-nav:hover:not([disabled]) { background: var(--amber); color: var(--amber-ink); }
.ch-nav[disabled] { opacity: 0.3; cursor: default; }
.credit { margin-top: 10px; font-size: 0.8125rem; line-height: 1.45; color: var(--text); text-shadow: 0 1px 8px rgba(7, 12, 36, 0.8); }
.credit b { color: var(--text); }

/* Règle de résolution fixée au bord droit */
.rail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 20; display: none; height: min(46vh, 340px); pointer-events: none; user-select: none; -webkit-user-select: none; }
.rail ol { height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: 14px; border-right: 2px solid rgba(255, 255, 255, 0.7); filter: drop-shadow(0 1px 2px rgba(7, 12, 36, 0.8)); transition: border-color 0.3s; }
.rail li { font: 700 0.75rem/1 var(--body); letter-spacing: 0.06em; color: #fff; transition: color 0.3s, transform 0.4s var(--ease); text-shadow: 0 1px 3px rgba(7, 12, 36, 0.9), 0 0 10px rgba(7, 12, 36, 0.55); }
.rail li.is-on { color: var(--amber); transform: translateX(-4px) scale(1.25); transform-origin: right center; }
.rail-thumb { position: absolute; right: -4px; top: calc(var(--p, 0) * 100%); width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--kira); border: 2px solid #fff; }
/* Sur le ciel clair de l'aube, la règle passe à l'encre pour rester lisible. */
.rail.on-light ol { border-right-color: rgba(13, 22, 64, 0.35); filter: none; }
.rail.on-light li { color: rgba(13, 22, 64, 0.72); text-shadow: none; }
.rail.on-light li.is-on { color: var(--hour); }
@media (min-width: 1100px) { .rail { display: block; } }

/* ------------------------------------------------------------------ le trait */
/* Un seul ciel continu, du cobalt de la nuit jusqu'au ciel clair de l'aube : aucune couture entre les sections. */
.dusk { background: linear-gradient(180deg, var(--cobalt) 0%, #142072 30%, #1d33a0 58%, #2c47b4 80%, #3a56c0 calc(100% - 260px), #8fa4e8 calc(100% - 110px), var(--dawn) 100%); }
/* L'aube est une seule zone : pas de couture d'un demi-pixel entre les questions et l'inscription. */
.dawn-zone { background: var(--dawn); margin-top: -1px; position: relative; }
.zoom { position: relative; padding: var(--section) 0; overflow: hidden; }
.speed-lines { position: absolute; inset: -20%; pointer-events: none; opacity: 0.2;
  background: repeating-conic-gradient(from 0deg at 72% 50%, rgba(182, 195, 238, 0.9) 0deg 0.35deg, transparent 0.35deg 3.2deg);
  -webkit-mask-image: radial-gradient(ellipse at 72% 50%, transparent 14%, #000 62%); mask-image: radial-gradient(ellipse at 72% 50%, transparent 14%, #000 62%); }
.zoom-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.zoom-copy p { margin-top: 22px; max-width: 42ch; color: var(--text-2); font-size: 1.125rem; }
.loupe { display: grid; grid-template-columns: 1fr 1fr; gap: 0; filter: drop-shadow(0 24px 40px rgba(7, 12, 36, 0.6)); }
.loupe-pane { position: relative; overflow: hidden; aspect-ratio: 1; }
.loupe-pane:first-child { border-radius: var(--r-frame) 0 0 var(--r-frame); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); margin-right: -11px; }
.loupe-pane:last-child { border-radius: 0 var(--r-frame) var(--r-frame) 0; clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); margin-left: -11px; }
.loupe-pane img { width: 100%; height: 100%; object-fit: cover; }
.loupe-pane .badge { top: auto; bottom: 14px; }
.loupe-pane:first-child .badge { left: 14px; }
.loupe-pane:last-child .badge { left: auto; right: 14px; }
.loupe figcaption { grid-column: 1 / -1; margin-top: 16px; font-size: 0.875rem; color: var(--text-2); }

/* ------------------------------------------------------------------ trois cases */
.cuts { padding: var(--section) 0; }
.cuts h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.panels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 18px; align-items: stretch; }
.panel { position: relative; min-height: clamp(280px, 34vw, 440px); overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.panel:hover img { transform: scale(1.05); }
.panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 12, 36, 0.92) 0%, rgba(7, 12, 36, 0.45) 42%, rgba(7, 12, 36, 0) 70%); }
.panel-body { position: relative; z-index: 1; padding: clamp(20px, 2.4vw, 32px); padding-right: clamp(32px, 3.4vw, 48px); }
.panel-body b { display: block; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -0.01em; }
.panel-body p { margin-top: 8px; max-width: 30ch; color: var(--text); }
.panel-a { grid-column: 1 / span 5; clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%); border-radius: var(--r-frame) 0 0 var(--r-frame); }
.panel-b { grid-column: 6 / span 4; margin-inline: -12px; clip-path: polygon(38px 0, 100% 0, calc(100% - 38px) 100%, 0 100%); }
.panel-c { grid-column: 10 / span 3; margin-left: -24px; clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 var(--r-frame) var(--r-frame) 0; }
.panel-c .panel-body { padding-left: clamp(40px, 4vw, 56px); }
.panel-b .panel-body { padding-left: clamp(40px, 4vw, 56px); }

/* ------------------------------------------------------------------ modes */
.modes-section { padding: var(--section) 0 calc(var(--section) * 0.6); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; }
/* Cinq colonnes de largeur fixe : au survol, rien ne se redimensionne, donc aucun texte ne se recompose. */
.modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; height: clamp(380px, 40vw, 520px); }
.mode { position: relative; overflow: hidden; border-radius: var(--r-card); color: #fff; display: flex; align-items: flex-end; isolation: isolate; background: var(--night); }
.mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.01); transition: transform 0.9s var(--ease); }
.mode::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 12, 36, 0.94) 0%, rgba(7, 12, 36, 0.55) 38%, rgba(7, 12, 36, 0) 68%); transition: opacity 0.4s; }
.mode:hover img { transform: scale(1.07); }
.mode-body { padding: 20px; width: 100%; }
.mode-body strong { display: block; font: 400 clamp(1.25rem, 1.9vw, 1.65rem)/1.1 var(--display); }
.mode-ico { width: 26px; height: 26px; margin-bottom: 10px; color: var(--amber); }
/* Le texte court et le texte long occupent la même case : la hauteur ne change jamais, seul l'un remplace l'autre. */
.mode-text { display: grid; margin-top: 8px; align-content: start; min-height: 7.4em; }
.mode-text p { grid-area: 1 / 1; font-size: 0.9375rem; line-height: 1.4; color: var(--text); transition: opacity 0.3s, transform 0.4s var(--ease); }
.mode-hint { opacity: 0; transform: translateY(6px); }
.mode:hover .mode-short { opacity: 0; transform: translateY(-6px); }
.mode:hover .mode-hint { opacity: 1; transform: none; }
@media (hover: none) {
  .mode-short { opacity: 0; }
  .mode-hint { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ tarifs */
.plans-section { padding: calc(var(--section) * 0.6) 0 calc(var(--section) * 1.5); }
.plans-section .section-head p { color: #dbe4ff; }
.plans { display: grid; grid-template-columns: 5fr 6fr; gap: 20px; align-items: stretch; filter: drop-shadow(0 26px 30px rgba(7, 12, 36, 0.4)); }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.2vw, 44px); overflow: hidden; isolation: isolate; container-type: inline-size; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plan h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.plan-price { font: 700 1rem/1 var(--body); }
.plan-res { margin: clamp(20px, 3vw, 40px) 0 clamp(20px, 3vw, 36px); font: 400 clamp(3.25rem, 16cqw, 7.5rem)/0.85 var(--display); letter-spacing: -0.04em; }
.plan-res small { display: block; margin-bottom: 14px; font: 700 0.9375rem/1 var(--body); letter-spacing: 0.02em; }
.plan ul { display: grid; gap: 14px; padding-top: 24px; border-top: 2px dashed currentColor; }
.plan li { padding-left: 30px; position: relative; font-size: 1.0625rem; }
.plan li::before { content: ''; position: absolute; left: 3px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.plan-free { background: var(--dawn); color: var(--ink); border-radius: var(--r-frame) 0 0 var(--r-frame); }
.plan-price { padding: 7px 12px; border-radius: 4px; transform: skewX(-9deg); }
.plan-free .plan-price { color: #fff; background: var(--cobalt); }
.plan-free .plan-res { color: var(--hour); }
.plan-free .plan-res small { color: var(--ink-2); }
.plan-free ul { border-top-color: #b8c6ea; }
.plan-free li::before { color: var(--hour); }
.plan-pro { background: var(--night); color: var(--text); border-radius: 0 0 var(--r-frame) 0; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.plan-pro .plan-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.plan-pro::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 12, 36, 0.94) 0%, rgba(7, 12, 36, 0.72) 48%, rgba(7, 12, 36, 0.25) 100%); }
.plan-pro .plan-price { color: var(--amber-ink); background: var(--amber); }
.plan-alt { margin-top: 14px; font: 700 0.9375rem/1.3 var(--body); color: var(--text); }
.plan-pro .plan-res { color: var(--amber); }
.plan-pro .plan-res small { color: var(--text); }
.plan-pro ul { border-top-color: rgba(182, 195, 238, 0.5); }
.plan-pro li::before { color: var(--amber); }
.plan .btn { align-self: flex-start; margin-top: 30px; }

/* ------------------------------------------------------------------ questions */
.faq-section { padding: calc(var(--section) * 0.9) 0 calc(var(--section) * 0.7); background: var(--dawn); color: var(--ink); position: relative; }
.faq-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.keys { margin-top: 36px; padding: 22px 24px; border-radius: var(--r-card); background: var(--dawn-2); max-width: 420px; }
.keys h3 { font: 700 1rem/1.2 var(--body); letter-spacing: 0; margin-bottom: 16px; }
.keys dl { display: grid; gap: 12px; }
.keys dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.keys dt { display: flex; gap: 4px; flex: 0 0 auto; order: 2; }
.keys dd { color: var(--ink-2); margin: 0; font-size: 0.9375rem; }
kbd { min-width: 30px; padding: 5px 8px; border-radius: 6px; text-align: center; font: 700 0.8125rem/1 var(--body); background: #fff; color: var(--ink); border: 1px solid #b8c6ea; box-shadow: 0 2px 0 #b8c6ea; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-card); background: #fff; box-shadow: 0 1px 2px rgba(13, 22, 64, 0.08), 0 14px 28px -20px rgba(13, 22, 64, 0.35); transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: 0 1px 2px rgba(13, 22, 64, 0.08), 0 22px 40px -20px rgba(13, 22, 64, 0.45); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: var(--r-card); font: 700 1.0625rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 11px; height: 11px; border-right: 3px solid var(--hour); border-bottom: 3px solid var(--hour); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 56px 22px 24px; max-width: 62ch; color: var(--ink-2); }

/* ------------------------------------------------------------------ l’aube : inscription */
.cta-section { padding: 0 0 var(--section); background: var(--dawn); color: #fff; }
.cta-frame { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-frame); min-height: clamp(380px, 38vw, 480px); display: grid; place-items: center; padding: clamp(36px, 5vw, 72px) var(--gutter);
  box-shadow: 0 2px 4px rgba(13, 22, 64, 0.12), 0 36px 60px -34px rgba(13, 22, 64, 0.6); }
.cta-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-frame::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 22, 64, 0.25) 0%, rgba(13, 22, 64, 0.7) 100%); }
.cta-body { width: min(100%, 640px); text-align: center; }
.cta-body h2 { font-size: clamp(2.25rem, 5.4vw, 4rem); text-shadow: 0 2px 0 rgba(7, 12, 36, 0.25), 0 12px 36px rgba(7, 12, 36, 0.5); }
.cta-body .btn-install { margin-top: 32px; }
.cta-pro { margin: 36px auto 0; max-width: 40ch; font-size: 1rem; line-height: 1.5; text-shadow: 0 1px 8px rgba(7, 12, 36, 0.6); }
.cta-body .signup { margin: 16px auto 0; }
.cta-body .field input { background: #fff; color: var(--ink); border-color: #fff; }
.cta-body .field input::placeholder { color: #5e6c96; }
.cta-body .field input:focus { border-color: var(--amber); }
.cta-body .form-msg { color: #fff; text-shadow: 0 1px 8px rgba(7, 12, 36, 0.6); }
.cta-body .form-msg.is-error { color: #ffc2d4; }
.cta-body .form-msg.is-ok { color: var(--amber-hi); }

.footer { padding: 36px var(--gutter) 48px; background: var(--cobalt); color: var(--text-2); font-size: 0.8125rem; line-height: 1.6; }
.footer p { max-width: 118ch; margin-inline: auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 600 1.25rem/1 var(--brand); color: var(--text); margin-bottom: 16px !important; }

/* ------------------------------------------------------------------ adaptation */
@media (max-width: 1180px) {
  .hero-foot { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .zoom-grid, .faq-grid { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; gap: 14px; }
  .panel-a, .panel-b, .panel-c { grid-column: 1; margin: 0; min-height: 260px; border-radius: var(--r-card); }
  .panel-a { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%); }
  .panel-b { clip-path: polygon(0 22px, 100% 0, 100% calc(100% - 22px), 0 100%); }
  .panel-c { clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); }
  .panel-b .panel-body, .panel-c .panel-body { padding-left: clamp(20px, 2.4vw, 32px); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .mode { min-height: 260px; }
  .mode:last-child { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
  .plan-free { border-radius: var(--r-frame) var(--r-frame) 0 0; }
  .plan-pro { border-radius: 0 0 var(--r-frame) var(--r-frame); }
  .keys { max-width: none; }
}
@media (max-width: 640px) {
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 220px; }
  .hero { min-height: 100svh; }
  .badge { top: 84px; }
  .title-card { top: 126px; }
  .field { flex-direction: column; }
  .btn-install { display: flex; transform: none; }
  .btn-install > span { transform: none; white-space: normal; text-align: center; }
  .btn-install:hover { transform: translateY(-2px); }
  .field .btn { align-self: stretch; transform: none; }
  .field .btn > span { transform: none; }
  .field .btn:hover { transform: translateY(-2px); }
  .field .btn:active { transform: none; }
  .loupe-pane:first-child, .loupe-pane:last-child { clip-path: none; margin: 0; }
  .pick { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .panel:hover img { transform: none; }
}

@media (max-width: 640px) {
  .stage-scrim { background: linear-gradient(180deg, rgba(7, 12, 36, 0.5) 0%, rgba(7, 12, 36, 0) 14%, rgba(7, 12, 36, 0.35) 34%, rgba(13, 22, 64, 0.94) 66%, var(--cobalt) 100%); }
}

/* ------------------------------------------------------------------ page « merci » (clé de licence) */
.thanks-page { min-height: 100svh; background: linear-gradient(180deg, var(--cobalt) 0%, #1d33a0 55%, #3a56c0 100%); display: flex; flex-direction: column; }
.thanks-nav { padding: 22px var(--gutter); }
.thanks { flex: 1; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(48px, 8vw, 96px); }
.thanks-card { width: min(100%, 640px); padding: clamp(28px, 5vw, 52px); border-radius: var(--r-frame); background: var(--dawn); color: var(--ink);
  box-shadow: 0 2px 4px rgba(7, 12, 36, 0.2), 0 40px 70px -34px rgba(7, 12, 36, 0.7); }
.thanks-card h1 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.1; outline: none; text-shadow: none; }
.thanks-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 52ch; }
.thanks-card .btn { margin-top: 26px; }
.thanks-card :focus-visible { outline-color: var(--hour); }
.keybox-big { margin-top: 26px; display: grid; gap: 14px; }
.key-value { display: block; padding: 18px 16px; border-radius: var(--r-card); background: #fff; border: 2px solid #b8c6ea; text-align: center;
  font: 700 clamp(0.9rem, 3.9vw, 1.5rem)/1.2 var(--body); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.keybox-big .btn { margin-top: 0; justify-self: start; }
.thanks-card .form-msg { color: #1a5c2e; min-height: 1.5em; }
.warn-note { margin-top: 6px; padding: 14px 16px; border-radius: var(--r-card); background: #fff3d6; color: #4a3200; font-size: 0.9375rem; line-height: 1.5; }
.thanks-steps { margin-top: 26px; display: grid; gap: 12px; counter-reset: step; }
.thanks-steps li { position: relative; padding-left: 40px; color: var(--ink); counter-increment: step; }
.thanks-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: #fff; font: 700 0.875rem/1 var(--body); }
.thanks-mail { margin-top: 22px; color: var(--ink-2); font-size: 0.875rem; }
.spinner { display: block; width: 28px; height: 28px; margin-top: 26px; border-radius: 50%; border: 3px solid #b8c6ea; border-top-color: var(--hour); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s !important; } }
@media (max-width: 640px) { .keybox-big .btn { justify-self: stretch; } .thanks-card { padding: 26px 18px; } .key-value { padding: 16px 6px; font-size: 0.92rem; letter-spacing: 0.02em; } }

/* ------------------------------------------------------------------ pages légales (mentions, conditions, confidentialité) */
.legal { flex: 1; display: grid; justify-items: center; align-items: start; padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(48px, 8vw, 96px); }
.legal-card { width: min(100%, 820px); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-frame); background: var(--dawn); color: var(--ink);
  box-shadow: 0 2px 4px rgba(7, 12, 36, 0.2), 0 40px 70px -34px rgba(7, 12, 36, 0.7); font-size: 1rem; line-height: 1.65; }
.legal-card h1 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.1; text-shadow: none; }
.legal-date { margin-top: 10px; color: var(--ink-2); font-size: 0.875rem; }
.legal-lead { margin-top: 22px; padding: 14px 16px; border-radius: var(--r-card); background: #fff; border: 1px solid #b8c6ea; }
.legal-card h2 { margin-top: 34px; font: 700 1.25rem/1.3 var(--body); letter-spacing: 0; text-shadow: none; text-wrap: balance; }
.legal-card p, .legal-card ul, .legal-card .legal-table { margin-top: 12px; }
.legal-card ul { padding-left: 22px; list-style: disc; display: grid; gap: 6px; }
.legal-card a { color: var(--cobalt-2); text-underline-offset: 0.2em; }
.legal-card a:hover { color: var(--hour); }
.legal-card :focus-visible { outline-color: var(--hour); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: #fff; border-radius: var(--r-card); overflow: hidden; }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #dbe5fb; }
.legal-table th { background: var(--dawn-2); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: 0; }
/* Champ à renseigner avant la mise en ligne : bien visible. */
.todo { background: #ffe58a; color: #3d2c00; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) { .legal-card { padding: 26px 18px; } .legal-table { font-size: 0.875rem; } .legal-table th, .legal-table td { padding: 8px 10px; } }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; max-width: 118ch; margin: 0 auto; }
.footer-links a { color: var(--text-2); text-underline-offset: 0.2em; }
.footer-links a:hover { color: var(--text); }
.footer p + .footer-links, .footer .footer-links + p { margin-top: 18px; }

/* ------------------------------------------------------------------ page « au revoir » (sondage de désinstallation) */
.bye-form { margin-top: 24px; display: grid; gap: 10px; }
.bye-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.bye-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: #fff; border: 2px solid #dbe5fb; cursor: pointer; transition: border-color 0.15s; }
.bye-opt:hover { border-color: #b8c6ea; }
.bye-opt:has(input:checked) { border-color: var(--hour); }
.bye-opt input { width: 18px; height: 18px; flex: none; accent-color: var(--hour); }
.bye-comment { margin-top: 10px; font-weight: 700; }
.bye-comment small { font-weight: 400; color: var(--ink-2); }
.bye-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-card); border: 2px solid #dbe5fb; background: #fff; color: var(--ink); font: 400 1rem/1.5 var(--body); resize: vertical; }
.bye-form textarea:focus { border-color: var(--hour); outline: none; }
.bye-form .btn { justify-self: start; margin-top: 10px; }
.bye-form .form-msg { color: var(--ink-2); }
.bye-form .form-msg.is-error { color: #b3123f; }
.bye-done .btn { margin-top: 18px; }
.thanks-mail a { color: var(--cobalt-2); }
@media (max-width: 640px) { .bye-form .btn { justify-self: stretch; } }
