/* Win Pronostic — charte 3.14 « le lion » (refonte validée, 08.10.2026).
   Chargée APRÈS tokens.css, public.css et pro.css, par les seuls gabarits du
   site public et de l'espace Pro : l'admin n'en hérite jamais.
   - Clair (défaut) : papier ivoire #f8f7f2, panneaux #fffefa, encre #1d3029,
     secondaire assombri pour rester lisible, or #957342 en décor seulement ;
     l'or des petits textes et des liens est foncé (#7a5c2e, ≥ 5,7:1).
   - Sombre : le thème existant, mêmes mises en page, niveaux harmonisés.
   - Titres en Georgia, corps en DM Sans, chiffres en JetBrains Mono.
   - Commandes ≥ 44 px, texte secondaire ≥ 12 px, corps ≥ 14 px ; une valeur
     négative porte toujours son signe « − » en plus de sa couleur.
   Aucune ressource distante : images locales, versionnées par asset(). */

/* ---------------------------------------------------------------- jetons */

html[data-theme="cream"] {
  --bg: #f8f7f2;
  --surface: #fffefa;
  --surface-2: #f1efe6;
  --line: #dcded2;
  --line-soft: #e7e7de;
  --line-strong: #b5b8a8;
  --ink: #1d3029;
  --ink-2: #34433c;
  --dim: #5f675e;

  --gold: #7a5c2e;           /* texte, liens, sélection : 5,8:1 sur l'ivoire */
  --gold-text: #7a5c2e;
  --gold-deco: #957342;      /* décor, liserés, grands titres seulement */
  --gold-soft: rgba(149, 115, 66, .12);
  --gold-deep: #cdb88f;
  --gold-hi: #e6d3ad;
  --gold-ink: #1f2a20;
  --aura: rgba(217, 197, 154, .28);

  --safe: #3d6577;
  --probable: #7f5f2c;
  --chance: #79566f;
  --won: #2a6e49;
  --lost: #9c3f33;
  --void: #5f675e;
  --pending: #5f675e;
  --retracted: #697168;
  --won-soft: rgba(42, 110, 73, .38);
  --lost-soft: rgba(156, 63, 51, .38);

  --veil: 248, 247, 242;
  --shadow: 0 5px 12px -7px rgba(134, 101, 57, .45);
  --shadow-card: 0 22px 40px -30px rgba(41, 56, 39, .42), 0 2px 6px -4px rgba(41, 56, 39, .14);
}
:root {
  --display: Georgia, "Times New Roman", serif;
  --gold-deco: var(--gold);
  --veil: 9, 13, 16;
  --safe: #7fb0c6;
  --probable: #e0b46c;
  --chance: #c9a2c2;
  --r: 14px;
}

/* ---------------------------------------------------------------- base */

