/* ==========================================================
   PHS 2026 — Feuille de style commune
   Gris charcoal neutres, ligne rouge et ligne bleue
   de la patinoire comme seuls accents.
   ========================================================== */

/* ---------- Couleurs (thème sombre par défaut) : palette « Tenebris » ----------
   #292929 #484848 #7E7E7E #2496CA #F3DDB6 — graphite, accents bleu, ligne sable.
   Les teintes intermédiaires sont dérivées de la palette pour que le texte reste lisible. */
:root,
[data-theme="sombre"] {
    --fond:        #292929;  /* graphite */
    --surface:     #333333;  /* blocs */
    --surface-2:   #484848;  /* survols, pastilles */
    --trait:       #4A4A4A;
    --texte:       #F3F1EC;
    --texte-2:     #B8B8B8;  /* le #7E7E7E de la palette, éclairci : 4,6:1 même sur les pastilles (#484848) */
    --rouge:       #4AAEDC;  /* accent en texte : le bleu #2496CA de la palette, éclairci (5:1 sur les blocs) */
    --bleu:        #4AAEDC;  /* liens et soulignés (5:1 sur les blocs, 5,8:1 sur le fond) */
    --accent-fond: #2496CA;  /* fond du 1er rang, onglet actif */
    --accent-texte:#FFFFFF;
    --ligne:       #F3DDB6;  /* sable : ligne sous le menu, repères */
    --baisse:      #F07A72;  /* baisse, défaite : on garde un rouge pour le sens (4,6:1 sur les blocs) */
    --or:          #F3DDB6;  /* sable : 1re étoile, champion */
    --bandeau:     #333333;  /* bandeau des scores */
    --monte:       #3FBF7F;
    --orange-brule:#2496CA;  /* ADMIN, président de la ligue : bleu (texte foncé dessus, 4,4:1) */
    --ufa:         #F3DDB6;  /* UFA : contour et texte (sable) */
    --ufa-plein:   #F3DDB6;  /* UFA protégé : fond sable… */
    --ufa-plein-texte: #292929; /* … avec texte foncé */
    --ombre-menu:  0 12px 32px rgba(0, 0, 0, .5);
    --pied-fond:   #1F1F1F;  /* pied de page, plus foncé que le fond */
    --pied-trait:  #3A3A3A;
    --pied-texte:  #F3F1EC;
    --pied-texte-2:#B8B8B8;
    --pied-accent: #2496CA;  /* bouton Admin */
    color-scheme: dark;
}
/* Thème clair « crème » : #f9f7f1 #f6dbbc #b78763 #caede3 #d3b94f
   Les teintes plus foncées sont dérivées de la palette pour que le texte reste lisible. */
[data-theme="clair"] {
    --fond:        #F9F7F1;  /* crème (fond principal) */
    --surface:     #FFFEFB;  /* blocs */
    --surface-2:   #FBEEDD;  /* pêche adoucie (survols, pastilles) */
    --bandeau:     #F6DBBC;  /* pêche : bandeau des scores */
    --trait:       #E6D8C3;  /* bordures, dérivé du caramel */
    --texte:       #2A221D;  /* brun très foncé */
    --texte-2:     #6B5A4C;  /* brun doux */
    --ligne:       #B78763;  /* caramel : ligne sous le menu, repères */
    --rouge:       #A5522F;  /* caramel foncé pour le texte d'accent */
    --baisse:      #B5462F;
    --bleu:        #2E7864;  /* menthe foncée : liens et soulignés */
    --accent-fond: #CAEDE3;  /* menthe : 1er rang des meneurs */
    --accent-texte:#1E4A3E;
    --or:          #D3B94F;  /* or : 1re étoile, champion */
    --monte:       #247A48;
    --orange-brule:#B04A12;  /* président de la ligue (contraste 5,2:1 sur les blocs) */
    --ufa:         #B3261E;  /* UFA : contour et texte (6,6:1 sur les blocs) */
    --ufa-plein:   #B3261E;  /* UFA protégé : fond (texte blanc 7:1) */
    --ufa-plein-texte: #FFFFFF;
    --ombre-menu:  0 12px 32px rgba(88, 60, 36, .14);
    --pied-fond:   #2A221D;  /* pied de page brun foncé sous le crème */
    --pied-trait:  #44382F;
    --pied-texte:  #F9F7F1;
    --pied-texte-2:#CDBFB1;  /* 9,4:1 sur le pied */
    --pied-accent: #F0A06A;  /* bouton Admin (7,6:1 sur le pied) */
    color-scheme: light;
}

/* ---------- Typographie ---------- */
/* Polices hébergées sur le site (polices/, variables : un fichier par alphabet pour toutes les graisses),
   préchargées dans layout/haut.php. font-display: optional : jamais de décalage de la page quand la police arrive
   (si elle est en retard, la police de secours reste pour cette page ; la suivante l'a en cache). */
