﻿/* PPM · prototype
   Règles : voir README.md. Une couleur d'accent, une action principale par écran,
   chiffres en tabulaire, pas de jargon. Toutes les couleurs passent par les tokens. */

:root {
  /* Couleurs : nuit de match, neutres teintés vert pelouse, un rouge vestiaire */
  /* Valeurs par défaut (palette « Terre battue »). La palette choisie dans
     l'admin les remplace via un <style> injecté dans la page. */
  --bg: #0f1211; --bg-2: #161a19; --bg-3: #1f2422; --line: #2d3432;
  --ink: #f1f3f2; --ink-2: #c6ccc9; --ink-3: #97a19d;
  --accent: #b4531f; --accent-hi: #e8814a; --on-accent: #ffffff;
  --ok: #4fbf87;
  /* Zones photo (hero, cartes) : toujours sombres, quelle que soit la palette */
  --h-bg: #0f1211; --h-bg2: #161a19; --h-bg3: #1f2422; --h-line: #3a423f;
  --h-ink: #f4f6f5; --h-ink2: #c9cfcc; --h-ink3: #9aa49f; --h-accent: #e8814a;

  /* Typo */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;

  /* Espace & forme */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r-sm: 8px;
  --r-md: 14px;

  /* Mouvement */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);      /* ease-out-expo */
  --ease-q: cubic-bezier(0.25, 1, 0.5, 1);    /* ease-out-quart */

  /* Profondeur */
  --z-sticky: 10;
  --z-header: 20;
  --z-modal: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip, .hp { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: var(--z-modal); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); }

