/* ════════════════════════════════════════════════════════════════════
   LFA FSF Sénégal — feuille de style (portail public + back-office)
   Les couleurs principales viennent de Personnalisation (variables CSS).
   ════════════════════════════════════════════════════════════════════ */
:root {
  --p: #00853F; --s: #FDEF42; --a: #E31E24;
  --bg: #F0F4F8; --card: #FFFFFF; --card2: #F8FAFC;
  --b: #E2E8F0; --b2: #CBD5E1;
  --tx: #0F172A; --tx2: #475569; --mu: #94A3B8;
  --radius: 14px; --shadow: 0 2px 12px rgba(15, 23, 42, .07);
  --ff-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ff: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--ff); font-size: 14px; line-height: 1.45; }
a { color: var(--p); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--ff-title); font-weight: 900; letter-spacing: .04em; margin: 0; line-height: 1.1; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.muted { color: var(--mu); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; } .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hide-sm { } @media (max-width: 720px) { .hide-sm { display: none !important; } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 10px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* ── Cartes ── */
.card { background: var(--card); border: 1px solid var(--b); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.no-border { border-color: transparent; }
.card-h { padding: 12px 16px; border-bottom: 1px solid var(--b); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 17px; }
.card-b { padding: 14px 16px; }
.card-link { display: block; color: inherit; transition: transform .12s, box-shadow .12s; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, .1); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.section-title h2 { letter-spacing: .08em; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 8px 14px; font: 800 13px var(--ff); cursor: pointer; background: var(--p); color: #fff; text-decoration: none !important; transition: filter .12s, transform .08s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--s); color: #111; }
.btn-danger { background: var(--a); color: #fff; }
.btn-ghost { background: #fff; color: var(--tx2); border-color: var(--b); }
.btn-dark { background: var(--tx); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--p); font: 700 12px var(--ff); cursor: pointer; padding: 0; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; border: 1px solid; background: color-mix(in srgb, var(--c, var(--p)) 12%, #fff); color: var(--c, var(--p)); border-color: color-mix(in srgb, var(--c, var(--p)) 35%, #fff); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a); display: inline-block; animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ── Formulaires ── */
label.f { display: flex; flex-direction: column; gap: 4px; }
label.f > span { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.in, select.in, textarea.in { width: 100%; background: #fff; border: 1px solid var(--b); border-radius: 9px; padding: 9px 11px; font: 14px var(--ff); color: var(--tx); outline: none; }
.in:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
textarea.in { resize: vertical; min-height: 80px; }
input[type=color].in { padding: 3px; height: 40px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--p); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.err { color: var(--a); font-size: 12px; font-weight: 700; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search .in { flex: 1 1 200px; width: auto; }

/* ── Alertes ── */
.alert { padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; border: 1px solid; }
.alert-ok { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-err { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-info { background: color-mix(in srgb, var(--p) 8%, #fff); color: var(--p); border-color: color-mix(in srgb, var(--p) 25%, #fff); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ── Tableaux ── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; padding: 9px 10px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); background: var(--card2); border-bottom: 1px solid var(--b); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
table.t tr:hover td { background: #FAFBFC; }
table.t td.num, table.t th.num { text-align: center; }
.pos { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; font-weight: 900; font-family: var(--ff-title); font-size: 15px; background: var(--card2); }
.pos.up { background: color-mix(in srgb, var(--p) 15%, #fff); color: var(--p); }
.pos.down { background: color-mix(in srgb, var(--a) 12%, #fff); color: var(--a); }
.form-pills { display: inline-flex; gap: 2px; }
.fp { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; font-weight: 900; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fp.W { background: #16A34A; } .fp.D { background: #94A3B8; } .fp.L { background: #DC2626; }

/* ── Onglets ── */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tab { flex-shrink: 0; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--b); background: #fff; color: var(--tx2); font-weight: 800; font-size: 12px; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.tab.on { background: var(--p); border-color: var(--p); color: #fff; }
.tab .sw { width: 8px; height: 8px; border-radius: 50%; }

/* ── Rencontres ── */
.match { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.match + .match { border-top: 1px solid #F1F5F9; }
.match .team { flex: 1; min-width: 0; font-weight: 700; }
.match .team.home { text-align: right; }
.match .team.win { color: var(--p); font-weight: 900; }
.match .team.tbd { color: var(--mu); font-weight: 600; font-style: italic; }
.score { min-width: 64px; text-align: center; font-family: var(--ff-title); font-weight: 900; font-size: 19px; background: var(--card2); border: 1px solid var(--b); border-radius: 8px; padding: 2px 8px; color: var(--p); }
.score.vs { color: var(--mu); font-size: 13px; }
.score small { display: block; font-size: 10px; color: var(--mu); font-family: var(--ff); font-weight: 700; }
.meta { font-size: 11px; color: var(--mu); }

/* ── Bandeau live ── */
.live-card { border-radius: 18px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 15% 50%, color-mix(in srgb, var(--s) 12%, transparent), transparent 55%), radial-gradient(ellipse at 85% 50%, color-mix(in srgb, var(--a) 12%, transparent), transparent 55%), linear-gradient(135deg, #051005, #0f2510, #051005); border: 1px solid color-mix(in srgb, var(--p) 45%, transparent); padding: 18px 20px; }
.live-card .big { font-family: var(--ff-title); font-weight: 900; font-size: 50px; line-height: 1; letter-spacing: -1px; }
.live-card .tn { font-family: var(--ff-title); font-weight: 900; font-size: 22px; line-height: 1.1; }

/* ── Statistiques ── */
.stat { padding: 14px 16px; }
.stat .ico { font-size: 22px; }
.stat .v { font-family: var(--ff-title); font-weight: 900; font-size: 32px; line-height: 1; margin-top: 4px; }
.stat .l { font-weight: 800; font-size: 12px; margin-top: 4px; }
.progress { height: 7px; background: var(--b); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--p); }

/* ── Logos ── */
.logo-box { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; background: var(--card2); border: 1px solid var(--b); overflow: hidden; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-box.lg { width: 84px; height: 84px; font-size: 42px; border-radius: 18px; }
.initials { font-family: var(--ff-title); font-weight: 900; font-size: 17px; color: #fff; }

/* ═══ PORTAIL PUBLIC ═══ */
.pub-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--b); box-shadow: 0 2px 14px rgba(0, 0, 0, .05); }
.pub-header .in-w { max-width: 1100px; margin: 0 auto; padding: 9px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 70%, #000)); box-shadow: 0 4px 12px color-mix(in srgb, var(--p) 35%, transparent); flex-shrink: 0; overflow: hidden; }
.brand .mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand .name { font-family: var(--ff-title); font-weight: 900; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.brand .sub { font-size: 10px; color: var(--mu); font-weight: 700; }
.pub-nav { display: flex; gap: 2px; margin-left: auto; }
.pub-nav a { padding: 8px 11px; border-radius: 9px; color: var(--tx2); font-weight: 800; font-size: 13px; }
.pub-nav a:hover { background: var(--card2); text-decoration: none; }
.pub-nav a.on { color: var(--p); background: color-mix(in srgb, var(--p) 9%, #fff); }
.pub-main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 90px; }
.pub-foot { max-width: 1100px; margin: 0 auto; padding: 22px 16px 100px; color: var(--mu); font-size: 12px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--b); }
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .pub-nav { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); border-top: 1px solid var(--b); box-shadow: 0 -4px 18px rgba(0, 0, 0, .07); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: var(--mu); font-size: 10px; font-weight: 800; border-top: 2px solid transparent; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.on { color: var(--p); border-top-color: var(--p); }
  .bottom-nav a:hover { text-decoration: none; }
}
.banner { background: color-mix(in srgb, var(--p) 8%, #fff); border: 1px solid color-mix(in srgb, var(--p) 22%, #fff); color: var(--p); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.hero-ligue { padding: 18px; display: flex; gap: 16px; align-items: center; color: #fff; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--mu); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--b); font-size: 12px; font-weight: 700; }
.pyr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pyr .lvl { border-radius: 12px; padding: 11px 14px; color: #111; text-align: center; box-shadow: var(--shadow); }
.pyr .lvl b { font-family: var(--ff-title); font-size: 17px; letter-spacing: .04em; display: block; }

/* Coupe : tableau */
.cup-rounds { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.cup-round h3 { font-size: 14px; color: var(--p); margin-bottom: 8px; text-align: center; letter-spacing: .1em; }
.cup-round .list { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; height: calc(100% - 26px); }
.cup-m { background: #fff; border: 1px solid var(--b); border-radius: 10px; padding: 6px 9px; font-size: 12px; }
.cup-m .no { font-size: 10px; font-weight: 900; color: var(--mu); }
.cup-m .ln { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; padding: 1px 0; }
.cup-m .ln.w { color: var(--p); font-weight: 900; }
.cup-m .ln.tbd { color: var(--mu); font-weight: 600; font-style: italic; }

/* ═══ BACK-OFFICE ═══ */
.adm { display: flex; min-height: 100vh; }
.side { width: 250px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--b); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .top { padding: 16px 14px; border-bottom: 1px solid var(--b); }
.side .who { background: var(--card2); border: 1px solid var(--b); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.side nav { flex: 1; overflow: auto; padding: 10px 8px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--tx2); font-weight: 800; font-size: 13px; margin-bottom: 2px; border: 1px solid transparent; }
.side nav a .i { width: 22px; text-align: center; font-size: 16px; }
.side nav a:hover { background: var(--card2); text-decoration: none; }
.side nav a.on { background: color-mix(in srgb, var(--p) 10%, #fff); border-color: color-mix(in srgb, var(--p) 28%, #fff); color: var(--p); }
.side .bot { padding: 10px 8px; border-top: 1px solid var(--b); display: flex; flex-direction: column; gap: 6px; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--b); padding: 10px 18px; display: flex; align-items: center; gap: 12px; }
.topbar h1 { font-size: 20px; letter-spacing: .06em; }
.burger { display: none; background: #fff; border: 1px solid var(--b); border-radius: 9px; font-size: 18px; padding: 3px 9px; cursor: pointer; }
.adm-content { padding: 18px; max-width: 1200px; width: 100%; }
.adm-content.wide { max-width: 1680px; }
.side-backdrop { display: none; }
@media (max-width: 980px) {
  .side { position: fixed; left: -270px; z-index: 90; transition: left .22s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  body.side-open .side { left: 0; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 80; }
  .burger { display: inline-block; }
  .adm-content { padding: 14px; }
}

/* Fenêtres modales (<dialog>) */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.modal::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
dialog.modal .mh { padding: 14px 16px; border-bottom: 1px solid var(--b); display: flex; justify-content: space-between; align-items: center; }
dialog.modal .mb { padding: 16px; }
dialog.modal .mf { padding: 12px 16px; border-top: 1px solid var(--b); display: flex; gap: 8px; justify-content: flex-end; }
.x { background: #fff; border: 1px solid var(--b); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }

/* Connexion */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--p) 18%, transparent), transparent 55%), radial-gradient(ellipse at 90% 100%, color-mix(in srgb, var(--s) 22%, transparent), transparent 55%), var(--bg); }
.login { width: min(420px, 100%); }
.flag { height: 5px; display: flex; } .flag i { flex: 1; } .flag i:nth-child(1) { background: #00853F; } .flag i:nth-child(2) { background: #FDEF42; } .flag i:nth-child(3) { background: #E31E24; }

/* ════════════════════════════════════════════════════════════════════
   DOUCEUR TRICOLORE — surfaces douces, typographie moderne, sans icônes
   (surcharge le style de base ; les couleurs restent pilotées par Personnalisation)
   ════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #F3F5F2; --card: #FFFFFF; --card2: #F6F7F5;
  --b: #E8ECE8; --b2: #D9DFDA;
  --tx: #14211A; --tx2: #55645B; --mu: #8E9A93;
  --ff-title: 'Outfit', system-ui, sans-serif;
  --ff: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(20, 33, 26, .04), 0 12px 32px rgba(20, 33, 26, .07);
  --shadow-lg: 0 24px 60px rgba(20, 33, 26, .14);
  --ease: cubic-bezier(.23, 1, .32, 1);
}
body { font-size: 15px; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--ff-title); font-weight: 700; letter-spacing: -.015em; text-transform: none; }
h1 { font-size: 34px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
.section-title h2, .card-h h2 { letter-spacing: -.01em; }

/* Libellés discrets en capitales espacées */
label.f > span, table.t th, .eyebrow { font-family: var(--ff-mono); font-weight: 400; letter-spacing: .14em; font-size: 11px; color: var(--mu); }
.eyebrow { text-transform: uppercase; display: block; }

/* Cartes : grands rayons, ombres diffuses, pas de contour */
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { border-bottom: 1px solid var(--b); padding: 18px 22px; }
.card-b { padding: 18px 22px; }
.card-link { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link:active { transform: scale(.98); }

/* Boutons en pastilles */
.btn { border-radius: 999px; padding: 11px 22px; font-family: var(--ff-title); font-weight: 600; font-size: 14px; letter-spacing: .01em; border: 0;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--p) 26%, transparent); transition: transform .16s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.btn:hover { filter: none; box-shadow: 0 12px 24px color-mix(in srgb, var(--p) 32%, transparent); }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--a); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--a) 30%, transparent); }
.btn-gold:hover { box-shadow: 0 12px 24px color-mix(in srgb, var(--a) 36%, transparent); }
.btn-danger { background: #fff; color: var(--a); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a) 35%, #fff); }
.btn-ghost { background: #fff; color: var(--tx); box-shadow: 0 2px 10px rgba(20, 33, 26, .08); }
.btn-ghost:hover { box-shadow: 0 6px 16px rgba(20, 33, 26, .12); }
.btn-dark { background: var(--tx); box-shadow: 0 8px 18px rgba(20, 33, 26, .22); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
@media (hover: none) { .btn:hover, .card-link:hover { transform: none; } }

/* Badges et onglets */
.badge { border: 0; font-family: var(--ff-mono); font-weight: 500; letter-spacing: .02em; padding: 4px 11px; }
.tabs { gap: 8px; }
.tab { border: 0; background: #fff; box-shadow: 0 2px 10px rgba(20, 33, 26, .06); font-family: var(--ff-title); font-weight: 600; font-size: 14px; padding: 9px 16px; transition: background .2s var(--ease), color .2s; }
.tab.on { background: var(--p); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--p) 28%, transparent); }

/* Champs */
.in, select.in, textarea.in { border-radius: 14px; border-color: var(--b); background: var(--card2); padding: 11px 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.in:focus { background: #fff; }
.check input { accent-color: var(--p); }

/* Alertes et bannière */
.alert, .banner { border: 0; border-radius: 18px; font-weight: 500; padding: 14px 18px; }
.banner { background: color-mix(in srgb, var(--p) 9%, #fff); color: color-mix(in srgb, var(--p) 85%, #000); font-size: 15px; }

/* Statistiques : le chiffre porte l'information */
.stat { padding: 22px 22px 20px; }
.stat .v { font-family: var(--ff-title); font-weight: 700; font-size: 52px; letter-spacing: -.03em; margin: 0; }
.stat .l { font-family: var(--ff); font-weight: 500; font-size: 14px; color: var(--tx2); margin-top: 6px; }
.stat .ico { display: none; }
.progress { height: 8px; background: var(--b); }

/* Tableaux */
table.t td { border-bottom: 1px solid var(--b); padding: 12px 12px; }
table.t th { background: transparent; border-bottom: 1px solid var(--b); text-transform: uppercase; }
table.t tr:hover td { background: var(--card2); }
.pos { border-radius: 10px; font-family: var(--ff-mono); font-weight: 500; font-size: 13px; background: transparent; color: var(--tx2); }
.pos.up { background: var(--p); color: #fff; }
.pos.down { background: transparent; color: var(--a); }
.fp { border-radius: 50%; width: 9px; height: 9px; font-size: 0; }

/* Rencontres */
.match { padding: 14px 20px; }
.match + .match { border-top: 1px solid var(--b); }
.match .team { font-family: var(--ff-title); font-weight: 600; font-size: 15px; }
.score { border: 0; background: var(--card2); border-radius: 12px; font-family: var(--ff-title); font-weight: 700; font-size: 20px; color: var(--tx); }
.score.vs { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; color: var(--mu); background: transparent; }
.meta { font-family: var(--ff-mono); font-size: 11px; }

/* Bandeau « à l'affiche » */
.live-card { border: 0; border-radius: 32px; padding: 28px 28px;
  background: radial-gradient(420px 260px at 85% 0%, color-mix(in srgb, var(--s) 24%, transparent), transparent 70%),
              linear-gradient(160deg, color-mix(in srgb, var(--p) 100%, #fff 6%), color-mix(in srgb, var(--p) 60%, #000)); }
.live-card .big { font-family: var(--ff-title); font-weight: 700; font-size: 60px; letter-spacing: -.03em; }
.live-card .tn { font-family: var(--ff-title); font-weight: 700; font-size: 26px; letter-spacing: -.01em; }
.live-dot { width: 7px; height: 7px; }

/* Logos : repli typographique */
.logo-box { border: 0; border-radius: 16px; background: var(--card2); }
.initials { font-family: var(--ff-title); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.sigle { font-family: var(--ff-title); font-weight: 700; font-size: 12px; letter-spacing: .02em; color: var(--c, var(--p)); }
.logo-box.lg .sigle { font-size: 20px; }
.brand .mark { background: #fff; box-shadow: 0 4px 14px rgba(20, 33, 26, .12); border-radius: 50%; }
.brand .mark b { font-family: var(--ff-title); font-size: 13px; color: var(--p); letter-spacing: .02em; }
.brand .name { font-family: var(--ff-title); font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-transform: none; }
.brand .sub { font-family: var(--ff-mono); font-weight: 400; font-size: 10px; letter-spacing: .08em; }

/* Filet tricolore discret sous l'en-tête public */
.pub-header { background: rgba(255, 255, 255, .88); border-bottom: 0; box-shadow: 0 1px 0 var(--b); }
.pub-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, #00853F 0 33.3%, #FDEF42 33.3% 66.6%, #E31E24 66.6%); opacity: .9; }
.pub-nav a { border-radius: 999px; font-family: var(--ff-title); font-weight: 500; font-size: 15px; padding: 9px 15px; }
.pub-nav a.on { background: color-mix(in srgb, var(--p) 10%, #fff); color: var(--p); }
.bottom-nav a svg { display: none; }
.bottom-nav a { font-family: var(--ff-title); font-size: 13px; font-weight: 500; padding: 16px 2px 14px; }
.bottom-nav a.on { border-top-color: transparent; position: relative; }
.bottom-nav a.on::before { content: ""; position: absolute; top: 6px; width: 18px; height: 4px; border-radius: 4px; background: var(--p); }

/* Back-office */
.side { border-right: 0; box-shadow: 1px 0 0 var(--b); }
.side .who { border: 0; border-radius: 18px; }
.side nav a { border: 0; border-radius: 14px; font-family: var(--ff-title); font-weight: 500; font-size: 15px; padding: 11px 14px; }
.side nav a .i { display: none; }
.side nav a.on { background: color-mix(in srgb, var(--p) 10%, #fff); color: var(--p); font-weight: 600; }
.topbar { border-bottom: 0; box-shadow: 0 1px 0 var(--b); }
.topbar h1 { font-size: 24px; letter-spacing: -.015em; }
.burger { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(20, 33, 26, .08); position: relative; padding: 0; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--tx); content: ""; }
.burger span { top: 20px; } .burger span::before { left: 0; top: -6px; } .burger span::after { left: 0; top: 6px; }
@media (max-width: 980px) { .burger { display: inline-block; } }
dialog.modal { border-radius: 28px; }
dialog.modal .mh, dialog.modal .mf { border-color: var(--b); }
.x { border: 0; border-radius: 50%; background: var(--card2); font-size: 20px; line-height: 1; color: var(--tx2); }
.kv dt { font-family: var(--ff-mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; }
.chip { border: 0; background: var(--card2); border-radius: 999px; font-weight: 500; }
.cup-m { border: 0; border-radius: 14px; box-shadow: 0 2px 10px rgba(20, 33, 26, .06); }
.cup-m .no { font-family: var(--ff-mono); font-weight: 400; letter-spacing: .1em; }
.cup-round h3 { font-family: var(--ff-mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; }
.pyr .lvl { border-width: 0 !important; border-radius: 18px; }
.login-wrap { background: radial-gradient(900px 600px at 10% 0%, color-mix(in srgb, var(--p) 22%, transparent), transparent 60%),
  radial-gradient(900px 700px at 100% 100%, color-mix(in srgb, var(--a) 18%, transparent), transparent 60%), var(--bg); }
.flag { height: 4px; }
@media (prefers-reduced-motion: reduce) { .btn, .card-link, .tab { transition: none; } }
.stack { gap: 20px; }
.grid { gap: 16px; }
.section-title { margin: 4px 2px 12px; }
.section-title a { font-family: var(--ff-title); font-weight: 500; }

/* ═══ MATCH CENTER ═══ */
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em; white-space: nowrap; background: var(--card2); color: var(--tx2); }
.st-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-chip.ok { background: color-mix(in srgb, var(--p) 11%, #fff); color: var(--p); }
.st-chip.wait { background: #FFF6D6; color: #8A6A00; }
.st-chip.bad { background: color-mix(in srgb, var(--a) 10%, #fff); color: var(--a); }
.st-chip.off { background: var(--card2); color: var(--mu); }
.ev { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; font-family: var(--ff-mono); font-size: 10px; font-weight: 500; color: #fff; background: var(--tx); }
.ev.J { background: #F2C230; color: #3d2f00; width: 15px; min-width: 15px; height: 21px; padding: 0; border-radius: 3px; font-size: 0; }
.ev.R { background: var(--a); width: 15px; min-width: 15px; height: 21px; padding: 0; border-radius: 3px; font-size: 0; }
.ev.\32 J { background: linear-gradient(135deg, #F2C230 50%, var(--a) 50%); width: 15px; min-width: 15px; height: 21px; padding: 0; border-radius: 3px; font-size: 0; }
.ev.B, .ev.P { background: var(--p); }
.ev.CSC { background: var(--tx2); }
.ev.PM { background: var(--mu); }
.ev.RP { background: #fff; color: var(--tx2); box-shadow: inset 0 0 0 1.5px var(--b2); }
.mc-hero { border-radius: 32px; padding: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(420px 260px at 90% 0%, color-mix(in srgb, var(--s) 22%, transparent), transparent 70%),
              linear-gradient(160deg, color-mix(in srgb, var(--p) 100%, #fff 6%), color-mix(in srgb, var(--p) 55%, #000)); }
.mc-hero .teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 16px; }
.mc-hero .tn { font-family: var(--ff-title); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -.015em; }
.mc-hero .sc { font-family: var(--ff-title); font-weight: 700; font-size: 54px; letter-spacing: -.03em; }
.mc-hero .vs { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .3em; color: var(--s); }
.mc-hero .eyebrow { color: rgba(255, 255, 255, .72); }
.mc-hero .meta2 { margin-top: 14px; opacity: .85; font-size: 14px; }
@media (max-width: 640px) { .mc-hero .tn { font-size: 21px; } .mc-hero .sc { font-size: 38px; } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .tt { font-family: var(--ff-title); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.tile .ds { font-size: 13px; color: var(--tx2); }
.mc-list .mc-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; color: inherit; }
.mc-list .mc-row + .mc-row { border-top: 1px solid var(--b); }
.mc-list .mc-row:hover { background: var(--card2); text-decoration: none; }
.mc-row .when { font-family: var(--ff-mono); font-size: 12px; color: var(--tx2); line-height: 1.5; }
.mc-row .teams { font-family: var(--ff-title); font-weight: 600; font-size: 16px; }
.mc-row .teams span { color: var(--mu); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; margin: 0 8px; }
.mc-row .chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .mc-list .mc-row { grid-template-columns: 1fr; gap: 8px; } .mc-row .chips { justify-content: flex-start; } }

/* Startlist */
.ls-table td { padding: 8px 10px; }
.ls-table .in { padding: 7px 10px; border-radius: 10px; }
.seg3 { display: inline-flex; background: var(--card2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg3 label { cursor: pointer; }
.seg3 input { position: absolute; opacity: 0; pointer-events: none; }
.seg3 span { display: inline-flex; min-width: 34px; height: 30px; padding: 0 9px; align-items: center; justify-content: center; border-radius: 999px; font-family: var(--ff-mono); font-size: 12px; color: var(--tx2); transition: background .15s, color .15s; }
.seg3 input:checked + span { background: var(--tx); color: #fff; }
.seg3 input[value=P]:checked + span { background: var(--p); }
.seg3 input[value=I]:checked + span, .seg3 input[value=A]:checked + span { background: var(--mu); }
.seg3 input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 30%, transparent); }
tr.suspended td { background: color-mix(in srgb, var(--a) 5%, #fff); }
.counter { display: flex; gap: 10px; flex-wrap: wrap; }
.counter b { font-family: var(--ff-title); font-size: 22px; }
.pitch { position: relative; width: 100%; aspect-ratio: 68 / 100; border-radius: 22px; background:
  repeating-linear-gradient(180deg, #0E8A48 0 10%, #0B7C40 10% 20%); overflow: hidden; touch-action: none; }
.pitch::before { content: ""; position: absolute; inset: 4%; border: 2px solid rgba(255, 255, 255, .55); border-radius: 6px; }
.pitch::after { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; border-top: 2px solid rgba(255, 255, 255, .55); }
.pitch .circle { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box { position: absolute; left: 25%; right: 25%; height: 14%; border: 2px solid rgba(255, 255, 255, .55); }
.pitch .box.b { bottom: 4%; border-bottom: 0; } .pitch .box.t { top: 4%; border-top: 0; }
.pitch .pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab; user-select: none; }
.pitch .pl i { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--tx); font-style: normal; font-family: var(--ff-title); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.pitch .pl.gk i { background: var(--s); }
.pitch .pl span { font-family: var(--ff-title); font-weight: 600; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* Feuille de match */
.timeline { position: relative; }
.tl-row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 10px; padding: 9px 20px; }
.tl-row + .tl-row { border-top: 1px solid var(--b); }
.tl-row .mn { text-align: center; font-family: var(--ff-mono); font-size: 13px; color: var(--tx2); }
.tl-row .sd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl-row .sd.h { justify-content: flex-end; text-align: right; }
.tl-row .who { font-family: var(--ff-title); font-weight: 600; font-size: 15px; }
.tl-row .who small { display: block; font-family: var(--ff); font-weight: 400; font-size: 12px; color: var(--mu); }
.rating { display: inline-flex; gap: 4px; }
.rating label { cursor: pointer; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating span { display: inline-flex; width: 36px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--card2); font-family: var(--ff-mono); font-size: 13px; color: var(--tx2); }
.rating input:checked + span { background: var(--p); color: #fff; }
.yn { display: inline-flex; background: var(--card2); border-radius: 999px; padding: 3px; }
.yn label { cursor: pointer; } .yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn span { display: inline-flex; height: 30px; padding: 0 14px; align-items: center; border-radius: 999px; font-family: var(--ff-title); font-weight: 500; font-size: 13px; color: var(--tx2); }
.yn input[value="1"]:checked + span { background: var(--p); color: #fff; }
.yn input[value="0"]:checked + span { background: var(--tx2); color: #fff; }
.report-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--b); }
.report-field.wide { grid-template-columns: 1fr; }
.report-field:last-child { border-bottom: 0; }
.report-field > span { font-weight: 500; font-size: 14px; }
@media (max-width: 640px) { .report-field { grid-template-columns: 1fr; gap: 8px; } }
fieldset[disabled] .in, fieldset[disabled] .rating span, fieldset[disabled] .yn span, fieldset[disabled] .seg3 span { opacity: .75; cursor: default; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ════════════════════════════════════════════════════════════════════
   EN-TÊTE PERSONNALISABLE · MENU MOBILE · ACTUALITÉS
   ════════════════════════════════════════════════════════════════════ */
.pub-header { background: var(--hdr-bg); color: var(--hdr-tx); box-shadow: 0 1px 0 color-mix(in srgb, var(--hdr-tx) 10%, transparent); position: sticky; }
.pub-header.not-sticky { position: relative; }
.pub-header::after { display: none; }
.pub-header.has-stripe::after { display: block; }
.pub-header .in-w { position: relative; z-index: 2; }
.pub-header .brand, .pub-header .brand .name { color: var(--hdr-tx); }
.pub-header .brand .sub { color: color-mix(in srgb, var(--hdr-tx) 60%, transparent); }
.pub-header .pub-nav a { color: color-mix(in srgb, var(--hdr-tx) 78%, transparent); }
.pub-header .pub-nav a:hover { background: color-mix(in srgb, var(--hdr-tx) 7%, transparent); }
.pub-header .pub-nav a.on { color: var(--hdr-tx); background: color-mix(in srgb, var(--hdr-tx) 10%, transparent); }
.hdr-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hdr-img::after { content: ""; position: absolute; inset: 0; background: var(--hdr-bg); opacity: var(--hdr-ov); }
.pub-header.has-image .in-w { padding-top: 14px; padding-bottom: 14px; }
.brand .mark { width: var(--hdr-logo); height: var(--hdr-logo); }
.logo-rounded .brand .mark { border-radius: 14px; }
.logo-none .brand .mark { border-radius: 0; background: transparent; box-shadow: none; }
.logo-none .brand .mark img { background: transparent; }

/* Menu déroulant (burger) */
.pub-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--hdr-tx) 8%, transparent); position: relative; padding: 0; cursor: pointer; flex-shrink: 0; }
.pub-burger span, .pub-burger span::before, .pub-burger span::after { position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--hdr-tx); content: ""; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.pub-burger span { top: 20px; } .pub-burger span::before { left: 0; top: -6px; } .pub-burger span::after { left: 0; top: 6px; }
.pubnav-open .pub-burger span { background: transparent; }
.pubnav-open .pub-burger span::before { transform: translateY(6px) rotate(45deg); }
.pubnav-open .pub-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mob-drawer { display: none; }
@media (max-width: 860px) {
  .pub-burger { display: inline-block; }
  .pub-header .hdr-admin { margin-left: auto; }
  .mob-drawer { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); z-index: 70;
    background: var(--mnav-bg); border-radius: 22px; padding: 8px; box-shadow: 0 18px 50px rgba(20, 33, 26, .18);
    opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s; }
  .pubnav-open .mob-drawer { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .mob-drawer a { padding: 14px 16px; border-radius: 14px; color: var(--mnav-tx); font-family: var(--ff-title); font-size: 17px; font-weight: 500; text-decoration: none; }
  .mob-drawer a.on { color: var(--mnav-on); background: color-mix(in srgb, var(--mnav-on) 10%, transparent); }
  .bottom-nav { background: var(--mnav-bg); border-top: 0; }
  .bottom-nav a { color: var(--mnav-tx); }
  .bottom-nav a.on { color: var(--mnav-on); }
  .bottom-nav a.on::before { background: var(--mnav-on); }
  body.mnav-burger .pub-main { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .mob-drawer, .pub-burger span::before, .pub-burger span::after { transition: none; } }

/* Rencontres : équipes sur une ligne, date · heure · journée en dessous (sans défilement horizontal) */
.match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "home score away" "when when when"; column-gap: 14px; row-gap: 6px; align-items: center; }
.match .m-comp { display: none; }
.match .team.home { grid-area: home; text-align: right; }
.match .team.away { grid-area: away; text-align: left; }
.match .score { grid-area: score; justify-self: center; }
.match .m-when { grid-area: when; text-align: center; color: var(--mu); white-space: normal; }
.match .m-comp-sm { font-weight: 500; }
@media (max-width: 720px) { .match { column-gap: 12px; padding: 14px 16px; } .match .team { line-height: 1.25; font-size: 14px; overflow-wrap: anywhere; } }

/* Hero actualités */
.news-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
.news-hero.solo { grid-template-columns: 1fr; }
.nh-main { position: relative; display: block; min-height: 420px; border-radius: 32px; overflow: hidden; color: #fff; text-decoration: none !important;
  background: linear-gradient(150deg, color-mix(in srgb, var(--p) 100%, #fff 6%), color-mix(in srgb, var(--p) 55%, #000)); box-shadow: var(--shadow); isolation: isolate; }
.nh-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); z-index: -2; }
.nh-main:hover img { transform: scale(1.03); }
.nh-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 20, 11, 0) 30%, rgba(4, 20, 11, .55) 62%, rgba(4, 20, 11, .9)); }
.nh-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.nh-title { font-family: var(--ff-title); font-weight: 700; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.nh-sum { font-size: 15px; opacity: .85; max-width: 60ch; }
.nh-date { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.nh-side { display: flex; flex-direction: column; gap: 10px; }
.nh-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); color: inherit; text-decoration: none !important; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.nh-item:hover { transform: translateY(-2px); }
.nh-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--p) 12%, #fff); }
.nh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nh-it-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nh-it-title { font-family: var(--ff-title); font-weight: 600; font-size: 16px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-all { margin-top: auto; padding: 12px 4px 2px; font-family: var(--ff-title); font-weight: 500; }
@media (max-width: 860px) {
  .news-hero { grid-template-columns: 1fr; }
  .nh-main { min-height: 360px; border-radius: 26px; }
  .nh-body { padding: 22px 20px; }
  .nh-sum { display: none; }
}

/* Cartes et liste d'actualités */
.type-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--p) 11%, #fff); color: var(--p); }
.type-chip.t-communique { background: color-mix(in srgb, var(--a) 10%, #fff); color: var(--a); }
.type-chip.t-presse { background: #F1EFE6; color: #7A6410; }
.type-chip.on-dark { background: var(--s); color: #14211A; }
.nc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--ff-mono); font-size: 11px; color: var(--mu); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; }
.nc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--p) 10%, #fff); position: relative; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.news-card:hover .nc-img img { transform: scale(1.04); }
.nc-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-title); font-size: 20px; color: color-mix(in srgb, var(--p) 55%, #fff); }
.nc-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.nc-title { font-family: var(--ff-title); font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.nc-sum { color: var(--tx2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.page-head { display: flex; flex-direction: column; gap: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.pg { padding: 9px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-family: var(--ff-title); color: var(--tx); }
.pg.off { opacity: .4; }
.pg-info { font-family: var(--ff-mono); font-size: 12px; color: var(--mu); }

/* Page article */
.article { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.art-head { display: flex; flex-direction: column; gap: 12px; }
.art-head h1 { font-family: var(--ff-title); font-weight: 700; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.art-lead { margin: 0; font-size: 18px; color: var(--tx2); line-height: 1.55; }
.art-cover { margin: 0; }
.art-cover img { width: 100%; border-radius: 26px; display: block; }
.art-cover figcaption { font-size: 12px; color: var(--mu); margin-top: 8px; }
.art-body { font-size: 17px; line-height: 1.75; color: var(--tx); overflow-wrap: anywhere; }
.art-body h2, .art-body h3 { font-family: var(--ff-title); font-weight: 600; letter-spacing: -.01em; margin: 1.4em 0 .4em; }
.art-body img { border-radius: 18px; }
.art-body blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--p); color: var(--tx2); }
.art-links { padding-top: 6px; }

/* Back-office : articles */
.art-form { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 980px) { .art-form { grid-template-columns: 1fr; } }
.art-thumb { width: 64px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--card2); flex-shrink: 0; display: block; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-cover-preview { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--card2); }
.art-cover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Personnalisation : blocs et menu */
.order-list { display: flex; flex-direction: column; gap: 6px; }
.order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--card2); }
.order-row.nav { grid-template-columns: minmax(0, 1fr) auto auto auto auto; }
.order-row .mv { display: flex; gap: 4px; }
.order-row .mv button { width: 32px; height: 32px; border: 0; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; color: var(--tx2); box-shadow: 0 1px 4px rgba(20, 33, 26, .08); }
.order-row .mv button:disabled { opacity: .35; cursor: default; }
.order-row .in { padding: 8px 10px; font-size: 14px; }
.order-row .check { white-space: nowrap; font-size: 13px; }
.match .team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .match .team { white-space: normal; overflow: visible; } }
.match .score small { display: block; font-size: 10px; text-align: center; }
/* Bouton de fermeture des fenêtres */
dialog.modal .mh { gap: 12px; }
dialog.modal .x { width: auto; height: auto; flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-family: var(--ff-title); font-size: 14px; font-weight: 500; cursor: pointer; }
dialog.modal { overflow-x: hidden; }
dialog.modal .mh h2 { min-width: 0; }

/* Pas de défilement horizontal de la page : seuls les tableaux défilent */
html, body { overflow-x: hidden; }
.adm-content { min-width: 0; }
.adm-content > * { max-width: 100%; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
dialog.modal { width: min(560px, calc(100vw - 24px)); max-width: calc(100vw - 24px); margin: auto; }

/* Rubrique de menu mise en couleur */
.pub-nav a.tint { background: var(--tint); color: #fff; }
.pub-nav a.tint:hover { background: var(--tint); filter: brightness(1.08); }
.pub-nav a.tint.on { background: var(--tint); color: #fff; }
.bottom-nav a.tint { color: var(--tint); }
.bottom-nav a.tint.on::before { background: var(--tint); }
.mob-drawer a.tint { color: var(--tint); background: color-mix(in srgb, var(--tint) 10%, transparent); }

/* ── Éditeur d'article ── */
.rte { border: 1px solid var(--b); border-radius: 18px; overflow: hidden; background: #fff; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--b); background: var(--card2); position: sticky; top: 0; z-index: 3; }
.rte-bar button { border: 0; background: #fff; border-radius: 10px; padding: 7px 11px; font: 600 13px var(--ff-title), var(--ff); color: var(--tx2); cursor: pointer; box-shadow: 0 1px 3px rgba(20, 33, 26, .08); }
.rte-bar button:hover { color: var(--p); }
.rte-bar .sep { width: 1px; background: var(--b); margin: 2px 4px; }
.rte-area { min-height: 320px; max-height: 60vh; overflow: auto; padding: 18px 20px; font-size: 16px; line-height: 1.7; outline: none; }
.rte-area:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--p) 25%, transparent); }
.rte-area h2 { font-size: 22px; margin: 1.2em 0 .3em; }
.rte-area h3 { font-size: 18px; margin: 1.1em 0 .3em; }
.rte-area blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--p); color: var(--tx2); }
.rte-area figure { margin: 1.2em 0; }
.rte-area img, .rte-area video { width: 100%; border-radius: 14px; display: block; }
.rte-area figcaption { font-size: 12px; color: var(--mu); margin-top: 6px; }
.rte-area .rte-embed { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.rte-area .rte-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rte-note { padding: 8px 12px; border-top: 1px solid var(--b); font-size: 12px; color: var(--mu); background: var(--card2); }

/* Rendu public des articles : médias */
.art-body figure { margin: 1.6em 0; }
.art-body img, .art-body video { width: 100%; border-radius: 22px; display: block; }
.art-body figcaption { font-size: 13px; color: var(--mu); margin-top: 8px; }
.art-body .rte-embed, .art-body iframe { width: 100%; border: 0; border-radius: 22px; }
.art-body .rte-embed { position: relative; padding-top: 56.25%; overflow: hidden; background: #000; }
.art-body .rte-embed iframe { position: absolute; inset: 0; height: 100%; }

/* Saisie d'un code à usage unique */
.otp-input { font-family: var(--ff-mono); font-size: 30px; letter-spacing: .5em; text-align: center; padding: 14px 10px; }
