/* huntreal.fr — le site officiel (27/11/2026, direction A « L'affiche », validée par Max sur le canevas).
   Un seul but : faire télécharger l'appli. Charte du jeu (src/components/theme.ts) et polices de l'appli.
   Sert l'accueil (index.html) et la page iPhone (iphone.html). Changer le ?v= à chaque mise à jour (cache 7 jours). */

@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/BarlowCondensed_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("fonts/AtkinsonHyperlegibleNext_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("fonts/AtkinsonHyperlegibleNext_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 700; font-display: swap; src: url("fonts/AtkinsonHyperlegibleMono_700Bold.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #05070A;
  --bg-1: #0A0E13;
  --line: #283241;
  --line-2: #3A4658;
  --t1: #F4F6F9;
  --t2: #B4BDCA;
  --t3: #7F8A9B;
  --hunter: #FF6A13;
  --fugitive: #1EB0FF;
  --ok: #2EE88A;
  --or: #E2B65A;
  --or-clair: #F2D27A;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hunter); outline-offset: 3px; }
[hidden] { display: none !important; }

.d { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.9; }
.m { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; line-height: 1.4; }
.o { color: var(--hunter); }
.b { color: var(--fugitive); }
.g { color: var(--t3); }
.v { color: var(--ok); }
.ligne { display: block; }
.wrap { width: 100%; max-width: calc(1248px + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Le haut de page : l'affiche, le titre, les deux badges. ── */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero-img { position: absolute; inset: 0; display: block; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 10, 0.8) 0%, rgba(5, 7, 10, 0) 15%, rgba(5, 7, 10, 0) 38%, rgba(5, 7, 10, 0.9) 58%, #05070A 72%); }

.barre { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: calc(env(safe-area-inset-top, 0px) + 18px); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque img { width: 30px; height: 30px; }
.marque span { font: 800 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.pastille { padding: 7px 10px; background: var(--ok); color: var(--bg); }
.menu { display: none; }

.hero-txt { position: relative; display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 40px; padding-bottom: 26px; }
.hero-txt .m { color: var(--t2); }
.hero h1 { font-size: clamp(56px, 19vw, 96px); }
.lead { max-width: 30em; font-size: 18px; line-height: 1.4; color: var(--t2); }
.gratuit { font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--ok); }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.badge { display: block; transition: transform 0.12s; }
.badge:active { transform: scale(0.97); }
.badge img { width: auto; height: 50px; }
.qr { display: none; }
.faits { display: none; }

.bande { padding: 14px var(--pad); background: var(--hunter); color: var(--bg); text-align: center; letter-spacing: 0.12em; }

/* ── Les sections. ── */
.sec { padding: 56px 0; }
.sec h2 { margin-top: 12px; font-size: clamp(50px, 6.4vw, 88px); }

/* Une partie : les cinq captures des stores, à faire défiler sur téléphone. */
.rail { display: flex; gap: 12px; margin-top: 24px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail img { flex: none; width: 232px; height: auto; aspect-ratio: 1320 / 2868; border: 1px solid var(--line); scroll-snap-align: start; }
.glisse { margin-top: 16px; color: var(--t3); font-size: 10px; }

/* Deux camps. */
.camps { display: grid; gap: 12px; margin-top: 24px; }
.camp { position: relative; height: 380px; overflow: hidden; border: 1px solid var(--hunter); }
.camp.f { border-color: var(--fugitive); }
.camp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.camp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 10, 0) 52%, rgba(5, 7, 10, 0.95) 86%); }
.camp-txt { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.camp h3 { font-size: 44px; color: var(--hunter); }
.camp.f h3 { color: var(--fugitive); }
.camp p { max-width: 26em; font-size: 16px; line-height: 1.35; }

/* Le prix. */
.prix { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prix-grille { display: grid; gap: 34px; }
.sec h2.zero { margin-top: 8px; font-size: clamp(150px, 17vw, 230px); line-height: 0.85; color: var(--ok); }
.zero-suite { margin-top: 10px; font-size: clamp(40px, 4.4vw, 60px); }
.coches { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.coches li { display: flex; gap: 12px; font-size: 17px; line-height: 1.35; }
.coches svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--bg); table-layout: fixed; }
.compare th, .compare td { padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.25; text-align: center; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare tbody th { width: 38%; padding-left: 12px; font-weight: 400; text-align: left; color: var(--t2); }
.compare td { font-weight: 700; }
.compare thead th { font: 800 20px/1 var(--display); text-transform: uppercase; }
.compare thead th:first-child { width: 38%; padding-left: 12px; font: 700 10px/1.4 var(--mono); letter-spacing: 0.12em; text-align: left; color: var(--t3); }
.compare thead .plus { background: var(--or); color: var(--bg); }
.compare td.plus { background: rgba(226, 182, 90, 0.1); color: var(--or-clair); }
.un-seul { margin-top: 16px; padding: 14px; border: 1px solid var(--or); font-size: 16px; line-height: 1.4; color: #FFF1C1; }
.un-seul strong { color: var(--or-clair); }

/* Dehors, pour de vrai : la vraie photo. */
.dehors { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; overflow: hidden; }
.dehors > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.dehors::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 10, 0) 45%, rgba(5, 7, 10, 0.95) 88%); }
.dehors-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.dehors h2 { font-size: clamp(50px, 6.4vw, 88px); }
.dehors p { max-width: 26em; font-size: 17px; line-height: 1.4; }

/* Le dernier écran : la place vide, et les badges. */
.fin { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 620px; overflow: hidden; }
.fin > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.fin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 10, 0.25) 0%, rgba(5, 7, 10, 0.2) 30%, rgba(5, 7, 10, 0.82) 54%, #05070A 82%); }
.fin-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 300px; padding-bottom: 36px; }
.fin h2 { font-size: clamp(54px, 6.4vw, 96px); }

.pied { padding-top: 18px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pied a { padding: 10px 0; font-size: 10px; letter-spacing: 0.12em; color: var(--t2); text-decoration: none; }
.pied a:hover { color: var(--t1); }
.pied p { margin-top: 8px; font-size: 10px; letter-spacing: 0.12em; color: var(--t3); }

/* Le bouton qui reste collé en bas, sur téléphone, une fois le haut de page passé. */
.colle { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; background: var(--hunter); color: var(--bg); font: 800 20px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); transform: translateY(140%); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.colle.vu { transform: none; }
.colle small { font: 700 10px/1 var(--mono); letter-spacing: 0.12em; padding: 5px 7px; background: var(--bg); color: var(--ok); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; background: var(--hunter); color: var(--bg); font: 800 19px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #FF8540; }
.btn.filet { background: transparent; color: var(--t1); box-shadow: inset 0 0 0 1px rgba(244, 246, 249, 0.55); }
.btn.filet:hover { background: rgba(244, 246, 249, 0.1); }

/* ── Page iPhone : TestFlight en trois étapes. ── */
.iphone-page { padding-top: 28px; padding-bottom: 56px; }
.iphone-page h1 { margin-top: 12px; font-size: clamp(48px, 12vw, 104px); }
.iphone-page .lead { margin-top: 14px; }
.pas { display: grid; gap: 10px; max-width: 620px; margin-top: 28px; }
.pas li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line-2); background: var(--bg-1); }
.pas-n { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hunter); color: var(--hunter); font: 800 26px/1 var(--display); }
.pas h2 { font-size: 26px; line-height: 1; }
.pas p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--t2); }
.pas .btn { margin-top: 12px; width: 100%; }
.note { max-width: 620px; margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--t3); }
.note a { color: var(--t2); }
.retour { color: var(--t2); text-decoration: none; }
.retour:hover { color: var(--t1); }

