/* ==========================================================================
   Club Vie Active de L'Ange-Gardien — feuille de style commune
   Direction retenue : Proposition A — Nature & Communauté
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Lato:wght@300;400;700;900&display=swap');

/* --------------------------------------------------------------------------
   Jetons de design (mode clair par défaut, mode sombre via [data-theme="dark"])
   -------------------------------------------------------------------------- */
:root {
  --vert-fonce: #27500A;
  --vert: #3B6D11;
  --vert-moyen: #639922;
  --vert-clair: #EAF3DE;
  --or: #BA7517;
  --or-clair: #FAEEDA;

  --bg: #ffffff;
  --bg-2: #f4f9ef;
  --bg-3: #EAF3DE;
  --texte: #1a2a1a;
  --texte-att: #4a6a4a;
  --bordure: rgba(0, 0, 0, 0.1);
  --ombre: rgba(39, 80, 10, 0.16);

  --rayon: 14px;
  --rayon-pt: 30px;
  --max-largeur: 1140px;

  --police-titre: 'Playfair Display', Georgia, serif;
  --police-texte: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --vert-fonce: #2d5a10;
  --vert: #4a8a1a;
  --vert-moyen: #6fae28;
  --vert-clair: #c8e8a8;
  --or: #d4860f;
  --or-clair: #3a2a08;

  --bg: #1a1f1a;
  --bg-2: #1e231e;
  --bg-3: #232823;
  --texte: #e8f0e8;
  --texte-att: #9db89d;
  --bordure: rgba(255, 255, 255, 0.12);
  --ombre: rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Réinitialisation et éléments de base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police-texte);
  background: var(--bg);
  color: var(--texte);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  color: var(--texte);
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--vert); text-decoration: none; }
[data-theme="dark"] a:not(.btn):not(.btn-membre):not(.bouton-theme) { color: var(--vert-moyen); }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; }

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

/* Accessibilité : focus visible, lien d'évitement, mouvement réduit */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

.lien-evitement {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vert-fonce);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.lien-evitement:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Étiquette / eyebrow
   -------------------------------------------------------------------------- */
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
[data-theme="dark"] .etiquette { color: var(--vert-clair); background: var(--bg-3); }

/* --------------------------------------------------------------------------
   Entête / navigation
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vert-fonce);
  box-shadow: 0 2px 14px var(--ombre);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  /* Le logo ne doit JAMAIS être comprimé : par défaut, un élément flex peut
     rétrécir sous sa taille naturelle. Entre 721 et 1000 px, les liens de
     navigation écrasaient le badge à quelques pixels de large — le logo
     devenait illisible puis invisible. */
  flex: 0 0 auto;
  min-width: 0;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 7px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  flex: 0 0 auto;
}
.nav-logo .logo-badge img { height: 116px; width: auto; display: block; }
.nav-logo:focus-visible { outline-offset: 4px; }

/* Écrans intermédiaires : plutôt que de comprimer le logo, on réduit sa
   hauteur et on resserre les liens — la place manquante est reprise là où
   elle se voit le moins. */
@media (max-width: 1080px) {
  .nav { height: 108px; gap: 12px; }
  .nav-logo .logo-badge img { height: 82px; }
  .nav-liens { gap: 18px; }
}
@media (max-width: 900px) {
  .nav { height: 92px; }
  .nav-logo .logo-badge img { height: 64px; }
  .logo-badge { padding: 5px 9px; border-radius: 10px; }
  .nav-liens { gap: 12px; }
  .nav-liens a { font-size: .82rem; }
  .nav-droite .btn-membre { padding: 9px 14px; font-size: .78rem; }
}

.nav-liens {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-liens a {
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-liens a:hover,
.nav-liens a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--or);
  text-decoration: none;
}

.nav-droite { display: flex; align-items: center; gap: 14px; }

.bouton-theme {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--police-texte);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bouton-theme:hover { background: rgba(255, 255, 255, .24); }

