/* FootballDay : feuille de style unique, pensée d'abord pour le téléphone. */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #F5F2EA;
  --card: #FFFFFF;
  --ink: #16231B;
  --ink-2: #3A453E;
  --muted: #5C665F;
  --line: #DDD7C8;
  --line-soft: #EDE8DC;
  --green: #24603A;
  --green-soft: #D6E6DA;
  --green-bg: #24603A;   /* fonds verts avec texte blanc */
  --green-text: #24603A; /* texte vert */
  --yellow: #F2C230;
  --yellow-soft: #FBF0C6;
  --red: #8E1F18;
  --red-soft: #F6DAD6;
  --night: #213128;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --radius: 14px;
  --field-line: #C8C1B0;
  --brand-dark: #16231B;
  --on-dark: #F5F2EA;
  --yellow-text: #6B4E00;
  --gold: #8A6500;
  --on-yellow: #16231B;
  --soft: #FFFDF4;
  --paper-2: #FBF8F0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 760px; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7vw, 56px); margin: 0 0 8px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn--primary { background: var(--green-bg); color: #FFFFFF; }
.btn--primary:hover { background: #1B4A2C; color: #FFFFFF; }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--dark { background: var(--brand-dark); color: #FFFFFF; }
.btn--dark:hover { color: var(--yellow); }
.btn--light { background: #FFFFFF; color: #16231B; }
.btn--outline-light { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
.btn--outline-light:hover { color: var(--yellow); border-color: var(--yellow); }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #33443A; background: transparent; color: #F5F2EA; cursor: pointer; }
.icon-btn:hover { color: var(--yellow); }

/* ---------- Langues ---------- */
.langs { display: flex; gap: 2px; }
.langs a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; font-size: 13px; text-decoration: none; color: var(--muted); }
.langs a.is-current { background: var(--brand-dark); color: #FFFFFF; }
.langs--dark a { color: #AEB8B0; }
.langs--dark a.is-current { background: var(--yellow); color: var(--on-yellow); }

/* ---------- En-tête public ---------- */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.03em; }
.site-header__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) { display: none; padding: 10px; text-decoration: none; font-weight: 500; }

/* ---------- Accueil ---------- */
.hero { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 56px; }
.tag { display: inline-block; padding: 6px 12px; background: var(--yellow); border-radius: 4px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 11vw, 86px); line-height: 0.95; margin: 0 0 20px; }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.route { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.route__title { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.route ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.route li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: #EDE8DC; }
.route li:nth-child(2) { margin: 0 4px; } .route li:nth-child(3) { margin: 0 8px; } .route li:nth-child(4) { margin: 0 12px; }
.route li:nth-child(5) { margin: 0 16px; } .route li:nth-child(6) { margin: 0 20px; } .route li:nth-child(7) { margin: 0 24px; }
.route li:nth-child(8) { margin: 0 28px; } .route li:nth-child(9) { margin: 0 32px; }
.route li.is-goal { background: var(--brand-dark); color: #FFFFFF; font-weight: 700; }
.route li.is-goal small { color: var(--yellow); font-weight: 600; }
.route li.is-start { background: var(--green-bg); color: #FFFFFF; font-weight: 700; }
.route li.is-start small { background: var(--yellow); color: var(--on-yellow); padding: 2px 8px; border-radius: 4px; font-weight: 600; }

.dark-band { background: var(--brand-dark); color: var(--on-dark); }
.section { padding-top: 64px; padding-bottom: 64px; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 56px); margin: 0 0 12px; }
.dark-band .lead { color: #C9CFC8; max-width: 640px; margin-bottom: 36px; }
.features { display: grid; gap: 16px; }
.feature { background: var(--night); border-radius: 12px; padding: 22px; }
.feature .icon { color: var(--yellow); }
.feature h3 { margin: 12px 0 8px; font-size: 21px; }
.feature p { margin: 0; color: #C9CFC8; }
.steps { display: grid; gap: 28px; margin-top: 28px; }
.step__num { font-family: var(--display); font-weight: 800; font-size: 60px; color: var(--green-text); line-height: 1; }
.step h3 { margin: 6px 0 8px; font-size: 22px; }
.step p { margin: 0; color: var(--ink-2); }
.cta-band { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; background: var(--yellow); border-radius: 16px; padding: 26px; }
.cta-band strong { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 15px; color: var(--muted); }
.site-footer a { color: var(--ink-2); }

/* ---------- Formulaires ---------- */
.form-layout { display: grid; gap: 24px; align-items: start; padding-bottom: 56px; }
.fieldset { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.fieldset legend { padding: 0 8px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.fields { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field select { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
.field small { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.swatches legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--field-line); }
.swatch input:checked + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sw-green { background: #24603A; } .sw-red { background: #B3261E; } .sw-blue { background: #1F4E99; } .sw-yellow { background: #F2C230; }
.sw-black { background: #16231B; } .sw-white { background: #FFFFFF; } .sw-purple { background: #5B2C83; } .sw-orange { background: #D9661F; }
.sw-sky { background: #5FA8D9; } .sw-maroon { background: #7A1F2B; }
.errors { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.preview { background: var(--brand-dark); color: var(--on-dark); border-radius: 16px; padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.preview__label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #C9CFC8; font-weight: 600; }
.preview__name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.preview dl { width: 100%; border-top: 1px solid #33443A; padding-top: 12px; margin: 6px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; text-align: left; font-size: 15px; }
.preview dt { color: #C9CFC8; } .preview dd { margin: 0; font-weight: 600; text-align: right; }
.auth-box { max-width: 480px; margin: 24px auto 64px; }

.flash { max-width: 1360px; margin: 12px auto 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash--info, .flash--success { background: var(--green-soft); color: #1B4A2C; }
.flash--error { background: var(--red-soft); color: var(--red); }

/* ---------- Jeu : en-tête ---------- */
.game { padding-bottom: 84px; }
.game-header { background: var(--brand-dark); color: var(--on-dark); }
.game-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.game-header__club { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; min-width: 0; }
.game-header__club span { display: flex; flex-direction: column; min-width: 0; }
.game-header__club strong { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-header__club small { font-size: 12px; color: #AEB8B0; }
.game-header__club:hover { color: var(--yellow); }
.game-nav { display: none; gap: 2px; flex-wrap: wrap; }
.game-nav a { padding: 10px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; color: var(--on-dark); }
.game-nav a:hover { color: var(--yellow); }
.game-nav a[aria-current="page"] { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.game-header__stats { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.game-header__stats > div { display: flex; flex-direction: column; line-height: 1.2; }
.game-header__stats span { color: #AEB8B0; font-size: 12px; }
.game-header__stats > div:nth-child(2) { display: none; }
.logout { margin: 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--green-text); font-weight: 700; }

/* ---------- Jeu : contenu ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 22px; }
.page-head .h1 { margin: 0; }
.cols { display: grid; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.next-match { background: #24603A; color: #FFFFFF; border-radius: 16px; padding: 22px; }
.next-match__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #D6E6DA; }
.chip { background: var(--yellow); color: var(--on-yellow); padding: 2px 10px; border-radius: 4px; letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 14px; }
.next-match__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; margin: 18px 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 5vw, 34px); line-height: 1.05; }
.next-match__vs { font-weight: 700; font-size: 20px; color: #D6E6DA; }
.next-match .actions { justify-content: center; }
.next-match__note { margin-top: 12px; text-align: center; font-size: 14px; color: #D6E6DA; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat__value { font-family: var(--display); font-weight: 800; font-size: 32px; }
meter.bar { width: 100%; height: 8px; display: block; -webkit-appearance: none; appearance: none; border: 0; border-radius: 4px; background: var(--line-soft); }
meter.bar::-webkit-meter-bar { background: var(--line-soft); border: 0; border-radius: 4px; height: 8px; }
meter.bar::-webkit-meter-optimum-value, meter.bar::-webkit-meter-suboptimum-value, meter.bar::-webkit-meter-even-less-good-value { border-radius: 4px; }
meter.bar::-webkit-meter-optimum-value { background: var(--green-bg); }
meter.bar::-webkit-meter-suboptimum-value, meter.bar::-webkit-meter-even-less-good-value { background: #C25A1A; }
meter.bar::-moz-meter-bar { background: var(--green-bg); border-radius: 4px; }
meter.bar:-moz-meter-sub-optimum::-moz-meter-bar, meter.bar:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: #C25A1A; }
.mail { display: flex; flex-direction: column; gap: 14px; }
.mail article { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.mail article:last-child { border-bottom: 0; padding-bottom: 0; }
.mail h3 { margin: 0 0 4px; font-size: 16px; }
.mail p { margin: 0; font-size: 15px; color: var(--muted); }

.table-box { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 6px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-me td { background: var(--yellow-soft); font-weight: 700; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.card-head .h2 { margin: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pills a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--field-line); background: var(--card); text-decoration: none; font-weight: 600; }
.pills a[aria-current="page"] { background: var(--brand-dark); border-color: var(--brand-dark); color: #FFFFFF; }
.pos { display: inline-block; min-width: 36px; text-align: center; padding: 2px 6px; border-radius: 4px; background: var(--line-soft); font-weight: 700; font-size: 13px; }
.status { font-weight: 600; font-size: 14px; }
.status--ok { color: var(--green-text); }
.status--unsure { background: var(--yellow-soft); color: var(--yellow-text); padding: 3px 8px; border-radius: 4px; }
.status--injured, .status--absent, .status--suspended { background: var(--red-soft); color: var(--red); padding: 3px 8px; border-radius: 4px; }
.player-name { font-weight: 600; }
.player-age { font-size: 13px; color: var(--muted); }
.squad-table meter.bar { width: 80px; }

.fixtures { list-style: none; margin: 0; padding: 0; }
.fixtures li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.fixtures li.is-next { background: var(--yellow-soft); margin: 0 -12px; padding: 12px; border-radius: 8px; }
.fixtures .when { font-size: 13px; color: var(--muted); }
.fixtures .teams { font-weight: 600; }
.fixtures .teams strong { font-weight: 800; }
.notice { background: var(--yellow-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }

/* Effectif en cartes sur téléphone */
@media (max-width: 719px) {
  .squad-table thead { position: absolute; left: -9999px; }
  .squad-table, .squad-table tbody, .squad-table tr, .squad-table td { display: block; width: 100%; }
  .squad-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); }
  .squad-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 5px 0; }
  .squad-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; }
  .squad-table td.num { text-align: right; }
  .squad-table td.cell-player::before { display: none; }
  .squad-table td.cell-player { justify-content: flex-start; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
  .standings-full .hide-sm { display: none; }
}

/* ---------- Écrans plus larges ---------- */
@media (min-width: 600px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav > a:not(.btn) { display: inline-block; }
  .game-header__stats > div:nth-child(2) { display: flex; }
  .fixtures li { grid-template-columns: 220px 1fr; align-items: center; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; padding-top: 48px; padding-bottom: 72px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .cols { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .game { padding-bottom: 40px; }
  .tabbar { display: none; }
  .game-nav { display: flex; }
  .section { padding-top: 80px; padding-bottom: 80px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .game-header__inner { justify-content: flex-start; }
  .game-nav { order: 3; width: 100%; }
  .game-header__stats { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview .muted { color: #C9CFC8; }

/* ---------- Jeu complet ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow-game { max-width: 860px; }
.h3 { font-size: 17px; margin: 18px 0 6px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack--tight { gap: 14px; }
.accent { color: var(--green-text); font-weight: 700; }
.pos-value { color: var(--green-text); }
.neg-value { color: var(--red); }
.plain-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plain-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.plain-list meter.bar { margin-top: 6px; }
fieldset.plain { border: 0; margin: 0 0 8px; padding: 0; }
fieldset.plain legend { padding: 0; margin-bottom: 10px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.inline-actions form { margin: 0; }
.btn--danger { background: var(--red); color: #FFFFFF; }
.btn--danger:hover { background: #6E1611; color: #FFFFFF; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.card--danger { border-color: #E3B5AF; }
.icon-btn { position: relative; text-decoration: none; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.chip--live { background: #B3261E; color: #FFFFFF; }
.result-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.result-line { font-size: 18px; }
.mail article.is-unread h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: middle; }
.pills--small a { min-height: 36px; font-size: 14px; }
.field--inline { flex-direction: row; align-items: center; gap: 8px; }
.field--inline select { width: auto; min-height: 40px; padding: 6px 10px; }
details.confirm summary { cursor: pointer; color: var(--muted); font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
details.confirm[open] { background: var(--red-soft); padding: 10px; border-radius: 8px; }
details.confirm form { margin: 6px 0 0; }

.lineup-grid { display: grid; gap: 12px; }
.lineup-slot span { display: flex; align-items: center; gap: 8px; }
.lineup-slot select { min-height: 46px; }

.scoreboard { background: #24603A; color: #FFFFFF; border-radius: 16px; padding: 20px 16px; margin: 20px 0; }
.scoreboard__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: #D6E6DA; }
.live-pill { background: #B3261E; color: #FFFFFF; padding: 2px 10px; border-radius: 4px; }
.scoreboard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0 6px; text-align: center; }
.scoreboard__team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 4.5vw, 34px); line-height: 1.05; }
.scoreboard__score { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 12vw, 90px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.scoreboard__clock { text-align: center; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--yellow); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.45; }
.feed__min { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--muted); }
.ev-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-right: 4px; vertical-align: 1px; }
.tag-goal { background: var(--green-bg); color: #FFFFFF; }
.tag-yellow { background: var(--yellow); color: var(--on-yellow); }
.tag-red { background: #B3261E; color: #FFFFFF; }
.tag-info { background: var(--line-soft); color: var(--ink); }
.versus { margin: 0 0 8px; display: flex; flex-direction: column; gap: 12px; }
.versus dt { text-align: center; font-size: 13px; color: var(--muted); }
.versus dd { margin: 4px 0 0; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.versus dd strong:last-child { text-align: right; }
.versus__bar { display: block; height: 8px; border-radius: 4px; background: #C8C1B0; overflow: hidden; }
.versus__fill { display: block; height: 8px; background: var(--green-bg); }
.w-0 { width: 0; } .w-1 { width: 10%; } .w-2 { width: 20%; } .w-3 { width: 30%; } .w-4 { width: 40%; } .w-5 { width: 50%; }
.w-6 { width: 60%; } .w-7 { width: 70%; } .w-8 { width: 80%; } .w-9 { width: 90%; } .w-10 { width: 100%; }
.lineup-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lineup-list span { background: var(--line-soft); border-radius: 12px; padding: 2px 9px; }
.bench-controls { margin-bottom: 20px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.sub-form { display: grid; gap: 12px; align-items: end; }

.fixtures a.teams { text-decoration: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.fixtures .score { font-weight: 800; padding: 0 4px; }
.pager { display: flex; gap: 6px; }
.pager a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--field-line); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 20px; }
.round-list { list-style: none; margin: 0 0 10px; padding: 0; }
.round-list li a { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-size: 15px; }
.round-list li a span:last-child { text-align: right; }
.round-list li.is-me a { background: var(--yellow-soft); border-radius: 6px; font-weight: 600; }

.form-dots { display: inline-flex; gap: 3px; }
.fd { width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.fd-w { background: var(--green-bg); color: #FFFFFF; } .fd-d { background: #C8C1B0; color: var(--ink); } .fd-l { background: #B3261E; color: #FFFFFF; }
.table tr.zone-up td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.table tr.zone-down td:first-child { box-shadow: inset 4px 0 0 #B3261E; }
.legend-up::before, .legend-down::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend-up::before { background: var(--green-bg); } .legend-down::before { background: #B3261E; }
.legend-down { margin-left: 14px; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 10px; }
.input-unit { display: flex; align-items: center; gap: 6px; }
.input-unit input { flex: 1; }
.input-unit span { font-weight: 700; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.event-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.event-card h3 { margin: 0; font-size: 18px; }
.event-card p { margin: 0; }
.event-card form { margin-top: 8px; }
.total-row td { border-top: 1.5px solid var(--line); }

.licence-band { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; background: var(--brand-dark); color: var(--on-dark); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.licence-band__title { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 4px; }
.licence-band__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lchip { padding: 6px 10px; border-radius: 6px; background: var(--night); font-weight: 600; font-size: 14px; color: var(--yellow); }
.lchip.is-ok { color: #C9E3CF; }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 14px; }
.fac-card { display: flex; flex-direction: column; gap: 8px; }
.fac-card .h2 { margin: 0; }
.fac-card p { margin: 0; }
.fac-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.pips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pips span { height: 8px; border-radius: 3px; background: var(--line-soft); }
.pips span.on { background: var(--green-bg); }
.pips span.wip { background: var(--yellow); }

@media (min-width: 600px) {
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-form { grid-template-columns: 1fr 1fr auto; }
}
.stat-grid + .cols, .stat-grid + .notice, .wrap > .card + .card, .wrap > .card + section, .cols + .card { margin-top: 20px; }
.page-head + .notice, .pills + .notice { margin-top: 0; }

/* ---------- Bandeau Continuer ---------- */
.continue-bar { background: #24603A; color: #FFFFFF; }
.continue-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.continue-bar__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.continue-bar__info strong { font-family: var(--display); font-weight: 800; font-size: 20px; }
.continue-bar__info span { font-size: 14px; color: #D6E6DA; }
.continue-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.continue-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.continue-bar__count { font-size: 13px; color: #D6E6DA; }
.continue-bar__limit { font-weight: 600; }
.btn--yellow { background: var(--yellow); color: var(--on-yellow); }
.btn--yellow:hover { background: #FFD24D; color: var(--on-yellow); }
@media (max-width: 599px) {
  .continue-bar__actions, .continue-form { width: 100%; }
  .continue-form .btn--yellow { flex: 1; }
}

/* ---------- Matériel, terrains, banque ---------- */
.pips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit-state { min-width: 200px; flex: 1 1 200px; max-width: 320px; }
.land-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.land-card > div { flex: 999 1 320px; }
.land-card__buy { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.land-card p { margin: 0 0 6px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 14px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; text-align: right; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.quick-links a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 8px; background: var(--line-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.quick-links a .icon { color: var(--green-text); flex: none; }
.game-header__stats { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 599px) {
  .game-header__stats { gap: 6px; width: 100%; justify-content: space-between; }
  .game-header__stats .langs a { min-width: 32px; min-height: 40px; font-size: 12px; }
  .game-header__stats .icon-btn { width: 40px; height: 40px; }
}

/* ---------- v2.0 : fiche joueur, étoiles, entraînement, décisions ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; white-space: nowrap; }
.star { display: inline-block; width: 16px; height: 16px; background: #D5CDBA; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star--full { background: #E0A800; }
.star--half { background: linear-gradient(90deg, #E0A800 50%, #D5CDBA 50%); }

.player-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin: 18px 0 16px; }
.player-head .h1 { margin: 0 0 4px; }
.player-head p { margin: 0; }
.player-stars { display: flex; gap: 20px; }
.player-stars > div { display: flex; flex-direction: column; gap: 4px; }

.pos-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pos-list li { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 10px; }
.pos-list li.is-best .pos { background: var(--green-bg); color: #FFFFFF; }
.pos-list__val { font-weight: 700; text-align: right; }

.continue-bar__alert { color: #FAD35A; font-weight: 700; }
.continue-bar__alert:hover { color: #FFFFFF; }

.training-plan { display: flex; flex-direction: column; gap: 8px; }
.training-day { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--line-soft); }
.training-day.is-on { background: var(--green-soft); }
.training-day .check { margin: 0; font-weight: 600; }
.training-day select { width: 100%; font: inherit; font-size: 16px; padding: 6px 10px; min-height: 40px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); }
.training-day select:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
@media (max-width: 420px) { .training-day { grid-template-columns: 118px 1fr; padding: 8px; } }
.kv--wide { grid-template-columns: 110px 1fr; }
.kv--wide dd { text-align: left; font-weight: 400; }
.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mail--compact { gap: 10px; }
.mail--compact article { padding-bottom: 10px; }

.card--accent { border: 2px solid var(--yellow); background: var(--soft); }
.decisions { display: flex; flex-direction: column; gap: 16px; }
.decision { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.decision:last-child { border-bottom: 0; padding-bottom: 0; }
.decision h3 { margin: 4px 0 6px; font-size: 17px; }
.decision p { margin: 0 0 10px; color: var(--ink-2); }
.decision__options { display: flex; flex-direction: column; gap: 8px; }
.decision__options form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
@media (min-width: 600px) { .decision__options { flex-direction: row; flex-wrap: wrap; } .decision__options form { flex-direction: column; align-items: flex-start; } }

.ratings { list-style: none; margin: 0 0 14px; padding: 0; }
.ratings li { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ratings li.is-off { color: var(--muted); }
.rating { text-align: center; font-weight: 800; border-radius: 4px; padding: 1px 4px; background: var(--line-soft); }
.rating--great { background: var(--green-bg); color: #FFFFFF; }
.rating--good { background: var(--green-soft); color: var(--green-text); }
.rating--low { background: var(--red-soft); color: var(--red); }

form.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; }
.fixtures li.is-friendly .when::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 6px; }

/* ---------- v2.1 : visuels joueurs ---------- */
.pos { color: var(--ink); text-decoration: none; }
.pos--gk { background: #F7DD8A; color: #5A4300; }
.pos--def { background: #CFE0F3; color: #1C4170; }
.pos--mid { background: var(--green-soft); color: var(--green-text); }
.pos--att { background: #F4D2CC; color: #7C1C14; }
abbr.pos[title] { text-decoration: none; cursor: help; }

.avatar { flex: none; display: block; }
.avatar__txt { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .02em; }

.player-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 22px; margin: 18px 0 20px; padding: 22px; border-radius: var(--radius); background: var(--night); color: #FFFFFF; }
.player-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .04); pointer-events: none; }
.player-hero__id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.player-hero__pos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #D6E6DA; font-weight: 600; }
.player-hero__name { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 7vw, 52px); line-height: 1; margin: 6px 0 10px; letter-spacing: .01em; }
.player-hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.player-hero__facts li { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.chip-c { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: 12px; }
.chip-y { background: rgba(255, 255, 255, .14); color: #FFFFFF; border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.player-hero__side { display: flex; flex-direction: column; gap: 16px; }
.player-hero__stars { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.player-hero__stars > div { display: flex; flex-direction: column; gap: 4px; }
.player-hero__stars span:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #D6E6DA; font-weight: 700; }
.player-hero .star { width: 22px; height: 22px; }
.player-hero .star--empty, .player-hero .star { background-color: rgba(255, 255, 255, .18); }
.player-hero .star--full { background: var(--yellow); }
.player-hero .star--half { background: linear-gradient(90deg, var(--yellow) 50%, rgba(255, 255, 255, .18) 50%); }
.player-hero__rings { display: flex; gap: 14px; flex-wrap: wrap; }
.player-hero__avail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #D6E6DA; }
.player-hero__avail .status--ok { color: #9BE0B0; }
@media (min-width: 900px) {
  .player-hero { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
  .player-hero__side { align-items: flex-end; }
}

.ring { position: relative; display: grid; justify-items: center; width: 82px; text-align: center; }
.ring svg { display: block; }
.ring__bg { stroke: rgba(255, 255, 255, .14); }
.ring__fg { stroke: #9BE0B0; }
.ring--mid .ring__fg { stroke: var(--yellow); }
.ring--low .ring__fg { stroke: #FF8A7A; }
.ring strong { position: absolute; top: 26px; left: 0; right: 0; font-family: var(--display); font-size: 18px; line-height: 1; }
.ring span { font-size: 12px; color: #D6E6DA; margin-top: 2px; }

.player-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
@media (min-width: 1000px) { .player-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }

.attr-grid { display: grid; grid-template-columns: 1fr; gap: 8px 28px; }
@media (min-width: 600px) { .attr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .attr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.attr-col dl { margin: 0; }
.attr-col__title { margin: 8px 0 6px; padding-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 2px solid var(--line); }
.attr-col--technical .attr-col__title { border-color: #7FB08F; }
.attr-col--mental .attr-col__title { border-color: #9DB7DA; }
.attr-col--physical .attr-col__title { border-color: #E3B04B; }
.attr-col--goalkeeping .attr-col__title { border-color: #E6CF7A; }
.attr-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-size: 15px; }
.attr-row dt { color: var(--ink-2); }
.attr { margin: 0; display: flex; align-items: center; gap: 8px; }
.attr span { display: inline-grid; place-items: center; min-width: 32px; height: 26px; border-radius: 6px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.attr__bar { width: 54px; height: 6px; }
.attr__track { fill: var(--line-soft); }
.attr--great span { background: var(--green-bg); color: #FFFFFF; } .attr--great .attr__fill { fill: var(--green); }
.attr--good span { background: var(--green-soft); color: var(--green-text); } .attr--good .attr__fill { fill: #5E9C72; }
.attr--mid span { background: var(--yellow-soft); color: var(--yellow-text); } .attr--mid .attr__fill { fill: #D9A91E; }
.attr--low span { background: var(--red-soft); color: var(--red); } .attr--low .attr__fill { fill: #C8574B; }

.pitch-box { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.pitch { width: 150px; height: auto; display: block; }
.pitch__grass { fill: #2E7444; }
.pitch__lines { stroke: rgba(255, 255, 255, .45); stroke-width: .8; }
.pitch__spot circle { stroke: #FFFFFF; stroke-width: 1.2; }
.pitch__spot text { font-family: var(--body); font-weight: 800; font-size: 7px; }
.pitch__spot--natural circle { fill: var(--yellow); } .pitch__spot--natural text { fill: var(--ink); }
.pitch__spot--good circle { fill: #9BE0B0; } .pitch__spot--good text { fill: var(--ink); }
.pitch__spot--ok circle { fill: #F2EBD9; } .pitch__spot--ok text { fill: var(--ink-2); }
.pitch__spot--poor circle { fill: rgba(0, 0, 0, .25); stroke: rgba(255, 255, 255, .35); } .pitch__spot--poor text { fill: rgba(255, 255, 255, .7); }
.suit-legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.suit-legend li { display: flex; align-items: center; gap: 8px; }
.suit-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.suit-dot--natural { background: var(--yellow); } .suit-dot--good { background: #9BE0B0; } .suit-dot--ok { background: #F2EBD9; } .suit-dot--poor { background: #8A9A8F; }
.best-pos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.best-pos li { display: flex; align-items: baseline; gap: 8px; }
.best-pos strong { font-family: var(--display); font-size: 22px; }

.trait-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.trait { position: relative; padding: 9px 12px 9px 34px; border-radius: 10px; background: var(--line-soft); font-size: 15px; }
.trait::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--muted); }
.trait--pro-high::before, .trait--loy-high::before, .trait--leader::before { background: var(--green-bg); }
.trait--amb-high::before { background: #3D6FB4; }
.trait--pro-low::before, .trait--loy-low::before, .trait--tem-high::before { background: var(--red); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tile strong { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.tile span { font-size: 13px; color: var(--muted); }
.tile--accent { background: var(--night); border-color: var(--night); color: #FFFFFF; }
.tile--accent span { color: #D6E6DA; }
.action-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.action-list form { margin: 0; }

.player-cell { display: flex; align-items: center; gap: 10px; }
.mood { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line-soft); }
.mood--1, .mood--2 { background: var(--red-soft); color: var(--red); }
.mood--3 { background: var(--yellow-soft); color: var(--yellow-text); }
.mood--4, .mood--5 { background: var(--green-soft); color: var(--green-text); }
.squad-table td .rating { display: inline-block; min-width: 36px; }

.youth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.youth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.youth-card.is-gem { border: 2px solid var(--yellow); box-shadow: 0 6px 18px rgba(242, 194, 48, .18); }
.youth-card__head { display: flex; align-items: center; gap: 12px; }
.youth-card__head > div { flex: 1; min-width: 0; }
.youth-card__head .player-age { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.gem-tag { align-self: flex-start; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.youth-card__stars { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.youth-card__stars dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.youth-card__stars dd { margin: 0; }
.youth-card__best { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.youth-card__best li { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.youth-card__best strong { color: var(--green-text); }
.youth-card .inline-actions { margin-top: auto; }

/* Planning d'entraînement façon agenda */
.focus--physical { --focus: #D9822B; } .focus--technical { --focus: #3D8B5A; } .focus--tactical { --focus: #3D6FB4; }
.focus--attacking { --focus: #C2453A; } .focus--defending { --focus: #5B5FA8; } .focus--goalkeeping { --focus: #C9A21E; } .focus--recovery { --focus: #6FA7A0; }
.week-plan { display: grid; grid-template-columns: 1fr; gap: 8px; }
.week-day { position: relative; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-soft); overflow: hidden; }
.week-day::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.week-day.is-on, .week-day:has(input:checked) { background: var(--card); border-color: var(--line); box-shadow: 0 2px 8px rgba(22, 35, 27, .06); }
.week-day.is-on::before, .week-day:has(input:checked)::before { background: var(--focus, var(--green)); }
.week-day:not(:has(input:checked)) select { opacity: .7; }
.week-day__toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.week-day__toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); flex: none; }
.week-day__state { display: none; }
.week-day select { width: 100%; font: inherit; font-size: 15px; padding: 6px 10px; min-height: 40px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); }
.week-day select:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
.week-day--match { background: var(--night); border-color: var(--night); color: #FFFFFF; }
.week-day--match::before { background: var(--yellow); }
.week-day--match .week-day__name { font-weight: 700; }
.week-day__match { display: flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 700; }
@media (min-width: 1100px) {
  .week-plan { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .week-day { grid-template-columns: 1fr; align-content: start; min-height: 128px; padding: 14px 10px 12px; }
  .week-day::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 5px; }
  .week-day__toggle { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .week-day select { font-size: 14px; padding: 6px; }
  .week-day__match { flex-direction: column; align-items: flex-start; }
}
.focus-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--focus); margin-right: 8px; }
.report { border-left: 4px solid var(--focus, var(--line)); padding-left: 12px; }
.training-card { margin-bottom: 20px; }
.training-card .kv--wide { grid-template-columns: 150px 1fr; }
.training-card .kv--wide dt { display: flex; align-items: center; }
.cols.cols--3 { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .cols.cols--3 { grid-template-columns: 1fr 1fr 1.4fr; } }
@media (max-width: 599px) {
  .training-card .kv--wide { grid-template-columns: 1fr; gap: 2px; }
  .training-card .kv--wide dd { margin-bottom: 8px; color: var(--muted); }
  .player-hero { padding: 18px; }
  .player-hero .avatar { width: 64px; height: 64px; }
}

/* ---------- v2.2 : stade, buvette, matériel ---------- */
.ticon { display: block; flex: none; }
.scene-frame { position: relative; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; border: 4px solid var(--night); background: #B9C98A; box-shadow: 0 10px 30px rgba(22, 35, 27, .15); }
.scene { display: block; width: 100%; height: auto; }
.scene__fac { cursor: pointer; }
.scene__fac:hover, .scene__fac:focus { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255, 255, 255, .7)); outline: none; }
.scene__sign { font-family: var(--display); font-weight: 800; font-size: 14px; fill: #5B4A33; letter-spacing: .04em; text-transform: uppercase; }
.scene__label { font-family: var(--display); font-weight: 800; font-size: 9px; fill: #16231B; letter-spacing: .06em; }
.scene__label--light { fill: #FFFFFF; }
.scene-frame__caption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; justify-content: flex-end; pointer-events: none; }
.scene-frame__caption span { background: rgba(22, 35, 27, .85); color: #FFFFFF; font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.scene-frame__caption .wip-pill { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
@media (max-width: 599px) { .scene-frame__caption { position: static; padding: 8px; background: var(--night); justify-content: flex-start; } }

.lchip { display: inline-flex; align-items: center; gap: 6px; }
.plots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; flex: 999 1 100%; }
.plot { border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 2px dashed #C3B68A; background: #F4EFD9; }
.plot p { margin: 0; }
.plot__name { font-family: var(--display); font-weight: 800; font-size: 20px; }
.plot--owned { border: 2px solid var(--green); background: var(--green-soft); }
.plot--sale { border-color: var(--yellow); background: var(--yellow-soft); }
.plot--locked { opacity: .6; }
.plot__tag { font-weight: 700; font-size: 13px; color: var(--green-text); }
.plot__tag--locked { color: var(--muted); }

.fac-card { scroll-margin-top: 140px; }
.fac-card__head { display: flex; align-items: center; gap: 12px; }
.fac-card__head .h2 { margin: 0; font-size: 22px; }
.fac-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green-text); flex: none; }
.fac-card__now { margin: 0; font-weight: 600; }
.fac-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fac-card__foot strong { font-family: var(--display); font-size: 20px; }
.fac-card.is-building { border-color: var(--yellow); }
.fac-card.is-building .fac-card__icon { background: var(--yellow); color: var(--on-yellow); }
.fac-card__wip { margin-top: auto; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #F7D45E 10px 20px); color: var(--ink); }
.fac-card:target { box-shadow: 0 0 0 3px var(--yellow); }

/* Matériel */
.kit-hero { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; padding: 24px; margin-bottom: 20px; border-radius: var(--radius); color: #FFFFFF;
  background: radial-gradient(circle at 25% 40%, #3A4F42 0, var(--night) 60%); }
.kit-hero__kit { position: relative; display: grid; place-items: center; padding-top: 14px; }
.kit-hero__kit .kit { position: relative; z-index: 1; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); }
.kit-hero__hanger { position: absolute; top: 0; left: 50%; width: 46px; height: 22px; margin-left: -23px; border: 3px solid #B8B0A0; border-bottom: 0; border-radius: 23px 23px 0 0; }
.kit-hero__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); font-weight: 700; }
.kit-hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: 1; margin: 6px 0 8px; }
.kit-hero__line { margin: 0 0 14px; color: #D6E6DA; }
.kit-hero__rings { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.kit-hero__wash { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #FFFFFF; font-weight: 600; }
@media (min-width: 700px) { .kit-hero { grid-template-columns: 220px 1fr; padding: 28px 36px; } }
.kit-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kit-offer { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px; border-radius: 14px; background: linear-gradient(#F3EEE1, #FFFFFF 60%); border: 1px solid var(--line); }
.kit-offer h3 { margin: 4px 0 0; font-size: 18px; }
.kit-offer p { margin: 0; }
.kit-offer form { margin-top: auto; padding-top: 8px; }
.kit-offer.is-current { border: 2px solid var(--green); }
.kit-offer__tag { position: absolute; top: 10px; right: 10px; background: var(--green-bg); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.wash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 4px; }
.wash-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.wash-card input { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.wash-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--line-soft); color: var(--ink-2); }
.wash-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 4px 14px rgba(36, 96, 58, .12); }
.wash-card:has(input:checked) .wash-card__icon { background: var(--green-bg); color: #FFFFFF; }
.wash-card:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wash-card.is-disabled { opacity: .55; cursor: not-allowed; }
.wash-card__wear { margin-top: auto; font-weight: 700; color: var(--ink-2); }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.btn .ticon { display: inline-block; vertical-align: -4px; }

/* Buvette */
.money-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.money-tile { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.money-tile > div { display: flex; flex-direction: column; min-width: 0; }
.money-tile span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.money-tile strong { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.money-tile small { font-size: 12px; color: var(--muted); }
.money-tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--line-soft); color: var(--ink); flex: none; }
.money-tile__icon--up { background: var(--green-soft); color: var(--green-text); }
.money-tile__icon--down { background: var(--red-soft); color: var(--red); }
.chalkboard { border-radius: 18px; padding: 12px; background: linear-gradient(135deg, #8A5A34, #6B4226 60%, #7D5131); box-shadow: 0 10px 26px rgba(22, 35, 27, .22); }
.chalkboard__frame { border-radius: 10px; padding: 22px 22px 20px; color: #F3F1E8; background: radial-gradient(circle at 30% 20%, #3C4A42 0, #26302B 70%); box-shadow: inset 0 0 40px rgba(0, 0, 0, .45); }
.chalkboard__title { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0 0 14px; letter-spacing: .03em; text-transform: uppercase; color: #FFFFFF; text-align: center; }
.chalkboard__title::after { content: ""; display: block; width: 70px; height: 3px; margin: 8px auto 0; background: var(--yellow); border-radius: 2px; }
.chalkboard__list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.chalkboard__list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.chalkboard__list label { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.chalkboard__dots { border-bottom: 2px dotted rgba(243, 241, 232, .4); height: 1px; align-self: center; margin-top: 8px; }
.chalkboard__input { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 22px; font-weight: 700; }
.chalkboard__input input { width: 82px; font: inherit; font-size: 22px; text-align: right; color: #FFFFFF; background: rgba(255, 255, 255, .06); border: 1.5px dashed rgba(243, 241, 232, .45); border-radius: 6px; padding: 4px 6px; }
.chalkboard__input input:focus { outline: 2px solid var(--yellow); border-color: transparent; }
.chalkboard__ref { grid-column: 1 / -1; margin-top: -6px; font-size: 12px; color: rgba(243, 241, 232, .6); }
.chalkboard__ref--high { color: #FFB4A8; } .chalkboard__ref--low { color: #A8E6BC; }
.chalkboard__help { font-size: 13px; color: rgba(243, 241, 232, .7); margin: 0 0 12px; }
.events-card { margin: 20px 0; }
.event-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.event-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; gap: 6px; }
.event-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 4px; color: #FFFFFF; background: var(--green-bg); }
.event-card--petanque .event-card__icon { background: #6F7F74; } .event-card--bonfire .event-card__icon { background: #D9822B; }
.event-card--youth_cup .event-card__icon { background: #C9A21E; } .event-card--thank_you .event-card__icon { background: #C2453A; }
.event-card__meta { font-weight: 600; }
.event-card form { margin-top: auto; padding-top: 6px; }
.event-card.is-planned { border: 2px solid var(--yellow); background: var(--yellow-soft); }
.event-card.is-off { opacity: .6; }
.cols.cols--even { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .cols.cols--even { grid-template-columns: 1fr 1fr; } }
.budget { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.budget li { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.budget__bar { width: 100%; height: 10px; display: block; }
.budget__track { fill: var(--line-soft); }
.is-in .budget__fill { fill: #3D8B5A; } .is-out .budget__fill { fill: #C8574B; }
.budget__value { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }
.is-in .budget__value { color: var(--green-text); } .is-out .budget__value { color: var(--red); }
.budget__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--ink); }
.budget__total strong { font-family: var(--display); font-size: 26px; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.board { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; color: #FFFFFF; background: var(--green-bg); border-bottom: 5px solid rgba(0, 0, 0, .25); }
.board--1 { background: #3D6FB4; } .board--2 { background: #C2453A; } .board--3 { background: #2B2B2B; }
.board__slot { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; font-weight: 700; }
.board__name { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; }
.board__amount { font-size: 13px; opacity: .9; }
.board.is-offer { background: var(--yellow-soft); color: var(--ink); border: 2px dashed var(--yellow); }
.board--free { background: transparent; color: var(--muted); border: 2px dashed var(--line); }
.vol-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.vol { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.vol__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
@media (max-width: 599px) {
  .money-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .money-tile strong { font-size: 24px; }
  .chalkboard__list label { font-size: 18px; }
  .chalkboard__input input { width: 70px; font-size: 19px; }
}

/* ---------- v2.3 : tableau de bord, maintenance, confirmation ---------- */
.dash-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .dash-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.dash-tile__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.dash-tile__big { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.dash-tile__big small { font-size: 18px; color: var(--muted); margin-left: 2px; }
.dash-tile__mid { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.dash-tile--board { border-left: 6px solid var(--line); }
.dash-tile--good { border-left-color: var(--green); } .dash-tile--ok { border-left-color: var(--yellow); } .dash-tile--bad { border-left-color: var(--red); }
.board-state { font-size: 13px; font-weight: 600; }
.dash-tile--good .board-state { color: var(--green-text); } .dash-tile--bad .board-state { color: var(--red); } .dash-tile--ok .board-state { color: var(--yellow-text); }
.form-pills { display: flex; gap: 5px; flex-wrap: wrap; min-height: 32px; align-items: center; }
.form-pill { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font-weight: 800; font-size: 14px; color: #FFFFFF; }
.form-pill--w { background: var(--green-bg); } .form-pill--d { background: #A39B86; } .form-pill--l { background: var(--red); }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-grid .card { padding: 18px; }
.dash-grid .h2 { font-size: 22px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-list li { display: flex; align-items: center; gap: 10px; }
.dash-list__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-list__who a { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list__who span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dash-list__who .star { width: 12px; height: 12px; }
.dash-list__pot { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dash-list__pot span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dash-scorers td, .dash-scorers th { padding: 6px 4px; }
.dash-sick { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-sick li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dash-sick a { font-weight: 600; flex: 1 1 auto; }
.dash-ok { color: var(--green-text); font-weight: 600; }
.dash-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--yellow-soft); color: var(--yellow-text); font-weight: 600; }
.dash-condition__rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; justify-items: center; }
.dash-condition .ring__bg { stroke: var(--line-soft); }
.dash-condition .ring__fg { stroke: var(--green); }
.dash-condition .ring--mid .ring__fg { stroke: #E0A800; }
.dash-condition .ring--low .ring__fg { stroke: var(--red); }
.dash-condition .ring span { color: var(--muted); }
.dash-fixtures { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dash-fixtures li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.dash-fixtures li:last-child { border-bottom: 0; }
.dash-fixtures__date { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.dash-fixtures__opp { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ha { display: inline-block; min-width: 34px; padding: 1px 4px; margin-right: 4px; border-radius: 4px; background: var(--line-soft); font-size: 11px; text-align: center; color: var(--ink-2); }
.diff { align-self: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.diff--hard { background: var(--red-soft); color: var(--red); } .diff--mid { background: var(--yellow-soft); color: var(--yellow-text); }
.diff--easy { background: var(--green-soft); color: var(--green-text); } .diff--friendly { background: var(--line-soft); color: var(--muted); }
.quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-logo { display: block; object-fit: contain; border-radius: 6px; }

.maint { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 50% 30%, #2F4A3A 0, var(--night) 65%); color: #FFFFFF; }
.maint__box { max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.maint__logo .site-logo, .maint__logo svg { width: 88px; height: 88px; }
.maint__brand { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: .12em; margin: 0; color: var(--yellow); }
.maint__pitch { width: 100%; max-width: 360px; height: auto; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.maint__ball { animation: maint-ball 6s ease-in-out infinite; }
@keyframes maint-ball { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-80px, -30px); } 50% { transform: translate(-30px, 35px); } 75% { transform: translate(80px, -10px); } }
@media (prefers-reduced-motion: reduce) { .maint__ball { animation: none; } }
.maint__title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6vw, 40px); margin: 6px 0 0; line-height: 1.05; }
.maint__text { margin: 0; color: #D6E6DA; font-size: 17px; line-height: 1.55; }

.verify-card { margin: 32px 0; padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.verify-card__icon { width: 110px; height: auto; }
.verify-card .h1 { margin: 0; }
.verify-card .lead { margin: 0; }
.verify-steps { text-align: left; margin: 6px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.verify-card__change { width: 100%; max-width: 420px; text-align: left; }
.verify-card__logout { margin-top: 6px; }
.verify-card__logout .link-btn { color: var(--muted); }

/* ---------- v2.4 : application installable ---------- */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto;
  padding: 12px 14px; border-radius: 16px; background: var(--night); color: #FFFFFF; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 12px; flex: none; }
.install-banner__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #D6E6DA; }
.install-banner__txt strong { color: #FFFFFF; font-size: 16px; }
.install-banner__actions { display: flex; align-items: center; gap: 6px; }
.install-banner__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #FFFFFF; font-size: 22px; line-height: 1; cursor: pointer; }
body.game .install-banner { bottom: 76px; }
@media (min-width: 900px) { body.game .install-banner { bottom: 16px; } }

/* ---------- v2.4 : boutique ---------- */
.icon-btn--shop { color: var(--yellow); }
.shop-hero { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 26px; margin: 18px 0 22px; border-radius: var(--radius); color: #FFFFFF;
  background: radial-gradient(circle at 85% 20%, rgba(242, 194, 48, .25) 0, transparent 45%), var(--night); }
.shop-hero__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); font-weight: 700; }
.shop-hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 7vw, 52px); line-height: 1; margin: 6px 0 10px; }
.shop-hero__lead { margin: 0; color: #D6E6DA; max-width: 560px; }
.shop-hero__state { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shop-hero__state div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.shop-hero__state dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #D6E6DA; font-weight: 700; }
.shop-hero__state dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
@media (min-width: 900px) { .shop-hero { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.shop-group { margin-bottom: 26px; }
.shop-group .h2 { margin-bottom: 4px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.offer { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.offer.is-highlight { border: 2px solid var(--yellow); box-shadow: 0 10px 26px rgba(242, 194, 48, .2); }
.offer__tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--on-yellow); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.offer__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green-text); }
.offer--cash .offer__icon { background: var(--yellow-soft); color: var(--gold); }
.offer--pass .offer__icon { background: #DCE6F5; color: #2B5592; }
.offer__qty { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.offer__what { font-size: 14px; color: var(--muted); min-height: 2.6em; }
.offer__price { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--green-text); }
.offer__form { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.offer__waiver { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 12px; color: var(--muted); }
.offer__waiver input { margin-top: 2px; accent-color: var(--green); flex: none; }
.shop-legal { margin-bottom: 22px; }
.pay-status { font-weight: 700; font-size: 13px; }
.pay-status--paid { color: var(--green-text); } .pay-status--canceled, .pay-status--expired, .pay-status--failed { color: var(--red); }
.fake-pay { margin-top: 18px; }

/* ---------- v2.4 : administration ---------- */
.admin-header .brand { color: #FFFFFF; }
.admin-header .brand small { color: var(--yellow); font-size: 12px; letter-spacing: .1em; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-chart { width: 100%; height: auto; }
.admin-chart__bar { fill: var(--green); }
.admin-chart__val { font-size: 8px; font-weight: 700; fill: var(--ink); }
.admin-chart__day { font-size: 7px; fill: var(--muted); }
.admin-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-bars li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--paper); font-size: 14px; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.admin-filters .field { flex: 1 1 220px; margin: 0; }
.admin-table td, .admin-table th { vertical-align: top; }
.admin-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.admin-pager a[aria-current="page"] { background: var(--brand-dark); color: #FFFFFF; }
.admin-kv { grid-template-columns: 170px 1fr; }
.admin-actions form { margin-bottom: 8px; }
.admin-inline { display: flex; gap: 8px; align-items: center; }
.admin-inline input, .admin-offer input, .admin-offer select, .admin-actions input[type="text"], .admin-actions textarea, .admin-grid textarea, .admin-grid input[type="number"], .admin-grid select, .admin-grid input[type="file"] {
  font: inherit; font-size: 15px; padding: 7px 10px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); min-height: 38px; }
.admin-inline input { width: 110px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.admin-grid textarea { width: 100%; }
.admin-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.admin-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-offer input[name="amount"] { width: 110px; } .admin-offer input[name="price"] { width: 90px; } .admin-offer input[name="sort"] { width: 70px; }
.admin-offer .check { margin: 0; align-items: center; }
.admin-offer__del { margin-top: 4px; }
body.admin .install-banner { display: none; }
.install-banner [hidden] { display: none !important; }
.admin-chart { display: block; max-width: 620px; margin: 0 auto; }

/* ---------- v2.5 : staff, scouts, transferts, coupe, gazette, succès ---------- */
.h3 { font-size: 18px; margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font-size: 12px; font-weight: 800; }
.pills a[aria-current="page"] .count { background: #FFFFFF; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 20px; }
.staff-card { display: flex; flex-direction: column; gap: 10px; }
.staff-card--empty { background: repeating-linear-gradient(135deg, var(--card), var(--card) 12px, var(--paper-2) 12px, var(--paper-2) 24px); border-style: dashed; }
.staff-card__head { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: start; }
.staff-card__head .chip { background: var(--line-soft); }
.staff-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green-text); }
.staff-icon--scout { background: #DCE6F5; color: #2B5592; } .staff-icon--physio { background: var(--red-soft); color: var(--red); }
.staff-icon--youth_coach { background: var(--yellow-soft); color: var(--gold); } .staff-icon--gk_coach { background: #F7DD8A; color: #5A4300; }
.staff-person { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.staff-person strong { display: block; line-height: 1.2; }
.staff-person__ab { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 700; }
details.confirm--inline { text-align: right; }
.cand-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cand-group__title { font-family: var(--display); font-size: 20px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.cand { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.cand__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

/* Recrutement */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: end; }
.filters .field input, .filters .field select { min-height: 44px; padding: 8px 10px; }
.filters__go { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } .filters__go { grid-column: auto; flex-direction: column; align-items: stretch; text-align: center; } }
.know { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.know svg { width: 50px; height: 6px; }
.know__track { fill: var(--line-soft); }
.know--low .know__fill { fill: #C8574B; } .know--mid .know__fill { fill: #D9A91E; } .know--good .know__fill { fill: #5E9C72; } .know--full .know__fill { fill: var(--green); }
.know-num { font-family: var(--display); font-size: 22px; }
.chip--scout { background: #DCE6F5; color: #2B5592; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.chip--cup { background: #F7DD8A; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.row-actions form { margin: 0; }
.icon-btn--light { border-color: var(--line); color: var(--muted); background: var(--card); }
.icon-btn--light:hover { color: #B88900; }
.icon-btn--light.is-on { color: #B88900; background: var(--yellow-soft); border-color: var(--yellow); }
.icon-btn--light.is-on svg { fill: var(--yellow); }
.sign-form, .inline-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-select { font: inherit; font-size: 14px; min-height: 44px; padding: 6px 8px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); max-width: 100%; }
.zone-pick { display: grid; gap: 8px; }
.zone { display: block; cursor: pointer; }
.zone input { position: absolute; opacity: 0; }
.zone span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--card); }
.zone small { color: var(--muted); }
.zone input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: inset 4px 0 0 var(--green); }
.zone input:focus-visible + span { outline: 3px solid var(--yellow); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mission-list, .bid-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mission { padding: 10px 12px; border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.mission.is-done { opacity: .75; }
.bid { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--line); }
.bid--pending { border-left-color: var(--yellow); } .bid--countered { border-left-color: #3D6FB4; background: #F3F7FC; }
.bid--done { border-left-color: var(--green); } .bid--refused, .bid--failed { border-left-color: var(--red); }
.bid__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bid__amount { font-family: var(--display); font-size: 22px; font-weight: 800; }
.bid__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (min-width: 720px) { .bid { grid-template-columns: 1.6fr 1fr 1.2fr auto; align-items: center; } }

/* Fiche joueur : estimations, discussions, contrat */
.attr--range span { min-width: 46px; font-size: 13px; background: transparent !important; color: var(--ink) !important; border: 1.5px dashed var(--field-line); }
.talk-grid { display: grid; gap: 8px; margin-bottom: 8px; }
@media (min-width: 600px) { .talk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.talk-grid form { margin: 0; }
.talk { width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font: inherit; cursor: pointer; }
.talk span { font-size: 13px; color: var(--muted); }
.talk:hover:not([disabled]) { border-color: var(--green); }
.talk[disabled] { opacity: .5; cursor: not-allowed; }
.talk--praise strong { color: var(--green-text); } .talk--criticize strong { color: var(--red); } .talk--motivate strong { color: #2B5592; }
.renew-form, .bid-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.action-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.action-list form { margin: 0; }

/* Composition : consignes */
.lineup-slot label { display: flex; align-items: center; gap: 6px; }
.role-select { font: inherit; font-size: 13px; padding: 4px 8px; min-height: 34px; border: 1px dashed var(--field-line); border-radius: 8px; background: var(--paper); color: var(--ink-2); }

/* Météo */
.wx { vertical-align: -4px; flex: none; }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #16231B; font-size: 13px; font-weight: 700; }
.next-match__wx { margin: -4px 0 12px; }
.scoreboard__meta .wx-chip { margin-left: 8px; }
.scoreboard__pens { display: block; font-size: 14px; font-family: var(--body); font-weight: 600; opacity: .85; }
.fixtures li.is-cup { border-left: 4px solid #D99A0B; }

/* Tableau de bord */
.cup-tile__state { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gold); }
.gazette-tile__item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.gazette-tile__item h3 { font-family: Georgia, "Times New Roman", serif; font-size: 18px; margin: 0 0 4px; }
.gazette-tile__item p { margin: 0; color: var(--ink-2); }
.gazette-tile .btn { margin-top: 12px; }
.diff--cup { background: #F7DD8A; color: #5A4300; }

/* Coupe */
.cup-head { align-items: center; }
.cup-trophy { flex: none; filter: drop-shadow(0 6px 10px rgba(217, 154, 11, .35)); }
.cup-state { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 20px; scroll-snap-type: x mandatory; }
.bracket__round { display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.bracket__ties { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: space-around; }
.bracket__title { position: sticky; top: 0; font-family: var(--display); font-size: 20px; margin: 0 0 4px; display: flex; flex-direction: column; }
.bracket__title small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 600; }
.tie { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; overflow: hidden; }
.tie:hover { border-color: var(--green); }
.tie.is-me { border: 2px solid var(--yellow); box-shadow: 0 4px 12px rgba(242, 194, 48, .25); }
.tie__team { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 14px; color: var(--ink-2); }
.tie__team + .tie__team { border-top: 1px solid var(--line-soft); }
.tie__team b { font-variant-numeric: tabular-nums; }
.tie__team.is-win { font-weight: 800; color: var(--ink); background: var(--green-soft); }
.tie__pens { font-size: 12px; color: var(--muted); padding: 2px 10px 6px; }

/* Succès */
.ach-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ach { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--paper); color: var(--muted); }
.ach strong { display: block; color: var(--ink-2); line-height: 1.2; }
.ach__medal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--line); color: #FFFFFF; }
.ach.is-got { background: var(--yellow-soft); color: var(--ink-2); }
.ach.is-got strong { color: var(--ink); }
.ach.is-got .ach__medal { background: radial-gradient(circle at 35% 30%, #FFE58A, #D99A0B); color: #5A4300; box-shadow: 0 3px 8px rgba(217, 154, 11, .4); }
.ach__when { display: block; color: var(--gold); font-weight: 700; }

/* Présidents */
.pres-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); font-weight: 800; }
.pres-rank--1 { background: radial-gradient(circle at 35% 30%, #FFE58A, #D99A0B); }
.pres-rank--2 { background: radial-gradient(circle at 35% 30%, #F2F2F2, #A7A7A7); }
.pres-rank--3 { background: radial-gradient(circle at 35% 30%, #F0C9A0, #B0723A); color: #FFFFFF; }
@media (max-width: 719px) {
  .pres-table thead { position: absolute; left: -9999px; }
  .pres-table, .pres-table tbody, .pres-table tr, .pres-table td { display: block; width: 100%; }
  .pres-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .pres-table td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 3px 0; }
  .pres-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; }
}

/* La gazette */
.paper-head { text-align: center; padding: 18px 12px 14px; margin: 10px 0 18px; border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); background: var(--paper-2); }
.paper-head__kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.paper-head__name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 7vw, 54px); font-weight: 700; margin: 4px 0; line-height: 1; }
.paper-head__line { font-family: Georgia, serif; font-style: italic; color: var(--ink-2); }
.paper { background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 2px 0 var(--line); }
.paper__date { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.paper__cols { display: grid; gap: 14px; }
@media (min-width: 720px) { .paper__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .paper__item--lead { grid-column: 1 / -1; } }
.paper__item h2 { font-family: Georgia, "Times New Roman", serif; font-size: 20px; margin: 0 0 6px; line-height: 1.15; }
.paper__item--lead h2 { font-size: 28px; }
.paper__item p { margin: 0; font-family: Georgia, serif; font-size: 16px; color: var(--ink-2); }
.paper__item + .paper__item { border-top: 1px dotted var(--line); padding-top: 12px; }
@media (min-width: 720px) { .paper__item + .paper__item { border-top: 0; padding-top: 0; } .paper__item--lead + .paper__item, .paper__item--lead ~ .paper__item { border-top: 1px dotted var(--line); padding-top: 12px; } }

/* Rapport sur l'adversaire */
.report-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 18px; text-align: center; }
.report-compare__side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.report-compare__vs .wx-chip { background: var(--paper); color: var(--ink); }

/* Buvette : objectifs des sponsors, supporters */
.board__goal { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .18); border-radius: 6px; padding: 3px 6px; }
.board.is-offer .board__goal { background: var(--yellow); }
.fans-card meter.bar { width: 100%; margin: 6px 0 4px; }
.push-box { margin-bottom: 10px; }


/* ---------- v2.6 : thème sombre (réglage du compte ; « auto » suit le téléphone) ---------- */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111914; --card: #1A241E; --ink: #E7EDE8; --ink-2: #C3CDC6; --muted: #93A198; --line: #2D3B33; --line-soft: #243029;
    --green: #3E9A60; --green-soft: #1E3828; --green-bg: #2F7D4C; --green-text: #7CD39A; --muted: #A3B0A7; --yellow-soft: #3A3217; --red: #EC8A82; --red-soft: #3D211F; --night: #0C130F;
    --field-line: #3A4A40; --soft: #221F12; --paper-2: #1D2620; --yellow-text: #F2C230; --gold: #E3B341;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111914; --card: #1A241E; --ink: #E7EDE8; --ink-2: #C3CDC6; --muted: #93A198; --line: #2D3B33; --line-soft: #243029;
  --green: #3E9A60; --green-soft: #1E3828; --green-bg: #2F7D4C; --green-text: #7CD39A; --muted: #A3B0A7; --yellow-soft: #3A3217; --red: #EC8A82; --red-soft: #3D211F; --night: #0C130F;
  --field-line: #3A4A40; --soft: #221F12; --paper-2: #1D2620; --yellow-text: #F2C230; --gold: #E3B341;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.site-logo { background: transparent; }
  :root:not([data-theme="light"]) .pills a[aria-current="page"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
  :root:not([data-theme="light"]) .btn--ghost { border-color: var(--ink-2); }
  :root:not([data-theme="light"]) .gh, :root:not([data-theme="light"]) .tabbar { border-bottom: 1px solid var(--line); }
}
:root[data-theme="dark"] .pills a[aria-current="page"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
:root[data-theme="dark"] .btn--ghost { border-color: var(--ink-2); }
:root[data-theme="dark"] .gh { border-bottom: 1px solid var(--line); }
.theme-pick { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- v2.6 : boutique, billetterie, sponsors, comité, comparaison, tutoriel ---------- */
.trend { font-weight: 600; }
.trend--high { color: var(--red); } .trend--low { color: var(--gold); } .trend--fair { color: var(--green-text); }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.merch-card { display: flex; flex-direction: column; gap: 12px; }
.merch-card.is-empty { border-style: dashed; }
.merch-card__head { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.merch-card__head .h3 { margin-bottom: 2px; }
.merch-icon { display: block; background: var(--paper-2); border-radius: 14px; padding: 4px; }
.chip--hot { background: #F4D2CC; color: #7C1C14; font-size: 12px; margin-left: 6px; }
.chip--cold { background: #CFE0F3; color: #1C4170; font-size: 12px; margin-left: 6px; }
.merch-card__stock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.merch-card__stock div { background: var(--paper-2); border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; }
.merch-card__stock strong { font-family: var(--display); font-size: 24px; line-height: 1; }
.merch-card__stock span { font-size: 12px; color: var(--muted); }
.merch-card__price .input-unit input { max-width: 120px; }
.merch-order { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.merch-order .mini-select { flex: 1; min-width: 0; }

.ticket { display: grid; grid-template-columns: 96px 1fr; border-radius: 14px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(22, 35, 27, .18); }
.ticket__stub { background: var(--yellow); color: var(--on-yellow); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px 6px; border-right: 3px dashed rgba(22, 35, 27, .35); }
.ticket__stub span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.ticket__stub strong { font-family: var(--display); font-size: 20px; }
.ticket__body { background: var(--brand-dark); color: #F5F2EA; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ticket__club { font-family: var(--display); font-size: 24px; line-height: 1.05; }
.ticket__price { font-family: var(--display); font-size: 30px; color: var(--yellow); margin-top: 4px; }

.offer-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.offer-sp { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 2px dashed var(--yellow); background: var(--soft); }
.offer-sp__kit { position: relative; display: grid; place-items: center; background: var(--paper-2); border-radius: 12px; padding: 8px; }
.offer-sp__brand { position: absolute; bottom: 10px; font-family: var(--display); font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .9); color: #16231B; padding: 1px 8px; border-radius: 4px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-sp__body { display: flex; flex-direction: column; gap: 3px; }
.offer-sp__name { font-family: var(--display); font-size: 22px; line-height: 1.05; }
.offer-sp__amount { font-weight: 800; color: var(--green-text); font-size: 18px; }
.offer-sp__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.offer-sp__actions form { margin: 0; }
.board__goal--light { background: var(--yellow-soft); color: var(--ink); align-self: flex-start; }

.board-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; border-left: 6px solid var(--line); }
.board-card--great, .board-card--good { border-left-color: var(--green); }
.board-card--worried { border-left-color: var(--yellow); } .board-card--angry { border-left-color: var(--red); }
.board-card__obj { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; margin: 2px 0 6px; }
.board-card p { margin: 0 0 6px; }
.budget-line { margin-bottom: 14px; }
.budget-line meter.bar { width: 100%; margin: 6px 0 2px; }
.social-card__count { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; color: #C13584; }
.social-card__count strong { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--ink); }
.social-card__count span { font-size: 13px; color: var(--muted); }
.social-card__count .delta { font-weight: 800; font-size: 15px; }
.social-card meter.bar { width: 100%; margin: 4px 0 8px; }
.dash-tile--social { border-left: 6px solid #C13584; }
.dash-tile--social .dash-tile__mid small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); }
.budget-pill { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--green-soft); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }

.cmp-pick { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; margin-bottom: 16px; }
.cmp-pick__vs { text-align: center; font-family: var(--display); font-size: 20px; color: var(--muted); }
@media (min-width: 720px) { .cmp-pick { grid-template-columns: 1fr auto 1fr auto; } }
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cmp-head__p { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th[scope="row"] { font-weight: 600; font-size: 14px; text-align: center; padding: 5px 6px; width: 34%; color: var(--ink-2); }
.cmp__group { text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.cmp__val { display: table-cell; padding: 5px 4px; white-space: nowrap; }
.cmp__val strong { display: inline-block; min-width: 44px; text-align: center; border-radius: 6px; padding: 1px 4px; font-variant-numeric: tabular-nums; }
.cmp__val--l { text-align: right; }
.cmp__bar { display: inline-block; width: calc(100% - 52px); vertical-align: middle; }
.cmp__bar svg { width: 100%; height: 6px; display: block; }
.cmp__track { fill: var(--line-soft); } .cmp__fill { fill: var(--muted); }
.cmp__val.is-better strong { background: var(--green-soft); color: var(--green-text); } .cmp__val.is-better .cmp__fill { fill: var(--green); }
.cmp__val.is-worse strong { color: var(--muted); }
.tlog__kind { font-weight: 700; font-size: 14px; white-space: nowrap; }
.tlog__kind--in { color: var(--green-text); } .tlog__kind--out { color: var(--red); }

.tourn-card { display: grid; gap: 16px; }
@media (min-width: 720px) { .tourn-card { grid-template-columns: 140px 1fr; align-items: start; } }
.tourn-card__art svg { width: 100%; height: auto; border-radius: 10px; }
.tourn-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.tutorial { border: 2px solid var(--green); background: linear-gradient(135deg, var(--green-soft), var(--card) 60%); margin-bottom: 20px; }
.tutorial__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tutorial__steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tutorial__steps li div { display: flex; flex-direction: column; gap: 2px; }
.tutorial__check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field-line); font-weight: 800; }
.tutorial__steps li.is-done { opacity: .7; }
.tutorial__steps li.is-done .tutorial__check { background: var(--green-bg); border-color: var(--green); color: #FFFFFF; }
.tutorial__steps li.is-done strong { text-decoration: line-through; }

.chip--derby { background: #B3261E; color: #FFFFFF; margin-left: 6px; }
.derby-tag { color: #B3261E; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.ref-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-left: 8px; opacity: .9; }
.ref-chip__off { opacity: .3; }
.tuto-restart { margin-top: 10px; }
.board-card__conf { display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.board-card__conf strong { font-family: var(--display); font-size: 44px; line-height: 1; }
.board-card__conf strong small { font-size: 20px; }
.board-card__conf span { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.board-card__conf meter.bar { width: 90px; }
.merch-grid + .actions { margin-bottom: 20px; }
@media (min-width: 1100px) { .dash-strip:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .dash-strip > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* v2.7 : boutique — articles à débloquer, bonus */
.merch-card.is-locked { opacity: .92; background: var(--paper-2); border-style: dashed; }
.merch-card.is-locked .merch-icon { filter: grayscale(1); }
.chip--lock { background: var(--line-soft); color: var(--ink-2); font-size: 12px; display: inline-block; margin-top: 4px; }
.shop-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: var(--brand-dark); color: var(--on-dark); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.shop-empty strong { font-family: var(--display); font-size: 26px; display: block; }
.shop-empty .icon { color: var(--yellow); }
.offer--bonus .offer__icon { background: #E5DCF5; color: #5B2C83; }
.continue-bar__out { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.continue-bar__out strong { font-size: 14px; }
.offer__qty--bonus { font-size: 24px; line-height: 1.05; }
.notice--admin { background: var(--red-soft); }

/* ---------- v2.8 : en-tête du jeu, menus déroulants, langue compacte ---------- */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary .icon:last-child { transition: transform .15s; }
.dd[open] > summary .icon:last-child { transform: rotate(180deg); }
.dd__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid #33443A; color: var(--on-dark); font-weight: 700; font-size: 14px; }
.dd__btn:hover, .dd[open] > .dd__btn { border-color: var(--yellow); color: var(--yellow); }
.dd__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.dd__panel--right { left: auto; right: 0; }
.dd__panel a, .dd__panel button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.dd__panel a .icon, .dd__panel button .icon { color: var(--muted); flex: none; }
.dd__panel a:hover, .dd__panel button:hover { background: var(--line-soft); color: var(--ink); }
.dd__panel a[aria-current], .dd__panel a.is-current { background: var(--green-soft); font-weight: 700; }
.dd__panel a[aria-current] .icon { color: var(--green-text); }
.dd__panel .logout { margin: 0; border-top: 1px solid var(--line-soft); padding-top: 2px; margin-top: 2px; }
.dd__panel .logout button, .dd__panel .logout button .icon { color: var(--red); }
.dd__title { display: block; padding: 6px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dd__code { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 5px; background: var(--line-soft); font-size: 12px; font-weight: 700; }
.dd__panel a.is-current .dd__code { background: var(--green-bg); color: #FFFFFF; }
.dd__panel--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 460px; }

.site-header .dd__btn { color: var(--ink); border-color: var(--line); background: var(--card); }
.site-header .dd__btn:hover, .site-header .dd[open] > .dd__btn { border-color: var(--green); color: var(--green-text); }

.gh { position: relative; z-index: 60; background: var(--brand-dark); color: var(--on-dark); }
.gh__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.gh__club { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; color: var(--on-dark); text-decoration: none; }
.gh__club .badge { flex: none; }
.gh__club span { display: flex; flex-direction: column; min-width: 0; }
.gh__club strong { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh__club small { font-size: 12px; color: #AEB8B0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh__club:hover { color: var(--yellow); }
.gh__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.gh__money, .gh__fans { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--on-dark); text-decoration: none; font-size: 14px; white-space: nowrap; }
.gh__money .icon { color: var(--yellow); }
.gh__fans .icon { color: #AEB8B0; }
.gh__money:hover { color: var(--yellow); }
.gh__fans { display: none; }
.gh__icon { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #33443A; color: var(--on-dark); text-decoration: none; }
.gh__icon:hover, .dd[open] > .gh__icon { color: var(--yellow); border-color: var(--yellow); }
.gh__icon--shop { color: var(--yellow); }
.gh__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--yellow); color: var(--on-yellow); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.gh__avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: 13px; }
.dd__btn--avatar { padding: 0 6px 0 6px; }
.gh__wide, .gh__nav { display: none; }

.gh__drawer { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-dark); border-top: 1px solid #33443A; box-shadow: 0 16px 32px rgba(0, 0, 0, .35); max-height: calc(100vh - 60px); overflow-y: auto; padding: 14px 0 20px; }
.gh__drawer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.gh__drawer-stats div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.gh__drawer-stats span { font-size: 12px; color: #AEB8B0; }
.gh__drawer-stats strong { font-size: 16px; white-space: nowrap; }
.gh__drawer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gh__drawer-nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2; }
.gh__drawer-nav a .icon { color: #AEB8B0; flex: none; }
.gh__drawer-nav a[aria-current] { background: var(--yellow); color: var(--on-yellow); }
.gh__drawer-nav a[aria-current] .icon { color: var(--on-yellow); }
.gh__drawer-foot { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #33443A; }
.gh__drawer .dd__title { color: #AEB8B0; padding-left: 0; }
.gh__drawer-account a, .gh__drawer-account button { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 8px 0; border: 0; background: none; color: var(--on-dark); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.gh__drawer-account .icon { color: #AEB8B0; }
.gh__drawer-account .logout { margin: 0; }
.gh__drawer-account .logout button, .gh__drawer-account .logout .icon { color: #F0A49D; }
.gh__drawer-lang .langs a { min-width: 52px; border: 1px solid #33443A; }

@media (max-width: 380px) {
  .gh__club small { display: none; }
  .gh__money { padding: 0 8px; font-size: 13px; }
}
@media (min-width: 600px) {
  .gh__fans { display: inline-flex; }
}
@media (min-width: 900px) {
  .dd--burger { display: none; }
  .gh__wide { display: inline-flex; }
  details.gh__wide { display: block; }
  .gh__bar { padding-bottom: 0; }
  .gh__club { flex: 1 1 auto; padding-bottom: 8px; }
  .gh__tools { padding-bottom: 8px; }
  .gh__nav { display: flex; align-items: stretch; gap: 2px; order: 3; width: 100%; border-top: 1px solid rgba(255, 255, 255, .08); margin: 0 -8px; }
  .gh__nav > a, .gh__more { display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 12px; color: #D6DDD8; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; white-space: nowrap; }
  .gh__nav > a .icon, .gh__more .icon { color: #8FA096; }
  .gh__nav > a:hover, .gh__more:hover, .dd--more[open] > .gh__more { color: #FFFFFF; }
  .gh__nav > a[aria-current="page"], .gh__more[data-active] { color: #FFFFFF; border-bottom-color: var(--yellow); }
  .gh__nav > a[aria-current="page"] .icon, .gh__more[data-active] .icon { color: var(--yellow); }
  .dd--more { display: flex; }
  .dd--more .dd__panel { top: 100%; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .gh__nav > a .icon { display: none; }
  .gh__nav > a, .gh__more { padding: 0 10px; }
}
.dd--burger { position: static; }
.dd--burger[open] > summary .icon { transform: none; }
.gh__burger-close, .dd--burger[open] .gh__burger-open { display: none; }
.dd--burger[open] .gh__burger-close { display: inline-flex; }
.gh__burger-open, .gh__burger-close { line-height: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flash--info, :root:not([data-theme="light"]) .flash--success { color: #BFE3CB; } }
:root[data-theme="dark"] .flash--info, :root[data-theme="dark"] .flash--success { color: #BFE3CB; }
@media (max-width: 899px) { .gh__bar { flex-wrap: nowrap; } .gh__club { flex: 1 1 0; } }
@media (max-width: 360px) { .gh__money .icon { display: none; } .gh__tools { gap: 4px; } .gh__club .badge { width: 24px; } }

/* ---------- v2.9 : paliers, agents, centre de formation, sécurité, coupe d'Europe ---------- */
.notice--warn { background: var(--red-soft); color: var(--red); }
.tier-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.tier-badge--1 { background: var(--green-soft); color: var(--green-text); }
.tier-badge--2 { background: #DCE6F5; color: #2B5592; }
.tier-badge--3 { background: var(--yellow-soft); color: var(--yellow-text); }
.tier-badge--4 { background: var(--brand-dark); color: var(--yellow); }
.tiers { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tier--current { border: 2px solid var(--yellow); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.tier--locked { background: var(--paper-2); }
.tier__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tier__head > div { flex: 1; min-width: 0; }
.tier__head .h3 { margin: 0; }
.tier__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--line-soft); color: var(--ink-2); }
.tier--done .tier__num { background: var(--green-bg); color: #FFFFFF; }
.tier--current .tier__num { background: var(--yellow); color: var(--on-yellow); }
.tier__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.tier__list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.tier__list li .icon { flex: none; margin-top: 2px; }
.tier__list li.is-on .icon { color: var(--gold); fill: var(--yellow); }
.tier__list li.is-off { color: var(--muted); }
.chip--pen { background: var(--red-soft); color: var(--red); font-size: 12px; padding: 0 6px; }
.chip--tv, .tv-tag { background: #1F4E99; color: #FFFFFF; }
.tv-tag { padding: 0 6px; border-radius: 4px; font-size: 12px; letter-spacing: .06em; }
.contract-facts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.contract-facts li { display: flex; align-items: center; gap: 6px; }
.contract-facts .icon { color: var(--muted); }
.clauses { margin: 8px 0; display: grid; gap: 4px; }
.academy-card__head { display: flex; align-items: center; gap: 12px; }
.academy-card__head > div { flex: 1; min-width: 0; }
.academy-card__head .h2 { margin: 0; }
.academy-dots { display: inline-flex; gap: 4px; }
.academy-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.academy-dots i.is-on { background: var(--yellow); }
.academy-form { gap: 12px; flex-wrap: wrap; }
.security-pick { display: grid; gap: 8px; }
@media (min-width: 700px) { .security-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } .security-pick .btn { justify-self: start; } }
.security-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); }
.security-opt.is-current { border-color: var(--green); background: var(--green-soft); }
.security-opt input { margin-top: 4px; accent-color: var(--green); }
.security-opt span { display: flex; flex-direction: column; gap: 2px; }
.security-opt small { font-size: 13px; }
.licence-fin--ok { border-left: 4px solid var(--green); }
.licence-fin--risk { border-left: 4px solid var(--red); }
.staff-card.is-locked { opacity: .75; border-style: dashed; }
.staff-icon--director { background: #E2DDF2; color: #5B2C83; }
.staff-icon--analyst { background: #D6EEF2; color: #1D6A78; }
.staff-icon--doctor { background: var(--red-soft); color: var(--red); }
.bracket--euro .tie.is-me { border-color: #1F4E99; }

/* ---------- v2.9.2 : courrier compact, pages légales, bandeau cookies ---------- */
.mail-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mail-filters a { flex: none; gap: 6px; }
.pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--line-soft); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.pills a[aria-current="page"] .pill-count { background: rgba(255, 255, 255, .2); color: inherit; }
.mailbox { padding-top: 6px; }
.mailbox__day { margin: 14px 0 4px; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mailbox__day:first-child { margin-top: 4px; }
.mailbox__list { list-style: none; margin: 0; padding: 0; }
.mailbox__list > li + li { border-top: 1px solid var(--line-soft); }
.mail-item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "icon title chip" "icon excerpt excerpt"; column-gap: 10px; align-items: center; padding: 10px 4px; border-radius: 8px; }
.mail-item > summary::-webkit-details-marker { display: none; }
.mail-item > summary:hover { background: var(--line-soft); }
.mail-item__icon { grid-area: icon; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line-soft); color: var(--ink-2); align-self: start; }
.mail-item__title { grid-area: title; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item .chip { grid-area: chip; font-size: 12px; }
.mail-item__excerpt { grid-area: excerpt; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item[open] .mail-item__excerpt { display: none; }
.mail-item[open] .mail-item__title { white-space: normal; }
.mail-item__body { padding: 0 4px 12px 46px; }
.mail-item__body p { margin: 0 0 8px; }
.mail-item.is-unread .mail-item__title { font-weight: 800; }
.mail-item.is-unread .mail-item__icon { box-shadow: 0 0 0 2px var(--yellow); }
.mail-item--match .mail-item__icon { background: var(--green-soft); color: var(--green-text); }
.mail-item--squad .mail-item__icon { background: #DCE6F5; color: #2B5592; }
.mail-item--money .mail-item__icon { background: var(--yellow-soft); color: var(--gold); }
.mail-item--board .mail-item__icon { background: #E2DDF2; color: #5B2C83; }
.pager--mail { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
@media (min-width: 900px) {
  .decisions--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .decisions--grid .decision { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; }
}
.legal section { margin-bottom: 18px; }
.legal p { line-height: 1.6; }
.legal-kv { margin: 0; }
.legal-table code { font-size: 13px; }
.accept-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--brand-dark); color: var(--on-dark); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25); padding-bottom: env(safe-area-inset-bottom); }
.cookie-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.cookie-bar p { margin: 0; font-size: 14px; flex: 1 1 260px; }
.cookie-bar a { color: var(--yellow); }
.cookie-bar form { margin: 0; }
.cookie-bar .btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
body.game .cookie-bar { bottom: 64px; }
@media (min-width: 900px) { body.game .cookie-bar { bottom: 0; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal .h3 { font-size: 22px; margin: 22px 0 8px; }

/* ---------- v2.9.3 : pelouse, déplacements, événements des pros ---------- */
.pitch-card { display: grid; gap: 16px; }
@media (min-width: 700px) { .pitch-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; } }
.pitch-card__visual svg { width: 100%; height: auto; display: block; }
.pitch-grass { fill: #2E7444; }
.pitch-stripe { fill: #357F4C; }
.pitch-card--mid .pitch-grass { fill: #4C7A3A; } .pitch-card--mid .pitch-stripe { fill: #56843F; }
.pitch-card--bad .pitch-grass { fill: #6E7A3C; } .pitch-card--bad .pitch-stripe { fill: #778343; }
.pitch-wear { fill: #A68A5B; opacity: .75; }
.pitch-lines { stroke: #FFFFFF; stroke-opacity: .7; stroke-width: 2; }
.pitch-card__state strong { font-family: var(--display); font-size: 48px; line-height: 1; }
.pitch-card__state strong small { font-size: 18px; color: var(--muted); }
.pitch-card__state > span { display: block; font-weight: 700; margin: 4px 0 8px; }
.pitch-card__state meter { width: 100%; }
.security-opt.is-off { opacity: .55; cursor: not-allowed; }

/* ---------- v2.9.4 : contact, annonces, administration ---------- */
.announce { font-weight: 600; font-size: 14px; padding: 10px 0; }
.announce--info { background: #DCE6F5; color: #1F3F73; }
.announce--warn { background: var(--red-soft); color: var(--red); }
.announce--party { background: var(--yellow); color: var(--on-yellow); }
.auth-box--wide { max-width: 720px; }
.contact-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-kinds legend { width: 100%; margin-bottom: 6px; }
.contact-kind { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--field-line); border-radius: 20px; cursor: pointer; background: var(--card); font-weight: 600; font-size: 14px; }
.contact-kind input { accent-color: var(--green); }
.contact-kind.is-current, .contact-kind:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.notice--ok { background: var(--green-soft); }
.admin-chart--wide { width: 100%; height: 150px; }
.admin-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-charts .card { margin: 0; }
.admin-meter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.admin-meter-list li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 56px; align-items: center; gap: 10px; font-size: 14px; }
.admin-meter-list li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-meter-list strong { text-align: right; }
.admin-meter { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.admin-meter i { display: block; height: 100%; background: var(--green-bg); }
.pills-sep { width: 1px; background: var(--line); margin: 0 4px; }
.admin-message { white-space: normal; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; line-height: 1.55; }
.admin-message--reply { background: var(--green-soft); }
.activity-grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; max-width: 360px; margin-bottom: 6px; }
.activity-grid span { aspect-ratio: 1; border-radius: 3px; background: var(--line-soft); }
.activity-grid span.is-on { background: var(--green-bg); }
.admin-meter i.w-0 { width: 0%; }
.admin-meter i.w-1 { width: 5%; }
.admin-meter i.w-2 { width: 10%; }
.admin-meter i.w-3 { width: 15%; }
.admin-meter i.w-4 { width: 20%; }
.admin-meter i.w-5 { width: 25%; }
.admin-meter i.w-6 { width: 30%; }
.admin-meter i.w-7 { width: 35%; }
.admin-meter i.w-8 { width: 40%; }
.admin-meter i.w-9 { width: 45%; }
.admin-meter i.w-10 { width: 50%; }
.admin-meter i.w-11 { width: 55%; }
.admin-meter i.w-12 { width: 60%; }
.admin-meter i.w-13 { width: 65%; }
.admin-meter i.w-14 { width: 70%; }
.admin-meter i.w-15 { width: 75%; }
.admin-meter i.w-16 { width: 80%; }
.admin-meter i.w-17 { width: 85%; }
.admin-meter i.w-18 { width: 90%; }
.admin-meter i.w-19 { width: 95%; }
.admin-meter i.w-20 { width: 100%; }
.contact-kinds + .fields, textarea { font: inherit; }
.field textarea, .admin-actions textarea, .stack textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); width: 100%; resize: vertical; }
.field textarea:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }

/* ---------- Page Compte (2.9.5) ---------- */
.account { max-width: 1040px; padding-top: 18px; }
.account-hero { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px 16px; align-items: center; margin-bottom: 14px; }
.account-hero__avatar { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-family: var(--display); font-size: 26px; font-weight: 800; }
.account-hero__id { min-width: 0; }
.account-hero__id .h1 { margin: 0; overflow-wrap: anywhere; }
.account-hero__id p { margin: 2px 0 0; }
.account-hero__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.account-hero__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.account-hero__stats div { background: var(--line-soft); border-radius: 10px; padding: 8px 12px; }
.account-hero__stats dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.account-hero__stats dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; }
.account-hero__links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--line-soft); }
.account-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; transition: border-color .15s, background .15s; }
.account-link:hover, .account-link:focus-visible { border-color: var(--yellow); background: var(--line-soft); }
.account-link__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--yellow-soft); color: var(--yellow-text); }
@media (max-width: 520px) {
  .account-link { flex-direction: column; gap: 4px; min-height: 72px; font-size: 13px; padding: 8px 4px; }
}
@media (min-width: 760px) {
  .account-hero { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .account-hero__avatar { width: 64px; height: 64px; font-size: 30px; }
  .account-hero__stats { grid-column: auto; min-width: 280px; }
}
.account-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: var(--line-soft); color: var(--ink-2); }
.account-tag--ok { background: var(--green-soft); color: var(--green-text); }
.account-tag--warn { background: var(--yellow-soft); color: var(--yellow-text); }
.account-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.account-tabs a { flex: none; }
@media (max-width: 520px) {
  .account-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .account-tabs a { justify-content: center; padding: 0 8px; }
}
.account .cols--even { margin-bottom: 20px; }
.account .cols--even .card { height: 100%; }
.device-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.device-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.device-list li:last-child { border-bottom: 0; }
.device-list__icon { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line-soft); color: var(--ink-2); }
.device-list__name { display: grid; min-width: 0; }
.device-list__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-list form { margin: 0; }
details.account-logout-others[open] { background: var(--line-soft); }
.account .card--danger details.confirm summary { color: var(--red); font-weight: 600; }

/* ---------- 2.10 : défis, parrainage, ligues, classements, partage, trophées, naming, boutique, santé ---------- */
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--green-bg); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--green-bg); border-radius: 999px; }

.chal-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
@media (min-width: 640px) { .chal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .chal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chal { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--green); }
.chal--2 { border-top-color: var(--yellow); }
.chal--3 { border-top-color: var(--red); }
.chal--bonus { border-top-color: var(--gold); background: var(--soft); }
.chal__tier { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.chal__title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 0; }
.chal__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.chal__count { font-weight: 700; color: var(--ink-2); }
.chal__reward { font-weight: 800; color: var(--yellow-text); display: inline-flex; align-items: center; gap: 4px; }
.chal__reward.is-got { color: var(--green-text); }
.chal.is-done { background: var(--green-soft); }
.chal.is-done .chal__title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--green); }
.chal-tile__list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 10px; }
.chal-tile__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.chal-tile__check { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line-soft); font-weight: 800; font-size: 13px; color: var(--ink-2); }
.chal-tile__list li.is-done .chal-tile__check { background: var(--green-bg); color: #FFFFFF; }
.chal-tile__text { display: grid; gap: 4px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.chal-tile__reward { font-weight: 800; font-size: 13px; color: var(--yellow-text); }

.ref-hero { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
@media (min-width: 760px) { .ref-hero { grid-template-columns: 72px minmax(0, 1fr); } }
.ref-hero__gift { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); }
.ref-hero__body { display: grid; gap: 10px; min-width: 0; }
.ref-hero__body .h2 { margin: 0; }
.ref-link input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.ref-code, .pl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; font-weight: 800; }
.pl-code { font-size: 26px; margin: 4px 0 12px; color: var(--ink); }
.ref-list li { align-items: center; }
.invite-note { display: flex; align-items: center; gap: 8px; }

.share-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-bar .btn { gap: 6px; }
.share-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 18px; }
.share-page { max-width: 900px; padding-top: 24px; padding-bottom: 40px; }
.share-figure { margin: 0 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.share-figure img { display: block; width: 100%; height: auto; }
.share-cta { margin-top: 22px; }

.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pl-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.pl-card:hover, .pl-card:focus-visible { border-color: var(--yellow); }
.pl-card > span:last-child { display: grid; min-width: 0; }
.pl-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--yellow-text); }
.pl-mini { display: flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.pl-mini span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-invite { margin-bottom: 18px; }
.code-input { text-transform: uppercase; letter-spacing: .14em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rank-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.rank-tabs a { flex: none; }
.pres-link { color: inherit; text-decoration: none; }
.pres-link:hover strong, .pres-link:focus-visible strong { text-decoration: underline; }

.fiche { padding-top: 22px; padding-bottom: 40px; }
.fiche-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.fiche-hero .badge { flex: none; }
.fiche-hero__id { min-width: 0; }
.fiche-hero__id .h1 { margin: 2px 0 4px; overflow-wrap: anywhere; }
.fiche-hero__id p { margin: 0; }
.fiche-hero__div { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--yellow-text); }
@media (max-width: 520px) { .fiche-hero { flex-direction: column; text-align: center; } .fiche-hero .badge { width: 72px; height: auto; } }
.fiche-share { margin-top: 20px; }

.trophy-count { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .trophy-count { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trophy-count__item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.trophy-count__item > div { display: grid; }
.trophy-count__item strong { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.trophy-count__item span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.trophy-shelf { list-style: none; margin: 0; padding: 18px 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 10px;
  background: linear-gradient(to bottom, transparent 0, transparent calc(100% - 14px), var(--line) calc(100% - 14px), var(--line) 100%); }
.trophy-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 18px; }
.trophy-item strong { font-size: 14px; line-height: 1.2; }
.trophy-item small { color: var(--muted); font-size: 12px; }
.trophy-item__share { font-size: 12px; }
.trophy .tr-gold { fill: #E8B923; } .trophy .tr-gold-d { fill: #C9971A; }
.trophy .tr-silver { fill: #C9D1D6; } .trophy .tr-silver-d { fill: #9EA9B0; }
.trophy .tr-bronze { fill: #D08A3C; } .trophy .tr-ribbon { fill: #24603A; }
.trophy .tr-star { fill: #FFF6D2; } .trophy .tr-shine { stroke: #FFF6D2; stroke-width: 2; opacity: .7; }
.trophy .tr-stem { fill: #C9971A; } .trophy .tr-base { fill: #5C4630; } .trophy .tr-plinth { fill: #3D2E20; }
.trophy--cup .tr-stem { fill: #9EA9B0; }
.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 8px; color: var(--muted); }
.empty-state .trophy { opacity: .35; filter: grayscale(1); }

.record-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 12px; }
@media (min-width: 640px) { .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .record-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.record { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); border-left: 4px solid var(--green); }
.record--bad { border-left-color: var(--red); }
.record.is-empty { opacity: .6; border-left-color: var(--line); }
.record__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.record__value { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.legend-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); vertical-align: 2px; }

.naming-card { display: grid; gap: 16px; }
@media (min-width: 760px) { .naming-card { grid-template-columns: 260px minmax(0, 1fr); align-items: center; } }
.naming-card__sign { display: grid; place-items: center; min-height: 110px; padding: 14px; border-radius: 12px; background: var(--night); color: #FFFFFF; font-family: var(--display); font-weight: 800;
  font-size: 26px; text-align: center; line-height: 1.1; border: 3px solid var(--yellow); text-transform: uppercase; letter-spacing: .04em; }
.naming-offers { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 12px; }
@media (min-width: 760px) { .naming-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.naming-offer { display: flex; flex-direction: column; gap: 6px; }
.naming-offer__name { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.naming-offer__amount { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--green-text); }
.naming-offer form { margin-top: auto; padding-top: 8px; }
.locked-card .chip { margin-bottom: 8px; display: inline-block; }

.store-card { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 760px) { .store-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.store-card__steps { display: flex; gap: 6px; }
.store-step { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--line-soft); color: var(--muted); }
.store-step.is-on { background: var(--green-bg); color: #FFFFFF; }
.store-card__body .h2 { margin: 0 0 4px; }

.health-sum { font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); }
.health-sum--warn { background: var(--yellow-soft); color: var(--yellow-text); }
.health-sum--bad { background: var(--red-soft); color: var(--red); }
.health-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
@media (min-width: 900px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.health-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.health { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.health__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-bg); }
.health--warn .health__dot { background: var(--gold); }
.health--bad .health__dot { background: var(--red); }
.health__label { font-weight: 700; }
.health__detail { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.log-box { margin: 8px 0; padding: 12px; max-height: 420px; overflow: auto; background: var(--night); color: #D9E2DC; border-radius: 10px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.backup-dl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mini-input { max-width: 150px; min-height: 36px; padding: 4px 8px; }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .legend-table td, .legend-table th { padding-left: 6px; padding-right: 6px; }
  .legend-table abbr.pos { display: none; }
}
.fiche > .card, .fiche > .cols { margin-bottom: 16px; }

/* ---------- 2.11 : composition sur le terrain ---------- */
.pitch-hint { margin: -4px 0 10px; }
.tpitch { max-width: 520px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); user-select: none; -webkit-user-select: none; }
.tpitch__svg { display: block; width: 100%; height: auto; }
.tpitch__grass { fill: #2E7D46; }
.tpitch__stripe { fill: #2A7441; }
.tpitch__lines { stroke: rgba(255, 255, 255, .78); stroke-width: .45; }
.tpitch__dot { fill: rgba(255, 255, 255, .78); }
.tok { cursor: pointer; touch-action: none; outline: none; }
.tok__hit { fill: transparent; }
.tok__shirt { stroke: #16231B; stroke-width: .5; }
.tok__ring { fill: none; stroke-width: 1.1; }
.tok__ring--good { stroke: #8EE3A8; }
.tok__ring--ok { stroke: #F2C230; }
.tok__ring--bad { stroke: #FF8A80; }
.tok__ring--empty { stroke: rgba(255, 255, 255, .85); stroke-dasharray: 1.4 1.1; fill: rgba(255, 255, 255, .12); }
.tok__rate { font: 800 4.6px/1 var(--display), sans-serif; text-anchor: middle; }
.tok__name { font: 700 3.4px/1 var(--body), sans-serif; text-anchor: middle; fill: #FFFFFF; paint-order: stroke; stroke: rgba(10, 30, 16, .85); stroke-width: .9px; stroke-linejoin: round; }
.tok__pos { font: 800 2.7px/1 var(--body), sans-serif; text-anchor: middle; fill: rgba(255, 255, 255, .9); letter-spacing: .1px; }
.tok__plus { font: 700 5px/1 var(--body), sans-serif; text-anchor: middle; fill: #FFFFFF; }
.tok__warn { fill: #F2C230; stroke: #16231B; stroke-width: .35; }
.tok__warn--bad { fill: #E5484D; }
.tok__halo { fill: none; stroke-width: 1.2; stroke-dasharray: 2 1.2; opacity: .95; }
.tok__halo--good { stroke: #8EE3A8; }
.tok__halo--ok { stroke: #F2C230; }
.tok__halo--bad { stroke: #FF8A80; }
.tok.is-sel .tok__ring, .tok:focus-visible .tok__ring { stroke: #FFFFFF; stroke-width: 1.8; }
.tok.is-sel .tok__shirt { filter: drop-shadow(0 0 1.2px #FFFFFF); }
@media (hover: hover) { .tok:hover .tok__ring { stroke-width: 1.6; } }
.pitch-sub { margin: 16px 0 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer; touch-action: manipulation; max-width: 100%; }
.pchip .pos { min-width: 30px; font-size: 11px; padding: 1px 4px; }
.pchip__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.pchip__info { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pchip--empty { border-style: dashed; color: var(--muted); padding-left: 12px; }
.pchip--off { opacity: .88; }
.pchip--off .pchip__info { color: var(--red); }
.pchip.is-sel { border-color: var(--yellow); background: var(--yellow-soft); box-shadow: 0 0 0 2px var(--yellow); }
.has-sel .pchip:not(.is-sel), .has-sel .tok { cursor: copy; }
.pitch-dirty { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--yellow-soft); color: var(--yellow-text); font-weight: 700; }
.drag-ghost { position: fixed; z-index: 1000; transform: translate(-50%, -120%); pointer-events: none; padding: 6px 12px; border-radius: 999px; background: var(--night); color: #FFFFFF;
  font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); border: 2px solid var(--yellow); }
.is-dragging .tok__hit { fill: rgba(255, 255, 255, .06); }
.lineup-list > summary { cursor: pointer; padding: 2px 0; }
.lineup-list[open] > summary { margin-bottom: 8px; }
.tok, .pchip { -webkit-tap-highlight-color: transparent; }

/* ---------- 2.12 : comptes, causeries, carrière, saisons, justificatifs, économie ---------- */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.acc-head .is-disabled { pointer-events: none; opacity: .4; }
.acc-card { display: grid; gap: 18px; }
@media (min-width: 900px) { .acc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
.acc-block .h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-cat > summary, .acc-cat--flat { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); }
.acc-cat > summary { cursor: pointer; list-style: none; }
.acc-cat > summary::-webkit-details-marker { display: none; }
.acc-cat > summary span::before { content: '▸'; display: inline-block; width: 16px; color: var(--muted); transition: transform .15s; }
.acc-cat[open] > summary span::before { transform: rotate(90deg); }
.acc-cat--flat span::before { content: ''; display: inline-block; width: 16px; }
.acc-items { list-style: none; margin: 0 0 6px; padding: 4px 0 4px 20px; display: grid; gap: 4px; font-size: 14px; }
.acc-items li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 6px; border-radius: 6px; background: var(--paper-2); }
.acc-chart { width: 100%; height: 150px; display: block; }
.acc-chart__axis { stroke: var(--line); stroke-width: .3; }
.acc-chart__in { fill: var(--green); }
.acc-chart__out { fill: var(--red); opacity: .75; }
.acc-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.acc-dot--in { background: var(--green-bg); }
.acc-dot--out { background: var(--red); opacity: .75; margin-left: 8px; }
.acc-attendance { margin: -4px 0 0; }

.ptalk { display: grid; gap: 10px; }
.ptalk__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.ptalk__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ptalk__opt { display: grid; gap: 2px; align-content: start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; cursor: pointer; min-height: 48px; }
.ptalk__opt strong { font-size: 15px; }
.ptalk__opt span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.ptalk__opt:hover, .ptalk__opt:focus-visible { border-color: var(--yellow); }
.ptalk__opt.is-on { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.ptalk__advice { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ptalk--compact { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ptalk--compact .ptalk__head strong, .ptalk--compact .ptalk__head .muted, .ptalk--compact .ptalk__advice { color: #FFFFFF; }
.ptalk--compact .ptalk__opt { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #FFFFFF; text-align: center; padding: 8px 6px; min-height: 42px; }
.ptalk--compact .ptalk__opt.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); box-shadow: none; }
@media (max-width: 520px) { .ptalk__opts:not(.ptalk--compact .ptalk__opts) { grid-template-columns: 1fr; } }
.ptalk--ht { border: 2px solid var(--yellow); margin: 14px 0; }

.pres-hero { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 640px) { .pres-hero { grid-template-columns: 72px minmax(0, 1fr); align-items: center; } }
.pres-hero__badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--line-soft); color: var(--ink-2); }
.pres-hero__badge--2, .pres-hero__badge--3 { background: var(--green-soft); color: var(--green-text); }
.pres-hero__badge--4, .pres-hero__badge--5 { background: var(--yellow); color: var(--on-yellow); }
.pres-hero__body { display: grid; gap: 6px; }
.pres-hero__body .h2 { margin: 0; }

.season-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); color: #FFFFFF; background: linear-gradient(120deg, #24603A, #16231B); }
.season-banner p { margin: 4px 0 10px; color: rgba(255, 255, 255, .9); }
.season-banner__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #F2C230; }
.season-banner--christmas { background: linear-gradient(120deg, #8E1F18, #24603A); }
.season-banner--carnival { background: linear-gradient(120deg, #5B2C83, #D9661F); }
.season-banner--summer { background: linear-gradient(120deg, #D9661F, #1F4E99); }
.season-banner--halloween { background: linear-gradient(120deg, #16231B, #D9661F); }
.chal--4 { border-top-color: #5B2C83; background: linear-gradient(180deg, rgba(91, 44, 131, .08), transparent 60%), var(--card); }
.event-card--seasonal { box-shadow: 0 0 0 2px var(--yellow) inset; }

.receipt { max-width: 820px; padding-top: 20px; padding-bottom: 40px; }
.receipt__actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.receipt__paper { background: #FFFFFF; color: #16231B; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 18px; }
.receipt__paper .muted { color: #5C665F; }
.receipt__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.receipt__brand { font-family: var(--display); font-size: 26px; font-weight: 800; }
.receipt__meta { text-align: right; }
.receipt__meta .h2 { margin: 0 0 6px; color: #16231B; }
.receipt__paper .table th, .receipt__paper .table td { color: #16231B; border-color: #DDD7C8; }
@media print {
  .no-print, .site-header, .site-footer, .cookie-bar, .install-bar, .announce, .skip { display: none !important; }
  body { background: #FFFFFF !important; }
  .receipt__paper { border: 0; padding: 0; }
}
.eco-list li { grid-template-columns: minmax(0, 1fr) 110px 110px; }
.admin-meter i.is-neg { background: var(--red); }

/* 2.12 : historique des clubs dirigés */
.hist-table .player-cell svg { flex-shrink: 0; }
@media (max-width: 719px) {
  .hist-table td:first-child { justify-content: flex-start; padding-bottom: 6px; }
  .hist-table td:first-child::before { display: none; }
}

/* ===== 2.13 : ouverture, capacité, hors serveur ===== */
.launch-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.launch-head__num { display: flex; align-items: baseline; gap: 4px; font-family: var(--display, inherit); }
.launch-head__num strong { font-size: 48px; line-height: 1; font-weight: 800; }
.launch-head__num span { font-size: 20px; color: var(--muted); font-weight: 700; }
.launch-head__body { display: grid; gap: 8px; }
.admin-meter--lg { height: 14px; border-radius: 7px; }
.launch-confirm { grid-column: 2; margin: 4px 0 0; }
.launch-steps { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; }
.launch-steps li { padding-left: 4px; }
.cap-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cap-grid div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cap-grid span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.cap-grid strong { font-size: 20px; }
.offsite-form .fields { margin: 0; }

/* Accueil (2.13) : téléphone avec les vraies captures, galerie, « et aussi », questions */
.hero--shots { align-items: center; }
.hero__trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--green-text); }
.phone { justify-self: center; width: min(78vw, 300px); }
.phone__screen { position: relative; aspect-ratio: 390 / 844; border-radius: 38px; overflow: hidden; border: 10px solid #0E1712; background: #0E1712;
  box-shadow: 0 30px 60px -20px rgba(22, 35, 27, .45), 0 0 0 1px rgba(22, 35, 27, .2); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: phone-fade 20s infinite; }
.phone__screen img:nth-child(1) { animation-delay: 0s; }
.phone__screen img:nth-child(2) { animation-delay: 5s; }
.phone__screen img:nth-child(3) { animation-delay: 10s; }
.phone__screen img:nth-child(4) { animation-delay: 15s; }
@keyframes phone-fade { 0%, 22% { opacity: 1; } 25%, 97% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .phone__screen img { animation: none; }
  .phone__screen img:first-child { opacity: 1; }
  .phone__screen img:not(:first-child) { display: none; }
}
.shots { list-style: none; margin: 28px -16px 0; padding: 0 16px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; }
.shot { scroll-snap-align: start; }
.shot__frame { aspect-ratio: 390 / 600; border-radius: 22px; overflow: hidden; border: 6px solid #0E1712; background: #0E1712; box-shadow: 0 18px 36px -18px rgba(22, 35, 27, .45); }
.shot__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot h3 { margin: 14px 0 6px; font-size: 21px; }
.shot p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 28px 0 0; padding: 0; }
  .phone { width: 320px; }
}
.section .route .route__title { font-size: 15px; margin: 0 0 14px; }
.band-soft { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.how { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .how { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; } }
.steps--stack { grid-template-columns: 1fr !important; gap: 22px; }
.steps--stack .step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps--stack .step h3 { margin-top: 4px; }
.more-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.more-grid__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-text); }
.more-grid strong { display: block; font-size: 17px; margin-bottom: 2px; }
.more-grid span { color: var(--ink-2); font-size: 15px; }
.section--tight { padding-top: 24px; }
.home-faq { display: grid; gap: 10px; margin: 20px 0 16px; max-width: 860px; }

/* Aide (2.13) */
.help__intro { max-width: 760px; }
.help__search { position: relative; max-width: 640px; margin: 0 0 14px; }
.help__search > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.help__search input { width: 100%; font: inherit; font-size: 17px; min-height: 52px; padding: 12px 16px 12px 44px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--card); color: var(--ink); }
.help__search input:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
.help__none { margin: 0 0 14px; color: var(--muted); }
.help__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.help__nav .chip { text-decoration: none; }
.help__sections { display: grid; gap: 16px; }
@media (min-width: 1000px) { .help__sections { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.help__sec { scroll-margin-top: 90px; }
.help__sec .h2 { margin-bottom: 8px; }
.help__item { border-top: 1px solid var(--line-soft); }
.help__item:first-of-type { border-top: 0; }
.help__item summary { cursor: pointer; list-style: none; padding: 12px 30px 12px 0; font-weight: 700; position: relative; min-height: 44px; }
.help__item summary::-webkit-details-marker { display: none; }
.help__item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; line-height: 1; color: var(--green-text); font-weight: 700; }
.help__item[open] summary::after { content: "–"; }
.help__item p { margin: 0 0 14px; color: var(--ink-2); }
.home-faq .help__item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.help__still { margin: 20px 0 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.help__still p { margin: 0; }
.help-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Quoi de neuf ? (2.13) */
.wn-card { border: 2px solid var(--yellow); background: linear-gradient(180deg, var(--yellow-soft), var(--card) 70%); margin-bottom: 16px; }
.wn-card__head { display: flex; gap: 12px; align-items: flex-start; }
.wn-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--yellow); color: var(--on-yellow); }
.wn-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow-text); }
.wn-card .h2 { margin: 2px 0 8px; }
.wn-body p { margin: 0 0 10px; }
.wn-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.wn-item .h2 { margin-bottom: 8px; }
.wn-item__meta { margin-bottom: 4px; }
.wn-lang { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; display: grid; gap: 10px; }
.wn-lang legend { font-weight: 700; padding: 0 6px; }
.wn-lang textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); width: 100%; }
.wn-admin-list { display: grid; gap: 12px; }
.wn-admin-list li { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }

/* Objectifs de carrière (2.13) */
.goal-grid { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 700px) { .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.goal { display: grid; gap: 12px; align-content: start; }
.goal__head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.goal__head p { margin: 2px 0 0; }
.goal__name { font-size: 20px; margin: 0; }
.goal__tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.goal__tiers li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.goal__pip { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.goal__tiers li.is-done { color: var(--ink); font-weight: 700; }
.goal__tiers li.is-done.goal__tier--bronze .goal__pip { background: #C0793F; border-color: #C0793F; }
.goal__tiers li.is-done.goal__tier--silver .goal__pip { background: #A9AFB4; border-color: #A9AFB4; }
.goal__tiers li.is-done.goal__tier--gold .goal__pip { background: #E0A800; border-color: #E0A800; }
.goal__tiers li.is-done.goal__tier--legend .goal__pip { background: var(--green-bg); border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.goal__target { overflow-wrap: anywhere; }
.goal__bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.goal__bar i { display: block; height: 100%; background: var(--green-bg); }
.goal__next { margin: 0; color: var(--ink-2); }
.goal__next--done { color: var(--green-text); font-weight: 700; }
.medal { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--line-soft); color: var(--muted); border: 3px solid var(--line); }
.medal--bronze { background: radial-gradient(circle at 35% 30%, #F0C9A0, #B0723A); color: #FFFFFF; border-color: #8C5526; }
.medal--silver { background: radial-gradient(circle at 35% 30%, #F4F4F4, #9DA3A8); color: #253039; border-color: #7E858B; }
.medal--gold { background: radial-gradient(circle at 35% 30%, #FFE58A, #D99A0B); color: #3B2A00; border-color: #A87400; }
.medal--legend { background: radial-gradient(circle at 35% 30%, #4E9466, #16231B); color: var(--yellow); border-color: var(--yellow); }
.medal-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.medal-row .medal { width: 40px; height: 40px; border-width: 2px; }

/* 2.14 : sous-navigation des sections (Effectif, Buvette, Stade, Compte, Trophées, Classements) — onglets soulignés,
   une seule ligne qui défile au doigt, collée en haut de l'écran sur téléphone. */
.subnav-bar { border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.subnav { display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
  font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; scroll-snap-align: start; border-radius: 10px 10px 0 0; }
.subnav a:hover { color: var(--ink); background: var(--line-soft); }
.subnav a[aria-current="page"] { color: var(--ink); }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green-bg); }
@media (max-width: 719px) {
  .subnav-bar { position: sticky; top: 0; z-index: 30; margin-left: -16px; margin-right: -16px; padding: 0 6px; background: var(--paper);
    box-shadow: 0 6px 10px -10px rgba(22, 35, 27, .35); }
  .subnav a { padding: 0 12px; }
  .subnav.is-more-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .subnav.is-more-left { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
  .subnav.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subnav a[aria-current="page"]::after { background: var(--yellow); } }
:root[data-theme="dark"] .subnav a[aria-current="page"]::after { background: var(--yellow); }

/* Choix de vue à l'intérieur d'une page (Semaine / Saison / Matchs) : contrôle segmenté. */
.segmented { display: inline-flex; padding: 4px; gap: 4px; margin: 0 0 16px; border-radius: 12px; background: var(--line-soft); border: 1px solid var(--line); max-width: 100%; }
.segmented a { flex: 1 1 0; display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.segmented a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 35, 27, .18); }
@media (max-width: 719px) { .segmented { display: flex; width: 100%; } .segmented a { padding: 0 8px; } }

/* 2.15 : derby */
.season-banner--derby { background: linear-gradient(120deg, #8E1F18, #16231B); }
.derby-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.derby-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 15px; }
.derby-list small { font-size: 12px; }
.mercato-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 15px; }
.mercato-bar--open { background: var(--green-soft); color: var(--green-text); }
.mercato-bar--hot { background: var(--yellow-soft); color: var(--yellow-text); border: 1.5px solid var(--yellow); }
.mercato-bar--closed { background: var(--line-soft); color: var(--ink-2); }
.mercato-bar strong { color: inherit; }
.streak-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; width: fit-content; max-width: 100%;
  background: var(--yellow-soft); color: var(--yellow-text); font-size: 15px; }
.streak-chip span { color: var(--ink-2); font-size: 14px; }
.chip--warn { background: var(--yellow-soft); color: var(--yellow-text); }
.rush-back { margin-top: 10px; }
.report-box { margin: 0 0 16px; color: var(--muted); }
.report-box summary { cursor: pointer; }
.report-box form { margin-top: 8px; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.funnel__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.funnel__num { font-family: var(--display); font-size: 24px; font-weight: 800; }
.funnel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 4px; }
.player-hero .rush-back summary { color: #FFFFFF; text-decoration: underline; cursor: pointer; font-weight: 600; }
.player-hero .rush-back p { color: rgba(255, 255, 255, .85); }
.mercato-bar { line-height: 1.4; }

/* 2.16 : type d'entreprise et panneaux autour du terrain */
.sector-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.sector-chip--regional { color: var(--green-text); border-color: var(--green-soft); background: var(--green-soft); }
.sector-chip--national { color: var(--ink); background: var(--yellow-soft); border-color: var(--yellow-soft); }
.board .sector-chip, .ad-board .sector-chip { background: rgba(255, 255, 255, .16); border-color: transparent; color: #FFFFFF; }
.ad-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ad-count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--green-text); }
.ad-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.ad-board { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 86px; padding: 10px 12px; border-radius: 6px; color: #FFFFFF; background: #1F3D2B; border-bottom: 6px solid #0E1A12; }
.ad-board--1 { background: #2F5D9A; border-bottom-color: #1A3760; } .ad-board--2 { background: #A93A30; border-bottom-color: #6A2019; }
.ad-board--3 { background: #2B2B2B; border-bottom-color: #111111; } .ad-board--4 { background: #B88A12; border-bottom-color: #765808; }
.ad-board__name { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.ad-board__amount { font-size: 12px; opacity: .9; }
.ad-board--free { align-items: center; text-align: center; background: transparent; color: var(--muted); border: 2px dashed var(--line); font-size: 13px; font-weight: 600; }
@media (max-width: 520px) { .ad-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-board__name { font-size: 16px; } }
.scene__ad { font-family: var(--body); font-weight: 700; font-size: 5px; fill: #FFFFFF; letter-spacing: .03em; }
.scene__roof { font-family: var(--display); font-weight: 800; letter-spacing: .12em; opacity: .9; }
/* 2.16 : sur téléphone, la vue du complexe garde une taille lisible et défile au doigt */
.scene-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (max-width: 599px) { .scene-scroll .scene { width: 820px; max-width: none; } }

/* 2.17 : tutoriel guidé et astuces de page */
.tutorial__next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: var(--yellow-soft); border: 1px solid var(--yellow); }
.tutorial__next strong { flex: 1 1 160px; }
.tutorial__steps li.is-next { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
.page-hint { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--card, #FFFFFF); border: 1px solid var(--line); border-left: 5px solid var(--yellow); box-shadow: 0 4px 14px rgba(22, 35, 27, .06); }
.page-hint__icon { color: var(--on-yellow); background: var(--yellow); border-radius: 999px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.page-hint__body { flex: 1 1 220px; }
.page-hint__body p { margin: 2px 0 0; font-size: 15px; }
.page-hint__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 2.17 : vestiaire, personnalités, promesses */
.ptraits { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.ptrait { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.ptrait--leader, .ptrait--pro, .ptrait--loyal, .ptrait--calm { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-text); }
.ptrait--party, .ptrait--lazy, .ptrait--mercenary { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.ptrait--hothead, .ptrait--moaner { background: var(--red-soft, #F6DEDB); border-color: var(--red-soft, #F6DEDB); color: var(--red, #B3261E); }
.dress-top { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 16px; }
.dress-coh__value { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 8px; }
.dress-coh__value strong { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.dress-coh--tense .dress-coh__value strong { color: var(--red, #B3261E); }
.dress-coh--great .dress-coh__value strong { color: var(--green-text); }
.dress-cap__name { font-size: 20px; font-weight: 700; margin: 6px 0; display: flex; align-items: center; gap: 8px; }
.dress-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
.dress-group { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.dress-group.is-unhappy { border-color: var(--red, #B3261E); }
.dress-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dress-group__list { margin: 4px 0 0; }
.promise-list, .dress-watch { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.promise { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.promise__status { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.promise--kept .promise__status { color: var(--green-text); } .promise--broken .promise__status { color: var(--red, #B3261E); }
.promise-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.dress-watch li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.honours { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.honour { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--night, #16231B); color: #FFFFFF; border-bottom: 5px solid var(--yellow); }
.honour .small.muted { color: rgba(255, 255, 255, .75); }
.honour__kind { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }

/* 2.17 : statistiques de la série, arbitres */
.leaders { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.leaders__list { list-style: none; counter-reset: lead; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leaders__list li { counter-increment: lead; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.leaders__list li::before { content: counter(lead); font-weight: 800; width: 22px; color: var(--muted); flex: none; }
.leaders__list li.is-me { background: var(--yellow-soft); }
.leaders__who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.leaders__who small { width: 100%; color: var(--muted); font-size: 12px; }
.team-season { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.team-season li { padding: 6px 8px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.team-season li.is-me { border-color: var(--yellow); background: var(--yellow-soft); }
.team-season small { color: var(--muted); }
.ref-line { display: block; margin-top: 4px; opacity: .9; }

/* 2.17 : jours de match, assurance, humeur des sponsors */
.md-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.md-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.md-row > div { display: flex; flex-direction: column; }
.md-legend { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.board__mood { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.board__mood--happy::before { content: "● "; color: #7EE2A0; } .board__mood--ok::before { content: "● "; color: #F2C230; }
.board__mood--doubt::before { content: "● "; color: #F29C38; } .board__mood--angry::before { content: "● "; color: #FF8A80; }

/* 2.17 : comité, école, club partenaire */
.bmem-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 10px 0; }
.bmem { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.bmem.is-priority { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.bmem--angry { border-color: var(--red); }
.youth-extra { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 16px; }
.nation-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; background: var(--night, #16231B); color: #FFFFFF; vertical-align: 1px; }

/* 2.17 : unes de journal, réseaux sociaux, sons */
.une { background: #FBF7EC; color: #16231B; border: 1px solid #D9CFB8; border-top: 6px solid #16231B; border-radius: 6px; padding: 14px 16px; margin: 0 0 16px; box-shadow: 0 6px 18px rgba(22, 35, 27, .08); }
.une__mast { display: flex; justify-content: space-between; gap: 8px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; border-bottom: 1px solid #16231B; padding-bottom: 6px; margin-bottom: 8px; }
.une__mast span { font-family: var(--body); font-weight: 600; letter-spacing: 0; text-transform: none; color: #5C665F; }
.une__title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6vw, 38px); line-height: 1.02; margin: 4px 0 6px; text-transform: uppercase; }
.une--small .une__title { font-size: 22px; }
.une__sub { margin: 0 0 6px; font-size: 15px; }
.une__by { margin: 0; font-size: 12px; color: #5C665F; font-style: italic; }
.une--big_loss, .une--derby_loss { border-top-color: #8E1F18; }
.une--derby_win, .une--giant_killing { border-top-color: #D9A91E; }
.une-link { display: block; color: inherit; text-decoration: none; }
.paper-journalist { margin: -6px 0 12px; }
.social-pick { display: grid; gap: 8px; }
.social-feed { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.post { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.post__head { display: flex; justify-content: space-between; gap: 8px; }
.post p { margin: 6px 0; }
.post__foot { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.post__buzz { font-weight: 700; color: var(--ink); }
.post--viral { border-color: var(--yellow); } .post--bad { border-color: var(--red); }
.sound-toggle { margin: 0 0 10px; }

/* 2.17 : marché et amicaux entre présidents, gazette des présidents */
.pm-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.pm-item__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; flex: 1 1 240px; }
.pm-item__who .small { width: 100%; }
.pm-item__buy { display: flex; align-items: center; gap: 10px; }
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed-list li { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.fiche-invite { margin-top: 10px; }
.pfr-row { flex-wrap: wrap; gap: 6px 10px; }

/* 2.17 : compétences, aventure, hall of fame */
.skill-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 10px; }
.skill { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.skill__pips { display: flex; gap: 4px; }
.skill__pips span { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.skill__pips span.on { background: var(--green-bg); }
.adv-details > summary { list-style: none; display: inline-flex; cursor: pointer; margin: 6px 0 12px; }
.adv-details > summary::-webkit-details-marker { display: none; }
.adv-form { display: flex; flex-direction: column; gap: 12px; }
.hall-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
/* 2.17 : listes déroulantes et champs dans les petits formulaires */
.inline-form select, .promise-form select, .md-row select, .inline-form input[type="number"] { font: inherit; font-size: 15px; min-height: 44px; padding: 6px 8px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); max-width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form select { flex: 1 1 200px; min-width: 0; }

/* 2.17.1 : carte « Prochain match » redessinée (terrain rayé, blasons, compte à rebours, disponibilité) */
.nm { position: relative; overflow: hidden; padding: 18px 16px 18px; border-radius: 18px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .10), transparent 60%),
              repeating-linear-gradient(90deg, #24603A 0 44px, #215A36 44px 88px);
  box-shadow: 0 10px 28px rgba(10, 30, 18, .28); }
.nm::before { content: ""; position: absolute; left: 50%; top: 118px; width: 150px; height: 150px; margin-left: -75px; border: 2px solid rgba(255, 255, 255, .08); border-radius: 50%; pointer-events: none; }
.nm::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.nm > * { position: relative; z-index: 1; }
.nm__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nm__kicker { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #B9D6C1; }
.nm__date { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; color: #FFFFFF; }
.nm__date::first-letter, .nm__tag::first-letter { text-transform: uppercase; }
.nm__when { flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .22); color: #FFFFFF; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nm__when.is-today { background: var(--yellow); color: var(--on-yellow); }
.nm__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.nm__chips .chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; margin: 0; }
.nm__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.nm__chips .wx-chip { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.nm__duel { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; gap: 6px; margin: 20px 0 16px; text-align: center; }
.nm__team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.nm__team .badge { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.nm__team strong { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.08; color: #FFFFFF; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nm__team small { font-size: 12px; font-weight: 600; color: #B9D6C1; }
.nm__team.is-me strong { box-shadow: inset 0 -3px 0 var(--yellow); }
.nm__mid { align-self: center; display: grid; place-items: center; margin-top: -26px; }
.nm__vs { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: #16231B; font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .14); }
.nm__score { font-family: var(--display); font-weight: 800; font-size: 34px; color: #FFFFFF; white-space: nowrap; }
.nm__score i { font-style: normal; color: #B9D6C1; margin: 0 4px; }
.nm__avail { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.nm__avail-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: #D6E6DA; margin-bottom: 6px; }
.nm__avail-row strong { font-family: var(--display); font-size: 20px; color: #FFFFFF; }
.nm__avail-row small { font-size: 14px; color: #B9D6C1; }
.nm__bar { display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .16); -webkit-appearance: none; appearance: none; }
.nm__bar::-webkit-progress-bar { background: rgba(255, 255, 255, .16); border-radius: 999px; }
.nm__bar::-webkit-progress-value { background: var(--yellow); border-radius: 999px; }
.nm__bar::-moz-progress-bar { background: var(--yellow); border-radius: 999px; }
.nm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.nm__actions .nm__main { grid-column: 1 / -1; min-height: 52px; font-size: 17px; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.nm__actions .btn--sm { min-height: 44px; padding: 8px 10px; font-size: 15px; border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .12); }
.nm__actions .btn--sm:only-of-type, .nm__actions > :last-child:nth-child(2) { grid-column: 1 / -1; }
.nm__actions svg { flex: none; }
@media (min-width: 700px) {
  .nm { padding: 24px; }
  .nm__duel { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); }
  .nm__team strong { font-size: 26px; }
  .nm__actions { grid-template-columns: 2fr 1fr 1fr; }
  .nm__actions .nm__main { grid-column: auto; }
  .nm::before { width: 190px; height: 190px; margin-left: -95px; }
}
/* 2.17.1 : bandeau du haut plus compact sur téléphone */
@media (max-width: 599px) {
  .dash-strip { gap: 10px; }
  .dash-tile { padding: 12px 14px; gap: 4px; }
  .form-pills { flex-wrap: nowrap; gap: 4px; }
  .form-pill { width: auto; flex: 1 1 0; max-width: 28px; height: 26px; font-size: 13px; border-radius: 6px; }
  .dash-tile__big { font-size: 34px; }
  .dash-tile__mid { font-size: 21px; }
  .dash-strip > :last-child:nth-child(odd) { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l a" "v a"; align-items: center; column-gap: 12px; }
  .dash-strip > :last-child:nth-child(odd) > .dash-tile__label { grid-area: l; }
  .dash-strip > :last-child:nth-child(odd) > strong { grid-area: v; }
  .dash-strip > :last-child:nth-child(odd) > a { grid-area: a; align-self: center; }
}
/* 2.17.3 : boutique du club : commande séparée des prix, barre d'enregistrement collée en bas */
.merch-card__order { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.merch-card__order-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.merch-card__order .merch-order { margin-top: 0; }
button.is-confirm { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.save-bar { position: sticky; z-index: 40; bottom: calc(72px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.save-bar__msg { font-size: 14px; font-weight: 600; color: var(--muted); }
.save-bar .btn { flex: none; }
.save-bar.is-dirty { border-color: var(--yellow); background: var(--yellow-soft); }
.save-bar.is-dirty .save-bar__msg { color: var(--yellow-text); }
@media (min-width: 900px) { .save-bar { bottom: 16px; } }

/* 2.17.4 : administration — en-tête compact, menu rangé par thèmes (bouton sur téléphone, colonne à gauche sur ordinateur) */
.admin-header { position: sticky; top: 0; z-index: 60; background: #0F1610; color: #FFFFFF; border-bottom: 1px solid #1F2C22; }
.admin-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.admin-header .brand { color: #FFFFFF; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; }
.admin-header .brand small { color: var(--yellow); font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border: 1px solid rgba(242, 194, 48, .5); border-radius: 6px; margin-left: 4px; vertical-align: middle; }
.admin-header__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #DDE6DF; font-size: 14px; font-weight: 600; text-decoration: none; }
.admin-header__back:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.adm-mobile { padding: 0 16px 12px; }
.adm-mobile__btn { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #1A241C; border: 1px solid #2A3A2E; color: #FFFFFF; font-weight: 700; font-size: 16px; cursor: pointer; }
.adm-mobile__btn::-webkit-details-marker { display: none; }
.adm-mobile__btn > svg:first-child { color: var(--yellow); }
.adm-mobile__more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #A9B8AD; }
.adm-mobile[open] .adm-mobile__more svg { transform: rotate(180deg); }
.adm-mobile__panel { margin-top: 10px; padding: 12px; border-radius: 14px; background: #161F18; border: 1px solid #2A3A2E; display: grid; gap: 14px; max-height: 70vh; overflow-y: auto; }
.adm-mobile__panel .adm-group__items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.adm-group__title { display: block; margin: 0 0 6px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7F9184; }
.adm-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: #D6E0D8; text-decoration: none; font-weight: 600; font-size: 15px; }
.adm-link svg { flex: none; color: #8FA394; }
.adm-link:hover { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
.adm-link[aria-current="page"] { background: var(--yellow); color: var(--on-yellow); }
.adm-link[aria-current="page"] svg { color: var(--on-yellow); }
.adm-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #D93A2B; color: #FFFFFF; font-size: 12px; font-weight: 800; }
.adm-mobile__btn .adm-badge { margin-left: 0; }
.adm-side { display: none; }
.admin-shell { display: block; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 48px; min-width: 0; }
.admin-maint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--yellow-soft); border: 1px solid var(--yellow); color: var(--yellow-text); font-size: 14px; }
.admin-maint svg { flex: none; }
.admin-maint a { margin-left: auto; font-weight: 700; color: inherit; }
@media (min-width: 1000px) {
  .adm-mobile { display: none; }
  .admin-header__inner { padding: 12px 24px; }
  .admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 62px); }
  .adm-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 62px); overflow-y: auto; padding: 20px 14px; background: #0F1610; border-right: 1px solid #1F2C22; min-height: calc(100vh - 62px); }
  .adm-side .adm-group__items { display: flex; flex-direction: column; gap: 2px; }
  .admin-main { padding: 24px 32px 56px; margin: 0; }
}
.admin-header .brand span, .admin-header__back { white-space: nowrap; }
.admin-header .brand { font-size: 20px; gap: 8px; min-width: 0; }
.admin-maint > span { flex: 1 1 200px; }
@media (max-width: 420px) { .admin-header__back { padding: 8px 10px; font-size: 13px; } .admin-header .brand small { margin-left: 2px; } }
@media (max-width: 699px) {
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .admin-kpis .dash-tile { padding: 12px; }
  .admin-kpis .dash-tile__big { font-size: 32px; }
  .admin-kpis .dash-tile__mid { font-size: 20px; }
  .admin-kpis .small { font-size: 12px; line-height: 1.35; }
  .admin-main .page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  .admin-main .h1 { font-size: 34px; }
}
/* 2.17.6 : fiche joueur en deux colonnes indépendantes (plus de trou) ; sur téléphone : caractéristiques, puis encadrés, puis le reste */
@media (max-width: 999px) {
  .player-main { display: contents; }
  .player-grid > aside { order: 1; }
  .player-main > :not(.player-attrs) { order: 2; }
}
/* 2.17.8 : sur téléphone et tablette, la barre du haut (club, caisse, courrier, menu) reste toujours visible */
@media (max-width: 899px) {
  .gh { position: sticky; top: 0; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
  .gh__drawer { max-height: calc(100vh - 60px - env(safe-area-inset-top)); max-height: calc(100dvh - 60px - env(safe-area-inset-top)); }
  html { scroll-padding-top: 72px; }
}
@media (max-width: 719px) {
  .subnav-bar { top: calc(60px + env(safe-area-inset-top)); }
}

/* 2.17.9 : lisibilité en mode sombre (contrastes vérifiés automatiquement sur toutes les pages, clair et sombre) */
.tag { color: var(--on-yellow); }
.route li { background: var(--line-soft); }
.report-compare__vs .wx-chip { color: var(--ink); }
.staff-card__head .chip { color: var(--ink); }
.board.is-offer .board__goal { color: #16231B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .talk--motivate strong { color: #8DB4EE; }
  :root:not([data-theme="light"]) .derby-tag { color: #F08C84; }
  :root:not([data-theme="light"]) .plot { background: #2B2818; border-color: #6B5E33; }
  :root:not([data-theme="light"]) .btn--danger { background: #B3261E; }
}
:root[data-theme="dark"] .talk--motivate strong { color: #8DB4EE; }
:root[data-theme="dark"] .derby-tag { color: #F08C84; }
:root[data-theme="dark"] .plot { background: #2B2818; border-color: #6B5E33; }
:root[data-theme="dark"] .btn--danger { background: #B3261E; }
.cta-band { color: var(--on-yellow); }
/* 2.17.10 : administration de la boutique */
.offer-admin-grid { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .offer-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.offer-admin { display: flex; flex-direction: column; gap: 10px; }
.offer-admin.is-star { border: 2px solid var(--yellow); }
.offer-admin.is-hidden { opacity: .7; border-style: dashed; }
.offer-admin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer-admin__head .h3 { margin: 2px 0 0; }
.offer-admin__type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer-admin__price { font-family: var(--display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.offer-admin p { margin: 0; }
.offer-admin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-admin__actions form { margin: 0; }
.offer-admin__edit[open] { width: 100%; }
.offer-admin__edit > summary { list-style: none; display: inline-flex; }
.offer-admin__edit > summary::-webkit-details-marker { display: none; }
.offer-admin__edit[open] > summary { margin-bottom: 10px; }
.offer-admin__edit { order: -1; }
.offer-form { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--line-soft); }
.offer-form .field small { display: block; margin-top: 4px; font-weight: 400; }
.offer-form__row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.offer-form .check { margin: 0; }
.chip--on { background: var(--green-soft); color: var(--green-text); }
.chip--off { background: var(--line-soft); color: var(--muted); }
.offer-legend { margin: 0; display: grid; gap: 4px 0; }
.offer-legend dt { font-weight: 700; margin-top: 10px; }
.offer-legend dd { margin: 0; color: var(--ink-2); }
.offer-form [hidden] { display: none !important; }
/* 2.17.12 : page publique des tarifs */
.prices .lead { max-width: 760px; }
.prices__facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.prices__facts li { padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); position: relative; font-size: 14px; }
.prices__facts li::before { content: "✓"; position: absolute; left: 14px; top: 11px; font-weight: 800; color: var(--green-text); }
.prices .shop-group { margin-bottom: 24px; }
.prices .offer__price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.prices__how ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
/* 2.17.13 : Mon compte → Mes achats */
.purchases-strip { margin-bottom: 16px; }
@media (max-width: 719px) {
  .purchases-table thead { position: absolute; left: -9999px; }
  .purchases-table, .purchases-table tbody, .purchases-table tr, .purchases-table td { display: block; width: 100%; }
  .purchases-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .purchases-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 3px 0; text-align: right; }
  .purchases-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
}
.pwa-open[hidden], .install-banner [hidden] { display: none !important; }
/* 2.17.14 : 4 raccourcis dans Mon compte quand « Installer l'appli » est proposé */
.account-hero__links:has(> .pwa-open:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .account-hero__links:has(> .pwa-open:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
button.account-link { font: inherit; font-weight: 700; cursor: pointer; }

/* 2.17.17 : boutique : étapes du point de vente et prix enregistrés article par article */
.store-card { display: block; }
.store-card .h2 { margin: 0 0 4px; }
.store-ladder { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.store-ladder__step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.store-ladder__step.is-current { border-color: var(--green-bg); box-shadow: inset 4px 0 0 var(--green-bg); }
.store-ladder__step.is-locked, .store-ladder__step.is-later { opacity: .8; }
.store-ladder__step .store-step { flex: none; }
.store-ladder__body { min-width: 0; flex: 1; }
.store-ladder__body strong { margin-right: 6px; }
.store-ladder__body p { margin: 2px 0 0; }
.store-ladder__body .inline-actions { margin-top: 8px; }
.chip--ok { background: var(--green-bg); color: #FFFFFF; font-size: 12px; }
@media (min-width: 900px) { .store-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.merch-price { display: flex; flex-direction: column; gap: 6px; }
.merch-price .merch-card__price { margin: 0; }
.merch-price__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.merch-price__row .input-unit { flex: 1; min-width: 110px; }
.merch-price__row .input-unit input { max-width: none; width: 100%; }
.merch-price__save { flex: none; min-height: 48px; }
.merch-price.is-dirty .input-unit input { border-color: var(--yellow); }

/* 2.17.18 : effectif en lignes, place dans la composition en première colonne (glisser ou toucher pour échanger) */
.sq-hint { margin: 4px 0 10px; }
.squad-table--lineup td, .squad-table--lineup th { vertical-align: middle; }
.squad-table--lineup .sq-cell-slot { width: 64px; padding-right: 4px; }
.sq-slot { appearance: none; font: inherit; font-weight: 800; font-size: 13px; min-width: 48px; min-height: 36px; padding: 4px 8px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; display: inline-flex; align-items: center; justify-content: center; }
.sq-slot--start { background: var(--green-bg); color: #FFFFFF; }
.sq-slot--start.sq-slot--ok { background: #8A5A00; }
.sq-slot--start.sq-slot--bad { background: #B3261E; }
.sq-slot--bench { background: var(--yellow-soft); color: var(--yellow-text); border-color: var(--yellow); }
.sq-slot--out { background: transparent; color: var(--muted); border: 1.5px dashed var(--line); }
.sq-row--empty .sq-slot { cursor: pointer; color: #6E5A22; }
.sq-cell-empty { color: var(--muted); font-style: italic; }
.sq-rate { font-weight: 800; }
.sq-mobile-only { display: none; }
.sq-sep th { background: var(--line-soft); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; text-align: left; }
.sq-sep th .muted { letter-spacing: 0; text-transform: none; font-weight: 600; }
.sq-out-drop { appearance: none; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; cursor: default; text-align: left; }
.sq-out-drop .small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.squad-table--lineup.is-picking [data-place] { cursor: pointer; }
.squad-table--lineup.is-picking .sq-sep--drop th { outline: 2px dashed var(--line); outline-offset: -4px; }
.squad-table--lineup .is-picked td, .squad-table--lineup .is-picked th { background: var(--yellow-soft); }
.squad-table--lineup .is-picked .sq-slot { outline: 3px solid var(--yellow); outline-offset: 1px; }
.squad-table--lineup .is-over td, .squad-table--lineup .is-over th { background: var(--yellow-soft); box-shadow: inset 0 2px 0 var(--yellow), inset 0 -2px 0 var(--yellow); }
.squad-table--lineup .is-dragging { opacity: .45; }
.squad-table--lineup .is-moved td { animation: sq-moved 1.2s ease-out; }
@keyframes sq-moved { from { background: var(--yellow-soft); } to { background: transparent; } }
.squad-table--lineup.is-busy { opacity: .7; pointer-events: none; }
.sq-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; background: var(--card); color: var(--ink); border: 1.5px solid var(--yellow);
  border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); white-space: nowrap; }
.sq-live { min-height: 1.2em; font-weight: 600; color: var(--green-text); }
@media (prefers-reduced-motion: reduce) { .squad-table--lineup .is-moved td { animation: none; } }

/* Téléphone : une ligne compacte par joueur (place, joueur, note au poste), le reste sur sa fiche */
@media (max-width: 719px) {
  .squad-table--lineup tr.sq-row { display: grid; grid-template-columns: 56px 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line-soft); }
  .squad-table--lineup tr.sq-sep { display: block; border: 0; padding: 0; margin: 10px 0 0; background: none; }
  .squad-table--lineup tr.sq-sep th { display: block; border-radius: 8px; }
  .squad-table--lineup td { padding: 0; border: 0; width: auto; display: block; }
  .squad-table--lineup td::before { display: none; }
  .squad-table--lineup td.cell-player { border: 0; margin: 0; padding: 0; min-width: 0; }
  .squad-table--lineup .sq-hide-m { display: none; }
  .squad-table--lineup .sq-cell-pos .pos { min-width: 0; width: 100%; }
  .squad-table--lineup .sq-cell-empty { grid-column: 2 / -1; }
  .squad-table--lineup .sq-cell-pos::before { display: none; }
  .squad-table--lineup .player-cell { gap: 8px; }
  .squad-table--lineup .player-cell .avatar, .squad-table--lineup .player-cell svg { flex: none; }
  .squad-table--lineup .player-name { display: inline; overflow-wrap: anywhere; }
  .squad-table--lineup .sq-mobile-only { display: inline; }
  .squad-table--lineup .sq-mobile-only .status { font-size: 12px; padding: 1px 6px; }
  .squad-table--lineup .sq-rate { font-size: 16px; }
  .squad-table--lineup tbody { display: block; }
}
.sq-live:not(:empty) { position: sticky; z-index: 30; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--card); border: 1.5px solid var(--green-bg);
  border-radius: 10px; padding: 10px 12px; margin-top: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
@media (min-width: 900px) { .sq-live:not(:empty) { bottom: 16px; } }

/* 2.17.19 : toute la ligne se glisse (souris : directement ; doigt : appui long) */
.squad-table--lineup tr.sq-row:not(.sq-row--empty) { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.squad-table--lineup tr.sq-row:not(.sq-row--empty):hover td { background: var(--line-soft); }
.squad-table--lineup.is-dragging-any, .squad-table--lineup.is-dragging-any * { cursor: grabbing !important; }
.squad-table--lineup tr.sq-row .player-cell img, .squad-table--lineup tr.sq-row .player-cell svg { -webkit-user-drag: none; }
.sq-slot { touch-action: auto; }
.squad-table--lineup .is-dragging td { background: var(--line-soft); }

/* 2.17.25 : calendrier du club (mois par mois) */
.cal-card { margin-bottom: 20px; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav__title { margin: 0; min-width: 9.5em; text-align: center; }
.cal-nav__title::first-letter { text-transform: uppercase; }
.cal-nav__btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); }
.cal-nav__btn:hover { border-color: var(--green-bg); }
.cal-nav__btn.is-off { opacity: .3; }
.cal { display: grid; gap: 4px; }
.cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.cal__dow abbr { text-decoration: none; }
.cal__day { position: relative; min-height: 96px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--card); min-width: 0; }
.cal__day.is-out { opacity: .45; }
.cal__day.is-past .cal__num { color: var(--muted); }
.cal__day.is-today { border: 2px solid var(--green-bg); }
.cal__day.is-today .cal__num { background: var(--green-bg); color: #FFFFFF; border-radius: 999px; padding: 0 7px; }
.cal__num { font-size: 13px; font-weight: 800; align-self: flex-start; line-height: 22px; }
.cal-chip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 4px 6px; border-radius: 6px; font-size: 12px; line-height: 1.25; text-decoration: none; color: var(--ink);
  background: var(--line-soft); border-left: 4px solid var(--cal-c, var(--green-bg)); min-width: 0; }
.cal-chip:hover { outline: 2px solid var(--cal-c, var(--green-bg)); }
.cal-chip.is-next { box-shadow: 0 0 0 2px var(--yellow); }
.cal-chip__ha { font-weight: 800; font-size: 11px; color: var(--muted); }
.cal-chip__opp { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cal-chip__score { font-weight: 800; }
.cal-chip__ha1 { display: none; font-weight: 800; font-size: 11px; }
.cal-chip--league { --cal-c: var(--green-bg); }
.cal-chip--cup { --cal-c: #2F6FD0; }
.cal-chip--euro { --cal-c: #7A4FC9; }
.cal-chip--friendly { --cal-c: #C98A00; }
.cal__add { margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1.5px dashed var(--line);
  color: var(--muted); font-weight: 800; text-decoration: none; opacity: .55; }
.cal__day.is-free:hover .cal__add, .cal__add:focus-visible { opacity: 1; border-color: var(--green-bg); color: var(--green-text); }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 12px 0 0; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; }
.cal-dot--league { background: var(--green-bg); }
.cal-dot--cup { background: #2F6FD0; }
.cal-dot--euro { background: #7A4FC9; }
.cal-dot--friendly { background: #C98A00; }
.cal-dot--free { border: 1.5px dashed var(--line); width: 14px; height: 14px; }
.cal-friendly > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; margin: 0; }
.cal-friendly > summary::-webkit-details-marker { display: none; }
.cal-friendly > summary::after { content: "+"; font-size: 22px; font-weight: 800; color: var(--green-text); }
.cal-friendly[open] > summary::after { content: "–"; }
.cal-friendly[open] > summary { margin-bottom: 8px; }
@media (max-width: 719px) {
  .cal, .cal__row { gap: 3px; }
  .cal__day { min-height: 54px; padding: 4px 3px; border-radius: 8px; gap: 3px; }
  .cal__num { font-size: 12px; line-height: 18px; }
  .cal__day.is-today .cal__num { padding: 0 5px; }
  .cal-chip { padding: 2px 3px; justify-content: center; border-left-width: 0; border-bottom: 3px solid var(--cal-c, var(--green-bg)); }
  .cal-chip__opp, .cal-chip__score, .cal-chip__ha { display: none; }
  .cal-chip__ha1 { display: inline; color: var(--ink); }
  .cal__add { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; align-self: center; }
  .cal-nav__title { min-width: 0; font-size: 22px; }
  .cal-head .btn--primary { width: 100%; }
}

/* 2.17.28 : afficher / masquer le mot de passe (petit œil) et correspondance de la confirmation */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); background: var(--line-soft); }
.field small.pw-match { display: block; font-weight: 700; }
.field small.pw-match--ok { color: var(--green-text); }
.field small.pw-match--bad { color: var(--red); }
.pw-toggle { -webkit-tap-highlight-color: transparent; }
.pw-toggle:focus { outline: none; }
.pw-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }
.field input.is-ok { border-color: var(--green-bg); }
.field input.is-bad { border-color: var(--red); }

/* 2.17.31 : composition : nom cliquable (fiche du joueur) et petite fiche au survol */
.tok__name { cursor: pointer; }
.tok:hover .tok__name { text-decoration: underline; }
.pchip__name { cursor: pointer; }
.pchip:hover .pchip__name { text-decoration: underline; }
.ptip { position: fixed; z-index: 1001; pointer-events: none; max-width: 280px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font-size: 13px; display: grid; gap: 6px; }
.ptip[hidden] { display: none !important; }
.ptip__name { font-size: 15px; }
.ptip__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ptip__label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 100%; }
.ptip__pos { font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--line-soft); }
.ptip__pos.is-good { background: var(--green-bg); color: #FFFFFF; }
.ptip__pos.is-ok { background: var(--yellow-soft); color: var(--yellow-text); }
.ptip__foot { font-size: 12px; color: var(--muted); }

/* 2.17.32 : direct : pause et vitesse (boutons dans le tableau de score) */
.live-ctrl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.live-ctrl form { margin: 0; }
.live-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 14px;
  font-weight: 800; cursor: pointer; background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.live-btn:hover { background: rgba(255, 255, 255, .26); }
.live-btn--resume { background: var(--yellow); color: #16231B; }
.live-btn--resume:hover { background: #FFD54A; }
.seg-group { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.seg-group .seg { appearance: none; border: 0; background: transparent; color: #D6E6DA; min-height: 34px; padding: 0 14px; border-radius: 999px; font: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer; }
.seg-group .seg:hover { color: #FFFFFF; }
.seg-group .seg.is-on { background: #FFFFFF; color: #16231B; }
.live-btn:focus-visible, .seg-group .seg:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pause-pill { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: #16231B; font-family: var(--body);
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 480px) { .seg-group .seg { padding: 0 11px; } .live-btn { padding: 0 14px 0 11px; } }

/* 2.17.34 : offres de sponsors : Accepter / Refuser côte à côte, la négociation sur une ligne en dessous */
.offer-sp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
.offer-sp__actions .btn { width: 100%; min-height: 44px; }
.offer-sp__nego { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.offer-sp__nego select { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; font-size: 15px; padding: 6px 8px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); }
.offer-sp__nego .btn { width: auto; flex: none; }

/* 2.17.35 : santé : dernières erreurs en haut */
.err-card { margin-bottom: 16px; }
.err-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.err-list li { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 8px;
  background: var(--night); color: #D9E2DC; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }

/* 2.17.38 : liste des joueurs de l'administration : cartes sur téléphone, date dans le jeu */
.admin-table--cards .adm-state { white-space: nowrap; }
.admin-table--cards .adm-email { overflow-wrap: anywhere; }
@media (min-width: 720px) { .admin-table--cards .adm-state { display: none; } .admin-table--cards thead th:last-child { display: none; } }
@media (max-width: 719px) {
  .admin-table--cards thead { position: absolute; left: -9999px; }
  .admin-table--cards, .admin-table--cards tbody, .admin-table--cards tr, .admin-table--cards td { display: block; width: 100%; }
  .admin-table--cards tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); }
  .admin-table--cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
  .admin-table--cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; flex: none; }
  .admin-table--cards td.adm-main { display: block; text-align: left; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
  .admin-table--cards td.adm-main::before { display: none; }
  .admin-table--cards td.adm-state, .admin-table--cards td.adm-hide-m { display: none; }
  .admin-table--cards td br { display: none; }
  .admin-table--cards td .small.muted { margin-left: 6px; }
  .admin-table--cards td.adm-main br { display: block; }
}
.admin-pager span { padding: 6px 4px; color: var(--muted); }

/* 2.17.40 : administration, visuels pour les réseaux sociaux */
.viz-intro { max-width: 760px; margin: 0 0 18px; }
.viz { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .viz { grid-template-columns: 320px minmax(0, 1fr); } .viz__form { position: sticky; top: 16px; } }
.viz__form { padding: 18px; }
.viz__frame { padding: 12px; background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 20px 20px; text-align: center; }
.viz__frame img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.viz__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.viz__actions .btn { flex: 1 1 220px; }
.viz__tips { font-size: 14px; max-width: 760px; }

/* 2.17.45 : sur les autres terrains (concurrents directs en direct) */
.rivals-live .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rivals-live__games { list-style: none; margin: 0 0 14px; padding: 0; }
.rivals-live__games li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rivals-live__games li:last-child { border-bottom: 0; }
.rivals-live__team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.rivals-live__team--away { text-align: right; }
.rivals-live__team.is-rival { font-weight: 700; }
.rivals-live__score { font-family: var(--display); font-size: 20px; min-width: 64px; text-align: center; padding: 2px 8px; border-radius: 8px; background: var(--brand-dark); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.rivals-live__table { list-style: none; margin: 6px 0 0; padding: 0; }
.rivals-live__table li { display: grid; grid-template-columns: 28px 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 15px; }
.rivals-live__table li.is-me { background: var(--green-soft); font-weight: 700; }
.rivals-live__pos { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rivals-live__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rivals-live__up { color: var(--green); font-size: 12px; }
.rivals-live__down { color: var(--red); font-size: 12px; }
.rivals-live__same { color: var(--muted); font-size: 12px; text-align: center; }

/* 2.17.50 : changement en une ligne, juste sous le tableau de score */
.sub-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.sub-bar select { min-width: 0; width: 100%; font: inherit; font-size: 15px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); }
.sub-bar__arrow { font-size: 18px; color: var(--muted); }
@media (max-width: 560px) {
  .sub-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .sub-bar .btn { grid-column: 1 / -1; }
}

/* 2.17.57 : bilan de fin de saison */
.recap { position: relative; overflow: hidden; margin: 8px 0 20px; padding: 24px 20px; border-radius: 18px; color: #FFFFFF;
  background: linear-gradient(135deg, #16231B 0%, #1F4A2E 60%, #24603A 100%); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); text-align: center; }
.recap--gold { background: linear-gradient(135deg, #16231B 0%, #24603A 55%, #8A6A12 100%); }
.recap--down { background: linear-gradient(135deg, #16231B 0%, #3A2A26 100%); }
.recap::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 3px solid rgba(255, 255, 255, .08); border-radius: 50%; pointer-events: none; }
.recap__eyebrow { margin: 0 0 12px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #F2C230; }
.recap__club { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.recap__club strong { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.recap__rank { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 10px 0 4px; }
.recap__place { font-family: var(--display); font-size: 96px; line-height: 1; color: #F2C230; }
.recap__pts { font-size: 18px; color: #D9E2DC; }
.recap__outcome { margin: 0 0 18px; font-size: 19px; font-weight: 700; }
.recap__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.recap__tile { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .09); }
.recap__tile:first-child { grid-column: 1 / -1; }
.recap__tile span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #C9D6CD; }
.recap__tile strong { display: block; margin-top: 2px; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.recap__tile.is-up strong { color: #7CD39A; }
.recap__tile.is-down strong { color: #EC8A82; }
@media (min-width: 720px) { .recap { padding: 32px; } .recap__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .recap__tile:first-child { grid-column: auto; } }
.recap-share__img { margin: 12px 0; }
.recap-share__img img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* 2.17.62 : barre « Continuer » compacte sur téléphone (date et bouton sur la même ligne : ~80 px de contenu en plus sur chaque page) */
@media (max-width: 599px) {
  .continue-bar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
  .continue-bar__info strong { font-size: 17px; line-height: 1.15; }
  .continue-bar__info span { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .continue-bar__actions { display: contents; }
  .continue-bar__actions > .btn, .continue-form { width: auto; grid-column: 2; grid-row: 1; }
  .continue-form .btn--yellow { flex: none; min-height: 46px; padding: 10px 18px; font-size: 16px; }
  .continue-form:has(.btn--outline-light) { grid-column: 1 / -1; grid-row: auto; }
  .continue-form:has(.btn--outline-light) .btn--yellow { flex: 1; }
  .continue-bar__count { grid-column: 1 / -1; font-size: 12px; line-height: 1.2; }
  .continue-bar__limit { grid-column: 1 / -1; font-size: 13px; }
}

/* 2.17.62 : classement des présidents, une ligne par président sur téléphone */
@media (max-width: 719px) {
  .pres-table tr { display: grid; grid-template-columns: 32px auto auto auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 2px; margin: 0; }
  .pres-table tr.is-me { background: var(--green-soft); border-radius: 10px; padding: 10px 8px; }
  .pres-table td { display: block; width: auto; padding: 0; min-width: 0; }
  .pres-table td::before { content: none; }
  .pres-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .pres-table td:nth-child(2) { grid-column: 2 / 6; grid-row: 1; }
  .pres-table td:nth-child(2) .player-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .pres-table td:nth-child(2) .player-cell > div { min-width: 0; }
  .pres-table td:nth-child(2) strong, .pres-table td:nth-child(2) .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pres-table td:nth-child(6) { grid-column: 6; grid-row: 1 / span 2; text-align: right; font-size: 20px; font-family: var(--display); }
  .pres-table td:nth-child(3), .pres-table td:nth-child(4), .pres-table td:nth-child(5) { grid-row: 2; font-size: 12.5px; color: var(--muted); white-space: nowrap; text-align: left; }
  .pres-table td:nth-child(3) { grid-column: 2; padding-left: 34px; }
  .pres-table td:nth-child(4) { grid-column: 3; }
  .pres-table td:nth-child(5) { grid-column: 4; }
  .pres-table td:nth-child(4)::before, .pres-table td:nth-child(5)::before { content: "· " attr(data-label) " "; font-size: 12.5px; font-weight: 400; color: var(--muted); }
  .pres-table td:nth-child(7) { grid-column: 2 / -1; grid-row: 3; }
}
/* 2.17.62 : courrier, résultats en couleur et alertes */
.mail-item--win .mail-item__icon { background: var(--green); color: #fff; }
.mail-item--loss .mail-item__icon { background: #c62f2f; color: #fff; }
.mail-item--draw .mail-item__icon { background: #8a8f98; color: #fff; }
.mail-item--alert .mail-item__icon { background: var(--red-soft); color: var(--red); }
.mail-item__icon b { font-family: var(--display); font-size: 16px; line-height: 1; }
/* 2.17.62 : postes du staff vides plus compacts */
.staff-card--empty { padding-top: 12px; padding-bottom: 12px; }
.staff-card--empty > p { margin: 6px 0 0 50px; font-size: 13px; }
.staff-card.is-locked { opacity: .72; }
@media (max-width: 599px) { .staff-card--empty:not(.is-locked) > p { display: none; } .staff-card--empty:not(.is-locked) { border-style: dashed; } .staff-card--empty:not(.is-locked) .staff-card__head .chip { background: var(--yellow-soft); } }
/* 2.17.63 : effectif, aide repliable et lignes plus serrées */
.sq-help { margin: 2px 0 10px; }
.sq-help summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green-text); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.sq-help summary::-webkit-details-marker { display: none; }
.sq-help summary::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); font-size: 12px; font-weight: 800; }
.sq-help[open] summary { margin-bottom: 4px; }
.sq-help p { margin: 0; }
@media (max-width: 719px) {
  .squad-table--lineup + .sq-live, .sq-help { scroll-margin-top: 80px; }
  .card > .pills--small { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; padding: 0 4px 2px; }
  .card > .pills--small::-webkit-scrollbar { display: none; }
  .card > .pills--small a { flex: none; }
  .squad-table--lineup tr.sq-row { padding-top: 6px; padding-bottom: 6px; }
  .squad-table--lineup tr.sq-row--empty { padding-top: 3px; padding-bottom: 3px; }
  .squad-table--lineup tr.sq-row--empty .sq-slot { min-height: 28px; }
  .squad-table--lineup tr.sq-row--empty .sq-cell-empty { font-size: 13px; }
}
/* 2.17.63 : comptes, quatre chiffres compacts sur téléphone */
@media (max-width: 599px) {
  .money-strip { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .money-tile { padding: 10px 12px; gap: 2px; }
  .money-tile__icon { display: none; }
  .money-tile strong { font-size: 22px; }
  .money-tile span { font-size: 11px; }
  .money-tile small { font-size: 11.5px; }
  .acc-head > .small { white-space: nowrap; }
  .acc-head strong, .acc-head > span:not(.small) { font-size: 15px; }
}
/* 2.17.64 : courrier, suppression des messages et liens vers les joueurs */
.mail-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.mail-tools form { margin: 0; }
.mail-purge summary { list-style: none; gap: 6px; color: var(--ink); }
.mail-purge summary::-webkit-details-marker { display: none; }
.mail-purge[open] { flex-basis: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mail-purge form p { margin: 0 0 8px; }
.mail-item__del { margin: 10px 0 0; text-align: right; }
.btn--xs { min-height: 32px; padding: 4px 10px; font-size: 13px; gap: 5px; color: var(--muted); }
.btn--xs:hover { color: var(--red); }
a.msg-player { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a.msg-player:hover { color: var(--green-text); }
@media (max-width: 599px) { .page-head:has(.mail-tools) { flex-wrap: wrap; } }
/* 2.17.65 : accueil du club, tutoriel replié et onglets sur téléphone */
.tutorial__bar { display: block; width: 100%; height: 8px; margin: 4px 0 10px; border: 0; border-radius: 99px; background: var(--line-soft); overflow: hidden; -webkit-appearance: none; appearance: none; }
.tutorial__bar::-webkit-progress-bar { background: var(--line-soft); border-radius: 99px; }
.tutorial__bar::-webkit-progress-value { background: var(--green); border-radius: 99px; }
.tutorial__bar::-moz-progress-bar { background: var(--green); border-radius: 99px; }
.tutorial__all > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green-text); min-height: 36px; display: flex; align-items: center; }
.tutorial__all[open] > summary { margin-bottom: 8px; }
@media (max-width: 719px) {
  .club-dash { display: flex; flex-direction: column; gap: 14px; }
  .club-dash > *, .club-dash .cols > .stack > * { margin-top: 0; margin-bottom: 0; }
  .club-dash .cols, .club-dash .cols > .stack, .club-dash .dash-grid { display: contents; }
  .club-dash .page-head { margin-bottom: -4px; }
  .club-dash .next-match { order: 2; }
  .club-dash .club-top.card { order: 3; }
  .club-dash .tutorial { order: 4; padding-top: 14px; padding-bottom: 10px; }
  .club-dash .tutorial .tutorial__intro, .club-dash .tutorial > p.small.muted:not(.tutorial__intro) { display: none; }
  .club-dash .tutorial__next { margin: 6px 0 4px; }
  .club-dash .club-tabs { order: 5; }
  .club-dash [data-tab] { order: 7; }
  .club-dash .dash-condition, .club-dash .dash-medical { order: 6; }
  .club-dash .dash-strip { gap: 8px; }
  .club-dash .dash-tile { padding: 10px 12px; gap: 3px; }
  .club-dash .dash-tile__label { font-size: 11px; }
}
@media (max-width: 719px) { .club-dash .dash-tile__big { font-size: 32px; } .club-dash .dash-tile__mid { font-size: 21px; } }
/* 2.17.66 : onglets de page sur téléphone (générique) */
.page-tabs { display: none; }
@media (max-width: 719px) {
  .page-tabs:not([hidden]) { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--line-soft); border-radius: 14px;
    position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 20; box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .3); }
  .page-tabs button { position: relative; appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px; line-height: 1.15; color: var(--muted); min-height: 44px; padding: 4px 4px; border-radius: 10px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; text-align: center; }
  .page-tabs button svg { flex: none; }
  .page-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
  .page-tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
  .page-tabs__dot { position: absolute; top: 3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; }
  .tab-off { display: none !important; }
  .club-dash .page-tabs { margin: 0; }
  .club-tabs button { flex-direction: row; gap: 6px; font-size: 14px; }
}
/* 2.17.66 : stade, buvette, recrutement, boutique plus compacts sur téléphone */
.page-help { margin: 0 0 12px; }
.page-help .notice { margin: 4px 0 0; }
.filters-box { margin: 0 0 12px; }
.filters-box > summary { list-style: none; display: inline-flex; gap: 6px; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box[open] > summary { margin-bottom: 10px; }
.filters-box .count { background: var(--green-bg); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
@media (max-width: 719px) {
  /* Stade : cartes d'installation resserrées */
  .fac-grid { gap: 10px; }
  .fac-card { gap: 6px; padding: 12px 14px; }
  .fac-card__icon { width: 38px; height: 38px; border-radius: 10px; }
  .fac-card__icon svg { width: 22px; height: 22px; }
  .fac-card__head .h2 { font-size: 19px; }
  .fac-card__now { font-size: 14.5px; }
  .fac-card > p.small.muted { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fac-card__foot { padding-top: 8px; }
  .fac-card__foot strong { font-size: 18px; }
  .scene-frame[data-tab] .scene-scroll { max-height: 240px; }

  /* Recrutement : une ligne compacte par joueur */
  .table.market-table thead { display: none; }
  .table.market-table, .table.market-table tbody { display: block; }
  .table.market-table tbody tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "pos who who price" "pos abil pot know" "pay pay pay pay" "act act act act";
    align-items: center; gap: 4px 8px; padding: 10px 2px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .table.market-table td { display: block; padding: 0; border: 0; width: auto; min-width: 0; text-align: left; }
  .table.market-table td::before { content: none; }
  .table.market-table td:nth-child(1) { grid-area: pos; align-self: start; padding-top: 8px; }
  .table.market-table td:nth-child(2) { grid-area: who; }
  .table.market-table td:nth-child(2) .player-cell { gap: 8px; }
  .table.market-table td:nth-child(2) .avatar, .table.market-table td:nth-child(2) svg { width: 32px; height: 32px; }
  .table.market-table td:nth-child(3) { grid-area: abil; }
  .table.market-table td:nth-child(4) { grid-area: pot; }
  .table.market-table td:nth-child(3)::before, .table.market-table td:nth-child(4)::before, .table.market-table td:nth-child(7)::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
  .table.market-table td:nth-child(5) { grid-area: know; font-size: 12px; }
  .table.market-table td:nth-child(6) { grid-area: pay; font-size: 12.5px; color: var(--muted); }
  .table.market-table td:nth-child(7) { grid-area: price; text-align: right; font-weight: 700; }
  .table.market-table td:nth-child(8) { grid-area: act; }
  .table.market-table .row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; margin-top: 2px; }
  .table.market-table .stars { font-size: 14px; white-space: nowrap; }
  .table.market-table .player-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table.market-table td:nth-child(2) .player-cell > div { min-width: 0; }
  .table.market-table .sign-form { display: flex; gap: 6px; align-items: center; }
  .table.market-table .mini-select { min-height: 36px; padding: 4px 6px; font-size: 13px; }

  /* Boutique : carte d'article resserrée, prix et commande côte à côte */
  .merch-grid { gap: 10px; }
  .merch-card { gap: 8px; padding: 12px 14px; }
  .merch-card__head { grid-template-columns: 44px 1fr; gap: 10px; }
  .merch-card__head svg { width: 44px; height: 44px; }
  .merch-card__stock { gap: 4px; }
  .merch-card__stock div { flex-direction: row; justify-content: center; align-items: baseline; gap: 4px; padding: 4px; }
  .merch-card__stock strong { font-size: 17px; }
  .merch-card__stock span { font-size: 11px; }
  .merch-card > p.small { margin: 0; }
  .merch-card .merch-price { margin: 0; }
  .merch-card__order { padding-top: 8px; gap: 6px; }
  .merch-card__order { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .merch-card__order-title { flex-basis: 100%; }
  .merch-order { display: flex; gap: 6px; flex: 1; }
  .merch-order .mini-select { flex: 1; min-width: 0; }

  /* Buvette : ardoise un peu moins haute */
  .chalkboard { padding-top: 14px; padding-bottom: 14px; }
}
/* 2.17.67 : jeunes, composition et matériel plus compacts sur téléphone */
@media (max-width: 719px) {
  .youth-grid { gap: 10px; }
  .youth-card { padding: 12px 14px; gap: 8px; }
  .youth-card__head .avatar, .youth-card__head > svg { width: 40px; height: 40px; }
  .youth-card__stars dt { font-size: 11px; margin-bottom: 1px; }
  .youth-card__best li { padding: 2px 7px; font-size: 12.5px; }
  .youth-card .inline-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .youth-card .inline-actions form, .youth-card .inline-actions .btn { width: 100%; }

  .kit-hero { padding: 14px 16px; gap: 10px; margin-bottom: 14px; grid-template-columns: 110px 1fr; }
  .kit-hero__kit svg { width: 100px; height: auto; }
  .kit-hero__title { font-size: 24px; }
  .kit-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .kit-offer { padding: 12px 8px 10px; gap: 4px; }
  .kit-offer svg { width: 64px; height: auto; }
  .kit-offer h3 { font-size: 16px; }
  .kit-offer p.small { font-size: 12px; line-height: 1.3; }
  .kit-offer .btn { font-size: 13px; padding-left: 8px; padding-right: 8px; }
  .wash-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wash-card { padding: 10px; gap: 4px; }
  .wash-card .small.muted { font-size: 12px; line-height: 1.3; }

  .pitch-help { margin: 0 0 8px; }
}
/* 2.17.68 : match en direct, bandeau du score collé en haut quand on descend */
.mini-score { position: fixed; left: 0; right: 0; top: 0; z-index: 45; display: none; align-items: center; justify-content: center; gap: 10px; padding: 7px 12px;
  background: var(--green-bg); color: #FFFFFF; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.mini-score.is-on { display: flex; }
.mini-score__team { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-score__team:first-child { text-align: right; }
.mini-score__score { font-family: var(--display); font-size: 20px; white-space: nowrap; }
.mini-score__clock { flex: none; font-size: 12px; background: rgba(255, 255, 255, .16); border-radius: 99px; padding: 2px 8px; color: var(--yellow); }
@media (max-width: 899px) { .mini-score { top: calc(60px + env(safe-area-inset-top)); } }
@media (max-width: 719px) {
  body:has(.mini-score.is-on) .page-tabs:not([hidden]) { top: calc(100px + env(safe-area-inset-top)); }
  .sound-toggle { min-height: 34px; padding: 4px 10px; font-size: 13px; margin-bottom: 8px; }
}
/* 2.17.68 : aide, rubriques repliables */
.help__toggle { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; cursor: default; }
.help__n { display: none; }
@media (max-width: 719px) {
  .help.is-folded .help__sec { padding-top: 0; padding-bottom: 0; }
  .help.is-folded .help__sec .h2 { margin: 0; }
  .help.is-folded .help__toggle { cursor: pointer; min-height: 56px; }
  .help.is-folded .help__toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
  .help.is-folded .help__n { display: inline-flex; align-items: center; gap: 6px; font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--muted); }
  .help.is-folded .help__n::after { content: "+"; font-size: 22px; color: var(--green-text); line-height: 1; }
  .help.is-folded .help__sec.is-open .help__n::after { content: "–"; }
  .help.is-folded .help__sec:not(.is-open) .help__item { display: none; }
  .help.is-folded .help__sec.is-open { padding-bottom: 10px; }
  .help__sections { gap: 10px; }
}
/* 2.17.68 : entraînement (guide des thèmes repliable), objectifs plus compacts */
.focus-guide > summary { cursor: pointer; margin: 12px 0 6px; }
@media (max-width: 719px) {
  .goal-grid { gap: 10px; }
  .goal { padding: 12px 14px; gap: 8px; }
  .goal__head { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .goal__head svg { width: 40px; height: 40px; }
  .goal__name { font-size: 18px; }
  .goal__head .small { font-size: 12.5px; }
}
/* 2.17.68 : bouton retour en haut */
.to-top { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--green-bg); color: #FFFFFF; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; }
.to-top[hidden] { display: none; }
.to-top:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 899px) { .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media print { .to-top, .mini-score { display: none !important; } }
/* 2.17.68 : accessibilité, contrastes renforcés (WCAG AA) ; couleurs reportées dans les règles d'origine */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sq-row--empty .sq-slot { color: inherit; } }
:root[data-theme="dark"] .sq-row--empty .sq-slot { color: inherit; }
/* 2.17.72 : tour final des provinciales */
.table tr.zone-tf td:first-child { box-shadow: inset 4px 0 0 var(--yellow); }
.legend-tf::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--yellow); }
.tfinal-card .is-me { font-weight: 700; }
.tfinal-card li { gap: 10px; }
/* 2.17.73 : aperçu de l'icône de l'application (admin) */
.admin-icons { display: flex; gap: 18px; margin: 6px 0 12px; }
.admin-icons figure { margin: 0; text-align: center; }
.admin-icons img { display: block; border-radius: 22%; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.admin-icons img.is-round { border-radius: 50%; }
