/* ============================================================================
   MotsArena V301 — tableaux Hebdo inspirés à l'identique des tableaux de référence
   ----------------------------------------------------------------------------
   Les calculs restent ceux du moteur existant. Cette feuille ne change que la
   présentation : couleurs, densité, alignements, encadrements et insignes.
   ============================================================================ */
:root{
  --ref-navy:#1f3864;
  --ref-red:#c00000;
  --ref-white:#ffffff;
  --ref-grey:#d8d8d8;
  --ref-peach:#f7caac;
  --ref-yellow:#ffe598;
  --ref-blue:#b4c6e7;
  --ref-score-red:#c00000;
  --ref-final-grey:#aeabab;
  --ref-final-blue:#2e75b5;
  --ref-final-yellow:#ffd965;
  --ref-final-green:#a8d08d;
  --ref-black:#050505;
}

/* Onglets de division/groupe : on garde l'ergonomie MotsArena, mais avec une
   apparence plus proche du support imprimé. */
.hebdo-reference-filters{
  display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px;
}
.hebdo-reference-filter{
  appearance:none;border:1px solid rgba(31,56,100,.25);background:#f5f5f5;color:var(--ref-navy);
  border-radius:3px;padding:8px 13px;min-height:40px;font-weight:800;font-size:13px;cursor:pointer;
}
.hebdo-reference-filter.active{background:var(--ref-navy);color:#fff;border-color:var(--ref-navy);}
.hebdo-reference-filter:hover{filter:brightness(1.04);}

/* ---------------------------------------------------------------------------
   TABLEAU DES GROUPES (4 x 2 sur grand écran, comme l'affiche de référence)
   --------------------------------------------------------------------------- */
.hebdo-tableau-poster{
  position:relative;overflow:hidden;background:#fff;border:1px solid #bfc4cb;
  box-shadow:0 10px 28px rgba(0,0,0,.18);padding:0;
  font-family:Arial,Helvetica,sans-serif;
}
.hebdo-tableau-topbar{
  position:relative;display:flex;align-items:center;justify-content:center;gap:14px;
  min-height:74px;padding:8px 86px;background:var(--ref-navy);overflow:hidden;
}
.hebdo-tableau-topbar::before,.hebdo-tableau-topbar::after{
  content:"";position:absolute;top:7px;bottom:7px;width:70px;
  background:url('icon-192.png') center/contain no-repeat;opacity:.16;pointer-events:none;
}
.hebdo-tableau-topbar::before{left:10px;}.hebdo-tableau-topbar::after{right:10px;}
.hebdo-tableau-logo{height:46px;width:auto;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3));position:relative;z-index:1;}
.hebdo-tableau-title{
  position:relative;z-index:1;color:#fff;font-weight:900;text-align:center;
  font-size:clamp(21px,2.6vw,34px);line-height:1.05;letter-spacing:.015em;
}
.hebdo-tableau-subtitle{display:block;font-size:12px;font-weight:700;opacity:.9;margin-top:4px;letter-spacing:.06em;text-transform:uppercase;}
.hebdo-tableau-badge{position:absolute;z-index:2;top:13px;width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.85);box-shadow:0 2px 6px rgba(0,0,0,.3);}
.hebdo-tableau-badge.b1{right:56px}.hebdo-tableau-badge.b2{left:56px}.hebdo-tableau-badge.left{left:14px}.hebdo-tableau-badge.right{right:14px}