.btn-membre {
  background: var(--or);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 11px 20px;
  border-radius: 30px;
  white-space: nowrap;
}
.btn-membre:hover { background: #a3650f; text-decoration: none; }

.nav-bascule {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.menu-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--vert-fonce);
  padding: 0 24px;
}
.menu-mobile.ouvert { display: flex; padding: 10px 24px 22px; }
.menu-mobile a {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.menu-mobile .btn-membre { display: inline-flex; text-align: center; justify-content: center; margin-top: 8px; border-bottom: none; }

/* --------------------------------------------------------------------------
   Bouton générique
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  padding: 13px 26px;
  border-radius: 30px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-principal { background: var(--or); color: #fff; }
.btn-principal:hover { background: #a3650f; text-decoration: none; }
.btn-fantome {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn-fantome:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.btn-contour {
  background: transparent;
  color: var(--vert);
  border-color: var(--vert);
}
[data-theme="dark"] .btn-contour { color: var(--vert-moyen); border-color: var(--vert-moyen); }
.btn-contour:hover { background: var(--vert-clair); text-decoration: none; }
[data-theme="dark"] .btn-contour:hover { background: var(--bg-3); }

/* --------------------------------------------------------------------------
   Héros
   -------------------------------------------------------------------------- */
.heros {
  background: linear-gradient(160deg, var(--vert) 0%, var(--vert-fonce) 100%);
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}
.heros-grille {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.heros-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.heros-tag {
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.heros h1 { color: #fff; margin-bottom: 18px; }
.heros h1 em { color: #FAC775; font-style: normal; }
.heros p.lead {
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 30px;
}
.heros-boutons { display: flex; gap: 14px; flex-wrap: wrap; }

.heros-photo {
  border-radius: var(--rayon-pt);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  aspect-ratio: 4/3.1;
  width: 100%;
}
.heros-photo img { width: 100%; height: 100%; object-fit: cover; }

.heros-page {
  background: linear-gradient(160deg, var(--vert) 0%, var(--vert-fonce) 100%);
  padding: 56px 0;
  text-align: left;
}
.heros-page h1 { color: #fff; margin-bottom: 10px; }
.heros-page p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; max-width: 620px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Bande des saisons (élément signature)
   -------------------------------------------------------------------------- */
.saisons {
  padding: 0;
  background: var(--bg-2);
}
.saisons-entete {
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 56px 24px 28px;
  text-align: center;
}
.saisons-entete h2 { margin-bottom: 10px; }
.saisons-entete p { color: var(--texte-att); max-width: 560px; margin: 0 auto; }

.saisons-bande {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.saison {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.saison img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.saison:hover img { transform: scale(1.05); }
.saison-etiquette {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.saison::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-2); }
.section-entete { max-width: 680px; margin: 0 0 44px; }
.section-entete.centre { margin: 0 auto 44px; text-align: center; }
.section-entete p { color: var(--texte-att); font-size: 1.05rem; }

.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.grille-deux-colonnes {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: 26px;
}
@media (max-width: 720px) {
  .grille-deux-colonnes { grid-template-columns: 1fr; }
}

.carte {
  background: var(--bg);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 30px 26px;
}
[data-theme="dark"] .carte { background: var(--bg-3); }
.carte-icone {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vert-clair);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
[data-theme="dark"] .carte-icone { background: var(--bg-2); }
.carte h3 { margin-bottom: 8px; }
.carte p { color: var(--texte-att); margin-bottom: 0; font-size: .96rem; }

/* --------------------------------------------------------------------------
   CTA pleine largeur
   -------------------------------------------------------------------------- */
.cta {
  background: var(--vert-fonce);
  color: #fff;
  border-radius: var(--rayon-pt);
  padding: 52px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 0; max-width: 480px; }
.cta-boutons { display: flex; gap: 14px; flex-wrap: wrap; }

.prix-coup {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 10px 18px;
  margin-top: 18px;
}
.prix-coup .montant { font-family: var(--police-titre); font-size: 1.9rem; font-weight: 700; color: var(--or-clair); }
[data-theme="dark"] .prix-coup .montant { color: #ffe6b3; }
.prix-coup .periode { font-size: .85rem; color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   Tableaux / listes d'informations
   -------------------------------------------------------------------------- */
.liste-puces { list-style: none; margin: 0 0 1em; }
.liste-puces li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.liste-puces li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vert);
  font-weight: 900;
}
[data-theme="dark"] .liste-puces li::before { color: var(--vert-moyen); }

.bloc {
  background: var(--bg-2);
  border-radius: var(--rayon);
  padding: 28px 30px;
  margin-bottom: 20px;
}
[data-theme="dark"] .bloc { background: var(--bg-3); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--vert-fonce);
  color: rgba(255,255,255,.82);
  padding: 56px 0 26px;
}
.pied a { color: #fff; }
.pied-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.pied-logo { margin-bottom: 14px; }
.pied-logo .logo-badge img { height: 104px; width: auto; display: block; }
.pied h4 { color: #fff; font-family: var(--police-texte); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.pied ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }

.carte-sponsor {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}
.carte-sponsor img {
  max-width: 100%;
  max-height: 118px;
  width: auto;
  object-fit: contain;
}
.pied-bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: .84rem;
}

/* --------------------------------------------------------------------------
   Bannière "En construction" (affichée via window.CVALAG_ENV='test')
   -------------------------------------------------------------------------- */
#construction-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: repeating-linear-gradient(
    -45deg,
    #ffb300,
    #ffb300 20px,
    #222 20px,
    #222 40px
  );
  color: #fff;
  text-align: center;
  padding: 18px;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: bold;
  animation: cb-slide 8s linear infinite;
}

@keyframes cb-slide {
  from { background-position: 0 0; }
  to   { background-position: 80px 0; }
}

/* --------------------------------------------------------------------------
   Bandeau de confidentialité (cookies)
   -------------------------------------------------------------------------- */
.bandeau-cookies {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--vert-fonce);
  color: rgba(255,255,255,.92);
  padding: 18px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.3);
  transform: translateY(110%);
  transition: transform .4s ease;
}
.bandeau-cookies.visible { transform: translateY(0); }
.bandeau-cookies-inner {
  max-width: var(--max-largeur);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.bandeau-cookies p { margin: 0; font-size: .92rem; max-width: 720px; }
.bandeau-cookies a { color: #fff; text-decoration: underline; }
.bandeau-cookies-boutons { display: flex; gap: 12px; flex-shrink: 0; }
.bandeau-cookies .btn-principal { padding: 11px 22px; font-size: .85rem; }
@media (max-width: 640px) {
  .bandeau-cookies-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .bandeau-cookies-boutons { justify-content: flex-end; }
}
@media (max-width: 880px) {
  .heros-grille { grid-template-columns: 1fr; }
  .heros-photo { order: -1; max-width: 420px; }
  .cta { grid-template-columns: 1fr; text-align: left; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-liens, .nav-droite .btn-membre, .bouton-theme span.texte-bouton { display: none; }
  .nav-bascule { display: inline-flex; }
  .nav-droite { gap: 8px; }

  .saisons-bande { grid-template-columns: 1fr; }
  .saison { aspect-ratio: 16/9; }
  .pied-grille { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* --------------------------------------------------------------------------
   Programmation — activités page
   -------------------------------------------------------------------------- */
.prog-jour {
  font-family: var(--police-titre);
  font-size: 1.35rem;
  color: var(--vert-fonce);
  border-left: 4px solid var(--or);
  padding-left: 14px;
  margin: 36px 0 16px;
}
[data-theme="dark"] .prog-jour { color: var(--vert-clair); }

.prog-heure {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 6px;
}
.prog-dates { color: var(--texte-att); font-size: .9rem; margin: 6px 0; }
.prog-cout  { font-weight: 700; color: var(--vert); margin: 6px 0 4px; }
[data-theme="dark"] .prog-cout { color: var(--vert-moyen); }
.prog-info  { font-size: .85rem; color: var(--texte-att); margin: 0; }

.badge-nouveau {
  background: var(--or);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Sponsor grid sizing
   -------------------------------------------------------------------------- */
.grille-sponsors { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* --------------------------------------------------------------------------
   "Merci" big eyebrow on homepage
   -------------------------------------------------------------------------- */
.etiquette-merci {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--police-titre);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--vert-fonce);
  margin-bottom: 10px;
}
[data-theme="dark"] .etiquette-merci { color: var(--vert-clair); }

/* --------------------------------------------------------------------------
   Payment section — devenir-membre
   -------------------------------------------------------------------------- */
.paiement-carte { display: flex; flex-direction: column; gap: 10px; }

.paiement-entete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.paiement-badge {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #f5b316;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.paiement-badge--square { background: #222; font-size: .9rem; }

.paiement-tag {
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 8px;
}
[data-theme="dark"] .paiement-tag { background: var(--bg-3); color: var(--vert-clair); }

.paiement-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte-att);
  margin: 8px 0 4px;
}
.paiement-detail summary { display: inline-flex; }
.paiement-detail summary::-webkit-details-marker { display: none; }
.paiement-adresse {
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--vert);
}
[data-theme="dark"] .paiement-adresse { color: var(--vert-moyen); }
.paiement-note { font-size: .85rem; color: var(--texte-att); margin: 4px 0 0; }

/* Sponsor logos sizing now in main .carte-sponsor block */

/* --------------------------------------------------------------------------
   Membership form — devenir-membre
   -------------------------------------------------------------------------- */
.form-membre { margin-top: 10px; }

.form-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 30px;
}
@media (max-width: 600px) {
  .form-grille { grid-template-columns: 1fr; }
}

.form-champ { display: flex; flex-direction: column; gap: 6px; }
.form-champ--pleine-largeur { grid-column: 1 / -1; }

.form-champ label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--texte-att);
  text-transform: uppercase;
}
.form-champ label span { color: var(--or); }

.form-champ input,
.form-champ select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--bg);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1rem;
  transition: border-color .2s;
}
.form-champ input:focus,
.form-champ select:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(59,109,17,.15);
}

