/* =========================================================
   Kempo Fédération Shaolin Côte d'Ivoire : site public
   Indigo du kimono, orange et vert ivoiriens, ceinture comme fil conducteur
   ========================================================= */

:root {
  --encre: #15233F;        /* modifiable dans Gestion > Paramètres */
  --orange: #F77F00;       /* modifiable dans Gestion > Paramètres */
  --vert: #00875A;
  --rouge: #B42318;
  --toile: #F2F4F7;
  --papier: #FFFFFF;
  --gris: #556074;
  --trait: #D7DCE4;

  --f-titre: "Saira Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Saira", "Segoe UI", system-ui, -apple-system, sans-serif;

  --largeur: 1180px;
  --rayon: 6px;

  --ceinture: linear-gradient(90deg,
    #FFFFFF 0 11.11%, #F2C200 0 22.22%, #F28A00 0 33.33%, #1E9E4A 0 44.44%,
    #1F5FBF 0 55.55%, #C62828 0 66.66%, #6A3FA0 0 77.77%, #6B4226 0 88.88%, #151515 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-titre); line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.conteneur-texte { width: min(100% - 2.5rem, 760px); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller-contenu { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--encre); padding: .6rem 1rem; z-index: 100; }
.aller-contenu:focus { left: 1rem; }
.discret { color: var(--gris); font-size: .95rem; }
.piege { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Ceinture : le motif de la fédération ---------- */
.ceinture, .ceinture-fine { background: var(--ceinture); }
.entete .ceinture-fine { background-color: #DDE2EA; background-image: linear-gradient(90deg, #DDE2EA 0 11.11%, transparent 11.11%), var(--ceinture); }
.ceinture-fine { height: 4px; }
.ceinture { height: 10px; }
.ceinture-epaisse {
  position: relative;
  height: 26px;
  border-block: 2px solid var(--encre);
}
.ceinture-epaisse::before, .ceinture-epaisse::after {   /* coutures */
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 7px, transparent 7px 12px);
}
.ceinture-epaisse::before { top: 6px; }
.ceinture-epaisse::after { bottom: 6px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .65rem 1.4rem;
  font: 600 1rem/1.2 var(--f-texte);
  border-radius: var(--rayon); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
}
.bouton-orange { background: var(--orange); color: var(--encre); }
.bouton-orange:hover { background: var(--encre); color: #fff; }
.bouton-encre { background: var(--encre); color: #fff; }
.bouton-encre:hover { background: var(--orange); color: var(--encre); }
.bouton-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.bouton-contour:hover { background: var(--encre); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.lien-fort { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--papier); border-bottom: 1px solid var(--trait); }
.entete-ligne { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marque img { width: 44px; height: 44px; object-fit: contain; }
.marque-sigle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--encre); color: #fff; font: 800 1.6rem/1 var(--f-titre);
  box-shadow: inset 0 -6px 0 var(--orange);
}
.marque-nom { font: 700 1.45rem/1 var(--f-titre); color: var(--encre); }
.menu { display: flex; align-items: center; gap: 1.25rem; }
.menu ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.menu ul a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; border-bottom: 3px solid transparent; }
.menu ul a[aria-current="page"], .menu ul a:hover { border-bottom-color: var(--orange); color: var(--encre); }
.menu-bouton { display: none; }

@media (max-width: 1080px) {
  .menu-bouton {
    display: inline-flex; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--encre);
    background: transparent; border-radius: var(--rayon); font: 600 1rem var(--f-texte); color: var(--encre); cursor: pointer;
  }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--papier); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--trait);
  }
  .menu.ouvert { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
  .menu ul a[aria-current="page"] { border-bottom-color: var(--trait); box-shadow: inset 4px 0 0 var(--orange); padding-left: .8rem; }
}

