/*
 * SpotXI — site public. Fondations, shell et pages produit.
 *
 * Direction « Feuille de match » : papier, encre, filets fins, repères en
 * mono et orange rare. Les valeurs viennent de docs/design/tokens.json ; les
 * écarts propres au web sont nommés dans docs/design/06-site-public.md.
 * L'accueil charge home.css, les statistiques stats.css.
 */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
/* Repli métrique : le texte ne saute pas quand Inter Tight arrive (CLS). */
@font-face {
  font-family: 'Inter Tight Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 91%;
  ascent-override: 104%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --sans: 'Inter Tight', 'Inter Tight Fallback', 'Arial Narrow', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --arabic: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;

  --gut: 20px;
  --maxw: 1320px;
  --headerH: 64px;
  --secY: clamp(64px, 9vw, 136px);

  --fs-display: clamp(2.75rem, 1.2rem + 4.4vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  --fs-lede: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* Alias historiques : les pages juridiques et le formulaire de suppression
     les lisent encore en style en ligne. */
  --h1: var(--fs-h1);
  --h1lh: 1;
  --h2: var(--fs-h2);
  --h3: var(--fs-h3);
  --lede: var(--fs-lede);
  --body: var(--fs-body);
  /* Une colonne sur mobile ; `--two` et `--legal` passent en deux colonnes
     à partir de 900 px. */
  --two: minmax(0, 1fr);
  --twoEq: minmax(0, 1fr) minmax(0, 1fr);
  --three: repeat(3, minmax(0, 1fr));
  --footer: minmax(0, 1.3fr) minmax(0, 3fr);
  --legal: minmax(0, 1fr);

  /* Mouvement — reprise stricte de docs/design/tokens.json, pour que le site
     et l'application bougent pareil. La doc interdit les easings CSS
     génériques : aucune règle du site n'utilise « ease » ou « ease-in ». */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press-in: 100ms;
  --dur-press-out: 140ms;
  --dur-fast: 150ms;
  --dur-standard: 220ms;
  --dur-deliberate: 280ms;
  --dur-sheet: 340ms;
  --dur-reduced: 100ms;

  color-scheme: light dark;
}
@media (min-width: 431px) {
  :root {
    --gut: 24px;
  }
}
@media (min-width: 900px) {
  :root {
    --gut: 40px;
    --headerH: 68px;
    --two: minmax(0, 1.05fr) minmax(0, 0.95fr);
    --legal: 260px minmax(0, 1fr);
  }
}
@media (max-width: 899px) {
  /* Le sommaire juridique est collant en style en ligne : sur une colonne,
     il doit défiler avec la page au lieu de recouvrir le texte. */
  main aside {
    position: static !important;
  }
}
@media (min-width: 1280px) {
  :root {
    --gut: 64px;
  }
}

/* Thème clair : papier crème et encre. `--text2` est assombri pour le web
   (#66645C, 5,2:1 sur le canvas) : la valeur app #716F67 plafonne à 4,4:1,
   sous le seuil WCAG AA du texte courant. `--success` aussi (#217546) : le
   score d'une victoire s'écrit en vert sur `--successS`, où #237B4A ne fait
   que 4,4:1 (4,7:1 ici, 5:1 sur le canvas). */
body {
  --canvas: #f2f0e8;
  --surface: #e7e4da;
  --raised: #dad6ca;
  --inverse: #171714;
  --text: #171714;
  --text2: #66645c;
  --textDis: #8f8c82;
  --textInv: #f2f0e8;
  --action: #ff5b37;
  --actionPressed: #e34a2b;
  --actionText: #a8361a;
  --onAction: #0a0c09;
  --border: #1717141f;
  --borderStrong: #1717143d;
  --focus: #ff5b37;
  --success: #217546;
  --successS: #ddefe4;
  --warn: #a15a27;
  --warnS: #eee0cf;
  --danger: #a43a2e;
  --dangerS: #f3deda;
  --navBg: #f2f0e8e6;
  --scrim: #00000085;
  --shadow: 0 18px 48px #1717141a;
  --ink: var(--text);
  --muted: var(--text2);
  --line: var(--border);
  --orange: var(--action);
  --max: var(--maxw);
  --gutter: var(--gut);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  body:not([data-theme='light']) {
    --canvas: #0a0d0b;
    --surface: #111512;
    --raised: #181d19;
    --inverse: #f2f0e8;
    --text: #f4f7ef;
    --text2: #9aa299;
    --textDis: #687069;
    --textInv: #171714;
    --actionText: #ff7a5c;
    --border: #f4f7ef24;
    --borderStrong: #f4f7ef47;
    --focus: #ff7a5c;
    --success: #58c887;
    --successS: #123321;
    --warn: #f0a25d;
    --warnS: #352719;
    --danger: #ff7c6d;
    --dangerS: #391c18;
    --navBg: #0a0d0be6;
    --scrim: #000000a3;
    --shadow: 0 18px 48px #00000066;
    color-scheme: dark;
  }
}
body[data-theme='dark'] {
  --canvas: #0a0d0b;
  --surface: #111512;
  --raised: #181d19;
  --inverse: #f2f0e8;
  --text: #f4f7ef;
  --text2: #9aa299;
  --textDis: #687069;
  --textInv: #171714;
  --actionText: #ff7a5c;
  --border: #f4f7ef24;
  --borderStrong: #f4f7ef47;
  --focus: #ff7a5c;
  --success: #58c887;
  --successS: #123321;
  --warn: #f0a25d;
  --warnS: #352719;
  --danger: #ff7c6d;
  --dangerS: #391c18;
  --navBg: #0a0d0be6;
  --scrim: #000000a3;
  --shadow: 0 18px 48px #00000066;
  color-scheme: dark;
}

/* ─── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--headerH) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html[lang='ar'] {
  direction: rtl;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font: 500 var(--fs-body) / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 0;
}
html[lang='ar'] body {
  font-family: var(--arabic);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  /* Tracking 0 : un tracking négatif fusionne les mots français
     (docs/design/01-tokens.md §6). S'impose aussi aux styles en ligne hérités. */
  letter-spacing: 0 !important;
  text-wrap: balance;
  /* Un mot plus long que la ligne (allemand, néerlandais) se coupe au lieu d'élargir la page. */
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  h1,
  h2,
  h3,
  h4 {
    hyphens: auto;
  }
}
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] h4 {
  font-family: var(--arabic);
  font-weight: 400;
  line-height: 1.25 !important;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--action);
  color: var(--onAction);
}
table {
  border-collapse: collapse;
}
/* Une classe qui fixe `display` ne doit jamais réafficher un élément masqué. */
[hidden] {
  display: none !important;
}
.sr-only,
.st-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  z-index: 100;
  inset-inline-start: 12px;
  top: -80px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--inverse);
  color: var(--textInv);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}