.hebdo-tableau-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid #9fa4ab;
}
.hebdo-group-reference{position:relative;min-height:168px;border-right:1px solid #9fa4ab;border-bottom:1px solid #9fa4ab;overflow:hidden;}
.hebdo-group-reference:nth-child(4n){border-right:0;}
.hebdo-group-head{
  padding:7px 8px;text-align:center;background:#e2efd9;color:#111;font-weight:900;
  font-size:16px;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid rgba(0,0,0,.2);
}
.hebdo-group-body{padding:10px 8px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;}
.hebdo-group-player{font-size:14px;font-weight:800;color:#111;text-align:center;line-height:1.14;overflow-wrap:anywhere;}
.hebdo-group-reference.c-grey{background:var(--ref-grey);}
.hebdo-group-reference.c-peach{background:var(--ref-peach);}
.hebdo-group-reference.c-yellow{background:var(--ref-yellow);}
.hebdo-group-reference.c-blue{background:var(--ref-blue);}
.hebdo-group-insigne{position:absolute;right:7px;bottom:7px;width:28px;height:28px;opacity:.9;object-fit:cover;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.25);}
.hebdo-group-reference.is-mine{outline:4px solid #2f7d54;outline-offset:-4px;}
.hebdo-group-reference.is-mine .hebdo-group-head::after{content:'  ★';color:#2f7d54;}

.hebdo-reference-foot{
  display:flex;justify-content:space-between;gap:12px;align-items:center;padding:7px 11px;
  background:#efefef;border-top:1px solid #bcbfc3;color:#2a2a2a;font-size:11px;font-weight:700;
}

/* ---------------------------------------------------------------------------
   SCORE DES GROUPES : grille de confrontations, reprise du tableau rouge
   --------------------------------------------------------------------------- */
.hebdo-score-poster{
  position:relative;overflow:hidden;background:#fff;border:1px solid #b9bcc2;
  box-shadow:0 8px 24px rgba(31,56,100,.14);font-family:Arial,Helvetica,sans-serif;
}
.hebdo-score-header{
  position:relative;background:var(--ref-red);color:#fff;padding:7px 56px;text-align:center;
  font-size:22px;font-weight:900;line-height:1.05;letter-spacing:.02em;
}
.hebdo-score-header small{display:block;font-size:12px;margin-top:2px;letter-spacing:.08em;text-transform:uppercase;}
.hebdo-score-insigne{position:absolute;top:6px;width:30px;height:30px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.88);}
.hebdo-score-insigne.left{left:12px}.hebdo-score-insigne.right{right:12px}
.hebdo-score-rows{padding:0 12px 12px;background:var(--ref-navy);}
.hebdo-score-player-block{margin-top:11px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.16);}
.hebdo-score-player-block:first-child{margin-top:0;}
.hebdo-score-row{
  display:grid;grid-template-columns:minmax(120px,1fr) 54px 54px minmax(120px,1fr);
  align-items:stretch;border-bottom:1px solid rgba(255,255,255,.7);background:#fff;
}
.hebdo-score-row:last-child{border-bottom:0;}
.hebdo-score-name{padding:7px 8px;font-size:13px;font-weight:800;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hebdo-score-name.right{text-align:left;}
.hebdo-score-name.left{justify-content:flex-end;text-align:right;}
.hebdo-score-cell{display:flex;align-items:center;justify-content:center;min-height:34px;background:var(--ref-score-red);color:#fff;font-size:18px;font-weight:900;border-right:1px solid #fff;}
.hebdo-score-cell:last-of-type{border-right:0;}
.hebdo-score-cell.empty{color:#fff;opacity:.9;}
.hebdo-score-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 10px;background:#f4f4f4;color:#333;font-size:11px;font-weight:700;border-top:1px solid #d0d0d0;}
.hebdo-score-meta .badge{padding:2px 6px;border-radius:999px;background:var(--ref-navy);color:#fff;}

/* Classement de groupe inclus sous le score, pour que l'onglet Scores porte les deux
   informations demandées. */
.hebdo-ranking-reference{margin-top:14px;background:var(--ref-navy);padding:0 0 10px;box-shadow:0 8px 24px rgba(31,56,100,.14);}
.hebdo-ranking-title{position:relative;background:var(--ref-red);color:#fff;text-align:center;padding:6px 52px;font-size:20px;font-weight:900;}
.hebdo-ranking-title small{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin-top:2px;}
.hebdo-ranking-table-wrap{overflow:auto;background:#fff;margin:0 12px;}
.hebdo-ranking-table{width:100%;border-collapse:collapse;min-width:860px;font-family:Arial,Helvetica,sans-serif;}
.hebdo-ranking-table th{background:#fff;color:#111;padding:8px 7px;text-align:center;border-bottom:1px solid #aeb2b8;font-size:13px;white-space:nowrap;}
.hebdo-ranking-table th:first-child,.hebdo-ranking-table th:nth-child(2){text-align:left;}
.hebdo-ranking-table td{padding:7px 7px;color:#111;font-size:13px;font-weight:800;text-align:center;border-bottom:1px solid #d0d0d0;white-space:nowrap;}
.hebdo-ranking-table td:first-child,.hebdo-ranking-table td:nth-child(2){text-align:left;}
.hebdo-ranking-table tbody tr:nth-child(odd){background:#fbfbfb;}
.hebdo-ranking-table .rank-badge{font-weight:900;color:var(--ref-navy);}
.hebdo-ranking-table .rank-name{font-weight:900;}
.hebdo-ranking-foot{background:#fff;color:#111;margin:0 12px;padding:10px 12px;font-size:16px;font-weight:900;text-transform:uppercase;display:flex;justify-content:center;gap:24px;}
.hebdo-ranking-foot .pct{color:var(--ref-red);}

/* ---------------------------------------------------------------------------
   PHASES FINALES : deux colonnes avec large couloir central décoratif.
   --------------------------------------------------------------------------- */
.hebdo-ko-reference-poster{
  position:relative;overflow:hidden;background:
    radial-gradient(circle at 50% 40%,rgba(255,255,255,.06),transparent 34%),
    linear-gradient(90deg,#000 0%,#081a10 28%,#000 50%,#081a10 72%,#000 100%);
  border:1px solid #151515;box-shadow:0 12px 34px rgba(0,0,0,.4);padding:0 0 12px;
}
.hebdo-ko-reference-header{
  position:relative;z-index:4;background:var(--ref-navy);color:#fff;min-height:66px;padding:8px 120px;
  display:flex;align-items:center;justify-content:center;text-align:center;gap:16px;
}
.hebdo-ko-reference-logo{height:42px;width:auto;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5));}
.hebdo-ko-reference-title{font-family:Georgia,serif;font-size:clamp(20px,2.2vw,30px);font-weight:900;letter-spacing:.04em;text-shadow:0 2px 2px #000;}
.hebdo-ko-reference-title small{display:block;font-family:Arial,Helvetica,sans-serif;font-size:12px;letter-spacing:.08em;margin-top:2px;}
.hebdo-ko-ref-badge{position:absolute;z-index:5;top:15px;width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.9);box-shadow:0 2px 6px rgba(0,0,0,.45);}
.hebdo-ko-ref-badge.left{left:14px}.hebdo-ko-ref-badge.right{right:14px}

.hebdo-ko-content{position:relative;padding:12px;}
.hebdo-ko-spine{
  position:absolute;z-index:1;left:50%;top:0;bottom:0;transform:translateX(-50%);width:min(24%,300px);
  background:
    linear-gradient(180deg,rgba(12,42,25,.88),rgba(0,0,0,.35) 48%,rgba(12,42,25,.88)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 2px,transparent 2px 28px);
  border-left:1px solid rgba(255,255,255,.12);border-right:1px solid rgba(255,255,255,.12);
  pointer-events:none;
}
.hebdo-ko-spine::before{content:"";position:absolute;inset:0;background:url('voyage-carte-v249.webp') center/cover no-repeat;opacity:.22;filter:saturate(.8);}
.hebdo-ko-spine-logo{position:absolute;z-index:1;left:50%;top:28%;transform:translateX(-50%);width:94%;max-width:260px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.65));}
.hebdo-ko-spine-chicken{position:absolute;z-index:1;left:50%;top:44%;transform:translate(-50%,-50%);width:80%;max-width:190px;filter:drop-shadow(0 5px 7px rgba(0,0,0,.55));}
.hebdo-ko-spine-trophy{position:absolute;z-index:1;left:50%;bottom:6%;transform:translateX(-50%);width:62%;max-width:145px;filter:drop-shadow(0 5px 7px rgba(0,0,0,.55));}
.hebdo-ko-grid{
  position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 28px;
}
.hebdo-ko-card{border:1px solid rgba(0,0,0,.35);box-shadow:0 5px 12px rgba(0,0,0,.36);overflow:hidden;min-width:0;}
.hebdo-ko-card.c-grey{background:var(--ref-final-grey);}
.hebdo-ko-card.c-blue{background:var(--ref-final-blue);}
.hebdo-ko-card.c-yellow{background:var(--ref-final-yellow);}
.hebdo-ko-card.c-green{background:var(--ref-final-green);}
.hebdo-ko-loyalty{display:grid;grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);padding:6px 10px 3px;color:#355e22;font-family:Georgia,serif;font-size:20px;font-weight:900;align-items:center;}
.hebdo-ko-loyalty span{text-align:center;}.hebdo-ko-loyalty .spacer{opacity:0;}
.hebdo-ko-game-row{display:grid;grid-template-columns:70px minmax(0,1fr) 32px 32px minmax(0,1fr);align-items:center;gap:4px;padding:5px 8px;border-top:1px solid rgba(0,0,0,.14);font-size:12px;font-weight:800;color:#111;}
.hebdo-ko-game-row:nth-child(odd){background:rgba(255,255,255,.15);}
.hebdo-ko-game-label{font-weight:900;white-space:nowrap;}
.hebdo-ko-game-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hebdo-ko-game-name.left{text-align:right;}.hebdo-ko-game-name.right{text-align:left;}
.hebdo-ko-game-win{text-align:center;color:var(--ref-red);font-size:18px;font-weight:900;line-height:1;}
.hebdo-ko-winner{display:grid;grid-template-columns:78px 46px minmax(0,1fr) 46px;gap:4px;align-items:center;padding:6px 8px;background:rgba(255,255,255,.37);border-top:1px solid rgba(0,0,0,.28);font-weight:900;color:#111;}
.hebdo-ko-winner-score{text-align:center;font-size:18px;}.hebdo-ko-winner-name{text-align:center;color:var(--ref-red);font-family:Georgia,serif;font-size:14px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hebdo-ko-winner.pending .hebdo-ko-winner-name{color:#513d1b;opacity:.7;text-transform:none;font-family:Arial,Helvetica,sans-serif;font-size:12px;}

/* ---------------------------------------------------------------------------
   CLASSEMENT DE GROUPE — même grammaire que l'affiche rouge/navy de référence
   --------------------------------------------------------------------------- */
.hebdo-classement-poster{background:var(--ref-navy);padding:0;box-shadow:0 10px 28px rgba(0,0,0,.22);border:1px solid #1b2e50;}
.hebdo-classement-header{position:relative;background:var(--ref-red);color:#fff;text-align:center;padding:6px 70px;font-size:21px;font-weight:900;}
.hebdo-classement-header small{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin-top:2px;}
.hebdo-classement-insigne{position:absolute;top:8px;width:30px;height:30px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.9);}
.hebdo-classement-insigne.left{left:12px}.hebdo-classement-insigne.right{right:12px}
.hebdo-classement-wrap{background:#fff;margin:0 12px;overflow:auto;}
.hebdo-classement-table{width:100%;min-width:920px;border-collapse:collapse;font-family:Arial,Helvetica,sans-serif;}
.hebdo-classement-table th{padding:7px 7px;background:#fff;color:#111;border-bottom:1px solid #b7b7b7;font-size:12px;text-align:center;white-space:nowrap;}
.hebdo-classement-table th:first-child,.hebdo-classement-table th:nth-child(2){text-align:left;}
.hebdo-classement-table td{padding:5px 7px;color:#111;font-weight:800;font-size:13px;border-bottom:1px solid #d2d2d2;text-align:center;white-space:nowrap;}
.hebdo-classement-table td:first-child,.hebdo-classement-table td:nth-child(2){text-align:left;}
.hebdo-classement-table td.rank{color:#294d2d;font-size:15px;font-weight:900;}
.hebdo-classement-table tr.is-first td{font-weight:900;}
.hebdo-classement-table tr.is-first td.rank{color:#9a6b00;}
.hebdo-classement-footer{background:#fff;margin:0 12px 10px;padding:8px 10px;color:#111;text-align:left;font-size:17px;font-weight:900;text-transform:uppercase;}
.hebdo-classement-footer .pct{color:var(--ref-red);margin-left:26px;}
.hebdo-classement-note{margin:7px 12px 12px;background:#eaf0f8;color:#111;padding:7px 9px;font-size:11px;font-weight:700;}

/* Responsive : on conserve l'effet affiche même en largeur tablette, puis on passe à 1 colonne
   seulement quand la lecture devient réellement difficile. */
@media (max-width:1100px){
  .hebdo-tableau-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hebdo-group-reference:nth-child(4n){border-right:1px solid #9fa4ab;}
  .hebdo-group-reference:nth-child(2n){border-right:0;}
}
@media (max-width:760px){
  .hebdo-tableau-topbar{padding-left:55px;padding-right:55px;}
  .hebdo-tableau-logo{height:38px;}
  .hebdo-tableau-title{font-size:22px;}
  .hebdo-ko-spine{opacity:.4;width:28%;}
  .hebdo-ko-grid{gap:10px;}
}
@media (max-width:640px){
  .hebdo-tableau-grid{grid-template-columns:1fr;}
  .hebdo-group-reference,.hebdo-group-reference:nth-child(2n),.hebdo-group-reference:nth-child(4n){border-right:0;}
  .hebdo-tableau-topbar{min-height:66px;}
  .hebdo-tableau-title{font-size:20px;}
  .hebdo-score-row{grid-template-columns:minmax(90px,1fr) 44px 44px minmax(90px,1fr);}
  .hebdo-ko-grid{grid-template-columns:1fr;}
  .hebdo-ko-spine{display:none;}
  .hebdo-ko-reference-header{padding:8px 58px;}
  .hebdo-ko-reference-logo{height:34px;}
  .hebdo-ko-reference-title{font-size:19px;}
}
@media (max-width:430px){
  .hebdo-score-rows{padding-left:6px;padding-right:6px;}
  .hebdo-score-name{font-size:12px;}
  .hebdo-score-cell{font-size:16px;min-height:31px;}
  .hebdo-ko-game-row{grid-template-columns:58px minmax(0,1fr) 28px 28px minmax(0,1fr);font-size:11px;}
  .hebdo-ko-loyalty{font-size:18px;}
  .hebdo-classement-footer{font-size:14px;}
}

/* Les boutons de téléchargement deviennent des petites commandes cohérentes avec l'affiche. */
#hebdo-tab-tableau [data-download],#hebdo-tab-scores [data-download],#hebdo-tab-classement [data-download],#hebdo-tab-phases [data-download]{
  border-radius:3px;border:1px solid rgba(31,56,100,.32);background:#f2f2f2;color:var(--ref-navy);font-weight:800;
}

.hebdo-division-ranking{background:#fff;border:1px solid #bfc4cb;box-shadow:0 4px 12px rgba(0,0,0,.12);}
.hebdo-division-ranking-title{background:var(--ref-navy);color:#fff;padding:7px 12px;text-align:center;font-size:18px;font-weight:900;}
.hebdo-division-ranking-title small{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.9;margin-top:2px;}
.hebdo-division-ranking-table-wrap{overflow:auto;}
.hebdo-division-ranking .mea-table{border-radius:0;box-shadow:none;min-width:780px;}
.hebdo-division-ranking .mea-table thead th{background:#fff;color:#111;border-bottom:1px solid #bfc4cb;text-transform:none;font-size:12px;}
.hebdo-division-ranking .mea-table tbody td{color:#111;background:#fff;border-bottom:1px solid #d3d3d3;font-size:12.5px;}
.hebdo-division-ranking .mea-table tbody tr:nth-child(even) td{background:#f7f7f7;}

/* V302 — Mobile : les cinq onglets Hebdo tiennent dans la largeur disponible.
   « Phases finales » peut se rabattre sur deux lignes au lieu d'être poussé hors écran. */
@media (max-width:640px){
  #hebdo-main-tabs{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;
    width:100%;
    overflow:visible !important;
  }
  #hebdo-main-tabs .hebdo-main-tab{
    min-width:0 !important;
    width:100% !important;
    flex:1 1 0 !important;
    padding:8px 2px !important;
    font-size:11px !important;
    line-height:1.1 !important;
    white-space:normal !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow-wrap:anywhere;
  }
}
@media (max-width:380px){
  #hebdo-main-tabs .hebdo-main-tab{
    padding:7px 1px !important;
    font-size:10px !important;
  }
}

/* V304 : tableaux des références, inscription stable, classement séparé, aucun nom masqué. */
[data-vues~="view-hebdo"] .app:not(#sans-vue){max-width:1600px;} #view-hebdo .panel{min-width:0;}
[data-vues~="view-hebdo"] body:not(#sans-vue) #mascot{display:none!important;}
.hebdo-tableau-poster{background:linear-gradient(135deg,#102c39e8,#142b30e8),url('voyage-carte-v249.webp') center/cover;padding:18px 24px;color:#111;}
.hebdo-tableau-topbar{background:#2e75b5;display:grid;grid-template-columns:1fr;gap:0;padding:14px 50px 0;}
.hebdo-tableau-logo{height:62px;max-width:100%;margin:0 auto 12px;}
.hebdo-tableau-title{background:#9dc3e6;color:#1f4e79;font-family:Georgia,serif;font-weight:900;font-size:clamp(24px,3vw,46px);padding:15px 8px;margin:0 -50px;}
.hebdo-tableau-subtitle{font-family:Arial,sans-serif;font-size:14px;color:#173c5e;}
.hebdo-tableau-grid{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:48px;border:0;}
.hebdo-group-reference{min-height:210px;border:1px solid #111;overflow:visible;}
.hebdo-group-head{font-family:Georgia,serif;font-size:22px;padding:5px;background:#e2efd9;border-bottom:1px solid #111;}
.hebdo-group-body{gap:6px;padding:10px 8px 34px;}.hebdo-group-player{font-size:18px;line-height:1.22;}
.hebdo-group-insigne{width:23px;height:23px;bottom:5px;right:5px;}.hebdo-group-reference.is-mine{outline:0;}.hebdo-group-reference.is-mine .hebdo-group-head::after{content:none;}
.hebdo-reference-foot{background:#102c39;color:#fff;margin-top:12px;}
.hebdo-score-reference-group{margin-bottom:28px;}.hebdo-score-poster{max-width:1000px;margin:0 auto 20px;border:0;border-top:18px solid var(--ref-navy);box-shadow:none;}
.hebdo-score-header{padding:5px 52px;font-size:26px;}.hebdo-score-header small{display:none;}.hebdo-score-rows{padding:0;background:white;}.hebdo-score-player-block{box-shadow:none;margin-top:20px;}
.hebdo-score-row{grid-template-columns:minmax(0,1fr) 15.75% 15.75% minmax(0,1fr);border:0;}
.hebdo-score-name{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;color:#203864;font-size:19px;line-height:1.18;padding:2px 5px;}
.hebdo-score-cell{font-size:25px;min-height:29px;border-bottom:1px dotted #fff;}.hebdo-score-name.left,.hebdo-score-name.right{justify-content:center;text-align:center;}.hebdo-score-meta{font-size:12px;}
.hebdo-classement-poster{padding:12px 16px 0;box-shadow:none;}.hebdo-classement-header{font-size:25px;}.hebdo-classement-header small{font-size:20px;text-transform:none;letter-spacing:0;background:var(--ref-navy);margin:4px -70px -6px;padding:3px;}
.hebdo-classement-wrap{margin:0;background:var(--ref-navy);overflow-x:auto;}.hebdo-classement-table{width:100%;min-width:850px;background:#fff;}
.hebdo-classement-table th{font-size:clamp(13px,1.5vw,21px);padding:3px;text-transform:none;}.hebdo-classement-table td{font-size:clamp(14px,1.5vw,21px);padding:3px;border:0;}
.hebdo-classement-table td.rank{font-size:inherit;color:#111;}.hebdo-classement-table td.rank-name{white-space:normal;overflow-wrap:anywhere;min-width:140px;}.hebdo-classement-table tr.is-first td.rank{color:#111;}
.hebdo-classement-table th:last-child,.hebdo-classement-table td:last-child{background:var(--ref-navy);color:#fff;}.hebdo-classement-footer{margin:0;background:#fff;color:#e00000;font-family:Georgia,serif;font-size:24px;}
.hebdo-division-ranking-title{position:relative;padding:12px 54px;}.hebdo-division-ranking .mea-table{width:100%;}
.hebdo-ko-reference-poster{background:linear-gradient(90deg,#00140fb3,#00140f99),url('voyage-carte-v249.webp') center/cover;}
.hebdo-ko-reference-header{background:transparent;text-shadow:none;}.hebdo-ko-reference-title{color:#fff;font-size:28px;}.hebdo-ko-content{padding:16px 12px 36px;}
.hebdo-ko-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20%;row-gap:42px;}.hebdo-ko-card{box-shadow:none;border:0;}.hebdo-ko-loyalty{font-size:29px;padding:6px 5px;}
.hebdo-ko-game-row{grid-template-columns:90px minmax(0,1fr) 35px 35px minmax(0,1fr);gap:0;padding:0;border:0;font-size:16px;align-items:stretch;}.hebdo-ko-game-row:nth-child(odd){background:none;}
.hebdo-ko-game-row>span{border:1px solid #111;margin:0 -1px -1px 0;padding:3px 4px;display:flex;align-items:center;}.hebdo-ko-game-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}.hebdo-ko-game-name.left{text-align:left;}
.hebdo-ko-game-win{justify-content:center;font-size:22px;}.hebdo-ko-game-label{display:flex;flex-direction:column;align-items:flex-start!important;justify-content:center;white-space:normal;}.hebdo-ko-game-label small{display:block;font-size:10px;}
.hebdo-ko-winner{background:transparent;grid-template-columns:96px 34px minmax(0,1fr) 34px;padding:8px 4px;border-top:0;font-size:16px;}.hebdo-ko-winner-score{color:#355e22;font-size:25px;}.hebdo-ko-winner-name{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;font-size:17px;}
.hebdo-ko-spine{width:19%;background:transparent;border:0;}.hebdo-ko-spine::before{display:none;}.hebdo-ko-spine-logo{top:6%;}.hebdo-ko-spine-chicken{top:48%;}.hebdo-ko-spine-trophy{bottom:5%;}
@media(max-width:1100px){.hebdo-ko-grid{column-gap:9%;}.hebdo-ko-spine{width:9%;}.hebdo-ko-game-row{font-size:13px;grid-template-columns:64px minmax(0,1fr) 26px 26px minmax(0,1fr);}.hebdo-ko-winner{grid-template-columns:80px 26px minmax(0,1fr) 26px;font-size:13px;}.hebdo-group-player{font-size:15px;}.hebdo-group-head{font-size:19px;}}
@media(max-width:760px){#view-hebdo .panel{padding:12px;}.hebdo-tableau-poster{padding:10px;}.hebdo-tableau-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px;}.hebdo-tableau-logo{height:48px;}.hebdo-tableau-title{font-size:25px;}.hebdo-group-reference{min-height:180px;}.hebdo-ko-grid{grid-template-columns:1fr;gap:18px;}.hebdo-ko-spine{display:none;}.hebdo-ko-reference-header{padding:10px 42px;flex-direction:column;gap:6px;}.hebdo-ko-reference-title{font-size:22px;}.hebdo-ko-game-row{grid-template-columns:66px minmax(0,1fr) 28px 28px minmax(0,1fr);font-size:14px;}.hebdo-ko-loyalty{font-size:24px;}.hebdo-ko-winner{grid-template-columns:80px 26px minmax(0,1fr) 26px;font-size:13px;}.hebdo-ko-winner-name{font-size:14px;}.hebdo-score-name{font-size:14px;}.hebdo-score-cell{font-size:21px;}.hebdo-classement-poster{padding:7px 6px 0;}.hebdo-classement-footer{font-size:17px;}}
@media(max-width:380px){.hebdo-group-head{font-size:15px;}.hebdo-group-player{font-size:13px;}.hebdo-score-name{font-size:12px;padding:3px;}.hebdo-score-cell{font-size:18px;}.hebdo-ko-game-row{grid-template-columns:54px minmax(0,1fr) 22px 22px minmax(0,1fr);font-size:12px;}.hebdo-ko-winner{grid-template-columns:64px 22px minmax(0,1fr) 22px;font-size:11px;}}
.hebdo-export .hebdo-tableau-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.hebdo-export .hebdo-ko-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20%;}.hebdo-export .hebdo-ko-spine{display:block;width:19%;}.hebdo-export .hebdo-classement-table{min-width:0;width:100%;}

/* V304.2 — le duel KO actif est aussi visible depuis "Mon groupe". */
.hebdo-ko-inline{margin:0 0 10px;padding:0;border:1px solid rgba(41,37,31,.18);border-radius:10px;overflow:hidden;background:#fffaf0;box-shadow:0 4px 12px rgba(41,37,31,.08);}
.hebdo-ko-inline-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;background:var(--ref-navy);color:#fff;font-size:13px;}
.hebdo-ko-inline-head b{font-size:12px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hebdo-ko-inline-head b span{opacity:.7;padding:0 4px;}
.hebdo-ko-inline-body{display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;}
.hebdo-ko-inline-body>div:first-child{display:flex;flex-direction:column;gap:2px;}
.hebdo-ko-inline-body>div:first-child strong{font-size:24px;color:#355e22;line-height:1;}
.hebdo-ko-inline-opponent{font-size:13px;color:#332d25;}
.hebdo-ko-inline-action-zone{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right;}
.hebdo-ko-inline-action{white-space:nowrap;}
.hebdo-ko-inline-help{opacity:.72;}
/* V308 : chaque manche du duel, avec ses vrais scores (le mien d'abord). */
.hebdo-ko-manches{list-style:none;margin:6px 0 0;padding:0;font-size:13px;line-height:1.5;color:#332d25;}
.hebdo-ko-manches b{color:#1f2b46;}
.hebdo-ko-inline-result{font-size:13px;font-weight:800;text-align:right;}
.hebdo-ko-inline-result.is-win{color:#2f7d54;}
.hebdo-ko-inline-result.is-loss{color:var(--wax-red);}
.hebdo-group-poule-label{margin:6px 0 2px;color:var(--accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.hebdo-ko-game-win.is-game-winner{font-weight:900;}
.hebdo-ko-game-name.is-game-winner{font-weight:900;}
@media(max-width:680px){
  .hebdo-ko-inline-head{align-items:flex-start;flex-direction:column;gap:4px;}
  .hebdo-ko-inline-head b{white-space:normal;text-align:left;}
  .hebdo-ko-inline-body{grid-template-columns:1fr auto;gap:8px;}
  .hebdo-ko-inline-opponent{grid-column:1 / -1;order:3;}
  .hebdo-ko-inline-action-zone{grid-column:2;grid-row:1 / span 2;}
}

/* V305 consolidation — contraste réel des vainqueurs sur les cartes bleues. */
.hebdo-ko-card.c-blue .hebdo-ko-winner-name{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.6);}
.hebdo-ko-card.c-blue .hebdo-ko-winner-score{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.55);}

/* V308 — les cases de manche portent les VRAIS scores (jusqu'à 3 chiffres, parfois négatifs) :
   colonnes élargies, chiffres alignés, gagnant de la manche en rouge gras, perdant en encre. */
.hebdo-ko-game-row{grid-template-columns:86px minmax(0,1fr) 52px 52px minmax(0,1fr);}
.hebdo-ko-game-win{font-size:17px;font-variant-numeric:tabular-nums;color:#3b342b;white-space:nowrap;}
.hebdo-ko-game-win.is-game-winner{color:var(--ref-red);font-weight:900;}
@media(max-width:1100px){.hebdo-ko-game-row{grid-template-columns:64px minmax(0,1fr) 44px 44px minmax(0,1fr);}.hebdo-ko-game-win{font-size:15px;}}
@media(max-width:760px){.hebdo-ko-game-row{grid-template-columns:62px minmax(0,1fr) 44px 44px minmax(0,1fr);}}
@media(max-width:380px){.hebdo-ko-game-row{grid-template-columns:50px minmax(0,1fr) 38px 38px minmax(0,1fr);}.hebdo-ko-game-win{font-size:13px;}}

/* V308 (audit V304 M23) — le bloc « affiche » plus haut imposait 4 colonnes à toutes les
   largeurs, annulant la règle tablette (2 colonnes jusqu'à 1100 px) ; et l'ancienne règle
   « pas de bordure droite toutes les 2 ou 4 cartes » retirait la bordure de cartes qui en ont
   désormais une sur chaque côté. L'export (.hebdo-export) garde ses 4 colonnes. */
@media(max-width:1100px) and (min-width:761px){.hebdo-tableau-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
.hebdo-tableau-grid > .hebdo-group-reference:nth-child(2n),
.hebdo-tableau-grid > .hebdo-group-reference:nth-child(4n){border-right:1px solid #111;}

/* V427 : image des classements de poules, présentation du tableau historique. */
.hebdo-export.hebdo-export-sheet,.hebdo-export-sheet .hebdo-classement-poster{padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
.hebdo-export-sheet table{width:100%!important;min-width:0!important;border-collapse:collapse!important;border-spacing:0!important;border-radius:0!important;box-shadow:none!important}
.hebdo-export-sheet :is(th,td){font:700 14px/1.15 Calibri,Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;border:1px solid #000!important;padding:2px 5px!important;color:#000!important;background:#d9e2f3!important;border-radius:0!important;text-align:center!important}
.hebdo-export-sheet thead th{background:#00b0f0!important;white-space:normal!important}
.hebdo-export-sheet tbody td:first-child{background:#c6e0b4!important}
.hebdo-export-sheet tbody td:nth-child(2){text-align:left!important}
.hebdo-export-sheet .export-participation{color:#0033cc!important}

.hebdo-export-sheet thead .export-monthly{background:#f8cbad!important}
.hebdo-export-sheet tbody .export-monthly{background:#c6e0b4!important;color:#0033cc!important}
/* Affiche de scores : rencontres à gauche, classement et participation à droite. */
.hebdo-score-reference-group{background:#203864;padding:8px;display:grid;grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:20px;align-items:start}
.hebdo-score-reference-group .hebdo-score-poster{border:0;margin:0;background:#fff}
.hebdo-score-reference-group .hebdo-score-header,.hebdo-score-reference-group .hebdo-classement-header{background:#c00000;color:#fff;text-align:center;padding:2px 4px;font:700 16px/1.2 Arial,sans-serif}
.hebdo-score-reference-group .hebdo-score-header .hebdo-tableau-badge,.hebdo-score-reference-group .hebdo-classement-header .hebdo-tableau-badge,.hebdo-score-reference-group .hebdo-score-legend{display:none}
.hebdo-score-reference-group .hebdo-score-player-block{margin-top:16px}
.hebdo-score-reference-group .hebdo-score-name{font:700 13px/1.2 Arial,sans-serif;padding:1px 3px}
.hebdo-score-reference-group .hebdo-score-cell{font:700 18px/1.1 Arial,sans-serif;min-height:23px}
.hebdo-score-reference-group .hebdo-score-cell:not(.empty){background:#c00000!important;color:#fff!important}
.hebdo-score-reference-group .hebdo-classement-poster{padding:0;margin:0;background:transparent;border:0}
.hebdo-score-reference-group .hebdo-classement-header small{font:700 16px/1.2 Arial,sans-serif;background:#203864;margin:0;padding:0}
.hebdo-score-reference-group .hebdo-classement-table{min-width:620px;border-radius:0}
.hebdo-score-reference-group .hebdo-classement-table :is(th,td){font:700 14px/1.2 Arial,sans-serif;padding:2px;border:0}
.hebdo-score-reference-group .hebdo-classement-table th:first-child{min-width:110px}
.hebdo-score-reference-group .hebdo-classement-footer{font:700 19px/1.3 Georgia,serif;padding:14px 4px;color:#e00000;background:#fff}
.hebdo-score-branding{display:flex;align-items:center;justify-content:space-around;gap:20px;padding:24px 8px}
.hebdo-score-branding img{object-fit:contain;width:48%;max-height:250px}.hebdo-score-branding img:last-child{width:35%}
.hebdo-score-download{display:flex;justify-content:flex-end;margin:12px 0 6px}
@media(max-width:900px){.hebdo-score-reference-group{grid-template-columns:minmax(0,1fr)}}
.hebdo-export .hebdo-score-reference-group,.hebdo-export.hebdo-score-reference-group{grid-template-columns:minmax(0,44fr) minmax(0,56fr)}
.hebdo-export .hebdo-score-reference-group .hebdo-classement-table,.hebdo-export.hebdo-score-reference-group .hebdo-classement-table{min-width:0}

.hebdo-score-reference-group .hebdo-score-division{display:block;width:100%;text-align:center;background:#ffff00;color:#0033cc;font-weight:800}

.hebdo-score-reference-group .hebdo-score-meta>span:not(.hebdo-score-division){display:none}
.hebdo-score-branding img:first-child{background:#fff;padding:8px;border-radius:8px}

:is(#hebdo-group-ranking-export,#hebdo-division-ranking).hebdo-export-sheet td:not(.export-monthly):not(.export-participation){color:#000!important}
/* V430 : classement de poules compact, sans la colonne Groupe. */
table.hebdo-pool-compact{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-family:Arial,sans-serif;font-size:13px}
.hebdo-pool-compact :is(th,td){height:30px;min-height:0;padding:4px 6px!important;border:1px solid #273743;box-shadow:none;font-size:13px;line-height:1.25;letter-spacing:0;text-transform:none;text-align:right;font-variant-numeric:tabular-nums}
.hebdo-pool-compact th{white-space:normal!important;font-size:12px;background:#06afd9;color:#0b2637}
.hebdo-pool-compact th button{font:inherit!important;padding:0!important;min-height:0!important;white-space:normal!important}
.hebdo-pool-compact td{background:#d9e2f3;color:#163d49;white-space:nowrap}
.hebdo-pool-compact :is(th,td):first-child{text-align:center}.hebdo-pool-compact td:first-child{background:#c6ddb4}
.hebdo-pool-compact :is(th,td):nth-child(2){text-align:left;white-space:normal!important;overflow-wrap:anywhere}
.hebdo-pool-compact th:last-child{background:#f8ceaf}.hebdo-pool-compact td:last-child{background:#c6ddb4;color:#0039af}
.hebdo-pool-compact td:nth-last-child(2){color:#0039af}
.hebdo-export-sheet table.hebdo-pool-compact :is(th,td){height:30px!important;padding:4px 6px!important;line-height:1.25!important;border:1px solid #273743!important;font:700 13px/1.25 Arial,sans-serif!important}
.hebdo-export-title{background:#06afd9;color:#0b2637;padding:8px 10px;font:700 16px/1.3 Arial,sans-serif;border:1px solid #273743;border-bottom:0}
