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

:root {
  --navy: #0D1F45;
  --blue: #1E4FA0;
  --blue-light: #2E6DD4;
  --white: #FFFFFF;
  --off-white: #F2F5FB;
  --gold: #D4A629;
  --text: #0D1F45;
  --text-muted: #6B7A99;
  --border: #DDE3F0;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-badge { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.nav-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 15px; color: white; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.85);
  text-decoration: none; padding: 8px 14px; border: none; background: none;
  cursor: pointer; border-radius: 4px; transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-phone { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.nav-phone svg { width: 14px; height: 14px; fill: var(--gold); }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  min-width: 200px; overflow: hidden; opacity: 0; pointer-events: none;
  transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
  z-index: 200; padding: 6px 0;
}
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-links > li.open .dropdown { opacity: 1; pointer-events: all; transform: translateY(2px); }
.dropdown a { display: block; padding: 11px 20px; font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.75); text-decoration: none; border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.dropdown a:hover { background: rgba(255,255,255,0.08); border-left-color: var(--gold); color: white; }
.chevron { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; display: inline-block; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: white; }

/* HERO PAGE */
.page-hero {
  padding-top: 64px;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  z-index: 0;
  pointer-events: none;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,69,0.75) 0%, rgba(13,31,69,0.92) 100%);
  pointer-events: none;
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 64px 64px 56px;
  width: 100%;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  margin-bottom: 24px;
  position: relative; z-index: 10;
  transition: gap 0.2s;
  cursor: pointer;
}
.back-btn:hover { gap: 12px; }
.back-btn::before { content: '←'; font-size: 14px; }
.page-eyebrow {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 4px; color: var(--gold); text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.page-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); }
.page-title {
  font-family: 'Oswald', sans-serif; font-size: clamp(48px, 8vw, 96px);
  font-weight: 700; color: white; line-height: 0.9;
  letter-spacing: -2px; margin-bottom: 16px;
}
.page-compet {
  font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* CONTENU */
.page-body { background: var(--off-white); }

.page-section {
  padding: 72px 64px;
}
.page-section:nth-child(even) { background: white; }

.ps-title {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.ps-title::before { content: ''; display: block; width: 20px; height: 2px; background: var(--gold); }
.ps-heading {
  font-family: 'Oswald', sans-serif; font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--navy); margin-bottom: 40px; letter-spacing: -0.5px;
}

/* Staff cards */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.staff-card {
  background: var(--off-white); border-radius: 12px; padding: 28px 24px;
  border-top: 3px solid var(--blue-light);
  transition: transform 0.25s, box-shadow 0.25s;
}
.staff-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(13,31,69,0.1); }
.staff-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700;
  color: white; margin-bottom: 16px;
}
.staff-role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.staff-name { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); }


/* ── STATISTIQUES ── */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.stat-ucla-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(13,31,69,0.12);
}

.stat-ucla-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.stat-ucla-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(212,166,41,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stat-ucla-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(13,31,69,0.2);
}

.stat-ucla-card:hover::before {
  transform: scaleX(1);
}

.stat-ucla-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.stat-ucla-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-ucla-name {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.1;
}

.stat-ucla-value {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: white;
  line-height: 1;
  transition: color 0.3s;
}

.stat-ucla-card:hover .stat-ucla-value {
  color: var(--gold);
}

.stat-ucla-value span {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-left: 4px;
}

@media (max-width: 768px) {
  .stats-cards { grid-template-columns: 1fr; }
}


.effectif-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.joueur-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13,31,69,0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: default;
  position: relative;
}

.joueur-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 56px rgba(13,31,69,0.2);
}

.joueur-photo {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}

.joueur-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.joueur-card:hover .joueur-photo img {
  transform: scale(1.06);
}

.joueur-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #1a3a7a 100%);
}

.joueur-photo-placeholder svg {
  width: 55%; height: 55%; opacity: 0.2; fill: white;
}

.joueur-num-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700;
  color: white; background: rgba(13,31,69,0.85);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.joueur-poste-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(13,31,69,0.92) 0%, transparent 100%);
  padding: 24px 10px 10px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.joueur-card:hover .joueur-poste-overlay {
  opacity: 1; transform: translateY(0);
}

.joueur-poste-label {
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
}

