/* ==========================================================================
   QUÉBEC QUILLES — THÈME « BLEU / ROUGE » (thème principal du site)
   Choisi dans modules/qq_theme.php. Utilisé par les pages de ligues et par
   l'accueil (avec css/qq_accueil.css chargé avant). Autre thème : qq_theme_ambre.css
   Reprend les couleurs d'origine du site (color_blue1.css / color_red.css) :
   bleu #086A87 / #01A9DB et rouge #E60000, dans une mise en page de journal.
   Les tableaux des panneaux (Ligues/common/smallpan/*) gardent leurs classes
   d'origine (TabTitreR, TabEntete, rowA2/rowB2, SelCol) et sont restylés ici.
   Polices à charger dans la page :
   https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap
   ========================================================================== */

:root {
    /* Bleus (color_blue1.css) */
    --bleu: #086A87;
    --bleu-vif: #01A9DB;
    --bleu-fonce: #06485C;
    --bleu-nuit: #062A38;
    --bleu-pale: #E3F4FA;
    /* Rouges (color_red.css) */
    --rouge: #E60000;
    --rouge-fonce: #B30000;
    --rouge-pale: #FFE1E1;
    /* Neutres */
    --ink: #10222B;
    --ink-soft: #33454F;
    --muted: #5E7380;
    --paper: #FFFFFF;
    --rule-light: rgba(8, 106, 135, 0.18);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
    --f-titre: 'Oswald', 'Arial Narrow', sans-serif;      /* polices du POOL depuis 2026-10-20 (plus lisibles à l'écran) ; avant : Playfair Display */
    --f-texte: 'Inter', Arial, sans-serif;                /* avant : Source Serif 4 */
    --f-label: 'Oswald', 'Arial Narrow', sans-serif;
    --f-ui: 'Inter', Arial, sans-serif;
    /* Couleurs de rôle (rapports) */
    --accent: #06485C;
    --accent-2: #E60000;
    --doux: #E3F4FA;
    --barre: #086A87;
    --barre-2: #E60000;
    --meilleur: #FFF1C2;
    --hausse: #1E8E4E;
    --t-haut: #BFE6F5;
    --t-bas: #FFD6D6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--f-ui);
    background: linear-gradient(160deg, var(--bleu-nuit) 0%, var(--bleu-fonce) 55%, var(--bleu) 100%);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--bleu); }

/* ---------- Menu (surcharge de ddmenu.css) ---------- */
#headerwrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
    border-bottom: 4px solid var(--rouge);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
#ddmenu { display: block; text-align: left; font-family: var(--f-label); }
#ddmenu ul {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    background: none;
    border: 0;
    border-radius: 0;
}
#ddmenu ul > a.qq-logo { position: static !important; margin-right: 26px; text-transform: none; }
#ddmenu ul > a.qq-logo:hover svg circle:first-child { fill: #fff; }
#ddmenu li { padding-left: 0 !important; color: #fff; font-size: 15px; }
#ddmenu a {
    color: #fff;
    font-family: var(--f-label);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 40px;
    padding: 0 16px;
    border-radius: 4px;
}
#ddmenu a.arrow { background-image: none; border: 0; padding-right: 26px; }
#ddmenu a.arrow:after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.8;
}
#ddmenu li.over a,
#ddmenu li.over a.arrow { background: var(--rouge); color: #fff; border: 0; }
#ddmenu div.drop {
    background: #fff;
    border: 0;
    border-top: 4px solid var(--rouge);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    padding: 18px 20px;
    color: var(--ink);
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: none;
    line-height: 26px;
    max-width: calc(100vw - 24px);
    /* le script du menu mesure la largeur avant le chargement des polices */
    width: max-content !important;
    height: auto !important;
}
#ddmenu div.drop > div { position: static !important; display: flex !important; flex-direction: column; height: auto !important; padding: 18px 0 !important; }
#ddmenu div.drop > div:has(> div.column) { flex-direction: row; gap: 10px; }
#ddmenu div.drop b, #ddmenu div.drop h3 { color: var(--bleu); font-weight: 600; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; }
#ddmenu div.drop h3 { margin: 8px 0 2px !important; padding: 0 0 2px !important; border-bottom: 2px solid var(--rouge); }
#ddmenu div.drop h3:first-child { margin-top: 0 !important; }
/* menu du site (titres en gras, page principale) : même ligne rouge que les menus des ligues, une ligne vide entre les sous-sections */
#ddmenu div.drop > b, #ddmenu div.drop div.column > b { display: block; line-height: 26px; margin: 20px 0 2px; padding: 0 0 2px; border-bottom: 2px solid var(--rouge); }
#ddmenu div.drop > b:first-child, #ddmenu div.drop div.column > b:first-child { margin-top: 0; }
#ddmenu div.drop a {
    font-family: var(--f-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    padding: 1px 6px;
    margin-left: -6px;
    border-radius: 4px;
    background: none;
}
#ddmenu div.drop a:hover { text-decoration: none; color: #fff; background: var(--bleu-vif); }
#ddmenu div.column { padding: 0 10px; }
#ddmenu div.column img { border-radius: 6px; }

/* ---------- Feuille de la page ---------- */
.journal {
    max-width: 1240px;
    margin: 28px auto 40px;
    background: var(--paper);
    box-shadow: var(--shadow);
    border-radius: 6px;
    border-top: 6px solid var(--bleu-fonce);
    padding: 0 40px 36px;
}

/* Manchette */
.manchette { text-align: center; padding-top: 18px; }
.manchette-barre {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-family: var(--f-label);
    font-size: 0.8em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--bleu);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bleu-pale);
}
.manchette-ligue { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 22px 0 8px; }
.manchette-ligue img { width: 104px; height: 104px; object-fit: contain; }
.manchette-titre {
    font-family: var(--f-titre);
    font-weight: 900;
    font-size: 4.2em;
    line-height: 1;
    letter-spacing: -1px;
    margin: 0;
    color: var(--bleu-fonce);
    text-align: left;
}
/* étiquette de la saison, sur la même ligne que le nom de la ligue */
.manchette-titre small {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.34em;
    letter-spacing: 1.4px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    background: var(--rouge);
    padding: 6px 14px 5px;
    margin: 0 0 0 14px;
    position: relative;
    top: -4px;
}
.manchette-devise {
    font-family: var(--f-texte);
    font-style: italic;
    font-size: 1.05em;
    color: var(--ink-soft);
    max-width: 820px;
    margin: 6px auto 18px;
}
.manchette-rubriques {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    background: var(--bleu);
    border-bottom: 4px solid var(--bleu-fonce);
}
.manchette-rubriques a {
    font-family: var(--f-label);
    font-weight: 500;
    font-size: 0.86em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
}
.manchette-rubriques a:hover { background: var(--rouge); color: #fff; }

/* Titres de rubrique : étiquette rouge + filet bleu */
.rubrique {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 38px 0 18px;
    border-bottom: 3px solid var(--bleu);
    scroll-margin-top: 80px;
}
.rubrique h2 {
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    background: var(--rouge);
    padding: 7px 16px 5px;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    padding-right: 26px;
}
.rubrique small { font-family: var(--f-texte); font-style: italic; font-size: 0.9em; color: var(--muted); }

.vide { font-family: var(--f-texte); font-style: italic; color: var(--muted); margin: 6px 0; }

/* Article de texte (actualité de la saison) */
.actualite {
    font-family: var(--f-texte);
    font-size: 1.02em;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 860px;
}
.actualite font[size] { font-family: var(--f-titre); font-weight: 900; font-size: 1.6em; color: var(--bleu-fonce); }
.actualite b { color: #000; font-weight: 700; }
/* « Programme #4 » / « Semaine #4 » : pastille bleu foncé, texte blanc
   (classe "semaine" dans info_mod.txt, ou ajoutée automatiquement par qq_journal.js) */
.actualite b.semaine {
    display: inline-block;
    color: #fff;
    background: var(--bleu-fonce);
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 10px 1px;
    margin: 10px 0 2px;
}
.actualite-cadre {
    max-height: 220px;
    overflow: auto;
    padding: 14px 18px;
    background: var(--bleu-pale);
    border-left: 5px solid var(--bleu);
}

/* Grilles de panneaux */
.grille { display: grid; gap: 28px 32px; }
.grille-1 { grid-template-columns: minmax(0, 1fr); }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panneau { min-width: 0; overflow-x: auto; }

/* ---------- Tableaux des panneaux ---------- */
.journal table { border-collapse: collapse; border: 0; width: 100%; background: none; font-family: var(--f-texte); }
/* tables de mise en page (qui contiennent d'autres tables) : aucune décoration */
.journal table:has(table) > tbody > tr > td,
.journal table:has(table) > tr > td { border: 0 !important; padding: 0 16px 16px 0 !important; vertical-align: top; background: none !important; }
/* titre du tableau : bandeau bleu foncé, texte blanc, accent rouge */
.journal table caption,
.journal table caption.TabTitreR,
.journal table caption.TabTitre {
    caption-side: top;
    text-align: left;
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.84em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--bleu-fonce);
    border: 0;
    border-left: 6px solid var(--rouge);
    padding: 8px 12px 7px;
    line-height: 1.35;
}
/* titre transformé par qq_journal.js : étiquette bleu foncé biseautée + sous-titre, sur filet bleu
   (même allure que les titres de section, qui eux restent en rouge) */
.journal table caption.cap-etiquette {
    background: none;
    border: 0;
    border-bottom: 3px solid var(--bleu);
    padding: 0;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
}
.cap-etiquette .cap-titre {
    display: inline-block;
    vertical-align: bottom;
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--bleu-fonce);
    padding: 7px 26px 5px 12px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    white-space: normal;
}
.cap-etiquette .cap-sous {
    display: inline-block;
    vertical-align: bottom;
    font-family: var(--f-texte);
    font-style: italic;
    font-weight: 400;
    font-size: 1.05em;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    padding: 0 0 5px 10px;
}