.h2 {
  font: 800 clamp(2.4rem, 5.4vw, 4.25rem)/0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.h2--xl { font-size: clamp(3rem, 7vw, 5.75rem); }
.h3 { font: 800 clamp(1.8rem, 3.2vw, 2.4rem)/1 var(--display); text-transform: uppercase; }

/* ---------- Header ---------- */
.top {
  position: fixed; z-index: var(--z-header);
  top: 12px; left: 50%; translate: -50% 0;
  width: min(100% - 24px, var(--max) + 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.top.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  font: 900 1.35rem/1 var(--display); letter-spacing: 0.02em;
  background: var(--accent); color: var(--on-accent);
  padding: 6px 8px 5px; border-radius: 6px;
}
.brand__name { font-weight: 600; font-size: .95rem; color: var(--ink-2); }

.switch {
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-3) 70%, transparent);
  border: 1px solid var(--line);
}
.switch__label { font-size: .85rem; color: var(--ink-3); padding: 0 8px 0 10px; }
.switch__opt {
  text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 7px 14px; border-radius: 999px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.switch__opt:hover { background: var(--bg-3); }
.switch__opt[aria-current="page"] { background: var(--ink); color: var(--bg); }

@media (max-width: 640px) {
  .brand__name, .switch__label { display: none; }
  .switch__opt { padding: 7px 12px; }
}

/* ---------- Zones photo : toujours sombres ---------- */
.hero, .card, .dossier__photo, .top:not(.is-scrolled) {
  --bg: var(--h-bg); --bg-2: var(--h-bg2); --bg-3: var(--h-bg3); --line: var(--h-line);
  --ink: var(--h-ink); --ink-2: var(--h-ink2); --ink-3: var(--h-ink3);
  --accent-hi: var(--h-accent);
  color: var(--ink);
}
.dossier__photo::after { background: linear-gradient(to top, var(--h-bg) 2%, transparent 55%) !important; }
.mercato { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.mercato i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.mercato.is-open i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.card__tag { position: absolute; z-index: 1; top: 14px; left: 14px; font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(40px, 8vh, 88px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  opacity: .62;
  animation: settle 2.4s var(--ease) both;
}
.hero::before { /* fondu vers le fond + lumière de projecteur */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 70% 10%, rgb(255 255 255 / 0.08), transparent 70%),
    linear-gradient(to top, var(--h-bg) 8%, color-mix(in srgb, var(--h-bg) 55%, transparent) 55%, color-mix(in srgb, var(--h-bg) 20%, transparent)),
    linear-gradient(to right, color-mix(in srgb, var(--h-bg) 85%, transparent), transparent 65%);
}
.hero__title {
  font: 900 clamp(3.6rem, 11vw, 6rem)/0.86 var(--display);
  text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero__title .line { display: block; overflow: hidden; padding: .14em 0 .04em; margin-top: -.14em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title em { font-style: normal; color: var(--accent-hi); }
.hero__lead { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); animation: fade 1s .35s var(--ease) both; }
.hero__ask { margin: clamp(32px, 6vh, 56px) 0 14px; font-weight: 600; color: var(--ink-2); animation: fade 1s .5s var(--ease) both; }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 880px; }
.door {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 6px; align-content: end;
  min-height: 150px; padding: 22px 76px 22px 24px;
  text-decoration: none;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
  animation: rise-sm .9s var(--ease) both;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.door:nth-child(1) { animation-delay: .6s; }
.door:nth-child(2) { animation-delay: .7s; }
.door::before { /* remplissage accent au survol, depuis le bas */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.door:hover, .door:focus-visible { border-color: var(--accent); color: var(--on-accent); }
.door:hover::before, .door:focus-visible::before { transform: none; }
.door__who { font-size: .95rem; font-weight: 600; opacity: .8; }
.door__what { font: 800 clamp(1.7rem, 3vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
.door__arrow {
  position: absolute; right: 20px; bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  transition: transform .5s var(--ease);
}
.door__arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.door:hover .door__arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 112px; }
}

/* ---------- Sections parcours ---------- */
.path { padding: clamp(64px, 11vh, 128px) 0; scroll-margin-top: 72px; }
.path[hidden] { display: none; }

/* Aperçu */
.teaser__title { font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
.teaser__strip {
  list-style: none; margin: 0; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.teaser__strip li { scroll-snap-align: start; }
.mini {
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  display: grid; gap: 10px;
}
.mini .mono-portrait { aspect-ratio: 4/5; border-radius: var(--r-sm); font-size: 3rem; }
.mini img { aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: var(--r-sm); filter: brightness(.85); transition: filter .5s var(--ease); }
.mini:hover img, .mini:focus-visible img { filter: brightness(1.05); }
.mini span { font-weight: 600; font-size: .95rem; }
.mini small { display: block; color: var(--ink-3); font-size: .85rem; font-weight: 400; }

/* Club */
.club__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.club__hint { color: var(--ink-2); max-width: 36ch; }
.club__hint a { color: var(--accent-hi); font-weight: 600; white-space: nowrap; }
.agency-line { margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  cursor: pointer; padding: 10px 18px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.roster {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.roster.is-featured > li:first-child { grid-column: span 2; grid-row: span 2; }
.roster > li { animation: rise-sm .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.roster.is-featured > li.ask-tile { grid-column: span 3; }
.roster:not(.is-featured) > li.ask-tile { grid-column: span 2; }

.card {
  position: relative; display: block; width: 100%; height: 100%;
  min-height: 100%; padding: 0; border: 0; cursor: pointer; text-align: left;
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-2);
  isolation: isolate;
}
.card img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--h-bg) 95%, transparent) 0%, color-mix(in srgb, var(--h-bg) 35%, transparent) 38%, transparent 60%);
  transition: opacity .5s var(--ease);
}
.card__text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.card__name { display: block; font: 800 clamp(1.5rem, 2.2vw, 1.9rem)/0.95 var(--display); text-transform: uppercase; }
.card__meta { display: block; margin-top: 6px; color: var(--ink-2); font-size: .9rem; }
.card__value {
  position: absolute; z-index: 1; top: 14px; right: 14px;
  font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums;
  padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--h-bg) 70%, transparent); backdrop-filter: blur(6px);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.card__go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-weight: 700; font-size: .9rem; color: var(--accent-hi);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card__value, .card:focus-visible .card__value { background: var(--accent); color: var(--on-accent); }
.card:hover .card__go, .card:focus-visible .card__go { opacity: 1; transform: none; }
.roster.is-featured > li:first-child .card__name { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.roster.is-featured > li:first-child .card__text { left: 26px; bottom: 24px; }
.roster.is-featured > li:first-child .card__meta { font-size: 1rem; }
.roster.is-featured > li:first-child .card__go { opacity: 1; transform: none; }

.ask {
  width: 100%; height: 100%; min-height: 180px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 24px; border: 0; border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent);
  transition: background-color .4s var(--ease);
}
.ask:hover { background: var(--accent-hi); }
.ask strong { font: 800 clamp(1.8rem, 3vw, 2.6rem)/0.95 var(--display); text-transform: uppercase; max-width: 16ch; }
.ask span { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 900px) {
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster.is-featured > li:first-child { grid-row: auto; }
  .roster.is-featured > li.ask-tile { grid-column: auto; }
  .roster:not(.is-featured) > li.ask-tile { grid-column: 1 / -1; }
  .ask { padding: 18px; }
  .ask strong { font-size: clamp(1.4rem, 5vw, 2.2rem); }
}
@media (max-width: 520px) {
  .chips { gap: 6px; flex-wrap: nowrap; }
  .chip { padding: 9px 13px; font-size: .9rem; }
  .card__text { left: 12px; right: 12px; bottom: 12px; }
  .card__name { font-size: 1.3rem; }
  .card__meta { font-size: .78rem; line-height: 1.35; }
  .card__meta .lg { display: none; }
  .card__value { top: 10px; right: 10px; font-size: .8rem; }
}

/* Joueur */
.player__intro { display: grid; grid-template-columns: 1.3fr minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.player__lead { margin-top: 24px; max-width: 48ch; font-size: 1.15rem; color: var(--ink-2); }

@media (max-width: 820px) {
  .player__intro { grid-template-columns: 1fr; }
  .agent { max-width: 420px; }
}

.steps {
  list-style: none; margin: clamp(64px, 10vh, 112px) 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
}
.step { padding: 28px 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n {
  display: block; font: 900 clamp(4.5rem, 9vw, 6rem)/0.8 var(--display);
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 18px;
}
.step h3 { font: 800 1.6rem/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 32ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
  .step__n { grid-row: span 2; font-size: 4rem; margin: 0; }
}

/* Formulaires */
.talk {
  display: grid; gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--bg-2); border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.talk__head p { color: var(--ink-2); margin-top: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--accent-hi); }
.form-error { color: var(--accent-hi); font-weight: 600; }
.done { display: grid; gap: 6px; }
.done__title { font: 800 2rem/1 var(--display); text-transform: uppercase; color: var(--ok); }
form.is-done .fields, form.is-done .btn, form.is-done .form-error { display: none; }

.btn {
  cursor: pointer; border: 0; border-radius: 999px;
  padding: 16px 28px; font-weight: 700; font-size: 1rem;
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); justify-self: start; }
.btn--primary:hover { background: var(--accent-hi); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.sticky-cta {
  display: none;
  position: fixed; z-index: var(--z-sticky); left: 16px; right: 16px; bottom: 16px;
  text-align: center; text-decoration: none; font-weight: 700;
  padding: 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 8px rgb(0 0 0 / 0.3);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
@media (max-width: 760px) {
  .sticky-cta { display: block; }
  .sticky-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
}

/* ---------- Fiche (dialog) ---------- */
.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, 100%); height: 100dvh; max-height: none; max-width: none;
  padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .6s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete;
}
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateX(100%); } }
.sheet::backdrop { background: rgb(0 0 0 / 0); transition: background-color .5s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete; }
.sheet[open]::backdrop { background: rgb(0 0 0 / 0.65); }
@starting-style { .sheet[open]::backdrop { background: rgb(0 0 0 / 0); } }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--h-bg) 70%, transparent); color: var(--h-ink); border: 1px solid var(--h-line); backdrop-filter: blur(6px);
}
.sheet__close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet__body { height: 100%; overflow-y: auto; overscroll-behavior: contain; }

