/* AppToll — site vitrine. Direction « Nuit » : mêmes couleurs, police et rayons que l'app. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0D0E12;
  --surface: #17181D;
  --surface-raised: #1F2026;
  --line: #262830;
  --line-strong: #3A3D47;
  --ink: #F2F2F5;
  --ink-soft: #C9CAD2;
  --ink-muted: #8B8D98;
  --accent: #59F3D9;
  --on-accent: #0D0E12;
  --accent-soft: #13262A;
  --accent-deep: #0B5E66;
  --error: #FF6B5E;
  --error-soft: #2A1716;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --gutter: 20px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* En-tête */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--ink-soft); }

/* Typo */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin: 0 0 12px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-muted); max-width: 34em; margin: 20px 0 0; }
.muted { color: var(--ink-muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: var(--r-md); font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-small { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-small:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }
.hero-note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--ink-muted); }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(89, 243, 217, 0.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(89, 243, 217, 0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero > * { min-width: 0; }

/* Héros */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero::before { content: ""; position: absolute; top: -220px; left: 10%; width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(89, 243, 217, 0.14), transparent); pointer-events: none; }

/* Barrière : se lève au chargement, comme dans l'app */
.gate { display: block; width: 112px; height: 112px; margin: 0 0 20px -8px; overflow: visible; }
.gate-ground { stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; }
.gate-fork { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.gate-arm { transform-origin: 30px 72px; animation: gate-lift 1.1s cubic-bezier(.34, 1.56, .64, 1) .5s both; }
.gate-lamp { fill: var(--error); animation: gate-lamp .3s ease .5s both; }
@keyframes gate-lift { from { transform: rotate(0deg); } to { transform: rotate(-58deg); } }
@keyframes gate-lamp { to { fill: var(--accent); } }
@media (prefers-reduced-motion: reduce) {
  .gate-arm, .gate-lamp, .pulse { animation-duration: 0s; animation-delay: 0s; }
  .stage-gate .gate-arm, .stage-gate .gate-lamp, .stage-gate .pill { transition: none; }
}

/* Maquette du péage */
.phone { justify-self: center; width: 100%; max-width: 340px; aspect-ratio: 390 / 760; border-radius: 40px; background: var(--bg); border: 1px solid var(--line-strong); padding: 28px 18px 22px; display: flex; flex-direction: column; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; }
.phone::before { content: ""; position: absolute; top: -120px; left: 50%; width: 320px; height: 240px; margin-left: -160px; background: radial-gradient(closest-side, rgba(89, 243, 217, 0.16), transparent); }
.phone-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chip svg { flex: none; display: block; width: 22px; height: 22px; }
.count { font-size: 13px; color: var(--ink-muted); }
.bars { display: flex; gap: 4px; margin-top: 16px; }
.bars span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.bars span.on { background: var(--accent); }
.phone .eyebrow { margin: 40px 0 8px; font-size: 12px; }
.phone .q { font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.options { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.opt { height: 50px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 500; }
.opt.ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.phone .leave { margin-top: auto; text-align: center; font-size: 13px; color: var(--ink-muted); }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.label { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-muted); }

/* Éléments d'interface repris de l'app */
.app-ic { flex: none; width: 28px; height: 28px; }
.code { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.opt.bad { background: var(--error-soft); border-color: var(--error); color: var(--error); font-weight: 600; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step h3 { font-size: 20px; }
.step p { margin: 8px 0 0; color: var(--ink-muted); font-size: 16px; }
.step-index { display: block; margin: 28px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stage { position: relative; height: 232px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.stage::before { content: ""; position: absolute; top: -90px; left: 50%; width: 280px; height: 180px; margin-left: -140px; background: radial-gradient(closest-side, rgba(89, 243, 217, 0.10), transparent); pointer-events: none; }
.mini-list { position: relative; width: 100%; max-width: 264px; display: flex; flex-direction: column; gap: 8px; }
.mini-row { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.mini-row.is-on { border-color: rgba(89, 243, 217, 0.45); color: var(--ink); }
.mini-row .dot { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.mini-row.is-on .dot { border: 0; background: var(--accent) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' stroke='%230D0E12' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mini-row.is-on .code { background: var(--accent); color: var(--on-accent); }
.mini-row .level { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); }
.stage-gate { flex-direction: column; gap: 4px; }
.stage-gate .gate { position: relative; width: 128px; height: 128px; margin: -12px 0 0; }
.stage-gate .gate-arm { animation: none; transform: rotate(-58deg); transition: transform 1.1s cubic-bezier(.34, 1.56, .64, 1) .15s; }
.stage-gate .gate-lamp { animation: none; fill: var(--accent); transition: fill .3s ease .15s; }
.stage-gate .pill { position: relative; transition: opacity .4s ease .7s, transform .4s ease .7s; }
.js .stage-gate:not(.is-open) .gate-arm { transform: rotate(0deg); }
.js .stage-gate:not(.is-open) .gate-lamp { fill: var(--error); }
.js .stage-gate:not(.is-open) .pill { opacity: 0; transform: translateY(6px); }

/* Fonctionnalités */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { position: relative; padding: 32px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.panel h3 { font-size: 22px; }
.panel p { margin: 8px 0 0; color: var(--ink-muted); font-size: 16px; }
.panel-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 48px; }
.panel > .sample { margin-bottom: 28px; }
.sample { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.sample .opt + .opt { margin-top: 8px; }
.panel .sample-kicker { margin: 0; font-size: 12px; font-weight: 600; color: var(--accent); }
.panel .sample-q { margin: 6px 0 16px; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.panel .sample-why { margin: 12px 0 0; font-size: 14px; }
.rules { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.rule { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.rule + .rule { border-top: 1px solid var(--line); }
.rule-app { font-weight: 600; font-size: 15px; }
.rule-goal { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.rule-goal .code { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.timeline { position: relative; list-style: none; margin: 0; padding: 24px 20px; display: flex; justify-content: space-between; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.timeline::before { content: ""; position: absolute; top: 30px; left: 27px; right: 27px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--error), var(--accent)); opacity: 0.55; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.timeline li:first-child { align-items: flex-start; }
.timeline li:last-child { align-items: flex-end; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.timeline li:first-child::before { border-color: var(--error); }
.timeline li.done { color: var(--accent); font-weight: 600; }
.timeline li.done::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(89, 243, 217, 0.12); }

/* Vie privée */
.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 28px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.privacy-col { padding: 36px; }
.privacy-col + .privacy-col { border-left: 1px solid var(--line); background: rgba(13, 14, 18, 0.35); }
.privacy-col:first-child .label { color: var(--accent); }
.privacy-big { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.privacy-col .muted { margin: 12px 0 0; font-size: 16px; }
.privacy .checks { margin-top: 0; }
.privacy-foot { margin: 20px 0 0; font-size: 15px; color: var(--ink-muted); }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 32px; border-radius: 28px; border: 1px solid var(--line); }
.plan h3 { display: flex; align-items: center; gap: 10px; }
.plan-pro { border-color: rgba(89, 243, 217, 0.45); background: linear-gradient(180deg, rgba(89, 243, 217, 0.07), transparent 45%), var(--surface); }
.price { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin-top: 16px; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.plan-sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-muted); }
.plan .checks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' stroke='%2359F3D9' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5l9 9m0-9l-9 9' stroke='%238B8D98' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }

/* Bêta */
.beta-section { background: radial-gradient(50% 60% at 12% 0%, rgba(89, 243, 217, 0.07), transparent); }
.beta { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.beta-pitch { position: sticky; top: 32px; }
.beta-steps { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.beta-steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink-soft); }
.beta-steps span { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--accent); }
.beta-card { padding: 32px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
.beta-form { display: flex; flex-direction: column; gap: 26px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { display: block; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.optional { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.field input[type="email"], .field textarea { display: block; width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(89, 243, 217, 0.15); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: border-color .15s, background-color .15s, color .15s; }
.choice:hover span { border-color: var(--ink-muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice input[type="checkbox"]:checked + span::before { content: ""; width: 14px; height: 14px; margin-left: -2px; background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' stroke='%2359F3D9' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(89, 243, 217, 0.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--error-soft); color: var(--error); font-size: 14px; }
.form-note { margin: -12px 0 0; text-align: center; font-size: 13px; color: var(--ink-muted); }
.beta-done { padding: 40px 8px; text-align: center; }
.beta-done svg { width: 56px; height: 56px; }
.beta-done h3 { margin-top: 20px; font-size: 22px; }
.beta-done p { max-width: 28em; margin: 8px auto 0; color: var(--ink-muted); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--ink-muted); font-size: 16px; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-row nav a { color: var(--ink-soft); }
.trademarks { margin: 24px auto 0; font-size: 13px; }

/* Pages légales */
.legal { max-width: 720px; padding-top: 40px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 24px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--ink-muted); font-size: 14px; margin-top: 12px; }
.todo { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 0 6px; font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 72px; gap: 56px; }
  .steps, .bento, .pricing, .beta { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 48px; }
  .panel-wide { display: block; }
  .panel-wide > div:first-child { margin-bottom: 28px; }
  .panel, .plan, .beta-card { padding: 24px; }
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .privacy-col { padding: 28px 24px; }
  .privacy-col + .privacy-col { border-left: 0; border-top: 1px solid var(--line); }
  .beta { gap: 40px; }
  .beta-pitch { position: static; }
  section { padding: 72px 0; }
  .nav-links { display: none; }
}

@media (max-width: 420px) {
  .rule { gap: 10px; padding: 12px; }
  .rule-goal { font-size: 13px; }
  .rule-goal .code { display: none; }
  .timeline { padding: 20px 14px; }
  .timeline::before { left: 21px; right: 21px; top: 26px; }
  .timeline li { font-size: 12px; }
}
