/* =========================================================================
   CAPO LIMOGES HANDBALL — Feuille de style principale
   Palette dérivée du logo du club : bleu royal & jaune.
   Organisation : 1) Variables 2) Base 3) En-tête/Menu 4) Composants
   5) Sections de page 6) Pied de page 7) Responsive
   ========================================================================= */

/* 1) VARIABLES ----------------------------------------------------------- */
:root {
  --bleu:          #1f2a8c;   /* bleu royal du logo */
  --bleu-fonce:    #141a5c;
  --bleu-clair:    #2f3cc0;
  --jaune:         #ffce00;   /* jaune du maillot/logo */
  --jaune-fonce:   #e0b400;
  --jaune-clair:   #ffe26b;
  --blanc:         #ffffff;
  --gris-bg:       #f4f6fc;
  --gris-bord:     #e3e6f2;
  --texte:         #1a1d2e;
  --texte-doux:    #565b76;
  --ombre:         0 8px 30px rgba(20, 26, 92, 0.10);
  --ombre-forte:   0 18px 50px rgba(20, 26, 92, 0.18);
  --rayon:         16px;
  --rayon-sm:      10px;
  --largeur:       1180px;
  --police-titre:  'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --police-texte:  'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* 2) BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police-texte);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--bleu-fonce);
  font-weight: 800;
}

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.visuellement-cache {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Bouton générique */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--police-titre);
  font-weight: 700; font-size: .95rem;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-jaune { background: var(--jaune); color: var(--bleu-fonce); box-shadow: 0 6px 18px rgba(255,206,0,.35); }
