/* Les Bruleurs de Gomme - design "constructeur premium"
   Inspiration : sites constructeurs italiens (nav flottante blanche, heros
   cinematiques plein cadre, panneaux cisailles en diagonale, filets d'accent,
   grands titres fins en casse de phrase, libelles condenses en capitales).
   Identite conservee : orange flamme du club, logos, aucune ressource tierce
   (polices systeme uniquement, conformite RGPD). */

:root {
  --ink: #131211;
  --ink-2: #3c3835;
  --gray: #8b8580;
  --hairline: #e2ddd7;
  --bg: #f5f4f2;
  --card: #ffffff;
  --dark: #0d0c0b;
  --dark-2: #17150f;
  --flame: #d63f10;          /* identite : grands aplats, gros titres, fonds */
  --flame-cta: #bf3a0f;      /* boutons et petits textes sur fond clair (contraste AA >= 4.5) */
  --flame-dark: #a93109;
  --flame-soft: #fdeee6;
  --ok: #3f6b4a;
  --err: #a03024;
  --display: Impact, 'Arial Narrow Bold', 'Franklin Gothic Bold', 'Haettenschweiler', sans-serif;
  --body: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --light: 'Helvetica Neue', 'Segoe UI', 'Avenir Next', Arial, sans-serif;
  --shadow-1: 0 1px 2px rgba(19, 18, 17, 0.06), 0 8px 28px rgba(19, 18, 17, 0.09);
  --shadow-2: 0 2px 6px rgba(19, 18, 17, 0.08), 0 18px 48px rgba(19, 18, 17, 0.16);
  --skew: -12deg;
  /* Alias de l'ancienne palette "garage" (gabarits et contenus CMS existants) */
  --asphalt: var(--ink);
  --carbon: var(--dark-2);
  --carbon-2: var(--ink-2);
  --paper: #faf9f7;
  --paper-2: #edeae6;
  --line: var(--hairline);
  --steel: var(--gray);
  --shadow: var(--shadow-1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* ---------- Typographie ---------- */
h1, h2 {
  font-family: var(--light);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3, .condensed {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.12rem;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0.4em 0 1em; max-width: 72ch; }
a { color: var(--flame-dark); text-underline-offset: 3px; }
a:hover { color: var(--flame); }
img { max-width: 100%; height: auto; }

.kicker {
  font-family: var(--display);
  color: var(--flame-dark);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.55rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--flame); color: #fff; padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }

/* ---------- En-tete : bandeau superieur + barre blanche flottante ---------- */
.site-header { position: relative; z-index: 50; }

.topbar { background: var(--dark); color: #cfc9c2; font-size: 0.72rem; position: relative; z-index: 51; }
.topbar-in {
  max-width: 1280px; margin: 0 auto; padding: 0.34rem 1.2rem;
  display: flex; align-items: center; gap: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; white-space: nowrap;
}
.topbar-link { color: #cfc9c2; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.2s; }
.topbar-link:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-spacer { flex: 1; }
.topbar-sep { width: 1px; height: 13px; background: rgba(255, 255, 255, 0.28); flex: none; }
.topbar-account { color: #fff; }
.icon { width: 15px; height: 15px; flex: none; }
.icon-flag { width: 20px; height: 14px; flex: none; outline: 1px solid rgba(255, 255, 255, 0.28); }
/* Le bandeau tient sur une ligne : on retire les elements secondaires avant
   qu'ils ne debordent (cas d'un admin connecte : prenom + Administration). */
@media (max-width: 900px) { .topbar-item { display: none; } }
@media (max-width: 820px) { .topbar-hide-sm { display: none; } }
@media (max-width: 720px) {
  .topbar-hide-sm, .topbar-item, .topbar-spacer { display: none; }
  .topbar-in { gap: 0.6rem; font-size: 0.66rem; letter-spacing: 0.1em; justify-content: space-between; }
  .topbar-link:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar-sep { display: none; }
}

.main-bar {
  position: sticky; top: 0; z-index: 50;
  padding: 0.7rem 1.2rem 0;
  background: linear-gradient(to bottom, rgba(245, 244, 242, 0.9), rgba(245, 244, 242, 0));
  pointer-events: none;
}
.header-in {
  pointer-events: auto;
  /* Marque a gauche, menus centres, colonne droite d'equilibrage (burger en mobile) */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.4rem;
  max-width: 1280px; margin: 0 auto; min-height: 66px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  padding: 0.3rem 1.1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); justify-self: start; }
.brand img { width: 46px; height: 46px; transition: transform 0.25s; }
.brand:hover img { transform: rotate(-8deg); }
.brand-name {
  font-family: var(--display); font-size: 1.02rem; letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1.08; max-width: 130px;
}
.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: 0.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; padding: 0.85rem 0.8rem; color: var(--ink); text-decoration: none;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--flame-dark); border-bottom-color: var(--flame); }
.main-nav a.nav-strong { color: var(--flame-cta); }
.main-nav a.nav-strong:hover { color: var(--flame-dark); }
.burger {
  display: none; justify-self: end; background: none; border: none; color: var(--ink);
  padding: 0.55rem; cursor: pointer; border-radius: 6px; line-height: 0;
}
.burger .icon { width: 22px; height: 22px; }
.burger:hover { color: var(--flame); }
@media (max-width: 980px) {
  .header-in { grid-template-columns: auto 1fr; }
  .brand { grid-column: 1; }
  .burger { display: block; grid-column: 2; }
  .main-nav { display: none; grid-column: 1 / -1; justify-self: stretch; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.2rem 0 0.6rem; }
  .main-nav a { border-bottom: none; border-left: 3px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-left-color: var(--flame); }
}

/* ---------- Heros cinematique ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  margin-top: -84px; /* passe sous la barre blanche flottante */
  display: flex; align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(5, 4, 3, 0.72) 0%, rgba(5, 4, 3, 0.15) 55%, rgba(5, 4, 3, 0) 75%),
    linear-gradient(to top, rgba(5, 4, 3, 0.78) 0%, rgba(5, 4, 3, 0.05) 50%),
    var(--hero-img, url('/img/photos/hero-raz.jpg')) center / cover no-repeat,
    var(--dark);
  overflow: hidden;
}
.hero .wrap { position: relative; width: 100%; padding-bottom: 4.2rem; padding-top: 9rem; }
.hero .kicker, .section-dark .kicker { color: #ffb28a; }
.hero h1 {
  color: #fff; max-width: 15ch;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 250;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero p.lead { font-size: 1.14rem; max-width: 52ch; color: #efe9e2; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 560px;
  background: var(--flame); opacity: 0.16;
  transform: skewX(var(--skew));
  pointer-events: none;
}
.hero-reveal > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-reveal > *:nth-child(2) { animation-delay: 0.08s; }
.hero-reveal > *:nth-child(3) { animation-delay: 0.16s; }
.hero-reveal > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Heros interieur (pages) */
.page-head { padding-block: 2.6rem 0.6rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 0.72rem 1.5rem; border: none; border-radius: 4px;
  background: var(--ink); color: #fff; cursor: pointer; text-decoration: none;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-flame { background: var(--flame-cta); }
.btn-flame:hover { background: var(--flame-dark); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { font-size: 0.8rem; padding: 0.42rem 0.85rem; }
.btn-danger { background: var(--err); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.85); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Lien d'action "constructeur" : uppercase + fleche */
.more {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.88rem; text-decoration: none; color: var(--flame-dark); white-space: nowrap;
}
.more:hover { color: var(--flame-cta); }

/* Lignes d'information avec icone filaire */
.meta-rows { display: grid; gap: 0.45rem; margin: 0.8rem 0 1.1rem; font-size: 1.02rem; }
.meta-row { display: flex; gap: 0.6rem; align-items: baseline; }
.meta-row .icon { width: 17px; height: 17px; flex: none; color: var(--flame-dark); transform: translateY(2px); }
.site-footer .meta-row .icon { color: var(--flame); }
.site-footer .meta-row { align-items: baseline; gap: 0.5rem; margin-bottom: 0.35rem; }

/* ---------- Reseaux sociaux du club (pastilles aux couleurs de marque) ---------- */
.social-links { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 0.6rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}
.social-link .icon { width: 21px; height: 21px; }
.social-link:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); }
.social-link--facebook { background: #1877f2; }
.social-link--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-link--youtube { background: #ff0000; }
.social-link--tiktok { background: #010101; }
.social-link--tiktok .icon { color: #25f4ee; filter: drop-shadow(1.4px 1.2px 0 #fe2c55); }
.social-link--x { background: #000; }
.social-link--strava { background: #fc4c02; }

/* ---------- Boutons de partage ---------- */
.share-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 1.4rem 0 0.4rem; }
.share-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.82rem; color: var(--ink-2); margin-right: 0.2rem;
}
.share-label .icon { width: 16px; height: 16px; color: var(--flame-dark); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--hairline); background: #fff; color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { background: var(--flame); border-color: var(--flame); color: #fff; transform: translateY(-2px); }
.share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-btn--x:hover { background: #000; border-color: #000; }
.share-btn--whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-btn.copied { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---------- Sections ---------- */
/* padding-block uniquement : sur un element `wrap section`, un raccourci
   `padding: 4.2rem 0` ecraserait le padding lateral de .wrap et collerait le
   contenu aux bords de l'ecran sur mobile. */
.section { padding-block: 4.2rem; }
.section-dark { background: linear-gradient(150deg, var(--dark-2), var(--dark)); color: #efe9e2; }
.section-photo {
  background:
    linear-gradient(100deg, rgba(13, 12, 11, 0.94) 30%, rgba(13, 12, 11, 0.55)),
    var(--club-img, url('/img/photos/hero-groupe.jpg')) center / cover no-repeat, var(--dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Titre centre entre deux filets */
.section-title {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem;
  margin: 0 0 2.2rem;
}
.section-title::before, .section-title::after { content: ""; height: 1px; background: var(--hairline); }
.section-title h2 { margin: 0; color: var(--gray); font-weight: 300; }
.section-dark .section-title::before, .section-dark .section-title::after { background: rgba(255,255,255,0.16); }

/* Bloc a filet d'accent gauche */
.rule-block {
  background: var(--card); border-left: 3px solid var(--flame);
  box-shadow: var(--shadow-1); border-radius: 0 8px 8px 0;
  padding: 1.6rem 1.8rem;
}

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* ---------- Bande d'images cisaillees (signature) ---------- */
.shear-strip {
  display: flex; gap: 10px; overflow: hidden;
  transform: skewX(var(--skew));
  margin: 0 -4%;
}
.shear-strip a {
  flex: 1 1 0; min-width: 0; height: 300px; overflow: hidden; position: relative; display: block;
}
.shear-strip img {
  width: 130%; height: 100%; object-fit: cover; margin-left: -15%;
  transform: skewX(calc(var(--skew) * -1)) scale(1.02);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shear-strip a:hover img { transform: skewX(calc(var(--skew) * -1)) scale(1.1); }
.shear-strip .shear-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  transform: skewX(calc(var(--skew) * -1));
  color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem;
  padding: 2rem 1.4rem 0.9rem; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.62), transparent);
}
@media (max-width: 760px) { .shear-strip { flex-wrap: wrap; transform: none; margin: 0; } .shear-strip a { flex: 1 1 46%; height: 180px; } .shear-strip img { width: 100%; margin: 0; transform: none; } .shear-strip .shear-label { transform: none; } }

/* ---------- Cartes evenement / galerie ---------- */
.card {
  background: var(--card); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
a .card-img, .card a img { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-img { transform: scale(1.05); }
.card-media { overflow: hidden; }
.card-body { padding: 1.15rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body h3 { font-size: 1.06rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--flame); }
.card .meta { color: var(--ink-2); font-size: 0.92rem; }
.card .spacer { flex: 1; }

.badge {
  display: inline-block; padding: 0.16rem 0.6rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: var(--gray);
  border-radius: 3px;
}
.cat-balade { background: #4f6b3f; }
.cat-concert { background: var(--flame-cta); }
.cat-repas { background: #8a4a24; }
.cat-reunion { background: #47536b; }
.cat-autre { background: var(--gray); }
.badge-ok { background: var(--ok); }
.badge-warn { background: #a97817; }
.badge-err { background: var(--err); }
.badge-dark { background: var(--ink-2); }

.event-date {
  display: inline-block; flex: none; align-self: flex-start;
  font-family: var(--display); text-transform: uppercase; text-align: center;
  background: var(--ink); color: #fff; border-radius: 6px;
  padding: 0.42rem 0.7rem 0.5rem; line-height: 1.02; min-width: 62px;
}
.event-date .d { font-size: 1.55rem; display: block; color: #ffb28a; }

.capacity { font-size: 0.88rem; color: var(--ink-2); }
.capacity .bar { height: 5px; background: var(--hairline); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.capacity .bar i { display: block; height: 100%; background: var(--flame); border-radius: 99px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.list {
  width: 100%; border-collapse: collapse; font-size: 0.94rem;
  background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-1);
}
table.list th {
  text-align: left; font-family: var(--display); font-weight: 400; letter-spacing: 0.09em;
  text-transform: uppercase; font-size: 0.8rem;
  background: var(--dark); color: #efe9e2; padding: 0.6rem 0.8rem; white-space: nowrap;
}
table.list td { padding: 0.55rem 0.8rem; border-top: 1px solid var(--hairline); vertical-align: top; }
table.list tr:hover td { background: var(--flame-soft); }

/* ---------- Formulaires ---------- */
form.stack, .stack { display: grid; gap: 0.95rem; }
/* Les elements de grille ont min-width:auto par defaut : un contenu large
   (input, mot long) elargit alors la colonne au-dela du conteneur. */
.stack > *, .form-row > *, .grid > * { min-width: 0; }
.field label, legend {
  display: block; font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.3rem; color: var(--ink-2);
}
.field .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="file"], select, textarea {
  width: 100%; padding: 0.62rem 0.75rem; border: 1.5px solid var(--hairline);
  border-radius: 6px; background: #fff; font: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--flame); outline: none; box-shadow: 0 0 0 3px rgba(214, 63, 16, 0.18);
}
textarea { min-height: 130px; resize: vertical; }
/* Grille plutot que flex : la colonne de texte se replie proprement, alors
   qu'un element flex anonyme refuse de descendre sous sa largeur max-content
   et deborde de la carte sur petit ecran. */
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: start; font-size: 0.95rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--flame); }
.check > * { min-width: 0; overflow-wrap: break-word; }
/* Deux colonnes seulement si la place le permet reellement : un media query
   sur la largeur d'ecran laissait des champs de 146px dans une carte etroite
   (formulaire en colonne de droite sur tablette). */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.95rem; }
fieldset { border: 1.5px solid var(--hairline); border-radius: 8px; padding: 1rem 1.1rem; margin: 0; }
.hp { position: absolute; left: -5000px; opacity: 0; }
form.card, .form-card { padding: 1.6rem; }

/* ---------- Flash / avis ---------- */
.flash {
  padding: 0.85rem 1.2rem; border-left: 3px solid; border-radius: 0 8px 8px 0;
  margin: 1rem auto; max-width: 1180px; font-weight: 600; background: var(--card); box-shadow: var(--shadow-1);
}
.flash-success { border-color: var(--ok); color: var(--ok); }
.flash-error { border-color: var(--err); color: var(--err); }
.notice {
  background: var(--card); border-left: 3px solid var(--flame);
  border-radius: 0 8px 8px 0; box-shadow: var(--shadow-1);
  padding: 0.9rem 1.1rem; margin: 1rem 0;
}
.notice-demo { border-left-color: var(--gray); font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Galerie ---------- */
.media-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.media-grid figure {
  margin: 0; border-radius: 8px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-1);
}
.media-grid img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.media-grid figure:hover img { transform: scale(1.06); }
.media-grid figcaption { padding: 0.5rem 0.7rem; font-size: 0.85rem; color: var(--ink-2); }
.video-consent { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--dark); color: #efe9e2; text-align: center; padding: 1rem; }
.video-consent iframe { width: 100%; height: 100%; border: 0; }

/* Declencheur d'agrandissement (photo cliquable) */
.lb-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.lb-trigger img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lb-zoom {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(13, 12, 11, 0.55); color: #fff; opacity: 0; transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}
.lb-zoom .icon { width: 18px; height: 18px; }
.lb-trigger:hover .lb-zoom, .lb-trigger:focus-visible .lb-zoom { opacity: 1; }

/* Visionneuse plein ecran */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 7, 6, 0.94); padding: 3rem 1rem;
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lb-figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lb-caption { color: #efe9e2; font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lb-count { color: #8b8580; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: background 0.2s, transform 0.15s;
}
.lb-btn:hover { background: var(--flame); }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-prev .icon { transform: rotate(180deg); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; } .lb-btn { width: 42px; height: 42px; } }
body.lb-locked { overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: #b9b2aa; margin-top: 4rem; }
.site-footer::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--flame) 0 34%, rgba(255,255,255,0.12) 34%);
}
.footer-in {
  max-width: 1180px; margin: 0 auto; padding: 2.6rem 1.4rem;
  display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 0.93rem;
}
.site-footer h3 { color: #fff; font-size: 0.92rem; letter-spacing: 0.12em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: #b9b2aa; text-decoration: none; }
.site-footer a:hover { color: var(--flame); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.08); padding: 0.9rem 1.4rem; text-align: center; font-size: 0.82rem; color: #7c766f; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px)); z-index: 60;
  background: #fff; color: var(--ink); border-radius: 10px; box-shadow: var(--shadow-2);
  padding: 1rem 1.2rem; display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; flex: 1; min-width: 260px; font-size: 0.9rem; }

/* ---------- Administration (back-office sobre) ---------- */
.admin-layout { display: grid; grid-template-columns: 235px 1fr; min-height: 70vh; }
.admin-nav { background: var(--dark); color: #efe9e2; padding: 1.2rem 0; }
.admin-nav h3 { padding: 0 1.1rem; color: #7c766f; font-size: 0.72rem; letter-spacing: 0.22em; margin: 1.1rem 0 0.3rem; }
.admin-nav a {
  display: block; padding: 0.44rem 1.1rem; color: #d8d2ca; text-decoration: none;
  font-size: 0.95rem; border-left: 3px solid transparent; transition: background 0.15s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.06); border-left-color: var(--flame); color: #fff; }
.admin-main { padding: 1.8rem 2rem 3rem; min-width: 0; }
.admin-layout > * { min-width: 0; }
@media (max-width: 920px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 0.1rem; }
  .admin-nav h3 { display: none; }
  .admin-main { padding: 1.4rem 1.1rem 2.5rem; }
}

.stat-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); margin-bottom: 1.8rem; }
.tile {
  background: var(--card); border-radius: 8px; padding: 1rem 1.1rem;
  box-shadow: var(--shadow-1); border-left: 3px solid var(--hairline);
}
.tile .n { font-family: var(--light); font-weight: 300; font-size: 2.1rem; line-height: 1.05; color: var(--ink); display: block; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--gray); }
.tile.alert { border-left-color: var(--flame); background: var(--flame-soft); }
.tile.alert .n { color: var(--flame-dark); }

.bar-rows { display: grid; gap: 0.45rem; max-width: 560px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
.bar-row .track { background: #e9e5e0; border-radius: 99px; height: 12px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--flame); min-width: 2px; border-radius: 99px; }
.bar-row .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.2rem; }
.toolbar form { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; padding: 0.4rem 0.55rem; }

.inline-form { display: inline; }
details.panel { border-radius: 8px; background: var(--card); box-shadow: var(--shadow-1); margin: 0.8rem 0; overflow: hidden; }
details.panel summary {
  cursor: pointer; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.92rem; padding: 0.7rem 1.1rem; background: #faf9f7; border-bottom: 1px solid var(--hairline);
}
details.panel .panel-body { padding: 1.1rem; }

.thumb { width: 74px; height: 56px; object-fit: cover; border-radius: 4px; }
.muted { color: var(--gray); font-size: 0.88rem; }
.right { text-align: right; }
.mt { margin-top: 1.5rem; }
.mb0 { margin-bottom: 0; }

/* Contenu CMS (pages legales, le club) */
.cms { max-width: 780px; }
.cms h2 { margin-top: 1.7em; font-size: 1.35rem; }
.cms table { border-collapse: collapse; width: 100%; margin: 1em 0; background: var(--card); font-size: 0.92rem; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-1); }
.cms th, .cms td { border: 1px solid var(--hairline); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.cms th { background: var(--dark); color: #efe9e2; font-weight: 600; border-color: var(--dark); }
.cms li { margin-bottom: 0.35em; }
code { background: #edeae6; border: 1px solid var(--hairline); padding: 0.05em 0.35em; font-size: 0.88em; border-radius: 4px; }

/* Page paiement demo */
.pay-box { max-width: 520px; margin: 2.5rem auto; padding: 0 1.2rem; }
.demo-strip {
  background: repeating-linear-gradient(45deg, #a97817 0 14px, var(--ink) 14px 28px);
  color: #fff; text-align: center; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem; font-size: 0.82rem; text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

@media print {
  .site-header, .site-footer, .cookie-banner, .btn, .main-nav { display: none !important; }
  body { background: #fff; }
}