@font-face {
    font-family: "Big Shoulders Display";
    font-style: normal;
    font-weight: 600 800;
    font-display: optional;
    src: url("../polices/big-shoulders-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Big Shoulders Display";
    font-style: normal;
    font-weight: 600 800;
    font-display: optional;
    src: url("../polices/big-shoulders-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: optional;
    src: url("../polices/source-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: optional;
    src: url("../polices/source-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
    --police-titre: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --police-texte: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --rayon: 6px;
    --largeur: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police-texte);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--police-titre);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--bleu);
    outline-offset: 2px;
    border-radius: 2px;
}

.visuel-cache {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.lien-evitement {
    position: absolute; left: -9999px; top: 0;
    background: var(--bleu); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.lien-evitement:focus { left: 1rem; }

/* ---------- Mise en page ---------- */
.page {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Titre de section : souligné par une « ligne bleue » */
.titre-section {
    font-size: 1.75rem;
    padding-bottom: .35rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--bleu);
    display: inline-block;
}

.titre-bloc {
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.titre-avec-lien {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.titre-avec-lien a { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.bloc {
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    padding: 1rem;
}

.discret { color: var(--texte-2); font-size: .9rem; }

.message-erreur {
    background: var(--surface);
    border-left: 4px solid var(--rouge);
    padding: 1rem;
}

/* ---------- Tableaux ---------- */
.tableau {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: .95rem;
}
.tableau th,
.tableau td {
    padding: .45rem .4rem;
    text-align: right;
    border-bottom: 1px solid var(--trait);
}
.tableau thead th {
    color: var(--texte-2);
    font-weight: 600;
    font-size: .8rem;
}
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--surface-2); }

/* ---------- Bandeau des scores ---------- */
.scores {
    display: flex;
    align-items: stretch;
    background: var(--bandeau);
    border-bottom: 1px solid var(--trait);
    font-variant-numeric: tabular-nums;
}
.scores__piste {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.scores__piste::-webkit-scrollbar { display: none; }

.scores__jour {
    display: grid;
    place-content: center;
    text-align: center;
    min-width: 64px;
    padding: 0 .5rem;
    background: var(--fond);
    color: var(--texte-2);
    font-size: .8rem;
    line-height: 1.1;
    flex-shrink: 0;
}
.scores__jour strong {
    font-family: var(--police-titre);
    font-size: 1.4rem;
    color: var(--texte);
}

.match {
    display: grid;
    align-content: center;
    gap: .15rem;
    min-width: 150px;
    padding: .4rem .9rem .5rem;
    border-right: 1px solid var(--trait);
    color: var(--texte);
    flex-shrink: 0;
}
a.match:hover { background: var(--surface); text-decoration: none; }
.match__statut {
    font-size: .72rem;
    font-weight: 700;
    color: var(--texte-2);
}
.match__equipe {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}
.match__abbr { flex: 1; }
.match__score { font-size: 1.05rem; }
.match__fiche { font-size: .8rem; font-weight: 400; color: var(--texte-2); }
.match__equipe.est-perdant { color: var(--texte-2); font-weight: 600; }

.scores__fleche {
    background: var(--bandeau);
    border: 0;
    color: var(--texte);
    width: 36px;
    cursor: pointer;
    flex-shrink: 0;
}
.scores__fleche:hover { color: var(--bleu); }

@media (max-width: 640px) {
    .scores__fleche { display: none; }
    .match { min-width: 128px; padding: .35rem .6rem; }
}

/* ---------- Barre de navigation ---------- */
.barre {
    background: var(--surface);
    border-bottom: 3px solid var(--ligne);   /* la ligne rouge (caramel en mode clair) */
    position: sticky;
    top: 0;
    z-index: 50;
}
.barre__interieur {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marque {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--texte);
    font-family: var(--police-titre);
    font-weight: 600;
    font-size: 1.35rem;
    white-space: nowrap;
}
.marque:hover { text-decoration: none; }
.marque strong { font-weight: 800; color: var(--rouge); }

.nav { flex: 1; }
.nav__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.nav__item { position: relative; }

.nav__bouton,
.nav__lien {
    display: flex;
    align-items: center;
    gap: .4rem;
    height: 60px;
    padding: 0 .85rem;
    background: none;
    border: 0;
    color: var(--texte);
    font: 600 1rem var(--police-texte);
    cursor: pointer;
}
.nav__lien:hover { text-decoration: none; }
.nav__bouton::after {
    content: "";
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .6;
}
.nav__bouton:hover,
.nav__lien:hover,
.nav__bouton[aria-expanded="true"] { color: var(--bleu); }

.nav__sous {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: .4rem 0;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--trait);
    border-top: 0;
    border-radius: 0 0 var(--rayon) var(--rayon);
    box-shadow: var(--ombre-menu);
}
.nav__bouton[aria-expanded="true"] + .nav__sous { display: block; }

.nav__sous a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem 1rem;
    color: var(--texte);
}
.nav__sous a:hover { background: var(--surface-2); text-decoration: none; }

/* Section de la page courante et option courante */
.nav__bouton.est-courant { color: var(--bleu); box-shadow: inset 0 -3px 0 var(--bleu); }
.nav__sous a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--bleu); }

/* Options avec description (ordinateur) */
.nav__sous--detail { min-width: 290px; }
.nav__sous--detail a { display: grid; gap: .05rem; padding: .55rem 1rem; }
.nav__libelle { font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.nav__description { color: var(--texte-2); font-size: .8rem; line-height: 1.3; }
.nav__nouveau { padding: .05rem .4rem; border-radius: 999px; background: var(--accent-fond); color: var(--accent-texte); font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* Barre d'onglets du cellulaire : cachée sur ordi */
.onglets { display: none; }
/* Menu de l'équipe dans le burger : sur les pages d'équipe, seulement sur cellulaire (les onglets de l'équipe le remplacent sur ordi) */
.nav__item--seulement-mobile { display: none; }
/* Icônes du menu (layout/icones-menu.php) : seulement dans le burger */
.nav__icone { display: none; flex: none; }
/* Menu « Équipes » : 4 divisions côte à côte */
.nav__item--large { position: static; }
.nav__equipes {
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 100vw - 2rem);
    padding: .75rem;
}
.nav__bouton[aria-expanded="true"] + .nav__equipes { display: block; }
/* Grille de 30 logos : 6 colonnes (5 rangées), le nom de la ville sous le logo */
.nav__grille-equipes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .25rem;
}
.nav__grille-equipes a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .55rem .25rem;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--texte-2);
    text-align: center;
}
.nav__grille-equipes a:hover, .nav__grille-equipes a:focus-visible { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.nav__grille-equipes a[aria-current="page"] { background: var(--surface-2); color: var(--texte); box-shadow: inset 0 -2px 0 var(--bleu); }
.nav__grille-equipes img { width: 40px; height: 40px; object-fit: contain; transition: transform .15s; }
.nav__grille-equipes a:hover img { transform: scale(1.08); }
.nav__grille-equipes span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bouton de thème */
.bascule-theme {
    background: none;
    border: 1px solid var(--trait);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    color: var(--texte);
    cursor: pointer;
    flex-shrink: 0;
}
.bascule-theme:hover { color: var(--bleu); border-color: var(--bleu); }
/* Bouton du compte : « Connexion », ou le logo et l'abréviation de l'équipe du DG connecté (layout/bas.php, moi.php) */
.compte { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .8rem 0 .6rem; flex-shrink: 0;
    border: 1px solid var(--trait); border-radius: 999px; color: var(--texte); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.compte:hover { color: var(--bleu); border-color: var(--bleu); text-decoration: none; }
.compte.est-connecte { position: relative; padding: 0 .2rem; border: 0; border-radius: 0; }
.compte.est-connecte .compte__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compte.est-connecte:hover .compte__logo { transform: scale(1.08); }
.compte__logo { width: 34px; height: 34px; object-fit: contain; transition: transform .15s; }
.compte.est-connecte .nav__compteur { position: absolute; top: -2px; right: -6px; }
.compte .nav__compteur { margin-left: 0; }
[data-theme="sombre"] .icone-lune,
[data-theme="clair"] .icone-soleil { display: none; }

/* Hamburger (caché sur ordi) */
.barre__hamburger {
    display: none;
    background: none;
    border: 0;
    width: 42px; height: 42px;
    cursor: pointer;
    color: var(--texte);
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    position: relative;
    transition: transform .2s;
}
.hamburger::before,
.hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
.barre__hamburger[aria-expanded="true"] .hamburger { background: transparent; }
.barre__hamburger[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.barre__hamburger[aria-expanded="true"] .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Cellulaire et tablette ---------- */
@media (max-width: 960px) {
    .barre__interieur { flex-wrap: wrap; }
    .marque { margin-right: auto; }
    .barre__hamburger { display: grid; place-items: center; order: 3; }
    .bascule-theme { order: 2; }
    .barre__recherche { order: 2; }
    .compte { order: 2; padding: 0 .6rem; }
    .compte:not(.est-connecte) .compte__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compte.est-connecte { padding: 0 .2rem; }

    .nav {
        order: 4;
        flex-basis: 100%;
        display: none;
        padding-bottom: .75rem;
    }
    /* La barre reste collée en haut : le menu ouvert défile dans l'écran (sinon le bas du menu Équipes est inaccessible) */
    .nav.est-ouvert {
        display: block;
        max-height: calc(100vh - 63px);
        max-height: calc(100dvh - 63px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .nav__liste { flex-direction: column; }

    /* Burger : un seul style pour toutes les sections (icône + titre, flèche à droite) et toutes les options
       (icône + libellé, en retrait, l'option courante en pastille bleue teintée) */
    .nav__icone { display: block; }
    .nav__bouton,
    .nav__lien { width: 100%; height: 48px; justify-content: flex-start; gap: .75rem; padding: 0 .5rem; border-radius: 8px; }
    .nav__bouton::after { margin-left: auto; }
    .nav__bouton .nav__icone { color: var(--texte-2); }
    .nav__bouton.est-courant .nav__icone, .nav__bouton[aria-expanded="true"] .nav__icone { color: var(--bleu); }

    .nav__sous,
    .nav__equipes {
        position: static;
        transform: none;
        width: auto;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        margin: 0 0 .35rem;
        padding: .1rem 0 .1rem 1.1rem;
        background: transparent;
    }
    .nav__sous a, .nav__sous--detail a {
        display: flex; align-items: center; gap: .7rem;
        margin: .1rem 0; padding: .55rem .75rem; border-radius: 8px;
        color: var(--texte-2); font-weight: 600;
    }
    .nav__sous a:hover { color: var(--texte); background: var(--surface-2); }
    .nav__sous a .nav__icone { width: 18px; height: 18px; }
    .nav__sous a[aria-current="page"] { color: var(--bleu); background: color-mix(in srgb, var(--bleu) 14%, transparent); box-shadow: none; }
    .nav__grille-equipes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .nav__bouton.est-courant { box-shadow: none; }
    .nav__sous--detail { min-width: 0; }
    .nav__description { display: none; }  /* le menu reste court sur le cellulaire */
    .nav__item--seulement-mobile { display: block; }
    /* Menu de l'équipe : mêmes styles ; les pages sœurs en arbre, en retrait sous leur onglet */
    .nav__sous--equipe a.est-parent { color: var(--bleu); }
    .nav__sous--equipe ul { list-style: none; margin: 0 0 .2rem 1.6rem; padding: 0 0 0 .4rem; border-left: 1px solid var(--trait); }
    .nav__sous--equipe ul a { padding: .45rem .75rem; font-size: .92rem; }
    .nav.est-ouvert { max-height: calc(100dvh - 63px - var(--hauteur-onglets, 64px)); }  /* la barre d'onglets reste visible */

    /* Barre d'onglets fixe en bas, à portée du pouce */
    /* Espace sous le contenu : hauteur réelle de la barre d'onglets (mesurée par layout/bas.php) + une marge */
    body { padding-bottom: calc(var(--hauteur-onglets, calc(64px + env(safe-area-inset-bottom, 0px))) + 1.5rem); }
    .onglets {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: repeat(5, 1fr);
        min-height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--surface); border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
    }
    .onglets__lien {
        display: grid; justify-items: center; align-content: center; gap: .2rem;
        background: none; border: 0; padding: 0; color: var(--texte-2); font: 600 .7rem var(--police-texte); cursor: pointer; text-decoration: none;
    }
    .onglets__lien:hover { text-decoration: none; color: var(--texte); }
    .onglets__lien svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .onglets__lien img { width: 24px; height: 24px; object-fit: contain; }
    .onglets__lien[aria-current="page"], .onglets__lien[aria-expanded="true"] { color: var(--bleu); }
    .onglets__lien[aria-current="page"] svg { stroke-width: 2.4; }
    .onglets__lien span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 480px) {
    .nav__grille-equipes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nav__grille-equipes img { width: 34px; height: 34px; }
}

/* ---------- Pied de page ---------- */
.pied {
    margin-top: 3rem;
    background: var(--pied-fond);
    border-top: 3px solid var(--ligne);
    color: var(--pied-texte-2);
    font-size: .9rem;
}
.pied__interieur {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 2.5rem 1rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.pied a { color: var(--pied-texte); }
.pied a:hover { text-decoration: none; }

/* Ligue : logo, nom, mention STHS, description */
.pied__marque { display: grid; gap: .9rem; align-content: start; }
.pied__description { margin: 0; max-width: 34ch; line-height: 1.5; font-size: .85rem; }
.pied__ligue { display: inline-flex; align-items: center; gap: .75rem; justify-self: start; }
.pied__ligue img { display: block; object-fit: contain; }
.pied__ligue span { display: grid; line-height: 1.15; }
.pied__ligue strong { font-family: var(--police-titre); font-size: 1.45rem; font-weight: 700; color: var(--pied-texte); }
.pied__ligue em { font-style: normal; color: var(--ligne); }
.pied__ligue small { font-size: .82rem; color: var(--pied-texte-2); }

/* Signature emosus (conception du site) */
.pied__emosus { display: inline-flex; align-items: center; gap: .6rem; }
.pied__emosus span { color: var(--pied-texte-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pied__emosus svg { display: block; height: 30px; width: auto; transition: transform .15s; }
.pied__emosus:hover svg { transform: scale(1.05); }

/* Admin et retour en haut */
.pied__actions { display: flex; align-items: center; gap: .75rem; justify-self: end; }
.pied .pied__admin {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border: 1.5px solid var(--pied-accent);
    border-radius: 999px;
    color: var(--pied-accent);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .15s, color .15s;
}
.pied .pied__admin:hover { background: var(--pied-accent); color: var(--pied-fond); }
.pied .pied__haut {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--pied-trait);
    background: rgba(255, 255, 255, .06);
    color: var(--pied-texte);
    flex: none;
    transition: background .15s, border-color .15s;
}
.pied .pied__haut:hover { background: var(--ligne); border-color: var(--ligne); color: #FFFFFF; }

/* Colonnes de liens */
.pied__titre {
    margin: 0 0 .8rem;
    font-family: var(--police-texte, inherit);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ligne);
}
.pied__colonne ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied__colonne--populaires ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.pied__colonne a { color: var(--pied-texte-2); font-size: .9rem; }
.pied__colonne a:hover, .pied__colonne a:focus-visible { color: var(--pied-texte); text-decoration: underline; text-underline-offset: 3px; }
.pied__externe { font-size: .75em; opacity: .7; }

/* Bande du bas : droits à gauche ; signature et retour en haut à droite */
.pied__bas {
    border-top: 1px solid var(--pied-trait);
}
.pied__bas > * { margin: 0; }
.pied__bas {
    max-width: none;
    padding: .9rem max(1rem, calc((100% - var(--largeur)) / 2 + 1rem));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
/* Droits */
.pied__droits {
    font-size: .8rem;
    letter-spacing: .03em;
}
.pied__droits span { margin: 0 .4rem; opacity: .6; }
.pied .pied__droits a { color: var(--pied-texte-2); text-decoration: underline; text-underline-offset: 3px; }
.pied .pied__droits a:hover { color: var(--pied-texte); }
@media (max-width: 960px) {
    .pied__interieur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pied__marque, .pied__colonne--populaires { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .pied__interieur { padding: 2rem 1rem 1.5rem; gap: 1.75rem 1.25rem; }
    .pied__bas { flex-direction: column-reverse; text-align: center; }
}

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

/* ---------- Meneurs (style NHL.com) : accueil et pages d'équipe ---------- */
.categorie__chef {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    color: var(--texte);
    margin-bottom: .75rem;
}
.categorie__chef:hover { text-decoration: none; }
.categorie__chef:hover .categorie__joueur { color: var(--bleu); }

.categorie__photo {
    width: 84px; height: 84px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}
.categorie__identite { display: grid; min-width: 0; line-height: 1.25; }
.categorie__nomcat { color: var(--bleu); font-weight: 700; font-size: 1.05rem; }
.categorie__joueur {
    font-size: 1.1rem;
    line-height: 1.15;
    /* Le nom peut aller sur 2 lignes au lieu d'être coupé */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.categorie__meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--texte-2);
    font-size: .95rem;
    margin-top: .15rem;
    white-space: nowrap;
}

.categorie__stat { display: grid; justify-items: center; line-height: 1; }
.categorie__valeur {
    font-family: var(--police-titre);
    font-weight: 800;
    font-size: clamp(2.8rem, 4.2vw, 3.8rem);
    font-variant-numeric: tabular-nums;
}
.categorie--decimal .categorie__valeur { font-size: clamp(2.2rem, 3vw, 3rem); }
.categorie__unite { color: var(--texte-2); font-size: .9rem; margin-top: .2rem; }

.categorie__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.categorie__liste a {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 1rem;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    background: var(--surface);
    color: var(--texte);
    font-size: 1.02rem;
}
.categorie__liste a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.categorie__liste a:hover { border-color: var(--bleu); text-decoration: none; }
.categorie__liste a.est-premier {
    background: var(--accent-fond);
    border-color: var(--accent-fond);
    color: var(--accent-texte);
    font-weight: 600;
}
.categorie__chiffre { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .categorie__chef { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .categorie__photo { width: 64px; height: 64px; }
}

/* ---------- Classement par division (layout/classement.php) ---------- */
.division { padding: .85rem .85rem .5rem; }
.division h3 { font-size: 1.2rem; margin-bottom: .35rem; }

.tableau--classement .col-equipe { text-align: left; font-weight: 600; }
.tableau--classement .col-equipe a {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--texte);
}
.tableau--classement .col-points { font-weight: 700; }
.rang {
    width: 1.3em;
    color: var(--texte-2);
    font-weight: 400;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.nom-court { display: none; }

/* Ligne rouge sous la dernière équipe qualifiée (calculée en PHP) */
.tableau--classement tbody tr.ligne-qualif > * { border-bottom: 2px solid var(--ligne); }
.wc {
    font-size: .7rem;
    font-weight: 700;
    color: var(--texte-2);
    border: 1px solid var(--trait);
    border-radius: 3px;
    padding: 0 .25rem;
}

.tableau--classement .nom-long { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tableau--classement .col-equipe a { min-width: 0; }

/* L'équipe de la page en cours */
.tableau--classement tbody tr.est-equipe { background: var(--surface-2); }
.tableau--classement tbody tr.est-equipe .col-equipe a { font-weight: 800; }
.tableau--classement tbody tr.est-equipe > :first-child { box-shadow: inset 3px 0 0 var(--bleu); }

/* ---------- Cartes d'échange (layout/echanges.php) : accueil et Mouvements d'une équipe ---------- */
.echanges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
    gap: 1rem;
}
.echange {
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    overflow: hidden;
}

/* Bandeau « ‹‹‹ ÉCHANGE ››› » */
.echange__entete {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .7rem 1rem .6rem;
    background: var(--surface-2);
}
.echange__titre {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--texte);
    line-height: 1;
    padding: 0 .35rem .15rem;
    border-bottom: 4px solid var(--rouge);
}
.echange__chevrons {
    font-family: var(--police-titre);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.1em;
    color: var(--rouge);
}
.echange__date {
    position: absolute;
    right: .75rem;
    top: .5rem;
    font-size: .8rem;
    color: var(--texte-2);
}

/* Deux côtés séparés d'un trait vertical */
.echange__cotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1rem 0;
}
.echange__cote { padding: 0 1rem; min-width: 0; }
.echange__cote + .echange__cote { border-left: 1px solid var(--trait); }

/* Logo encadré sur une ligne horizontale, comme les graphiques d'échange LNH */
.echange__equipe {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 -1rem .75rem;
}
.echange__equipe::before,
.echange__equipe::after {
    content: "";
    height: 2px;
    background: var(--ligne);
}
.echange__cote:first-child .echange__equipe::before { width: 1rem; }
.echange__cote:first-child .echange__equipe::after  { flex: 1; }
.echange__cote:last-child  .echange__equipe { flex-direction: row-reverse; }
.echange__cote:last-child  .echange__equipe::before { width: 1rem; }
.echange__cote:last-child  .echange__equipe::after  { flex: 1; }

.echange__logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border: 2px solid var(--ligne);
    border-radius: 4px;
    background: var(--fond);
}
.echange__logo img { width: 40px; height: 40px; }
.echange__recoit {
    font-family: var(--police-titre);
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rouge);
    white-space: nowrap;
}

.echange__elements { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.echange__cote:last-child .echange__elements { text-align: right; }
.echange__element {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .92rem;
    line-height: 1.25;
}
.echange__element a { color: var(--texte); }
.echange__element a:hover { color: var(--bleu); }
.echange__element--rien { color: var(--texte-2); font-weight: 400; text-transform: none; font-style: italic; }
.echange__detail {
    display: block;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: .8rem;
    color: var(--texte-2);
}

@media (max-width: 480px) {
    .echange__cotes { grid-template-columns: 1fr; gap: 1.25rem; }
    .echange__cote + .echange__cote { border-left: 0; }
    .echange__cote:last-child .echange__equipe { flex-direction: row; }
    .echange__cote:last-child .echange__elements { text-align: left; }
    .echange__date { position: static; }
    .echange__entete { flex-wrap: wrap; }
    .echange__date { flex-basis: 100%; text-align: center; }
}


/* ---------- Petites pastilles (C, A, R, blessé, ×3…) ---------- */
.badge {
    display: inline-block;
    margin-left: .3rem;
    padding: 0 .3rem;
    border: 1px solid var(--trait);
    border-radius: 3px;
    color: var(--texte-2);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: .1em;
}
td .badge { margin-left: 0; }
.badge--alerte { color: var(--baisse); border-color: var(--baisse); }

/* Pastille MODE ADMIN de la barre (ADMIN connecté) */
.pastille-admin {
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--orange-brule);
    color: var(--fond);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: .5rem;
}
.pastille-admin:hover { text-decoration: none; filter: brightness(1.1); }
@media (max-width: 960px) { .pastille-admin { order: 1; } }

/* Records en danger (accueil et Records) : layout/records-danger.php */
.danger { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.danger__ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: start; padding: .7rem .8rem; background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--trait); border-radius: 8px; }
.danger__ligne--record { border-left-color: var(--rouge); }
.danger__ligne--top5 { border-left-color: var(--or); }
.danger__ligne--carriere { border-left-color: var(--bleu); }
.danger__cat { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-2); }
.danger__badge { padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; letter-spacing: .02em; background: var(--surface-2); color: var(--texte); }
.danger__ligne--record .danger__badge { background: var(--accent-fond); color: var(--accent-texte); }
.danger__ligne--top5 .danger__badge { background: var(--or); color: #1C1D1F; }
.danger__ligne p { margin: .2rem 0 0; line-height: 1.4; }
.danger__ligne a { font-weight: 700; }
.danger__record { display: block; color: var(--texte-2); font-size: .85rem; }

/* Jalons de carrière (accueil et Records) : layout/jalons.php */
.jalons { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.jalons__ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--trait); line-height: 1.35; }
.jalons__ligne a { font-weight: 700; }
.jalons__reste { min-width: 2.2rem; padding: .15rem .45rem; border-radius: 999px; text-align: center; font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem;
    background: color-mix(in srgb, var(--or) 22%, var(--surface)); color: var(--or); }
.jalons__reste--fait { background: color-mix(in srgb, var(--monte) 22%, var(--surface)); color: var(--monte); }
.jalons__ligne--atteint { border-color: color-mix(in srgb, var(--monte) 45%, var(--trait)); }
.jalons__colonnes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.jalons__titre { margin: 0 0 .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); }
/* ---------- Filtres repliés sur le cellulaire (layout/bas.php enveloppe form.filtres-ligue dans un <details>) ---------- */
.filtres-repli { margin-bottom: .25rem; }
.filtres-repli > summary {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; cursor: pointer; list-style: none;
    border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); font-weight: 700;
}
.filtres-repli > summary::-webkit-details-marker { display: none; }
.filtres-repli > summary::after { content: "▾"; margin-left: auto; color: var(--texte-2); transition: transform .2s; }
.filtres-repli[open] > summary::after { transform: rotate(180deg); }
.filtres-repli__resume { color: var(--texte-2); font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filtres-repli[open] > form { margin-top: .75rem; }

/* ---------- Bandeau des scores plus compact sur le cellulaire ---------- */
@media (max-width: 640px) {
    .scores__fleche { display: none; }           /* on glisse au doigt */
    .scores__jour { min-width: 48px; font-size: .7rem; }
    .scores__jour strong { font-size: 1.15rem; }
    .match { min-width: 118px; padding: .3rem .6rem .35rem; gap: .05rem; }
    .match__statut { font-size: .64rem; }
    .match__equipe { gap: .35rem; font-size: .85rem; }
    .match__equipe img { width: 18px; height: 18px; }
    .match__score { font-size: .95rem; }
    .match__fiche { font-size: .7rem; }
}

/* ---------- Mode clair : l'or des grands chiffres plus foncé, pour rester lisible sur le blanc ---------- */
[data-theme="clair"] { --or: #A88414; }

/* ---------- Logos d'une seule couleur foncée : en blanc dans le mode sombre (le fichier reste bleu pour le mode clair) ---------- */
/* Tampa Bay (10) : bleu #003E7E, illisible sur le graphite */
[data-theme="sombre"] img[src$="LogoTeams/Pro/10.svg"] { filter: brightness(0) invert(1); }
[data-theme="sombre"] .equipe-entete__logo[src$="LogoTeams/Pro/10.svg"] { filter: brightness(0) invert(1) drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
[data-theme="sombre"] .wrapped__logo[src$="LogoTeams/Pro/10.svg"] { filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }

/* ---------- Échanges entre DG : pastille du menu (propositions à répondre) et résumé (accueil, Mouvements) ---------- */
.nav__compteur { display: inline-block; min-width: 1.15rem; margin-left: .35rem; padding: 0 .3rem; border-radius: 999px; background: var(--baisse); color: var(--surface); font-size: .7rem; font-weight: 800; line-height: 1.15rem; text-align: center; vertical-align: .1em; }
.echanges-dg-resume { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.echanges-dg-resume a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; background: var(--surface); border: 1px solid var(--trait); border-left: 3px solid var(--or); border-radius: var(--rayon); color: var(--texte); }
.echanges-dg-resume a:hover { border-color: var(--bleu); text-decoration: none; }
.echanges-dg-resume__logos { display: flex; align-items: center; gap: .2rem; flex: none; color: var(--texte-2); }
.echanges-dg-resume__texte { display: grid; line-height: 1.25; min-width: 0; }
.echanges-dg-resume__texte span { color: var(--texte-2); font-size: .82rem; }
.echanges-dg-accueil { display: grid; gap: .5rem; margin-bottom: 1rem; }
.echanges-dg-accueil .titre-bloc { margin: 0; }

/* Équipe du DG connecté, mise en évidence par layout/bas.php (classements, tableaux, bandeau des scores) */
/* Teinte beige (la couleur « ligne » du thème : sable en sombre, caramel en clair), mêlée au fond : le texte reste lisible */
tr.est-mon-equipe > * { background: color-mix(in srgb, var(--ligne) 18%, var(--surface)); }
tr.est-mon-equipe > :first-child { box-shadow: inset 3px 0 0 var(--ligne); }

/* ---------- Fil du babillard (Babillard.php et accueil) : layout/babillard.php, afficherFil() ---------- */
.fil { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fil__lien { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .85rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); color: var(--texte); }
.fil__lien:hover { border-color: var(--bleu); text-decoration: none; }
.fil__element--message .fil__lien { border-left: 3px solid var(--ligne); }
.fil__element--echange .fil__lien { border-left: 3px solid var(--bleu); }
.fil__logos { position: relative; flex: none; width: 36px; height: 36px; }
.fil__logos img { width: 36px; height: 36px; object-fit: contain; }
.fil__logo2 { position: absolute; right: -8px; bottom: -6px; width: 22px !important; height: 22px !important; }
.fil__texte { display: grid; gap: .15rem; min-width: 0; line-height: 1.35; }
.fil__entete { font-size: .95rem; }
.fil__type { margin-right: .1rem; }
.fil__extrait { color: var(--texte-2); font-size: .9rem; overflow-wrap: anywhere; }
.fil__extrait--message { color: var(--texte); font-size: 1rem; }
.fil__meta { color: var(--texte-2); font-size: .8rem; }
.fil--compact .fil__lien { padding: .55rem .7rem; }

/* ---------- Loupe de recherche (barre du haut) ---------- */
.barre__recherche { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--trait); border-radius: 50%; color: var(--texte); }
.barre__recherche:hover { color: var(--bleu); border-color: var(--bleu); }

/* ---------- Menu du compte (logo du DG connecté) : layout/bas.php ---------- */
.compte-menu {
    position: fixed; z-index: 60; min-width: 15.5rem; max-width: calc(100vw - 16px); padding: .4rem;
    display: grid; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-menu);
}
.compte-menu[hidden] { display: none; }
.compte-menu a, .compte-menu button {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; border-radius: 6px;
    color: var(--texte); font: inherit; font-weight: 600; text-align: left;
}
.compte-menu a:hover, .compte-menu button:hover { background: var(--surface-2); text-decoration: none; }
.compte-menu .nav__compteur { margin-left: auto; }
.compte-menu__qui { justify-content: flex-start !important; gap: .65rem !important; padding: .5rem .6rem .7rem !important; margin-bottom: .3rem; border-bottom: 1px solid var(--trait); border-radius: 0 !important; }
.compte-menu__qui > span { display: grid; line-height: 1.25; }
.compte-menu__qui > span > span { color: var(--texte-2); font-size: .85rem; font-weight: 400; }
.compte-menu__qui > .compte-menu__fleche { margin-left: auto; color: var(--texte-2); font-size: 1.4rem; line-height: 1; }
.compte-menu__qui:hover .compte-menu__fleche { color: var(--bleu); }
.compte-menu form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--trait); }
.compte-menu button { width: 100%; border: 0; background: none; cursor: pointer; color: var(--texte-2); }