.btn-jaune:hover { background: var(--jaune-clair); }
.btn-bleu  { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-clair); }
.btn-contour { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn-contour:hover { background: var(--bleu); color: #fff; }
.btn-contour-blanc { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-contour-blanc:hover { background: #fff; color: var(--bleu-fonce); }

/* 3) EN-TÊTE / MENU ------------------------------------------------------ */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-bord);
  box-shadow: 0 2px 16px rgba(20,26,92,.06);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo-lien { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-lien img { height: 52px; width: auto; }
.logo-lien .logo-texte { display: flex; flex-direction: column; line-height: 1.05; }
.logo-lien .logo-titre { font-family: var(--police-titre); font-weight: 800; color: var(--bleu-fonce); font-size: 1.05rem; }
.logo-lien .logo-sous { font-size: .72rem; color: var(--jaune-fonce); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 9px 10px; white-space: nowrap;
  font-family: var(--police-titre); font-weight: 700; font-size: .85rem;
  color: var(--bleu-fonce); border-radius: 8px;
}
.menu > li > a:hover, .menu > li.actif > a { background: var(--gris-bg); text-decoration: none; color: var(--bleu); }
.menu > li.actif > a { box-shadow: inset 0 -3px 0 var(--jaune); }

/* Sous-menu */
.sous-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--gris-bord); border-radius: 12px;
  box-shadow: var(--ombre); list-style: none; margin: 6px 0 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.menu > li:hover .sous-menu, .menu > li:focus-within .sous-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sous-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--texte); }
.sous-menu a:hover { background: var(--gris-bg); color: var(--bleu); text-decoration: none; }
.menu .a-fleche::after { content: "▾"; font-size: .7em; margin-left: 4px; opacity: .6; }

/* Bouton menu mobile */
.burger {
  display: none; background: var(--bleu); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 10px; cursor: pointer; font-size: 1.3rem;
}

/* 4) COMPOSANTS ---------------------------------------------------------- */
.ruban-jaune { height: 5px; background: linear-gradient(90deg, var(--jaune) 0%, var(--jaune-fonce) 100%); }

/* Bandeau défilant (résultats / actualité des matchs) */
.ticker { display: flex; align-items: stretch; background: var(--bleu-fonce); color: #fff; overflow: hidden; }
.ticker-label { background: var(--jaune); color: var(--bleu-fonce); font-family: var(--police-titre); font-weight: 800; font-size: .8rem; padding: 11px 16px; white-space: nowrap; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; }
.ticker-fenetre { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-piste { display: inline-flex; white-space: nowrap; will-change: transform; animation: defile 32s linear infinite; }
.ticker:hover .ticker-piste { animation-play-state: paused; }
.ticker-item { padding: 11px 30px; font-size: .88rem; font-weight: 600; color: #fff; text-decoration: none; position: relative; white-space: nowrap; }
a.ticker-item:hover { color: var(--jaune); }
.ticker-item::before { content: "•"; position: absolute; left: 6px; color: var(--jaune); }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-piste { animation: none; } }

.section { padding: 64px 0; }
.section-gris { background: var(--gris-bg); }
.section-bleu { background: var(--bleu); color: #fff; }
.section-bleu h1, .section-bleu h2, .section-bleu h3 { color: #fff; }

.section-titre { text-align: center; margin-bottom: 40px; }
.section-titre .surtitre {
  display: inline-block; font-family: var(--police-titre); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--jaune-fonce); margin-bottom: 8px;
}
.section-bleu .section-titre .surtitre { color: var(--jaune); }
.section-titre h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-titre p { color: var(--texte-doux); max-width: 620px; margin: 8px auto 0; }
.section-bleu .section-titre p { color: rgba(255,255,255,.85); }

/* Carte générique */
.carte {
  background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }

/* Grilles */
.grille { display: grid; gap: 26px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.grille-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Carte actualité */
.actu-carte .actu-img { aspect-ratio: 16/10; overflow: hidden; background: var(--gris-bg); }
.actu-carte .actu-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.actu-carte:hover .actu-img img { transform: scale(1.06); }
.actu-carte .actu-corps { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.actu-date { font-size: .78rem; font-weight: 700; color: var(--jaune-fonce); text-transform: uppercase; letter-spacing: .05em; }
.actu-carte h3 { font-size: 1.18rem; margin: 6px 0 10px; }
.actu-carte p { color: var(--texte-doux); margin: 0 0 16px; font-size: .95rem; }
.actu-carte .actu-lien { margin-top: auto; font-weight: 700; color: var(--bleu); font-family: var(--police-titre); font-size: .9rem; }

/* Badge / étiquette */
.badge {
  display: inline-block; background: var(--jaune); color: var(--bleu-fonce);
  font-family: var(--police-titre); font-weight: 800; font-size: .72rem;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}

/* Carte équipe */
.equipe-carte .equipe-img { aspect-ratio: 4/3; background: var(--gris-bg); overflow: hidden; }
.equipe-carte .equipe-img img { width: 100%; height: 100%; object-fit: cover; }
.equipe-carte .equipe-corps { padding: 16px 18px 20px; }
.equipe-carte h3 { font-size: 1.05rem; margin-bottom: 4px; }
.equipe-meta { font-size: .85rem; color: var(--texte-doux); }
.equipe-meta strong { color: var(--bleu); }

/* Catégorie d'équipes */
.categorie-equipes { margin-bottom: 48px; }
.categorie-titre {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 1.4rem;
}
.categorie-titre::before { content: ""; width: 8px; height: 30px; background: var(--jaune); border-radius: 4px; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.chiffre .nombre { font-family: var(--police-titre); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--jaune); line-height: 1; }
.chiffre .libelle { margin-top: 6px; font-size: .95rem; opacity: .9; }

/* Partenaires */
.partenaire-carte {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon-sm);
  padding: 22px; aspect-ratio: 3/2; transition: box-shadow .2s ease, transform .2s ease;
}
.partenaire-carte:hover { box-shadow: var(--ombre); transform: translateY(-3px); }
.partenaire-carte img { max-height: 90px; width: auto; object-fit: contain; }

/* Bloc de contenu riche (textes éditables) */
.contenu-riche h2 { font-size: 1.6rem; margin-top: 1.6em; }
.contenu-riche h3 { font-size: 1.25rem; margin-top: 1.4em; }
.contenu-riche p { margin: 0 0 1em; }
.contenu-riche ul, .contenu-riche ol { margin: 0 0 1em; padding-left: 1.4em; }
.contenu-riche img { border-radius: var(--rayon-sm); margin: 1em 0; }
.contenu-riche a { text-decoration: underline; }

/* Bannière de page (titre en haut des pages internes) */
.banniere {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
  color: #fff; padding: 56px 0; position: relative; overflow: hidden;
}
.banniere::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,206,0,.25), transparent 70%);
}
.banniere h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 6px; }
.banniere .fil { font-size: .9rem; color: rgba(255,255,255,.8); }
.banniere .fil a { color: var(--jaune); }

/* HERO (accueil) */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,26,92,.92) 0%, rgba(31,42,140,.78) 45%, rgba(20,26,92,.45) 100%); }
.hero-contenu { position: relative; padding: 96px 0 100px; max-width: 660px; }
.hero-contenu .badge { margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 14px; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.hero-boutons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Galerie photos */
.galerie { columns: 4 220px; column-gap: 14px; }
.galerie a { display: block; margin-bottom: 14px; border-radius: var(--rayon-sm); overflow: hidden; break-inside: avoid; }
.galerie img { width: 100%; transition: transform .3s ease; }
.galerie a:hover img { transform: scale(1.05); }

/* Newsletter */
.newsletter-bloc {
  background: linear-gradient(135deg, var(--jaune) 0%, var(--jaune-fonce) 100%);
  border-radius: var(--rayon); padding: 40px; color: var(--bleu-fonce);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
}
.newsletter-bloc h2 { color: var(--bleu-fonce); }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form .ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"], .newsletter-form input[type="text"] {
  flex: 1; min-width: 180px; padding: 14px 16px; border-radius: 10px; border: none;
  font-size: 1rem; font-family: var(--police-texte);
}
.newsletter-form .rgpd { font-size: .8rem; color: rgba(20,26,92,.75); }
.newsletter-form .rgpd a { color: var(--bleu-fonce); }