/* ── Tablette et ordinateur. ── */
@media (min-width: 700px) {
  :root { --pad: 48px; }
  .camps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .camp { height: 560px; }
  .camp-txt { left: 24px; right: 24px; bottom: 24px; }
  .camp h3 { font-size: 64px; }
  .camp p { font-size: 18px; }
  .dehors { min-height: 640px; }
  .fin { min-height: 680px; }
  .pas .btn { width: auto; }
}

@media (min-width: 1100px) {
  :root { --pad: 64px; }
  .hero { min-height: clamp(680px, 100svh, 980px); }
  .hero-img { inset: auto; right: 0; top: 50%; width: min(82vw, 1280px); aspect-ratio: 1672 / 941; transform: translateY(-52%); }
  .hero-img img { object-position: 50% 50%; }
  .hero-img::after { background: linear-gradient(90deg, #05070A 0%, rgba(5, 7, 10, 0) 26%), linear-gradient(180deg, #05070A 0%, rgba(5, 7, 10, 0) 14%, rgba(5, 7, 10, 0) 80%, #05070A 100%); }
  .barre { padding-top: 32px; }
  .marque img { width: 36px; height: 36px; }
  .marque span { font-size: 28px; }
  .pastille { display: none; }
  .menu { display: flex; align-items: center; gap: 36px; }
  .menu a { font-size: 12px; text-decoration: none; }
  .menu a:hover { color: var(--hunter); }
  .menu .btn { min-height: 44px; padding: 0 20px; font-size: 17px; letter-spacing: 0.08em; }
  .menu .btn:hover { color: var(--bg); }
  .hero-txt { gap: 22px; margin-top: auto; margin-bottom: auto; padding-top: 24px; padding-bottom: 24px; }
  .hero-txt > * { max-width: 620px; }
  .hero-txt .m { font-size: 13px; }
  .hero h1 { font-size: clamp(76px, 6.95vw, 100px); white-space: nowrap; }
  .lead { max-width: 560px; font-size: 23px; }
  .gratuit { font-size: 17px; }
  .badge img { height: 54px; }
  .qr { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 14px 0 6px; border: 1px solid var(--line-2); color: var(--t2); font-size: 10px; letter-spacing: 0.12em; line-height: 1.5; }
  .qr img { width: 48px; height: 48px; padding: 4px; background: var(--t1); }
  .faits { position: relative; display: flex; align-items: center; gap: 40px; padding-top: 20px; padding-bottom: 36px; }
  .faits::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; border-top: 1px solid var(--line); }
  .faits li { font-size: 12px; color: var(--t2); }
  .faits li:last-child { margin-left: auto; color: var(--ok); }
  .bande { display: none; }

  .sec { padding: 96px 0; }
  .rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: calc(1248px + var(--pad) * 2); margin: 40px auto 0; overflow: visible; }
  .rail img { width: 100%; }
  .glisse { display: none; }
  .camps { margin-top: 40px; }
  .camp { height: 640px; }

  .prix-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
  .coches li { font-size: 20px; }
  .compare th, .compare td { padding: 16px 8px; font-size: 16px; }
  .compare thead th { font-size: 24px; }
  .un-seul { font-size: 18px; padding: 18px; }

  .dehors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 0; }
  .dehors > img { position: static; height: 680px; object-position: 50% 28%; }
  .dehors::after { display: none; }
  .dehors-txt { gap: 16px; padding: 0 var(--pad) 0 72px; }
  .dehors p { font-size: 21px; }

  .fin { min-height: 720px; }
  .fin > img { object-position: 50% 24%; }
  .fin::after { background: linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, rgba(5, 7, 10, 0.3) 30%, rgba(5, 7, 10, 0.86) 62%, #05070A 92%); }
  .fin-txt { gap: 22px; padding-bottom: 64px; }
  .pied { padding-bottom: 36px; }
  .pied nav { gap: 4px 32px; }
  .colle { display: none; }
}