body { font-size: 15.5px; }
h1, h2, h3, .disp { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
.eyebrow, .kicker { font-size: .75rem; letter-spacing: .14em; font-weight: 600; color: var(--gold-text); }
.tiny, .local-time { font-size: .78rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
#contenu:focus, #accueil-titre:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 10px; color: var(--bg); }
.neg { color: var(--lost); }

/* Petits libellés : jamais sous 12 px. */
.kpi3 small, .price small, .fact small, .stat .k, .stat .sub, .dial-k, .ticket-top, .sel-kicker, .marche-k,
.juge-k, .combo-nums .k, .curve-days, .badge, .tag, .price .book, .t.registre .book, .t.registre .tiny,
.marche-prix .k, .marche-record .record-row small, .mises-card .record-row small, .mises-block .record-row small,
.plan-tag, .hx-label, .state, .legend .lg { font-size: .75rem; }
.kpi .k, table.t thead th { font-size: .8rem; }

/* Boutons : l'or du prototype, en dégradé, texte sombre. */
html[data-theme="cream"] .btn, .btn {
  background: linear-gradient(110deg, #dfcaa5, #c7a66c); border-color: #bba279; color: #1f2a20;
  min-height: 44px; border-radius: 8px; font-weight: 650; box-shadow: var(--shadow);
}
html[data-theme="cream"] .btn:hover, .btn:hover { background: linear-gradient(110deg, #e6d4b3, #cfb07a); border-color: #bba279; color: #1f2a20; }
html[data-theme="cream"] .btn-ghost, .btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); box-shadow: none; }
html[data-theme="cream"] .btn-ghost:hover, .btn-ghost:hover { background: var(--surface-2); border-color: var(--gold-deco); color: var(--ink); }
html[data-theme="cream"] .btn-gold-line, .btn-gold-line { background: transparent; color: var(--gold); border-color: var(--gold-deco); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 13px; font-size: .84rem; }
.btn-text { min-height: 44px; border-bottom-color: var(--gold-deco); }
.btn-text .arrow, .flip .arrow { color: var(--gold-deco); }

/* Cartes : panneaux ivoire, ombre douce, liseré or discret. */
.card, .rail-card, .kpi, .pick, .selcard, .combo, .fact, .plan, .marche-block, .pro-tools .tool, .notif, .verdict {
  border-radius: var(--r);
}
html[data-theme="cream"] .card::before, html[data-theme="cream"] .pick::before, html[data-theme="cream"] .selcard::before { background: none; }
.card h3, .rail-card h3 { font-family: var(--display); font-size: 1.2rem; }

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

.site-head { background: var(--bg); border-bottom-color: var(--line); }
.site-head .head-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "brand nav dial actions";
  align-items: center; gap: 10px 22px; min-height: 84px;
}
.site-head .brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.site-head .logo .brand-lion { display: block; width: 44px; height: 45px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(130, 110, 60, .2)); }
.brand-word { display: flex; flex-direction: column; gap: 5px; }
.site-head .logo .brand-word img { height: 22px; width: auto; }
.brand-tag { font-size: .75rem; letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
.nav-menu { grid-area: nav; min-width: 0; }
.nav-menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; list-style: none;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 600;
}
.nav-menu-btn::-webkit-details-marker { display: none; }
.nav-menu:not([open]) > .nav-menu-btn { display: flex; }   /* jamais de navigation introuvable */
.nav-menu-here { color: var(--dim); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; justify-content: center; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 999px; border-bottom: 1px solid transparent;
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); border-color: var(--line); }
.site-nav a.on { color: var(--ink); border-color: var(--gold-deco); background: var(--surface); box-shadow: none; }
.dial { grid-area: dial; }
.dial-face { height: 44px; }
.dial-opts button { min-height: 36px; }
.site-actions { grid-area: actions; margin: 0; gap: 12px; }
.site-actions .nav-text { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }

/* ---------------------------------------------------------------- mise en page */

main { padding: 32px 0 64px; }
.page-entree main { padding-top: 0; overflow-x: hidden; overflow-x: clip; }
.wrap { padding: 0 clamp(16px, 3vw, 40px); }
.site-head .wrap, .site-foot .wrap, .page-entree main .wrap { max-width: 1440px; padding: 0 clamp(16px, 3.4vw, 56px); }
.day h1.disp { font-size: clamp(38px, 5vw, 56px); letter-spacing: -.04em; }
.day h1.plain, .dayhead h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.day .eyebrow { margin-bottom: 6px; }
.section-heading h2, .section-title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.035em; line-height: 1.15; }

/* ---------------------------------------------------------------- accueil : la scène */

