/* Calendrier, poules et rapports de match — Mobile-First */

.pool-A { background: #eadcf7; border-left-color: #9861c4; }
.pool-B { background: #d8f0e9; border-left-color: #269b7b; }
.pool-C { background: #f9dce5; border-left-color: #d35d84; }
.pool-D { background: #dceafa; border-left-color: #4b87cb; }
.pool-E { background: #faedcf; border-left-color: #d49a2f; }
.pool-F { background: #e3efd9; border-left-color: #73a24d; }
.pool-unknown { background: #eeece7; border-left-color: #9a9488; }

.stage-r16 { background: #d9eee9; border-left-color: #289b83; }
.stage-quarter { background: #fbe0d2; border-left-color: #d87945; }
.stage-semi { background: #e2e5eb; border-left-color: #78869a; }
.stage-bronze { background: #eee3d1; border-left-color: #b18a50; }
.stage-final { background: #faedb9; border-left-color: #c69a21; }

.circ {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* Hero */
.matches-hero,
.match-report-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  padding: 20px 16px;
  border-radius: 10px;
  background: linear-gradient(112deg, #101b2c 0%, #1c3550 68%, #24445a 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 27, 44, 0.14);
}

.matches-hero::after,
.match-report-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.05), 0 0 0 52px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.matches-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.matches-kicker,
.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f6d64a;
  text-transform: uppercase;
}

.matches-hero h1,
.match-report-hero h1 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(26px, 7vw, 48px);
  line-height: 1.08;
}

.matches-hero h1 em,
.match-report-hero h1 em {
  color: #f15a24;
  font-style: normal;
}

.matches-hero p {
  max-width: 610px;
  margin: 0;
  color: #d5dfe8;
  font-size: 14px;
  line-height: 1.55;
}

.matches-hero-mark {
  position: absolute;
  right: 5%;
  top: 12%;
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -6px;
  pointer-events: none;
}

.matches-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.matches-hero-stats span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef4;
  font-size: 12px;
  font-weight: 600;
}

.matches-hero-stats span a {
  color: #ffffff;
}

.matches-hero-stats b {
  color: #f6d64a;
  font-size: 15px;
  margin-right: 4px;
}

.matches-hero-stats .joker-indicator {
  border-color: rgba(246, 214, 74, 0.45);
}

/* Sélecteur de dates & liste des matchs */
.date-selector,
.matches-list {
  margin: 22px 0;
}

.date-selector-heading,
.matches-list-heading,
.report-table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.date-selector-heading h2,
.matches-list-heading h2,
.report-table-heading h2 {
  margin: 4px 0 0;
  color: #101b2c;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.date-selector-heading .section-kicker,
.matches-list-heading .section-kicker,
.report-table-heading .section-kicker {
  color: #c64b25;
}

.all-dates {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d6dce2;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #24364b;
}

.all-dates.active {
  background: #101b2c;
  color: #fff;
  border-color: #101b2c;
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}

.date-chip {
  flex: 0 0 88px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border: 1px solid #dce1e6;
  border-bottom: 4px solid #dce1e6;
  border-radius: 8px;
  background: #fff;
  color: #17283d;
  text-decoration: none;
  scroll-snap-align: start;
}

.date-chip small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #6c7988;
  text-transform: uppercase;
}

.date-chip strong {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.date-chip span {
  font-size: 11px;
  color: #6c7988;
  font-weight: 600;
}

.date-chip.active {
  background: #f15a24;
  border-color: #f15a24;
  border-bottom-color: #101b2c;
  color: #101b2c;
}

.date-chip.active small,
.date-chip.active span {
  color: #101b2c;
}

.date-chip-pending {
  border-style: dashed;
  background: #f5f6f7;
  color: #7b8795;
  cursor: default;
}

.match-count {
  padding: 6px 10px;
  background: #e9edf0;
  border-radius: 6px;
  color: #4b5a6b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Grille des matchs : 1 colonne sur mobile, 2 colonnes dès 768px */
.matches-grid,
.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

/* Carte de match */
.fixture-card {
  margin: 0;
  padding: 14px;
  border: 1px solid #e0e4e8;
  border-left: 4px solid #28b8b2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 27, 44, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fixture-card.pool-A { background: #eadcf7; border-left-color: #9861c4; }
.fixture-card.pool-B { background: #d8f0e9; border-left-color: #269b7b; }
.fixture-card.pool-C { background: #f9dce5; border-left-color: #d35d84; }
.fixture-card.pool-D { background: #dceafa; border-left-color: #4b87cb; }
.fixture-card.pool-E { background: #faedcf; border-left-color: #d49a2f; }
.fixture-card.pool-F { background: #e3efd9; border-left-color: #73a24d; }
.fixture-card.pool-unknown { background: #eeece7; border-left-color: #9a9488; }
.fixture-card.is-finished { border-left-color: #f15a24; }

.fixture-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #5b6878;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.fixture-meta i {
  color: #f15a24;
  font-style: normal;
  padding: 0 4px;
}

/* Zone équipes + score/saisie : pile verticale lisible sur mobile */
/* Tablette & Desktop (>= 768px) */
@media (max-width: 767px) {
  .fixture-main {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 768px) {
  .fixture-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}
.fixture-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #13243a;
}

.fixture-team strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.mpr-team-flag {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  font-size: 20px;
}

.fixture-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*padding: 8px 10px;*/
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.fixture-score > strong {
  display: block;
  color: #101b2c;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.fixture-score > strong i {
  color: #f15a24;
  font-style: normal;
  padding: 0 6px;
}

.fixture-score .versus {
  font-size: 16px;
  color: #6c7988;
}

.fixture-score small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #5b6878;
  text-transform: uppercase;
}

.fixture-score .status-finished { color: #c64b25; }
.fixture-score .status-live { color: #169b79; }

/* Saisie rapide du prono */
.quick-prediction {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quick-scores input[type="number"] {
  /*width: 64px;
  min-height: 44px;*/
  margin: 0;
  padding: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #101b2c;
  background: #fff;
  border: 1px solid #cbd3dc;
  border-radius: 8px;
}

.quick-scores > span {
  font-size: 13px;
  font-weight: 800;
  color: #6c7988;
}

.quick-prediction-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 27, 44, 0.08);
}

.joker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0px 12px;
  border: 1px solid #e4c678;
  border-radius: 8px;
  background: #fff9e9;
  color: #7c5c12;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.joker-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.quick-prediction .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}

/* Bas de carte (terminé / verrouillé) */
.fixture-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 27, 44, 0.08);
}

.my-prediction {
  font-size: 12px;
  color: #4b5a6b;
}

.my-prediction b {
  color: #14243a;
}

.earned-points {
  display: inline-block;
  margin-left: 6px;
  color: #c64b25;
  font-size: 13px;
  font-weight: 800;
}

.fixture-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  font-weight: 800;
  color: #bd431e;
  text-decoration: none;
}

.fixture-link span {
  margin-left: 4px;
}

.fixture-locked {
  padding-top: 10px;
  border-top: 1px solid rgba(16, 27, 44, 0.08);
  color: #5b6878;
  font-size: 12px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empty-state,
.pool-empty {
  padding: 24px 16px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d7dfe6;
  border-radius: 8px;
  color: #5b6878;
}

/* Tableaux / rapports de match */
.pool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pool-card {
  overflow: hidden;
  border: 1px solid #dce2e7;
  border-radius: 8px;
  background: #fff;
}

.pool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #101b2c;
  color: #fff;
  border-bottom: 4px solid #f15a24;
}

.pool-card-head h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.pool-table-scroll,
.report-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pool-table,
.pool-tablem {
  min-width: 480px;
  width: 100%;
  border-collapse: collapse;
}

.pool-table th,
.pool-tablem th {
  padding: 10px 8px;
  background: #f3f5f6;
  color: #5b6878;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.pool-table td,
.pool-tablem td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf0f2;
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
}

.match-report-hero {
  padding: 20px 16px 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 16px;
  color: #f6d64a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.report-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 18px auto 12px;
  max-width: 850px;
}

.report-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: #fff;
  font-size: 13px;
}

.report-flag {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 26px;
}

.report-score {
  text-align: center;
}

.report-score strong {
  display: block;
  color: #fff;
  font-size: clamp(28px, 7vw, 50px);
  font-weight: 900;
  white-space: nowrap;
}

.report-score strong i {
  color: #f15a24;
  font-style: normal;
}

.report-score small {
  display: block;
  margin-top: 4px;
  color: #f6d64a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.report-meta {
  text-align: center;
  color: #cbd5df;
  font-size: 12px;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.report-summary article {
  padding: 12px;
  background: #fff;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
}

.report-summary small {
  display: block;
  color: #5b6878;
  font-size: 10px;
  font-weight: 800;
}

.report-summary strong {
  display: block;
  margin-top: 4px;
  color: #101b2c;
  font-size: 20px;
  font-weight: 900;
}

.report-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.report-table th {
  padding: 11px 12px;
  background: #101b2c;
  color: #dbe4ed;
  font-size: 11px;
  font-weight: 800;
}

.report-table td {
  padding: 12px;
  border-bottom: 1px solid #edf0f2;
  font-size: 14px;
  white-space: nowrap;
}

/* Tablette & Desktop (>= 768px) */
@media (min-width: 768px) {
  .matches-hero,
  .match-report-hero {
    margin-bottom: 28px;
    padding: 28px 32px;
    border-radius: 12px;
  }

  .matches-grid,
  .deux-colonnes,
  .pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .fixture-card {
    padding: 8px 10px;
  }

  .fixture-meta {
    flex-direction: row;
    justify-content: space-between;
    font-size: 10px;
  }

  .fixture-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .home-team {
    justify-content: flex-end;
    text-align: right;
  }

  .away-team {
    justify-content: flex-start;
    text-align: left;
  }

  .fixture-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .report-scoreboard {
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 16px;
  }
}
/* Poules — Mobile-First */
.pool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.pool-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce2e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 17px rgba(16, 27, 44, 0.06);
}

.pool-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pool-card-headm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #5a5d61;
  color: #fff;
  border-bottom: 3px solid #f15a24;
}

.pool-card-headm span {
  color: #f6d64a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.pool-table th:nth-child(2),
.pool-table td:nth-child(2) {
  text-align: left;
}

.pool-table .pool-qualified {
  background: #eaf7f4;
}

.pool-table .pool-qualified td:first-child {
  border-left: 3px solid #28b8b2;
}

.pool-card-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: #f7f8f8;
  color: #4b5a6b;
  font-size: 11px;
}

.pool-card-foot small {
  color: #6c7988;
}

.qualified-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #28b8b2;
}

.pool-fixtures-list {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid #edf0f2;
}

.pool-fixture-item {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pool-fixture-item:last-child {
  border-bottom: 0;
}

.pool-fixture-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #13243a;
}

.pool-vs {
  font-size: 11px;
  font-weight: 800;
  color: #7b8795;
  flex-shrink: 0;
}

.pool-fixture-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 12px;
  color: #4b5a6b;
}

.pool-pts {
  color: #c64b25;
  font-weight: 800;
}

.pool-pred-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pool-pred-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pool-pred-inputs input[type="number"] {
 /* width: 54px;
  min-height: 40px;*/
  margin: 0;
  padding: 4px;
  text-align: center;
  /*font-size: 16px;
  font-weight: 800;*/
  border: 1px solid #cbd3dc;
  border-radius: 6px;
}

.pool-pred-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .pool-card-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.pool-joker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin: 0;
    padding: 0px 6px;
    border: 1px solid #e4c678;
    border-radius: 8px;
    background: #fff9e9;
    color: #7c5c12;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.pool-btn.small {
    min-height: 18px;
    padding: 8px 13px;
    font-size: 12px;
}
    .best-thirds-section {
        --navy: #0b1221;
        --terra: #d85a2a;
        --terra-soft: #fdf2ec;
        --mint: #d9f7e3;
        --mint-border: #9be4b7;
        --mint-ink: #0f4c2c;
        --line: #d8e2dd;

        margin-top: 16px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px 18px;
        box-shadow: 0 3px 12px rgba(11, 18, 33, 0.05);
    }

    .best-thirds-head {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1.5px solid var(--line);
    }

    .best-thirds-head h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 900;
        color: var(--navy);
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .best-thirds-head span {
        font-size: 12px;
        font-weight: 700;
        color: #55655e;
    }

    .best-thirds-table-wrap {
        overflow-x: auto;
    }

    .best-thirds-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .best-thirds-table th {
        text-align: left;
        padding: 8px 10px;
        background: var(--navy);
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .best-thirds-table th.num,
    .best-thirds-table td.num {
        text-align: right;
    }

    .best-thirds-table th.center,
    .best-thirds-table td.center {
        text-align: center;
    }

    .best-thirds-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #e8efec;
        color: var(--navy);
        font-weight: 700;
    }

    .best-thirds-table tr.is-qualified td {
        background: var(--mint);
    }

    .best-thirds-badge {
        display: inline-block;
        padding: 2px 7px;
        border-radius: 999px;
        font-size: 10.5px;
        font-weight: 800;
        background: var(--terra-soft);
        color: #b5451b;
        border: 1px solid rgba(216, 90, 42, 0.25);
    }

    .best-thirds-status {
        font-size: 11px;
        font-weight: 800;
        padding: 2px 8px;
        border-radius: 999px;
    }

    .best-thirds-status--ok {
        background: #ffffff;
        color: var(--mint-ink);
        border: 1px solid var(--mint-border);
    }

    .best-thirds-status--out {
        background: #f3f7f5;
        color: #5c6c65;
    }
    .fixture-tries-line {
        margin-top: 6px;
        padding: 5px 10px;
        border-radius: 7px;
        background: #f6f9f8;
        border: 1px solid #e1eae5;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 11.5px;
        font-weight: 800;
        color: #0b1221;
    }
    .fixture-tries-side {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .fixture-bo-tag {
        padding: 1px 6px;
        border-radius: 999px;
        background: #d9f7e3;
        color: #0f4c2c;
        border: 1px solid #9be4b7;
        font-size: 10px;
        font-weight: 900;
    }
    .fixture-tries-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #586861;
    }

