/* LMJ — page de recrutement. Couleurs et tailles centralisées ci-dessous. */
@font-face { font-family: "Shoulders"; src: url("fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #09090a;
  --panel: #151517;
  --panel-2: #1c1c1f;
  --line: #2a2a2e;
  --ivory: #f4ede1;
  --ivory-2: #c4bcae;   /* texte secondaire — contraste ≥ 8:1 sur --panel */
  --ivory-3: #948c80;   /* mentions discrètes — contraste ≥ 5:1 sur --panel */
  --gold: #d9ab52;
  --gold-hi: #ecc77a;
  --gold-deep: #9c7428;
  --ink: #120e06;       /* texte sur bouton doré */
  --radius: 22px;
  --radius-sm: 14px;
  --col: 600px;
  --display: "Shoulders", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Bandeau aperçu de travail (npm run draft uniquement) ── */
.draft-bar { background: repeating-linear-gradient(-45deg, #2b2210 0 12px, #241c0c 12px 24px); color: var(--gold-hi); font-size: 14px; padding: 8px 16px; text-align: center; border-bottom: 1px solid var(--gold-deep); }
.draft-bar summary { cursor: pointer; }
.draft-bar strong { color: var(--ivory); }
.draft-bar p { margin: 6px 0 0; color: var(--ivory-2); }
.draft-bar ul { margin: 6px auto 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; max-width: 900px; }
.draft-bar li::before { content: "○ "; }
.todo { border: 1.5px dashed var(--gold-deep); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--gold); font-size: 15px; background: rgba(217,171,82,.04); }
.todo b { color: var(--ivory); font-weight: 600; }
.tag-todo { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--gold-deep); border-radius: 99px; padding: 4px 8px; vertical-align: middle; margin-left: 6px; }
.is-draft { opacity: .62; }

/* ── En-tête ── */
.top { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 10px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font: 700 15px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { color: var(--gold); }
.nav { display: none; gap: 20px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.nav a { color: var(--ivory-2); text-decoration: none; }
.nav a:hover { color: var(--gold-hi); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--panel); }
.lang a { min-width: 44px; min-height: 34px; display: inline-grid; place-items: center; border-radius: 99px; color: var(--ivory-2); text-decoration: none; font: 600 13px/1 var(--body); letter-spacing: .14em; }
.lang a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--ivory); }

main { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 0 16px 40px; }

/* ── Carte joueur ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero .visual { position: relative; height: clamp(150px, 25svh, 240px); background: radial-gradient(120% 90% at 50% 0%, #262014 0%, #121213 55%, var(--panel) 100%); }
.hero .visual.has-photo { height: clamp(190px, 27svh, 260px); background: #0d0d0e; }
.hero .visual picture, .hero .visual img { width: 100%; height: 100%; object-fit: cover; }
.hero .visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--panel)); pointer-events: none; }
.hero .court { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero .mono { z-index: 1; position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: clamp(118px, 22svh, 168px); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.hero .body { padding: 2px 16px 20px; text-align: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font: 600 12.5px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(217,171,82,.18); }
.hero h1 { margin: 8px 0 4px; font: 800 clamp(44px, 12.5vw, 64px)/.9 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.hero h1 .last { display: block; color: var(--gold); }
.hero .pos { margin: 6px 0 0; color: var(--ivory-2); font-size: 16.5px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 14px; color: var(--ivory); }
.chips li b { color: var(--gold); font-weight: 600; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.figures div { padding: 0 4px; }
.figures div + div { border-left: 1px solid var(--line); }
.figures dt { order: 2; font: 600 11.5px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-3); margin-top: 4px; }
.figures dd { margin: 0; font: 800 34px/1 var(--display); color: var(--gold); }
.figures dd small { font-size: .55em; margin-left: 2px; color: var(--gold); }
.figures dd .sub { display: block; font: 500 13px/1.3 system-ui, -apple-system, sans-serif; color: var(--ivory-2); margin-top: 3px; }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.chips.extras { margin-top: 14px; }
.chips.extras li { font-size: 13.5px; color: var(--ivory-2); }
.actions.two { grid-template-columns: 1fr 1fr; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 16px; border-radius: 14px; font: 600 15.5px/1.15 var(--body); letter-spacing: .02em; text-decoration: none; text-align: center; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--gold-deep); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-todo { border: 1.5px dashed var(--gold-deep); color: var(--gold); background: transparent; cursor: default; font-weight: 500; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: scale(.98); } }

/* ── Sections ── */
.section { margin-top: 44px; }
.section > header { margin: 0 4px 16px; }
.section h2 { margin: 6px 0 0; font: 800 clamp(34px, 9vw, 44px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.section .lead { margin: 10px 0 0; color: var(--ivory-2); }
.stack { display: grid; gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { margin: 0 0 4px; font: 700 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.label { margin: 0 0 10px; color: var(--gold); font: 600 12.5px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--ivory-2); }
.small { font-size: 14.5px; }

/* ── Vidéos ── */
.video { margin: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video .frame iframe, .video .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; background: radial-gradient(90% 90% at 30% 20%, #2a2213, #0e0e0f 70%); }
.video .play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .25s; }
.video .play:hover img { opacity: 1; }
.video .play .icon { position: relative; width: 66px; height: 66px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.45); transition: transform .2s; }
.video .play .icon svg { width: 24px; height: 24px; margin-left: 4px; fill: var(--ink); }
.video .play:hover .icon { transform: scale(1.06); }
.video .play:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: -3px; }
.video .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72); color: var(--ivory); font: 600 13px/1 var(--body); padding: 5px 8px; border-radius: 8px; letter-spacing: .04em; }
.video figcaption { margin-top: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--ivory-2); font-size: 15px; }
.meta li b { color: var(--ivory); font-weight: 600; }
.marks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.marks a { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: var(--ivory); text-decoration: none; background: var(--panel-2); }
.marks a:hover { background: #242428; }
.marks time { font: 700 17px/1 var(--display); color: var(--gold); min-width: 3.2em; letter-spacing: .03em; }
.direct { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 15px; }
.direct svg { width: 15px; height: 15px; }

/* ── Profil ── */
.quote { margin: 0; font-size: 18.5px; line-height: 1.55; color: var(--ivory); }
.quote p { margin: 0; }
.quote p::before { content: "«\00a0"; color: var(--gold); }
.quote p::after { content: "\00a0»"; color: var(--gold); }
:lang(en) .quote p::before { content: "“"; }
:lang(en) .quote p::after { content: "”"; }
.quote footer { margin-top: 10px; color: var(--ivory-3); font-size: 14.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { border: 1px solid var(--gold-deep); color: var(--ivory); border-radius: 99px; padding: 6px 13px; font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line) 70%); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--gold); }
.timeline li.key::before { background: var(--gold); }
.timeline .season { font: 700 20px/1 var(--display); color: var(--gold); letter-spacing: .03em; }
.timeline .club { font-weight: 600; margin-top: 4px; }
.timeline .comp { color: var(--ivory-2); }
.timeline .badge { display: inline-block; margin-left: 8px; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 4px 8px 3px; border-radius: 99px; vertical-align: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 12px 0; }
.stats div { background: var(--panel-2); border-radius: 12px; padding: 12px; }
.stats dd { margin: 0; font: 800 32px/1 var(--display); color: var(--gold); }
.stats dt { order: 2; margin-top: 4px; font-size: 13px; color: var(--ivory-2); letter-spacing: .06em; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* ── Scolarité / contact ── */
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--ivory-3); font: 600 12px/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.facts dd { margin: 0; }
.contact { text-align: center; padding: 24px 18px; background: radial-gradient(120% 100% at 50% 0%, #262014, var(--panel) 65%); }
.contact .addr { font: 600 18px/1.3 var(--body); color: var(--ivory); word-break: break-all; margin: 6px 0 16px; }
.contact .actions { max-width: 380px; margin: 0 auto; }
.copy-ok { color: var(--gold-hi); font-size: 14px; min-height: 1.4em; margin: 8px 0 0; }
.notes { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; text-align: left; color: var(--ivory-2); font-size: 15px; }
.notes p { margin: 0; }

footer.site { max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 8px 20px 40px; text-align: center; color: var(--ivory-3); font-size: 13.5px; }
footer.site .brand { justify-content: center; margin-bottom: 8px; font-size: 13px; }

/* ── Animations discrètes (désactivées si mouvement réduit) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero .mono { animation: rise .9s ease both; }
  @keyframes rise { from { opacity: 0; translate: -50% -44%; } to { opacity: 1; translate: -50% -50%; } }
}

/* ── Écrans larges ── */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .top { padding: 22px 16px 16px; }
  .nav { display: flex; }
  .hero .visual { height: clamp(200px, 28vh, 280px); }
  .hero .visual.has-photo { height: clamp(260px, 36vh, 480px); }
  .hero .body { padding: 4px 36px 32px; }
  .hero .mono { width: 190px; }
  .hero .body { padding: 4px 36px 32px; }
  .figures dd { font-size: 42px; }
  .panel { padding: 24px; }
  .section { margin-top: 64px; }
}
@media (max-width: 419px) {
  .actions.two .btn { padding: 10px 8px; font-size: 15px; letter-spacing: 0; }
  .actions.two .btn svg { display: none; }
}
@media (max-width: 359px) {
  .actions.two { grid-template-columns: 1fr; }
  .figures dd { font-size: 28px; }
}
@media print {
  body { background: #fff; color: #000; }
  .lang, .nav, .video .play, .draft-bar { display: none; }
}