/* titres de colonnes : bleu vif */
.journal table th,
.journal table th.TabEntete {
    font-family: var(--f-label);
    font-weight: 500;
    font-size: 0.74em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, var(--bleu-vif) 0%, #0190BC 100%);
    border: 0;
    padding: 9px 8px 9px; /* 25 % plus haut qu'avant (≈ 29 px → 36 px) */
    text-align: left;
    white-space: nowrap;
    height: auto;
}
.journal table td {
    border: 0;
    border-bottom: 1px solid var(--rule-light);
    padding: 6px 8px;
    font-size: 0.9em;
    color: var(--ink);
    text-align: left;
    height: auto;
    background: #fff;
}
.journal table tr.rowA2, .journal table tr.rowB2,
.journal table tr.rowA2H, .journal table tr.rowB2H { background: none; height: auto; }
/* une ligne sur deux en bleu pâle (la 1re ligne du tableau est l'en-tête) */
.journal table tr:nth-child(even) > td { background: var(--bleu-pale); }
.journal table:has(table) > tbody > tr > td,
.journal table:has(table) > tr > td { background: none !important; }
.journal table tr:hover > td { background: var(--rouge-pale); }
/* colonne de la statistique principale (simple, triple…) : noir gras */
.journal table td.SelCol { font-family: var(--f-titre); font-weight: 900; font-size: 1.05em; color: #000; }
.journal table td a { color: var(--bleu); font-weight: 600; text-decoration: none; }
/* panneaux de la page de ligue (smallpan, lignes rowA2/rowB2) : le plus de place possible aux noms (2026-10-20) ;
   colonnes de chiffres serrées sur une ligne, marges réduites, noms un peu plus petits */
.journal table tr.rowA2 > td, .journal table tr.rowB2 > td { padding-left: 5px; padding-right: 5px; }
.journal table tr.rowA2 > td:not(:first-child), .journal table tr.rowB2 > td:not(:first-child) { white-space: nowrap; width: 1%; }
.journal table tr.rowA2 > td:first-child, .journal table tr.rowB2 > td:first-child { font-size: 0.87em; }
.journal table:has(tr.rowA2) th.TabEntete { padding-left: 5px; padding-right: 5px; letter-spacing: 0.3px; }
.journal table td a:hover { color: var(--rouge); text-decoration: underline; }
/* tableau très large (moyenne par programme) */
.panneau-large table th, .panneau-large table td { text-align: center; padding: 6px 4px; }
/* tableau replié : data-plier="N" sur le panneau (qq_journal.js) ; « … » pour déplier */
.journal table tr.plie-cache { display: none; }
.journal table tr.plie-bouton > td { text-align: center; background: none !important; border-bottom: 0; padding: 6px 4px 2px; }
.plie-bouton button { font: inherit; font-size: 0.85em; cursor: pointer; color: var(--muted); background: none; border: 1px dashed var(--muted); border-radius: 14px; padding: 3px 16px; }
.plie-bouton button:hover { color: var(--ink); border-style: solid; }

/* ---------- Pied de page (modules/footer.php) ---------- */
#footerwrap { background: var(--bleu-nuit); border-top: 4px solid var(--rouge); overflow: hidden; cursor: pointer; height: auto; }
#footer { max-width: 1240px; width: auto; height: auto; margin: 0 auto; padding: 14px 24px; text-align: center; color: #9FC3D1; font-size: 0.82em; background: none; border: 0; }
#footer h2 { display: none; }
#footer p { margin: 0; color: #9FC3D1; }
#footer b { color: #fff; font-weight: 500; }
#footer a { color: var(--bleu-vif); text-decoration: none; }
#footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .journal { margin: 0; border-radius: 0; padding: 0 22px 30px; }
    .grille-2, .grille-3 { grid-template-columns: minmax(0, 1fr); }
    .manchette-titre { font-size: 3em; }
}
@media (max-width: 760px) {
    #ddmenu ul { padding: 8px 12px; justify-content: center; }
    #ddmenu ul > a.qq-logo { margin: 0 0 4px; flex-basis: 100%; display: flex; justify-content: center; }
    #ddmenu a { font-size: 14px; padding: 0 10px; line-height: 36px; }
    #ddmenu a.arrow { padding-right: 22px; }
    #ddmenu a.arrow:after { right: 8px; }
    #ddmenu div.column { float: none; padding: 0; }
    #ddmenu div.column img { display: none; }
    #ddmenu li { position: static; }
    #ddmenu div.drop { top: 100% !important; left: 12px !important; right: 12px !important; width: auto !important; }
    #ddmenu div.drop > div:has(> div.column) { flex-direction: column; }
    #ddmenu div.drop a { white-space: normal; }
    #headerwrap { position: relative; }
    .journal { padding: 0 14px 26px; }
    .manchette-barre { justify-content: center; font-size: 0.7em; }
    .manchette-ligue { gap: 12px; }
    .manchette-ligue img { width: 64px; height: 64px; }
    .manchette-titre { font-size: 2.3em; }
    .manchette-rubriques a { padding: 8px 10px; font-size: 0.78em; }
    .rubrique { flex-wrap: wrap; gap: 2px 10px; padding-bottom: 4px; }
    .rubrique small { flex-basis: 100%; }
    .rubrique h2 { white-space: normal; }
    .journal table:has(table) > tbody > tr > td, .journal table:has(table) > tr > td { display: block; width: auto !important; padding: 0 0 14px !important; }
}

/* ---------- Impression ---------- */
@media print {
    body { background: #fff; }
    #headerwrap, #footerwrap, .manchette-rubriques { display: none; }
    .journal { box-shadow: none; margin: 0; padding: 0; max-width: none; border: 0; }
    .actualite-cadre { max-height: none; overflow: visible; }
}

/* ==========================================================================
   ACCUEIL (index.php, <body class="page-accueil">) — éléments propres à l'accueil :
   statistiques de la semaine, À la une, colonne de droite, nouvelles des ligues
   ========================================================================== */
/* Bandeau photo (slider 840x260 rendu fluide) */
.bandeau { margin: 24px 0 0; }
#sliderFrame { width: 100%; margin: 0; padding: 0; }
#thumbs { margin: 0; }
.slider-cadre { float: none; padding: 0; }
#slider, #slider div.sliderInner { width: 100%; height: auto; aspect-ratio: 840 / 260; }
#slider { background-color: var(--tile-bg); }
#slider img { width: 100%; height: 100%; object-fit: cover; }
/* le slider affiche les images en arrière-plan : on les ajuste à la largeur fluide */
#slider, #slider div.sliderInner, #slider div.sliderInner div { background-size: cover !important; }
#slider div.sliderInner div { width: 100% !important; height: 100% !important; }
.legende {
    font-family: var(--f-texte);
    font-style: italic;
    font-size: 0.84em;
    color: var(--muted);
    margin: 6px 0 0;
    text-align: left;
}

/* À la une : article principal + colonne latérale */
.une { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 36px; }
.une-principal { min-width: 0; }
.rail { border-left: 1px solid var(--rule-light); padding-left: 28px; }

/* ---------- Articles (annonces) ---------- */
.annonce { margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--rule-light); }
.annonce:last-child { border-bottom: 0; }
.annonce-tete { margin-bottom: 18px; }
.annonce-lieu {
    display: block;
    font-family: var(--f-label);
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pin-red);
    margin-bottom: 6px;
}
.annonce-tete h2 {
    font-family: var(--f-titre);
    font-weight: 900;
    font-size: 2.5em;
    line-height: 1.08;
    margin: 0;
    color: var(--ink);
}
.annonce-accroche {
    font-family: var(--f-texte);
    font-style: italic;
    font-size: 1.22em;
    line-height: 1.4;
    color: var(--ink-soft);
    margin: 10px 0 0;
}
.annonce-signature {
    font-family: var(--f-label);
    font-size: 0.74em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
}
.annonce-corps {
    font-family: var(--f-texte);
    font-size: 1.04em;
    line-height: 1.62;
    color: var(--ink-soft);
}
.annonce-corps.colonnes { column-count: 2; column-gap: 34px; column-rule: 1px solid var(--rule-light); }
.annonce-corps p { margin: 0 0 12px; }
.annonce-corps strong { color: var(--ink); }
.annonce-corps .lettrine::first-letter {
    font-family: var(--f-titre);
    font-weight: 900;
    float: left;
    font-size: 3.6em;
    line-height: 0.82;
    padding: 6px 8px 0 0;
    color: var(--ink);
}
.annonce-lead {
    font-family: var(--f-titre);
    font-weight: 700;
    font-size: 1.12em;
    line-height: 1.35;
    color: var(--ink) !important;
}
.annonce-sous-titre {
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.86em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin: 18px 0 8px;
    break-after: avoid;
}
.annonce-liste { margin: 0 0 12px; padding-left: 20px; }
.annonce-liste li { margin-bottom: 4px; }
.annonce-maj { color: var(--muted); font-size: 0.86em; font-style: italic; }
.annonce-image { margin: 0 0 22px; text-align: center; }
.annonce-image img { width: 85%; max-width: 620px; display: inline-block; }
.annonce-image figcaption { max-width: 620px; margin: 0 auto; }

.citation {
    font-family: var(--f-titre);
    font-style: italic;
    font-weight: 700;
    font-size: 1.35em;
    line-height: 1.3;
    color: var(--ink);
    text-align: center;
    border-top: 3px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 14px 6px;
    margin: 10px 0 16px;
    break-inside: avoid;
}

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 6px 0 14px; break-inside: avoid; }
.tuile { background: var(--tile-bg); padding: 10px 12px; border-top: 3px solid var(--amber); }
.tuile-valeur { display: block; font-family: var(--f-titre); font-weight: 900; font-size: 1.35em; color: var(--ink); line-height: 1.2; }
.tuile-libelle { display: block; font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); }
.tuile.argent { border-top-color: #9AA0A8; }
.tuile.info .tuile-valeur { font-size: 1em; font-weight: 700; }

.encadre {
    background: rgba(166, 53, 44, 0.07);
    border-left: 3px solid var(--pin-red);
    color: #7A2E27;
    padding: 10px 14px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: 0.86em;
    margin: 4px 0 14px;
    break-inside: avoid;
}

.tableau-simple { border-collapse: collapse; margin: 4px 0 14px; width: 100%; break-inside: avoid; font-family: var(--f-ui); }
.tableau-simple th, .tableau-simple td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--rule-light); font-size: 0.86em; }
.tableau-simple th { font-family: var(--f-label); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--rule); }

/* ---------- Colonne latérale ---------- */
.rail-bloc { margin-bottom: 28px; }
.rail-titre {
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.86em;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink);
    border-top: 3px solid var(--rule);
    padding-top: 6px;
    margin: 0 0 12px;
}
.bref { list-style: none; margin: 0; padding: 0; }
.bref li { padding: 10px 0; border-bottom: 1px solid var(--rule-light); }
.bref li:first-child { padding-top: 0; }
.bref-chiffre { display: block; font-family: var(--f-titre); font-weight: 900; font-size: 1.7em; line-height: 1.1; color: var(--ink); }
.bref-texte { display: block; font-family: var(--f-texte); font-size: 0.92em; color: var(--ink-soft); }
.liens-rapides { list-style: none; margin: 0; padding: 0; font-family: var(--f-texte); }
.liens-rapides li { padding: 6px 0; border-bottom: 1px dotted var(--rule-light); }
.liens-rapides a { color: var(--ink); text-decoration: none; }
.liens-rapides a:hover { color: var(--amber-deep); }
.liens-rapides span { display: block; font-family: var(--f-label); font-size: 0.7em; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
/* Encart des tournois du samedi */
.encart-tournois { background: var(--tile-bg); padding: 0 14px 14px; }
.encart-tournois .rail-titre { margin: 0 -14px 10px; padding: 6px 14px 0; }
.encart-lieu { font-family: var(--f-texte); font-style: italic; font-size: 0.86em; color: var(--ink-soft); margin: 0 0 10px; }
.encart-lieu a { color: var(--amber-deep); }
.encart-dates { list-style: none; margin: 0 0 10px; padding: 0; font-family: var(--f-texte); }
.encart-dates li { padding: 5px 0; border-bottom: 1px dotted var(--rule-light); color: var(--ink); }
.encart-dates li:last-child { border-bottom: 0; }
.encart-dates li.passe { color: var(--muted); text-decoration: line-through; }
.encart-dates li.prochain { font-weight: 600; }
.encart-dates li span {
    font-family: var(--f-label);
    font-weight: 500;
    font-size: 0.66em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: var(--pin-red);
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: 2px;
}
.encart-heures { font-family: var(--f-ui); font-size: 0.78em; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* Ligues inactives : même liste, mais en retrait visuel */
.archives .rail-titre { border-top-width: 1px; color: var(--muted); }
.archives-note { font-family: var(--f-texte); font-style: italic; font-size: 0.84em; color: var(--muted); margin: 0 0 8px; }
.archives .liens-rapides { font-size: 0.9em; }
.archives .liens-rapides a { color: var(--muted); }
.archives .liens-rapides a:hover { color: var(--amber-deep); }
.pub { text-align: center; margin-bottom: 20px; }
.pub-label {
    display: block;
    font-family: var(--f-label);
    font-size: 0.66em;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 6px;
}

/* ---------- Ligues : mises à jour ---------- */
.nouvelles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nouvelle {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule-light);
    border-left: 1px solid var(--rule-light);
}
.nouvelle:nth-child(2n+1) { border-left: 0; padding-left: 0; }
.nouvelle:nth-child(2n) { padding-right: 0; }
.nouvelle-logo { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.nouvelle-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nouvelle-ligue {
    display: block;
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--pin-red);
}
.nouvelle-date { display: block; font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); margin: 1px 0 6px; }
.nouvelle-date i { font-style: normal; color: var(--amber-deep); }
.nouvelle-texte { font-family: var(--f-texte); font-size: 0.96em; line-height: 1.5; color: var(--ink-soft); }
.nouvelle-texte a { color: var(--amber-deep); }
.nouvelles-suite { text-align: right; margin-top: 14px; }
.lien-suite {
    font-family: var(--f-label);
    font-size: 0.86em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--amber);
    padding-bottom: 2px;
}
.lien-suite:hover { color: var(--amber-deep); }

