/* ================================================================
   Orvault Volley-Ball — Feuille de style principale
   Palette : bleu marine #0d1e35 · bleu #1e6eb5 · blanc #ffffff
   ================================================================ */

/* ---- Variables ------------------------------------------------ */
:root {
  --navy:       #0d1e35;
  --navy-mid:   #152d52;
  --blue:       #1e6eb5;
  --blue-light: #3a8fd4;
  --white:      #ffffff;
  --off-white:  #f4f7fb;
  --text:       #1c2d42;
  --muted:      #637080;
  --border:     #d6e2ef;
  --shadow:     0 2px 14px rgba(13,30,53,.10);
  --shadow-lg:  0 8px 32px rgba(13,30,53,.18);
  --radius:     10px;
  --nav-h:      80px;
  --ease:       .2s ease;
}

/* ---- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }
ul, ol { list-style: none; }

/* ---- Typographie --------------------------------------------- */
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 700; }

/* ---- Mise en page -------------------------------------------- */
.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* Titre de section avec ligne décorative */
.section-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.section-heading .icon {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-heading .icon svg { width: 20px; height: 20px; fill: var(--white); }

/* ---- Boutons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.35rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); color: var(--white); transform: translateY(-1px); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* ================================================================
   EN-TÊTE / NAVIGATION
   ================================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.nav-wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo img { width: 72px; height: 72px; object-fit: contain; }
.logo-sub { font-weight: 400; font-size: .72rem; opacity: .65; letter-spacing: .06em; display: block; }

/* Lien Instagram hero */
.hero-instagram {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.4rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease);
  width: fit-content;
  align-self: flex-start;
}
.hero-instagram svg { width: 20px; height: 20px; flex-shrink: 0; }
.hero-instagram:hover { color: var(--white); }

/* Liens nav desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: .88rem;
  padding: .55rem .9rem;
  border-radius: 6px;
  transition: var(--ease);
  letter-spacing: .02em;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--blue);
  color: var(--white);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tiroir mobile */
#nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .75rem 1rem 1rem;
  z-index: 199;
  flex-direction: column;
  gap: .2rem;
}
#nav-mobile.open { display: flex; }
#nav-mobile a {
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: 1rem;
  padding: .7rem 1rem;
  border-radius: 6px;
  transition: var(--ease);
}
#nav-mobile a:hover,
#nav-mobile a[aria-current="page"] { background: var(--blue); color: var(--white); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(140deg, #0a1628 0%, var(--navy-mid) 45%, #1a5296 100%);
  color: var(--white);
  padding: 5.5rem 0 8rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 40%, rgba(58,143,212,.22) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(30,110,181,.14) 0%, transparent 45%);
  pointer-events: none;
}
/* Grille décorative légère */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 260px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.90);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  margin-bottom: .9rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.05rem;
  opacity: .78;
  margin-bottom: 2.2rem;
  max-width: 440px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-carousel {
  flex: 0 0 52%;
  max-width: 52%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}
.hero-carousel .carousel { border-radius: 14px; }
.hero-carousel .carousel-slide img { height: 320px; }

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  box-shadow: 0 4px 20px rgba(13,30,53,.06);
}
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 2.5rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .3rem;
}

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ================================================================
   SECTIONS CONTENU
   ================================================================ */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--off-white); }
