/* MATCHCUP 26 — v2 couleurs · logo · cadres · navigation */

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --wc26-black: #0a0a0f;
  --wc26-white: #faf8f5;
  --wc26-blue: #0052cc;
  --wc26-red: #e11d2e;
  --wc26-green: #00b35c;
  --wc26-gold: #d4a82a;
  --wc26-silver: #c5cad3;
  --wc26-bg: #eef1f6;
  --wc26-ink: #0f172a;
  --wc26-card-solid: #ffffff;
  --wc26-muted: #64748b;
  --wc26-border: #e2e8f0;
  --wc26-border-strong: #cbd5e1;
  --wc26-gradient-hosts: linear-gradient(
    90deg,
    #e11d2e 0%,
    #00b35c 42%,
    #0052cc 85%,
    #e11d2e 100%
  );
  --wc26-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --wc26-shadow-md: 0 10px 32px rgba(15, 23, 42, 0.09);
  --wc26-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --wc26-radius: 22px;
  --wc26-radius-sm: 14px;
}

/* Neutralise conflits style.css */
body.matchcup26 {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wc26-ink);
  background-color: var(--wc26-bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(243, 240, 234, 0.95) 100%),
    url("../brand/worldcup26/wc26-pattern.svg");
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.matchcup26 .container {
  max-width: 980px;
  padding: 1.5rem 1rem 2.5rem;
}

/* ═══ HEADER & NAVIGATION ═══ */
body.matchcup26 .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wc26-black);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-bottom: none;
}

body.matchcup26 .nav-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

body.matchcup26 .navbar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
  padding: 0;
}

body.matchcup26 .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

body.matchcup26 .nav-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
}

body.matchcup26 .nav-brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

body.matchcup26 .nav-brand-title {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--wc26-white);
  text-transform: uppercase;
}

body.matchcup26 .nav-brand-accent {
  color: var(--wc26-gold);
}

body.matchcup26 .nav-brand-year {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--wc26-silver);
  margin-top: 3px;
}

body.matchcup26 .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

body.matchcup26 .nav-links::-webkit-scrollbar {
  display: none;
}

body.matchcup26 .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Liens nav — écrase style.css */
body.matchcup26 .nav-links a,
body.matchcup26 .nav-actions a.nav-item,
body.matchcup26 .nav-item {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 999px;
  border-bottom: none;
  background: transparent;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

body.matchcup26 .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

body.matchcup26 .nav-item.active {
  color: #fff;
  background: var(--wc26-blue);
  box-shadow: 0 4px 16px rgba(0, 70, 173, 0.35);
}

body.matchcup26 .nav-item-cdm {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.matchcup26 .nav-item-cdm:hover,
body.matchcup26 .nav-item-cdm.active {
  background: var(--wc26-gradient-hosts);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(215, 25, 32, 0.3);
}

body.matchcup26 .nav-item-wallet.active {
  background: rgba(201, 162, 39, 0.25);
  color: var(--wc26-gold);
}

body.matchcup26 .nav-user {
  font-size: 11px;
  font-weight: 700;
  color: var(--wc26-gold);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.matchcup26 .nav-logout {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 8px;
}

body.matchcup26 .nav-logout:hover {
  color: var(--wc26-red);
}

body.matchcup26 .wc26-host-strip {
  height: 4px;
  background: var(--wc26-gradient-hosts);
}

/* Barre matchday — sobre */
body.matchcup26 .wc-matchday-bar {
  background: var(--wc26-white);
  border-bottom: 1px solid var(--wc26-border);
  padding: 8px 1rem;
}

body.matchcup26 .wc-app-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.matchcup26 .wc-banner-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

body.matchcup26 .wc-banner-title {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wc26-black);
  margin: 0;
}

body.matchcup26 .wc-banner-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--wc26-muted);
  letter-spacing: 0.06em;
}

body.matchcup26 .wc-banner-flags {
  display: flex;
  gap: 6px;
}

body.matchcup26 .wc-banner-flags img {
  border-radius: 3px;
  border: 1px solid var(--wc26-border);
  box-shadow: var(--wc26-shadow-sm);
}

/* ═══ TYPO ═══ */
body.matchcup26 h1,
body.matchcup26 h2,
body.matchcup26 h3,
body.matchcup26 .card-title,
body.matchcup26 .metric-label,
body.matchcup26 .auth-title,
body.matchcup26 .stats-hero-title {
  font-family: "Archivo Black", Impact, sans-serif;
  color: var(--wc26-black);
  letter-spacing: 0.03em;
}

