/* Burst — feuille de style du site.
   Direction : « Vibrant & Block-based ». Fond quasi noir aligné sur
   l'application, orange unique en accent, Barlow Condensed pour les titres
   (typo athlétique condensée), Barlow pour le texte. Thème sombre assumé :
   l'application est orange sur noir, le site aussi. */

/* ── jetons ─────────────────────────────────────────────────────────── */

:root {
  --bg:        #0B0D10;
  --bg-2:      #0F1216;
  --surface:   #14171C;
  --surface-2: #1B1F26;
  --ink:       #F4F6F8;
  --ink-2:     #AEB7C2;
  --ink-3:     #7E8894;
  --line:      #232830;
  --line-2:    #2E3540;

  --orange:     #F97316;
  --orange-lit: #FB923C;
  --orange-ink: #0B0D10;
  --wash:       rgba(249, 115, 22, .10);
  --wash-line:  rgba(249, 115, 22, .32);
  --green:      #34D399;

  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 52px;
  --sp-6: 72px;

  --shell: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* `clip` plutôt que `hidden` : empêche le débordement horizontal sans créer
   de conteneur de défilement, ce qui casserait l'en-tête sticky. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ── grilles ────────────────────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.prose { max-width: 68ch; }

.band { padding: var(--sp-6) 0; }
.band--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: center;
}
.split--wide  { grid-template-columns: 1.15fr .85fr; }
.split--copy  { grid-template-columns: .85fr 1.15fr; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-2); }

.stack   { display: flex; flex-direction: column; gap: var(--sp-2); }
.row     { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

@media (max-width: 900px) {
  .split, .split--wide, .split--copy { grid-template-columns: 1fr; gap: var(--sp-4); }
  .split--flip > *:first-child { order: 2; }
  .band { padding: 56px 0; }
  .band--alt { padding: 56px 0; }
}

/* ── typographie ────────────────────────────────────────────────────── */

h1, h2, h3, .h {
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin-bottom: var(--sp-2); }
h3 { font-size: 1.25rem; margin-bottom: 6px; }
h4 { font-family: var(--cond); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; line-height: 1.15; }

p { margin: 0 0 var(--sp-2); }
.lede { font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); margin-bottom: var(--sp-3); max-width: 64ch; }
.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 var(--sp-2);
  display: block;
}
ul, ol { margin: 0 0 var(--sp-2); padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--orange); }
strong { font-weight: 600; color: var(--ink); }
small { font-size: .84rem; color: var(--ink-3); }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--orange-lit);
}
a { color: var(--orange-lit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ── en-tête ────────────────────────────────────────────────────────── */

header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 13, 16, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.site { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.site a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .2s var(--ease), background .2s var(--ease);
}
nav.site a:hover { color: var(--ink); background: var(--surface-2); }
nav.site a[aria-current="page"] { color: var(--orange); }
nav.site .btn-sm {
  background: var(--orange);
  color: var(--orange-ink);
  font-weight: 600;
  padding: 8px 16px;
}
nav.site .btn-sm:hover { background: var(--orange-lit); color: var(--orange-ink); }

@media (max-width: 720px) {
  nav.site a { padding: 8px 9px; font-size: .9rem; }
  .brand { font-size: 1.3rem; }
}

/* Sous 620 px la barre de navigation passait sous la marque en deux lignes,
   ce qui affichait les liens AU-DESSUS du logo. Marque sur sa ligne, liens
   sur une rangée unique qui défile horizontalement. */
@media (max-width: 620px) {
  header.site .shell { flex-wrap: wrap; min-height: 0; padding-block: 10px; gap: 8px; }
  .brand { flex: 1 0 100%; }
  nav.site {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  nav.site::-webkit-scrollbar { display: none; }
  nav.site a { white-space: nowrap; }
}

/* ── boutons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--orange); color: var(--orange-ink); }
.btn--primary:hover { background: var(--orange-lit); color: var(--orange-ink); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--line-2); }

.free-note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .92rem; }
.free-note svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { padding: clamp(36px, 5vw, 72px) 0 var(--sp-5); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: min(680px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(249,115,22,.10) 0%, rgba(249,115,22,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .shell { position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--sp-3); }
.hero h1 em { font-style: normal; color: var(--orange); }

/* ── cadre téléphone ────────────────────────────────────────────────── */

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  border: 9px solid #1C2027;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 18px 44px -24px rgba(0,0,0,.8);
  overflow: hidden;
}
.phone img { border-radius: 28px; }
/* Dans le hero, le téléphone est plafonné en HAUTEUR : à 1080×2340, une
   largeur libre produit un bloc de 700 px de haut qui étire toute la section. */
.phone--lg { width: auto; max-height: min(470px, 56vh); aspect-ratio: 1080 / 2340; }
.phone--lg img { height: 100%; width: 100%; object-fit: cover; object-position: top; }

.shot {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 36px -24px rgba(0,0,0,.7);
}

/* ── cartes ─────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-3);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--wash);
  border: 1px solid var(--wash-line);
  color: var(--orange);
  margin-bottom: var(--sp-2);
}
.card .ico svg { width: 21px; height: 21px; }

a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--line-2); }
a.card h4 { color: var(--ink); }
a.card .more { color: var(--orange); font-weight: 600; font-size: .92rem; }

.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  color: var(--ink-2);
  font-size: .98rem;
}
.facts-row span { display: inline-flex; align-items: center; gap: 8px; }
.facts-row svg { width: 16px; height: 16px; color: var(--orange); flex: none; }

.note {
  background: var(--wash);
  border: 1px solid var(--wash-line);
  border-radius: var(--r);
  padding: var(--sp-3);
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 4vw, 40px);
}


/* ── tableaux ───────────────────────────────────────────────────────── */

.scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: var(--sp-3);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--surface-2);
  font-family: var(--cond);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.022); }