/* ---------- Accueil ---------- */
.hero { background: var(--toile); padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grille { display: grid; gap: 2.5rem; align-items: end; }
.hero-avec-image .hero-grille { grid-template-columns: 1.15fr .85fr; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 800; line-height: .9;
  max-width: 11ch; margin-bottom: .35em; letter-spacing: -.01em;
}
.chapeau { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 52ch; color: #2C3A55; }
.chapeau-court { font-size: 1.12rem; max-width: 62ch; color: #2C3A55; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); border-bottom: 8px solid var(--encre); }

.bilan { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.phrase-vivante {
  font-size: clamp(1.45rem, 3.2vw, 2.35rem); line-height: 1.45; max-width: 34em; margin-bottom: .8rem; font-weight: 400;
}
.phrase-vivante strong {
  font: 800 1.55em/1 var(--f-titre); padding: 0 .04em;
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: .1em; text-underline-offset: .1em;
}
.phrase-vivante a { text-decoration: none; }
.phrase-vivante a:hover strong { color: var(--orange); }

.bloc { padding: clamp(3rem, 7vw, 5rem) 0; }
.bloc-serre { padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 7vw, 5rem); }
.bloc-toile { background: var(--toile); }
.bloc-encre { background: var(--encre); color: #fff; }
.bloc-encre a:not(.bouton) { color: #fff; }
.titre-section { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.titre-petit { font-size: 1.5rem; margin-top: .4rem; }
.espace-haut { margin-top: 3rem; }

.prochaine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.prochaine .titre-section { color: var(--orange); font-size: 1.4rem; margin-bottom: .3rem; }
.prochaine-nom { font: 700 clamp(2rem, 4.5vw, 3.2rem)/1.02 var(--f-titre); max-width: 22ch; margin-bottom: .6rem; }
.prochaine-infos { color: #C9D2E3; }
.compte-rebours { display: flex; gap: 1.75rem; }
.compte-rebours div { display: flex; flex-direction: column; align-items: center; }
.compte-rebours span { font: 800 clamp(3rem, 7vw, 4.6rem)/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.compte-rebours small { color: #C9D2E3; font-size: .95rem; }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.deux-colonnes-large { grid-template-columns: 1.4fr 1fr; }

.villes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.villes a {
  display: flex; justify-content: space-between; gap: 1rem; padding: .9rem .25rem;
  border-bottom: 1px solid var(--trait); text-decoration: none; font-weight: 600; font-size: 1.15rem;
}
.villes a:hover { background: var(--toile); }
.villes-n { color: var(--gris); font-weight: 400; font-size: 1rem; }

.progression { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; }
.progression li { flex: 1; min-width: 0; }
.progression li::before {
  content: ""; display: block; height: 18px; background: var(--c);
  border-block: 2px solid var(--encre);
}
.progression li:first-child::before { border-left: 2px solid var(--encre); border-radius: 4px 0 0 4px; }
.progression li:last-child::before { border-right: 2px solid var(--encre); border-radius: 0 4px 4px 0; }
.progression span { display: block; padding-top: .5rem; font-size: .9rem; color: var(--gris); overflow-wrap: anywhere; }
@media (max-width: 640px) { .progression span { writing-mode: vertical-rl; transform: rotate(180deg); padding: .5rem 0 0; margin: 0 auto; } }

.actus { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem 2rem; }
.actu { border-top: 3px solid var(--encre); padding-top: 1rem; }
.actu img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: .8rem; border-radius: var(--rayon); }
.actu h2, .actu h3 { font-size: 1.55rem; margin-bottom: .4rem; }
.actu h2 a, .actu h3 a { text-decoration: none; }

.appel { background: var(--orange); }
.appel-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.appel p { max-width: 58ch; margin: 0; }
.appel .bouton-orange { background: var(--encre); color: #fff; }
.appel .bouton-orange:hover { background: #fff; color: var(--encre); }

/* ---------- Pages intérieures ---------- */
.entete-page { background: var(--toile); padding: clamp(2.25rem, 6vw, 3.75rem) 0 clamp(1.75rem, 4vw, 2.5rem); border-bottom: 1px solid var(--trait); }
.entete-page h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; max-width: 20ch; }
.entete-page .chapeau-court { margin: 0; }
.entete-noire { background: var(--encre); color: #fff; border-bottom: 10px solid #151515; }
.entete-noire .chapeau-court { color: #C9D2E3; }
.fil { font-size: .95rem; margin-bottom: .6rem; color: var(--gris); }

.filtres { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; }
.filtres label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; flex: 1 1 220px; }
.resultat-compte { color: var(--gris); margin-bottom: .5rem; }

.liste-clubs, .liste-compets, .liste-stages, .liste-personnes { list-style: none; margin: 0; padding: 0; }
.liste-clubs { border-top: 2px solid var(--encre); }
.club-ligne {
  display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: .4rem 1.25rem; align-items: baseline;
  padding: 1rem .5rem; border-bottom: 1px solid var(--trait); text-decoration: none;
}
.club-ligne:hover { background: var(--toile); color: var(--encre); }
.club-nom { font: 700 1.4rem/1.1 var(--f-titre); }
.club-ville { font-weight: 600; }
.club-instructeur, .club-eleves { color: var(--gris); font-size: .95rem; }
@media (max-width: 760px) { .club-ligne { grid-template-columns: 1fr auto; } .club-instructeur { grid-column: 1 / -1; } .club-eleves { grid-row: 1; grid-column: 2; } }

.fiche { margin: 0; border-top: 2px solid var(--encre); }
.fiche > div { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--trait); }
.fiche dt { color: var(--gris); }
.fiche dd { margin: 0; font-weight: 600; }
.fiche-ligne { border-top: 0; display: flex; flex-wrap: wrap; gap: 0 2rem; margin: .5rem 0 1rem; }
.fiche-ligne > div { display: block; border: 0; padding: .25rem 0; }
.fiche-ligne dt { font-size: .9rem; }

.barre-grades { display: flex; height: 22px; border: 2px solid var(--encre); border-radius: 4px; overflow: hidden; margin-bottom: 2rem; }
.barre-grades span { background: var(--c); min-width: 6px; }
.barre-grades span + span { border-left: 1px solid rgba(0,0,0,.25); }

.compet-ligne {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1rem .5rem; border-bottom: 1px solid var(--trait); text-decoration: none;
}
.liste-compets { border-top: 2px solid var(--encre); }
.compet-ligne:hover { background: var(--toile); color: var(--encre); }
.compet-date { display: flex; flex-direction: column; line-height: 1.1; color: var(--gris); font-size: .9rem; }
.compet-jour { font: 800 2.4rem/1 var(--f-titre); color: var(--encre); }
.compet-corps { display: flex; flex-direction: column; gap: .15rem; }
.compet-nom { font: 700 1.4rem/1.1 var(--f-titre); }
@media (max-width: 600px) { .compet-ligne { grid-template-columns: 64px 1fr; } .compet-ligne .etiquette { grid-column: 2; justify-self: start; } }

.etiquette { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; border: 1.5px solid currentColor; }
.etiquette-a_venir { color: var(--vert); }
.etiquette-en_cours { background: var(--orange); border-color: var(--orange); color: var(--encre); }
.etiquette-terminee { color: var(--gris); }

.echelle-grades { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); counter-reset: grade; }
.echelle-grades li {
  display: grid; grid-template-columns: 34px 120px 1.3fr 1.5fr 9rem; gap: 1rem; align-items: center;
  padding: .85rem .25rem; border-bottom: 1px solid var(--trait); counter-increment: grade;
}
.echelle-grades li::before { content: counter(grade); font: 700 1.2rem var(--f-titre); color: var(--gris); }
.echelle-ceinture { height: 16px; background: var(--c); border: 2px solid var(--encre); border-radius: 3px; position: relative; }
.echelle-ceinture::after { content: ""; position: absolute; left: 50%; top: -5px; width: 12px; height: 22px; transform: translateX(-50%); background: var(--c); border: 2px solid var(--encre); border-radius: 3px; }
.echelle-nom { font: 700 1.3rem/1.1 var(--f-titre); }
.echelle-desc { color: var(--gris); }
.echelle-prix { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .echelle-grades li { grid-template-columns: 28px 70px 1fr; }
  .echelle-desc { grid-column: 3; }
  .echelle-prix { grid-column: 3; text-align: left; }
}

.etapes { margin: 1rem 0 0; padding-left: 1.4rem; max-width: 70ch; }
.etapes li { padding: .5rem 0 .5rem .5rem; }
.etapes li::marker { font: 700 1.3rem var(--f-titre); color: var(--orange); }

.tableau-defilant { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; min-width: 560px; }
.tableau th, .tableau td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--trait); }
.tableau thead th { border-bottom: 2px solid var(--encre); font-size: .95rem; color: var(--gris); font-weight: 600; }
.tableau tbody th { font-weight: 600; }

.stage { padding: 1.5rem 0; border-bottom: 1px solid var(--trait); }
.liste-stages { border-top: 2px solid var(--encre); }
.stage-entete { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.stage-titre { font-size: 1.8rem; margin: 0; }

.liste-personnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 2rem; border-top: 2px solid var(--encre); }
.liste-personnes li { display: flex; flex-direction: column; padding: .9rem 0 .9rem 1rem; border-bottom: 1px solid var(--trait); box-shadow: inset 6px 0 0 var(--c); }
.personne-nom { font-weight: 600; }

.mot { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; }
.mot-photo { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); }
.mot blockquote { margin: 0; font-size: 1.15rem; }
.signature { font: 700 1.3rem var(--f-titre); }
@media (max-width: 640px) { .mot { grid-template-columns: 1fr; } }

.texte { max-width: 68ch; }
.article-image { width: 100%; border-radius: var(--rayon); margin-bottom: 2rem; }

.vide { padding: 1.5rem; background: var(--toile); border-left: 4px solid var(--orange); }
.pagination { display: flex; gap: .5rem; margin-top: 2.5rem; }
.pagination a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1.5px solid var(--trait); text-decoration: none; border-radius: var(--rayon); }
.pagination a[aria-current="page"] { background: var(--encre); color: #fff; border-color: var(--encre); }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; gap: 1.1rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.champ > label, .champ legend, .formulaire-ligne > label { font-weight: 600; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
input, select, textarea {
  font: inherit; color: var(--encre); width: 100%;
  min-height: 48px; padding: .6rem .8rem;
  border: 1.5px solid #B9C1CE; border-radius: var(--rayon); background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 45%, transparent); }
.choix { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1.25rem; font-weight: 400; min-height: 44px; }
.choix input { width: 20px; height: 20px; min-height: 0; accent-color: var(--encre); }
.choix-accord { align-items: flex-start; font-size: .95rem; }
.choix-accord input { margin-top: .2rem; flex: none; }
.encadre { border: 1.5px dashed #B9C1CE; border-radius: var(--rayon); padding: 1rem 1.1rem; margin: 0; background: var(--toile); }
.encadre legend { font-weight: 600; padding: 0 .4rem; }
.champ-bouton { display: flex; gap: .6rem; }
.champ-bouton input { flex: 1; text-transform: uppercase; }
.formulaire-ligne { gap: .4rem; margin-bottom: 1.5rem; }

.onglets { display: flex; gap: 0; margin-bottom: 1.75rem; border-bottom: 2px solid var(--encre); }
.onglets a { padding: .8rem 1.2rem; text-decoration: none; font-weight: 600; border: 2px solid transparent; border-bottom: 0; border-radius: var(--rayon) var(--rayon) 0 0; margin-bottom: -2px; }
.onglets a[aria-selected="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }

.alerte { padding: 1rem 1.2rem; border-radius: var(--rayon); margin-bottom: 1.5rem; border-left: 5px solid; }
.alerte ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.alerte p:last-child { margin-bottom: 0; }
.alerte-erreur { background: #FDECEA; border-color: var(--rouge); color: #5F1410; }
.alerte-succes { background: #E6F4EE; border-color: var(--vert); color: #0B4430; }

.carte-licence { border: 2px solid var(--encre); border-radius: var(--rayon); padding: 1.25rem 1.4rem; }
.carte-etat { font: 800 2rem/1 var(--f-titre); margin-bottom: 1rem; }
.carte-valide { border-top: 10px solid var(--vert); }
.carte-valide .carte-etat { color: var(--vert); }
.carte-invalide { border-top: 10px solid var(--rouge); }
.carte-invalide .carte-etat { color: var(--rouge); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #DCE2EC; margin-top: 0; }
.pied a { color: #fff; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.pied-nom { font: 700 1.6rem/1.1 var(--f-titre); color: #fff; }
.pied-titre { font-size: 1.25rem; color: #fff; }
.pied .discret { color: #AEB8CA; }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { padding: .25rem 0; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0; font-size: .9rem; color: #AEB8CA; }
.pied-bas p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-avec-image .hero-grille, .deux-colonnes, .deux-colonnes-large { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .champs-2, .pied-grille { grid-template-columns: 1fr; }
  .compte-rebours { gap: 1.1rem; }
  .actions .bouton { width: 100%; }
  .champ-bouton { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* =========================================================
   v2 : vitrine, médias, galerie, partenaires
   ========================================================= */

.bandeau { background: #FFD23F; color: var(--encre); font-weight: 600; font-size: .95rem; }
.bandeau .conteneur { padding: .55rem 0; text-align: center; }
.bandeau a { text-decoration-color: var(--encre); }

.bouton-clair { border-color: #fff; color: #fff; background: rgba(21, 35, 63, .25); }
.bouton-clair:hover { background: #fff; color: var(--encre); }

/* Vitrine (diaporama ou vidéo de fond) */
.vitrine { position: relative; min-height: clamp(460px, 78vh, 760px); background: var(--encre); overflow: hidden; color: #fff; }
.vitrine-diapo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; display: flex; align-items: flex-end; }
.vitrine-diapo.actif { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.vitrine-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vitrine-diapo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--encre) 88%, transparent) 0%, color-mix(in srgb, var(--encre) 55%, transparent) 45%, transparent 80%),
              linear-gradient(0deg, color-mix(in srgb, var(--encre) 80%, transparent) 0%, transparent 45%);
}
.vitrine-texte { position: relative; z-index: 2; padding-bottom: clamp(4.5rem, 10vh, 6.5rem); }
.vitrine-titre { font: 800 clamp(2.8rem, 7.5vw, 6rem)/.92 var(--f-titre); max-width: 13ch; margin-bottom: .3em; letter-spacing: -.01em; text-wrap: balance; }
.vitrine-chapeau { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 48ch; color: #E4E9F2; }
.vitrine-credit { position: absolute; right: .75rem; bottom: .5rem; z-index: 2; font-size: .75rem; color: #C9D2E3; margin: 0; }
.vitrine-commandes { position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 3; display: flex; align-items: center; gap: 1rem; }
.vitrine-points { display: flex; gap: .5rem; }
.vitrine-points button { width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.vitrine-points button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: rgba(255,255,255,.45); border-radius: 2px; }
.vitrine-points button[aria-current="true"]::before { background: var(--orange); }
.vitrine-pause { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; border-radius: var(--rayon); padding: .3rem .8rem; font: 500 .9rem var(--f-texte); cursor: pointer; min-height: 36px; }

.titre-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.titre-ligne .titre-section { margin: 0; }
.titre-ligne .lien-fort { margin: 0; }
.bloc-encre .titre-section { color: #fff; }

/* Mosaïque de l'accueil */
.mosaique { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 210px); grid-auto-flow: dense; gap: .6rem; }
.mosaique li { overflow: hidden; border-radius: var(--rayon); background: #22314F; }
.mosaique-0 { grid-column: span 2; grid-row: span 2; }
.mosaique-5, .mosaique-6 { grid-column: span 2; }
.mosaique a { display: block; height: 100%; }
.mosaique img, .galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaique a:hover img, .galerie a:hover img, .mosaique a:focus-visible img { transform: scale(1.04); }
@media (max-width: 700px) { .mosaique { grid-template-columns: 1fr 1fr; } .mosaique-5, .mosaique-6 { grid-column: span 1; } }

/* Histoire */
.histoire { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.histoire-photo { margin: 0; }
.histoire-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); border-bottom: 8px solid #151515; filter: saturate(.9); }
.histoire-photo figcaption { font-size: .9rem; color: var(--gris); margin-top: .6rem; }
.citation { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 4px solid var(--orange); font: 700 clamp(1.4rem, 2.5vw, 1.8rem)/1.2 var(--f-titre); }
@media (max-width: 760px) { .histoire { grid-template-columns: 1fr; } .histoire-photo { max-width: 280px; } }

/* Vidéos */
.grille-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.video { margin: 0; }
.video figcaption { margin-top: .7rem; }
.video-cadre { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--encre); border-radius: var(--rayon); overflow: hidden; }
.video-cadre img, .video-cadre video, .video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-lecture { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-bouton { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 8px rgba(255,255,255,.25); }
.video-bouton::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--encre); }
.video-lecture:hover .video-bouton, .video-lien:hover .video-bouton { background: #fff; }

/* Partenaires */
.partenaires { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem; }
.partenaires li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.partenaires img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.partenaires li:hover img { filter: none; opacity: 1; }

/* Galerie */
.albums { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.albums a { padding: .45rem .9rem; border: 1.5px solid var(--trait); border-radius: 999px; text-decoration: none; font-weight: 500; }
.albums a span { color: var(--gris); font-weight: 400; }
.albums a[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.albums a[aria-current="page"] span { color: #C9D2E3; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.galerie li { aspect-ratio: 1; overflow: hidden; border-radius: var(--rayon); background: var(--toile); }
.galerie a { display: block; height: 100%; }

/* Visionneuse photo */
.visionneuse { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10, 16, 30, .94); color: #fff; }
.visionneuse::backdrop { background: rgba(10, 16, 30, .94); }
.visionneuse-corps { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 4rem 4.5rem 1rem; }
.visionneuse img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
@media (max-width: 600px) { .visionneuse-corps { padding: 4rem .5rem 1rem; } .visionneuse-prec, .visionneuse-suiv { top: auto !important; bottom: 1rem; } }
.visionneuse p { text-align: center; margin: .75rem 0 0; }
.visionneuse button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; min-width: 48px; min-height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.visionneuse button:hover { background: var(--orange); color: var(--encre); }
.visionneuse-fermer { top: .75rem; right: .75rem; }
.visionneuse-prec { left: .75rem; top: 50%; }
.visionneuse-suiv { right: .75rem; top: 50%; }

/* Carte */
.carte iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3); }

/* Réseaux sociaux */
.reseaux { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.reseaux a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.reseaux .icone { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(255,255,255,.1); }
.reseaux a:hover .icone { background: var(--orange); color: var(--encre); }

@media (prefers-reduced-motion: reduce) { .vitrine-diapo { transition: none; } }

/* =========================================================
   v3 : design modernisé
   ========================================================= */

body { background: #fff; }
.centre { text-align: center; justify-content: center; }
.bouton { transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.bouton:hover { transform: translateY(-2px); }
.bouton-orange { box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--orange) 80%, transparent); }
.bouton-petit { min-height: 42px; padding: .5rem 1.1rem; margin-top: 1rem; }
.picto { flex: none; }

.surtitre { display: inline-flex; align-items: center; gap: .65rem; color: var(--orange); font-weight: 600; font-size: 1rem; margin-bottom: .35rem; }
.surtitre::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.surtitre.centre { display: flex; }
.surtitre-clair { color: #FFB25C; }
.titre-section { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.titre-ligne { align-items: flex-end; margin-bottom: 2.25rem; }

/* Barre de contact */
.barre-haut { background: var(--encre); color: #D6DDEA; font-size: .88rem; }
.barre-haut a { color: #fff; text-decoration: none; }
.barre-haut a:hover { color: var(--orange); }
.barre-haut-ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.barre-contacts, .barre-reseaux { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.4rem; }
.barre-contacts li, .barre-contacts a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.barre-contacts .picto { width: 16px; height: 16px; color: var(--orange); }
.barre-droite { display: flex; align-items: center; gap: 1.2rem; }
.barre-reseaux { gap: .35rem; }
.barre-reseaux a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.barre-reseaux a:hover { background: rgba(255,255,255,.1); }
.barre-reseaux .icone { width: 16px; height: 16px; }
.barre-espace { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.barre-espace .picto { width: 16px; height: 16px; }
@media (max-width: 1280px) { .masque-tablette { display: none !important; } }
@media (max-width: 900px) { .masque-mobile { display: none !important; } }
@media (max-width: 640px) { .masque-mobile, .barre-reseaux { display: none !important; } .barre-espace span { display: none; } }

/* En-tête */
.entete { transition: box-shadow .25s; }
.entete.defile { box-shadow: 0 10px 30px -18px rgba(21, 35, 63, .45); }
.entete-ligne { min-height: 82px; }
.marque img { width: 52px; height: 52px; border-radius: 50%; }
.marque-textes { display: flex; flex-direction: column; line-height: 1.05; }
.marque-nom { font-size: 1.55rem; }
.marque-sous { font-size: .82rem; color: var(--gris); font-weight: 500; }
@media (max-width: 420px) { .marque-sous { display: none; } }

/* En-têtes des pages intérieures avec image */
.entete-page {
  position: relative; color: #fff; border-bottom: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--encre) 94%, transparent) 30%, color-mix(in srgb, var(--encre) 70%, transparent)), var(--image-entete, none) center / cover, var(--encre);
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 4.5rem);
}
.entete-page h1 { color: #fff; }
.entete-page .chapeau-court, .entete-page .discret { color: #D6DDEA; }
.entete-page .fil, .entete-page .fil a { color: #FFB25C; }
.entete-page .etiquette-a_venir { color: #6EE7B7; }
.entete-page .etiquette-terminee { color: #D6DDEA; }

/* Vitrine */
.vitrine { min-height: clamp(520px, 86vh, 820px); }
.vitrine-diapo.actif .vitrine-media { animation: zoom-lent 10s ease-out both; }
@keyframes zoom-lent { from { transform: scale(1.1); } to { transform: scale(1); } }
.vitrine-texte { padding-top: 3rem; padding-bottom: 12.5rem; }
.vitrine-surtitre { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: #FFB25C; margin-bottom: .9rem; }
.vitrine-surtitre::before { content: ""; width: 34px; height: 3px; background: var(--orange); border-radius: 2px; }
.vitrine-titre { max-width: 14ch; }
.vitrine-diapo.actif .vitrine-texte > * { animation: monter .9s cubic-bezier(.2,.7,.2,1) both; }
.vitrine-diapo.actif .vitrine-texte > :nth-child(2) { animation-delay: .1s; }
.vitrine-diapo.actif .vitrine-texte > :nth-child(3) { animation-delay: .2s; }
.vitrine-diapo.actif .vitrine-texte > :nth-child(4) { animation-delay: .3s; }
@keyframes monter { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.vitrine-commandes { bottom: 7rem; }
@media (max-width: 560px) { .vitrine-texte { padding-bottom: 11rem; } .vitrine-commandes { bottom: 5.6rem; } .vitrine-credit { bottom: 4.6rem; } }
.vitrine-fleche { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(21,35,63,.35); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.vitrine-fleche:hover { background: var(--orange); border-color: var(--orange); color: var(--encre); }
.vitrine-credit { bottom: 6.6rem; }

/* Chiffres */
.chiffres-bloc { position: relative; z-index: 5; margin-top: -84px; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.chiffres a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.3rem 1.2rem 1.2rem; text-decoration: none;
  background: #fff; border-radius: 14px; box-shadow: 0 22px 45px -28px rgba(21,35,63,.55), 0 0 0 1px rgba(21,35,63,.06);
  border-bottom: 4px solid transparent; transition: transform .25s, border-color .25s;
}
.chiffres a:hover { transform: translateY(-4px); border-bottom-color: var(--orange); color: var(--encre); }
.chiffre-icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 14%, #fff); color: #C25E00; margin-bottom: .3rem; }
.chiffre-nombre { font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.chiffre-libelle { color: var(--gris); font-size: .95rem; line-height: 1.3; }
.chiffres-note { display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 0; color: var(--gris); font-size: .92rem; }
.point-direct { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (max-width: 1100px) { .chiffres { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .chiffres { grid-template-columns: repeat(2, 1fr); gap: .7rem; } .chiffres a { padding: 1rem; } .chiffres-bloc { margin-top: -60px; } }

/* Pourquoi le Kempo */
.atouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.atout a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: var(--encre); }
.atout img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.atout a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--encre) 95%, transparent) 8%, color-mix(in srgb, var(--encre) 30%, transparent) 55%, transparent 80%); }
.atout a:hover img { transform: scale(1.07); }
.atout-texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.atout-titre { font: 800 1.75rem/1.05 var(--f-titre); }
.atout-titre::after { content: ""; display: block; width: 38px; height: 3px; margin-top: .6rem; background: var(--orange); transition: width .3s; }
.atout a:hover .atout-titre::after { width: 70px; }
.atout-desc { color: #E4E9F2; font-size: .98rem; line-height: 1.45; }
@media (max-width: 1000px) { .atouts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .atouts { grid-template-columns: 1fr; } .atout a { aspect-ratio: 4 / 3; } }

/* Compétition */
.prochaine-bloc { background: radial-gradient(ellipse at 85% 30%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 55%), var(--encre); }
.prochaine-infos { display: block; line-height: 1.9; }
.prochaine-infos .picto { vertical-align: -5px; color: var(--orange); }
.compte-rebours div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem 1.2rem; min-width: 104px; }

/* Clubs */
.recherche-club { display: flex; gap: .6rem; max-width: 720px; margin-bottom: 1.2rem; }
.recherche-club input { min-height: 54px; border-radius: 999px; padding-left: 1.3rem; border-color: var(--trait); }
.recherche-club .bouton { border-radius: 999px; min-height: 54px; }
.villes-pastilles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.villes-pastilles a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .95rem; background: #fff; border: 1px solid var(--trait); border-radius: 999px; text-decoration: none; font-weight: 500; }
.villes-pastilles a span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--toile); font-size: .82rem; font-weight: 700; }
.villes-pastilles a:hover { border-color: var(--orange); color: var(--encre); }
.cartes-clubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cartes-clubs a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto auto; gap: .2rem 1rem; padding: 1.25rem; height: 100%; background: #fff; border-radius: 14px; text-decoration: none; border: 1px solid var(--trait); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cartes-clubs a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(21,35,63,.5); border-color: transparent; color: var(--encre); }
.carte-club-sigle { grid-row: 1 / span 4; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--encre); color: #fff; font: 800 1.5rem var(--f-titre); box-shadow: inset 0 -5px 0 var(--orange); }
.carte-club-nom { font: 700 1.35rem/1.1 var(--f-titre); }
.carte-club-ville { display: inline-flex; align-items: center; gap: .3rem; color: var(--gris); font-size: .93rem; }
.carte-club-ville .picto { width: 16px; height: 16px; color: var(--orange); }
.carte-club-instr { font-size: .93rem; color: #3B4860; }
.carte-club-nb { margin-top: .4rem; justify-self: start; font-size: .82rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--vert) 12%, #fff); color: var(--vert); }
@media (max-width: 1000px) { .cartes-clubs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cartes-clubs { grid-template-columns: 1fr; } .recherche-club { flex-direction: column; } }

/* Histoire */
.histoire-bloc {
  position: relative; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--encre) 96%, transparent) 35%, color-mix(in srgb, var(--encre) 82%, transparent)), var(--fond, none) center / cover fixed, var(--encre);
}
@media (hover: none) { .histoire-bloc { background-attachment: scroll; } }
.histoire-grille { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.histoire-portrait { margin: 0; }
.histoire-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 18px 18px 0 var(--orange); }
.histoire-portrait figcaption { margin-top: 1.6rem; color: #C9D2E3; font-size: .92rem; }
.histoire-texte .titre-section { color: #fff; }
.histoire-resume { font-size: 1.12rem; color: #DCE2EC; max-width: 60ch; }
.frise { list-style: none; margin: 1.8rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: f; }
.frise li { position: relative; padding-top: 1.4rem; border-top: 2px solid rgba(255,255,255,.2); display: flex; flex-direction: column; gap: .3rem; }
.frise li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 30%, transparent); }
.frise strong { font: 700 1.3rem var(--f-titre); color: #FFB25C; }
.frise span { color: #DCE2EC; font-size: .95rem; }
.histoire-texte .citation { color: #fff; margin-bottom: 1.8rem; }
@media (max-width: 860px) { .histoire-grille { grid-template-columns: 1fr; } .histoire-portrait { max-width: 300px; } .frise { grid-template-columns: 1fr; } }

/* Mosaïque */
.mosaique { gap: .8rem; }
.mosaique li { border-radius: 12px; }
.mosaique a { position: relative; }
.mosaique-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .75rem; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(0deg, rgba(10,16,30,.85), transparent); opacity: 0; transform: translateY(8px); transition: .3s; }
.mosaique a:hover .mosaique-legende, .mosaique a:focus-visible .mosaique-legende { opacity: 1; transform: none; }

/* Progression des ceintures */
.progression li::before { height: 22px; }

/* Actualités */
.cartes-actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.carte-actu { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--trait); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.carte-actu:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(21,35,63,.55); }
.carte-actu-image { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--encre), #2A3E66); overflow: hidden; }
.carte-actu-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.carte-actu:hover .carte-actu-image img { transform: scale(1.05); }
.carte-actu-date { position: absolute; left: 1rem; bottom: 1rem; background: var(--orange); color: var(--encre); font-weight: 700; font-size: .82rem; padding: .3rem .7rem; border-radius: 6px; }
.carte-actu-corps { padding: 1.2rem 1.3rem 1.4rem; }
.carte-actu h3 { font-size: 1.5rem; }
.carte-actu h3 a { text-decoration: none; }
.carte-actu p { color: #3B4860; margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .cartes-actus { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cartes-actus { grid-template-columns: 1fr; } }

/* Vidéos sur fond sombre */
.bloc-encre .video figcaption { color: #fff; }
.bloc-encre .video figcaption span { color: #C9D2E3; }
.video-cadre { border-radius: 14px; box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }

/* Partenaires qui défilent */
.defilement { overflow: hidden; padding: 1.5rem 0 .5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defilement-piste { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; width: max-content; animation: defiler 38s linear infinite; }
.defilement:hover .defilement-piste, .defilement:focus-within .defilement-piste { animation-play-state: paused; }
.defilement-piste li { flex: none; width: 190px; height: 110px; display: grid; place-items: center; padding: .9rem; background: #fff; border: 1px solid var(--trait); border-radius: 12px; }
.defilement-piste img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .3s; }
.defilement-piste li:hover img { filter: none; opacity: 1; }
@keyframes defiler { to { transform: translateX(calc(-50% - .625rem)); } }
@media (prefers-reduced-motion: reduce) { .defilement-piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .defilement-piste li[aria-hidden] { display: none; } .defilement { -webkit-mask-image: none; mask-image: none; } }

/* Appel à l'action */
.appel-bloc { position: relative; color: #fff; padding: clamp(4rem, 9vw, 6.5rem) 0; background: linear-gradient(100deg, color-mix(in srgb, var(--orange) 92%, transparent) 0%, color-mix(in srgb, #C25E00 88%, transparent) 45%, color-mix(in srgb, var(--encre) 85%, transparent) 100%), var(--fond, none) center / cover, var(--orange); }
.appel-grille { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.appel-bloc .titre-section { color: #fff; }
.appel-bloc p { max-width: 54ch; font-size: 1.12rem; margin: 0; color: #FFF4E8; }
.appel-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.appel-bloc .bouton-orange { background: var(--encre); color: #fff; box-shadow: none; }
.appel-bloc .bouton-orange:hover { background: #fff; color: var(--encre); }

/* Pied de page */
.pied { background: #0F1A30; }
.pied-haut { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.pied-marque img { border-radius: 50%; margin-bottom: 1rem; background: #fff; }
.pied-marque p { color: #AEB8CA; font-size: .97rem; }
.pied-nom { font-size: 1.7rem !important; color: #fff !important; }
.pied-titre { font-size: 1.35rem; color: #fff; margin-bottom: 1rem; }
.pied-titre::after { content: ""; display: block; width: 30px; height: 3px; background: var(--orange); margin-top: .5rem; border-radius: 2px; }
.pied .liste-simple a { color: #DCE2EC; text-decoration: none; }
.pied .liste-simple a:hover { color: var(--orange); }
.pied .liste-simple li { padding: .3rem 0; }
.pied-reseaux { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pied-reseaux a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.pied-reseaux a:hover { background: var(--orange); color: var(--encre); transform: translateY(-3px); }
.pied-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.pied-contacts li { display: flex; gap: .7rem; align-items: flex-start; color: #DCE2EC; font-size: .97rem; }
.pied-contacts .picto { color: var(--orange); width: 20px; height: 20px; margin-top: .15rem; }
.pied-contacts a { color: #fff; text-decoration: none; }
.pied-contacts a:hover { color: var(--orange); }
.pied-bas { background: #0A1222; border-top: 0; padding: 0; }
.pied-bas-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding: 1.1rem 0; font-size: .87rem; color: #8F9AB0; }
.pied-bas-ligne p { margin: 0; }
.pied-bas-ligne a { color: #DCE2EC; }
.pied-credits { flex: 1 1 320px; }
@media (max-width: 1000px) { .pied-haut { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pied-haut { grid-template-columns: 1fr; padding-top: 3rem; } }

/* Bouton haut de page */
.haut-de-page { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--encre); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s; }
.haut-de-page.visible { opacity: 1; transform: none; pointer-events: auto; }
.haut-de-page:hover { background: var(--encre); color: #fff; }

/* Apparition au défilement (uniquement si JavaScript est actif) */
html:not(.sans-js) .apparition { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html:not(.sans-js) .apparition.vue { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.sans-js) .apparition { opacity: 1; transform: none; transition: none; }
  .vitrine-diapo.actif .vitrine-media, .vitrine-diapo.actif .vitrine-texte > * { animation: none; }
}
@media (max-width: 560px) {
  .vitrine-fleche, .vitrine-credit { display: none; }
  .vitrine-points button { width: 30px; }
  .vitrine-surtitre { font-size: .9rem; }
}

/* =========================================================
   v4 : invitation à installer l'application mobile
   ========================================================= */
.invite-appli {
  position: fixed; z-index: 80; right: 1.25rem; bottom: 1.25rem; width: min(420px, calc(100% - 2rem));
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.25rem 1.25rem 1.1rem;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(15, 26, 48, .55), 0 0 0 1px rgba(21,35,63,.08);
  border-top: 5px solid var(--orange);
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.invite-appli.ouverte { opacity: 1; transform: none; }
.invite-appli[hidden] { display: none; }
.invite-appli img { width: 64px; height: 64px; border-radius: 16px; }
.invite-titre { font: 800 1.35rem/1.1 var(--f-titre); margin: .1rem 0 .3rem; }
.invite-texte, .invite-ios { font-size: .95rem; color: #3B4860; margin: 0 0 .8rem; line-height: 1.45; }
.invite-ios { background: var(--toile); padding: .6rem .75rem; border-radius: 8px; }
.invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.invite-actions .bouton { min-height: 44px; padding: .5rem 1.1rem; }
.invite-fermer { position: absolute; top: .4rem; right: .5rem; width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; color: var(--gris); cursor: pointer; border-radius: 50%; }
.invite-fermer:hover { background: var(--toile); color: var(--encre); }
.invite-appli.ouverte img { animation: secousse 1.2s ease .4s 2; }
@keyframes secousse { 0%, 100% { transform: none; } 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@media (max-width: 560px) {
  .invite-appli { left: .75rem; right: .75rem; bottom: .75rem; width: auto; grid-template-columns: 52px 1fr; padding: 1.1rem 1rem 1rem; }
  .invite-appli img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .invite-appli { transition: none; } .invite-appli.ouverte img { animation: none; } }
.lien-installer { background: none; border: 0; padding: 0; font: inherit; color: #DCE2EC; cursor: pointer; text-align: left; }
.lien-installer:hover { color: var(--orange); }
body:has(.invite-appli.ouverte) .haut-de-page { bottom: 11rem; }

/* v5 : images absentes */
img.image-absente { visibility: hidden; }
.sans-image { background: repeating-linear-gradient(135deg, #1B2B4D 0 14px, #20325A 14px 28px) !important; }
.mosaique li.sans-image a::before, .galerie li.sans-image a::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; opacity: .35;
  background: url("../img/icone-192.png") center / contain no-repeat;
}
.galerie a { position: relative; }
.defilement-piste li.sans-image { display: none; }
.vitrine-diapo.sans-image .vitrine-media { display: none; }

/* v6 : page Se connecter */
.acces-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.acces-carte { display: flex; flex-direction: column; gap: .4rem; padding: 1.8rem 1.6rem; background: #fff; border: 1px solid var(--trait); border-radius: 18px; box-shadow: 0 22px 44px -34px rgba(21,35,63,.5); }
.acces-carte h2 { font-size: 1.9rem; margin: .5rem 0 .2rem; }
.acces-carte p { color: #3B4860; margin: 0; }
.acces-carte .bouton, .acces-boutons { margin-top: auto; }
.acces-boutons { display: flex; flex-direction: column; gap: .6rem; }
.acces-carte-mise { border: 2px solid var(--orange); }
.acces-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 14%, #fff); color: #C25E00; }
.acces-ico .picto { width: 28px; height: 28px; }
.acces-liste { margin: .8rem 0 1.4rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .4rem; font-size: .93rem; color: var(--gris); }
.acces-liste li { padding-left: 1.4rem; position: relative; }
.acces-liste li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: rotate(-45deg); }
.acces-aide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2rem; padding: 1.6rem 1.8rem; background: var(--toile); border-radius: 18px; }
.acces-aide p { margin: 0; max-width: 60ch; color: #3B4860; }
@media (max-width: 960px) { .acces-cartes { grid-template-columns: 1fr; } }

/* v7 : mode administrateur sur le site */
.barre-admin { background: #FF7A00; background: linear-gradient(90deg, #E46F00, #F77F00); color: #0F1A30; font-size: .88rem; position: relative; z-index: 70; }
.barre-admin-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; min-height: 40px; padding: .35rem 0; }
.barre-admin-aide { opacity: .85; }
.barre-admin nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.barre-admin a { color: #0F1A30; font-weight: 600; text-decoration-color: #0F1A30; }
@media (max-width: 760px) { .barre-admin-aide { display: none; } }
.bouton-modifier {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px;
  background: #F77F00; color: #0F1A30 !important; font: 600 .85rem var(--f-texte); text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 3px rgba(247,127,0,.25), 0 8px 18px -8px rgba(0,0,0,.45); vertical-align: middle;
}
.bouton-modifier:hover { background: #0F1A30; color: #fff !important; }
.bm-flottant { position: absolute; top: .8rem; right: .8rem; z-index: 6; }
.vitrine > .bm-flottant { top: 1rem; right: 1rem; }
.histoire-portrait, .histoire-photo, .carte-actu { position: relative; }
.entete-ligne { position: relative; }
.bm-logo { position: absolute; left: 0; bottom: -.7rem; z-index: 5; padding: .2rem .55rem; font-size: .74rem; }
.bm-logo svg { width: 13px; height: 13px; }
.titre-ligne .bouton-modifier { margin-right: .6rem; }
.entete-page .bouton-modifier { margin-top: .9rem; }

/* =========================================================
   v8 : pages intérieures modernisées
   ========================================================= */
.entete-page { overflow: hidden; }
.entete-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--ceinture); opacity: .9; }
.entete-page .conteneur { position: relative; z-index: 1; }
.entete-page h1 { animation: monter .8s cubic-bezier(.2,.7,.2,1) both; }
.entete-riche { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 4.5rem); }
.entete-riche .surtitre { margin-bottom: .2rem; }
.entete-riche h1 { font-size: clamp(2.8rem, 7vw, 5rem); max-width: 18ch; }
.entete-riche .chapeau-court { font-size: 1.15rem; max-width: 60ch; }
.entete-riche .fil { color: #C9D2E3; margin-bottom: 1rem; }
.entete-riche .fil a { color: #fff; text-decoration: none; }
.entete-riche .fil a:hover { color: var(--orange); }
.entete-chiffres { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.entete-chiffres li { display: flex; align-items: baseline; gap: .5rem; padding: .6rem 1rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.entete-chiffres strong { font: 800 1.7rem/1 var(--f-titre); color: #fff; }
.entete-chiffres span { color: #DCE2EC; font-size: .92rem; }

/* Barre d'outils et filtres */
.barre-outils { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.onglets-pilules { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; background: var(--toile); border-radius: 999px; }
.onglets-pilules a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--gris); transition: .2s; }
.onglets-pilules a span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #fff; font-size: .78rem; color: var(--encre); }
.onglets-pilules a:hover { color: var(--encre); }
.onglets-pilules a[aria-current="page"] { background: var(--encre); color: #fff; box-shadow: 0 8px 18px -10px rgba(21,35,63,.6); }
.onglets-pilules a[aria-current="page"] span { background: var(--orange); color: var(--encre); }

/* Tuile de date */
.tuile-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; height: 64px; padding: .2rem .5rem; border-radius: 14px; background: var(--encre); color: #fff; line-height: 1; box-shadow: inset 0 -4px 0 var(--orange); }
.tuile-date b { font: 800 1.9rem/1 var(--f-titre); }
.tuile-date small { font-size: .7rem; color: #C9D2E3; margin-top: .2rem; white-space: nowrap; }
.tuile-date-vide { background: var(--toile); color: var(--gris); box-shadow: inset 0 -4px 0 var(--trait); }
.tuile-date-vide small { color: var(--gris); }
.tuile-grande { min-width: 120px; height: 120px; border-radius: 20px; }
.tuile-grande b { font-size: 3.6rem; }
.tuile-grande small { font-size: .9rem; }

/* Pastilles d'état et prix */
.pastille-etat { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pastille-etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pastille-ouvert { background: #DCFCE7; color: #15803D; }
.pastille-ouvert::before { animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
.pastille-encours { background: #FFEDD5; color: #C2410C; }
.pastille-ferme { background: #FEF3C7; color: #92400E; }
.pastille-termine { background: #EEF1F5; color: var(--gris); }
.prix { display: flex; flex-direction: column; font: 800 2rem/1 var(--f-titre); color: var(--encre); }
.prix small { font: 500 .82rem var(--f-texte); color: var(--gris); margin-top: .3rem; }
.prix-petit { font-size: 1.35rem; }
.lien-partage { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: #15803D; text-decoration: none; }
.lien-partage .icone { width: 18px; height: 18px; }
.lien-partage:hover { color: var(--encre); }

/* Puces d'informations */
.puces-infos { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.puces-infos li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 10px; background: var(--toile); font-size: .93rem; }
.puces-infos .picto { width: 18px; height: 18px; color: #C25E00; }
.puces-compactes { flex-direction: column; gap: .35rem; margin-top: .8rem; }
.puces-compactes li { background: none; padding: 0; color: #3B4860; font-size: .9rem; }

/* Carte vedette */
.vedette {
  --c: var(--orange);
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
  padding: 2rem; border-radius: 22px; background: #fff; border: 1px solid var(--trait);
  box-shadow: 0 30px 60px -40px rgba(21,35,63,.6); overflow: hidden;
}
.vedette::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.vedette::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: color-mix(in srgb, var(--c) 8%, transparent); pointer-events: none; }
.vedette-bleu { --c: #1F5FBF; } .vedette-vert { --c: #16A34A; } .vedette-violet { --c: #6A3FA0; }
.vedette-gauche { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.vedette-etiquette { margin: 0 0 .3rem; font-weight: 700; font-size: .9rem; color: var(--c); }
.vedette h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0; }
.vedette h2 a { text-decoration: none; }
.vedette-texte { margin: .6rem 0 0; color: #3B4860; max-width: 60ch; }
.vedette-droite { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding-left: 2rem; border-left: 1px dashed var(--trait); min-width: 220px; }
.compte-mini { gap: .4rem; }
.compte-mini div { min-width: 0; padding: .45rem .5rem; background: var(--toile); border: 0; border-radius: 10px; }
.compte-mini span { font-size: 1.5rem; color: var(--encre); }
.compte-mini small { color: var(--gris); font-size: .7rem; }
@media (max-width: 980px) {
  .vedette { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.5rem; }
  .vedette-gauche { flex-direction: row; align-items: center; }
  .vedette-droite { padding-left: 0; border-left: 0; border-top: 1px dashed var(--trait); padding-top: 1.2rem; min-width: 0; }
  .tuile-grande { min-width: 86px; height: 86px; } .tuile-grande b { font-size: 2.4rem; }
}

/* Cartes d'événements (stages, compétitions) */
.cartes-evenements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.carte-evenement {
  --c: var(--orange);
  position: relative; display: flex; flex-direction: column; padding: 1.4rem; border-radius: 18px; background: #fff;
  border: 1px solid var(--trait); border-top: 5px solid var(--c); transition: transform .25s, box-shadow .25s;
}
.carte-evenement:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -32px rgba(21,35,63,.6); }
.evt-bleu { --c: #1F5FBF; } .evt-vert { --c: #16A34A; } .evt-violet { --c: #6A3FA0; } .evt-orange { --c: var(--orange); }
.evt-passe { opacity: .78; }
.evt-passe .tuile-date { background: #556074; }
.evt-lien { position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.evt-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.evt-type { margin: 0 0 .2rem; font-size: .82rem; font-weight: 700; color: var(--c); }
.carte-evenement h3 { font-size: 1.55rem; margin: 0; }
.evt-texte { margin: .5rem 0 0; color: #3B4860; font-size: .95rem; }
.evt-bas { margin-top: auto; padding-top: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; border-top: 1px solid var(--toile); margin-top: 1.2rem; position: relative; z-index: 2; }
.evt-plus { font-weight: 600; color: #C25E00; font-size: .92rem; }
@media (max-width: 1000px) { .cartes-evenements { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cartes-evenements { grid-template-columns: 1fr; } }

/* État vide */
.etat-vide { text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--trait); border-radius: 22px; }
.etat-vide-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 14%, #fff); color: #C25E00; margin-bottom: 1rem; }
.etat-vide-ico .picto { width: 34px; height: 34px; }
.etat-vide h2 { font-size: 1.9rem; }
.etat-vide p { color: var(--gris); max-width: 46ch; margin: 0 auto 1.2rem; }

/* Bénéfices, étapes, cartes d'informations */
.benefices, .infos-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.benefices li { padding: 1.5rem; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px -32px rgba(21,35,63,.6); }
.benefices h3 { font-size: 1.45rem; margin: .8rem 0 .3rem; }
.benefices p { color: #3B4860; margin: 0; font-size: .95rem; }
.benefice-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 14%, #fff); color: #C25E00; }
.infos-cartes li { display: flex; flex-direction: column; gap: .15rem; padding: 1.2rem; background: #fff; border: 1px solid var(--trait); border-radius: 16px; }
.infos-cartes .benefice-ico { width: 44px; height: 44px; margin-bottom: .6rem; }
.infos-cartes small { color: var(--gris); font-size: .82rem; }
.infos-cartes strong { font-size: 1.05rem; }
.etapes-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: none; }
.etapes-cartes li { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px -32px rgba(21,35,63,.6); }
.etapes-cartes b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--encre); color: #fff; font: 800 1.4rem var(--f-titre); box-shadow: inset 0 -4px 0 var(--orange); }
.etapes-cartes h3 { font-size: 1.4rem; margin: .9rem 0 .3rem; }
.etapes-cartes p { margin: 0; color: #3B4860; font-size: .95rem; }
.etapes-cartes li:not(:last-child)::after { content: "→"; position: absolute; right: -1rem; top: 2.1rem; color: var(--orange); font-weight: 700; font-size: 1.3rem; }
@media (max-width: 1000px) { .benefices, .infos-cartes, .etapes-cartes { grid-template-columns: 1fr 1fr; } .etapes-cartes li::after { display: none; } }
@media (max-width: 560px) { .benefices, .infos-cartes, .etapes-cartes { grid-template-columns: 1fr; } }

/* Bandeau d'appel */
.bandeau-appel { background: linear-gradient(110deg, var(--encre) 0%, #22355E 60%, color-mix(in srgb, var(--orange) 40%, var(--encre)) 100%); color: #fff; padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.bandeau-appel-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.bandeau-appel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; margin: 0 0 .3rem; }
.bandeau-appel p { margin: 0; color: #DCE2EC; }

/* Fiche compétition */
.rebours-bande { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.6rem; padding: 1.3rem 1.6rem; border-radius: 20px; background: var(--encre); color: #fff; }
.rebours-bande p { margin: 0; font: 700 1.5rem var(--f-titre); }
.rebours-bande .compte-rebours div { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); padding: .6rem .9rem; min-width: 84px; }
.rebours-bande .compte-rebours span { font-size: 2.4rem; }
.rebours-bande .lien-partage { color: #86EFAC; }
.carte-action { padding: 1.6rem; border-radius: 18px; background: var(--toile); display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.carte-action p { margin: 0 0 .4rem; color: #3B4860; }
.podium { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
.podium li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.4rem 1rem; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -30px rgba(21,35,63,.6); }
.podium-rang { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 800 1.6rem var(--f-titre); color: #fff; }
.podium-1 { order: 2; padding-top: 2.2rem !important; } .podium-1 .podium-rang { background: #D4A017; }
.podium-2 { order: 1; } .podium-2 .podium-rang { background: #9CA3AF; }
.podium-3 { order: 3; } .podium-3 .podium-rang { background: #B45309; }
.podium small { color: var(--gris); }
@media (max-width: 560px) { .onglets-pilules { border-radius: 16px; } }
