/* La Plaquette — le site. La charte est celle de l'app (lib/core/theme/lc_colors.dart). */

@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f6f4ef; --surface: #ffffff; --sunk: #eae5db; --line: #e2ded5; --line-control: #8a8478;
  --ink: #16181d; --ink-dim: #3d4048; --ink-mute: #5b5f68; --on-ink: #ffffff;
  --accent: #c2410c; --accent-press: #9a3412; --on-accent: #ffffff;
  --accent-soft: #fbe7dc; --on-accent-soft: #9a3412;
  --navy: #1e3a5f; --navy-soft: #e3eaf2; --on-navy-soft: #1e3a5f;
  --wood: #efd3a8; --paint: #e5be88; --court-line: #8a5a2b;
  --spotlight: #16181d; --on-spotlight: #ffffff; --spot-dim: #c9c6be;
  --shadow: 0 24px 48px -24px rgba(74, 40, 10, 0.3);
  --shadow-sm: 0 10px 24px -14px rgba(22, 24, 29, 0.28);
  --radius: 28px; --gutter: 16px; --max: 1280px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316; --surface: #1c1d22; --sunk: #27292f; --line: #31333a; --line-control: #777a84;
    --ink: #f2f0ea; --ink-dim: #c9c6be; --ink-mute: #a19e96; --on-ink: #121316;
    --accent: #f08a4b; --accent-press: #ffb98f; --on-accent: #1f0b02;
    --accent-soft: #3b2215; --on-accent-soft: #ffb98f;
    --navy-soft: #1d2a3a; --on-navy-soft: #a9c4e6;
    --wood: #d8b88a; --paint: #cda672; --court-line: #5c3a17;
    --spotlight: #2c2f37; --on-spotlight: #f2f0ea;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #121316; --surface: #1c1d22; --sunk: #27292f; --line: #31333a; --line-control: #777a84;
  --ink: #f2f0ea; --ink-dim: #c9c6be; --ink-mute: #a19e96; --on-ink: #121316;
  --accent: #f08a4b; --accent-press: #ffb98f; --on-accent: #1f0b02;
  --accent-soft: #3b2215; --on-accent-soft: #ffb98f;
  --navy-soft: #1d2a3a; --on-navy-soft: #a9c4e6;
  --wood: #d8b88a; --paint: #cda672; --court-line: #5c3a17;
  --spotlight: #2c2f37; --on-spotlight: #f2f0ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 18px/1.6 "Barlow", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.display { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; text-transform: uppercase;
  line-height: 0.95; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
.kicker { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); font-size: 17px; margin: 0 0 12px; }
.lede { font-size: 20px; color: var(--ink-dim); max-width: 38em; margin: 20px 0 0; }
@media (min-width: 768px) { .lede { font-size: 22px; } }

/* ── En-tête ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo span { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 25px; text-transform: uppercase; letter-spacing: 0.02em; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-dim); padding: 10px 14px; border-radius: 12px; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
@media (min-width: 860px) { .nav { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 16px; font: 700 18px/1 "Barlow", sans-serif; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s var(--ease-out), background-color 0.2s, box-shadow 0.2s; touch-action: manipulation; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 24px -12px rgba(194, 65, 12, 0.6); }
.btn-primary:hover { background: var(--accent-press); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: #ff9d63; } }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-control); }
.btn-ghost:hover { background: var(--sunk); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 13px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── Héros ───────────────────────────────────────────────── */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 80px 0 96px; } }
.hero h1 { font-size: clamp(54px, 10.5vw, 128px); max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .status { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--ink-mute); }
.hero .status i { width: 10px; height: 10px; border-radius: 50%; background: #15803d; box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.18); }
.hero-ghost { position: absolute; right: -2vw; top: 10px; font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: clamp(120px, 26vw, 380px); line-height: 1; color: var(--sunk); opacity: 0.7; pointer-events: none; user-select: none; white-space: nowrap; z-index: -1; }

.film { position: relative; margin-top: 48px; border-radius: var(--radius); overflow: hidden; background: #f6f4ef;
  box-shadow: var(--shadow), 0 0 0 1px rgba(138, 90, 43, 0.14); aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .film { margin-top: 64px; border-radius: 36px; } }
.film video, .film img { width: 100%; height: 100%; object-fit: cover; }
.film .toggle { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(22, 24, 29, 0.78); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); transition: transform 0.15s var(--ease-out), background-color 0.2s; }
.film .toggle:hover { background: rgba(22, 24, 29, 0.92); }
.film .toggle:active { transform: scale(0.94); }
.film .toggle svg { width: 20px; height: 20px; }

@media (min-width: 1100px) {
  .hero .hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(64px, 6.6vw, 104px); }
  .hero .lede { font-size: 20px; }
  .hero .film { margin-top: 0; }
  .hero { padding: 56px 0 88px; }
}

/* ── Sections ────────────────────────────────────────────── */
section { position: relative; }
.band { padding: 72px 0; }
@media (min-width: 768px) { .band { padding: 120px 0; } }
.band h2 { font-size: clamp(42px, 6.4vw, 84px); max-width: 14ch; }

