/* ============================================
   PAGES CHAMPIONNAT & MATCH — "Sports Media Center"
   ============================================ */

/* ===== VARIABLES ===== */
:root {
  --chp-navy: #021b43;
  --chp-navy-mid: #0a2a5c;
  --chp-navy-light: #143d7a;
  --chp-orange: #ff5801;
  --chp-blue: #16baff;
  --chp-bg: #f4f6f8;
}

/* ============================================
   HERO BANNER (page championnat)
   ============================================ */

/* Hero : bleu éclairci pour ne pas se confondre avec le menu navy (#021b43) */
.chp-hero {
  background: linear-gradient(135deg, #0f3567 0%, #1a5599 50%, #1e6cb5 100%);
  padding: 40px 0 30px;
  position: relative;
  overflow: hidden;
}

/* Motif géométrique subtil */
.chp-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}
.chp-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(22, 186, 255, 0.04);
}

.chp-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.chp-hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--chp-blue);
  background: rgba(22, 186, 255, 0.1);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.chp-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 6px;
}

.chp-hero__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
}

/* Sélecteur catégorie dans le hero */
/* Hero féminin — gradient magenta/rose */
.chp-hero--fem {
  background: linear-gradient(135deg, #5c0230 0%, #9e0550 50%, #c4196e 100%);
}
.chp-hero--fem .chp-hero__badge {
  color: #ff8ec0;
  background: rgba(255, 142, 192, 0.15);
}

.chp-hero__cat {
  max-width: 280px;
  margin: 0 auto;
}

.chp-hero__select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
}
.chp-hero__select option {
  color: #333;
  background: #fff;
}

/* Breadcrumb discret */
.chp-breadcrumb {
  margin-top: 10px;
  margin-bottom: 15px;
}
.chp-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  font-size: 12px;
  margin: 0;
}

/* ============================================
   NAVIGATION JOURNÉES (Pills)
   ============================================ */

.chp-days {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-align: center;
}

.chp-days__phase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.chp-days__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6c757d;
  min-width: 55px;
  text-align: right;
}

.chp-days__list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.chp-days__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--chp-bg);
  color: #6c757d;
  transition: all 0.15s;
}
.chp-days__pill:hover {
  background: var(--chp-navy);
  color: #fff;
}

/* Journée en cours */
.chp-days__pill--active {
  background: var(--chp-orange);
  color: #fff;
}
.chp-days__pill--active:hover {
  background: #e04e00;
}

/* Journée terminée */
.chp-days__pill--done {
  background: var(--chp-navy);
  color: rgba(255,255,255,0.7);
}

/* Journée sélectionnée (au clic AJAX) */
.chp-days__pill--selected {
  background: var(--chp-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(22, 186, 255, 0.4);
}

/* Titre de la journée */
.chp-matchday {
  margin-bottom: 12px;
}
.chp-matchday__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--chp-navy);
  margin: 0;
}

/* ============================================
   LISTE DES MATCHS
   ============================================ */

