/* Hoopbook — charte graphique (lot 7). Un seul fichier, sans framework. Deux thèmes (clair par défaut, sombre au choix),
   mobile d'abord, puis deux paliers : 768 px et 1100 px. Tokens en tête ; composants ensuite ; paliers à la fin. */

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

/* ── Tokens ──
   Toute couleur du site est définie ICI, une fois par thème, et nulle part ailleurs (un test le vérifie).
   Clair par défaut ; sombre si le visiteur l'a choisi (cookie « theme », lu par le serveur qui pose data-theme sur <html>).
   Contrastes texte/fond vérifiés ≥ 4,5:1 dans les deux thèmes. Règle : l'orange vif (--accent) et le vert des pastilles
   (--victoire) sont des FONDS ; comme couleur de texte on prend --accent-clair, --accent-chiffre et --positif. */
:root {
    --rayon-carte: 16px;
    --rayon-bouton: 12px;
    --rayon-pastille: 5px;
    --texte-police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --chiffres-police: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --tactile: 44px;
    --largeur: 480px;
}
:root, [data-theme="light"] {
    color-scheme: light;
    --fond: #F5F6F8;
    --fond-derriere: #ECEEF2;
    --surface: #FFFFFF;
    --surface-2: #F0F2F5;
    --bordure: #E2E6EC;
    --bordure-cote: #D3D9E2;
    --separateur: #EDF0F3;
    --bordure-entete: #E2E6EC;
    --texte: #11151C;
    --texte-2: #5B6574;
    --texte-3: #3A4250;
    --accent: #FF7A1A;
    --sur-accent: #11151C;
    --accent-fond: #FFF1E6;
    --accent-clair: #B84A00;
    --accent-chiffre: #B84A00;
    --bleu: #3B6FD8;
    --bleu-fond: #EAF0FC;
    --bleu-clair: #2557BF;
    --victoire: #B8F25A;
    --victoire-texte: #11151C;
    --positif: #3F7A00;
    --defaite: #E4E7EC;
    --defaite-texte: #5B6574;
}
[data-theme="dark"] {
    color-scheme: dark;
    --fond: #0B0E13;
    --fond-derriere: #07090D;
    --surface: #141922;
    --surface-2: #1C2330;
    --bordure: #262E3B;
    --bordure-cote: #2E3746;
    --separateur: #1C2330;
    --bordure-entete: #1E2531;
    --texte: #F2F4F7;
    --texte-2: #9AA4B2;
    --texte-3: #C9D1DB;
    --accent: #FF7A1A;
    --sur-accent: #0B0E13;
    --accent-fond: #2A1A0C;
    --accent-clair: #FFB070;
    --accent-chiffre: #FF7A1A;
    --bleu: #5B8DEF;
    --bleu-fond: #141C2B;
    --bleu-clair: #9DBBF5;
    --victoire: #B8F25A;
    --victoire-texte: #0B0E13;
    --positif: #B8F25A;
    --defaite: #2A3140;
    --defaite-texte: #9AA4B2;
}
/* ── Fin des tokens ── */

/* ── Base ── */
* { box-sizing: border-box; }
html { background: var(--fond-derriere); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond-derriere); color: var(--texte); font: 400 15px/1.45 var(--texte-police); }
.page { max-width: var(--largeur); min-height: 100vh; margin: 0 auto; background: var(--fond); display: flex; flex-direction: column; }
main { flex: 1; padding: 4px 16px 32px; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.icone { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chiffres, .chiffres-ligne strong, h1, h2, h3, .cote, .score, .valeur { font-family: var(--chiffres-police); font-variant-numeric: tabular-nums; }
.vide { color: var(--texte-2); margin: 8px 0; }
.note { color: var(--texte-2); font-size: 12px; line-height: 1.5; margin: 10px 2px 0; }
.note a, .lien { color: var(--accent-clair); text-decoration: underline; text-underline-offset: 3px; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── En-tête et pied ── */
.entete { background: var(--fond-derriere); }
.entete .dedans { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--largeur); margin: 0 auto; padding: 10px 16px;
    background: var(--fond); border-bottom: 1px solid var(--bordure-entete); }
.entete .actions { display: flex; align-items: center; gap: 8px; }
.entete form { margin: 0; }
.entete .bouton-carre { cursor: pointer; padding: 0; }
.entete .recherche-entete { display: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tactile); font: 700 24px/1 var(--chiffres-police); letter-spacing: .04em; }
.logo svg { width: 26px; height: 26px; stroke: var(--accent); }
.bouton-carre { display: inline-flex; align-items: center; justify-content: center; width: var(--tactile); height: var(--tactile); flex: none;
    background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-bouton); color: var(--texte); }