.section--dark {
  background: linear-gradient(140deg, #0a1628 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}
.section--dark .section-heading { color: var(--white); }
.section-heading--light { color: var(--white) !important; }
.section-heading--light .icon { background: rgba(255,255,255,.15); }

/* ================================================================
   CARTES ACTUALITÉS
   ================================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.news-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.news-meta {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.news-body {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
}
.news-body a { color: var(--blue); font-weight: 600; }
/* Trait bleu en bas quand pas d'image */
.news-card:not(:has(.news-img)) { border-top: 3px solid var(--blue); }

/* ================================================================
   ÉTAT VIDE / EN ATTENTE
   ================================================================ */
.pending-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background: var(--off-white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.pending-state svg { width: 40px; height: 40px; opacity: .35; fill: var(--navy); }
.pending-state strong { font-size: .95rem; color: var(--navy); }
.pending-state p { font-size: .85rem; max-width: 360px; }
.pending-state code {
  background: var(--border);
  padding: .15rem .45rem;
  border-radius: 4px;
  font-size: .82rem;
  color: var(--navy);
}

/* ================================================================
   PLANNING — tableau
   ================================================================ */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: .8rem 1.1rem;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.data-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.data-table tbody td {
  padding: .7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--off-white); }
.data-table tbody tr.day-header td {
  background: var(--off-white);
  color: var(--navy);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .5rem 1.1rem;
  border-bottom: 2px solid var(--border);
}
.data-table tbody tr.day-header:hover td { background: var(--off-white); }

/* Badges type événement */
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 20px;
}
.badge-ent   { background: #ddeeff; color: #1e5da0; }
.badge-match { background: #d8f5e4; color: #1a7a3d; }
.badge-tour  { background: #f0e6ff; color: #6b22b0; }

/* Filtre bar (planning) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.filter-pill {
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: var(--ease);
}
.filter-pill.active,
.filter-pill:hover { border-color: var(--blue); color: var(--blue); background: #e8f2fb; }
.filter-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-left: .75rem;
  margin-right: .4rem;
}
.filter-label:first-child { margin-left: 0; }
.filter-select {
  padding: .4rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
}
.filter-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,110,181,.15); }

/* ================================================================
   ÉQUIPES — cartes
   ================================================================ */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  border-top: 4px solid var(--blue);
  transition: transform var(--ease);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.team-card { text-decoration: none; color: inherit; cursor: pointer; }

/* ================================================================
   ÉQUIPE DÉTAIL — layout sidebar + contenu
   ================================================================ */
.equipe-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.equipes-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  border: 1px solid var(--border);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
}
.equipes-sidebar-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 0 .4rem .6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
}
.equipes-nav-cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  padding: .6rem .4rem .2rem;
}
.equipes-nav-link {
  display: block;
  padding: .4rem .6rem;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
  line-height: 1.3;
}
.equipes-nav-link:hover { background: var(--border); color: var(--navy); }
.equipes-nav-link.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.equipe-main { min-width: 0; }

@media (max-width: 768px) {
  .equipe-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
  .equipes-sidebar {
    position: static;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .6rem .75rem;
  }
  /* Sur mobile : liste horizontale scrollable */
  #equipes-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .25rem;
  }
  .equipes-nav-cat { display: none; }
  .equipes-nav-link {
    white-space: nowrap;
    padding: .3rem .65rem;
    background: var(--white);
    border: 1px solid var(--border);
    flex-shrink: 0;
  }
}

/* ================================================================
   PHOTOS ÉQUIPE — grille par saison
   ================================================================ */
.photos-season-group { margin-bottom: 2rem; }
.photos-season-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--navy);
  background: var(--off-white);
  padding: .5rem .9rem;
  border-radius: 6px;
  margin-bottom: .75rem;
  border-left: 3px solid var(--blue);
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.photo-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  aspect-ratio: 4/3;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.photo-thumb:hover img { transform: scale(1.05); }
.photo-thumb-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,30,53,.72));
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .5rem .55rem .4rem;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .photos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ================================================================
   MODAL CONNEXION
   ================================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(5, 12, 24, .6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.login-overlay.open { opacity: 1; visibility: visible; }
.login-modal {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(5,12,24,.35);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}
.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 1.25rem 1.5rem;
  color: var(--white);
}
.login-modal-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
}
.login-modal-title svg { width: 22px; height: 22px; }
.login-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.login-close:hover { background: rgba(255,255,255,.25); }
.login-form {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-pw-wrap {
  position: relative;
  display: flex;
}
.login-pw-wrap input { flex: 1; padding-right: 2.5rem; }
.login-pw-toggle {
  position: absolute;
  right: .6rem; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  display: flex; align-items: center;
  transition: color var(--ease);
}
.login-pw-toggle:hover { color: var(--navy); }
.login-pw-toggle svg { width: 18px; height: 18px; }
.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: .25rem;
  padding: .75rem;
  font-size: .95rem;
}
.login-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ================================================================
   LIGHTBOX MODAL PHOTO
   ================================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 12, 24, .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  cursor: zoom-out;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
  cursor: default;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,.65);
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  margin-top: .75rem;
  max-width: 72ch;
  line-height: 1.4;
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  z-index: 9001;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.team-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.team-name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.team-level { font-size: .8rem; color: var(--muted); }