.no-script-message {
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 0 var(--gut);
  color: var(--text2);
}

/* ─── Mise en page ─────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section {
  padding-block: var(--secY);
  border-top: 1px solid var(--border);
}
.section.is-flush {
  border-top: 0;
}
.section.is-tinted {
  background: var(--surface);
}
.section-head {
  display: grid;
  gap: 18px;
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
}
.section-head .sub {
  color: var(--text2);
  font-size: var(--fs-lede);
  line-height: 1.5;
}
.eyebrow,
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text2);
  font: 700 0.6875rem / 1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
html[lang='ar'] .eyebrow,
html[lang='ar'] .label {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}
.eyebrow .index,
.index {
  color: var(--actionText);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.lede {
  max-width: 60ch;
  color: var(--text2);
  font-size: var(--fs-lede);
  line-height: 1.55;
}
.lede a,
.prose a,
.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--borderStrong);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.lede a:hover,
.prose a:hover,
.inline-link:hover {
  text-decoration-color: var(--action);
}
.prose {
  max-width: 64ch;
  color: var(--text2);
  font-size: 1.125rem;
  line-height: 1.65;
}
.prose p + p {
  margin-top: 1em;
}
.prose p + .actions {
  margin-top: 24px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split.is-wide-left {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .split.is-center {
    align-items: center;
  }
}

/* ─── Actions ──────────────────────────────────────────────────────────── */

