/* ============================================================
   CORE — CHARTE GRAPHIQUE 2023
   Couleurs : #000000 · #9CD6EB · #EE79AD · #EC6269 · #B7D694
   Typo     : Noir Pro (titres) + DM Sans (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@700;800;900&display=swap');

/* Noir Pro via @font-face si dispo localement — sinon Syne prend le relais */
@font-face {
  font-family: 'NoirPro';
  src: local('Noir Pro Bold'), local('NoirPro-Bold');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'NoirPro';
  src: local('Noir Pro Heavy'), local('NoirPro-Heavy');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'NoirPro';
  src: local('Noir Pro Light'), local('NoirPro-Light');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'NoirPro';
  src: local('Noir Pro Regular'), local('NoirPro-Regular');
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* CORE palette */
  --noir:         #000000;
  --blanc:        #FFFFFF;
  --bleu:         #9CD6EB;
  --rose:         #EE79AD;
  --rouge:        #EC6269;
  --vert:         #B7D694;

  /* Déclinaisons sombres */
  --bleu-d:       #6abdd8;
  --rose-d:       #d95a90;
  --rouge-d:      #d44950;
  --vert-d:       #93bb72;

  /* Neutres */
  --gris-90:      #111111;
  --gris-80:      #1a1a1a;
  --gris-70:      #2a2a2a;
  --gris-50:      #555555;
  --gris-30:      #999999;
  --gris-10:      #e8e8e8;

  /* Système UI */
  --bg:           var(--noir);
  --bg-card:      var(--gris-90);
  --bg-card-alt:  var(--gris-80);
  --border:       var(--gris-70);
  --text:         var(--blanc);
  --text-muted:   var(--gris-30);
  --accent:       var(--bleu);

  /* Typo */
  --font-title:   'NoirPro', 'Outfit', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', 'Avenir', system-ui, sans-serif;

  /* Formes */
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 8px 40px rgba(0,0,0,.5);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bleu); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .75; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid var(--gris-80);
  position: relative; z-index: 10;
  background: var(--noir);
}

/* Brand : logo + Prono2026 empilés */
.nav-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-decoration: none;
}
.brand-logo { height: 22px; width: auto; display: block; }
.brand-sub {
  font-family: var(--font-title); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; color: var(--gris-30); text-transform: uppercase;
}
.brand-sub span { color: var(--bleu); }

/* Actions nav */
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Bouton nav générique */
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  transition: all .15s; white-space: nowrap;
}

/* Bouton principal (bleu) */
.nav-btn-primary {
  background: var(--bleu); color: var(--noir);
}
.nav-btn-primary:hover { background: var(--bleu-d); opacity: 1; }

/* Bouton fantôme */
.nav-btn-ghost {
  background: transparent; color: var(--gris-30);
  border: 1px solid var(--gris-70);
}
.nav-btn-ghost:hover { color: var(--blanc); border-color: var(--gris-50); }

/* Bouton icône seul (déconnexion) */
.nav-btn-icon {
  background: transparent; color: var(--gris-50);
  border: 1px solid var(--gris-80);
  padding: 8px 10px;
}
.nav-btn-icon:hover { color: var(--rouge); border-color: rgba(236,98,105,.4); }

/* Nom d'utilisateur */
.nav-username {
  font-size: .8rem; color: var(--gris-50); font-weight: 400;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Legacy — keep for index.html */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo span { color: var(--bleu); }

/* Mobile : masque le nom */
@media (max-width: 640px) {
  .navbar { padding: 12px 16px; }
  .nav-username { display: none; }
  .nav-btn-label { display: none; }
  .nav-btn { padding: 8px 10px; }
  .brand-sub { font-size: .65rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex; flex-direction: column;
  min-height: 100vh;
  background: var(--noir);
  position: relative; overflow: hidden;
}

/* Accents couleur en arrière-plan — pastels CORE */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(156,214,235,.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 55% at 5%  85%, rgba(238,121,173,.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(183,214,148,.04) 0%, transparent 70%);
}

.hero-pitch { display: none; } /* supprimé — on garde le noir pur */

.hero-content {
  position: relative; z-index: 5;
  flex: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 80px 24px 40px;
}

/* Badge événement */
.badge-event {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gris-70);
  color: var(--gris-30);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 32px;
}

/* Titre héro */
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--bleu);
}