.chp-matches {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

/* Séparateur de date */
.chp-match-date {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  background: var(--chp-bg);
  padding: 6px 16px;
  border-bottom: 1px solid #e9ecef;
}

/* Ligne de match */
.chp-match {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.chp-match:hover {
  background: #f8fbff;
}

/* Heure du match */
.chp-match__time {
  flex: 0 0 50px;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Équipe */
.chp-match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.chp-match__team--home {
  justify-content: flex-end;
  text-align: right;
}
.chp-match__team--away {
  justify-content: flex-start;
  text-align: left;
}

.chp-match__name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--chp-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chp-match__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.chp-match__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Score */
.chp-match__score {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 4px;
}

.chp-match__pts {
  font-size: 18px;
  font-weight: 800;
  color: var(--chp-navy);
}
.chp-match__sep {
  font-size: 14px;
  color: #adb5bd;
  margin: 0 3px;
}
.chp-match__vs {
  font-size: 11px;
  font-weight: 800;
  background: var(--chp-orange);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.chp-match__hour {
  font-size: 10px;
  color: #6c757d;
  font-weight: 600;
}
.chp-match__report {
  font-size: 11px;
  font-weight: 700;
  color: var(--chp-orange);
  text-transform: uppercase;
}

/* Score en ligne */
.chp-match__score {
  flex-direction: row;
  gap: 0;
}

/* Lien détail + bouton score */
.chp-match__action {
  flex: 0 0 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.chp-match__link {
  color: #adb5bd;
  font-size: 14px;
  transition: color 0.15s;
}
.chp-match__link:hover {
  color: var(--chp-orange);
}

/* Bouton crayon pour modifier le score (visible si connecté) */
.chp-match__score-btn {
  background: none;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #6c757d;
  font-size: 11px;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.chp-match__score-btn:hover {
  background: var(--chp-orange);
  border-color: var(--chp-orange);
  color: #fff;
}

/* ===== VARIANTE FÉMININ ===== */

/* La bannière de matchs féminins a un accent rose/magenta */
.chp-matches--fem .chp-match-date {
  background: #fdf0f5;
  border-left: 3px solid #b7035b;
}
.chp-matches--fem .chp-match__vs {
  background: #b7035b;
}
.chp-matches--fem .chp-match:hover {
  background: #fdf0f5;
}
.chp-matches--fem .chp-match__pts {
  color: #b7035b;
}

/* ============================================
   CLASSEMENT (sidebar)
   ============================================ */

.chp-standing {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px;
}

.chp-standing__header {
  background: var(--chp-navy);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chp-standing__header h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}
.chp-standing__header small {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  display: block;
}

.chp-standing__btns {
  display: flex;
  gap: 4px;
}

.chp-standing__btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: none;
  color: rgba(255,255,255,0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.chp-standing__btn--active {
  background: var(--chp-orange);
  border-color: var(--chp-orange);
  color: #fff;
}

.chp-standing__table {
  font-size: 12px;
  margin: 0;
}
.chp-standing__table thead th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  border-bottom: 2px solid #e9ecef;
  padding: 8px 6px;
  text-align: center;
}
/* La colonne Équipe alignée à gauche */
.chp-standing__table thead th:nth-child(2) {
  text-align: left;
}
.chp-standing__table tbody td {
  padding: 6px;
  vertical-align: middle;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
/* Colonne Équipe toujours alignée à gauche */
.chp-standing__table tbody td:nth-child(2) {
  text-align: left;
}

.chp-standing__pos {
  font-weight: 800;
  color: var(--chp-navy);
  width: 30px;
}
.chp-standing__team {
  text-align: left !important;
  font-weight: 700;
  color: var(--chp-navy);
}
.chp-standing__pts {
  font-weight: 800;
  color: var(--chp-orange);
}

.chp-standing__club-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: middle;
}

.chp-standing__legend {
  padding: 8px 12px;
  font-size: 10px;
  color: #adb5bd;
  border-top: 1px solid #f0f0f0;
}

/* Pools */
.chp-pools .nav-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--chp-navy);
}
.chp-pools .nav-link.active {
  background: var(--chp-navy);
  color: #fff;
}

/* ============================================
   PAGE MATCH — HERO SCORECARD
   ============================================ */

/* ============================================
   PAGE MATCH — HERO STYLE WNBA
   Logos des clubs en fond, score gros centré
   ============================================ */

.gm-hero {
  background: #0d1b2a;
  padding: 25px 0;
  position: relative;
  overflow: hidden;
}
.gm-hero--fem { background: #2a0d1b; }

/* Logos géants en arrière-plan — gris, 50% opacité */
.gm-hero__bg-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 350px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  filter: grayscale(100%) brightness(0.3);
  z-index: 1;
}
.gm-hero__bg-logo--home { left: -20px; }
.gm-hero__bg-logo--away { right: -20px; }

/* Overlay gradient bleu pour lisibilité — laisse voir les logos sur les côtés */
.gm-hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    rgba(15, 53, 103, 0.3) 0%,
    rgba(15, 53, 103, 0.75) 25%,
    rgba(26, 85, 153, 0.9) 50%,
    rgba(15, 53, 103, 0.75) 75%,
    rgba(15, 53, 103, 0.3) 100%
  );
  z-index: 2;
}
.gm-hero--fem .gm-hero__overlay {
  background: linear-gradient(90deg,
    rgba(92, 2, 48, 0.3) 0%,
    rgba(92, 2, 48, 0.75) 25%,
    rgba(158, 5, 80, 0.9) 50%,
    rgba(92, 2, 48, 0.75) 75%,
    rgba(92, 2, 48, 0.3) 100%
  );
}

/* Haut du hero : championnat + journée */
.gm-hero__top {
  text-align: center;
  margin-bottom: 15px;
}
.gm-hero__champ {
  font-size: 12px;
  font-weight: 700;
  color: #16baff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gm-hero__phase {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
}

/* Scorecard : logo — GROS SCORE — logo */
.gm-scorecard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.gm-scorecard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 130px;
}
.gm-scorecard__logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.gm-scorecard__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.gm-scorecard__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 140px;
}
.gm-scorecard__result {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gm-scorecard__pts {
  font-family: 'Montserrat', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.gm-scorecard__sep {
  font-size: 28px;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}
.gm-scorecard__vs {
  font-size: 28px;
  font-weight: 900;
  color: #ff5801;
}
.gm-scorecard__label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.gm-scorecard__report {
  font-size: 18px;
  font-weight: 700;
  color: #ff5801;
}

/* Bas du hero : date + lieu */
.gm-hero__bottom {
  text-align: center;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.gm-hero__bottom span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: capitalize;
}
.gm-hero__bottom i { color: #ff5801; margin-right: 3px; }

.gm-hero__meta {
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.gm-hero__meta span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scorecard */
.gm-scorecard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

.gm-scorecard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 140px;
}

.gm-scorecard__logo {
  width: 70px;
  height: 70px;
}
.gm-scorecard__logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gm-scorecard__name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

/* Score central */
.gm-scorecard__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 120px;
}
.gm-scorecard__result {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gm-scorecard__pts {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.gm-scorecard__sep {
  font-size: 24px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.gm-scorecard__vs {
  font-size: 24px;
  font-weight: 900;
  color: var(--chp-orange);
}
.gm-scorecard__final,
.gm-scorecard__kickoff {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.gm-scorecard__report {
  font-size: 18px;
  font-weight: 700;
  color: var(--chp-orange);
}

/* Bouton retour au championnat */
.gm-btn-back {
  display: inline-block;
  padding: 10px 25px;
  background: var(--chp-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.15s;
}
.gm-btn-back:hover {
  background: var(--chp-orange);
  color: #fff;
}
.gm-btn-back i { margin-right: 6px; }

/* ============================================
   CARDS (Arbitres, OTM)
   ============================================ */

.gm-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 15px;
}
.gm-card__header {
  background: var(--chp-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gm-card__header i {
  color: var(--chp-orange);
  margin-right: 6px;
}
.gm-card__body {
  padding: 10px 14px;
}
.gm-card__item {
  font-size: 13px;
  font-weight: 600;
  color: var(--chp-navy);
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}
.gm-card__item:last-child {
  border-bottom: none;
}
.gm-card__item small {
  display: block;
  font-size: 10px;
  color: #6c757d;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gm-card__item--empty {
  color: #adb5bd;
  font-weight: 400;
}

/* ============================================
   EFFECTIFS
   ============================================ */

.gm-rosters__title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--chp-navy);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--chp-orange);
}

.gm-roster {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.gm-roster__header {
  background: var(--chp-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: center;
}
.gm-roster__table {
  font-size: 13px;
  margin: 0;
}
.gm-roster__table thead th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  padding: 8px 6px;
}
.gm-roster__table tbody td {
  padding: 6px;
  vertical-align: middle;
}
.gm-roster__img {
  width: 36px;
}
.gm-roster__img img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

/* Partage */
.gm-share h5 {
  font-size: 14px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.gm-share__btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.gm-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: transform 0.15s, opacity 0.15s;
}
.gm-share__btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
  color: #fff;
}
.gm-share__btn--fb { background: #1877f2; }
.gm-share__btn--tw { background: #1da1f2; }
.gm-share__btn--wa { background: #25d366; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
  .chp-hero {
    padding: 25px 0 20px;
  }
  .chp-hero__title {
    font-size: 20px;
  }
  .chp-hero__sub {
    font-size: 12px;
  }

  .chp-match__name {
    font-size: 11px;
  }
  .chp-match__logo {
    width: 26px;
    height: 26px;
  }
  .chp-match__logo img {
    width: 26px;
    height: 26px;
  }
  .chp-match__pts {
    font-size: 15px;
  }

  .chp-standing {
    position: static;
    margin-top: 20px;
  }

  /* Hero match mobile */
  .gm-hero__bg-logo { width: 180px; height: 180px; opacity: 0.08; }
  .gm-scorecard__pts { font-size: 36px; }
  .gm-scorecard__logo { width: 50px; height: 50px; }
  .gm-scorecard__name { font-size: 12px; }
  .gm-scorecard__team { flex: 0 0 90px; }
  .gm-scorecard__center { flex: 0 0 100px; }
}
