/* ══════════════════════════════════════════════════════════
   Widget Classement — [its_classement] + embed iframe
   Charte It's : angles droits (JAMAIS de border-radius), teal dominant,
   g-bright / vanilla en accents, Noto Sans.
   Parti pris : pas de filets de tableau — la structure vient des blocs
   de couleur, du contraste typographique et de l'espace. Stats secondaires
   (J/G/N/P/BP/BC) atténuées pour laisser respirer équipe / points / diff.
   Tout est scopé sous .itsclt.
══════════════════════════════════════════════════════════ */

.itsclt {
  --itsclt-teal: #1C3D34;
  --itsclt-teal-dk: #142B25;
  --itsclt-vanilla: #F2E5D2;
  --itsclt-green: #8ED968;
  --itsclt-green-tx: #2F7D3A;
  --itsclt-red: #C0392B;
  --itsclt-ink: #22322D;
  --itsclt-sec: #9B9382;      /* stats secondaires, atténuées */
  --itsclt-zebra: rgba(242, 229, 210, .30);
  --itsclt-hover: rgba(171, 200, 162, .20);
  --itsclt-lead: rgba(142, 217, 104, .12);
  font-family: 'Noto Sans', system-ui, sans-serif;
  color: var(--itsclt-ink);
  background: #fff;              /* bloc blanc complet (classement ET bracket) */
  line-height: 1.35;
  box-sizing: border-box;
}
.itsclt *,
.itsclt *::before,
.itsclt *::after { box-sizing: inherit; }

/* En-tête embed (page iframe) */
.itsclt-head {
  background: var(--itsclt-teal);
  padding: 14px 16px;
  border-bottom: 3px solid var(--itsclt-green);
}
/* Sélecteurs qualifiés pour battre .entry-content h2 / a du thème. */
.itsclt .itsclt-head .itsclt-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  color: var(--itsclt-vanilla);
  text-transform: uppercase;
}
.itsclt .itsclt-head .itsclt-title-link { color: var(--itsclt-vanilla); text-decoration: none; }
.itsclt .itsclt-head .itsclt-title-link:hover,
.itsclt .itsclt-head .itsclt-title-link:focus { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--itsclt-green); text-decoration-thickness: 2px; }

/* Bloc = une poule (bandeau + table) */
.itsclt-block { margin-bottom: 16px; background: #fff; }
.itsclt-block:last-of-type { margin-bottom: 0; }

/* Sections Classement / Phases finales — onglets soulignés (comme les pages compét) */
.itsclt-sectabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  padding: 0 12px;
  margin-bottom: 10px;          /* petite marge entre les onglets et le tableau */
  background: #fff;
  border-bottom: 1px solid #E6DDCD;
}
.itsclt-sectab {
  flex: 0 1 auto;
  padding: 13px 6px 11px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--itsclt-sec);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.itsclt-sectab:hover { color: var(--itsclt-teal); }
.itsclt-sectab:focus-visible { outline: 2px solid var(--itsclt-teal); outline-offset: 2px; }
.itsclt-sectab.is-on { color: var(--itsclt-teal); border-bottom-color: var(--itsclt-teal); }
.itsclt-section[hidden] { display: none; }

/* Sélecteur de poule — menu déroulant (comme les pages compét), passe à
   l'échelle N poules. Style aligné sur .if-dd du site, mais autonome (iframe). */
.itsclt-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fff;
}
.itsclt-filter-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--itsclt-sec);
}
.itsclt-dd { position: relative; }
.itsclt-dd-btn {
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--itsclt-teal);
  background: var(--itsclt-teal);
  color: var(--itsclt-vanilla);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.itsclt-dd-btn:hover,
.itsclt-dd-btn[aria-expanded="true"] { background: var(--itsclt-teal-dk); border-color: var(--itsclt-teal-dk); }
.itsclt-dd-val { color: var(--itsclt-vanilla); }
.itsclt-dd-arr { font-size: 9px; color: var(--itsclt-vanilla); }
.itsclt-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #C4C4C4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.itsclt-dd-menu.is-open { display: block; }
.itsclt-dd-opt {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--itsclt-teal);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px solid rgba(196, 196, 196, .25);
}
.itsclt-dd-opt:last-child { border-bottom: none; }
.itsclt-dd-opt:hover,
.itsclt-dd-opt:focus-visible { background: var(--itsclt-hover); outline: none; }
.itsclt-dd-opt.is-on { font-weight: 800; background: rgba(142, 217, 104, .14); }
.itsclt-dd-opt.is-on::after { content: " \2713"; color: var(--itsclt-green-tx); }
.itsclt-panel[hidden] { display: none; }

/* Table — aucune bordure de cellule */
.itsclt-scroll { width: 100%; overflow-x: auto; }
.itsclt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
/* Le thème colle margin: 20px 0 24px aux <table> du contenu → on l'annule. */
.itsclt .itsclt-scroll .itsclt-table { margin: 0; }

/* En-têtes de colonnes */
.itsclt-table thead th {
  padding: 10px 8px;
  background: var(--itsclt-teal);
  color: var(--itsclt-vanilla);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  border: none;
}
.itsclt-table thead th.itsclt-c-rank,
.itsclt-table thead th.itsclt-c-team { text-align: left; }
.itsclt-table thead th.itsclt-sec { color: rgba(242, 229, 210, .62); font-weight: 700; }