/* Téléphone pas très haut (barres de Safari) : le haut de page tient encore sur un écran. */
@media (max-width: 699px) and (max-height: 700px) {
  .hero h1 { font-size: clamp(48px, 16vw, 64px); }
  .hero-txt { gap: 10px; padding-bottom: 18px; }
  .lead { font-size: 16px; }
  .badge img { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Page « Télécharger ». */
.telecharger-badges { margin-top: 28px; }
.telecharger-gratuit { margin-top: 14px; }

/* ── Page iPhone, « le chemin en images » (27/11) : l'affiche en bandeau, deux étapes avec l'aperçu de ce qu'Apple
   affiche, puis « C'est tout ». ── */
.ip-tete { position: relative; height: 250px; overflow: hidden; }
.ip-tete > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.ip-tete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 10, 0.75) 0%, rgba(5, 7, 10, 0.15) 34%, rgba(5, 7, 10, 0.55) 70%, #05070A 100%); }
.ip-tete .barre { z-index: 1; }
.ip-tete .retour { color: var(--t1); }
.ip-appli { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; gap: 14px; }
.ip-appli img { width: 68px; height: 68px; border-radius: 16px; border: 1px solid var(--line-2); }
.ip-appli .d { font-size: 30px; line-height: 1; }
.ip-appli .m { margin-top: 6px; font-size: 10px; letter-spacing: 0.12em; color: var(--ok); }
.ip-tete + .iphone-page { padding-top: 22px; }
.ip-tete + .iphone-page h1 { margin-top: 0; font-size: clamp(48px, 14.4vw, 96px); }
.ip-tete + .iphone-page .lead { margin-top: 12px; font-size: 16px; }

.chemin { max-width: 620px; margin-top: 24px; }
.chemin > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.chemin-rail { display: flex; flex-direction: column; align-items: center; }
.chemin-n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--hunter); color: var(--hunter); font: 800 24px/1 var(--display); }
.chemin-n.plein { background: var(--hunter); color: var(--bg); }
.chemin-rail i { flex: 1; width: 2px; margin: 6px 0; background: var(--line); }
.chemin-corps { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; }
.chemin h2 { padding-top: 6px; font-size: 28px; line-height: 1; }
.chemin-corps > p { font-size: 14px; line-height: 1.4; color: var(--t2); }
.chemin .btn { width: 100%; }
.apercu { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 14px; background: var(--t1); color: var(--bg); }
.apercu-ligne { display: flex; align-items: center; gap: 12px; }
.apercu img { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.apercu-nom { flex: 1; min-width: 0; }
.apercu b { display: block; font-size: 15px; line-height: 1.2; }
.apercu small { display: block; font-size: 12px; line-height: 1.3; color: #5A6678; }
.apercu-suite { display: flex; align-items: center; gap: 10px; }
.apercu-suite svg { width: 14px; height: 14px; }
.pilule { padding: 8px 14px; border-radius: 999px; background: #1E7CF2; color: #FFFFFF; font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap; }
.chemin-fin { align-items: center; }
.chemin-ok { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); }
.chemin-ok svg { width: 20px; height: 20px; }
.chemin-fin p { font-size: 16px; line-height: 1.35; }

@media (min-width: 700px) {
  .ip-tete { height: 320px; }
  .ip-tete > img { object-position: 70% 38%; }
  .ip-tete + .iphone-page { padding-top: 32px; }
  .ip-tete + .iphone-page .lead { font-size: 19px; }
  .chemin .btn { width: auto; align-self: flex-start; min-width: 280px; }
}