.hero p.subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--gris-30);
  max-width: 500px; margin: 0 auto 48px;
  font-weight: 300; line-height: 1.7;
}

/* ============================================================
   FORMULAIRE PARTICIPATION
   ============================================================ */
.form-card {
  background: var(--gris-90);
  border: 1px solid var(--gris-70);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%; max-width: 460px;
  margin: 0 auto;
}

.form-card h2 {
  font-family: var(--font-title);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.form-card p.form-desc {
  color: var(--gris-30); font-size: .85rem;
  font-weight: 300; margin-bottom: 28px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block; font-size: .72rem; font-weight: 600;
  color: var(--gris-30); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .07em;
}

.form-group input,
.form-group select {
  width: 100%; padding: 12px 14px;
  background: var(--gris-80);
  border: 1px solid var(--gris-70);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: .95rem;
  font-family: var(--font-body); font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(156,214,235,.12);
}

.form-group input::placeholder { color: var(--gris-50); }
.form-group select option { background: var(--gris-80); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer; border: none; transition: all .2s;
  width: 100%;
}

.btn-primary {
  background: var(--blanc); color: var(--noir);
}

.btn-primary:hover {
  background: var(--bleu); color: var(--noir);
  transform: translateY(-1px);
}

.btn-gold { /* renommé → btn-accent */
  background: var(--bleu); color: var(--noir);
}

.btn-gold:hover { background: var(--bleu-d); transform: translateY(-1px); }

.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  padding: 24px; position: relative; z-index: 5;
  border-top: 1px solid var(--gris-80);
}

.stat-pill {
  background: transparent;
  border: 1px solid var(--gris-70);
  border-radius: var(--radius-sm); padding: 6px 16px;
  font-size: .78rem; color: var(--gris-30); font-weight: 300;
}

.stat-pill strong { color: var(--blanc); font-weight: 600; }

/* ============================================================
   SECTION RÈGLES
   ============================================================ */
.section { padding: 100px 24px; }
.section-inner { max-width: 920px; margin: 0 auto; }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: -.03em;
  text-align: center; margin-bottom: 12px;
}

.section-sub {
  color: var(--gris-30); text-align: center;
  margin-bottom: 56px; font-weight: 300; font-size: .95rem;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--gris-70); /* joints de grille */
  border: 1px solid var(--gris-70); border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

.step-card {
  background: var(--gris-90);
  padding: 36px 28px; text-align: left;
}

.step-icon { font-size: 1.8rem; margin-bottom: 20px; display: block; }

.step-num {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--gris-30); text-transform: uppercase;
  margin-bottom: 10px;
}

.step-card h3 {
  font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -.01em;
}

.step-card p { font-size: .88rem; color: var(--gris-30); font-weight: 300; }

/* Couleurs d'accent par étape */
.step-card:nth-child(1) .step-icon { filter: drop-shadow(0 0 12px rgba(156,214,235,.4)); }
.step-card:nth-child(2) .step-icon { filter: drop-shadow(0 0 12px rgba(183,214,148,.4)); }
.step-card:nth-child(3) .step-icon { filter: drop-shadow(0 0 12px rgba(238,121,173,.4)); }
.step-card:nth-child(4) .step-icon { filter: drop-shadow(0 0 12px rgba(236,98,105,.4)); }

/* ============================================================
   ROUNDS NAV
   ============================================================ */
.rounds-nav {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 36px;
}

.round-pill {
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--gris-70); color: var(--gris-30);
  background: transparent; cursor: pointer; transition: all .15s;
}

.round-pill.active {
  border-color: var(--bleu); color: var(--noir);
  background: var(--bleu);
}

.round-pill.locked { opacity: .3; cursor: not-allowed; }

/* ============================================================
   MATCH CARDS
   ============================================================ */
.match-list { display: flex; flex-direction: column; gap: 12px; }