.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--borderStrong);
  border-radius: 15px;
  background: transparent;
  color: var(--text);
  font: 700 0.9375rem / 1 var(--sans);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-press-out) var(--ease-out),
    border-color var(--dur-press-out) var(--ease-out),
    color var(--dur-press-out) var(--ease-out),
    transform var(--dur-press-out) var(--ease-out);
}
html[lang='ar'] .cta,
html[lang='ar'] .button {
  letter-spacing: 0;
  font-family: var(--arabic);
}
/* Sur mobile, un libellé long revient à la ligne au lieu d'élargir sa colonne et la page. */
@media (max-width: 600px) {
  .cta,
  .button {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}
.cta:hover {
  border-color: var(--text);
}
.cta:active,
.button:active {
  transform: scale(0.98);
  transition-duration: var(--dur-press-in);
}
.cta.is-primary,
.cta.scp2,
.button {
  border-color: var(--action);
  background: var(--action);
  color: var(--onAction);
}
.cta.is-primary:hover,
.cta.scp2:hover,
.button:hover {
  border-color: var(--actionPressed);
  background: var(--actionPressed);
  color: var(--onAction);
}
.cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.cta.is-quiet {
  min-height: 44px;
  padding: 0 4px;
  border-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--borderStrong);
  text-underline-offset: 0.3em;
}
.cta.is-quiet:hover {
  text-decoration-color: var(--action);
}
.cta .arrow {
  transition: transform var(--dur-standard) var(--ease-out);
}
.cta:hover .arrow {
  transform: translateX(3px);
}
html[lang='ar'] .cta .arrow {
  transform: scaleX(-1);
}
html[lang='ar'] .cta:hover .arrow {
  transform: scaleX(-1) translateX(3px);
}
.actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
/* Survols historiques des pages juridiques et du formulaire de suppression. */
.scp0:hover {
  color: var(--actionText) !important;
}
.scp1:hover {
  border-color: var(--borderStrong) !important;
}
.scp2:hover {
  background: var(--actionPressed) !important;
}
.scp3:hover {
  border-color: var(--action) !important;
  color: var(--actionText) !important;
}
.scp4:hover {
  border-color: var(--action) !important;
}

/* ─── Petits composants ────────────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: 700 0.75rem / 1 var(--mono);
  letter-spacing: 0.04em;
}
html[lang='ar'] .chip {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}
.chip.is-on {
  border-color: var(--text);
  background: var(--text);
  color: var(--canvas);
}
.chip.is-hot {
  border-color: var(--action);
  color: var(--actionText);
}
.status-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
}
.app-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text2);
  font: 700 0.75rem / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[lang='ar'] .app-status {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.875rem;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text2);
  font: 700 0.6875rem / 1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}
html[lang='ar'] .trust {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--borderStrong);
  border-radius: 8px;
  font: 700 0.6875rem / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag.is-hot {
  border-color: var(--action);
  color: var(--actionText);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Liste à filets : la grammaire « feuille de match » du site. */
.rule-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.rule-list > li,
.rule-list > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.rule-list dt,
.rule-list .k {
  color: var(--text2);
  font: 700 0.6875rem / 1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rule-list dd,
.rule-list .v {
  margin: 0;
  font-weight: 600;
}
.rule-list strong,
.rule-list b {
  font-weight: 700;
}
@media (max-width: 559px) {
  .rule-list > li,
  .rule-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
html[lang='ar'] .rule-list dt,
html[lang='ar'] .rule-list .k {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}

/* Étapes numérotées. */
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps.is-row {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 40px);
  }
}
.steps > li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--borderStrong);
}
.steps .n {
  color: var(--actionText);
  font: 700 0.75rem / 1 var(--mono);
  letter-spacing: 0.1em;
}
.steps h3,
.steps .t {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.2;
}
.steps p,
.steps .d {
  color: var(--text2);
  line-height: 1.55;
}

/* Grille de cartes objet : seulement pour des éléments interactifs. */
.tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .tiles.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tiles.is-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.tile {
  position: relative;
  /* Colonne flex : `.more` descend en bas et les liens voisins s'alignent. */
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--canvas);
  transition:
    border-color var(--dur-standard) var(--ease-out),
    transform var(--dur-standard) var(--ease-out);
}
a.tile:hover {
  border-color: var(--text);
}
a.tile:active {
  transform: scale(0.99);
}
.tile .big {
  font: 700 clamp(2rem, 1.4rem + 2vw, 3rem) / 1 var(--mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tile h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.tile p {
  color: var(--text2);
}
.tile .more {
  margin-top: auto;
  font-weight: 700;
}
.tile .more::after {
  content: ' →';
}
html[lang='ar'] .tile .more::after {
  content: ' ←';
}

/* Carte « besoin » : l'objet central du produit. */
.need-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--action);
  border-radius: 18px;
  background: var(--canvas);
  box-shadow: var(--shadow);
}
.need-card .label {
  color: var(--actionText);
}
.need-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.need-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.need-card dt {
  color: var(--text2);
  font: 700 0.6875rem / 1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.need-card dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}
