/* Padel Connect & Play — site vitrine, direction artistique D « Synthèse » (design/art-direction/). */

@font-face { font-family: "Asap Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/asap-condensed-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Asap Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(assets/fonts/asap-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Asap Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/asap-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Asap Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/asap-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Asap Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(assets/fonts/asap-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  /* jour (gestion) */
  --bg: #f6f0e4; --surface: #fffdf8; --surface-2: #f0e7d5;
  --ink: #14213a; --ink-2: #5b6274; --line: #e0d3ba; --line-strong: #c9b995;
  --navy: #0e213f; --ball: #ffd717; --ball-soft: #fff3c2;
  --court: #2b6fd6; --pos: #1d7f48; --neg: #c2410c;
  /* nuit (moments forts) */
  --n-bg: #0b1628; --n-surface: #13233d; --n-surface-2: #1b2d4c;
  --n-ink: #eef3fb; --n-ink-2: #9db0cd; --n-line: #2a3f63;
  --font: "Asap Condensed", "Arial Narrow", sans-serif;
  --r-xs: 3px; --r-s: 5px; --r-m: 6px; --r-l: 8px;
  --sh-1: 2px 2px 0 rgba(20, 33, 58, .14);
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.5 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-style: normal; text-transform: uppercase; margin: 0; line-height: 1.02; }
h1 { font-weight: 800; letter-spacing: -.015em; }
h2 { font-weight: 800; letter-spacing: -.01em; font-size: clamp(30px, 5vw, 46px); }
h3 { font-weight: 700; letter-spacing: .01em; font-size: 21px; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ball); color: var(--navy); padding: 8px 12px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--court); outline-offset: 3px; }