.dossier__photo { position: relative; }
.dossier__photo img { width: 100%; aspect-ratio: 4/3; max-height: 48dvh; object-fit: cover; object-position: 50% 18%; }
.dossier__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, transparent 55%); }
.dossier__id { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 6px; }
.dossier__id h2 { font: 900 clamp(2.6rem, 9vw, 3.6rem)/0.9 var(--display); text-transform: uppercase; }
.dossier__id p { color: var(--ink-2); margin-top: 6px; }
.dossier__main { padding: 22px 28px 32px; display: grid; gap: 30px; }
.dossier__pitch { font-size: 1.15rem; line-height: 1.5; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 0; }
.facts div { background: var(--bg-2); padding: 12px 14px; }
.facts dt { font-size: .8rem; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 460px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stats h3, .dossier__cta h3 { font: 800 1.35rem/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.stat + .stat { margin-top: 18px; }
.stat__row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.stat__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); animation: grow 1.1s var(--ease) both; animation-delay: calc(.25s + var(--d, 0) * 90ms); }
.stat p { font-size: .9rem; color: var(--ink-3); }

.dossier__cta { display: grid; gap: 12px; padding-top: 4px; }
.dossier__cta .btn { justify-self: stretch; }
.dossier__cta > p { font-size: .9rem; color: var(--ink-3); }
.sheet .talk { padding: 0; border: 0; background: none; gap: 16px; }
.sheet .fields { grid-template-columns: 1fr; }
.sheet .btn--primary { justify-self: stretch; }

.pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager button { cursor: pointer; background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--ink-2); }
.pager button:hover { color: var(--ink); }