.pied { padding: 20px 16px 28px; border-top: 1px solid var(--bordure-entete); color: var(--texte-2); font-size: 12px; line-height: 1.5; }
.pied p { margin: 0; }
.pied .liens { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; margin-top: 4px; }
.pied .liens a { display: inline-flex; align-items: center; min-height: var(--tactile); color: var(--accent-clair); text-decoration: underline; text-underline-offset: 3px; }
.texte p { max-width: 68ch; margin: 0 0 10px; line-height: 1.6; }
/* L'attribut hidden doit gagner sur les display posés par les composants (bouton de thème avant que le script ne le branche). */
[hidden] { display: none !important; }
.si-clair, [data-theme="dark"] .si-sombre { display: contents; }
.si-sombre, [data-theme="dark"] .si-clair { display: none; }

/* ── Titres ── */
.fil { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-size: 12px; color: var(--texte-2); margin-top: 6px; }
.fil a { display: inline-flex; align-items: center; min-height: var(--tactile); color: var(--texte-2); }
.fil span[aria-current] { color: var(--texte-3); }
h1 { font-size: 34px; font-weight: 700; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; margin: 2px 0 6px; overflow-wrap: anywhere; }
h1.long { font-size: 28px; }
.sous-titre { color: var(--texte-2); font-size: 13px; margin: 0 0 16px; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; margin: 28px 0 12px; }
h3 { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-3); margin: 18px 0 8px; }
section { scroll-margin-top: 12px; }

/* ── Cartes, chips, boutons ── */
.carte { display: block; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 14px; }
.carte + .carte { margin-top: 10px; }
/* Une pile de cartes : une colonne sur mobile, une grille à partir de 768 px (voir les paliers en fin de fichier). */
.pile { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.pile > .carte { margin-top: 0; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tactile); padding: 0 14px; background: var(--surface);
    border: 1px solid var(--bordure); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--texte); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquette { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--bordure); background: var(--surface-2);
    font-size: 11px; font-weight: 600; color: var(--texte-3); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px;
    background: var(--accent); color: var(--sur-accent); font: 700 15px/1 var(--texte-police); cursor: pointer; }