.paiement-section { margin-top: 10px; }
.paiement-titre {
  font-family: var(--police-texte);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--texte-att);
  margin-bottom: 18px;
  text-align: center;
}

.form-note {
  font-size: .85rem;
  color: var(--texte-att);
  text-align: center;
  margin-top: 20px;
}

/* Paiement adresse bold (after <details> reveal) */
.paiement-adresse strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Payment options — devenir-membre v13
   -------------------------------------------------------------------------- */
.paiement-option {
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px;
  margin-top: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="dark"] .paiement-option { background: var(--bg-3); }

.paiement-option--square {
  border-style: dashed;
}

.paiement-option-entete {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.paiement-cout {
  font-size: 1rem;
  margin: 0;
}
.paiement-frais {
  font-size: .88rem;
  color: var(--texte-att);
}

.paiement-note-delai {
  color: var(--vert);
  font-weight: 700;
  font-size: .9rem;
  margin: 0;
}
[data-theme="dark"] .paiement-note-delai { color: var(--vert-moyen); }

.paiement-afficher-btn {
  display: inline-flex;
  align-items: center;
  list-style: none;
}
.paiement-afficher-btn::-webkit-details-marker { display: none; }

.square-card-container {
  min-height: 46px;
  border: 1.5px solid var(--bordure);
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--bg);
}