.match-card {
  background: var(--gris-90);
  border: 1px solid var(--gris-70);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}

.match-card:hover {
  border-color: rgba(156,214,235,.35);
  transform: translateY(-1px);
}

/* Ligne principale : équipes + scores */
.match-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
  padding: 22px 24px;
}

.team { display: flex; align-items: center; gap: 14px; }
.team.right { flex-direction: row-reverse; }

.team-flag { font-size: 1.8rem; }
.team-name { font-family: var(--font-title); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.team.right .team-name { text-align: right; }
.team-group { font-size: .7rem; color: var(--gris-50); font-weight: 400; margin-top: 2px; }
.team.right .team-group { text-align: right; }

.match-center { text-align: center; }

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

.score-input {
  width: 56px; height: 56px;
  background: var(--gris-80);
  border: 1px solid var(--gris-70);
  border-radius: var(--radius-sm);
  color: var(--blanc);
  font-family: var(--font-title); font-size: 1.4rem; font-weight: 700;
  text-align: center; transition: border-color .2s, box-shadow .2s;
}

.score-input:focus {
  outline: none; border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(156,214,235,.15);
}

.score-input:disabled {
  opacity: .5; cursor: not-allowed;
}

.score-sep { font-size: 1.1rem; font-weight: 300; color: var(--gris-50); }

.match-meta { font-size: .72rem; color: var(--gris-30); margin-top: 6px; font-weight: 300; }

/* Bandeau lot en bas de la card */
.prize-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  background: rgba(238,121,173,.07);
  border-top: 1px solid rgba(238,121,173,.2);
}

.prize-banner .prize-icon { font-size: 1rem; }

.prize-banner .prize-label {
  font-size: .72rem; color: var(--gris-30); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}

.prize-banner .prize-name {
  font-size: .85rem; color: var(--rose); font-weight: 700;
}

.prize-banner .prize-sponsor {
  margin-left: auto;
  font-size: .72rem; color: var(--gris-50); font-weight: 300;
}

/* ============================================================
   PAGE MERCI
   ============================================================ */
.merci-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}

.merci-card {
  background: var(--gris-90);
  border: 1px solid var(--gris-70);
  border-radius: var(--radius-lg);
  padding: 60px 48px; max-width: 520px; width: 100%; text-align: center;
}

.merci-icon { font-size: 3.5rem; margin-bottom: 24px; display: block; }

.merci-card h1 {
  font-family: var(--font-title);
  font-size: 2.2rem; font-weight: 900;
  letter-spacing: -.04em; margin-bottom: 14px;
}

.merci-card p { color: var(--gris-30); margin-bottom: 24px; font-weight: 300; font-size: .95rem; }

.share-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}

.btn-fb {
  background: var(--gris-80); color: var(--blanc);
  border: 1px solid var(--gris-70);
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: border-color .2s;
}

.btn-fb:hover { border-color: var(--bleu); color: var(--bleu); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; margin-top: 12px; font-weight: 400;
}

.alert-error   { background: rgba(236,98,105,.1);  border: 1px solid rgba(236,98,105,.3);  color: var(--rouge); }
.alert-success { background: rgba(183,214,148,.1); border: 1px solid rgba(183,214,148,.3); color: var(--vert); }
.alert-info    { background: rgba(156,214,235,.08); border: 1px solid rgba(156,214,235,.25); color: var(--bleu); }

/* ============================================================
   LOADER
   ============================================================ */
.loader { display: flex; align-items: center; justify-content: center; padding: 60px; }

.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--gris-70);
  border-top-color: var(--bleu);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center; padding: 28px 24px;
  color: var(--gris-50); font-size: .75rem; font-weight: 300;
  border-top: 1px solid var(--gris-80);
}

/* ============================================================
   ÉTAT "déjà participé"
   ============================================================ */