/* Onglets d'ancres : quatre colonnes égales, jamais de défilement horizontal. Actif = la section ciblée, sinon le premier. */
.onglets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 4px; }
.onglets .chip { padding: 0 4px; font-size: 12.5px; min-width: 0; }
.onglets .chip:first-child, .onglets .chip.actif { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
main:has(section:target) .onglets .chip:first-child { background: var(--surface); border-color: var(--bordure); color: var(--texte); }
main:has(#pronos:target) .onglets a[href="#pronos"], main:has(#classement:target) .onglets a[href="#classement"],
main:has(#projection:target) .onglets a[href="#projection"], main:has(#stats:target) .onglets a[href="#stats"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }

/* ── Carte match ── */
.match { color: inherit; }
.match .haut { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 10px; }
.match .haut > :last-child { text-align: right; }
.match .ligne { display: grid; grid-template-columns: 1fr 64px; align-items: center; gap: 10px; }
.match .ligne + .ligne { margin-top: 8px; }
/* Nom court sur une ligne : au-delà de la place disponible, points de suspension (le nom complet est en info-bulle). */
.tronque, .match .nom { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .nom { font-weight: 600; font-size: 14px; line-height: 1.25; }
.match .nom.battu { color: var(--texte-2); font-weight: 500; }
.cote { display: flex; align-items: center; justify-content: center; width: 64px; min-height: var(--tactile); background: var(--surface-2); border: 1px solid var(--bordure-cote);
    border-radius: var(--rayon-bouton); font-size: 20px; font-weight: 700; color: var(--texte); }
.cote.favori { background: var(--accent-fond); border-color: var(--accent); color: var(--accent-clair); }
.cote.sans { color: var(--texte-2); font-weight: 500; }
.match .score { display: flex; align-items: center; justify-content: center; width: 64px; min-height: 36px; font-size: 24px; font-weight: 700; }
.match .battu + .score { color: var(--texte-2); font-weight: 600; }
.barre { display: flex; height: 6px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: var(--bleu); }
.barre i { display: block; background: var(--accent); border-right: 2px solid var(--surface); }
.barre.epaisse { height: 8px; }
.chances { display: flex; justify-content: space-between; margin-top: 6px; font: 600 14px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chances .dom { color: var(--accent-clair); }
.chances .ext { color: var(--bleu-clair); }
.match .bas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--texte-2); }
.verdict { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.verdict svg { width: 16px; height: 16px; stroke-width: 2.5; }
.verdict.bon { color: var(--positif); }
.verdict.rate { color: var(--texte-2); }
.exempt { font-size: 12px; color: var(--texte-2); margin: 8px 2px 0; }

/* Journées repliées (sans JavaScript) */
details.pli { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); margin-top: 10px; }
details.pli > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; cursor: pointer; list-style: none;
    font: 600 17px/1 var(--chiffres-police); text-transform: uppercase; letter-spacing: .04em; }
details.pli > summary::-webkit-details-marker { display: none; }
details.pli > summary small { font: 400 12px/1.2 var(--texte-police); text-transform: none; letter-spacing: 0; color: var(--texte-2); }
details.pli > summary svg { transition: transform .15s; color: var(--texte-2); }
details.pli[open] > summary svg { transform: rotate(90deg); }
details.pli > .contenu { padding: 0 10px 10px; }
details.pli .carte { background: var(--fond); }

/* ── Pastilles V / D ── */
.forme { display: inline-flex; gap: 3px; vertical-align: middle; }
.pastille { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--rayon-pastille);
    font: 700 11px/1 var(--texte-police); background: var(--defaite); color: var(--defaite-texte); }
.pastille.v { background: var(--victoire); color: var(--victoire-texte); }
.serie { font: 700 15px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; color: var(--texte-2); }
.serie.v { color: var(--positif); }

/* ── Classement ── */
.classement { padding: 4px 0; }
.classement table { width: 100%; border-collapse: collapse; }
.classement th { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); text-align: center; padding: 10px 4px 6px; }
.classement td { padding: 0 4px; height: 48px; border-top: 1px solid var(--separateur); text-align: center; font-size: 13px; }
.classement th:first-child, .classement td:first-child { padding-left: 14px; width: 34px; text-align: left; }
.classement th:last-child, .classement td:last-child { padding-right: 14px; }
.classement .equipe { text-align: left; }
.classement td.equipe { max-width: 0; width: 100%; }
.classement td.equipe a { display: flex; align-items: center; min-height: 48px; font-weight: 600; line-height: 1.2; }
.classement .rang { font: 700 17px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; color: var(--texte-2); }
.classement .tete .rang { color: var(--accent-chiffre); }
.classement .points { font: 700 18px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; }