.card-errors {
  font-size: .9rem;
  min-height: 1.2em;
}
/* Afficher comme une alerte dès qu'il y a du contenu */
.card-errors:not(:empty) {
  background: #fde8e8;
  color: #8b1a1a;
  border: 1.5px solid #f5a5a5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
}
[data-theme="dark"] .card-errors:not(:empty) {
  background: #3a1a1a;
  color: #ffaaaa;
  border-color: #6b2a2a;
}

/* --------------------------------------------------------------------------
   Quiscale logo — plus large dans sa carte (logo horizontal 760×260)
   -------------------------------------------------------------------------- */
.carte-sponsor--quiscale {
  padding: 10px;
}
.carte-sponsor--quiscale img {
  max-height: none;
  width: 95%;
  max-width: 95%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Square — champs séparés (numéro / expiration / CVV)
   -------------------------------------------------------------------------- */
.square-split-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.square-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.square-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.square-field-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-att);
}

.square-input {
  min-height: 46px;
  border: 1.5px solid var(--bordure);
  border-radius: 8px;
  background: var(--bg);
  /* Pas de overflow:hidden ni de position:relative :
     cela peut déplacer ou masquer les iframes injectées par le SDK Square. */
  transition: border-color .2s;
}
.square-input.sq-focus-within,
.square-input:focus-within {
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(59,109,17,.15);
}