.joueur-info {
  padding: 12px 14px 14px;
  border-top: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.joueur-card:hover .joueur-info { border-top-color: var(--gold); }

.joueur-nom {
  font-family: 'Oswald', sans-serif;
  font-size: 16px; font-weight: 800;
  color: var(--navy); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.joueur-prenom {
  display: block; font-family: 'Oswald', sans-serif;
  font-size: 12px; font-weight: 400;
  color: var(--blue-light);
  text-transform: uppercase; letter-spacing: 1px;
}

.joueur-name { display: none; }
.joueur-meta { display: none; }
.joueur-poste { display: none; }
.joueur-age { display: none; }


/* CTA effectif complet */
.effectif-cta { text-align: center; padding: 8px 0 16px; }

.btn-effectif {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  border: 2px solid var(--navy); padding: 14px 32px; border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-effectif:hover {
  background: var(--navy); color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,31,69,0.2);
}

.btn-effectif-arrow {
  transition: transform 0.25s ease;
}

.btn-effectif:hover .btn-effectif-arrow {
  transform: translateX(6px);
}

@media (max-width: 1024px) {
  .effectif-preview { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .effectif-preview { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Résultats */
.resultats-list { display: flex; flex-direction: column; gap: 12px; }
.resultat-item {
  display: grid; grid-template-columns: 120px 1fr auto 1fr 80px;
  align-items: center; gap: 16px;
  background: white; border-radius: 10px; padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(13,31,69,0.05);
}
.res-date { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.res-home { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); text-align: right; }
.res-score {
  font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700;
  color: white; background: var(--navy); padding: 8px 20px; border-radius: 8px; text-align: center; white-space: nowrap;
}
.res-away { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); }
.res-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; text-align: center; }
.res-badge.dom { background: rgba(30,79,160,0.1); color: var(--blue); }
.res-badge.ext { background: rgba(107,122,153,0.1); color: var(--text-muted); }
.res-badge.v { background: rgba(26,110,62,0.15); color: #1a6e3e; }
.res-badge.d { background: rgba(180,30,30,0.12); color: #b41e1e; }
.res-badge.n { background: rgba(107,122,153,0.12); color: var(--text-muted); }

/* Info block */
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.info-block {
  background: var(--navy); border-radius: 12px; padding: 28px 24px;
  position: relative; overflow: hidden;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
  box-shadow: 0 4px 16px rgba(13,31,69,0.15);
}

/* Trait du haut animé */
.info-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--gold));
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* Halo lumineux au hover */
.info-block::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(212,166,41,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.info-block:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(13,31,69,0.25);
  background: #132654;
}

.info-block:hover::before {
  transform: scaleX(1);
}

.info-block:hover::after {
  opacity: 1;
  transform: translate(10px, 10px);
}

/* Valeur qui grossit légèrement */
.info-block:hover .info-value {
  color: var(--gold);
  transition: color 0.3s ease;
}

.info-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.info-value { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: white; line-height: 1; transition: color 0.3s ease; }
.info-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; }

/* FOOTER */
footer { background: #080F22; padding: 40px 64px 24px; }
.footer-simple { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-sm { display: flex; align-items: center; gap: 12px; }
.footer-brand-sm img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.footer-brand-sm span { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700; color: white; letter-spacing: 2px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .page-hero-content { padding: 48px 24px 40px; }
  .page-section { padding: 56px 24px; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .effectif-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .resultat-item { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-phone { display: none; }
  .burger { display: flex; }
}

/* --- Logo de la barre de navigation : toujours sur une seule ligne --- */
/* sélecteur volontairement plus précis que .nav-logo-text pour passer
   devant les blocs <style> internes aux pages */
.nav-logo .nav-logo-text {
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo { flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-logo .nav-logo-text { font-size: 13px; letter-spacing: 1px; }
}
@media (max-width: 420px) {
  .nav-logo .nav-logo-text { font-size: 11px; letter-spacing: .5px; }
}

/* --- Très petits écrans (iPhone SE, 320px) --- */
/* la barre de nav gardait 32px de marge de chaque côté : trop large */
@media (max-width: 420px) {
  nav { padding-left: 14px !important; padding-right: 14px !important; }
}

/* Empêche le petit débordement horizontal résiduel sur écrans étroits.
   « clip » plutôt que « hidden » : ne casse pas position:sticky
   et laisse les tableaux défiler dans leur propre conteneur. */
@media (max-width: 480px) {
  html, body { overflow-x: clip; }
}

/* Liens « Retour » : trop fins pour le doigt sur mobile (16px de haut).
   On élargit la zone tactile sans changer l'apparence. */
@media (max-width: 768px) {
  .back-btn { padding-top: 10px; padding-bottom: 10px; }
}

/* ------------------------------------------------------------------
   MENU MOBILE
   Le bouton hamburger existait sur toutes les pages, mais le panneau
   qui doit s'ouvrir n'était présent que sur l'accueil : sur les 37
   autres pages, le bouton ne faisait rien et la navigation était
   impossible au téléphone. Styles repris de index.html.
   ------------------------------------------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 18px; font-weight: 600;
  color: white; text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 1px;
}

.mobile-menu a.sub {
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 10px 0 10px 16px;
}

.mobile-menu .section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  padding-top: 20px; padding-bottom: 6px;
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu { display: block; }
}

/* Onglets de filtre (page stats) : zone tactile un peu juste au doigt. */
@media (max-width: 768px) {
  .stats-filtre button, .filtre-btn, .tab-btn { padding-top: 10px; padding-bottom: 10px; }
}

/* ------------------------------------------------------------------
   BOUTON « REMONTER »
   Certaines pages font plus de dix écrans sur téléphone : sans lui il
   faut faire défiler longtemps pour retrouver le menu, qui est en haut.
   Il n'apparaît qu'après un écran de défilement, et jamais sur ordinateur
   où la barre de navigation reste visible.
   ------------------------------------------------------------------ */
#haut {
  display: none;
  position: fixed;
  right: 16px; bottom: 16px;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 20px; line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  cursor: pointer; z-index: 998;
  opacity: 0; transition: opacity .25s;
  align-items: center; justify-content: center;
}
#haut.visible { opacity: 1; }

@media (max-width: 768px) {
  #haut { display: flex; }
}