.home-stage { position: relative; isolation: isolate; min-height: 560px; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px);
}
.hero::before { content: ""; position: absolute; inset: -20px -40px 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 92% 30%, var(--aura), transparent 60%); }
.hero-copy { position: relative; z-index: 2; align-self: center; min-width: 0; }
.hero-eyebrow { margin-bottom: 18px; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.03; letter-spacing: -.05em; color: var(--ink); }
.hero-title em { display: inline-block; margin-top: 6px; font-style: italic; color: var(--gold-deco); }
.hero-deck { margin-top: 24px; max-width: 440px; font-size: 1.02rem; line-height: 1.65; color: var(--dim); }
.hero-deck strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.btn-lion { padding: 13px 18px; gap: 18px; font-size: .95rem; }
.hero-sub { margin-top: 20px; font-size: .84rem; color: var(--dim); }
.hero-sub a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.proof-stage { position: relative; min-width: 0; padding: 8px 0 12px; isolation: isolate; justify-self: center; width: min(100%, 440px); }
.scenery { position: absolute; z-index: -1; top: -36px; left: -40%; right: -14%; height: 520px; overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 76%, transparent 100%); }
.scenery img { position: absolute; display: block; max-width: none; object-fit: cover; filter: saturate(.55) contrast(.9) brightness(1.06); }
.scenery-stadium { inset: 0 0 auto; width: 100%; height: 78%; object-position: 64% 43%; opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%); }
.scenery-tennis { left: 0; right: 0; bottom: 0; width: 100%; height: 66%; object-position: 51% 68%; opacity: .38;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%); }
.scenery-veil { position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(var(--veil), 1) 0%, rgba(var(--veil), .7) 19%, rgba(var(--veil), .1) 51%, rgba(var(--veil), .05) 100%),
              linear-gradient(to bottom, rgba(var(--veil), .1) 0%, transparent 53%, rgba(var(--veil), 0) 73%, rgba(var(--veil), 1) 100%); }
html:not([data-theme="cream"]) .scenery img { opacity: .22; filter: saturate(.4) brightness(.8); }

.lion-portrait { position: relative; z-index: 2; margin: 0 auto 12px; width: min(100%, 330px); text-align: center; }
.lion-portrait::before { content: ""; position: absolute; inset: 8% -7% 12%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(211, 182, 113, .2), transparent 70%); }
.lion-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(139, 114, 68, .18)); transform-origin: center 90%; animation: wp-lion-breathe 9s ease-in-out infinite alternate; }
.lion-sports { display: inline-block; margin-top: 4px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface-2); color: var(--ink-2); font-size: .82rem; letter-spacing: .06em; }
.lion-sports b { font-weight: 600; }

.proof-card {
  position: relative; z-index: 3; margin-top: -18px; padding: 24px 24px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 17px;
  box-shadow: 0 25px 40px -24px rgba(131, 119, 83, .4), 0 4px 8px -6px rgba(86, 73, 50, .25);
  transform: rotate(1.2deg); transition: transform .6s cubic-bezier(.2, .75, .25, 1);
}
.proof-card:hover { transform: rotate(0) translateY(-3px); }
.proof-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); }
.proof-mark { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold-deco); font-size: 14px; }
.proof-title { font-family: var(--font); font-size: .9rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.proof-number { margin: 6px 0 2px; font-family: var(--display); font-size: clamp(46px, 5vw, 60px); line-height: 1.08; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.proof-number.is-negative { color: var(--lost); }
.proof-sub { font-size: .84rem; color: var(--dim); }
.proof-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding: 14px 0; border-block: 1px solid var(--line-soft); }
.proof-meta > div { display: flex; flex-direction: column; min-width: 0; }
.proof-meta strong { font-family: var(--mono); font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.proof-meta span { margin-top: 4px; font-size: .78rem; color: var(--dim); }
.proof-outcomes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: .84rem; color: var(--ink-2); }
.proof-outcomes span { display: inline-flex; align-items: center; gap: 7px; }
.proof-outcomes i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.proof-outcomes .o-won i { background: var(--won); }
.proof-outcomes .o-lost i { background: var(--lost); }
.proof-outcomes .o-void i { background: transparent; border: 1px solid var(--dim); }
.proof-outcomes .o-pending i { background: transparent; border: 1px dashed var(--dim); }
.proof-caption, .proof-wait { margin-top: 12px; font-size: .8rem; line-height: 1.5; color: var(--dim); }
.proof-wait b { display: block; margin-bottom: 4px; font-size: 1rem; color: var(--ink); }
.proof-card .rail-link { min-height: 44px; margin-top: 6px; }
.proof-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .84rem; color: var(--gold-text); }
.proof-footnote span { color: var(--gold-deco); }

.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 0 10px; }
.stage-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.principles { border-color: var(--line); }
.principles div { font-size: .92rem; color: var(--ink-2); }
.principles b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: var(--gold-deco); }

/* ---- le portail (3.15) : le lion dans sa zone, la signature, trois accès ---
   La zone #stage est une case de la grille, à part, rognée ; l'ouverture
   plein écran (3.16) vit hors d'elle, au premier niveau de <body>. */