/* Pied de page : ressources externes */
.pied__ressources { margin: 0 auto .4rem; max-width: var(--largeur-max, 1280px); padding: 0 16px; text-align: center; font-size: .85rem; color: var(--pied-texte-2); }
.pied__ressources span { margin: 0 .35rem; opacity: .6; }
.pied .pied__ressources a { color: var(--pied-texte-2); text-decoration: underline; text-underline-offset: 3px; }
.pied .pied__ressources a:hover { color: var(--pied-texte); }

/* Archétype d'un joueur (layout/profils.php) : fiches et formation */
.archetype { display: inline-block; padding: .12rem .55rem; border-radius: 999px; border: 1px solid var(--trait); font-size: .78rem; font-weight: 700; line-height: 1.4; color: var(--texte); white-space: nowrap; }
.archetype--elite { border-color: var(--or); background: color-mix(in srgb, var(--or) 22%, var(--surface)); }
.archetype--role { border-color: var(--bleu); background: color-mix(in srgb, var(--bleu) 14%, var(--surface)); }
.archetype--base { color: var(--texte-2); }
.tableau--equipe .archetype { margin-left: .3rem; padding: 0 .45rem; font-size: .68rem; vertical-align: .1em; }
.archetype--trait { border-color: var(--trait); background: var(--surface-2); }