.already-done {
  background: rgba(183,214,148,.06);
  border: 1px solid rgba(183,214,148,.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px; text-align: center;
  color: var(--vert); font-size: .88rem;
}

/* ============================================================
   TABS LOGIN/REGISTER
   ============================================================ */
.tabs-row {
  display: flex; gap: 0; margin-bottom: 24px;
  border: 1px solid var(--gris-70);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tab-btn {
  flex: 1; padding: 11px 16px;
  background: transparent; color: var(--gris-30);
  border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; transition: all .15s;
}

.tab-btn.active {
  background: var(--blanc); color: var(--noir);
}

.tab-btn:not(.active):hover {
  background: var(--gris-80); color: var(--blanc);
}

/* ============================================================
   RGPD CHECKBOXES
   ============================================================ */
.rgpd-checks {
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.check-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: .82rem; color: var(--gris-30); line-height: 1.5;
}

.check-label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--bleu); cursor: pointer;
}

.check-label a { color: var(--bleu); text-decoration: underline; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--gris-90);
  border-top: 1px solid var(--gris-70);
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 14px 24px;
  font-size: .82rem; color: var(--gris-30);
  flex-wrap: wrap;
}

.cookie-banner a { color: var(--bleu); }

.cookie-btn {
  background: var(--blanc); color: var(--noir);
  border: none; border-radius: var(--radius-sm);
  padding: 8px 20px; font-family: var(--font-body);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}

.cookie-btn:hover { background: var(--bleu); }

/* ============================================================
   FOOTER LÉGAL
   ============================================================ */
.footer-links {
  display: flex; gap: 20px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap;
}

.footer-links a { color: var(--gris-30); font-size: .85rem; }
.footer { font-size: .82rem; } /* minimum lisible */

/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */
.input-password-wrap {
  position: relative;
}
.input-password-wrap input { padding-right: 44px; }
.btn-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gris-30);
  padding: 4px; line-height: 1; transition: color .15s;
}
.btn-eye:hover { color: var(--blanc); }
.btn-eye svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   REQUIRED FIELD INDICATOR
   ============================================================ */
.form-group label .req {
  color: var(--rouge); margin-left: 3px; font-size: .8em;
}

/* ============================================================
   INLINE VALIDATION
   ============================================================ */
.field-error {
  font-size: .75rem; color: var(--rouge); margin-top: 4px;
  display: none;
}
.field-error.visible { display: block; }
.form-group input.invalid { border-color: var(--rouge); }
.form-group input.valid { border-color: var(--vert); }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--gris-80) 25%, var(--gris-70) 50%, var(--gris-80) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--gris-90); border: 1px solid var(--gris-70);
  border-radius: var(--radius); padding: 24px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
}
.skeleton-team { display: flex; align-items: center; gap: 12px; }
.skeleton-flag  { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-name  { height: 14px; width: 80px; border-radius: 4px; }
.skeleton-score { display: flex; align-items: center; gap: 10px; justify-content: center; }
.skeleton-box   { width: 52px; height: 52px; border-radius: var(--radius-sm); }
.skeleton-sep   { width: 16px; height: 14px; border-radius: 4px; }
.skeleton-prize { height: 36px; border-radius: 0 0 var(--radius) var(--radius); }

/* ============================================================
   GROUP FILTER
   ============================================================ */
.group-filter-wrap {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px;
}
.group-pill {
  padding: 5px 14px; border-radius: 99px; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--gris-70); color: var(--gris-30);
  background: transparent; cursor: pointer; transition: all .15s;
}
.group-pill.active {
  border-color: var(--bleu); color: var(--noir); background: var(--bleu);
}
.group-pill:hover:not(.active) { color: var(--blanc); border-color: var(--gris-50); }

/* ============================================================
   STICKY VALIDATE BUTTON
   ============================================================ */
.sticky-validate {
  position: sticky; bottom: 72px; z-index: 100; /* au-dessus du cookie banner */
  margin-top: 24px;
  display: flex; justify-content: center;
  pointer-events: none;
}
.sticky-validate .btn-validate {
  pointer-events: all;
  background: var(--bleu); color: var(--noir);
  border: none; border-radius: 99px;
  padding: 14px 36px; font-size: .95rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 24px rgba(156,214,235,.35);
  transition: all .2s; display: flex; align-items: center; gap: 8px;
}
.sticky-validate .btn-validate:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(156,214,235,.5); }
.sticky-validate .btn-validate:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.sticky-validate .progress-label {
  font-size: .75rem; opacity: .7; font-weight: 500;
}