.portal { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy"; gap: 20px; padding: clamp(16px, 3vw, 40px) 0 clamp(12px, 2vw, 24px); }
.portal::before { content: ""; position: absolute; inset: -20px -40px 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 92% 30%, var(--aura), transparent 60%); }
.portal-art.home-stage { grid-area: art; min-height: 300px; overflow: hidden; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.portal-art .scenery { top: 0; left: 0; right: 0; height: 100%; }
.portal-art .lion-portrait { width: min(72%, 300px); margin: 12px auto; }
.portal-copy { grid-area: copy; position: relative; z-index: 2; align-self: center; min-width: 0; }
.portal-title { font-size: clamp(38px, 4.6vw, 64px); }
.portal-deck { margin-top: 18px; max-width: 560px; font-size: 1.02rem; line-height: 1.6; color: var(--dim); }
.portal-deck strong { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.portal-bilan { margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.portal-bilan .neg { color: var(--lost); }
.portal-access { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.access-card { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.access-card b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: -.02em; }
.access-card span { font-size: .84rem; line-height: 1.45; color: var(--dim); }
.access-card:hover, .access-card:focus-visible { border-color: var(--gold-deco); }
.portal-risk { margin-top: 16px; font-size: .8rem; line-height: 1.5; color: var(--dim); }
.portal-risk a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.home-details { margin: 8px 0 24px; border-top: 1px solid var(--line); }
.home-details-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-height: 44px; padding: 14px 0; cursor: pointer; }
.home-details-summary span { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.home-details-summary small { font-size: .82rem; color: var(--dim); }
.home-details-body { display: grid; gap: 28px; padding-bottom: 8px; }
.home-proof { max-width: 460px; }
.home-proof .proof-card { margin-top: 0; }

/* ---- le film d'ouverture (3.17) ----------------------------------------------
   Seul l'amorçage du portail pose html[data-splash] (et la variante,
   html[data-splash-variant] : desktop ou portrait), avant le premier rendu :
   les racines de la page sont masquées par visibility (ni vues, ni atteignables
   au clavier, rien d'inerte), le défilement est tenu, l'ouverture couvre la
   fenêtre. L'affiche fixe de la variante tient la place ; dès la lecture
   réelle (play), la vidéo, entière (contain : couronne, pattes, ballon et
   raquette jamais rognés), sur le fond du film. En fin de lecture (out), le
   portail redevient visible et utilisable dessous et l'ouverture s'efface en
   .4 s. Trois sorties indépendantes : le contrôleur (fin, échec), l'amorçage
   (lecture coupée à 5 s, chien de garde à 6 s) et, en dernier recours, ces
   animations (6 s). Seule l'affiche de la variante choisie se charge. */

html[data-splash]:not([data-splash="out"]) { overflow: hidden; animation: wp-splash-scroll 1ms linear 6s forwards; }
html[data-splash]:not([data-splash="out"]) body { visibility: hidden; animation: wp-splash-watchdog 1ms linear 6s forwards; }
.lion-intro { position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); }
.lion-intro[hidden] { display: none; }
html[data-splash] .lion-intro { display: flex; visibility: visible; animation: wp-intro-failsafe 1ms linear 6s forwards; }
html[data-splash-variant="desktop"] .lion-intro { background: var(--film-bg-desktop, var(--bg)) var(--film-poster-desktop, none) center / contain no-repeat; }
html[data-splash-variant="portrait"] .lion-intro { background: var(--film-bg-portrait, var(--bg)) var(--film-poster-portrait, none) center / contain no-repeat; }
html[data-splash="out"] .lion-intro { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.intro-skip {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; background: rgba(0, 0, 0, .32); color: #fff; font: inherit; font-size: .9rem; cursor: pointer;
}
html[data-splash="out"] .intro-skip { visibility: hidden; }
.intro-film { position: absolute; inset: 0; }
.intro-video { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
html[data-splash="play"] .intro-video, html[data-splash="out"] .intro-video { opacity: 1; }

@keyframes wp-intro-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes wp-splash-watchdog { to { visibility: visible; } }
@keyframes wp-splash-scroll { to { overflow: visible; } }
@keyframes wp-lion-breathe { from { transform: translateY(0) rotate(-.35deg); } to { transform: translateY(-3px) rotate(.35deg); } }
@keyframes wp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---- les derniers tickets ------------------------------------------------- */

.tickets { padding: 36px 0 8px; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ticket-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold-deep);
  border-radius: var(--r); box-shadow: var(--shadow-card);
}
.ticket-card.is-empty { background: linear-gradient(150deg, var(--surface), var(--bg)); border-top-color: var(--line); box-shadow: none; }
.ticket-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; color: var(--dim); }
.ticket-kind { margin-left: auto; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.ticket-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ticket-match { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.ticket-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: .84rem; color: var(--dim); }
.ticket-market { font-size: 1rem; font-weight: 600; color: var(--gold); overflow-wrap: anywhere; }
.ticket-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-block: 1px solid var(--line-soft); }
.ticket-values div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-values small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ticket-values strong { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ticket-why { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.ticket-why b { color: var(--ink); }
.ticket-empty { font-size: .92rem; line-height: 1.6; color: var(--dim); }
.ticket-empty b { color: var(--ink); }
.ticket-card .sel-link, .selcard .sel-link { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; gap: 12px; padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.ticket-card .sel-link:hover { color: var(--gold); border-bottom-color: var(--gold-deco); }

/* ---- la sélection du jour ------------------------------------------------- */

.hx-section { padding: 36px 0 8px; }
.selcard { border-top-width: 2px; }
.selcard h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; }
.sel-kicker { text-transform: none; letter-spacing: .02em; }
.sel-league { margin-top: 10px !important; font-size: .82rem !important; color: var(--dim) !important; }
.selcard p { color: var(--gold); }

/* ---------------------------------------------------------------- identité sportive */

.sport-mark { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 500; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.sport-icon { display: block; flex-shrink: 0; color: var(--gold-deco); }
.monogram {
  display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 6px 6px 15px 15px; background: var(--surface-2);
  font-family: var(--display); font-size: .95rem; letter-spacing: .03em; color: var(--ink-2);
}
.flag-id { display: inline-flex; align-items: baseline; gap: 4px; margin-left: 6px; font-family: var(--font); font-size: .72em; font-weight: 400; letter-spacing: 0; color: var(--dim); white-space: nowrap; }
.flag-emoji { font-size: 1.1em; }
.pick-id { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-width: 0; }
.pick-id .pick-event { margin-top: 0; }
/* 3.17 — l'identité des deux participants : écusson ou drapeau contrôlé (28 px,
   cadré sans rognure dans une case de 34 px au fond discret), sinon le
   monogramme neutre. Le nom complet, dans le titre, revient à la ligne. */
.ident-pair { display: inline-flex; flex-shrink: 0; gap: 4px; }
.ident-pair .monogram { width: 34px; height: 34px; border-radius: 8px; font-size: .78rem; }
.ident-mark { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.ident-mark img { display: block; width: 28px; height: 28px; object-fit: contain; }
/* Les écussons sont dessinés pour un fond clair : case claire dans les deux thèmes. */
.ident-crest { border-color: rgba(23, 21, 16, .1); background: #f7f5ef; }
.pick-id > :last-child, .sel-id > :last-child, .leg-id > :last-child { min-width: 0; overflow-wrap: anywhere; }
.sel-id, .leg-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.leg-id .ident-pair { gap: 3px; }
.leg-id .ident-pair .monogram, .leg-id .ident-mark { width: 28px; height: 28px; padding: 2px; font-size: .68rem; }
.leg-id .ident-mark img { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- journée, cartes */

.pick { border-radius: var(--r); }
.pick-event { font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.pick-sel { color: var(--gold); }
.price b { font-weight: 500; }
.chip { font-size: .84rem; }
.chip-marge b { color: var(--gold); }
details.why summary { min-height: 44px; }
.day-nav a, .day-nav span { min-height: 44px; min-width: 44px; }
.legend .lg { min-height: 32px; }
.bilan-big { font-family: var(--display); font-weight: 400; font-size: 44px; letter-spacing: -.04em; color: var(--ink); }
.bilan-big.neg { color: var(--lost); }
.combo-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.visitor-note { border-color: var(--gold-deep); }
.rail-link, .rail-help { min-height: 44px; }
.recent li a { display: inline-flex; align-items: center; min-height: 32px; }
.empty .badge-state i { background: var(--gold-deco); }
.spark-line { stroke: var(--gold-deco); }
.spark-end { fill: var(--gold-deco); }
.spark-zero { stroke: var(--line-strong); }

/* ---------------------------------------------------------------- historique : niveaux */

.levels-panel { margin-top: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-heading .eyebrow { margin-bottom: 8px; }
.panel-tip { max-width: 220px; font-size: .84rem; color: var(--dim); text-align: right; }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.level-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: 18px 18px 14px 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); transition: border-color .3s, box-shadow .3s, transform .3s; animation: wp-rise .6s cubic-bezier(.2, .75, .25, 1) both;
}
.level-card:nth-child(2) { animation-delay: 75ms; }
.level-card:nth-child(3) { animation-delay: 150ms; }
.level-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lvl-c); opacity: .45; transition: opacity .3s; }
.level-card:hover { color: var(--ink); border-color: var(--lvl-c); transform: translateY(-2px); }
.level-card.is-selected { border-color: var(--lvl-c); box-shadow: 0 8px 20px -14px rgba(56, 69, 57, .45); }
.level-card.is-selected::before, .level-card:hover::before { opacity: 1; }
.level-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.level-top .lvl { color: var(--lvl-c); }
.level-band { font-size: .78rem; color: var(--dim); }
.level-value { margin: 18px 0 8px; font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.level-value.is-negative { color: var(--lost); }
.level-record { font-size: .88rem; color: var(--dim); }
.level-record b { font-weight: 600; color: var(--ink); }
.level-rates { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .84rem; color: var(--dim); }
.level-rates b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.level-rates b.neg { color: var(--lost); }
.level-bottom { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--dim); }

/* ---------------------------------------------------------------- historique : courbe */

.chart-card { margin-top: 18px; padding: 20px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); scroll-margin-top: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; }
.chart-head h2 { font-family: var(--display); font-size: 1.3rem; }
.chart-note { margin-top: 6px; max-width: 64ch; font-size: .84rem; line-height: 1.55; color: var(--dim); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: .86rem; font-weight: 500; }
.seg a:hover { color: var(--ink); background: var(--surface); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.chart-empty { margin-top: 18px; padding: 26px 18px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; font-size: .92rem; color: var(--dim); }
.chart-empty b { color: var(--ink); }
.level-chart { margin: 18px 0 0; }
.chart-plot { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.chart-y, .chart-area { position: relative; height: 260px; }
.chart-y span { position: absolute; right: 10px; transform: translateY(-50%); font-family: var(--mono); font-size: .75rem; color: var(--dim); white-space: nowrap; }
.chart-y span.is-zero { color: var(--ink); font-weight: 600; }
.chart-area svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-zero { stroke: var(--ink-2); stroke-width: 1.4; }
.chart-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.line-safe, .end-safe { stroke: var(--safe); color: var(--safe); }
.line-probable, .end-probable { stroke: var(--probable); color: var(--probable); }
.line-chance, .end-chance { stroke: var(--chance); color: var(--chance); }
.chart-end { position: absolute; right: 1.67%; width: 11px; height: 11px; border-radius: 50%; background: currentColor; border: 2px solid var(--surface); transform: translate(50%, -50%); }
.chart-x { position: relative; height: 22px; margin: 6px 0 0 52px; }
.chart-x span { position: absolute; top: 0; transform: translateX(-50%); font-size: .78rem; color: var(--dim); white-space: nowrap; }
.chart-x span:first-child { transform: none; }
.chart-x span:last-child:not(:first-child) { transform: translateX(-100%); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .86rem; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-item i { display: block; width: 16px; height: 3px; border-radius: 2px; background: var(--lvl-c, var(--ink-2)); }
.legend-item b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.legend-item b.neg { color: var(--lost); }
.legend-zero i { height: 1.4px; background: var(--ink-2); }
.curve-details { margin-top: 12px; }
.curve-details summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: .9rem; color: var(--ink-2); }
.curve-details summary::-webkit-details-marker { display: none; }
.curve-details[open] summary svg { transform: rotate(90deg); }
.curve-data caption { padding: 4px 0 10px; text-align: left; font-size: .84rem; color: var(--dim); }
.curve-data tbody th a { color: var(--ink); }
.page-historique .kpis { margin-top: 18px; }
.page-historique .kpi .v { font-family: var(--display); font-weight: 400; font-size: 1.8rem; letter-spacing: -.03em; }
.page-historique .kpi .v.gold { color: var(--ink); }
.page-historique .kpi .v.neg { color: var(--lost); }

/* ---------------------------------------------------------------- comptes et accès */

.auth-card h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.auth-card .eyebrow { color: var(--ink-2); }
.auth-card.is-member { border-color: var(--gold-deep); border-top: 2px solid var(--gold-deco); }
.auth-card.is-member .eyebrow { color: var(--gold-text); }
.field label { font-size: .88rem; color: var(--ink-2); }
input:not([type]), input[type="text"], input[type="url"], input[type="date"], input[type="password"], input[type="number"], input[type="email"], select, textarea {
  min-height: 44px; background: var(--surface); border-color: var(--line-strong); border-radius: 8px;
}
html[data-theme="cream"] input:not([type]), html[data-theme="cream"] input[type="text"], html[data-theme="cream"] input[type="password"],
html[data-theme="cream"] input[type="date"], html[data-theme="cream"] input[type="number"], html[data-theme="cream"] select, html[data-theme="cream"] textarea { background: #fffffd; }
.gate-links a, .authbox a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.gate { padding-top: 28px; padding-bottom: 48px; }
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10px auto 22px; width: fit-content; }
.gate-lion { display: block; width: 64px; height: 66px; object-fit: contain; }
.gate-brand .gate-logo { margin: 0; width: min(100%, 260px); }
.gate-brand .logo-cream { display: none; }
html[data-theme="cream"] .gate-brand .logo-dark { display: none; }
html[data-theme="cream"] .gate-brand .logo-cream { display: block; }
.gate-title { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 4px 0 6px; }
.formerr { border-radius: 8px; }
dl.account dt { font-size: .75rem; }

/* ---------------------------------------------------------------- espace Pro */

.pro-nav { gap: 6px; padding-bottom: 12px; margin-bottom: 22px; }
.pro-nav-mark { display: inline-grid; place-items: center; min-height: 32px; padding: 0 10px; margin-right: 4px; border: 1px solid var(--gold-deep); border-radius: 6px; font-family: var(--display); font-style: italic; color: var(--gold-text); }
.pro-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.pro-nav a.on { color: var(--ink); border-color: var(--gold-deco); background: var(--surface); }
.dayhead h1 { line-height: 1.08; }
.kicker { margin-bottom: 6px; }
.pro-tools .tool { padding: 16px 18px; border-top: 2px solid var(--gold-deep); min-height: 44px; }
.tool-t { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--ink); }
.tool-d { font-size: .84rem; margin-top: 4px; }
.tool-jessy { background: linear-gradient(150deg, var(--surface), var(--surface-2)); border-top-color: var(--probable) !important; }
.tool-jessy .tool-t::after { content: " · Probable"; font-family: var(--font); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--probable); }
.propick .pick-event { font-family: var(--display); font-size: 1.35rem; }
.daynav a, .daynav span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.badge { padding: 3px 10px; }
.jessy-state { border-left: 3px solid var(--line-strong); }
.jessy-state.is-retained { border-left-color: var(--probable); }
.jessy-state.is-refused { border-left-color: var(--lost); }
.jessy-state.is-insufficient { border-left-color: var(--gold-deco); }
.jessy-state-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.jessy-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.jessy-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.is-retained .jessy-status i { background: var(--probable); }
.is-refused .jessy-status i { background: var(--lost); }
.is-insufficient .jessy-status i { background: transparent; border: 1px solid var(--gold-deco); }
.jessy-state h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.jessy-dossier h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }

/* ---------------------------------------------------------------- pied */

.site-foot { background: var(--surface-2); border-top-color: var(--line); }
html:not([data-theme="cream"]) .site-foot { background: var(--bg); }
.foot-monogram { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 34px; line-height: .9; letter-spacing: -7px; color: var(--gold-deco); }
.foot-brand strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------------------------------------------------------------- réactif */

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; min-height: 560px; }
  .proof-stage { justify-self: end; }
  .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "copy art"; gap: 36px; }
  .portal-art.home-stage { min-height: 460px; }
  .portal-access { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .site-head .head-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand dial actions" "nav nav nav"; min-height: 0; padding-top: 10px; padding-bottom: 8px; }
  .site-nav { justify-content: flex-start; }
}
@media (max-width: 959px) {
  .scenery { left: -18%; right: -18%; }
  .level-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-tip { text-align: left; }
}
@media (max-width: 720px) {
  .site-head .head-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand dial" "actions actions" "nav nav"; gap: 8px 12px; }
  .brand-tag { display: none; }
  .site-head .logo .brand-word img { height: 18px; }
  .site-head .logo .brand-lion { width: 40px; height: 41px; }
  .site-actions { justify-content: space-between; width: 100%; gap: 10px; }
  .site-actions .btn { padding: 0 12px; }
  .site-nav {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px;
    width: 100%; margin: 0; padding: 8px 0 4px; border-top: 1px solid var(--line-soft); overflow: visible;
  }
  .site-nav a { justify-content: center; text-align: center; height: auto; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; line-height: 1.25; white-space: normal; }
  .site-nav a.on { box-shadow: none; }
  .nav-menu-btn { display: flex; }
  .nav-menu[open] > .nav-menu-btn { border-color: var(--gold-deco); }
  .nav-menu[open] > .site-nav { margin-top: 6px; border-top: 0; padding-top: 0; }
  .pro-nav {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    margin-bottom: 16px; padding-bottom: 8px; scroll-padding-inline: 16px;
  }
  .pro-nav a, .pro-nav-mark { flex: 0 0 auto; }
  .pro-nav-spacer { display: none; }
  .dial-pop { right: 0; }
  main { padding: 22px 0 40px; }
  .hero-title { font-size: clamp(40px, 11vw, 52px); }
  .proof-meta strong { font-size: 20px; }
  .ticket-values strong { font-size: 1.15rem; }
  .chart-y, .chart-area { height: 220px; }
  .chart-plot { grid-template-columns: 44px minmax(0, 1fr); }
  .chart-x { margin-left: 44px; }
  .seg { border-radius: 14px; }
  .portal-art.home-stage { min-height: 240px; }
  .portal-art .lion-portrait { width: min(56%, 220px); margin: 6px auto; }
}
@media (max-width: 399px) {
  .chart-x span:not(:first-child):not(:last-child) { display: none; }
}
@media (max-width: 380px) {
  .site-head .logo .brand-word img { height: 15px; }
  .site-head .logo .brand-lion { width: 34px; height: 35px; }
  .dial-face { padding: 0 8px 0 6px; }
  .dial-time { display: none; }
  .hero-title { font-size: 38px; }
  .proof-card { padding: 20px 16px 16px; }
  .proof-number { font-size: 42px; }
  .proof-meta { gap: 6px; }
  .proof-meta strong { font-size: 18px; }
  .ticket-card { padding: 18px 16px; }
  .ticket-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-value { font-size: 32px; }
}

/* ---------------------------------------------------------------- mouvements réduits, impression */

@media (prefers-reduced-motion: reduce) {
  .lion-intro { display: none !important; }
  html[data-splash]:not([data-splash="out"]) { overflow: visible; animation: none; }
  html[data-splash]:not([data-splash="out"]) body { visibility: visible; animation: none; }
  .lion-portrait img, .level-card, .proof-card { animation: none !important; transition: none !important; }
  .proof-card { transform: none; }
  .level-card:hover, .proof-card:hover { transform: none; }
}
@media print {
  .lion-intro, .dial, .skip-link { display: none !important; }
  html[data-splash]:not([data-splash="out"]) body { visibility: visible; }
  .proof-card { transform: none; box-shadow: none; }
  .lion-portrait img { animation: none; }
}