/* ---------- Pagination commune (afficherPagination() de config.php) ---------- */
.pagination-phs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .6rem; margin: .5rem 0; }
.pagination-phs__pages { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.pagination-phs__pages a, .pagination-phs__pages span, .pagination-phs__fleche {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem;
    border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); color: var(--texte); font-weight: 700; font-size: .95rem;
    font-variant-numeric: tabular-nums; text-decoration: none; transition: border-color .15s, background .15s;
}
.pagination-phs__pages a:hover, a.pagination-phs__fleche:hover { border-color: var(--bleu); color: var(--texte); text-decoration: none; }
.pagination-phs__pages a:focus-visible, a.pagination-phs__fleche:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.pagination-phs__pages [aria-current="page"] { background: var(--accent-fond); border-color: var(--accent-fond); color: var(--accent-texte); }
.pagination-phs__trou { min-width: 1.4rem; text-align: center; color: var(--texte-2); font-weight: 700; }
.pagination-phs__fleche.est-inactive { opacity: .4; cursor: default; }
.pagination-phs__info { flex-basis: 100%; margin: 0; text-align: center; font-size: .8rem; color: var(--texte-2); }
@media (max-width: 560px) {
    .pagination-phs__mot, .pagination-phs__loin { display: none; }
    .pagination-phs__pages a, .pagination-phs__pages span, .pagination-phs__fleche { min-width: 2.3rem; height: 2.3rem; padding: 0 .5rem; }
}