html[lang='ar'] .need-card dt {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}

/* Tableau comparatif (guide). */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.compare-wrap + .actions {
  margin-top: 24px;
}
.compare {
  width: 100%;
  min-width: 640px;
  font-size: 0.9375rem;
}
.compare th,
.compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}
.compare thead th {
  color: var(--text2);
  font: 700 0.6875rem / 1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface);
}
.compare tbody th {
  font-weight: 700;
  width: 18%;
}
.compare td {
  color: var(--text2);
}
.compare .is-spotxi {
  color: var(--text);
  font-weight: 600;
  background: color-mix(in srgb, var(--action) 7%, transparent);
}
.compare tr:last-child > * {
  border-bottom: 0;
}

/* Les libellés traduits du guide peuvent tenir sur deux lignes. */
.page-guide .cta {
  max-width: 100%;
  white-space: normal;
}

/* Les trois colonnes de l’article plateformes restent lisibles sur mobile. */
.compare.is-platforms {
  min-width: 0;
  table-layout: fixed;
}
.compare.is-platforms th,
.compare.is-platforms td {
  padding: 12px;
}
.compare.is-platforms th:first-child {
  width: 44%;
}
.compare.is-platforms th:nth-child(2) {
  width: 16%;
}
.compare.is-platforms caption {
  padding: 12px;
  text-align: start;
  font-size: 0.8125rem;
  color: var(--text2);
}

/* Questions fréquentes. */
.faq {
  display: grid;
  border-top: 1px solid var(--borderStrong);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  color: var(--actionText);
  font: 700 1.25rem / 1 var(--mono);
  transition: transform var(--dur-standard) var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 68ch;
  padding: 0 0 22px;
  color: var(--text2);
  line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--dur-deliberate) var(--ease-out),
      content-visibility var(--dur-deliberate) allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
  :root {
    interpolate-size: allow-keywords;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content {
    transition: none;
  }
  .faq summary::after {
    transition: none;
  }
}

/* Capture plein écran dans un iPhone : bord noir, îlot dynamique et boutons,
   identiques dans les deux thèmes comme un vrai appareil. Les proportions
   suivent l'iPhone 17 Pro (écran 402 × 874 pt, îlot 126 × 37 pt). */
.phone {
  --phone-w: 300px;
  --bezel: calc(var(--phone-w) * 0.035);
  --corner: calc(var(--phone-w) * 0.165);
  position: relative;
  width: min(100%, var(--phone-w));
  margin-inline: auto;
  padding: var(--bezel);
  border-radius: var(--corner);
  background: #0b0b0c;
  box-shadow:
    inset 0 0 0 1px #ffffff14,
    0 0 0 1.5px #3a3a3e,
    0 0 0 2.5px #151517,
    var(--shadow);
}
.phone::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: calc(var(--bezel) + var(--phone-w) * 0.026);
  left: 50%;
  width: calc(var(--phone-w) * 0.29);
  height: calc(var(--phone-w) * 0.085);
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}
/* Bouton Action puis volume, sur la tranche gauche. */
.phone::after {
  content: '';
  position: absolute;
  top: 17%;
  left: -4px;
  width: 3px;
  height: 5%;
  border-radius: 2px 0 0 2px;
  background: #2c2c30;
  box-shadow:
    0 calc(var(--phone-w) * 0.2) 0 0 #2c2c30,
    0 calc(var(--phone-w) * 0.34) 0 0 #2c2c30;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--corner) - var(--bezel));
  aspect-ratio: 572 / 1244;
  background: #000;
}
.phone .shot-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  body:not([data-theme='light']) .phone .shot-light {
    display: none;
  }
  body:not([data-theme='light']) .phone .shot-dark {
    display: block;
  }
}
body[data-theme='dark'] .phone .shot-light {
  display: none;
}
body[data-theme='dark'] .phone .shot-dark {
  display: block;
}
.caption {
  margin-top: 14px;
  color: var(--text2);
  font-size: var(--fs-small);
  text-align: center;
}

