/* ============================================================
   KORUN — « Bitume électrique »
   Néo-brutalisme doux : géométrie franche, bordures fines,
   ombres décalées, coins arrondis, beaucoup d'air.
   ============================================================ */

:root {
  /* ---- Mode clair (sections de contenu) ---- */
  --bg:        #ECE8E0;   /* crème bitume        */
  --surface:   #F8F5EE;
  --surface-2: #E2DDD2;
  --ink:       #14130F;
  --ink-soft:  #555047;
  --line:      #D6D0C2;

  /* ---- Accents ---- */
  --salmon:  #FF6600;   /* accent principal — orange Korun */
  --mint:    #6EC4A8;
  --lilac:   #C491D8;
  --brume:   #98BEE0;
  --gold:    #F2B23C;   /* réservé : complété 100 % */

  /* ---- Carte / quartiers ---- */
  --map-void:    rgba(0,0,0,.72);
  --map-contour: #3D3A33;
  --map-active:  #EF8A7D;
  --map-done:    #F2B23C;
  --prog-0: #C4B8A8;
  --prog-1: #C06F62;
  --prog-2: #5E7F92;
  --prog-3: #3D7560;

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* ---- Rayons ---- */
  --r-chip:  10px;
  --r-card:  16px;
  --r-block: 20px;

  /* ---- Ombre décalée néo-brutaliste ---- */
  --shadow-ink:    4px 4px 0 var(--ink);
  --shadow-salmon: 4px 4px 0 var(--salmon);

  --maxw: 1200px;
}

/* Inversion locale pour les sections sombres */
.dark {
  --bg:        #0E0D0B;
  --surface:   #1A1916;
  --surface-2: #25231F;
  --ink:       #F4F1E8;
  --ink-soft:  #ABA69A;
  --line:      #2E2B25;
  --salmon:  #FF7A33;   /* orange lisible sur sombre */
  --mint:    #7FD4B5;
  --lilac:   #D1A8E8;
  --brume:   #AACCE8;
  --shadow-ink:  4px 4px 0 rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--salmon); color: #14130F; }

:focus-visible {
  outline: 3px solid var(--salmon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TYPO HELPERS
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-feature-settings: "tnum";
}
.eyebrow .dot { color: var(--salmon); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
/* Signature : deux derniers caractères en italique saumon */
.sig {
  font-style: italic;
  color: var(--salmon);
}

.h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

section { position: relative; }
.section-pad { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.dark { background: var(--bg); color: var(--ink); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .82em 1.35em;
  border-radius: var(--r-chip);
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn .material-symbols-outlined { font-size: 1.2em; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: var(--shadow-ink);
}
.btn-primary:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--salmon);
}
.btn-primary:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--salmon); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-ink); }

.link-beta {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--salmon);
  padding-bottom: 2px;
  transition: color .18s ease;
  width: fit-content;
}
.link-beta:hover { color: var(--ink); }

/* Badges stores (placeholders cliquables) */
.store-badge {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .6em 1.1em .6em .9em;
  border: 1px solid currentColor;
  border-radius: var(--r-chip);
  background: var(--ink);
  color: var(--bg);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-ink);
}
.store-badge:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--salmon); }
.store-badge .material-symbols-outlined { font-size: 1.9rem; }
.store-badge .sb-small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; font-family: var(--font-mono); }
.store-badge .sb-big { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1; }
.store-badges { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, #ECE8E0 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-footer { height: 34px; }
.brand .k-mark {
  display: inline-grid; place-items: center;
  width: 1.6em; height: 1.6em; margin-right: .35em;
  background: var(--ink); color: var(--bg);
  border-radius: 9px;
  font-size: .72em;
  box-shadow: 3px 3px 0 var(--salmon);
  transform: translateY(.08em);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--salmon); transition: right .22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem,4vw,3rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero h1 { margin-top: .3rem; }
.hero-actions { display: flex; flex-direction: column; gap: 1.1rem; }

/* Bandeau réassurance */
.reassure {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--ink-soft);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem,4vw,3.5rem);
}
.reassure .pin { color: var(--salmon); }
.reassure b { color: var(--ink); font-weight: 600; }

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone-stage { display: grid; place-items: center; }
.phone {
  --pw: 308px;
  width: var(--pw);
  aspect-ratio: 1080 / 2124;
  background: #0E0D0B;
  border: 6px solid #14130F;
  border-radius: 40px;
  padding: 0;
  position: relative;
  box-shadow: 14px 16px 0 rgba(255,102,0,.92), 0 0 0 1.5px #2E2B25;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.phone-screen {
  position: relative; height: 100%;
  border-radius: 32px; overflow: hidden;
  background: #0E0D0B;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #0E0D0B; border-radius: 0 0 14px 14px; z-index: 6;
}
.phone-statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 0;
  font-family: var(--font-mono); font-size: .68rem; color: #F4F1E8;
}
.phone-statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.phone-map { flex: 1; position: relative; }
.phone-map svg { width: 100%; height: 100%; }

