/* Le site de Spootly. Partagé par les trois langues : une retouche ici
   vaut pour /, /en/ et /de/ — trois copies auraient divergé. */
  :root {
    --ground:   #fbfcf7;
    --surface:  #eff3e4;
    --deep:     #16200d;
    --deep-2:   #1f2b14;
    --hairline: #dde3cd;
    --ink:      #11140c;
    --ink-2:    #4a4f40;
    --ink-3:    #7a806d;
    --lime:     #c4f82a;
    --lime-ink: #4f7300;
    --on-lime:  #14180c;

    --display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display",
               "Nunito", system-ui, -apple-system, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
            system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

    --page: 1120px;
  }

  /*
    Le site assume la lumière du jour : on joue dehors, et l'app elle-même est
    claire. Pas de thème sombre — c'est un parti pris, pas un oubli.
  */

  * { box-sizing: border-box; }

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

  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  img { max-width: 100%; height: auto; display: block; }

  a { color: var(--lime-ink); }
  :focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 3px; border-radius: 4px; }

  .page { max-width: var(--page); margin: 0 auto; padding: 0 24px; }

  /* ─────────────────────────── en-tête ─────────────────────────── */

  header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid var(--hairline);
  }

  .bar {
    max-width: var(--page);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
  .mark svg { flex: none; }
  .mark svg circle { fill: none; stroke: var(--lime); stroke-width: 8; }
  .mark .word {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
  }

  .bar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
  .bar nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
  }
  .bar nav a:hover { color: var(--lime-ink); }
  @media (max-width: 620px) { .bar nav .hide-s { display: none; } }

  /* ─────────────────────────── héros ─────────────────────────── */

  .hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
  }

  /*
    Les lignes de court. C'est le motif structurant du site : les tracés au sol
    d'un terrain, repris en filets. Ils reviennent en séparateurs de section.
  */
  .court {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
  }
  .court span {
    position: absolute;
    background: var(--hairline);
  }
  .court .v { top: 0; bottom: 0; width: 1px; }
  .court .h { left: 0; right: 0; height: 1px; }

  .hero-grid {
    max-width: var(--page);
    margin: 0 auto;
    padding: 72px 24px 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    position: relative;
  }

  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lime-ink);
    margin: 0 0 18px;
  }

  h1 {
    font-family: var(--display);
    font-size: clamp(42px, 6.2vw, 72px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin: 0 0 22px;
    text-wrap: balance;
  }

  h1 .stroke {
    /* Le mot qui porte la promesse, souligné d'un trait de court. */
    position: relative;
    white-space: nowrap;
  }
  h1 .stroke::after {
    content: "";
    position: absolute;
    left: -2px; right: -2px; bottom: 0.06em;
    height: 0.30em;
    background: var(--lime);
    z-index: -1;
    border-radius: 2px;
  }

  .lede {
    font-size: 19px;
    color: var(--ink-2);
    max-width: 30rem;
    margin: 0 0 30px;
    text-wrap: pretty;
  }

  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--lime);
    color: var(--on-lime);
    font-weight: 700;
    font-size: 15.5px;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 22px color-mix(in srgb, var(--lime) 42%, transparent);
  }
  .badge svg { flex: none; }

  /* La seconde plateforme, en contour : deux aplats lime côte à côte se
     disputeraient l'attention, et aucune des deux n'est encore publiée. */
  .badge.creux {
    /* Les variables du site sont `--ink` et `--hairline` — pas `--ink-1`, qui
       n'existe pas. Une variable inconnue rend le `color-mix` invalide, et le
       navigateur jette alors la déclaration entière : le badge se retrouvait
       sans bordure du tout, lu comme du texte posé à côté du premier bouton. */
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--hairline);
    box-shadow: none;
  }

  .actions .note { font-size: 14px; color: var(--ink-3); }

  .hero-shot { position: relative; justify-self: center; padding: 40px 0 0; }
  .hero-shot img {
    width: min(330px, 78vw);
    border-radius: 34px;
    box-shadow:
      0 2px 0 1px var(--hairline),
      0 40px 80px -28px rgba(17, 20, 12, 0.42);
  }
  /* Halo lime derrière l'écran : la seule flourish de la page. */
  .hero-shot::before {
    content: "";
    position: absolute;
    inset: 12% -12% 22% -12%;
    background: radial-gradient(ellipse at center,
      color-mix(in srgb, var(--lime) 46%, transparent), transparent 68%);
    filter: blur(46px);
    z-index: -1;
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; padding-top: 52px; gap: 8px; }
    .hero-shot { padding-top: 22px; }
  }

  /* ─────────────────────────── sports ─────────────────────────── */

  .sports {
    border-bottom: 1px solid var(--hairline);
    background: var(--surface);
  }
  .sports .page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .sport {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--ink-2);
    background: var(--ground);
    border: 1px solid var(--hairline);
    padding: 9px 17px;
    border-radius: 999px;
  }

  /* ─────────────────────────── sections ─────────────────────────── */

  section.band { padding: 84px 0; border-bottom: 1px solid var(--hairline); }

  .head { max-width: 34rem; margin-bottom: 46px; }
  .head h2 {
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin: 0 0 14px;
    text-wrap: balance;
  }
  .head p { color: var(--ink-2); margin: 0; font-size: 17.5px; }

  /* ─────────────────────────── étapes ─────────────────────────── */

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 34px;
  }

  .step { display: flex; flex-direction: column; gap: 16px; }

  .step figure {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 26px;
    padding: 22px 22px 0;
    overflow: hidden;
  }
  .step figure img {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -1px 0 1px var(--hairline);
  }

  .step .no {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--lime-ink);
  }
  .step h3 {
    font-family: var(--display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
  }
  .step p { margin: 0; color: var(--ink-2); font-size: 16px; }

  /* ─────────────────────────── bande sombre ─────────────────────────── */

  .promise {
    background: var(--deep);
    color: #eef2e4;
    padding: 84px 0;
    position: relative;
    overflow: hidden;
  }
  .promise .court span { background: rgba(238, 242, 228, 0.10); }

  .promise h2 {
    font-family: var(--display);
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 22ch;
    text-wrap: balance;
  }
  .promise h2 em { font-style: normal; color: var(--lime); }
  .promise .lede { color: #b9c2ab; max-width: 34rem; }

  .facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: rgba(238, 242, 228, 0.14);
    border: 1px solid rgba(238, 242, 228, 0.14);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 46px;
    position: relative;
  }
  .fact { background: var(--deep); padding: 22px 24px; }
  .fact dt {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 8px;
  }
  .fact dd { margin: 0; font-size: 15.5px; color: #c8d0bb; }

  /* ─────────────────────────── pied ─────────────────────────── */

  footer { padding: 54px 0 66px; }
  .foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
  }
  .foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
  .foot a { font-size: 14.5px; font-weight: 600; text-decoration: none; }
  .foot a:hover { text-decoration: underline; }
  .foot .fine {
    width: 100%;
    font-size: 13.5px;
    color: var(--ink-3);
    border-top: 1px solid var(--hairline);
    padding-top: 20px;
    margin-top: 8px;
  }

/* ── le choix de langue ─────────────────────────────────────────────────────
   Un `<details>` plutôt qu'un `<select>` : le second exigerait du JavaScript
   pour naviguer, et la politique de sécurité interdit le script en ligne.
   Surtout, celui-ci contient de vrais liens — Google les suit. */
.langues { position: relative; }
.langues > summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.langues > summary::-webkit-details-marker { display: none; }
.langues > summary::after { content: " \25BE"; opacity: .55; }
.langues > div {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  display: flex; flex-direction: column; min-width: 148px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}
.langues > div a { padding: 10px 14px; }
.langues > div a:hover { background: var(--ground); }