/* ---------- Statistiques de la semaine ---------- */
.stats-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.stats-ligue { padding: 0 24px; border-left: 1px solid var(--rule-light); display: flex; flex-direction: column; }
.stats-ligue:nth-child(3n+1) { border-left: 0; padding-left: 0; }      /* 1re ligue de chaque rangée (3 par rangée) */
.stats-ligue:nth-child(3n) { padding-right: 0; }
/* 2e rangée et suivantes (plus de 3 ligues) : espace et filet au-dessus */
.stats-ligue:nth-child(n+4) { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule-light); }
.stats-tete { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--rule); }
.stats-tete img { width: 52px; height: 52px; object-fit: contain; }
.stats-salon { display: block; font-family: var(--f-label); font-size: 0.7em; letter-spacing: 1px; text-transform: uppercase; color: var(--pin-red); }
.stats-nom { display: block; font-family: var(--f-titre); font-weight: 900; font-size: 1.35em; line-height: 1.15; color: var(--ink); text-decoration: none; }
.stats-nom:hover { color: var(--amber-deep); }
.stats-prog { display: block; font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); margin-top: 2px; }
.stats-titre {
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.78em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin: 16px 0 6px;
}
.podium { list-style: none; margin: 0; padding: 0; }
.podium li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dotted var(--rule-light); font-family: var(--f-texte); }
.podium li:last-child { border-bottom: 0; }
.podium li { padding-left: 6px; padding-right: 6px; }
.podium li:nth-child(even) { background: #EAE3D4; }
.podium .rang { font-family: var(--f-titre); font-weight: 900; font-size: 1.05em; color: var(--muted); width: 14px; text-align: center; }
.podium li:first-child .rang { color: var(--amber); }
.podium .qui { flex: 1; min-width: 0; color: var(--ink); }
.podium .qui a, .parfaites a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.podium .qui a:hover, .parfaites a:hover { color: var(--amber-deep); border-bottom-color: var(--amber); }
.podium .qui small { font-family: var(--f-ui); font-size: 0.72em; color: var(--muted); margin-left: 2px; }
.podium .score { font-family: var(--f-titre); font-weight: 900; font-size: 1.2em; color: var(--ink); }
.podium li:first-child .score { font-size: 1.45em; }
.podium li.vide { color: var(--muted); font-style: italic; }
.parfaites { list-style: none; margin: 0; padding: 0; font-family: var(--f-texte); }
.parfaites li { padding: 5px 0; }
.parfaites strong {
    display: inline-block;
    font-family: var(--f-titre);
    font-weight: 900;
    color: #fff;
    background: var(--pin-red);
    padding: 0 7px;
    margin-right: 6px;
    border-radius: 3px;
}
.parfaites small { font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); }
/* triple parfait de 900 (page principale, plus hauts triples des joueurs) : étoile dorée */
.etoile-900 { display: inline-block; margin-right: 6px; font-size: 1.15em; line-height: 1; color: #E8B21F; text-shadow: 0 0 1px #9C6B00, 0 0 8px rgba(232, 178, 31, .65); vertical-align: 1px; animation: etoile-900 2.4s ease-in-out infinite; }
@keyframes etoile-900 { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .etoile-900 { animation: none; } }
/* parties parfaites de la semaine (page principale) : 10 premières, puis « … voir les N autres » (details) */
.parfaites-plus { margin: 4px 0 2px; }
.parfaites-plus > summary { list-style: none; display: inline-block; cursor: pointer; font-family: var(--f-ui); font-size: 0.85em; color: var(--muted); border: 1px dashed var(--muted); border-radius: 14px; padding: 3px 16px; margin: 4px 0; }
.parfaites-plus > summary::-webkit-details-marker { display: none; }
.parfaites-plus > summary:hover { color: var(--ink); border-style: solid; }
.parfaites-plus .pp-replier, .parfaites-plus[open] .pp-voir { display: none; }
.parfaites-plus[open] .pp-replier { display: inline; }
.stats-aucune, .stats-vide { font-family: var(--f-texte); font-style: italic; color: var(--muted); font-size: 0.92em; margin: 4px 0; }
.stats-vide { margin-top: 14px; }
.stats-saison { font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); margin: 6px 0 0; }
.stats-saison a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.stats-saison a:hover { color: var(--amber-deep); border-bottom-color: var(--amber); }
.stats-lien { align-self: flex-start; margin-top: auto; padding-top: 14px; border-bottom: 0; }
.stats-lien:hover { text-decoration: underline; }