/* ============================================================
   SCORE INPUT FEEDBACK
   ============================================================ */
.match-card.modified { border-color: rgba(156,214,235,.4); }
.match-card.modified .match-card-body { background: rgba(156,214,235,.03); }

/* ============================================================
   CURSOR POINTER
   ============================================================ */
.round-pill, .group-pill, .tab-btn, .pnav-item, .switch, .btn-close,
.nav-item, [onclick], button { cursor: pointer; }

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   MATCH LOCK BADGES (fermeture temporelle)
   ============================================================ */
.match-lock-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 3px 10px; margin-top: 6px;
  letter-spacing: .03em;
}

.badge-locked-time {
  background: rgba(236,98,105,.12);
  color: var(--rouge);
  border: 1px solid rgba(236,98,105,.3);
}

.badge-closing-soon {
  background: rgba(245,197,24,.1);
  color: #F5C518;
  border: 1px solid rgba(245,197,24,.3);
}

/* Gagnant dans prize-banner */
.prize-winner {
  font-size: .78rem; color: var(--vert); font-weight: 700;
  margin-left: 8px;
}

/* ============================================================
   CLASSEMENT PUBLIC
   ============================================================ */
.classement-wrap {
  max-width: 760px; margin: 0 auto; padding: 40px 20px;
}

.classement-header {
  text-align: center; margin-bottom: 36px;
}

.classement-header h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 900; letter-spacing: -.03em; margin-bottom: 8px;
}

.classement-header p { color: var(--gris-30); font-size: .9rem; }

.classement-table { width: 100%; border-collapse: collapse; }

.classement-table thead tr {
  border-bottom: 1px solid var(--gris-70);
}

.classement-table th {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gris-30); font-weight: 600;
  padding: 10px 12px; text-align: left;
}

.classement-table td {
  padding: 12px 12px; font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.classement-table tbody tr:hover {
  background: var(--gris-90);
}

.cl-rank {
  font-family: var(--font-title); font-weight: 900;
  font-size: .9rem; color: var(--gris-30); width: 40px;
}

.cl-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; font-size: .82rem; color: var(--noir);
  flex-shrink: 0;
}

.cl-name-wrap { display: flex; align-items: center; gap: 10px; }

.cl-score { font-weight: 700; color: var(--vert); }

.cl-rate { color: var(--gris-30); font-size: .82rem; }

/* ============================================================
   PAGE LÉGALE
   ============================================================ */
.legal-wrap {
  max-width: 760px; margin: 0 auto; padding: 60px 24px;
}

.legal-wrap h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900;
  letter-spacing: -.03em; margin-bottom: 8px;
}

.legal-wrap .legal-sub {
  color: var(--gris-30); font-size: .85rem; margin-bottom: 40px;
}

.legal-wrap h2 {
  font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 700; margin: 32px 0 10px;
  letter-spacing: -.01em;
}

.legal-wrap p, .legal-wrap li {
  color: var(--gris-30); font-size: .9rem; line-height: 1.75;
}

.legal-wrap ul { padding-left: 20px; margin-bottom: 12px; }

.legal-wrap a { color: var(--bleu); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  /* Navbar */
  .navbar { padding: 14px 16px; gap: 8px; }
  .nav-logo { font-size: 1.1rem; }
  .navbar > div { gap: 10px; }
  .navbar a[href="profil.html"] { font-size: .75rem; }
  #userGreet { font-size: .78rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Form */
  .form-card { padding: 24px 16px; }
  .hero h1 { letter-spacing: -.03em; }

  /* Match cards */
  .match-card-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }

  .team { justify-content: center; }
  .team.right { flex-direction: row; justify-content: center; }
  .team-name, .team.right .team-name { text-align: center; }
  .team-group, .team.right .team-group { text-align: center; }
  .score-inputs { justify-content: center; }

  /* Prize banner */
  .prize-banner { flex-wrap: wrap; gap: 6px; padding: 10px 16px; }
  .prize-banner .prize-sponsor { margin-left: 0; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }
}