.todo { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-hi); padding: 0 4px; border-radius: 3px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; color: var(--ink-3); font-size: .92rem; }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.foot__brand .brand__mark { font-size: 1rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
@media (max-width: 760px) { body[data-path="joueur"] .foot { padding-bottom: 96px; } }

/* ---------- Animations ---------- */
@keyframes rise   { from { transform: translateY(105%); } }
@keyframes rise-sm{ from { opacity: 0; transform: translateY(18px); } }
@keyframes fade   { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } }
@keyframes grow   { from { transform: scaleX(0); } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Joueur sans photo : initiales ---------- */
.mono-portrait {
  display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 4/5;
  background:
    radial-gradient(80% 60% at 50% 20%, rgb(255 255 255 / 0.07), transparent 70%),
    var(--h-bg2);
  color: var(--h-ink3);
  font: 900 clamp(3rem, 9vw, 7rem)/1 var(--display); letter-spacing: 0.02em;
}
.roster.is-featured > li:first-child .mono-portrait { font-size: clamp(6rem, 16vw, 12rem); }
.dossier__photo .mono-portrait { aspect-ratio: 4/3; max-height: 48dvh; font-size: 9rem; }
.tm-link { justify-self: start; font-weight: 600; color: var(--accent-hi); text-decoration: none; margin-top: -14px; }
.tm-link:hover { text-decoration: underline; }
.facts { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }

/* ---------- Accueil : mur des vrais portraits PPM ---------- */
.hero__wall {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 4px;
  opacity: .5;
  animation: settle 2.4s var(--ease) both;
}
.hero__wall img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
@media (max-width: 900px) { .hero__wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hero__wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Page joueurs : interlocuteur réel ---------- */
.agent {
  display: grid; gap: 8px; align-content: end;
  min-height: 360px; padding: 28px; border-radius: var(--r-md);
  background: radial-gradient(90% 70% at 30% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg-2);
  border: 1px solid var(--line);
}
.agent__mono { font: 900 clamp(5rem, 12vw, 8rem)/0.85 var(--display); color: var(--accent-hi); margin-bottom: auto; }
.agent__name { font: 800 2rem/1 var(--display); text-transform: uppercase; }
.agent__role { color: var(--ink-2); font-weight: 600; }
.agent__caption { color: var(--ink-3); max-width: 30ch; }
@media (max-width: 820px) { .agent { min-height: 0; } .agent__mono { margin-bottom: 12px; } }

/* ---- Questions fréquentes (accueil + /questions) et page joueurs libres ---- */
.faq-home { padding-block: clamp(48px, 8vw, 96px); }
.faq { display: grid; gap: 10px; margin: 18px 0 32px; max-width: 72ch; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.faq__item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; float: right; color: var(--accent-hi); font-weight: 800; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 18px 18px; color: var(--ink-2); }
.faq-home__more { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.faq__sources { color: var(--ink-3); font-size: .9rem; max-width: 72ch; }
.roster-page__lead { color: var(--ink-2); max-width: 60ch; margin: 8px 0 20px; }
.roster-page h1 + .block__title { margin-top: 32px; }
@media (max-width: 640px) { .page .switch__opt { white-space: nowrap; font-size: .8rem; padding: 6px 7px; } .page .switch { gap: 0; } .switch__opt--contact { display: none; } }

/* ---- Version arabe (/ar) : police, hauteur de ligne, sens de lecture ---- */
html[lang="ar"] { --display: "Cairo", "Big Shoulders Display", sans-serif; --text: "Cairo", "Hanken Grotesk", system-ui, sans-serif; }
html[lang="ar"] :is(h1, h2, h3, .h2, .h3, .block__title, .profile__name, .door__what, .agent__name, .card__name) { line-height: 1.35; letter-spacing: 0; }
html[lang="ar"] .faq__item summary::after { float: left; }
html[lang="ar"] .back, html[lang="ar"] .door__arrow svg { transform: none; }
.ar-home .doors { margin: 28px 0 8px; }
.ar-home__sub { margin-top: 48px; }
.ar-home .talk { margin-top: 48px; }
.ar-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.ar-strip a { display: grid; gap: 4px; text-decoration: none; }
.ar-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.ar-strip small { color: var(--ink-3); }
.switch__opt--lang { font-weight: 700; }
html[dir="rtl"] .hp, html[dir="rtl"] .skip:not(:focus) { left: auto; right: -9999px; } /* en RTL, un débord à gauche devient défilable */
@media (max-width: 640px) { html[lang="fr"] .switch__opt--lang { display: none; } } /* lien arabe gardé en pied de page */