/* ═══ CADRES / CARDS ═══ */
body.matchcup26 .card,
body.matchcup26 .metric,
body.matchcup26 .auth-card,
body.matchcup26 .match-card,
body.matchcup26 .wc-group-card,
body.matchcup26 .wc-kpi,
body.matchcup26 .wc-match-card {
  position: relative;
  background: var(--wc26-card-solid);
  color: var(--wc26-ink);
  border: 1px solid var(--wc26-border);
  border-radius: var(--wc26-radius);
  box-shadow: var(--wc26-shadow-md);
  overflow: hidden;
}

body.matchcup26 .card::before,
body.matchcup26 .metric::before,
body.matchcup26 .auth-card::before,
body.matchcup26 .match-card::before,
body.matchcup26 .wc-group-card::before,
body.matchcup26 .wc-kpi::before,
body.matchcup26 .wc-match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--wc26-gradient-hosts);
}

body.matchcup26 .card:hover,
body.matchcup26 .metric:hover,
body.matchcup26 .match-card:hover {
  border-color: var(--wc26-border-strong);
  box-shadow: var(--wc26-shadow-lg);
}

body.matchcup26 .card-title {
  font-size: 0.95rem;
  color: var(--wc26-black);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wc26-border);
  margin-bottom: 1rem;
}

body.matchcup26 .metric {
  padding-top: 18px;
}

body.matchcup26 .metric:nth-child(1)::before { background: var(--wc26-red); }
body.matchcup26 .metric:nth-child(2)::before { background: var(--wc26-green); }
body.matchcup26 .metric:nth-child(3)::before { background: var(--wc26-blue); }
body.matchcup26 .metric:nth-child(4)::before { background: var(--wc26-gold); }

body.matchcup26 .metric-label {
  font-size: 10px;
  color: var(--wc26-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.matchcup26 .metric-val {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.65rem;
  color: var(--wc26-black);
}

body.matchcup26 .metric-sub {
  color: var(--wc26-muted);
  font-size: 11px;
}

/* ═══ FORMULAIRES ═══ */
body.matchcup26 .form-label {
  color: var(--wc26-black);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.matchcup26 .form-input,
body.matchcup26 select.form-input,
body.matchcup26 textarea.form-input {
  background: #fff;
  color: var(--wc26-black);
  border: 1.5px solid var(--wc26-border);
  border-radius: var(--wc26-radius-sm);
}

body.matchcup26 .form-input:focus,
body.matchcup26 select.form-input:focus {
  outline: none;
  border-color: var(--wc26-blue);
  box-shadow: 0 0 0 3px rgba(0, 70, 173, 0.12);
}

body.matchcup26 .form-feedback.is-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--wc26-radius-sm);
  padding: 8px 12px;
}

/* ═══ BOUTONS ═══ */
body.matchcup26 .btn {
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

body.matchcup26 .btn-primary,
body.matchcup26 .btn-green {
  background: var(--wc26-blue);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 70, 173, 0.25);
}

body.matchcup26 .btn-primary:hover,
body.matchcup26 .btn-green:hover {
  background: #0047b3;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 82, 204, 0.35);
}

body.matchcup26 .btn:not(.btn-primary):not(.btn-green):not(.btn-danger) {
  background: #fff;
  color: var(--wc26-black);
  border: 1.5px solid var(--wc26-border);
}

body.matchcup26 .btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* ═══ BADGES ═══ */
body.matchcup26 .badge-green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

body.matchcup26 .badge-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

body.matchcup26 .badge-red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ═══ CALENDRIER ═══ */
body.matchcup26 .calendar-grid {
  background: #fff;
  border: 1px solid var(--wc26-border);
  border-radius: var(--wc26-radius);
  padding: 14px;
  box-shadow: var(--wc26-shadow-md);
}

body.matchcup26 .calendar-head div {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 11px;
  color: var(--wc26-muted);
  text-transform: uppercase;
}

body.matchcup26 .calendar-cell {
  background: #fafafa;
  border: 1px solid var(--wc26-border);
  border-radius: 14px;
}

body.matchcup26 .calendar-cell.has-events {
  background: #fff;
  border-color: rgba(0, 166, 81, 0.35);
}

body.matchcup26 .calendar-cell.today {
  border: 2px solid var(--wc26-blue);
  background: #eff6ff;
}

body.matchcup26 .cell-day-num {
  color: var(--wc26-black);
  font-weight: 700;
}

body.matchcup26 .cell-event {
  background: #fff;
  border-left: 3px solid var(--wc26-red);
  color: var(--wc26-ink);
}

body.matchcup26 .cell-event-training {
  border-left-color: var(--wc26-green);
}

/* ═══ TABLEAUX ═══ */
body.matchcup26 .card table thead th,
body.matchcup26 .wallet-table-wrap thead th,
body.matchcup26 .stats-table th {
  background: var(--wc26-black);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
  border-bottom: 3px solid var(--wc26-red);
}

body.matchcup26 .card table tbody td,
body.matchcup26 .stats-table td {
  color: var(--wc26-ink);
  border-bottom: 1px solid var(--wc26-border);
}

body.matchcup26 .card table tbody tr:hover {
  background: #f9fafb;
}

/* ═══ STATS & HISTORIQUE ═══ */
body.matchcup26 .stats-hero {
  background: var(--wc26-black);
  color: #fff;
  border-radius: var(--wc26-radius);
  border: none;
  box-shadow: var(--wc26-shadow-lg);
}

body.matchcup26 .stats-hero::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--wc26-gradient-hosts);
  margin: -1rem -1.25rem 1rem;
  border-radius: var(--wc26-radius) var(--wc26-radius) 0 0;
}