/* ── Course à la 1re place et projection ── */
.course li, .liste li { list-style: none; }
.course, .liste { margin: 0; padding: 0; }
.course li + li { margin-top: 14px; }
.course .tete-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.course .nom { font-weight: 600; font-size: 14px; min-width: 0; display: flex; align-items: center; min-height: 32px; }
.course .pourcent { font: 700 16px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; color: var(--accent-clair); white-space: nowrap; }
.jauge { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.jauge i { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--accent); }
.course .probable, .liste .probable { display: block; font-size: 12px; color: var(--texte-2); margin-top: 6px; }
.liste li { padding: 4px 4px; border-top: 1px solid var(--separateur); }
.liste li:first-child { border-top: 0; }
.liste a { display: flex; align-items: center; min-height: var(--tactile); font-weight: 600; font-size: 14px; }
.liste .probable { margin: -6px 0 8px; }
.places { display: grid; gap: 2px; margin: 12px 0 6px; }
.places > span { display: flex; flex-direction: column; justify-content: flex-end; height: 64px; min-width: 0; }
.places i { display: block; height: calc(var(--p) * 48px); min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.places i.nul { visibility: hidden; }
.places b { font: 500 11px/16px var(--chiffres-police); text-align: center; color: var(--texte-2); border-top: 1px solid var(--bordure); }

/* ── Tuiles de stats ── */
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.tuile { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 12px 14px; min-width: 0; }
.tuile.large { grid-column: 1 / -1; }
.tuile dt, .libelle { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); }
.tuile dd { margin: 4px 0 0; }
.tuile .valeur { display: inline-block; font-size: 26px; font-weight: 700; line-height: 1.05; color: var(--accent-chiffre); }
.tuile .unite { font-size: 12px; color: var(--texte-3); }
.tuile .detail { display: block; font-size: 12px; line-height: 1.45; color: var(--texte-2); margin-top: 4px; overflow-wrap: anywhere; }

/* ── Tableaux simples (moyennes) ── */
.tableau { width: 100%; border-collapse: collapse; }
.tableau th { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); text-align: right; padding: 0 0 8px; }
.tableau td { text-align: right; padding: 10px 0; border-top: 1px solid var(--separateur); font: 600 17px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; }
.tableau th, .tableau td { padding-left: 8px; }
.tableau th:first-child, .tableau td:first-child { padding-left: 0; text-align: left; font: 500 13px/1.3 var(--texte-police); }
.tableau td.fort { color: var(--accent-clair); font-weight: 700; }

/* ── Page match ── */
.bandeau { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.bandeau .quand { font: 600 17px/1.15 var(--chiffres-police); text-transform: uppercase; letter-spacing: .04em; }
.bandeau .quand small { display: block; font: 400 12px/1.4 var(--texte-police); text-transform: none; letter-spacing: 0; color: var(--texte-2); }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; text-align: center; margin: 8px 0 18px; }
.duel a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.rond { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--accent-fond); border: 2px solid var(--accent);
    font: 700 22px/1 var(--chiffres-police); letter-spacing: .03em; color: var(--accent-clair); }
.rond.ext { background: var(--bleu-fond); border-color: var(--bleu); color: var(--bleu-clair); }
.duel .centre { align-self: center; padding-top: 6px; font: 700 34px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; white-space: nowrap; }
.duel .centre.attente { font-size: 20px; color: var(--texte-2); }
.prono-carte { text-align: center; }
.prono-carte .gros { font: 700 48px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; color: var(--accent-chiffre); }
.prono-carte .gros.ext { color: var(--bleu-clair); }
.prono-carte .pour { font-size: 13px; color: var(--texte-3); margin: 4px 0 14px; }
.prono-carte .prevu { font: 700 34px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; margin-top: 4px; }
.prono-carte .barre { margin-top: 16px; }
.deux-cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.deux-cotes .cote { width: auto; min-height: 56px; flex-direction: column; gap: 2px; }
.deux-cotes .cote small { max-width: 100%; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 10px/1 var(--texte-police); letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); }
.prono-carte .verdict { margin-top: 14px; font-size: 14px; }
.comparatif { padding: 4px 14px; }
.comparatif .rangee { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--separateur); }
.comparatif .rangee:first-child { border-top: 0; }
.comparatif .rangee > :first-child { text-align: left; justify-self: start; }
.comparatif .rangee > :last-child { text-align: right; justify-self: end; }
.comparatif .quoi { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); text-align: center; max-width: 150px; }
.comparatif .val { font: 600 17px/1.1 var(--chiffres-police); font-variant-numeric: tabular-nums; }