/* Badges stores : affichés seulement après la sortie (WEB_STORES_LIVE). */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.store-badges a {
  display: inline-flex;
  border-radius: 10px;
}
.app-store-badge,
.google-play-badge {
  height: 48px;
  width: auto;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--navBg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  height: var(--headerH);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.artifact-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 8px;
}
.brand-logo {
  width: auto;
  height: 34px;
}
.brand-logo-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  body:not([data-theme='light']) .brand-logo-light {
    display: none;
  }
  body:not([data-theme='light']) .brand-logo-dark {
    display: block;
  }
}
body[data-theme='dark'] .brand-logo-light {
  display: none;
}
body[data-theme='dark'] .brand-logo-dark {
  display: block;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font: 600 0.875rem / 1 var(--sans);
  letter-spacing: 0.01em;
  transition: background-color var(--dur-fast) var(--ease-out);
}
html[lang='ar'] .nav-link {
  font-family: var(--arabic);
  letter-spacing: 0;
}
.nav-link:hover {
  background: var(--surface);
}
.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--action);
}
.nav-link.is-stats {
  font-weight: 800;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
/* Vrai champ de recherche de joueur, même pastille que les autres outils ;
   le contour fonce au survol et à la saisie, comme le champ du hub stats. */
.header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--borderStrong);
  border-radius: 12px;
  font: 600 0.875rem / 1 var(--sans);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.header-search:hover,
.header-search:focus-within {
  border-color: var(--text);
}
.header-search .icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.header-search input {
  width: 168px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}
.header-search input::placeholder {
  color: var(--text2);
}
.header-search input::-webkit-search-cancel-button {
  display: none;
}
/* Les suggestions débordent la pastille, alignées sur son bord de fin. */
.header-search .st-suggest {
  inset-inline: auto 0;
  width: min(380px, calc(100vw - 32px));
}
.header-stats {
  display: none;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--canvas);
  font: 800 0.875rem / 1 var(--sans);
}
.header-stats[aria-current='page'] {
  background: var(--action);
  color: var(--onAction);
}
.theme,
.menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.theme:hover,
.menu:hover {
  border-color: var(--borderStrong);
}
.theme-icon {
  width: 18px;
  height: 18px;
}
.menu {
  display: none;
}
.menu span,
.menu span::before,
.menu span::after {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-standard) var(--ease-out);
}
.menu span {
  position: relative;
}
.menu span::before,
.menu span::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
}
.menu span::before {
  top: -5px;
}
.menu span::after {
  top: 5px;
}
.menu[aria-expanded='true'] span {
  background: transparent;
}
.menu[aria-expanded='true'] span::before {
  transform: translateY(5px) rotate(45deg);
}
.menu[aria-expanded='true'] span::after {
  transform: translateY(-5px) rotate(-45deg);
}
.mobile-nav {
  display: none;
}
@media (max-width: 1100px) {
  .desktop-nav,
  .header-search,
  .header-tools > .language {
    display: none;
  }
  .header-stats {
    display: inline-flex;
  }
  .menu {
    display: grid;
  }
  .mobile-nav.open {
    display: grid;
    gap: 20px;
    max-height: calc(100vh - var(--headerH));
    overflow-y: auto;
    padding: 12px var(--gut) 28px;
    border-top: 1px solid var(--border);
  }
  .mobile-nav nav {
    display: grid;
  }
  .mobile-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
  }
  .mobile-link[aria-current='page'] {
    color: var(--actionText);
  }
  .mobile-link.is-stats {
    font-weight: 800;
  }
}
@media (max-width: 380px) {
  .brand-logo {
    height: 28px;
  }
  .header-inner {
    gap: 10px;
  }
  /* « Estadísticas », « İstatistikler » : la pastille se resserre pour tenir à 320 px. */
  .header-tools {
    gap: 6px;
  }
  .header-stats {
    padding: 0 10px;
    font-size: 0.8125rem;
  }
}