body.matchcup26 .stats-hero-title {
  color: #fff;
}

body.matchcup26 .stats-hero-sub {
  color: var(--wc26-silver);
}

body.matchcup26 .pill {
  background: #fff;
  border: 1.5px solid var(--wc26-border);
  color: var(--wc26-black);
  font-weight: 700;
}

body.matchcup26 .active-pill {
  background: var(--wc26-blue);
  color: #fff;
  border-color: var(--wc26-blue);
}

body.matchcup26 .active-card {
  border-color: var(--wc26-blue);
  box-shadow: 0 0 0 3px rgba(0, 70, 173, 0.12);
}

/* ═══ AUTH ═══ */
body.matchcup26 .auth-card {
  max-width: 420px;
  margin: 0 auto;
}

body.matchcup26 .auth-title {
  font-size: 1.6rem;
}

body.matchcup26 .auth-sub,
body.matchcup26 .auth-hint {
  color: var(--wc26-muted);
}

/* ═══ FOOTER ═══ */
body.matchcup26 .site-footer {
  background: var(--wc26-black);
  color: rgba(255, 255, 255, 0.7);
  border-top: none;
  margin-top: 2rem;
  padding: 1.25rem 1rem 1.75rem;
  flex-direction: column;
  gap: 10px;
}

body.matchcup26 .wc-footer-tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wc26-silver);
  font-weight: 600;
}

body.matchcup26 .wc-footer-flags {
  display: flex;
  gap: 8px;
  justify-content: center;
}

body.matchcup26 .wc-footer-flags img {
  border-radius: 2px;
  opacity: 0.85;
}

body.matchcup26 .progress-fill {
  background: linear-gradient(90deg, var(--wc26-red), var(--wc26-green), var(--wc26-blue));
}

body.matchcup26 .stats-player-link {
  color: var(--wc26-blue);
  font-weight: 700;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  body.matchcup26 .navbar {
    flex-wrap: wrap;
    padding: 0.5rem 0;
    gap: 0.65rem;
  }

  body.matchcup26 .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  body.matchcup26 .nav-actions {
    margin-left: auto;
  }

  body.matchcup26 .nav-brand-year {
    letter-spacing: 0.2em;
  }
}

@media (max-width: 480px) {
  body.matchcup26 .nav-brand-lockup {
    display: none;
  }

  body.matchcup26 .nav-item {
    padding: 7px 11px;
    font-size: 11px;
  }

  body.matchcup26 .wc-banner-sub {
    display: none;
  }
}

body.matchcup26 .cotisation-edit {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.matchcup26 .cotisation-edit .form-input {
  max-width: 88px;
  padding: 6px 8px;
}

body.matchcup26 .player-display-name {
  min-width: 120px;
  padding: 6px 8px;
}

body.matchcup26 .group-scan-panel {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 70, 173, 0.14);
  background: linear-gradient(180deg, #f7faff 0%, #fff 100%);
}

body.matchcup26 .form-row-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body.matchcup26 .finance-alert-card {
  border-left: 4px solid #d71920;
}

body.matchcup26 .finance-bot-card {
  border-left: 4px solid #0046ad;
}

body.matchcup26 .cotisation-default-badge {
  font-size: 10px;
}

body.matchcup26 .group-scan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body.matchcup26 .schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.matchcup26 .schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

body.matchcup26 .schedule-upcoming {
  border-left: 4px solid #00a651;
}

body.matchcup26 .schedule-past {
  opacity: 0.88;
  border-left: 4px solid rgba(15, 23, 42, 0.15);
}

body.matchcup26 .schedule-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.matchcup26 .schedule-day {
  font-weight: 800;
  font-size: 14px;
  color: #0b1f3a;
}

body.matchcup26 .schedule-time {
  font-size: 13px;
  font-weight: 700;
  color: #0046ad;
}

body.matchcup26 .schedule-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

body.matchcup26 .schedule-location {
  font-size: 14px;
  color: #475569;
}

body.matchcup26 .schedule-maps {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0046ad;
}

body.matchcup26 .schedule-notes {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 640px) {
  body.matchcup26 .schedule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.matchcup26 .schedule-badge {
    justify-self: start;
  }
}