/* Le terrain qui se joue, sur la page */
.play { display: grid; gap: 40px; align-items: center; margin-top: 48px; }
@media (min-width: 960px) { .play { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.board { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.board .sports { display: flex; gap: 6px; background: var(--sunk); padding: 5px; border-radius: 16px; width: fit-content; margin: 4px 4px 14px; }
.board .sports button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; font: 700 17px "Barlow", sans-serif;
  background: transparent; color: var(--ink-dim); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.board .sports button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.court { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1.34; }
.court svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.court svg[hidden] { display: none; }
.transport { display: flex; align-items: center; gap: 14px; padding: 16px 6px 6px; }
.transport .playbtn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: transform 0.15s var(--ease-out); }
.transport .playbtn:active { transform: scale(0.94); }
.transport .playbtn svg { width: 22px; height: 22px; }
.track { flex: 1; display: flex; gap: 6px; }
.track button { flex: 1; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.track button::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 4px; background: var(--sunk); }
.track button i { position: absolute; left: 0; top: 18px; height: 8px; border-radius: 4px; background: var(--accent); width: 100%;
  transform-origin: left center; transform: scaleX(var(--p, 0)); }
.caption { display: flex; align-items: baseline; gap: 14px; padding: 4px 8px 10px; min-height: 64px; }
.caption b { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 30px; color: var(--accent); flex: none; }
.caption span { font-size: 18px; font-weight: 600; }

.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.legend li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-dim); }
.legend svg { width: 56px; height: 24px; flex: none; color: var(--ink); }

/* Les fonctionnalités, téléphone et texte en alternance */
.feature { display: grid; gap: 40px; align-items: center; padding: 56px 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 80px; padding: 72px 0; }
  .feature.flip .phone-wrap { order: 2; } }
.feature h3 { font-size: clamp(38px, 5vw, 64px); }
.feature p { color: var(--ink-dim); font-size: 19px; margin: 18px 0 0; max-width: 32em; }
.feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.feature li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; flex: none; border-radius: 50%;
  border: 3.5px solid var(--accent); }
.stat { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stat div b { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat div span { font-size: 16px; color: var(--ink-mute); font-weight: 600; }

.phone-wrap { position: relative; display: grid; place-items: center; padding: 24px 0; }
.phone-wrap::before { content: ""; position: absolute; width: min(88%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); }
.phone { position: relative; width: min(78vw, 320px); aspect-ratio: 1206 / 2622; border-radius: 48px; background: #121316; padding: 10px;
  box-shadow: 0 40px 80px -36px rgba(22, 24, 29, 0.55); will-change: transform; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #f6f4ef; }

/* Deux sports */
.sports-grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 800px) { .sports-grid { grid-template-columns: 1fr 1fr; } }
.sport-card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.sport-card .mini { border-radius: 18px; overflow: hidden; aspect-ratio: 1.6; margin-bottom: 22px; }
.sport-card h3 { font-size: 40px; }
.sport-card p { color: var(--ink-dim); margin: 10px 0 0; }

/* Le partage */
.tiles { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--on-accent-soft); }
.tile .ico.navy { background: var(--navy-soft); color: var(--on-navy-soft); }
.tile .ico svg { width: 26px; height: 26px; }
.tile h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 20px 0 8px; }
.tile p { margin: 0; color: var(--ink-dim); font-size: 17px; }

/* Les données : la carte sombre, comme sur l'accueil de l'app */
.spot { background: var(--spotlight); color: var(--on-spotlight); border-radius: 36px; padding: 44px 28px; display: grid; gap: 32px; }
@media (min-width: 900px) { .spot { grid-template-columns: 1.1fr 1fr; padding: 72px; align-items: center; } }
.spot h2 { color: var(--on-spotlight); }
.spot p { color: var(--spot-dim); font-size: 19px; margin: 18px 0 0; }
.spot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spot li { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 19px; }
.spot li svg { width: 26px; height: 26px; color: #f08a4b; flex: none; }
.spot a { color: #ffb98f; font-weight: 700; }

/* Dernier appel */
.final { text-align: center; padding: 96px 0 120px; }
.final h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(44px, 7vw, 96px); }
.final p { color: var(--ink-dim); margin: 20px auto 0; max-width: 34em; }
.final .btn { margin-top: 32px; }

/* Pied */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-mute); font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot a { color: var(--ink-dim); font-weight: 600; text-decoration: none; padding: 10px 0; display: inline-block; }
.foot a:hover { color: var(--accent); }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn, .tile:hover { transition: none; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Pages de texte (aide, confidentialité) */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(48px, 9vw, 88px); }
.doc .intro { font-size: 20px; color: var(--ink-dim); margin: 18px 0 0; }
.doc .callout { background: var(--surface); border-radius: 22px; padding: 22px 24px; margin: 32px 0 8px; box-shadow: var(--shadow-sm); }
.doc .callout p { margin: 0; }
.doc h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1.05; margin: 48px 0 8px; }
.doc p, .doc li { color: var(--ink-dim); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc details { background: var(--surface); border-radius: 18px; margin: 10px 0; box-shadow: var(--shadow-sm); }
.doc summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 19px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 48px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-family: "Barlow Condensed", sans-serif; font-size: 28px; line-height: 0.9; color: var(--accent); transition: transform 0.2s; }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details > div { padding: 0 22px 18px; }
.doc details > div p:first-child { margin-top: 0; }