td.n, th.n { text-align: right; white-space: nowrap; }
td.hl { color: var(--orange); font-weight: 600; }
caption { caption-side: bottom; text-align: left; padding: 12px 16px; color: var(--ink-3); font-size: .86rem; border-top: 1px solid var(--line); background: var(--surface-2); }

/* ── calculateur ────────────────────────────────────────────────────── */

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--sp-2); }
.field label { font-family: var(--cond); font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  width: 100%;
  min-height: 52px;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus { border-color: var(--orange); }
.field .hint { font-size: .85rem; color: var(--ink-3); }

.readout {
  background: var(--surface-2);
  border: 1px solid var(--wash-line);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}
.readout .big { font-family: var(--cond); font-weight: 600; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; color: var(--orange); }
.readout .big span { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--ink-2); margin-left: 8px; letter-spacing: 0; }
.readout .pair { display: flex; justify-content: space-between; gap: var(--sp-2); border-top: 1px solid var(--wash-line); padding-top: var(--sp-2); }
.readout .pair b { font-family: var(--cond); font-size: 1.5rem; font-weight: 700; }
.readout .lab { font-family: var(--cond); font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ── révélation au défilement ───────────────────────────────────────── */

/* Amélioration progressive : le contenu est visible par défaut. Il n'est
   masqué que si le script a posé la classe `js` sur <html>, donc jamais si
   JavaScript échoue ou est désactivé. */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .rise:nth-child(2) { transition-delay: .06s; }
.js .rise:nth-child(3) { transition-delay: .12s; }
.js .rise:nth-child(4) { transition-delay: .18s; }

/* ── pied de page ───────────────────────────────────────────────────── */

footer.site { border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--sp-4) 0 var(--sp-5); margin-top: var(--sp-6); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-3); }
footer.site h4 { font-size: 1rem; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--orange); }
footer.site .fine { border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-2); color: var(--ink-3); font-size: .87rem; }
@media (max-width: 720px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ── impression ─────────────────────────────────────────────────────── */

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site, footer.site, .btn, .note, .cta-band, .phone, .hero::before { display: none !important; }
  .band, .band--alt { padding: 0; border: 0; background: #fff; }
  .scroll { border: 0; background: #fff; overflow: visible; }
  th, td { border-bottom: 1px solid #bbb; padding: 4px 8px; color: #000; }
  thead th { background: #eee; color: #000; position: static; }
  .rise { opacity: 1; transform: none; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .rise, .rise { opacity: 1; transform: none; }
}

/* ── pages de contenu ───────────────────────────────────────────────── */
/* Le texte garde une longueur de ligne lisible, les tableaux et les blocs
   visuels occupent toute la largeur. */
.doc > p, .doc > ul, .doc > ol, .doc > h3, .doc > h4, .doc > .note { max-width: 72ch; }
.doc h2 { margin-top: var(--sp-5); }
.band > .shell > h2:first-child { margin-top: 0; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: var(--sp-3); }
.doc > p > code { white-space: nowrap; }
.doc code.block {
  display: inline-block;
  font-size: 1.05rem;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--wash-line);
  color: var(--orange-lit);
}