/* Lien « ❓ Comment ça marche ? » vers le Guide du DG (lienGuide() de config.php) */
.lien-guide { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); color: var(--texte); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.lien-guide:hover { border-color: var(--bleu); color: var(--texte); text-decoration: none; }

/* Menu du logo = bureau du DG (layout/bas.php) : une icône par ligne, puis une ligne de petits liens */
.compte-menu a { gap: .55rem; }
.compte-menu__icone { width: 1.4rem; text-align: center; flex: none; }
.compte-menu a > span:not(.compte-menu__icone):not(.nav__compteur) { flex: 1; }
.compte-menu__plus { margin: .25rem 0 0; padding: .45rem .6rem 0; border-top: 1px solid var(--trait); font-size: .82rem; color: var(--texte-2); }
.compte-menu .compte-menu__plus a { display: inline; padding: 0; font-weight: 600; color: var(--texte-2); background: none; }
.compte-menu .compte-menu__plus a:hover { color: var(--bleu); background: none; text-decoration: underline; }
.barre__aide[aria-current] { color: var(--bleu); border-color: var(--bleu); }
.pied__ressources--ligue { margin-bottom: .2rem; }

/* Barre de section (layout/haut.php) : les pages sœurs, sous la barre du haut ; défile sur cellulaire */
.barre-section { display: flex; align-items: center; gap: .35rem; margin: 0 0 1.1rem; padding: .35rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--surface); overflow-x: auto; scrollbar-width: none; contain: inline-size; }
.barre-section::-webkit-scrollbar { display: none; }
.barre-section__titre { padding: 0 .6rem 0 .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); white-space: nowrap; }
.barre-section a { padding: .35rem .8rem; border-radius: 999px; color: var(--texte); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.barre-section a:hover { background: var(--surface-2); text-decoration: none; }
.barre-section a[aria-current] { background: var(--accent-fond); color: var(--accent-texte); }
/* Cellulaire : pas de ❓ dans la barre du haut (elle déborderait) ; le Guide reste dans le pied de page et les liens des pages */
@media (max-width: 560px) { .barre__aide { display: none; } }

/* ---------- Bascule entre pages sœurs (basculePages() de config.php) ---------- */
.bascule-pages {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .15rem;
    border: 1px solid var(--trait);
    border-radius: 999px;
    background: var(--surface);
    padding: .2rem;
    margin: .25rem 0 .5rem;
    max-width: 100%;
}
.bascule-pages a {
    color: var(--texte-2);
    font-weight: 700;
    font-size: .95rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    text-decoration: none;
}
.bascule-pages a:hover { color: var(--texte); }
.bascule-pages a[aria-current="page"] { background: var(--accent-fond); color: var(--accent-texte); }