/* ---------- header marine, liseré jaune ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--ball); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 19px; }
.brand .amp { color: var(--ball); }
.top .logo { width: auto; height: 54px; flex: none; margin: 4px 0; }
.top nav.sections { margin-left: auto; display: flex; gap: 4px; }
.langs { display: flex; gap: 2px; border-left: 1px solid #2a3f63; padding-left: 10px; }
.langs a { color: #a9b6cc; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .04em; padding: 5px 6px; border-radius: var(--r-s); }
.langs a:hover { color: #fff; }
.langs a[aria-current] { color: var(--navy); background: #fff; }
@media (max-width: 560px) { .brand > span { display: none; } .top .wrap { gap: 10px; } .langs { padding-left: 6px; } .langs a { padding: 5px 4px; } }
.top nav a { color: #a9b6cc; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; padding: 6px 10px; border-radius: var(--r-l); }
.top nav a:hover { color: #fff; }
.top nav a.cta { background: var(--ball); color: var(--navy); }
@media (max-width: 860px) { .top nav.sections a:not(.cta) { display: none; } }

/* ---------- boutons : marine à texte jaune le jour, jaune la nuit ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-m);
  font: 700 18px/1 var(--font); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--navy); color: var(--ball); box-shadow: 3px 3px 0 var(--ball); }
.night .btn.primary { background: var(--ball); color: var(--navy); box-shadow: none; }
.btn.ghost { border: 1.5px solid currentColor; color: inherit; background: transparent; }
.btn:active { transform: translate(1px, 1px); }

/* ---------- moments forts : nuit ---------- */
.night { background: radial-gradient(130% 60% at 50% 0%, #17315c 0%, var(--n-bg) 70%); color: var(--n-ink); color-scheme: dark; }
.night .eyebrow { color: var(--ball); }
.night .muted { color: var(--n-ink-2); }

/* ---------- héros ---------- */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
/* L'accroche tient toujours sur 3 lignes, une phrase par ligne, dans chaque langue :
   la taille suit la largeur de la colonne (cqi) et la phrase la plus longue de la langue (--fit, mesurée dans build.mjs). */
.hero-text { container-type: inline-size; }
.hero h1 { font-size: min(78px, calc(100cqi * var(--fit, .09))); margin: 14px 0 18px; }
.hero h1 > span, .hero h1 > em { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--ball); }
.hero .lead { font-size: clamp(19px, 2.3vw, 23px); color: var(--n-ink-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-logo { width: clamp(180px, 24vw, 290px); height: auto; margin: 0 0 18px -10px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
@media (max-width: 899px) { .hero-text { text-align: center; } .hero-logo { margin-inline: auto; } .hero .lead { margin-inline: auto; } .hero .actions { justify-content: center; } }
.hero .phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
@media (max-width: 620px) { .hero .phones .phone:last-child { display: none; } }

/* ---------- téléphone ---------- */
.phone { width: min(270px, 74vw); flex: none; border-radius: 30px; border: 8px solid #050c18; background: #050c18; overflow: hidden;
  box-shadow: 6px 6px 0 rgba(14, 33, 63, .28); }
.night .phone { box-shadow: 6px 6px 0 rgba(255, 215, 23, .9); }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 22px; }

/* ---------- sections du jour ---------- */
section { scroll-margin-top: 72px; }
.day { padding: 72px 0; }
.day + .day { padding-top: 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { margin: 10px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 20px; }
.night .section-head p { color: var(--n-ink-2); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 22px; }
.panel h3 { padding-left: 10px; border-left: 4px solid var(--ball); margin-bottom: 10px; }
.panel p { color: var(--ink-2); }

/* histoire : trois chapitres */
.story { display: grid; gap: 18px; counter-reset: ch; }
@media (min-width: 820px) { .story { grid-template-columns: repeat(3, 1fr); } }
.chapter { position: relative; }
.chapter .when { display: inline-block; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy);
  background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: var(--r-xs); padding: 2px 8px; margin-bottom: 12px; }
.quote { margin: 28px 0 0; padding: 22px 24px; background: var(--navy); color: #fff; border-radius: var(--r-l); box-shadow: 4px 4px 0 var(--ball); }
.quote blockquote { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.quote figcaption { margin-top: 10px; color: #a9b6cc; font-size: 16px; }
.note { margin-top: 10px; font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--line-strong); padding-left: 10px; }
.beta-lead { margin-top: 14px; font-size: 20px; max-width: 34em; }

/* le but */
.goals { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .goals { grid-template-columns: repeat(4, 1fr); } }
.goals li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 18px; }
.goals b { display: block; font-size: 34px; font-weight: 800; line-height: 1; color: var(--navy); }
.goals small { display: block; margin-top: 6px; font-size: 17px; color: var(--ink-2); }

/* fonctionnalités : texte + capture, en alternance */
.feature { display: grid; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr auto; gap: 56px; }
  .feature.flip { grid-template-columns: auto 1fr; }
  .feature.flip .phone { order: -1; }
}
.feature .phone { margin-inline: auto; }
.feature h3 { font-size: clamp(26px, 3.6vw, 34px); margin: 8px 0 12px; }
.feature p { color: var(--ink-2); font-size: 19px; max-width: 32em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.tags li { font-weight: 700; font-size: 15px; border: 1.5px solid var(--ink); background: var(--surface); border-radius: var(--r-xs);
  padding: 3px 9px; box-shadow: 1.5px 1.5px 0 rgba(20, 33, 58, .25); }

/* le match, de nuit */
.match { padding: 72px 0; }
.match .trio { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.match .trio figure { margin: 0; }
.match figcaption { margin-top: 14px; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.match figcaption small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--n-ink-2); font-size: 16px; }
@media (max-width: 760px) { .match .trio figure:not(:first-child) { display: none; } }

/* villes */
.cities { display: grid; gap: 14px; }
@media (min-width: 640px) { .cities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cities { grid-template-columns: repeat(3, 1fr); } }
.city h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.city .cur { font-size: 14px; font-weight: 700; color: var(--navy); background: var(--ball); border-radius: var(--r-xs); padding: 2px 7px; letter-spacing: .04em; }

/* bêta */
.beta { padding: 72px 0; }
.beta .box { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .beta .box { grid-template-columns: 1fr auto; } }
.steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 19px; }
.steps b { flex: none; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ball); color: var(--navy); font-weight: 800; }
.steps .later { color: var(--n-ink-2); }
.steps .later b { background: var(--n-surface-2); color: var(--n-ink-2); }

/* pied */
.foot { background: var(--navy); color: #a9b6cc; padding: 28px 0 36px; border-top: 3px solid var(--ball); font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot a { color: #fff; }
.foot .brand { color: #fff; display: inline; }
.foot .amp { color: var(--ball); }

/* inscription à la bêta */
.signup { background: var(--n-surface); border: 1px solid var(--n-line); border-radius: var(--r-l); padding: 24px; width: min(440px, 100%); display: grid; gap: 16px; }
.signup h3 { padding-left: 10px; border-left: 4px solid var(--ball); }
.signup .hint { color: var(--n-ink-2); margin-top: -8px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--n-ink-2); padding: 0; }
.field small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select { font: 400 18px var(--font); color: var(--n-ink); background: var(--n-surface-2); border: 1.5px solid var(--n-line);
  border-radius: var(--r-m); min-height: 46px; padding: 0 12px; width: 100%; }
.field input::placeholder { color: #6f84a6; }
.field input:focus, .field select:focus { border-color: var(--ball); outline: none; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--n-line); border-radius: var(--r-m);
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; background: var(--n-surface-2); }
.choices input:checked + span { background: var(--ball); color: var(--navy); border-color: var(--ball); }
.choices input:focus-visible + span { outline: 3px solid var(--court); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--n-ink-2); line-height: 1.4; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ball); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn { justify-self: start; }
.status { min-height: 1.4em; font-weight: 700; }
.status[data-kind=ok] { color: #8af0b6; }
.status[data-kind=err] { color: #ffab9b; }
.beta .box { position: relative; }

/* politique de confidentialité */
.legal { padding-top: 32px; }
.legal .back { font-weight: 700; text-decoration: none; color: var(--court); }
.legal-body { max-width: 820px; margin-top: 14px; padding: clamp(20px, 4vw, 40px); }
.legal-body h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal-body .updated { color: var(--ink-2); margin-bottom: 22px; }
.legal-body h2 { font-size: 22px; margin: 30px 0 10px; padding-left: 10px; border-left: 4px solid var(--ball); }
.legal-body p, .legal-body li { color: var(--ink); line-height: 1.55; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { padding-left: 22px; margin: 10px 0; }
.legal-body li + li { margin-top: 6px; }
.legal-body .summary { background: var(--ball-soft); border-left: 4px solid var(--ball); border-radius: var(--r-xs); padding: 14px 18px; margin: 18px 0 8px; }
.legal-body a { color: var(--court); }
.signup .consent a { color: var(--ball); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* bandeau de consentement (W4) */
.consent-bar { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; background: transparent; }
.consent-bar[hidden] { display: none; }
.consent-inner { max-width: 760px; width: 100%; background: var(--n-surface); color: var(--n-ink); border: 1px solid var(--n-line);
  border-top: 3px solid var(--ball); border-radius: var(--r-l); padding: 16px 18px; display: grid; gap: 14px;
  box-shadow: 0 10px 30px rgba(5, 12, 24, .45); }
.consent-inner p { font-size: 16px; line-height: 1.45; color: var(--n-ink-2); }
.consent-inner strong { color: var(--n-ink); text-transform: uppercase; letter-spacing: .03em; }
.consent-inner a { color: var(--ball); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { min-height: 44px; min-width: 130px; }
@media (min-width: 760px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; } }
