/* ============================================================
   RIVOLT — clair / premium, pour des pros (pas un terminal).
   Papier chaud + encre + un seul signal (ignition).
   Le seul élément sombre = l'afficheur télémétrie ("l'écran").
   Display: Space Grotesk · Données (écran): JetBrains Mono.
   ============================================================ */
:root {
  --paper: #f4f1ea;        /* fond, papier chaud */
  --surface: #ffffff;      /* cartes / formulaires */
  --ink: #17150f;          /* texte principal */
  --ink-mute: #6c685f;     /* texte secondaire */
  --ink-faint: #9a958b;    /* marginalia */
  --line: rgba(23,21,15,0.14);
  --line-soft: rgba(23,21,15,0.06);
  --accent: #e2480d;       /* signal Conducteur / marque */
  --accent2: #2a5bd7;      /* signal Garage / Pro */
  --screen: #15130e;       /* fond de l'afficheur */
  --screen-ink: #ece9e2;
  --screen-mute: rgba(236,233,226,0.55);
  --ok: #2f9e6a; --warn: #c98a16; --crit: #d23b3b;
  --maxw: 1240px;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.ig { color: var(--accent); }
.tnum { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* faint vertical guides, grands écrans */
.guides { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
@media (min-width: 1080px) {
  .guides { display: block; }
  .guides::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--maxw);
    max-width: calc(100% - 56px); transform: translateX(-50%);
    background:
      linear-gradient(var(--line-soft), var(--line-soft)) left/1px 100% no-repeat,
      linear-gradient(var(--line-soft), var(--line-soft)) right/1px 100% no-repeat;
  }
}

/* ---------- kicker (label, sans, numéroté) ---------- */
.kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); display: inline-flex; align-items: baseline; gap: 12px;
}
.kicker .idx { color: var(--accent); }

/* ---------- type ---------- */
.display { font-weight: 700; font-size: clamp(42px, 8.4vw, 116px); line-height: 0.95; letter-spacing: -0.035em; }
h2.head { font-weight: 700; font-size: clamp(28px, 4.6vw, 56px); line-height: 1.0; letter-spacing: -0.025em; }
h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.dim { color: var(--ink-mute); }
p { color: var(--ink-mute); }