/* ================================================================
   RÉSULTATS — cartes
   ================================================================ */
.month-group { margin-bottom: 1.25rem; }
.month-header {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--off-white);
  padding: .45rem 1rem;
  border-radius: 6px;
  margin-bottom: .65rem;
}
.results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .75rem;
}
.result-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.result-team { font-weight: 700; font-size: .95rem; }
.result-team.home { text-align: right; }
.result-team.away { text-align: left; }
.result-score {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.result-score .sep { color: var(--muted); font-weight: 400; margin: 0 .2rem; }
.result-meta {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: .15rem;
}
.result-win  { color: #1a7a3d; }
.result-loss { color: #b02020; }
.result-draw { color: var(--muted); }

/* ================================================================
   PAGE HERO (pages internes)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
}
.breadcrumb {
  font-size: .78rem;
  opacity: .6;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.breadcrumb a { color: var(--white); }

/* ================================================================
   CONTACTS
   ================================================================ */
.contacts-group { margin-bottom: 1.75rem; }
.contacts-group-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--off-white);
  padding: .45rem 1rem;
  border-radius: 6px;
  margin-bottom: .75rem;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}
.contact-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.contact-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.contact-role { font-size: .82rem; color: var(--muted); }
.contact-equipe {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contact-link {
  font-size: .82rem;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}
.contact-link:hover { text-decoration: underline; }

/* ================================================================
   CARROUSEL PHOTOS
   ================================================================ */
.section-carousel { padding-top: 0; }
.carousel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.carousel-track-wrap { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #000;
  display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,30,53,.85));
  color: #fff;
  padding: 1.5rem 1.25rem .9rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(13,30,53,.55);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
  z-index: 2;
}
.carousel-btn:hover { background: var(--blue); }
.carousel-prev { left: .75rem; }
.carousel-next { right: .75rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: .2rem 0;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(13,30,53,.25);
  border: none;
  cursor: pointer;
  transition: var(--ease);
  padding: 0;
}
.carousel-dot.active { background: var(--navy); transform: scale(1.25); }
@media (max-width: 600px) {
  .carousel-slide img { height: 220px; }
}

/* ================================================================
   PIED DE PAGE
   ================================================================ */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 3rem 0 1.5rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .9rem;
}
.footer-col p,
.footer-col li { font-size: .85rem; line-height: 1.9; }
.footer-col a { color: rgba(255,255,255,.65); transition: var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-logo { width: 58px; margin-bottom: .75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  opacity: .45;
}

/* ================================================================
   PARTENAIRES — grille
   ================================================================ */
.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.partenaire-card-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}
.partenaire-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  height: 100%;
}
a.partenaire-card-wrap:hover .partenaire-card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.partenaire-logo {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
  display: block;
}
.partenaire-logo-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--blue);
}
.partenaire-info { display: flex; flex-direction: column; gap: .35rem; align-items: center; }
.partenaire-nom  { font-weight: 700; font-size: .95rem; color: var(--navy); }
.partenaire-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.partenaire-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: .2rem;
}
.partenaire-link:hover { color: var(--blue-light); }

/* ================================================================
   PAGE CLUB — Histoire & Chronogramme
   ================================================================ */
.club-histoire {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.club-histoire p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

/* Chronogramme 2 colonnes */
.chronogramme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  position: relative;
  max-width: 900px;
}
/* Ligne centrale */
.chronogramme::before {
  content: '';
  position: absolute;
  left: 50%;
  top: .5rem; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--border));
  transform: translateX(-50%);
  pointer-events: none;
}
/* Items gauche (impairs) */
.chrono-item:nth-child(odd) {
  grid-column: 1;
  text-align: right;
  padding-right: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}