/* --------------------------------------------------------------------------
   Zone d'erreur retour formulaire membre (membre-creer.php → GET ?erreur=)
   -------------------------------------------------------------------------- */
#form-erreur {
  display: none;
  background: #fde8e8;
  color: #8b1a1a;
  border: 1.5px solid #f5a5a5;
  border-radius: var(--rayon);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: .95rem;
  font-weight: 600;
}
[data-theme="dark"] #form-erreur {
  background: #3a1a1a;
  color: #ffaaaa;
  border-color: #6b2a2a;
}

/* --------------------------------------------------------------------------
   Alertes génériques (succes / erreur / info)
   -------------------------------------------------------------------------- */
.alerte {
  padding: 14px 18px;
  border-radius: var(--rayon);
  margin-bottom: 22px;
  font-size: .95rem;
  font-weight: 600;
}
.alerte--succes {
  background: #e8f5e9; color: #1b5e20;
  border: 1.5px solid #a5d6a7;
}
.alerte--erreur {
  background: #fde8e8; color: #8b1a1a;
  border: 1.5px solid #f5a5a5;
}
.alerte--info {
  background: #e3f2fd; color: #0d47a1;
  border: 1.5px solid #90caf9;
}
[data-theme="dark"] .alerte--succes { background:#1a3a1a; color:#a8e6a3; border-color:#2d6a2d; }
[data-theme="dark"] .alerte--erreur { background:#3a1a1a; color:#ffaaaa; border-color:#6b2a2a; }
[data-theme="dark"] .alerte--info   { background:#1a2a3a; color:#90caf9; border-color:#1565c0; }

/* --------------------------------------------------------------------------
   Grille du tableau de bord membre
   -------------------------------------------------------------------------- */
.compte-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}
@media (max-width: 680px) {
  .compte-grille { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Appel aux commanditaires (page d'accueil)
   -------------------------------------------------------------------------- */
.bloc-commandite {
  margin-top: 34px;
  text-align: center;
  border: 2px dashed var(--or);
  background: transparent;
}
.bloc-commandite h3 { margin-top: 0; color: var(--vert-fonce); }
[data-theme="dark"] .bloc-commandite h3 { color: var(--vert-clair); }
.bloc-commandite p { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Carrousel des activités (page d'accueil)

   SANS JavaScript, .carrousel--actif n'est jamais posé : les figures
   s'affichent alors en grille ordinaire. Le carrousel n'est qu'un
   enrichissement, jamais une condition pour voir les photos.
   -------------------------------------------------------------------------- */
.carrousel { margin-top: 30px; }

.carrousel-scene {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.carrousel-vue {
  margin: 0;
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 4px 14px var(--ombre);
  background: var(--bg-2);
}
.carrousel-vue img {
  display: block;
  width: 100%;
  height: auto;
}
/* Rapport fixe : la hauteur ne saute pas d'une photo à l'autre. Sans support
   d'`aspect-ratio`, les images gardent simplement leur hauteur naturelle —
   elles restent visibles, c'est ce qui compte. */
@supports (aspect-ratio: 3 / 2) {
  .carrousel-vue img { aspect-ratio: 3 / 2; object-fit: cover; }
}
.carrousel-vue figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,0));
}

/* ── Mode carrousel (JavaScript actif) ── */
.carrousel--actif {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 6px 22px var(--ombre);
}
.carrousel--actif:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.carrousel--actif .carrousel-scene {
  display: block;
  position: relative;
  gap: 0;
  /* Repli pour les navigateurs sans `aspect-ratio` (antérieurs à 2021, dont
     Safari 14) : sans hauteur, la scène s'effondrerait et AUCUNE photo ne
     s'afficherait. 66,667 % = rapport 3/2. */
  height: 0;
  padding-top: 66.667%;
}
@supports (aspect-ratio: 3 / 2) {
  .carrousel--actif .carrousel-scene {
    height: auto;
    padding-top: 0;
    aspect-ratio: 3 / 2;
  }
}
.carrousel--actif .carrousel-vue {
  position: absolute;
  /* top/right/bottom/left plutôt que `inset` : même raison que le repli
     d'`aspect-ratio` ci-dessus — `inset` date de 2021 et n'apporte rien
     de plus ici. */
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  /* Retiré du calcul de mise au point tant que la vue est masquée. */
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.carrousel--actif .carrousel-vue.est-visible { opacity: 1; visibility: visible; }
.carrousel--actif .carrousel-vue img { height: 100%; }
.carrousel--actif .carrousel-vue figcaption {
  padding: 40px 22px 58px;   /* place pour les commandes en bas */
  font-size: 1.12rem;
}

/* ── Flèches ── */
.carrousel-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
  z-index: 2;
}
.carrousel-fleche:hover { background: rgba(0,0,0,.68); }
.carrousel-fleche:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.carrousel-fleche--gauche { left: 14px; }
.carrousel-fleche--droite { right: 14px; }

/* ── Commandes du bas ── */
.carrousel-commandes {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  z-index: 2;
}
.carrousel-pause {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: .72rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carrousel-pause:hover { background: rgba(0,0,0,.68); }
.carrousel-pause:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

.carrousel-pastilles { display: flex; gap: 9px; }
.carrousel-pastille {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carrousel-pastille:hover { background: rgba(255,255,255,.55); }
.carrousel-pastille.est-active { background: #fff; transform: scale(1.18); }
.carrousel-pastille:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

@media (max-width: 560px) {
  .carrousel-fleche { width: 38px; height: 38px; }
  .carrousel-fleche--gauche { left: 8px; }
  .carrousel-fleche--droite { right: 8px; }
  .carrousel--actif .carrousel-vue figcaption { font-size: 1rem; padding: 34px 16px 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel--actif .carrousel-vue { transition: none; }
}

/* --------------------------------------------------------------------------
   Entrée « Console » — visible seulement pour les administrateurs et
   moniteurs connectés, ajoutée par site.js.
   Légèrement distinguée : c'est un outil interne, pas une page du site.
   -------------------------------------------------------------------------- */
.nav-liens .lien-console,
.menu-mobile .lien-console {
  color: var(--or);
}
.nav-liens .lien-console::before,
.menu-mobile .lien-console::before {
  content: "⚙";
  margin-right: 6px;
  font-size: .95em;
}
.nav-liens .lien-console:hover,
.menu-mobile .lien-console:hover { color: #fff; }