/* Sélecteur de langue : bouton + liste, noms natifs. */
.lang-switcher {
  position: relative;
}
.lang-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  font: 600 0.875rem / 1 var(--sans);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.lang-switcher-trigger:hover,
.lang-switcher-trigger[aria-expanded='true'] {
  border-color: var(--borderStrong);
}
html[lang='ar'] .lang-switcher-trigger,
html[lang='ar'] .lang-option {
  font-family: var(--arabic), var(--sans);
}
.lang-switcher-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-standard) var(--ease-out);
}
.lang-switcher-trigger[aria-expanded='true'] .lang-switcher-chevron {
  transform: rotate(180deg);
}
.lang-switcher-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--borderStrong);
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: var(--shadow);
  list-style: none;
}
.lang-option {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font: 600 0.875rem / 1 var(--sans);
}
.lang-option.is-current {
  color: var(--actionText);
}
[aria-selected='true'] > a.lang-option,
a.lang-option:hover {
  background: var(--surface);
}
.mobile-nav .lang-switcher-menu {
  top: auto;
  bottom: calc(100% + 8px);
  inset-inline-start: 0;
  inset-inline-end: auto;
}
.lang-inline ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-inline-option {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text2);
  font: 600 0.8125rem / 1.2 var(--sans);
}
html[lang='ar'] .lang-inline-option {
  font-family: var(--arabic), var(--sans);
}
.lang-inline-option.is-current {
  color: var(--actionText);
  background: var(--surface);
}
a.lang-inline-option:hover {
  background: var(--surface);
  color: var(--text);
}

/* ─── Shell : pied ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--canvas);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gut) 40px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: var(--footer);
  }
}
.footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}
.footer-brand p {
  max-width: 34ch;
  color: var(--text2);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.footer-app a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.footer-app a:hover {
  color: var(--actionText);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
@media (min-width: 700px) {
  .footer-cols {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
.footer-title {
  margin-bottom: 14px;
  color: var(--text2);
  font: 700 0.6875rem / 1.4 var(--mono);
  letter-spacing: 0.12em;
}
html[lang='ar'] .footer-title {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}
.footer-links {
  display: grid;
  gap: 2px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--actionText);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gut) 36px;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font: 600 0.6875rem / 1.4 var(--mono);
  letter-spacing: 0.06em;
}
html[lang='ar'] .footer-bottom {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}

/* ─── Pages produit ────────────────────────────────────────────────────── */