/* Lignes — zébra chaud, zéro filet */
.itsclt-table tbody td {
  padding: 11px 8px;
  text-align: center;
  border: none;
  white-space: nowrap;
  vertical-align: middle;
}
.itsclt-table tbody tr:nth-child(even) td { background: var(--itsclt-zebra); }
.itsclt-table tbody tr:hover td { background: var(--itsclt-hover); }
.itsclt-table tbody tr.itsclt-top td { background: var(--itsclt-lead); }
.itsclt-table tbody tr.itsclt-top td:first-child { box-shadow: inset 3px 0 0 var(--itsclt-green); }

/* Rang */
.itsclt-table td.itsclt-c-rank { width: 30px; text-align: left; }
.itsclt-rank {
  display: inline-block;
  min-width: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--itsclt-sec);
  text-align: center;
}
.itsclt-top .itsclt-rank { color: var(--itsclt-teal); font-weight: 900; }

/* Équipe — l'élément fort */
.itsclt-table td.itsclt-c-team {
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  color: var(--itsclt-teal);
  white-space: normal;
}
.itsclt .itsclt-c-team .itsclt-link { color: var(--itsclt-teal); text-decoration: none; border: none; }
.itsclt .itsclt-c-team .itsclt-link:hover,
.itsclt .itsclt-c-team .itsclt-link:focus { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--itsclt-green); text-decoration-thickness: 2px; }

/* Points de classement — 2e élément fort */
.itsclt-table td.itsclt-c-pts { font-size: 15px; font-weight: 900; color: var(--itsclt-teal); }

/* Stats secondaires — atténuées */
.itsclt-table td.itsclt-sec { font-size: 12px; font-weight: 500; color: var(--itsclt-sec); }

/* Diff — coloré, avec flèche */
.itsclt-table td.itsclt-c-diff { font-size: 13px; font-weight: 800; }
.itsclt-c-diff.itsclt-diff-pos { color: var(--itsclt-green-tx); }
.itsclt-c-diff.itsclt-diff-neg { color: var(--itsclt-red); }
.itsclt-c-diff.itsclt-diff-zero { color: var(--itsclt-sec); }
.itsclt-arrow { font-size: 8px; margin-right: 3px; vertical-align: 1px; }

/* Ligne meta sous le titre : journée + mise à jour (repère « live » carré) */
.itsclt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(242, 229, 210, .72);
}
.itsclt-sep { opacity: .5; }
.itsclt-dot {
  width: 7px; height: 7px;
  margin-right: 6px;
  background: var(--itsclt-green);
  display: inline-block;
  vertical-align: middle;
  animation: itsclt-pulse 2s ease-in-out infinite;
}
@keyframes itsclt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .itsclt-dot { animation: none; } }

.itsclt-empty { padding: 26px 16px; text-align: center; font-size: 13px; color: var(--itsclt-sec); }

/* Crédit (embed iframe) */
.itsclt-credit { padding: 11px 14px; text-align: right; }
.itsclt-credit-link { font-size: 12px; font-weight: 700; color: var(--itsclt-teal); text-decoration: none; }
.itsclt-credit-link:hover { text-decoration: underline; }

/* ══ Bracket / phases finales ══ */
.itsclt-ko-scroll { width: 100%; overflow-x: auto; padding: 14px 0; }
.itsclt-ko { display: flex; gap: 12px; align-items: flex-start; padding: 0 12px; }
/* Les colonnes s'étirent pour remplir la largeur (fit sans scroll pour ≤4 tours
   dans la colonne article ~744px) ; scroll seulement pour les gros brackets. */
.itsclt-ko-round { flex: 1 1 150px; min-width: 150px; max-width: 280px; }
.itsclt-ko-round-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--itsclt-vanilla);
  background: var(--itsclt-teal);
  padding: 7px 12px;
  border-left: 3px solid var(--itsclt-green);
}
.itsclt-ko-match {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #E6DDCD;
  border-left: 3px solid var(--itsclt-teal);
}
.itsclt-ko-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}
.itsclt-ko-row + .itsclt-ko-row { border-top: 1px solid rgba(196, 196, 196, .25); }
.itsclt-ko-row.win { background: rgba(142, 217, 104, .12); }
.itsclt-ko-name { font-size: 13px; color: var(--itsclt-ink); }
.itsclt-ko-name.w { font-weight: 800; color: var(--itsclt-teal); }
.itsclt .itsclt-ko-name .itsclt-link { color: inherit; font-weight: inherit; text-decoration: none; }
.itsclt .itsclt-ko-name .itsclt-link:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--itsclt-green); }
.itsclt-ko-score { min-width: 22px; text-align: center; font-size: 15px; font-weight: 900; color: var(--itsclt-teal); }
.itsclt-ko-score.up { color: var(--itsclt-sec); font-weight: 700; }
@media (max-width: 560px) {
  .itsclt-ko { flex-direction: column; gap: 14px; min-width: 0; }
  .itsclt-ko-round { min-width: 0; max-width: none; width: 100%; }
}

/* ── Embed : page nue en iframe ── */
body.itsclt-embed { margin: 0; padding: 0; background: transparent; }

/* Mobile */
@media (max-width: 480px) {
  .itsclt-table { font-size: 12px; }
  .itsclt-table thead th { font-size: 8px; letter-spacing: .06em; }
  .itsclt-table thead th,
  .itsclt-table tbody td { padding: 10px 5px; }
  .itsclt-table td.itsclt-c-team { font-size: 13px; }
  .itsclt-table td.itsclt-c-pts { font-size: 14px; }
}