/* Items droite (pairs) */
.chrono-item:nth-child(even) {
  grid-column: 2;
  text-align: left;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}
/* Dots — côté droit des items gauche */
.chrono-item:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: -9px; top: .3rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  z-index: 1;
}
/* Dots — côté gauche des items droite */
.chrono-item:nth-child(even)::before {
  content: '';
  position: absolute;
  left: -9px; top: .3rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  z-index: 1;
}
.chrono-content { }
.chrono-date {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: .2rem;
}
.chrono-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .45rem;
}
.chrono-txt {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
/* Mobile : colonne unique */
@media (max-width: 600px) {
  .chronogramme {
    grid-template-columns: 1fr;
    padding-left: 1.75rem;
  }
  .chronogramme::before { left: 0; transform: none; }
  .chrono-item:nth-child(odd),
  .chrono-item:nth-child(even) {
    grid-column: 1;
    text-align: left;
    padding-right: 0;
    padding-left: 1.5rem;
  }
  .chrono-item:nth-child(odd)::after,
  .chrono-item:nth-child(even)::before {
    left: -9px; right: auto;
  }
  .chrono-item:nth-child(even)::before { display: none; }
  .chrono-item:nth-child(even)::after {
    content: '';
    position: absolute;
    left: -9px; top: .3rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--blue);
  }
}

/* ================================================================
   FORMULAIRE PARTENAIRES
   ================================================================ */
.partenaire-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: .5rem;
}
.partenaire-form-intro p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.partenaire-avantages {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.partenaire-avantages li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}
.partenaire-avantages li svg {
  width: 18px; height: 18px;
  fill: var(--blue);
  flex-shrink: 0;
}
.partenaire-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,110,181,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: .7; }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}
.form-required-note { font-size: .78rem; color: var(--muted); }
.form-feedback {
  font-size: .88rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  display: none;
}
.form-feedback.success {
  display: block;
  background: #d8f5e4;
  color: #1a7a3d;
  border: 1px solid #a3dab8;
}
.form-feedback.error {
  display: block;
  background: #fde8e8;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}
@media (max-width: 900px) {
  .partenaire-form-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .partenaire-form { padding: 1.25rem; }
}

/* ================================================================
   UTILITAIRES
   ================================================================ */
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.text-center { text-align: center; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #e2eaf3 25%, #cdd8e8 50%, #e2eaf3 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer { 0%{background-position:100%} 100%{background-position:-100%} }

.spin {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: rotate .7s linear infinite;
  margin: 2rem auto;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger    { display: flex; }

  .hero { padding: 3rem 0 5rem; clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .hero-logo { width: 130px; }
  .hero-carousel { flex: 0 0 100%; max-width: 100%; margin-top: 1.5rem; }
  .stats-strip { padding: 1.25rem 0; }
  .stat-item { padding: .4rem 1.5rem; }
  .stat-value { font-size: 1.7rem; }
  .match-cards { grid-template-columns: 1fr; }

  .section { padding: 2.5rem 0; }

  .result-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .result-team.home,
  .result-team.away { text-align: center; }
}

/* ================================================================
   MATCH CARDS — aperçu homepage
   ================================================================ */
.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.match-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: background var(--ease), transform var(--ease);
}
.match-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.match-card-date {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}
.match-card-teams {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  line-height: 1.3;
}
.match-card-teams .vs {
  font-size: .7rem;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: .06em;
  flex-shrink: 0;
}

/* Bouton outline clair */
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 700;
  padding: .55rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}

@media (max-width: 480px) {
  .hero-logo { display: none; }
  .hero-carousel .carousel-slide img { height: 200px; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; gap: .6rem; }
  .hero-ctas .btn { font-size: .8rem; padding: .55rem .9rem; }
  .news-grid, .teams-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