/* ---------- Annonce compacte (Tournoi des Maîtres) ---------- */
.annonce-compacte { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.annonce-vignette img { width: 170px; display: block; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.annonce-compacte .annonce-tete { margin-bottom: 10px; }
.annonce-compacte .annonce-tete h2 { font-size: 1.75em; }
.annonce-compacte .annonce-accroche { font-size: 1.02em; margin-top: 6px; }
.faits { list-style: none; margin: 0; padding: 0; font-family: var(--f-texte); font-size: 0.95em; color: var(--ink-soft); }
.faits li { padding: 4px 0 4px 16px; position: relative; }
.faits li:before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 7px; background: var(--amber); }
.faits strong { color: var(--ink); }
.annonce-details { grid-column: 1 / -1; margin-top: 16px; }
.annonce-details summary {
    cursor: pointer;
    display: inline-block;
    font-family: var(--f-label);
    font-size: 0.84em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 2px solid var(--amber);
    padding-bottom: 2px;
    list-style: none;
}
.annonce-details summary::-webkit-details-marker { display: none; }
.annonce-details summary:after { content: " \25BE"; }
.annonce-details[open] summary:after { content: " \25B4"; }
.annonce-details[open] summary { margin-bottom: 16px; }

/* ---------- Accueil : responsive ---------- */
@media (max-width: 1100px) {
    .annonce-corps.colonnes { column-count: 1; }
    .stats-ligue { padding: 0 16px; }
}
@media (max-width: 900px) {
    .une { grid-template-columns: 1fr; }
    .stats-grille { grid-template-columns: 1fr; }
    .stats-ligue:nth-child(n) { border-left: 0; padding: 18px 0; margin-top: 0; border-top: 1px solid var(--rule-light); }
    .stats-ligue:first-child { border-top: 0; padding-top: 0; }
    .rail { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
    .annonce-tete h2 { font-size: 1.9em; }
    .annonce-accroche { font-size: 1.08em; }
    .annonce-image img { width: 100%; }
    .nouvelles { grid-template-columns: 1fr; }
    .annonce-compacte { grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; }
    .annonce-vignette img { width: 96px; }
    .annonce-compacte .annonce-tete h2 { font-size: 1.35em; }
    .faits { grid-column: 1 / -1; margin-top: 8px; }
    .nouvelle:nth-child(n) { border-left: 0; padding: 14px 0; }
}

/* ---------- Manchette de l'accueil : écusson au début de la ligne, devant « Québec Quilles » ---------- */
.page-accueil .manchette-titre { text-align: center; font-size: 4.4em; margin: 10px 0 6px; }
.page-accueil .manchette-site { display: flex; align-items: center; justify-content: center; margin: 20px 0 6px; gap: 20px; }
.page-accueil .manchette-site .manchette-ecusson { display: block; margin: 0; width: 104px; height: 104px; flex-shrink: 0; }
.page-accueil .manchette-site .manchette-titre { margin: 0; text-align: left; }
.page-accueil .manchette-rubriques { margin-top: 4px; }
@media (max-width: 900px) {
    .page-accueil .manchette-titre { font-size: 3.2em; }
}
@media (max-width: 760px) {
    .page-accueil .manchette-site { gap: 12px; }
    .page-accueil .manchette-site .manchette-ecusson { width: 64px; height: 64px; }
    .page-accueil .manchette-site .manchette-titre { font-size: 2.4em; }
}
/* ==========================================================================
   ACCUEIL — couleurs bleu / rouge des éléments propres à l'accueil
   ========================================================================== */
.page-accueil {
    --amber: #01A9DB;
    --amber-deep: #086A87;
    --pin-red: #E60000;
    --tile-bg: #E3F4FA;
    --rule: #086A87;
    --header-bg: #062A38;
}
.page-accueil .manchette-titre { color: var(--bleu-fonce); }
/* Titres de rubrique : étiquette rouge sur filet bleu, comme les ligues */
.page-accueil .rubrique { border-top: 0; padding-top: 0; }
.page-accueil .rubrique:after { display: none; }
/* Statistiques de la semaine */
.page-accueil .stats-tete { border-bottom: 3px solid var(--bleu); }
.page-accueil .stats-nom { color: var(--bleu-fonce); }
.page-accueil .stats-titre {
    color: #fff;
    background: var(--bleu-fonce);
    display: inline-block;
    padding: 5px 22px 4px 10px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.page-accueil .podium li:nth-child(even) { background: var(--bleu-pale); }
.page-accueil .podium li:first-child .rang { color: var(--rouge); }
.page-accueil .podium .score { color: #000; }
.page-accueil .podium .qui a { color: var(--bleu); font-weight: 600; }
.page-accueil .podium .qui a:hover, .page-accueil .parfaites a:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.page-accueil .stats-lien, .page-accueil .lien-suite { color: var(--bleu-fonce); border-bottom-color: var(--rouge); }
/* À la une */
.page-accueil .annonce-tete h2 { color: var(--bleu-fonce); }
.page-accueil .annonce-details summary { border-bottom-color: var(--rouge); color: var(--bleu-fonce); }
.page-accueil .faits li:before { background: var(--rouge); }
/* Colonne de droite */
.page-accueil .rail-titre { color: #fff; background: var(--bleu-fonce); border-top: 0; padding: 7px 10px 5px; }
.page-accueil .encart-tournois { background: var(--bleu-pale); border-left: 5px solid var(--bleu); }
.page-accueil .encart-tournois .rail-titre { margin: 0 -14px 10px -19px; padding: 7px 14px 5px; }
.page-accueil .archives .rail-titre { background: #5E7380; }
.page-accueil .liens-rapides a:hover { color: var(--rouge); }
/* Nouvelles des ligues : une rangée sur deux en bleu pâle */
.page-accueil .nouvelle:nth-child(4n+3), .page-accueil .nouvelle:nth-child(4n+4) { background: var(--bleu-pale); }
.page-accueil .nouvelle-date i { color: var(--bleu); }
.page-accueil .nouvelle:nth-child(n) { padding-left: 12px; padding-right: 12px; }

/* ==========================================================================
   RAPPORT D'UN JOUEUR (Ligues/common/LG_common/KL_Rapport_SinglePlayer.php,
   <body class="page-joueur">) — mêmes règles dans les deux thèmes ;
   les couleurs viennent des variables de rôle --accent, --accent-2, --doux,
   --barre, --barre-2, --meilleur définies dans :root.
   ========================================================================== */
/* Choix du joueur : précédent / liste / suivant */
.joueur-nav { display: flex; justify-content: center; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 22px 0 6px; }
.btn-nav {
    display: inline-block;
    font-family: var(--f-label);
    font-weight: 500;
    font-size: 0.86em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
    background: var(--accent);
    border: 0;
    padding: 12px 16px;
    text-decoration: none;
    cursor: pointer;
}
.btn-nav:hover { background: var(--accent-2); color: #fff; }
.btn-nav.inactif { opacity: 0.25; cursor: default; }
.btn-nav.inactif:hover { background: var(--accent); }
.joueur-select { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.joueur-select > span { font-family: var(--f-label); font-size: 0.7em; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.joueur-select select {
    font-family: var(--f-label);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    min-width: 320px;
    padding: 9px 40px 9px 12px;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.joueur-select select:focus { outline: 3px solid var(--accent-2); outline-offset: 1px; }

/* Identité du joueur */
.fiche-joueur { margin: 18px 0 22px; }
.fiche-etiquette {
    display: inline-block;
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.78em;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-2);
    padding: 3px 12px 2px;
}
.fiche-nom { font-family: var(--f-titre); font-weight: 900; font-size: 3.6em; line-height: 1.05; letter-spacing: -1px; margin: 10px 0 4px; color: var(--accent); }
.fiche-equipe { font-family: var(--f-texte); font-style: italic; font-size: 1.15em; color: var(--ink-soft); margin: 0; }

/* Chiffres clés */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 6px 0 8px; }
.kpi {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 108px;
    padding: 14px 14px 12px;
    background: var(--doux);
    border-top: 4px solid var(--accent);
    text-align: left;
}
.kpi-valeur { font-family: var(--f-titre); font-weight: 900; font-size: 2.1em; line-height: 1.05; color: #000; }
.kpi-valeur small { font-size: 0.5em; font-weight: 700; color: var(--muted); }
.kpi-libelle { font-family: var(--f-label); font-size: 0.72em; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.kpi-vedette { background: var(--accent); border-top-color: var(--accent-2); }
.kpi-vedette .kpi-valeur { color: #fff; font-size: 2.7em; }
.kpi-vedette .kpi-libelle { color: rgba(255, 255, 255, 0.75); }
.kpi-parfait { border-top-color: var(--accent-2); }
.kpi-parfait .kpi-valeur { color: var(--accent-2); }
.kpi-double .kpi-valeur { font-size: 1.45em; }

/* Tableaux du rapport */
.tableau-joueur th.nombre, .tableau-joueur td.nombre { text-align: right; }
.tableau-joueur td.nombre { font-variant-numeric: tabular-nums; }
.tableau-joueur .centre { text-align: center; }
.tableau-joueur td.prog { font-family: var(--f-label); font-weight: 600; letter-spacing: 0.4px; color: var(--accent); white-space: nowrap; }
.tableau-joueur td.libelle { font-family: var(--f-label); font-weight: 500; font-size: 0.82em; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.tableau-joueur td.triple { font-family: var(--f-titre); font-weight: 900; font-size: 1.05em; color: #000; white-space: nowrap; }
.tableau-joueur td.fort { font-weight: 700; color: #000; }
.tableau-joueur td small { font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); font-weight: 400; }
.page-joueur .tableau-joueur tr.absent > td { color: var(--muted); }
.page-joueur .tableau-joueur tr.meilleur > td { background: var(--meilleur); }
.page-joueur .tableau-joueur tr.total > td { border-top: 2px solid var(--accent); font-weight: 700; }
.presence { white-space: nowrap; }
.pres, .abs { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 2px; vertical-align: middle; }
.pres { background: var(--accent); }
.abs { border: 2px solid var(--muted); opacity: 0.6; }
.parfaite {
    display: inline-block;
    font-family: var(--f-titre);
    font-weight: 900;
    color: #fff;
    background: var(--accent-2);
    padding: 0 7px;
    border-radius: 3px;
    line-height: 1.5;
}
/* « * » : programme joué partiellement (moins de 3 parties) */
.tableau-joueur small.partiel, .legende-tableau small.partiel { font-family: var(--f-label); font-weight: 700; font-size: 1.05em; color: var(--accent-2); margin-left: 2px; }
.absent-txt { font-family: var(--f-ui); font-size: 0.8em; font-style: italic; color: var(--muted); }
.marque { color: var(--accent-2); margin-left: 5px; }
.legende-tableau { font-family: var(--f-ui); font-size: 0.76em; color: var(--muted); margin: 10px 0 0; }
.legende-tableau .parfaite { font-size: 0.9em; }
.panneau-etroit { max-width: 620px; }
/* Moyenne de départ dans la tuile vedette */
.kpi-depart { display: block; font-family: var(--f-ui); font-size: 0.78em; color: rgba(255, 255, 255, 0.82); margin-top: 6px; }
.kpi-depart b { display: inline-block; font-weight: 700; color: #fff; padding: 0 6px; margin-left: 4px; border-radius: 3px; }
.kpi-depart b.hausse { background: var(--hausse); }
.kpi-depart b.baisse { background: var(--accent-2); }

/* Grille par paire d'allées : chaque triple dans la colonne de sa paire */
.page-joueur .tableau-allees td.t-haut { background: var(--t-haut); }
.page-joueur .tableau-allees td.t-bas { background: var(--t-bas); }
.tableau-allees td.triple { text-align: center; }
.tableau-allees .col-fixe { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 0 rgba(0, 0, 0, 0.06); }
.tableau-allees td.col-fixe { background: var(--paper); }
.tableau-allees td.prog small { margin-left: 2px; }
.allees-bilan tr:first-child > td { border-top: 3px solid var(--accent); }
.case-leg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, 0.12); }
.case-leg.t-haut { background: var(--t-haut); }
.case-leg.t-bas { background: var(--t-bas); }
/* Grille par allée de départ : 2 sous-colonnes par paire */
.tableau-allees th.paire { text-align: center; border-left: 2px solid rgba(255, 255, 255, 0.35); }
.tableau-allees tr.sous-entete th { font-size: 0.68em; padding-top: 4px; padding-bottom: 4px; background: var(--accent); text-align: center; }
.tableau-allees .debut-paire { border-left: 2px solid var(--rule-light); }
.tableau-allees tr.sous-entete th.debut-paire { border-left: 2px solid rgba(255, 255, 255, 0.35); }
.tableau-allees td, .tableau-allees th { padding-left: 6px; padding-right: 6px; }
.tableau-allees td.triple { font-size: 0.98em; }
/* numéros d'allées, triples et bilan centrés dans leur colonne */
.page-joueur .tableau-allees th.nombre, .page-joueur .tableau-allees td.nombre { text-align: center; }
/* colonnes d'allées de largeur égale */
.tableau-allees { table-layout: fixed; min-width: 900px; }
.tableau-allees th.col-fixe { width: 118px; }
.tableau-allees td small { white-space: nowrap; }
.allees-dep b { color: var(--accent-2); }

/* Graphique des moyennes */
.graphique { background: var(--doux); padding: 14px 12px 6px; }
.graphique svg { display: block; width: 100%; height: auto; }
.g-grille { stroke: rgba(0, 0, 0, 0.09); stroke-width: 1; }
.g-axe { font-family: var(--f-ui); font-size: 11px; fill: var(--muted); }
.g-barre { fill: var(--barre); }
.g-meilleur { fill: var(--barre-2); }
.g-valeur { font-family: var(--f-ui); font-size: 10px; font-weight: 600; fill: var(--ink); }
.g-abs { font-family: var(--f-ui); font-size: 10px; font-style: italic; fill: var(--muted); }
.g-avenir { fill: rgba(0, 0, 0, 0.12); }
.g-moyenne { stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 7 5; }
/* moyenne de début de saison (J_MLY) : 2e ligne pointillée, couleur d'accent */
.g-debut { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.g-debut-txt { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; fill: var(--accent); }
/* contour de la couleur du fond : étiquettes lisibles même par-dessus une barre */
.g-moyenne-txt, .g-debut-txt { paint-order: stroke; stroke: var(--doux); stroke-width: 4px; stroke-linejoin: round; }
/* Légende sous le graphique */
.graphique-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 8px 0 6px; font-family: var(--f-label); font-size: 0.8em; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-soft); }
.graphique-legende span { display: inline-flex; align-items: center; gap: 8px; }
.graphique-legende b { font-family: var(--f-titre); font-weight: 900; font-size: 1.15em; letter-spacing: 0; color: #000; }
.graphique-legende span:before { content: ""; display: inline-block; width: 26px; }
.leg-moyenne:before { border-top: 2px dashed var(--accent-2); }
.leg-debut:before { border-top: 3px dotted var(--accent); }
.leg-meilleur:before { width: 12px !important; height: 12px; background: var(--barre-2); }
.g-moyenne-txt { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; fill: var(--accent-2); }

@media (max-width: 1000px) {
    .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .joueur-nav { gap: 6px; flex-wrap: nowrap; }
    .joueur-select { flex: 1; min-width: 0; }
    .joueur-select select { min-width: 0; width: 100%; font-size: 16px; }
    .btn-nav span { display: none; }
    .btn-nav { padding: 12px 14px; font-size: 1em; }
    .fiche-nom { font-size: 2.3em; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kpi { min-height: 92px; padding: 12px; }
    .kpi-valeur { font-size: 1.7em; }
    .kpi-vedette, .kpi-double { grid-column: 1 / -1; }
    /* colonnes secondaires masquées : le tableau tient dans la largeur du téléphone */
    .tableau-joueur .col-sec { display: none; }
    /* classements (joueurs, équipes) : toutes les colonnes, comme à l'ordi ; le tableau glisse de côté dans son panneau
       et le nom (3e colonne) reste fixé à gauche (2026-10-20) */
    .page-classement-joueurs .tableau-joueur .col-sec, .page-classement .tableau-classement .col-sec { display: table-cell; }
    .page-classement-joueurs .tableau-joueur tr > :nth-child(3), .page-classement .tableau-classement tr > :nth-child(3) { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 3px rgba(0, 0, 0, 0.12); }
    .page-joueur .tableau-joueur th, .page-joueur .tableau-joueur td { padding-left: 4px; padding-right: 4px; font-size: 0.82em; }
    .page-joueur .tableau-joueur th { font-size: 0.66em; letter-spacing: 0.3px; }
    .graphique { padding: 8px 4px 2px; }
}
@media print {
    .joueur-nav { display: none; }
    .kpi-vedette { background: #fff; border: 2px solid #000; }
    .kpi-vedette .kpi-valeur, .kpi-vedette .kpi-libelle { color: #000; }
}

/* ==========================================================================
   PARTIES PARFAITES (Ligues/common/LG_common/common_Rapport_Record_Parfaites.php,
   <body class="page-joueur page-parfaites">) — reprend les règles du rapport
   d'un joueur ; ajoute les boutons de tri, les liens et la page vide.
   ========================================================================== */
.tri-boutons { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.tri-boutons > span { font-family: var(--f-label); font-size: 0.74em; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.btn-tri {
    font-family: var(--f-label);
    font-weight: 500;
    font-size: 0.82em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    background: #fff;
    border: 2px solid var(--accent);
    padding: 6px 14px;
    text-decoration: none;
}
.btn-tri:hover { color: #fff; background: var(--accent-2); border-color: var(--accent-2); }
.btn-tri.actif, .btn-tri.actif:hover { color: #fff; background: var(--accent); border-color: var(--accent); cursor: default; }
.tableau-joueur a.lien-joueur { color: #000; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.tableau-joueur a.lien-joueur:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.tableau-parfaites td.rang { color: var(--muted); }
.tableau-parfaites td.centre, .tableau-parfaites td.prog { white-space: nowrap; }
.tableau-parfaites tfoot td { background: var(--doux); }
.parfaites-vide { text-align: center; background: var(--doux); border-top: 4px solid var(--accent); padding: 34px 16px 30px; margin: 10px 0 20px; }
.parfaites-vide .parfaite { font-size: 2.2em; padding: 2px 16px; }
.parfaites-vide p { font-family: var(--f-titre); font-weight: 700; font-size: 1.5em; color: var(--ink); margin: 16px 0 6px; }
.parfaites-vide small { font-family: var(--f-ui); color: var(--muted); }
@media (max-width: 760px) {
    .tri-boutons > span { width: 100%; }
    .btn-tri { flex: 1; text-align: center; padding: 8px 6px; }
    .tableau-parfaites td.prog small { display: none; }
}
@media print {
    .tri-boutons { display: none; }
}
/* ==========================================================================
   RAPPORTS DE LIGUE (Ligues/common/LG_common : common_Rapport_Score.php,
   common_Rapport_Player_By_allees.php, … ; outils : qq_rapport_commun.php
   et css/qq_rapports.js) — réutilisent les règles du rapport d'un joueur.
   ========================================================================== */
.page-joueur { --niv1: #EFF8FB; --niv2: #CEECF5; --niv3: #9EDCF0; --niv4: #56C4E8; --niv5: #1FA8D6; }
/* deux tableaux côte à côte */
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
/* barres horizontales (répartition, moyennes des allées) */
.tableau-joueur th.barre-col, .tableau-joueur td.barre-col { width: 38%; }
.barre-h { display: block; height: 12px; background: var(--barre); min-width: 2px; }
.tableau-repartition tr:last-child .barre-h, .tableau-repartition tr:nth-last-child(2) .barre-h { background: var(--barre-2); }
/* grandes grilles (joueurs × colonnes) : 1re colonne figée au défilement */
.tableau-matrice .col-fixe { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 0 rgba(0, 0, 0, 0.06); white-space: nowrap; }
.tableau-matrice td.col-fixe { background: var(--paper); }
.tableau-matrice th.nombre, .tableau-matrice td.nombre { text-align: center; }
.tableau-matrice td.zero { color: var(--muted); }
.tableau-matrice th.groupe { text-align: center; border-left: 2px solid rgba(255, 255, 255, 0.35); }
.tableau-matrice tr.sous-entete th { font-size: 0.72em; padding-top: 4px; padding-bottom: 4px; background: var(--accent); text-align: center; }
.tableau-matrice .debut-groupe { border-left: 2px solid var(--rule-light); }
.tableau-matrice tr.sous-entete th.debut-groupe, .tableau-matrice tr.sous-entete th.debut-paire { border-left: 2px solid rgba(255, 255, 255, 0.35); }
.tableau-matrice .debut-paire { border-left: 2px solid var(--rule-light); }
.tableau-matrice th.paire { text-align: center; border-left: 2px solid rgba(255, 255, 255, 0.35); }
.tableau-matrice td.col-fixe small { font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); }
.tableau-joueur tfoot tr.total > td { border-top: 2px solid var(--accent); font-weight: 700; background: var(--doux); }
.tableau-joueur tfoot tr.total-suite > td { background: var(--doux); }
.tableau-joueur td.t-haut { background: var(--t-haut) !important; }
.tableau-joueur td.t-bas { background: var(--t-bas) !important; }
/* titres triables */
table.triable th[data-tri] { cursor: pointer; user-select: none; }
table.triable th[data-tri]:hover { background: var(--accent-2); }
table.triable th.tri-actif:after { content: " \25BE"; font-size: 0.9em; }
table.triable th.tri-actif[aria-sort="ascending"]:after { content: " \25B4"; }
/* onglets (tranches) */
.tri-boutons .separateur { margin-left: 14px; }
.onglet-panneau[hidden] { display: none; }
.titre-onglet { font-family: var(--f-label); font-weight: 600; font-size: 0.95em; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin: 2px 0 8px; }
/* records des allées */
.tableau-records-allees tr.debut-paire > td { border-top: 2px solid var(--rule-light); }
.tableau-records-allees td.qui { font-size: 0.9em; white-space: nowrap; }
.tableau-records-allees td.triple { text-align: right; padding-right: 4px; }
/* moyennes par allée : 5 niveaux de couleur */
.tableau-moy-allees td.moy { font-weight: 600; color: #000; }
.niv1 { background: var(--niv1) !important; }
.niv2 { background: var(--niv2) !important; }
.niv3 { background: var(--niv3) !important; }
.niv4 { background: var(--niv4) !important; }
.niv5 { background: var(--niv5) !important; }
.tableau-moy-allees td.masque { background: transparent !important; color: transparent; }
.tableau-moy-allees td.vide-case { background: transparent; }
.filtres-moyenne .btn-tri .case-leg { width: 11px; height: 11px; vertical-align: -1px; }
@media (max-width: 900px) {
    .deux-colonnes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .tableau-joueur th.barre-col, .tableau-joueur td.barre-col { width: 30%; }
    .onglets-tranches .btn-tri { flex: 0 1 auto; }
    .filtres-moyenne .btn-tri { flex: 1 1 40%; }
}
@media print {
    .onglets-tranches, .filtres-moyenne { display: none; }
    .onglet-panneau[hidden] { display: block; }
}
/* ==========================================================================
   ÉQUIPES ET RENCONTRES (common_Rapport_Victoires_tab.php, KL_Rapport_SingleTeam.php,
   KL_Rapport_View_Rencontre.php)
   ========================================================================== */
/* résultat d'une partie : V / N / D */
.res { display: inline-block; min-width: 1.5em; font-family: var(--f-label); font-weight: 600; font-size: 0.72em; line-height: 1.6; text-align: center; border-radius: 3px; vertical-align: 1px; margin-left: 3px; }
.res-v { background: var(--hausse); color: #fff; }
.res-n { background: #8A8F96; color: #fff; }
.res-d { background: transparent; color: var(--muted); border: 1px solid var(--rule-light); }
.legende-tableau .res { margin-left: 0; }
.panneau-moyen { max-width: 860px; }
b.ecart { display: inline-block; font-weight: 700; color: #fff; padding: 0 6px; border-radius: 3px; }
b.ecart.hausse { background: var(--hausse); }
b.ecart.baisse { background: var(--accent-2); }
.tableau-equipe td.adversaire { white-space: nowrap; }
.tableau-equipe td.adversaire small { font-weight: 400; }
/* grille des rencontres (victoires par paire d'allées) */
.tableau-victoires td.match { padding: 3px 4px; vertical-align: middle; }
.tableau-victoires td.match a { display: block; text-decoration: none; color: var(--ink); }
.tableau-victoires td.match a:hover { background: var(--survol, rgba(0, 0, 0, 0.05)); }
.tableau-victoires .m-eq { display: block; white-space: nowrap; font-size: 0.86em; line-height: 1.45; padding: 0 4px; font-variant-numeric: tabular-nums; }
.tableau-victoires .m-eq b { font-family: var(--f-label); font-weight: 500; color: var(--accent); }
.tableau-victoires .m-eq small { color: var(--muted); }
.tableau-victoires .m-eq.gagne { font-weight: 700; color: #000; }
.tableau-victoires .m-eq.choisie { background: var(--meilleur); }
.tableau-victoires td.hors { background: transparent; }
.tableau-victoires { min-width: 900px; }
/* feuilles de rencontre */
.choix-programme .btn-tri { padding: 5px 9px; min-width: 2.4em; text-align: center; }
.rencontres { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 6px; }
.carte-rencontre { background: var(--doux); border-top: 4px solid var(--accent); padding: 10px 12px 12px; }
.carte-rencontre.choisie { border-top-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-2) inset; }
.carte-titre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; font-family: var(--f-label); font-weight: 600; font-size: 0.86em; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.carte-score { font-family: var(--f-titre); font-weight: 900; font-size: 1.35em; letter-spacing: 0; text-transform: none; color: #000; }
.feuilles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feuille { background: var(--paper); padding: 8px 8px 4px; min-width: 0; }
.feuille.choisie { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.feuille-titre { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.feuille-role { font-family: var(--f-label); font-size: 0.7em; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.feuille-equipe { flex: 1; font-family: var(--f-titre); font-weight: 900; font-size: 1.1em; color: var(--accent); text-decoration: none; }
.feuille-equipe:hover { color: var(--accent-2); }
.feuille-pts { font-family: var(--f-titre); font-weight: 900; font-size: 1.3em; color: #000; white-space: nowrap; }
.feuille-pts small { font-family: var(--f-ui); font-weight: 400; font-size: 0.55em; color: var(--muted); }
.tableau-feuille { width: 100%; }
.tableau-feuille th.nombre, .tableau-feuille td.nombre { text-align: center; }
.tableau-feuille td.joueur { white-space: nowrap; }
.absent-sc, .tableau-feuille td.absent-sc { color: var(--muted) !important; font-style: italic; opacity: 0.75; }
@media (max-width: 900px) {
    .feuilles { grid-template-columns: 1fr; }
}
@media print {
    .choix-programme { display: none; }
    .carte-rencontre { break-inside: avoid; }
}
/* ==========================================================================
   FEUILLE DE RENCONTRE (KL_Rapport_View_Rencontre.php) — disposition de la
   feuille papier : onglets par paire d'allées, 2 équipes côte à côte,
   Id / Nom / points / P1 P2 P3 / TR, handicaps, totaux, victoires, points
   ========================================================================== */
.onglets-feuilles { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; border-bottom: 3px solid var(--accent); }
.onglets-feuilles .onglet {
    font-family: var(--f-label);
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.6px;
    color: var(--accent-2);
    background: var(--paper);
    border: 1px solid var(--rule-light);
    border-bottom: 0;
    padding: 7px 14px 6px;
    text-decoration: none;
}
.onglets-feuilles .onglet:hover { background: var(--doux); }
.onglets-feuilles .onglet.actif { color: #fff; background: var(--accent); border-color: var(--accent); }
.feuille-rencontre { background: var(--paper); border: 1px solid var(--rule-light); border-top: 0; padding: 16px 16px 18px; }
.feuille-rencontre[hidden] { display: none; }
.fr-entete { text-align: center; margin-bottom: 14px; }
.fr-infos { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; font-family: var(--f-label); font-size: 0.8em; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.fr-equipes { font-family: var(--f-titre); font-weight: 900; font-size: 1.55em; line-height: 1.25; margin: 6px 0 4px; color: var(--accent); }
.fr-equipes a { color: inherit; text-decoration: none; }
.fr-equipes a:hover { color: var(--accent-2); }
.fr-equipes small { font-family: var(--f-ui); font-weight: 400; font-size: 0.55em; color: var(--muted); }
.fr-equipes em { font-family: var(--f-texte); font-weight: 400; font-size: 0.7em; color: var(--muted); margin: 0 8px; }
.fr-resultat { margin: 0; font-family: var(--f-ui); color: var(--ink-soft); }
.fr-resultat b { font-family: var(--f-titre); font-weight: 900; font-size: 1.25em; color: #000; }
.fr-moities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fr-moitie { min-width: 0; overflow-x: auto; }
.fr-role { display: block; font-family: var(--f-label); font-size: 0.72em; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
table.feuille-equipe-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.feuille-equipe-table col.c-id { width: 34px; }
.feuille-equipe-table col.c-pts { width: 28px; }
.feuille-equipe-table col.c-p { width: 50px; }
.feuille-equipe-table col.c-tr { width: 60px; }
.journal .feuille-equipe-table th, .journal .feuille-equipe-table td { padding: 5px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journal .feuille-equipe-table th.nombre, .journal .feuille-equipe-table td.nombre { text-align: center; }
.journal .feuille-equipe-table th { text-align: center; }
/* TR séparé des parties, comme sur la feuille papier */
.journal .feuille-equipe-table .tr { border-left: 6px solid var(--paper); }
.journal .feuille-equipe-table td.fr-id { color: var(--muted); font-size: 0.82em; }
.journal .feuille-equipe-table td.fr-nom a { color: var(--ink); font-weight: 600; }
.journal .feuille-equipe-table tr.place-vide td { height: 1.95em; }
.journal .feuille-equipe-table tr.handicap td { color: var(--muted); font-size: 0.84em; }
.journal .feuille-equipe-table tfoot td { background: var(--doux); font-family: var(--f-label); font-weight: 500; letter-spacing: 0.4px; }
.journal .feuille-equipe-table tr.fr-total td { border-top: 2px solid var(--accent); font-weight: 700; color: #000; }
.journal .feuille-equipe-table tr.fr-points td { font-weight: 700; color: #000; }
.journal .feuille-equipe-table tr.fr-points td.fr-pts-total { background: var(--accent); color: #fff; font-family: var(--f-titre); font-weight: 900; font-size: 1.05em; }
.journal .feuille-equipe-table td.centre { text-align: center; }
.journal .feuille-equipe-table tfoot .res { margin-left: 0; }
.feuille-equipe-table.choisie { outline: 3px solid var(--accent-2); outline-offset: 0; }
.feuille-equipe-table td.absent-sc small { font-style: normal; margin-right: 1px; }
@media (max-width: 900px) {
    .fr-moities { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .feuille-rencontre { padding: 12px 8px 14px; }
    .fr-equipes { font-size: 1.2em; }
    .journal .feuille-equipe-table th, .journal .feuille-equipe-table td { font-size: 0.8em; padding: 5px 2px; }
    .feuille-equipe-table col.c-p { width: 40px; }
    .feuille-equipe-table col.c-tr { width: 46px; }
    .onglets-feuilles .onglet { padding: 6px 9px 5px; font-size: 0.82em; }
}
@media print {
    .onglets-feuilles, .choix-programme { display: none; }
    .feuille-rencontre[hidden] { display: block; }
    .feuille-rencontre { break-inside: avoid; margin-bottom: 16px; }
}
/* ==========================================================================
   CÉDULE DE JEU (KL_View_cedule.php)
   ========================================================================== */
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tableau-cedule { min-width: 900px; }
.tableau-cedule td.date { white-space: nowrap; font-size: 0.84em; color: var(--ink-soft); }
.tableau-cedule td.match-cedule { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.tableau-cedule td.match-cedule a { display: block; color: var(--ink); text-decoration: none; }
.tableau-cedule td.match-cedule a:hover { color: var(--accent-2); }
.tableau-cedule td.match-cedule small { display: block; font-weight: 400; font-size: 0.72em; color: var(--muted); }
.tableau-cedule tr.joue > td { color: var(--muted); }
.tableau-cedule tr.joue td.match-cedule { font-weight: 500; }
.journal .tableau-cedule tr.prochain > td, .journal .tableau-cedule-equipe tr.prochain > td { background: var(--meilleur); color: #000; font-weight: 700; }
.journal .tableau-cedule tr.positions > td { background: var(--accent); color: #fff; font-family: var(--f-label); font-size: 0.78em; letter-spacing: 0.5px; padding-top: 3px; padding-bottom: 3px; }
.tableau-cedule tr.positions td.libelle { color: #fff; }
.tableau-cedule tr.position td.prog { color: var(--accent-2); }
.journal .tableau-cedule td.match-cedule.choisie { background: var(--t-haut); }
.eq-choisie { color: var(--accent-2); font-weight: 900; }
.etiquette-prochain { display: inline-block; font-family: var(--f-label); font-weight: 600; font-size: 0.68em; letter-spacing: 0.8px; text-transform: uppercase; color: #fff; background: var(--accent-2); padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.tableau-cedule-equipe tr.joue > td { color: var(--ink-soft); }
@media (max-width: 1000px) {
    .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tableau-allees-equipe { min-width: 760px; }
.tableau-allees-equipe tr.ligne-total td.nombre { font-family: var(--f-titre); font-weight: 900; font-size: 1.1em; color: #000; }
/* ==========================================================================
   CÉDULE IMPRIMÉE 8½ × 11 (bouton « Imprimer la cédule » de KL_View_cedule.php)
   Le bouton ajoute la classe « impression-cedule » au <body> le temps d'imprimer :
   seulement l'en-tête, la grille et la liste des équipes, en noir et blanc
   ========================================================================== */
.imp-seule { display: none; }
.btn-imprimer-cedule { background: var(--accent-2); }
.btn-imprimer-cedule:hover { background: var(--accent); }
@media print {
    body.impression-cedule { background: #fff !important; }
    body.impression-cedule #headerwrap, body.impression-cedule #footerwrap { display: none !important; }
    body.impression-cedule .journal { margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; max-width: none !important; width: auto !important; background: #fff !important; }
    body.impression-cedule .journal > * { display: none !important; }
    body.impression-cedule .journal > .grille-cedule,
    body.impression-cedule .journal > .imp-entete,
    body.impression-cedule .journal > .imp-pied { display: block !important; }
    body.impression-cedule .imp-entete { font-family: var(--f-label); font-size: 14pt; letter-spacing: 0.5px; text-transform: uppercase; color: #000; border-bottom: 2pt solid #000; padding-bottom: 3pt; margin-bottom: 5pt; }
    body.impression-cedule .imp-entete span { float: right; font-size: 10.5pt; text-transform: none; letter-spacing: 0; padding-top: 3pt; }
    body.impression-cedule .grille-cedule { overflow: visible !important; }
    body.impression-cedule .tableau-cedule { min-width: 0 !important; width: 100% !important; border-collapse: collapse; }
    body.impression-cedule .tableau-cedule th, body.impression-cedule .tableau-cedule td {
        font-size: 10.5pt !important; padding: 0.6pt 3pt !important; line-height: 1.12 !important;
        background: #fff !important; color: #000 !important; border: 0.5pt solid #999 !important;
        position: static !important; box-shadow: none !important; font-family: Arial, sans-serif !important;
    }
    body.impression-cedule .tableau-cedule th { font-weight: 700 !important; background: #e6e6e6 !important; font-size: 11pt !important; }
    body.impression-cedule .tableau-cedule td.match-cedule { font-size: 12pt !important; font-weight: 700 !important; }
    body.impression-cedule .tableau-cedule td.prog { font-size: 11pt !important; font-weight: 700 !important; }
    body.impression-cedule .tableau-cedule tr.positions td { font-size: 9.5pt !important; }
    body.impression-cedule .tableau-cedule td.match-cedule small,
    body.impression-cedule .tableau-cedule .etiquette-prochain { display: none !important; }
    body.impression-cedule .tableau-cedule td.match-cedule a, body.impression-cedule .tableau-cedule td.match-cedule span { color: #000 !important; text-decoration: none !important; }
    body.impression-cedule .tableau-cedule tr.positions td { background: #e6e6e6 !important; font-style: italic; }
    body.impression-cedule .tableau-cedule td.match-cedule.choisie { border: 1.8pt solid #000 !important; font-weight: 900 !important; }
    body.impression-cedule .eq-choisie { text-decoration: underline !important; color: #000 !important; }
    body.impression-cedule .imp-pied { font-family: Arial, sans-serif; font-size: 9.5pt; color: #000; margin-top: 5pt; }
    body.impression-cedule .imp-pied p { margin: 0 0 3pt; }
    body.impression-cedule .imp-equipes { list-style: none; margin: 4pt 0; padding: 0; columns: 4; column-gap: 10pt; }
    body.impression-cedule .imp-equipes li { break-inside: avoid; padding: 0.5pt 0; }
    body.impression-cedule .imp-equipes li.eq-choisie { font-weight: 900; }
    body.impression-cedule .imp-source { text-align: right; color: #555; }
    /* liste des équipes et code QR (en bas à droite) */
    body.impression-cedule .imp-bas { display: flex; align-items: flex-start; gap: 12pt; }
    body.impression-cedule .imp-bas .imp-equipes { flex: 1; }
    body.impression-cedule .imp-qr { flex: 0 0 auto; text-align: center; }
    body.impression-cedule .imp-qr img { display: block; width: 62pt; height: 62pt; }
    body.impression-cedule .imp-qr span { display: block; font-size: 7pt; color: #333; }
    /* logo du site, centré au bas de la feuille */
    body.impression-cedule .imp-logo { display: flex; justify-content: center; align-items: center; gap: 8pt; margin-top: 2pt; }
    body.impression-cedule .imp-logo img { width: 34pt; height: 34pt; }
    body.impression-cedule .imp-logo span { font-size: 8.5pt; color: #333; line-height: 1.25; }
    body.impression-cedule .imp-logo b { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 14pt; color: #000; }
}
/* ==========================================================================
   CLASSEMENT DES ÉQUIPES (KL_Rapport_Team.php)
   ========================================================================== */
.tableau-classement { min-width: 820px; }
.tableau-classement td.eq-nom { white-space: nowrap; }
.tableau-classement td.eq-nom small { color: var(--muted); }
.var { display: inline-block; min-width: 2.2em; font-family: var(--f-label); font-weight: 600; font-size: 0.82em; letter-spacing: 0.3px; white-space: nowrap; }
.var-haut { color: var(--hausse); }
.var-bas { color: var(--accent-2); }
.var-egal { color: var(--muted); }
.tableau-mini-cedule th, .tableau-mini-cedule td { text-align: center !important; padding-left: 3px !important; padding-right: 3px !important; white-space: nowrap; }
.tableau-mini-cedule td { font-weight: 600; font-variant-numeric: tabular-nums; }
/* listes de records (équipes : 3, joueurs : 10) */
.carte-records { background: var(--paper); border-top: 4px solid var(--accent); }
.carte-records h3 { margin: 0; padding: 8px 12px; font-family: var(--f-label); font-weight: 600; font-size: 0.9em; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--accent); }
.carte-records ol { margin: 0; padding: 4px 0 6px; list-style: none; counter-reset: rec; }
.carte-records li { counter-increment: rec; display: flex; align-items: baseline; gap: 8px; padding: 5px 12px; border-bottom: 1px solid var(--rule-light); font-size: 0.92em; }
.carte-records li:nth-child(even) { background: var(--doux); }
.carte-records li:before { content: counter(rec); min-width: 1.4em; font-family: var(--f-label); color: var(--muted); }
.carte-records li a { flex: none; color: #000; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.carte-records li a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.carte-records li small { color: var(--muted); }
.carte-records li b { margin-left: auto; font-family: var(--f-titre); font-weight: 900; font-size: 1.1em; color: #000; }
.carte-records li.vide:before { content: ""; }

/* records : rang explicite, égalités sur la même ligne (KL_Rapport_Team.php) */
.carte-records li:before { content: none; }
.carte-records li .rang { min-width: 1.4em; font-family: var(--f-label); color: var(--muted); }
.carte-records li .noms { flex: 1; min-width: 0; }
.carte-records li .noms i { font-style: normal; color: var(--muted); margin: 0 4px; }
.carte-records li.egalite .rang { color: var(--accent-2); font-weight: 700; }

/* records des joueurs sur deux colonnes : 1 à 5 à gauche, 6 à 10 à droite */
.carte-records.deux-col ol { column-count: 2; column-gap: 0; column-rule: 1px solid var(--rule-light); }
.carte-records.deux-col li { break-inside: avoid; -webkit-column-break-inside: avoid; }
.carte-records.deux-col li:nth-child(even) { background: transparent; }
@media (max-width: 600px) {
    .carte-records.deux-col ol { column-count: 1; }
}

/* ==========================================================================
   CLASSEMENT IMPRIMÉ 8½ × 14 (bouton « Imprimer le classement » de KL_Rapport_Team.php)
   Le bouton ajoute la classe « impression-classement » au <body> le temps d'imprimer :
   tout le classement en noir et blanc, logo au centre et code QR à droite en bas
   ========================================================================== */
@media print {
    body.impression-classement { background: #fff !important; }
    body.impression-classement #headerwrap, body.impression-classement #footerwrap,
    body.impression-classement .manchette, body.impression-classement .joueur-nav,
    body.impression-classement .choix-programme, body.impression-classement .legende-tableau,
    body.impression-classement .rubrique small { display: none !important; }
    body.impression-classement .journal { margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; max-width: none !important; width: auto !important; background: #fff !important; }
    body.impression-classement .imp-entete { display: block !important; font-family: var(--f-label); font-size: 15pt; letter-spacing: 0.5px; text-transform: uppercase; color: #000; border-bottom: 2pt solid #000; padding-bottom: 3pt; margin-bottom: 4pt; }
    body.impression-classement .imp-entete span { float: right; font-size: 10.5pt; text-transform: none; letter-spacing: 0; padding-top: 4pt; }
    /* titres de sections */
    body.impression-classement .rubrique { margin: 3pt 0 1pt !important; padding: 0 !important; border: 0 !important; }
    body.impression-classement .rubrique:after { display: none !important; }
    body.impression-classement .rubrique h2 { font-size: 10.5pt !important; color: #000 !important; background: none !important; padding: 0 12pt 0 0 !important; border-bottom: 1pt solid #000; clip-path: none !important; overflow: visible !important; white-space: nowrap !important; }
    body.impression-classement .rubrique h2:before, body.impression-classement .rubrique h2:after { display: none !important; }
    /* tableaux */
    body.impression-classement .panneau { overflow: visible !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; background: none !important; }
    body.impression-classement .tableau-classement, body.impression-classement .tableau-mini-cedule { min-width: 0 !important; width: 100% !important; border-collapse: collapse; }
    body.impression-classement .journal table th, body.impression-classement .journal table td {
        font-size: 11pt !important; padding: 0.5pt 3pt !important; line-height: 1.15 !important;
        background: #fff !important; color: #000 !important; border: 0.5pt solid #999 !important;
        position: static !important; box-shadow: none !important; font-family: Arial, sans-serif !important; height: auto !important;
    }
    body.impression-classement .journal table th { font-weight: 700 !important; background: #e6e6e6 !important; font-size: 9.5pt !important; }
    body.impression-classement .journal table td a { color: #000 !important; text-decoration: none !important; }
    body.impression-classement .tableau-classement td.triple { font-size: 12pt !important; font-weight: 900 !important; }
    body.impression-classement .tableau-classement td.eq-nom a { font-weight: 700 !important; }
    body.impression-classement .var { color: #000 !important; }
    body.impression-classement b.ecart { background: none !important; color: #000 !important; padding: 0 !important; }
    body.impression-classement .titre-onglet { font-size: 9.5pt !important; margin: 0 0 2pt !important; color: #000 !important; }
    /* deux colonnes gardées à l'impression (cédule, records) */
    body.impression-classement .deux-colonnes { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10pt !important; }
    body.impression-classement .carte-records { border-top: 0 !important; background: none !important; }
    body.impression-classement .carte-records h3 { background: #e6e6e6 !important; color: #000 !important; font-size: 9.5pt !important; padding: 2pt 5pt !important; }
    body.impression-classement .carte-records li { font-size: 10.5pt !important; padding: 0.3pt 5pt !important; line-height: 1.2 !important; background: none !important; border-bottom: 0.5pt solid #ccc !important; font-family: Arial, sans-serif; }
    body.impression-classement .carte-records li a { color: #000 !important; }
    body.impression-classement .carte-records li b { font-size: 11pt !important; }
    body.impression-classement .carte-records ol { padding: 0 !important; }
    body.impression-classement .carte-records .parfaite { background: none !important; color: #000 !important; padding: 0 !important; }
    body.impression-classement .carte-records.deux-col ol { column-count: 2 !important; }
    /* bas de page : logo au centre, code QR à droite */
    body.impression-classement .imp-pied-logo { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 3pt; }
    body.impression-classement .imp-pied-logo .imp-logo { display: flex; align-items: center; gap: 8pt; }
    body.impression-classement .imp-pied-logo .imp-logo img { width: 36pt; height: 36pt; }
    body.impression-classement .imp-pied-logo .imp-logo span { font-family: Arial, sans-serif; font-size: 8.5pt; color: #333; line-height: 1.25; }
    body.impression-classement .imp-pied-logo .imp-logo b { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 14pt; color: #000; }
    body.impression-classement .imp-pied-logo .imp-qr { justify-self: end; text-align: center; }
    body.impression-classement .imp-pied-logo .imp-qr img { display: block; width: 58pt; height: 58pt; }
    body.impression-classement .imp-pied-logo .imp-qr span { display: block; font-family: Arial, sans-serif; font-size: 7pt; color: #333; }
}

    /* records des joueurs sur deux colonnes : un peu plus petits pour que noms et pointages ne se touchent pas */
@media print {
    body.impression-classement .carte-records.deux-col li { font-size: 10pt !important; gap: 4pt !important; padding: 0.3pt 4pt !important; }
    body.impression-classement .carte-records.deux-col li b { font-size: 10.5pt !important; padding-left: 3pt; }
    body.impression-classement .carte-records.deux-col ol { column-gap: 12pt !important; column-rule: 0.5pt solid #999 !important; }
}
/* classement imprimé : logo et code QR plus grands */
@media print {
    body.impression-classement .imp-pied-logo .imp-logo img { width: 50pt !important; height: 50pt !important; }
    body.impression-classement .imp-pied-logo .imp-logo b { font-size: 17pt !important; }
    body.impression-classement .imp-pied-logo .imp-logo span { font-size: 9pt !important; }
    body.impression-classement .imp-pied-logo .imp-qr img { width: 72pt !important; height: 72pt !important; }
    body.impression-classement .imp-pied-logo .imp-qr span { font-size: 6.5pt !important; line-height: 1 !important; }
}

/* classement imprimé : en-têtes de colonnes en couleur (le reste en noir et blanc) */
@media print {
    body.impression-classement .journal table th {
        background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important;
        -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
    }
}

/* classement des joueurs imprimé (8½ × 14) : plusieurs pages, titres de colonnes répétés,
   aucune ligne coupée ; les autres réglages viennent de « impression-classement » */
@media print {
    body.impression-classement .kpis { display: none !important; }
    body.impression-classement .tableau-classement thead { display: table-header-group; }
    body.impression-classement .tableau-classement tfoot { display: table-row-group; }
    body.impression-classement .tableau-classement tr { break-inside: avoid; page-break-inside: avoid; }
    body.impression-classement .tableau-classement-joueurs td { font-size: 11.5pt !important; padding: 1.2pt 3pt !important; }
    body.impression-classement .tableau-classement-joueurs td.triple { font-size: 12pt !important; }
    body.impression-classement .imp-pied-logo { break-inside: avoid; page-break-inside: avoid; }
}
.tableau-classement td small.partiel { color: var(--accent-2); font-weight: 700; margin-left: 1px; }

/* classement des joueurs imprimé : une seule page légale, deux colonnes de joueurs
   (le grand tableau de l'écran est remplacé par .imp-deux-tables) */
@media print {
    body.impression-classement .ecran-seulement { display: none !important; }
    body.impression-classement .imp-deux-tables { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8pt; align-items: start; }
    body.impression-classement .imp-note { display: block !important; font-family: Arial, sans-serif; font-size: 9pt; color: #000; margin: 4pt 0 0; }
    body.impression-classement .tableau-imp-joueurs { width: 100% !important; min-width: 0 !important; border-collapse: collapse; table-layout: auto; }
    body.impression-classement .journal .tableau-imp-joueurs td { font-size: 11pt !important; padding: 2.4pt 1.8pt !important; line-height: 1.15 !important; white-space: nowrap; }
    body.impression-classement .journal .tableau-imp-joueurs th { font-size: 9.5pt !important; padding: 2pt 1.8pt !important; text-align: center !important; }
    body.impression-classement .journal .tableau-imp-joueurs .gauche { text-align: left !important; }
    body.impression-classement .journal .tableau-imp-joueurs td.nombre, body.impression-classement .journal .tableau-imp-joueurs td.centre { text-align: center !important; }
    body.impression-classement .journal .tableau-imp-joueurs td small { font-size: 8pt; color: #444 !important; }
    body.impression-classement .journal .tableau-imp-joueurs tr:nth-child(even) > td { background: #f0f0f0 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* classement des joueurs imprimé : grand logo et grand code QR (publicité du site) */
@media print {
    body.page-classement-joueurs.impression-classement .imp-pied-logo { margin-top: 8pt; }
    body.page-classement-joueurs.impression-classement .imp-pied-logo .imp-logo { gap: 14pt; }
    body.page-classement-joueurs.impression-classement .imp-pied-logo .imp-logo img { width: 84pt !important; height: 84pt !important; }
    body.page-classement-joueurs.impression-classement .imp-pied-logo .imp-logo b { font-size: 28pt !important; line-height: 1.1; }
    body.page-classement-joueurs.impression-classement .imp-pied-logo .imp-logo span { font-size: 11pt !important; }
    body.page-classement-joueurs.impression-classement .imp-pied-logo .imp-qr img { width: 100pt !important; height: 100pt !important; }
    body.page-classement-joueurs.impression-classement .imp-pied-logo .imp-qr span { font-size: 8pt !important; }
}

/* ===== DUEL DE DEUX ÉQUIPES PAR PAIRE D'ALLÉES (KL_Rapport_Duel.php) ===== */
.duel-choix { flex-wrap: wrap; align-items: flex-end; }
.duel-vs { font-family: var(--f-label); font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); padding: 0 6px; }
.fiche-nom .duel-vs { font-size: 0.45em; vertical-align: middle; }
.duel-choix .duel-vs { align-self: center; font-size: 1.1em; }
.duel-inverser { align-self: center; font-size: 1.2em; }
.duel-eq1 select { border-left: 5px solid var(--accent); }
.duel-eq2 select { border-left: 5px solid var(--accent-2); }
.duel-c1 { color: var(--accent); font-weight: 700; }
.duel-c2 { color: var(--accent-2); font-weight: 700; }
.tableau-duel th.duel-t1 { background: var(--accent); color: #fff; }
.tableau-duel th.duel-t2 { background: var(--accent-2); color: #fff; }
.tableau-duel tr.duel-pire td { background: var(--t-bas); }
.duel-barre-case { min-width: 170px; }
.duel-barre { position: relative; height: 22px; }
.duel-barre .duel-axe { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--muted); }
.duel-barre .duel-jauge { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; }
.duel-barre .duel-pour { left: 50%; background: var(--accent); }
.duel-barre .duel-contre { right: 50%; background: var(--accent-2); }
.duel-barre b { position: relative; display: block; text-align: center; line-height: 22px; font-size: 0.9em; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.duel-leg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: 0; }
.duel-leg.duel-pour { background: var(--accent); }
.duel-leg.duel-contre { background: var(--accent-2); }
@media print {
    .tableau-duel th.duel-t1, .tableau-duel th.duel-t2, .duel-barre .duel-jauge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.kpi-valeur .duel-c1, .kpi-valeur .duel-c2 { font-size: 0.72em; }

/* ===== GAGNANTS DU PHS HEBDOMADAIRE (common_Rapport_JPHS_HEB_EDL.php) ===== */
.tableau-phs td.phs-case { vertical-align: top; min-width: 150px; }
.tableau-phs .phs-score { font-family: var(--f-label); font-weight: 700; font-size: 1.25em; color: var(--accent); margin-right: 6px; }
.tableau-phs .phs-montant { font-weight: 600; white-space: nowrap; }
.tableau-phs .phs-montant small { font-weight: 400; color: var(--muted); }
.tableau-phs .phs-gagnant { display: block; line-height: 1.35; }
.tableau-phs .phs-gagnant small { color: var(--muted); white-space: nowrap; }
.tableau-phs td.phs-partage, .phs-leg { background: var(--meilleur); }
.phs-leg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; border: 1px solid var(--rule-light); vertical-align: 0; }
.phs-sans-gain { margin-top: -6px; }
@media print {
    .tableau-phs td.phs-partage { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== LE POOL DES QUILLEURS (EDL_Classement_Poolers_POOL.php) ===== */
.pool-liste { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pool-carte { background: var(--paper); border: 1px solid var(--rule-light); border-left: 5px solid var(--rule-light); border-radius: 4px; }
.pool-entete { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.pool-rang { font-family: var(--f-label); font-weight: 700; font-size: 1.35em; width: 46px; text-align: center; color: var(--muted); }
.pool-nom { font-family: var(--f-label); font-weight: 600; font-size: 1.15em; flex: 1; color: var(--ink); }
.pool-sous { display: flex; gap: 12px; font-size: 0.82em; color: var(--muted); white-space: nowrap; }
.pool-sous b { color: var(--ink); }
.pool-total { font-family: var(--f-label); font-weight: 700; font-size: 1.5em; color: var(--accent); white-space: nowrap; }
.pool-total span { font-size: 0.5em; color: var(--muted); font-weight: 500; margin-left: 4px; }
.pool-medaille-1 { border-left-color: #D4AF37; } .pool-medaille-1 .pool-rang { color: #B8962A; }
.pool-medaille-2 { border-left-color: #A8A8A8; } .pool-medaille-2 .pool-rang { color: #8A8A8A; }
.pool-medaille-3 { border-left-color: #B5714A; } .pool-medaille-3 .pool-rang { color: #B5714A; }
.pool-parfait { border: 2px solid var(--accent); border-left-width: 5px; background: var(--doux); }
.pool-parfait .pool-rang { color: var(--accent-2); font-size: 1.6em; }
details.pool-detail summary { cursor: pointer; padding: 7px 16px; font-size: 0.85em; color: var(--muted); border-top: 1px solid var(--rule-light); list-style: none; }
details.pool-detail summary::-webkit-details-marker { display: none; }
details.pool-detail summary::before { content: "▸ "; }
details.pool-detail[open] summary::before { content: "▾ "; }
.pool-corps { padding: 4px 16px 14px; }
.pool-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-light); font-size: 0.92em; }
.pool-ligne .valeur { font-weight: 700; white-space: nowrap; }
.pool-ligne .ok { color: var(--hausse); font-weight: 600; }
.pool-ligne .non { color: var(--accent-2); }
.pool-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.pool-cat { background: var(--doux); border-radius: 4px; padding: 7px 10px; }
.pool-cat .titre { font-family: var(--f-label); font-size: 0.8em; font-weight: 600; color: var(--accent); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
.pool-joueur { display: flex; justify-content: space-between; font-size: 0.86em; padding: 1px 0; }
.pool-joueur .pts { font-weight: 700; }
.pool-joueur .pts.zero { color: var(--muted); }
.pool-joueur .pts.gagne { color: var(--hausse); }
@media (max-width: 640px) {
    .pool-entete { flex-wrap: wrap; }
    .pool-sous { order: 4; width: 100%; padding-left: 60px; }
}
@media print {
    details.pool-detail summary { display: none; }
}

/* ===== TOURNOIS D'ÉTÉ (TEPP) : records par salon ===== */
.choix-salon .btn-tri small { font-size: 0.8em; opacity: 0.75; margin-left: 4px; }
details.pp-detail { margin: 14px 0 6px; }
details.pp-detail > summary { cursor: pointer; font-family: var(--f-label); font-size: 0.9em; letter-spacing: 0.4px; color: var(--accent); padding: 6px 0; }
details.pp-detail > summary:hover { color: var(--accent-2); }
.tableau-pp-joueurs td small { font-style: italic; }

/* ===== TOURNOIS D'ÉTÉ (TEPP) : cartes « Toutes les années » de la page d'accueil ===== */
.tepp-liens { align-items: stretch; }
a.tepp-carte { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--doux); border-left: 5px solid var(--accent); text-decoration: none; color: var(--ink); border-radius: 4px; }
a.tepp-carte b { font-family: var(--f-label); font-size: 1.2em; letter-spacing: 0.4px; color: var(--accent); }
a.tepp-carte span { font-size: 0.88em; color: var(--muted); }
a.tepp-carte:hover { border-left-color: var(--accent-2); }
a.tepp-carte:hover b { color: var(--accent-2); }
#ddmenu div.drop a small { opacity: 0.6; font-size: 0.85em; }

/* ===== TOURNOIS D'ÉTÉ (TEPP) : fiche du joueur et classement ===== */
.tableau-joueur small.tepp-allee { display: block; font-size: 0.68em; line-height: 1.1; color: var(--muted); font-weight: 400; }
.tableau-joueur td.tepp-positions { font-size: 0.82em; white-space: nowrap; }
.tableau-bourses td, .tableau-bourses th { white-space: nowrap; }

/* ===== POOL : texte foncé dans les cartes (le thème pool met le texte de la page en crème) ===== */
.pool-carte, .pool-carte .pool-corps, .pool-carte .pool-ligne, .pool-carte .pool-joueur { color: var(--ink); }
.pool-carte .pool-joueur .pts.zero { color: var(--muted); }

/* ===== Bandeau-lien (ex. « La composition des équipes » dans la page d'une ligue) ===== */
a.lien-bandeau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 0; padding: 14px 18px; background: var(--doux); border-left: 5px solid var(--accent-2); text-decoration: none; color: var(--ink); border-radius: 4px; }
a.lien-bandeau b { font-family: var(--f-label); font-size: 1.2em; letter-spacing: 0.4px; color: var(--accent); }
a.lien-bandeau span { font-size: 0.92em; color: var(--muted); }
a.lien-bandeau:hover b { color: var(--accent-2); }
/* ===== Composition des équipes ===== */
.compo-grille { gap: 18px; }
.compo-equipe th.compo-titre { text-align: left; font-size: 0.85em; }
.compo-equipe th.compo-titre a { color: inherit; text-decoration: none; }
.compo-equipe th.compo-titre a:hover { text-decoration: underline; }
.compo-cap { display: inline-block; font-family: var(--f-label); font-weight: 700; font-size: 0.72em; color: #fff !important; background: var(--accent-2); padding: 0 5px; border-radius: 3px; vertical-align: 1px; }
@media (max-width: 900px) { .compo-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .compo-grille { grid-template-columns: minmax(0, 1fr); } }

/* bandeau-lien : étoile devant le titre ; il suit un titre de rubrique */
.rubrique + a.lien-bandeau { margin-top: 0; }
a.lien-bandeau .etoile { color: var(--accent-2); font-size: 1.1em; margin-right: 2px; }

/* POOL : le pooler parfait montre tous les choix de chaque catégorie avec leur moyenne */
.pool-joueur > span:first-child { flex: 1; }
.pool-joueur .pool-moy { color: var(--muted); font-size: 0.92em; margin: 0 10px 0 8px; font-variant-numeric: tabular-nums; }
.pool-joueur.pool-choisi { font-weight: 700; }
.pool-joueur.pool-choisi .pool-moy { color: var(--ink); }
.pool-parfait .pool-categories { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* POOL : étoile devant les 3 meilleurs poolers (couleur de la médaille) */
.pool-etoile { font-size: 0.95em; }
.pool-medaille-1 .pool-etoile { color: #D4AF37; }
.pool-medaille-2 .pool-etoile { color: #A8A8A8; }
.pool-medaille-3 .pool-etoile { color: #B5714A; }

/* ===== ALL TIME RECORDS (accueil des ligues : smallpan/common_all_AllTime_Records.php) ===== */
.atr { margin-bottom: 26px; }
.atr-bloc + .atr-bloc { margin-top: 22px; }
.atr-salon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin-bottom: 12px; }
.atr-salon b { font-family: var(--f-label); font-weight: 600; font-size: 1.05em; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.atr-salon span { font-family: var(--f-ui); font-size: 0.8em; color: var(--muted); }
.atr-titre { font-family: var(--f-label); font-weight: 600; font-size: 0.85em; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--accent); display: inline-block; padding: 2px 10px; border-radius: 3px; margin: 0 0 8px; }
.atr-podium { list-style: none; margin: 0; padding: 0; }
.atr-podium li { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-bottom: 1px dotted var(--rule-light); font-family: var(--f-texte); color: var(--ink); }
.atr-podium li:last-child { border-bottom: 0; }
.atr-podium .rang { font-family: var(--f-titre); font-weight: 900; font-size: 1.15em; color: var(--muted); width: 18px; text-align: center; flex: none; }
.atr-podium > li:first-child .rang { color: var(--accent-2); }
.atr-podium .qui { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atr-podium .qui a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; align-self: flex-start; }
.atr-podium .qui a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.atr-podium .qui small { font-family: var(--f-ui); font-size: 0.74em; color: var(--muted); margin-top: 1px; }
.atr-podium .score { font-family: var(--f-titre); font-weight: 900; font-size: 1.35em; color: var(--ink); flex: none; }
.atr-podium .score.parfaite { color: #fff; font-size: 1.15em; }
.atr-podium li.atr-autres { display: block; padding: 4px 6px; }
.atr-autres summary { cursor: pointer; font-family: var(--f-ui); font-size: 0.8em; color: var(--accent); }
.atr-autres .atr-podium { margin-top: 4px; }
.atr-vide { font-family: var(--f-texte); font-style: italic; color: var(--muted); margin: 4px 0; }

/* All time records : section repliable (fermée par défaut) */
.atr-repli > summary.rubrique { cursor: pointer; list-style: none; }
.atr-repli > summary.rubrique::-webkit-details-marker { display: none; }
.atr-repli > summary.rubrique::marker { content: ''; }
.atr-bascule { margin-left: auto; font-family: var(--f-label); font-size: 0.8em; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.atr-bascule::after { content: ' ▾'; }
.atr-repli[open] .atr-bascule { font-size: 0; }
.atr-repli[open] .atr-bascule::after { content: 'Masquer ▴'; font-size: 0.8rem; }
.atr-repli > summary.rubrique:hover .atr-bascule { text-decoration: underline; }

/* ===== SÉRIES ÉLIMINATOIRES SUR LA PAGE DE LA LIGUE (smallpan/common_klassic_series_rondes.php) ===== */
.srsp { display: flex; flex-direction: column; gap: 22px; }
.srsp-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin-bottom: 10px; }
.srsp-titre b { font-family: var(--f-label); font-weight: 600; font-size: 1.15em; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.srsp-titre span { font-family: var(--f-ui); font-size: 0.85em; color: var(--muted); }
.srsp-ronde.en-cours .srsp-titre b { color: var(--accent-2); }
.srsp-ronde.en-cours .srsp-titre { border-bottom-color: var(--accent-2); }
.srsp-groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px 24px; }
.srsp-sous { font-family: var(--f-label); font-size: 0.82em; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.srsp-match { border: 1px solid var(--rule-light); border-left: 4px solid var(--rule-light); border-radius: 6px; padding: 4px 10px; margin-bottom: 8px; background: var(--doux, #F4F8FA); }
.srsp-match.fini { border-left-color: var(--accent); }
.srsp-eq { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-family: var(--f-texte); color: var(--ink); }
.srsp-eq + .srsp-eq { border-top: 1px dotted var(--rule-light); }
.srsp-rang { flex: none; min-width: 22px; text-align: center; font-family: var(--f-label); font-size: 0.8em; color: #fff; background: var(--accent); border-radius: 3px; padding: 0 4px; }
.srsp-nom { flex: 1; min-width: 0; }
.srsp-nom small { font-family: var(--f-ui); font-size: 0.75em; color: var(--muted); }
.srsp-allee { flex: none; font-family: var(--f-ui); font-size: 0.75em; color: var(--muted); white-space: nowrap; }
.srsp-v { flex: none; min-width: 18px; text-align: right; font-family: var(--f-titre); font-weight: 900; font-size: 1.2em; }
.srsp-eq.gagne { font-weight: 700; }
.srsp-eq.gagne .srsp-v { color: var(--accent-2); }
.srsp-eq.perd { color: var(--muted); }
.srsp-eq.perd .srsp-rang { background: var(--muted); }
a.srsp-nom { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
a.srsp-nom:hover { color: var(--accent); border-bottom-color: var(--accent); }
.srsp-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.srsp-liens a { font-family: var(--f-label); font-size: 0.9em; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent-2); }
.feuille-series th.non-jouee, .feuille-series td.non-jouee { background: #F1F3F4 !important; color: #B8C2C7; }
/* feuilles des séries : les parties non jouées (grisées) laissent leur place au nom des joueurs */
.feuille-series col.c-p { width: 44px; }
.feuille-series col.c-nj { width: 22px; }
.journal .feuille-series th.non-jouee { font-size: 0.7em; padding: 5px 0; }