/* Formulaires (contact) */
.formulaire { display: grid; gap: 16px; max-width: 640px; }
.formulaire label { font-weight: 700; font-family: var(--police-titre); font-size: .9rem; margin-bottom: 4px; display: block; }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gris-bord);
  border-radius: 10px; font-size: 1rem; font-family: var(--police-texte);
}
.formulaire textarea { min-height: 140px; resize: vertical; }

/* Liste de liens / infos */
.bloc-info { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); }
.bloc-info h3 { margin-top: 0; }
.liste-icones { list-style: none; padding: 0; margin: 0; }
.liste-icones li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--gris-bord); }
.liste-icones li:last-child { border-bottom: none; }
.liste-icones .ico { color: var(--jaune-fonce); font-weight: 800; }

/* Message d'état (chargement / erreur JS) */
.etat { text-align: center; color: var(--texte-doux); padding: 40px 0; }

/* Message d'erreur de formulaire */
.message-erreur {
  background: #fdecec; border: 1px solid #f3b4b4; color: #a12020;
  padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: .92rem;
}

/* Écran de chargement — ballon de handball au logo du CAPO */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(circle at 50% 38%, var(--bleu) 0%, var(--bleu-fonce) 72%);
  transition: opacity .5s ease, visibility .5s ease;
}
body.charge #loader { opacity: 0; visibility: hidden; }
.loader-ballon { position: relative; width: 130px; height: 130px; }
.ballon {
  position: relative; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff6cf 0%, var(--jaune) 46%, var(--jaune-fonce) 100%);
  box-shadow: inset -12px -14px 28px rgba(170,132,0,.5), 0 16px 26px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  animation: rebond 1.1s cubic-bezier(.45,.05,.55,.95) infinite;
}
/* Coutures stylisées du ballon de handball */
.ballon::before, .ballon::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 3px solid rgba(31,42,140,.5);
}
.ballon::before { transform: scaleX(.42); }
.ballon::after  { transform: scaleY(.42); }
.ballon img { position: relative; width: 64%; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
/* Anneau de progression qui tourne autour du ballon */
.anneau {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 4px solid transparent; border-top-color: var(--jaune);
  border-right-color: rgba(255,255,255,.35);
  animation: tourne .9s linear infinite;
}
.loader-mot {
  font-family: var(--police-titre); font-weight: 800; color: #fff;
  letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  animation: clignote 1.4s ease-in-out infinite;
}
@keyframes rebond { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-26px) scale(1.04); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes clignote { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 520px) {
  .loader-ballon, .ballon { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .ballon, .anneau, .loader-mot { animation: none; }
}

/* Visuel de repli (logo) quand une image est absente */
.media-vide {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef0fb 0%, #dfe3f7 100%);
}
.media-vide img { width: 48%; max-width: 120px; opacity: .65; }

/* Tableaux (entraînements, cotisation) */
.tableau-enveloppe { overflow-x: auto; max-width: 820px; margin: 0 auto; border-radius: var(--rayon); box-shadow: var(--ombre); }
.tableau { width: 100%; border-collapse: collapse; background: #fff; }
.tableau th, .tableau td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gris-bord); }
.tableau th { background: var(--bleu); color: #fff; font-family: var(--police-titre); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.tableau tr:last-child td { border-bottom: none; }
.tableau tbody tr:nth-child(even) { background: var(--gris-bg); }

/* Fenêtre détail d'une actualité */
.modal {
  position: fixed; inset: 0; z-index: 1000; padding: 24px;
  background: rgba(20,26,92,.7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  animation: apparait .25s ease;
}
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.modal-boite {
  background: #fff; border-radius: var(--rayon); max-width: 760px; width: 100%;
  margin: 40px auto; position: relative; overflow: hidden; box-shadow: var(--ombre-forte);
}
.modal-fermer {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--bleu-fonce); font-size: 1.1rem; font-weight: 700;
}
.modal-fermer:hover { background: var(--jaune); }
.modal-img { max-height: 380px; overflow: hidden; }
.modal-img img { width: 100%; object-fit: cover; }
.modal-corps { padding: 28px 32px 36px; }
.modal-corps h2 { font-size: 1.6rem; margin: 6px 0 16px; }
.modal-corps .galerie { columns: 2 160px; margin-top: 20px; }

/* Lightbox — agrandir une image en plein écran */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(20,26,92,.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; animation: apparait .2s ease; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-fermer { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.15); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox-fermer:hover { background: var(--jaune); color: var(--bleu-fonce); }

/* Image agrandissable au clic */
.img-agrandir { cursor: zoom-in; overflow: hidden; border-radius: var(--rayon-sm); }
.img-agrandir img { width: 100%; display: block; transition: transform .3s ease; }
.img-agrandir:hover img { transform: scale(1.03); }
.img-agrandir.sans { cursor: default; }
.vignette { cursor: zoom-in; }

/* Photo d'équipe agrandissable (indice visuel) */
.equipe-img.agrandir { cursor: zoom-in; position: relative; }
.equipe-img.agrandir::after { content: "⤢"; position: absolute; top: 8px; right: 8px; background: rgba(20,26,92,.6); color: #fff; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; opacity: 0; transition: opacity .2s; }
.equipe-img.agrandir:hover::after { opacity: 1; }
.equipe-niveau { font-weight: 700; color: var(--bleu); margin-bottom: 6px; }
.lien-ffhb { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--bleu); color: #fff; font-family: var(--police-titre); font-weight: 700; font-size: .8rem; text-decoration: none; }
.lien-ffhb:hover { background: var(--jaune); color: var(--bleu-fonce); text-decoration: none; }

/* Intro centrée réutilisable */
.intro-centree { text-align: center; color: var(--texte-doux); max-width: 760px; margin: 0 auto 40px; font-size: 1.05rem; }

/* Diaporama du bandeau d'accueil */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.actif { opacity: 1; }
/* Fond flou pour remplir sans bandes ; photo entière par-dessus (pas de coupe en hauteur) */
.hero-slide-flou { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(22px) brightness(.5); transform: scale(1.15); }
.hero-slide-photo { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; }

/* Décalage des ancres pour passer sous l'en-tête fixe */
[id] { scroll-margin-top: 96px; }

/* Palmarès (page dédiée, festive) */
.palmares-fete { background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 70%); color: #fff; position: relative; overflow: hidden; }
.palmares-fete::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, rgba(255,206,0,.25), transparent 42%), radial-gradient(circle at 82% 85%, rgba(255,206,0,.22), transparent 42%); }
.palmares-trophees { font-size: 2rem; letter-spacing: .28em; margin-bottom: 14px; }
.palmares-section { padding: 24px 26px; border-top: 4px solid var(--jaune); }
.palmares-titre { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; color: var(--bleu); border-bottom: 2px solid var(--jaune); padding-bottom: 8px; margin: 0 0 16px; }
.palmares-coupe { font-size: 1.2rem; }
.palmares-ligne { margin-bottom: 14px; }
.palmares-ligne:last-child { margin-bottom: 0; }
.palmares-cat { display: block; font-weight: 700; color: var(--bleu-fonce); margin-bottom: 7px; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.annee-chip { background: linear-gradient(135deg, var(--jaune) 0%, var(--jaune-fonce) 100%); color: var(--bleu-fonce); font-family: var(--police-titre); font-weight: 700; font-size: .78rem; padding: 3px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(224,180,0,.35); transition: transform .15s ease; }
.annee-chip:hover { transform: translateY(-2px); }

/* Vie du club — blocs alternés image / texte */
.vie-club-liste { display: flex; flex-direction: column; gap: 46px; }
.vie-bloc { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.vie-bloc.inverse .bloc-image { order: 2; }
.vie-bloc.sans-image { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.vie-bloc .bloc-image { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.vie-bloc .bloc-image img { border-radius: var(--rayon); }
.vie-bloc h2 { font-size: 1.45rem; }
.bloc-boutons { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .vie-bloc, .vie-bloc.inverse { grid-template-columns: 1fr; }
  .vie-bloc.inverse .bloc-image { order: 0; }
}

/* 5) PIED DE PAGE -------------------------------------------------------- */
.pied {
  background: var(--bleu-fonce); color: rgba(255,255,255,.82); padding: 56px 0 0;
}
.pied a { color: rgba(255,255,255,.82); }
.pied a:hover { color: var(--jaune); text-decoration: none; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; }
.pied h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied ul li { margin-bottom: 8px; }
.pied .pied-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pied .pied-logo img { height: 56px; }
.pied .reseaux { display: flex; gap: 12px; margin-top: 14px; }
.pied .reseaux a {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.pied .reseaux a:hover { background: var(--jaune); color: var(--bleu-fonce); }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.6); }

/* 6) RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
/* Le menu bascule en version mobile dès qu'il manque de place (évite tout chevauchement) */
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px; border-bottom: 1px solid var(--gris-bord);
    box-shadow: var(--ombre); max-height: 80vh; overflow-y: auto;
    transform: translateY(-120%); transition: transform .25s ease; opacity: 0;
  }
  .menu.ouvert { opacity: 1; transform: translateY(0); }
  .menu > li > a { padding: 12px; border-radius: 8px; font-size: .95rem; white-space: normal; }
  .menu > li.actif > a { box-shadow: inset 3px 0 0 var(--jaune); }
  .sous-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 3px solid var(--jaune);
    border-radius: 0; margin: 0 0 6px 8px; padding: 0 0 0 8px;
  }
}

@media (max-width: 880px) {
  .grille-3, .grille-2 { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .newsletter-bloc { grid-template-columns: 1fr; padding: 28px; }
  .galerie { columns: 2 140px; }
}
@media (max-width: 520px) {
  .grille-4 { grid-template-columns: 1fr; }
  .logo-lien .logo-titre { font-size: .95rem; }
  .hero-contenu { padding: 64px 0; }
}