/* Pastille label quartier sur la carte */
.map-pin {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 8px;
  background: #1A1916; color: #FF9D8F;
  border: 1px solid #FF9D8F;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.map-pin .material-symbols-outlined { font-size: .85rem; }

/* Carte info bas d'écran (bottom sheet) */
.phone-sheet {
  position: relative; z-index: 4;
  background: #1A1916;
  border-top: 1px solid #2E2B25;
  border-radius: 18px 18px 0 0;
  padding: 12px 14px 16px;
  margin-top: -16px;
}
.sheet-grab { width: 34px; height: 4px; background: #2E2B25; border-radius: 4px; margin: 0 auto 11px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head .q-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #F4F1E8; letter-spacing: -.02em; }
.sheet-head .q-badge {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,157,143,.14); color: #FF9D8F;
  display: inline-flex; align-items: center; gap: 3px;
}
.sheet-prog { height: 7px; border-radius: 4px; background: #25231F; overflow: hidden; margin: 4px 0 10px; }
.sheet-prog > span { display: block; height: 100%; background: var(--salmon); border-radius: 4px; width: 0; }
.sheet-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 11px;
  background: #25231F; border: 1.5px solid var(--salmon);
}
.sheet-row .material-symbols-outlined { font-size: 1.05rem; color: var(--salmon); }
.sheet-row .sr-main { flex: 1; }
.sheet-row .sr-t { font-size: .72rem; font-weight: 600; color: #F4F1E8; }
.sheet-row .sr-s { font-size: .6rem; color: #ABA69A; }
.sheet-row .sr-pts { font-family: var(--font-mono); font-weight: 700; font-size: .72rem; color: var(--gold); display: inline-flex; align-items: center; gap: 2px; }
.sheet-row .sr-pts .material-symbols-outlined { font-size: .8rem; color: var(--gold); }

/* ============================================================
   CARTES — COMMENT ÇA MARCHE
   ============================================================ */
.section-head { display: flex; flex-direction: column; gap: .8rem; margin-bottom: clamp(2.5rem,5vw,3.5rem); max-width: 40ch; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-ink);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}
.step-card:hover { transform: translate(-3px,-3px); }
.step-num {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; color: var(--ink-soft);
}
.icon-tile {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.icon-tile .material-symbols-outlined { font-size: 1.7rem; color: var(--ink); }
.step-card h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.4rem; }
.step-card p { color: var(--ink-soft); font-size: .98rem; text-wrap: pretty; }

.acc-salmon { background: var(--salmon); }
.acc-mint   { background: var(--mint); }
.acc-lilac  { background: var(--lilac); }
.step-card:hover.acc-salmon { box-shadow: 6px 6px 0 var(--salmon); }
.step-card:hover.acc-mint   { box-shadow: 6px 6px 0 var(--mint); }
.step-card:hover.acc-lilac  { box-shadow: 6px 6px 0 var(--lilac); }

/* ============================================================
   SECTION CARTE (large, sombre)
   ============================================================ */
.map-band-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem,5vw,4rem); align-items: center;
}
.map-frame {
  border: 1.5px solid var(--line);
  border-radius: var(--r-block);
  overflow: hidden;
  background: #0E0D0B;
  position: relative;
  aspect-ratio: 5 / 4;
  box-shadow: 10px 12px 0 rgba(255,102,0,.55);
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.map-frame .map-pin { font-size: .68rem; padding: 6px 11px; }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 4;
  display: flex; flex-direction: column; gap: 6px;
  padding: 11px 13px; border-radius: 12px;
  background: rgba(26,25,22,.86); border: 1px solid #2E2B25;
  font-family: var(--font-mono); font-size: .64rem; color: #ABA69A;
}
.map-legend .lg { display: flex; align-items: center; gap: 7px; }
.map-legend .sw { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid; }