/* ---------- links / CTA ---------- */
.lnk { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.lnk .car { color: var(--accent); transition: transform .25s; }
.lnk:hover .car { transform: translateX(5px); }
.lnk--primary { background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 3px; transition: background .2s; }
.lnk--primary .car { color: var(--accent); }
.lnk--primary:hover { background: #000; }
.lnk--ghost { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .2s; }
.lnk--ghost:hover { border-color: var(--accent); }
/* lien texte simple (dans le corps) */
.lnk:not(.lnk--primary):not(.lnk--ghost) { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .2s; }
.lnk:not(.lnk--primary):not(.lnk--ghost):hover { border-color: var(--accent); }

/* ---------- bande supérieure (valeur, pas du jargon) ---------- */
.ticker { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.06em; background: var(--surface); }
.ticker .wrap { display: flex; gap: 26px; padding: 9px 28px; white-space: nowrap; overflow: hidden; }
.ticker b { color: var(--ink-mute); font-weight: 600; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 90; background: rgba(244,241,234,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 30px; list-style: none; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink-mute); padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.hero .display { margin-top: 24px; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero-foot { margin-top: 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero .lead { margin-top: 24px; }

/* ---------- READOUT (écran sombre, l'élément clé) ---------- */
.readout { background: var(--screen); color: var(--screen-ink); border-radius: 6px; position: relative; box-shadow: 0 24px 60px -28px rgba(23,21,15,0.5); overflow: hidden; }
.readout .dim { color: var(--screen-mute); }
.readout__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(236,233,226,0.12); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--screen-mute); text-transform: uppercase; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--screen-ink); }
.rec .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,72,13,0.55); } 70% { box-shadow: 0 0 0 7px rgba(226,72,13,0); } 100% { box-shadow: 0 0 0 0 rgba(226,72,13,0); } }
.readout__main { padding: 26px 22px 16px; }
.readout__main .val { font-family: var(--mono); font-weight: 500; font-size: clamp(54px, 8.5vw, 84px); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.readout__main .val u { text-decoration: none; font-size: 0.3em; color: var(--screen-mute); margin-left: 8px; }
.readout__main .cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--screen-mute); margin-top: 8px; }
.readout__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(236,233,226,0.12); }
.cell { padding: 13px 16px; border-top: 1px solid rgba(236,233,226,0.06); }
.cell:nth-child(odd) { border-right: 1px solid rgba(236,233,226,0.12); }
.cell .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--screen-mute); }
.cell .d { font-family: var(--mono); font-size: 19px; font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--screen-ink); }
.cell .meter { height: 2px; background: rgba(236,233,226,0.14); margin-top: 9px; }
.cell .meter i { display: block; height: 100%; background: var(--screen-mute); }
.cell .meter i.hot { background: var(--accent); }
.readout__fig { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(236,233,226,0.35); text-transform: uppercase; }
.s { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.s.ok { background: var(--ok); } .s.warn { background: var(--warn); } .s.crit { background: var(--crit); }

/* ---------- SPEC LIST ---------- */
.spec { border-top: 1px solid var(--line); }
.spec .item { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding-left .2s; }
.spec .item .no { font-weight: 700; font-size: 16px; color: var(--accent); }
.spec .item h3 { margin-bottom: 8px; }
.spec .item p { max-width: 62ch; }
.spec .item .tag { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.spec .item:hover { padding-left: 10px; }
.spec .item:hover h3 { color: var(--accent); }

/* ---------- two-up (perso/pro / avant-après) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.duo > div { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--surface); }
.duo > div + div { border-left: 0; }
.duo h3 { font-size: 23px; margin-bottom: 12px; }
.duo .kicker { margin-bottom: 16px; }
.duo ul { list-style: none; margin-top: 16px; }
.duo li { font-size: 14.5px; color: var(--ink-mute); padding: 11px 0; border-top: 1px solid var(--line-soft); display: flex; gap: 12px; }
.duo li::before { content: '—'; color: var(--ink-faint); }
.duo .good li::before { content: '→'; color: var(--accent); font-weight: 700; }

/* ---------- sequence ---------- */
.seq { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; background: var(--surface); border: 1px solid var(--line); }
.seq .st { padding: 28px 22px 32px; border-right: 1px solid var(--line); position: relative; }
.seq .st:last-child { border-right: 0; }
.seq .st .no { font-weight: 700; font-size: 30px; color: var(--accent); letter-spacing: -0.02em; }
.seq .st h3 { font-size: 17px; margin: 14px 0 8px; }
.seq .st p { font-size: 14.5px; }
.seq .st .who { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 16px; display: block; }

/* ---------- statement ---------- */
.statement { font-weight: 600; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.02em; max-width: 24ch; color: var(--ink); }
.statement .dim { color: var(--ink-faint); }

/* ---------- feed (atelier) ---------- */
.feed { border-top: 1px solid var(--line); }
.feed .r { display: grid; grid-template-columns: 16px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.feed .r .t { font-size: 15px; font-weight: 500; }
.feed .r .m { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.feed .r .st { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.feed .r .st.ig { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--accent); font-weight: 700; }
.faq details[open] summary .pm { color: var(--ink-mute); }
.faq details p { padding-bottom: 24px; max-width: 64ch; font-size: 16px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 0; max-width: 540px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; overflow: hidden; }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; width: 100%; }
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-faint); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 3px 0 0 var(--accent); }
.form .submit { background: var(--ink); color: var(--paper); border: 0; padding: 17px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s; }
.form .submit:hover { background: #000; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.foot .brand { margin-bottom: 14px; }
.foot p { font-size: 14px; max-width: 34ch; }
.foot-meta { font-size: 13px; color: var(--ink-faint); margin-top: 12px; }
.foot h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { font-size: 14.5px; color: var(--ink-mute); }
.foot ul a:hover { color: var(--ink); }
.foot-end { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-faint); }
.foot-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal-links a { color: var(--ink-faint); }
.foot-legal-links a:hover { color: var(--ink); }

/* ---------- pages légales (prose) ---------- */
.doc { max-width: 768px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px,5vw,54px); letter-spacing: -0.03em; line-height: 1.04; }
.doc .updated { color: var(--ink-faint); font-size: 13px; margin-top: 14px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc p { color: var(--ink-mute); font-size: 16px; line-height: 1.72; margin: 12px 0; }
.doc ul { margin: 10px 0 14px 22px; }
.doc li { color: var(--ink-mute); font-size: 16px; line-height: 1.7; margin: 6px 0; }
.doc a { color: var(--accent); border-bottom: 1px solid var(--line); }
.doc a:hover { border-color: var(--accent); }
.doc strong { color: var(--ink); }
.doc .todo { background: rgba(226,72,13,0.10); border-bottom: 1px dashed var(--accent); padding: 0 5px; border-radius: 3px; color: var(--ink); font-weight: 600; }
.doc .back { font-size: 14px; color: var(--ink-mute); display: inline-flex; gap: 8px; margin-bottom: 28px; }
.doc .back:hover { color: var(--ink); }

/* ---------- reveal (PE) ---------- */
.has-js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.has-js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .has-js .rv { opacity: 1; transform: none; } .rec .dot { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .duo { grid-template-columns: 1fr; }
  .duo > div + div { border-left: 1px solid var(--line); border-top: 0; }
  .seq { grid-template-columns: 1fr 1fr; }
  .seq .st:nth-child(2) { border-right: 0; }
  .seq .st { border-bottom: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 0; }
  .nav.open .nav-links li { padding: 0 28px; }
  .nav.open .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .seq { grid-template-columns: 1fr; }
  .seq .st { border-right: 0; }
  .spec .item { grid-template-columns: 1fr; gap: 8px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .ticker .wrap { gap: 16px; font-size: 11.5px; }
}

/* ============================================================
   Composants "vendeur" : boutons, hero photo, tuiles, offre.
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 4px; font-weight: 600; font-size: 15.5px; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s; }
.btn .car { transition: transform .2s; }
.btn:hover .car { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -10px var(--accent); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--line { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--accent); }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-mute); }
.pill .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* photo hero (carte bordée, texte + image) */
.hero2 { padding-top: clamp(36px,5vw,64px); padding-bottom: clamp(48px,6vw,80px); }
.hero2-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 70px -40px rgba(23,21,15,0.4); }
.hero2-text { padding: clamp(30px,4vw,60px); display: flex; flex-direction: column; justify-content: center; }
.hero2-text h1 { margin-top: 20px; }
.hero2-text .lead { margin-top: 20px; }
.hero2-cta { margin-top: 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero2-trust { margin-top: 20px; font-size: 13px; color: var(--ink-faint); }
.hero2-ph { position: relative; min-height: 440px; background: #0c0c0d; }
.hero2-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* tuiles produit (Conducteur / Garage), couleur propre */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.tile .ph { aspect-ratio: 16 / 10; background: #0c0c0d; overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .ph img { transform: scale(1.045); }
.tile .body { padding: clamp(24px,3vw,38px); border-top: 3px solid var(--accent); flex: 1; display: flex; flex-direction: column; }
.tile .kicker { color: var(--accent); }
.tile h3 { font-size: clamp(22px,2.6vw,28px); margin: 12px 0 14px; }
.tile ul { list-style: none; margin: 6px 0 24px; }
.tile li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-mute); display: flex; gap: 10px; }
.tile li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile.perso { --accent: #e2480d; }
.tile.pro { --accent: #2a5bd7; }

/* gains chiffrés */
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gain .big { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.gain p { margin-top: 10px; font-size: 15px; }

/* bandeau d'offre */
.offer { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: clamp(34px,5vw,64px); text-align: center; }
.offer h2 { margin: 16px auto 0; max-width: 20ch; }
.offer-cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 920px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-ph { min-height: 300px; order: -1; }
  .tiles { grid-template-columns: 1fr; }
  .gains { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Tarifs (forfaits)
   ============================================================ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: clamp(26px,3vw,38px); display: flex; flex-direction: column; position: relative; }
.plan.feature { border-color: var(--accent); box-shadow: 0 22px 56px -28px var(--accent); }
.plan .badge2 { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; }
.plan .pname { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.plan .price { font-size: clamp(36px,4.4vw,50px); font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.plan .ptag { color: var(--ink-mute); font-size: 14px; margin-top: 10px; min-height: 40px; }
.plan ul { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 0; }
.plan li { font-size: 14.5px; color: var(--ink-mute); display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.plan li.off { color: var(--ink-faint); }
.plan li.off::before { content: '—'; color: var(--ink-faint); }
.plan .btn { margin-top: auto; justify-content: center; }
.price-note { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--ink-faint); }
@media (max-width: 920px) { .pricing { grid-template-columns: 1fr; } .plan.feature { order: -1; } }