/* ── Accueil et recherche ── */
.recherche { display: flex; gap: 8px; margin: 8px 0 4px; }
.recherche input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-bouton);
    color: var(--texte); font: 400 16px/1 var(--texte-police); }
.recherche input::placeholder { color: var(--texte-2); }
.recherche .bouton-carre { width: 48px; height: 48px; background: var(--accent); border-color: var(--accent); color: var(--sur-accent); cursor: pointer; }
.competition .intitule { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.competition .code { font: 700 15px/1 var(--chiffres-police); color: var(--accent-clair); white-space: nowrap; }
.competition .phase-nom { display: block; font-size: 12px; color: var(--texte-2); margin: 10px 0 8px; }
.trouvee { display: block; }
.trouvee .equipe { display: flex; align-items: center; min-height: var(--tactile); font-weight: 600; font-size: 15px; }
.trouvee .ou { display: block; font-size: 12px; line-height: 1.5; color: var(--texte-2); }
.trouvee .complet { margin: -8px 0 4px; }
.trouvee .ou a { color: var(--accent-clair); display: inline-flex; align-items: center; min-height: 32px; }
.calendrier { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.calendrier .repere { display: flex; align-items: center; gap: 6px; margin: 0 2px 6px; font: 600 15px/1 var(--chiffres-police); text-transform: uppercase; letter-spacing: .04em; color: var(--texte-3); }
.chiffres-ligne { display: block; font-size: 13px; color: var(--texte-2); }
.chiffres-ligne strong { font-size: 18px; font-weight: 700; color: var(--accent-clair); }

/* ── Colonnes : une seule sur mobile (les deux blocs se fondent, l'ordre des sections est posé ici) ── */
.colonnes { display: flex; flex-direction: column; }
.colonnes > .principale, .colonnes > .laterale { display: contents; }
#pronos { order: 1; } #classement { order: 2; } #projection { order: 3; } #stats { order: 4; } #resultats { order: 5; }
.page-match .face-a-face { order: 1; } #pronostic { order: 2; } #comparaison { order: 3; } #confrontations { order: 4; }
.moitie #classement, .moitie #projection { order: 0; }
.grand-ecran { display: none; }

/* ── Palier 768 px : conteneur élargi, grilles à deux colonnes, tuiles sur trois ── */
@media (min-width: 768px) {
    :root { --largeur: 760px; }
    main { padding: 8px 24px 40px; }
    .entete .dedans { padding: 12px 24px; }
    .pied { padding: 20px 24px 28px; }
    .pile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calendrier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onglets { max-width: 480px; }
    .duel { max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ── Palier 1100 px : conteneur de 1200 px, en-tête pleine largeur avec recherche, pages en deux colonnes ── */
@media (min-width: 1100px) {
    :root { --largeur: 1200px; }
    .entete { background: var(--fond); border-bottom: 1px solid var(--bordure-entete); }
    .entete .dedans { background: transparent; border-bottom: 0; }
    .entete .recherche-entete { display: flex; flex: 1; max-width: 420px; margin: 0 auto; }
    .recherche-entete input { height: var(--tactile); }
    .recherche-entete .bouton-carre { width: var(--tactile); height: var(--tactile); }
    .lien-recherche, .petit-ecran, .onglets { display: none; }
    .grand-ecran { display: table-cell; }

    .colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 32px; align-items: start; }
    .colonnes > .principale, .colonnes > .laterale { display: block; min-width: 0; }
    .colonnes.page-match { grid-template-columns: minmax(0, 1fr) 460px; }
    .colonnes.moitie { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    /* Dans une colonne étroite, on revient aux grilles du mobile. */
    .laterale .tuiles, .moitie .tuiles { grid-template-columns: 1fr 1fr; }
    .laterale .pile, .laterale .calendrier, .page-match .principale .pile { grid-template-columns: minmax(0, 1fr); }
    .pile.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .classement th, .classement td { padding-left: 3px; padding-right: 3px; }
    .classement td[data-jvd] { font: 600 15px/1 var(--chiffres-police); font-variant-numeric: tabular-nums; color: var(--texte-3); }
    .duel { margin-top: 28px; }
}