.stats { display: grid; gap: 1.4rem; }
.stat {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}
.stat .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.02em;
  color: var(--ink); line-height: 1; font-feature-settings: "tnum";
}
.stat .num .u { color: var(--salmon); }
.stat .lbl {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem;
}

/* ============================================================
   FONCTIONNALITÉS
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-ink); }
.feat-ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.feat-ic .material-symbols-outlined { font-size: 1.45rem; color: var(--ink); }
.feat-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.feat-card p { font-size: .92rem; color: var(--ink-soft); text-wrap: pretty; }
.feat-card .tag {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--salmon);
}

/* ============================================================
   CLUBS
   ============================================================ */
.clubs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  box-shadow: 8px 8px 0 var(--mint);
  overflow: hidden;
}
.clubs-grid { display: grid; grid-template-columns: 1fr 1fr; }
.clubs-copy { padding: clamp(2.2rem,4vw,3.4rem); display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.clubs-copy ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.clubs-copy li { display: flex; align-items: center; gap: .7rem; font-size: 1rem; color: var(--ink-soft); }
.clubs-copy li .material-symbols-outlined { color: var(--mint); font-size: 1.3rem; }
.clubs-visual {
  background: var(--surface-2);
  border-left: 1px solid var(--line);
  padding: clamp(2rem,3.5vw,3rem);
  display: flex; flex-direction: column; gap: .8rem; justify-content: center; align-items: center;
}
.clubs-phone {
  --pw: 250px;
  box-shadow: 9px 11px 0 rgba(255,102,0,.92), 0 0 0 1.5px #2E2B25;
}
.club-row {
  display: flex; align-items: center; gap: .9rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-chip); padding: .8rem 1rem;
  transition: transform .18s ease;
}
.club-row.me { border-color: var(--salmon); box-shadow: 3px 3px 0 var(--salmon); }
.club-rank { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; width: 2ch; color: var(--ink-soft); }
.club-row.me .club-rank { color: var(--salmon); }
.club-badge { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: #14130F; }
.club-name { flex: 1; font-weight: 600; font-size: .95rem; }
.club-km { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-soft); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; max-width: 40ch; margin-inline: auto; }
.beta-form {
  display: flex; gap: .6rem; width: min(100%, 460px); margin-top: .4rem;
  flex-wrap: wrap; justify-content: center;
}
.beta-form input {
  flex: 1; min-width: 200px;
  font-family: var(--font-body); font-size: 1rem;
  padding: .85em 1.1em; border-radius: var(--r-chip);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}
.beta-form input::placeholder { color: var(--ink-soft); }
.beta-form input:focus-visible { border-color: var(--salmon); }
.beta-note { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(3rem,5vw,4rem) 0 2.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { font-size: .92rem; color: var(--ink-soft); transition: color .18s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft);
}
.footer-social { display: flex; gap: .6rem; }
.social-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease;
}
.social-btn:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--salmon); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .phone, .runner-dot { animation: none !important; }
}

/* Pulse du coureur sur la carte */
@keyframes runnerPulse {
  0%   { r: 5; opacity: 1; }
  70%  { r: 16; opacity: 0; }
  100% { r: 16; opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { align-items: flex-start; }
  .phone-stage { margin-top: 1rem; }
  .map-band-grid { grid-template-columns: 1fr; }
  .clubs-grid { grid-template-columns: 1fr; }
  .clubs-visual { border-left: none; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn span.lbl { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 4 / 5; }
}