.page-hero {
  padding-block: clamp(48px, 7vw, 112px) clamp(56px, 7vw, 104px);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 1040px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.page-hero-copy {
  display: grid;
  gap: 24px;
  align-content: start;
}
.page-hero h1 {
  max-width: 16ch;
  font-size: var(--fs-h1);
  line-height: 1;
}
.page-hero .lede {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 62ch;
}
.page-figure {
  display: grid;
  place-items: center;
}
.feature {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .feature.is-reverse > :first-child {
    order: 2;
  }
}
.feature-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.feature-copy h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
}
.feature-copy > p:not(.eyebrow) {
  max-width: 54ch;
  color: var(--text2);
  font-size: 1.125rem;
  line-height: 1.6;
}
.panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.panel .label {
  margin-bottom: 4px;
}
.panel-note {
  color: var(--text2);
  font-size: var(--fs-small);
}
.mini-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.mini-row .n {
  color: var(--text2);
  font: 700 0.75rem / 1 var(--mono);
}
.mini-row .who {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.mini-row .who b {
  font-weight: 700;
}
.mini-row .who span {
  color: var(--text2);
  font: 600 0.6875rem / 1.3 var(--mono);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.reasons {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reasons li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.reasons li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid var(--success);
  background: var(--canvas);
}
.limits {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.limits li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.limits b {
  font-weight: 700;
}
.limits span {
  color: var(--text2);
}
.states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.states li {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--canvas);
}
.states li:first-child {
  border-color: var(--success);
}
.states b {
  font: 700 0.75rem / 1 var(--mono);
  letter-spacing: 0.1em;
}
.states span {
  color: var(--text2);
  font-size: var(--fs-small);
}
.resources {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .resources {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.resources li {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.resources .num {
  font: 700 2.5rem / 1 var(--mono);
  letter-spacing: -0.02em;
}
.resources span {
  color: var(--text2);
}
.band-cta {
  padding-block: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--border);
}
.band-cta .wrap {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.band-cta h2 {
  max-width: 20ch;
  font-size: var(--fs-h2);
  line-height: 1.05;
}
.next-links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--borderStrong);
}
@media (min-width: 760px) {
  .next-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
  }
}
.next-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.next-links a::after {
  content: '→';
  color: var(--actionText);
  transition: transform var(--dur-standard) var(--ease-out);
}
html[lang='ar'] .next-links a::after {
  content: '←';
}
.next-links a:hover::after {
  transform: translateX(4px);
}
html[lang='ar'] .next-links a:hover::after {
  transform: translateX(-4px);
}

.page-hero-copy.is-text {
  max-width: 900px;
}
.page-hero-copy.is-text h1 {
  max-width: 22ch;
}
.feature.is-center {
  align-items: center;
}
.panel-title {
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.mini-row.is-two {
  grid-template-columns: minmax(0, 1fr) auto;
}
.mini-row.is-spotlight {
  border-top-color: var(--action);
}
.limits-grid {
  margin-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .limits-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
  }
}
.safety-grid {
  display: grid;
  gap: 0 clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .safety-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.safety-grid li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--borderStrong);
}
.safety-grid h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.safety-grid p {
  color: var(--text2);
}
.contact-panel {
  align-self: start;
}
.contact-mail {
  font: 700 clamp(1.125rem, 1rem + 0.8vw, 1.5rem) / 1.2 var(--mono);
  overflow-wrap: anywhere;
}
.contact-mail a {
  text-decoration: underline;
  text-decoration-color: var(--borderStrong);
  text-underline-offset: 0.2em;
}
.warning {
  padding: 16px 18px;
  border: 1px solid var(--warn);
  border-radius: 14px;
  background: var(--warnS);
  color: var(--text);
  font-weight: 600;
}
.resources-note {
  margin-top: 18px;
}
.section.next {
  padding-block: clamp(40px, 5vw, 72px);
}
.section.next .eyebrow {
  margin-bottom: 18px;
}
.error-links {
  width: 100%;
  margin-top: 12px;
}

/* Emplacement d'illustration : composition géométrique propre tant que
   l'illustration générée n'est pas livrée (docs/design/06-site-public.md §8). */
.illus {
  width: min(100%, 520px);
  margin: 0 auto;
}
.illus-art {
  width: 100%;
  height: auto;
}
.illus-ground {
  fill: var(--surface);
}
.illus-line {
  fill: none;
  stroke: var(--borderStrong);
  stroke-width: 1.4;
}
.illus-dot {
  fill: var(--text);
}
.illus-hot {
  fill: var(--action);
}
.illus-ring {
  fill: none;
  stroke: var(--action);
  stroke-width: 1.6;
  stroke-dasharray: 3 5;
}

/* Aperçus de classement : accueil du site et accueil des stats partagent le
   même fragment rendu par web-api. */
.boards,
.st-previews {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .boards,
  .st-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .boards,
  .st-previews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.board {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 14px;
  min-height: 330px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--canvas);
  transition: border-color var(--dur-standard) var(--ease-out);
}
a.board:hover {
  border-color: var(--text);
}
.board-head {
  display: grid;
  gap: 6px;
}
.board-k {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}
.board-t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font: 700 0.6875rem / 1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html[lang='ar'] .board-t {
  font-family: var(--arabic);
  letter-spacing: 0;
  font-size: 0.8125rem;
}
.board-t .st-ico {
  width: 14px;
  height: 14px;
}
.board-rows {
  display: grid;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.board-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--border);
}
.board-row:hover .board-name {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.board-rank {
  color: var(--text2);
  font: 700 0.8125rem / 1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.board-rows li:first-child .board-rank {
  color: var(--actionText);
}
.board-name {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  font-weight: 700;
}
/* Le pseudo se tronque, le drapeau de sa nation reste visible (comme les classements). */
.board-name bdi {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-name .st-flag {
  display: inline-flex;
  flex: none;
}
.board-name .st-flag img {
  border-radius: 2px;
  outline: 1px solid var(--border);
  outline-offset: -1px;
}
.board-value {
  font: 700 0.9375rem / 1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.board-more {
  align-self: end;
  font-weight: 700;
}
.board-more::after {
  content: ' →';
  color: var(--actionText);
}
html[lang='ar'] .board-more::after {
  content: ' ←';
}
.board-empty {
  color: var(--text2);
  font-size: var(--fs-small);
}
.board.is-shell::after {
  content: '';
  align-self: end;
  height: 150px;
  border-radius: 12px;
  background: repeating-linear-gradient(to bottom, transparent 0 29px, var(--border) 29px 30px);
}

/* ─── Pages d'erreur et de maintenance ─────────────────────────────────── */

.error-page {
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 12vw, 160px) var(--gut);
}
.error-page .code {
  color: var(--actionText);
  font: 700 clamp(4rem, 2rem + 8vw, 9rem) / 0.9 var(--mono);
  letter-spacing: -0.04em;
}
.error-page h1 {
  max-width: 18ch;
  font-size: var(--fs-h1);
  line-height: 1.02;
}
/* Exception visuelle invitation (pas une frame V2) : le titre n'est pas un code 404. */
.error-page.join-invite h1 {
  max-width: min(36ch, 100%);
  font-size: clamp(1.875rem, 1rem + 3.7vw, 4.5rem);
}
/* `justify-items: start` réduirait les étapes à leur contenu (~95 px par colonne). */
.error-page.join-invite .steps {
  justify-self: stretch;
}

/* ─── Mouvement ────────────────────────────────────────────────────────── */

/* Aucun contenu n'est masqué en attendant le défilement : `data-rv` des pages
   héritées n'est qu'un repère, jamais une opacité nulle. Le seul moment animé
   de l'accueil vit dans home.css. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: var(--dur-reduced) !important;
    animation-iteration-count: 1 !important;
    transition-duration: var(--dur-reduced) !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .hero-actions,
  .actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ─── Mouvement d'interface ─────────────────────────────────────────────
   Ease-out marqué, moins de 300 ms, transform et opacité. Détails des pages
   stats dans stats.css ; conception dans docs/design/06-site-public.md. */

/* Segment Joueurs / Clubs : un seul fond, déplacé vers l'option cochée
   (site.js pose `.has-pill` et sa position). Sans JavaScript, l'option
   cochée garde son propre fond. */
.st-search-kind.has-pill,
.hero-search-kind.has-pill {
  position: relative;
  isolation: isolate;
}
.st-search-kind.has-pill::before,
.hero-search-kind.has-pill::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--pill-w, 0);
  border-radius: 11px;
  background: var(--canvas);
  box-shadow: 0 1px 0 var(--border);
  transform: translateX(var(--pill-x, 0));
}
.st-search-kind.has-pill input:checked + span,
.hero-search-kind.has-pill input:checked + span {
  background: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Navigation entre onglets-liens des stats : seuls les éléments nommés
     bougent (stats.css) ; la page elle-même change sans fondu. */
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .st-search-kind.has-pill.is-ready::before,
  .hero-search-kind.has-pill.is-ready::before {
    transition:
      transform 240ms var(--ease-out),
      width 240ms var(--ease-out);
  }

  .cta:active,
  .button:active {
    transform: scale(0.97);
  }
  .header-search,
  .header-stats,
  .theme,
  .menu,
  a.board {
    transition:
      color var(--dur-fast) var(--ease-out),
      background-color var(--dur-fast) var(--ease-out),
      border-color var(--dur-fast) var(--ease-out),
      scale var(--dur-press-out) var(--ease-out);
  }
  .header-search:active,
  .header-stats:active,
  .theme:active,
  .menu:active {
    scale: 0.97;
    transition-duration: var(--dur-press-in);
  }
  a.board:active {
    scale: 0.99;
    transition-duration: var(--dur-press-in);
  }

  /* Aperçus de l'accueil : les vraies lignes remplacent les cadres en
     cascade, au moment où la section devient visible (home.js). */
  .boards .board-row {
    transition:
      opacity 260ms var(--ease-out) calc(var(--i, 0) * 40ms),
      translate 260ms var(--ease-out) calc(var(--i, 0) * 40ms);
  }
  .boards.is-arriving .board-row {
    opacity: 0;
    translate: 0 6px;
    transition: none;
  }
}
