/* ============================================================
   LA BOULE DU JORAT — styles.css
   Feuille de styles principale (mobile-first)
   ============================================================ */

/* ============================================================
   1. Variables CSS
   ============================================================ */
:root {
  /* Palette — rouge, bleu marine, blanc */
  --navy:        #1B2D5A;
  --navy-dark:   #0F1C3A;
  --navy-light:  #2A4080;
  --red:         #C8272A;
  --red-hover:   #A81F22;
  --red-light:   rgba(200, 39, 42, 0.10);
  --white:       #FFFFFF;
  --bg:          #F5F4F0;
  --bg-card:     #FFFFFF;
  --text:        #1C1C2A;
  --muted:       #60607A;
  --border:      #E2DED8;

  /* Ombres */
  --shadow-sm:   0 2px 8px  rgba(27, 45, 90, 0.08);
  --shadow-md:   0 4px 20px rgba(27, 45, 90, 0.13);
  --shadow-lg:   0 8px 40px rgba(27, 45, 90, 0.18);

  /* Mise en page */
  --nav-h:       80px;
  --max-w:       1140px;
  --gap:         1.5rem;

  /* Coins arrondis */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  22px;

  /* Transitions */
  --t:      0.24s ease;
  --t-slow: 0.38s ease;

  /* Typographie système */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* Accessibilité — skip link */
.skip-link {
  position: absolute; top: -120%; left: 1rem;
  background: var(--navy); color: var(--white);
  padding: .5rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .9rem; font-weight: 600; z-index: 9999;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* Décalage ancres pour nav sticky */
:target { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ============================================================
   3. Utilitaires
   ============================================================ */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 1.25rem;
}

.section        { padding: 5rem 0; }
.section--alt   { background: var(--navy); color: var(--white); }
.section--light { background: var(--white); }

.section__header { text-align: center; margin-bottom: 3.75rem; }

.section__label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .65rem;
}
.section--alt .section__label { color: #FF8080; }

.section__title {
  font-size: clamp(1.73rem, 4.2vw, 2.73rem);
  font-weight: 800; line-height: 1.2; color: var(--navy);
}
.section--alt .section__title { color: var(--white); }

.section__subtitle {
  margin-top: .9rem;
  font-size: 1.02rem; color: var(--muted); opacity: .85;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.section--alt .section__subtitle { color: rgba(255,255,255,.72); opacity: 1; }

.divider {
  width: 52px; height: 4px; background: var(--red);
  border-radius: 2px; margin: 1.1rem auto 0;
}
.divider--left { margin-left: 0; }

.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-navy   { color: var(--navy); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   4. Typographie
   ============================================================ */
h1 { font-size: clamp(2rem, 5.5vw, 3.75rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.3; }
p + p { margin-top: .9rem; }

/* ============================================================
   5. Boutons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  transition: background var(--t), color var(--t),
              transform var(--t), box-shadow var(--t);
  outline-offset: 3px;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--red); }

.btn--primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 2px 10px rgba(200,39,42,.28);
}
.btn--primary:hover {
  background: var(--red-hover); transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(200,39,42,.38);
}

.btn--outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.65);
}
.btn--outline:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--white);
}

.btn--navy {
  background: var(--navy); color: var(--white);
}
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

.btn--ghost {
  color: var(--red); border: 2px solid var(--red);
}
.btn--ghost:hover { background: var(--red); color: var(--white); }

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   6. Navigation
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand {
  display: flex; align-items: center;
  gap: .7rem; flex-shrink: 0;
}
.navbar__brand:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: var(--r-sm); }

.navbar__logo {
  height: 70px; width: auto;
  object-fit: contain;
}
.navbar__logo--fallback { display: none; }

.navbar__name {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  line-height: 1.2;
}
.navbar__name small {
  display: block; font-size: .65rem; font-weight: 400;
  color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 6px;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.hamburger:hover   { background: var(--bg); }
.hamburger:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.hamburger span {
  display: block; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav list (desktop) */
.nav__list {
  display: flex; align-items: center; gap: .2rem;
}
.nav__link {
  display: block; padding: .5rem .9rem;
  border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500; color: var(--text);
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute;
  bottom: 2px; left: .9rem; right: .9rem;
  height: 2px; background: var(--red); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--t);
  transform-origin: center;
}
.nav__link:hover          { color: var(--red); }
.nav__link:hover::after   { transform: scaleX(1); }
.nav__link.active         { color: var(--red); font-weight: 600; }
.nav__link.active::after  { transform: scaleX(1); }
.nav__link:focus-visible  { outline: 3px solid var(--red); outline-offset: 2px; }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 1.5rem 1.25rem;
    transform: translateX(100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .nav-menu.open { transform: translateX(0); }

  .nav__list {
    flex-direction: column; align-items: stretch; gap: .2rem;
  }
  .nav__link {
    padding: .9rem 1.1rem; font-size: 1.05rem;
    border-radius: var(--r);
  }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.active {
    background: var(--red-light); color: var(--red);
  }
}

/* ============================================================
   7. Hero (page d'accueil)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 5rem) 1.25rem 5rem;
  /*
   * Couche 1 : overlay marine semi-transparent pour lisibilité du texte
   * Couche 2 : photo de terrain de pétanque (remplacer l'URL par votre vraie photo)
   */
  background:
    linear-gradient(to bottom,
      rgba(5, 12, 28, .04) 0%,
      rgba(8, 18, 42, .30) 45%,
      rgba(5, 12, 28, .48) 100%),
    url('heroNew.jpg') center 40% / cover no-repeat;
  color: var(--white); overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  /* Lueur rouge subtile au centre + halo lumineux en haut + grille de points */
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(200,39,42,.10) 0%, transparent 65%),
    radial-gradient(ellipse 90% 40% at 50% 0%,  rgba(255,255,255,.05) 0%, transparent 55%),
    radial-gradient(circle, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px; background: var(--bg);
  clip-path: ellipse(58% 100% at 50% 100%);
}

/* Logo dans le hero */
.hero__logo {
  /* Largeur fixée par JS pour correspondre à "Le club de pétanque" */
  width: auto;
  max-width: min(68%, 320px);
  height: auto;
  margin: 1.5rem auto .9rem;
  display: block;
  filter: drop-shadow(0 4px 22px rgba(0,0,0,.50));
  animation: heroFadeUp .65s ease both;
}

/* Animation unifiée pour tous les éléments du hero */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Blobs organiques — profondeur et chaleur */
.hero__deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__deco-ball { position: absolute; border-radius: 50%; }
.hero__deco-ball:nth-child(1) {
  width: 480px; height: 480px;
  background: var(--navy-light);
  opacity: .08; filter: blur(90px);
  top: -160px; right: -110px;
}
.hero__deco-ball:nth-child(2) {
  width: 320px; height: 320px;
  background: var(--red);
  opacity: .07; filter: blur(80px);
  bottom: 50px; left: -70px;
}
.hero__deco-ball:nth-child(3) {
  width: 220px; height: 220px;
  background: #4A78C8;
  opacity: .07; filter: blur(65px);
  bottom: 160px; right: 5%;
}

.hero__inner {
  position: relative; z-index: 1; max-width: 750px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 1.5rem;
  animation: heroFadeUp .6s ease both .12s;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: #FF6B6B; border-radius: 50%;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.75); }
}

.hero__title {
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  font-weight: 800; line-height: 1.08;
  margin-bottom: 1.2rem; color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.40);
  animation: heroFadeUp .6s ease both .28s;
}
.hero__title em { font-style: normal; color: #FFD580; }

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  line-height: 1.5;
  max-width: 580px; margin-left: auto; margin-right: auto;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
  animation: heroFadeUp .6s ease both .42s;
}

/* Carte événement tournoi dans le hero */
.hero__tournoi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  background: rgba(30, 53, 87, 0.92);
  border-radius: 16px;
  padding: 1.6rem 2.2rem;
  margin: 0 auto 2rem auto;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  animation: heroFadeUp .6s ease both .55s;
}
.hero__tournoi-badge {
  background: #FFD580;
  color: #1e3557;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: .2rem .85rem;
}
.hero__tournoi-title {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0;
  line-height: 1.3;
}
.hero__tournoi-sub {
  font-size: clamp(.85rem, 2vw, .98rem);
  color: rgba(255,255,255,.78);
  text-align: center;
  margin: 0;
}
.hero__tournoi-btn {
  display: inline-block;
  margin-top: .4rem;
  padding: .6rem 1.75rem;
  background: #FFD580;
  color: #1e3557;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.hero__tournoi-btn:hover {
  background: #ffe9a8;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .hero__tournoi-card {
    padding: 1.2rem 1.2rem;
    max-width: 95%;
  }
}

/* Phrase locale — ton chaleureux, italique discret */
.hero__local {
  font-size: clamp(.8rem, 1.9vw, .93rem);
  color: rgba(255,255,255,.55);
  font-style: italic;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 2.2rem;
  animation: heroFadeUp .6s ease both .55s;
}

.hero__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: heroFadeUp .6s ease both .68s;
}

/* ============================================================
   8. Page hero (pages intérieures)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 55px; background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; font-size: .78rem; color: rgba(255,255,255,.5);
  margin-bottom: .9rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.68); transition: color var(--t); }
.page-hero__breadcrumb a:hover { color: var(--white); }
.page-hero__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800; margin-bottom: .7rem; color: var(--white);
}
.page-hero__subtitle {
  font-size: .98rem; color: rgba(255,255,255,.72);
  max-width: 500px; margin: 0 auto;
}

/* ============================================================
   9. Cartes génériques
   ============================================================ */
.cards-grid     { display: grid; gap: var(--gap); }
.cards-grid--3  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-grid--4  { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--bg-card); border-radius: var(--r);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__icon {
  width: 52px; height: 52px;
  background: var(--red-light); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.5rem; flex-shrink: 0;
}
.card__title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .55rem; }
.card__text  { font-size: .88rem; color: var(--muted); line-height: 1.65; flex: 1; }

/* ============================================================
   10. Carte "Prochain entraînement"
   ============================================================ */
.training-section { padding: 3rem 0 5rem; }

.training-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto;
  border-left: 5px solid var(--red);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.5rem; align-items: center;
}
.training-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, var(--red-light), transparent);
  pointer-events: none;
}
.training-card__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: .4rem;
}
.training-card__time {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--navy); margin-bottom: .45rem;
}
.training-card__location {
  display: flex; align-items: flex-start; gap: .45rem;
  color: var(--muted); font-size: .9rem;
}
.training-card__location svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.training-card__map {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; align-self: center; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.training-card__map img {
  display: block; width: 90px; height: 90px; object-fit: cover;
}
.training-card__map-label {
  display: block; width: 100%;
  background: var(--navy); color: var(--white);
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; text-align: center;
  padding: .3rem .5rem;
}
.training-card__map:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0,0,0,.20);
}
.training-card__map:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.stats-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stats-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
}
.stats-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.stats-card__value {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .4rem;
}
.stats-card__label {
  font-size: .95rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .training-card { grid-template-columns: 1fr; }
  .training-card__map { display: none; }
}

/* ============================================================
   Terrain Banner — photo aérienne pleine largeur
   ============================================================ */
.terrain-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('DJI_0074CUT2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallaxe desktop */
  overflow: hidden;
}
.terrain-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
}
.terrain-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 3rem 1.5rem;
}
.terrain-banner__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}
.terrain-banner__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
  margin: 0;
}
@media (max-width: 768px) {
  .hero {
    background-position: 72% 40%;
  }
}
@media (max-width: 768px) {
  .terrain-banner {
    background-attachment: scroll; /* désactive le parallaxe mobile */
    min-height: 300px;
  }
}

/* ============================================================
   11. Bloc CTA
   ============================================================ */
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); border-radius: var(--r-lg);
  padding: 3.5rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.cta-block__inner { position: relative; z-index: 1; }
.cta-block__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; margin-bottom: .9rem; color: var(--white);
}
.cta-block__text {
  color: rgba(255,255,255,.78);
  max-width: 500px; margin: 0 auto 2rem; font-size: .98rem;
}
.cta-block__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   12. Footer
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand-row {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem;
}
.footer__logo {
  height: 40px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .85;
}
.footer__brand-name { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer__tagline {
  font-size: .84rem; color: rgba(255,255,255,.5);
  line-height: 1.55; margin-bottom: 1.5rem;
}
.footer__heading {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); margin-bottom: .9rem;
}
.footer__links { display: flex; flex-direction: column; gap: .35rem; }
.footer__link {
  font-size: .84rem; color: rgba(255,255,255,.6);
  transition: color var(--t);
}
.footer__link:hover { color: var(--white); }
.footer__link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }

.footer__contact-item {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .84rem; color: rgba(255,255,255,.62);
  margin-bottom: .55rem;
}
.footer__contact-item svg { flex-shrink: 0; color: #FF7070; margin-top: 2px; }
.footer__contact-item a { color: rgba(255,255,255,.62); transition: color var(--t); }
.footer__contact-item a:hover { color: var(--white); }

.footer__social { display: flex; gap: .65rem; margin-top: 1.25rem; }
.footer__social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  transition: background var(--t), transform var(--t), color var(--t);
}
.footer__social-link:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer__social-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.38);
}

/* ============================================================
   13. Club — Histoire
   ============================================================ */
.histoire__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
@media (max-width: 768px) { .histoire__grid { grid-template-columns: 1fr; } }

.histoire__visual {
  border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4/3;
}
.placeholder-visual {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; color: rgba(255,255,255,.4);
  font-size: .8rem; text-align: center; padding: 2rem;
}
.placeholder-visual__icon { font-size: 3.5rem; opacity: .5; }

.histoire__text h3 { color: var(--navy); margin-bottom: .6rem; }
.histoire__text p  { font-size: .95rem; color: var(--muted); }

.histoire__aerial {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}
.histoire__text {
  max-width: 780px;
}

/* ============================================================
   14. Club — Valeurs
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.value-item {
  padding: 2rem; border-radius: var(--r);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--t), transform var(--t);
}
.value-item:hover { background: rgba(255,255,255,.11); transform: translateY(-3px); }
.value-item__icon  { font-size: 1.9rem; margin-bottom: .9rem; }
.value-item__title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .45rem; }
.value-item__text  { font-size: .84rem; color: rgba(255,255,255,.68); line-height: 1.65; }

/* ============================================================
   15. Club — Comité
   ============================================================ */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .committee-grid { grid-template-columns: 1fr; }
}

.member-card {
  text-align: center; background: var(--white);
  border-radius: var(--r); padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-card__initials {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  letter-spacing: .05em;
}
.member-card__avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; border: 3px solid var(--border);
}
.member-card__name  { font-size: .98rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.member-card__role  {
  font-size: .75rem; color: var(--red); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}

/* Variante portrait — photo 9:16 pleine largeur */
.member-card--portrait {
  padding: 0;
  overflow: hidden;
}
.member-card--portrait .member-card__photo {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.member-card--portrait .member-card__info {
  padding: 1.1rem 1.25rem 1.4rem;
  text-align: center;
}

/* ============================================================
   16. Club — Galerie
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery__item {
  border-radius: var(--r); cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.gallery__item:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }
.gallery__item:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.gallery__item__media {
  overflow: hidden; aspect-ratio: 4/3;
  border-radius: var(--r);
}
.gallery__item figcaption {
  font-size: .78rem; color: var(--navy);
  padding: .5rem .25rem 0; text-align: center;
  line-height: 1.4; font-style: italic;
}

.gallery__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem; font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.gallery__placeholder-icon { font-size: 2.2rem; opacity: .6; }
.gallery__group-title {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  letter-spacing: .03em; margin-bottom: 1rem;
}

/* ── Lightbox ─────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox__img-wrap {
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw;
}
.lightbox__img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--r);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  display: block;
}
.lightbox__caption {
  color: rgba(255,255,255,.85); font-size: .85rem;
  font-style: italic; text-align: center;
  margin-top: .75rem; max-width: 60ch; line-height: 1.5;
}
.lightbox__close {
  position: fixed; top: 1rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: white; font-size: 2.2rem; line-height: 1;
  opacity: .75; transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; cursor: pointer;
  color: white; font-size: 2rem; padding: .5rem .85rem;
  border-radius: var(--r); opacity: .8;
  transition: background .2s, opacity .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); opacity: 1; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.gallery__item { cursor: zoom-in; }

/* ============================================================
   17. Encadré "Où nous trouver"
   ============================================================ */
.info-box {
  background: var(--navy); color: var(--white);
  border-radius: var(--r-lg); padding: 2.5rem;
  position: relative; overflow: hidden;
}
.info-box::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.info-box__title  { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 1.2rem; }
.info-box__row {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-bottom: .7rem; font-size: .93rem; color: rgba(255,255,255,.78);
}
.info-box__row svg { flex-shrink: 0; color: #FF8080; margin-top: 2px; }

/* ============================================================
   18. Calendrier
   ============================================================ */
.calendar-ics-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.calendar-ics-hint {
  font-size: .8rem; color: var(--muted); font-style: italic;
}
.btn--sm {
  padding: .45rem 1rem; font-size: .82rem; gap: .4rem;
}

/* Liste d'événements */
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
  background: var(--white); border-radius: var(--r);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 76px 1fr auto;
  gap: 1.2rem; align-items: center;
  transition: transform var(--t), box-shadow var(--t);
}
.event-item__body { align-self: start; }
.event-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

.event-date {
  text-align: center; background: var(--navy);
  color: var(--white); border-radius: var(--r-sm);
  padding: .7rem .4rem;
}
.event-date__day   { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event-date__month {
  display: block; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .08em;
  opacity: .72; margin-top: .2rem;
}

.event-badge {
  display: inline-block; padding: .18rem .55rem; border-radius: 50px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: .3rem;
}
.badge--training { background: rgba(27,45,90,.1);  color: var(--navy); }
.badge--concours { background: var(--red-light);   color: var(--red); }
.badge--social   { background: rgba(39,174,96,.1); color: #1E8A4A; }

.event-title { font-size: .98rem; font-weight: 600; color: var(--navy); margin-bottom: .22rem; }
.event-meta  { font-size: .82rem; color: var(--muted); display: flex; gap: .9rem; flex-wrap: wrap; }
.event-meta__link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.event-meta__link:hover { color: var(--accent); }

.btn-ics {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem .8rem; border-radius: 50px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--navy); background: transparent;
  border: 1.5px solid var(--navy-light);
  cursor: pointer; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
  flex-shrink: 0;
}
.btn-ics:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-ics:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ============================================================
   19. Rejoindre — Avantages
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }

.benefit-item {
  display: flex; gap: 1rem; padding: 1.5rem;
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.benefit-item__icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--red-light); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.benefit-item__title { font-size: .92rem; font-weight: 700; color: var(--navy); margin-bottom: .22rem; }
.benefit-item__text  { font-size: .83rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   20. Rejoindre — Cotisations
   ============================================================ */
.cotisation-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem; max-width: 820px; margin: 0 auto;
}
.cotisation-card {
  background: var(--white); border-radius: var(--r);
  padding: 2rem 1.5rem; text-align: center;
  border: 2px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.cotisation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cotisation-card.featured { border-color: var(--navy); }
.cotisation-card__badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .28rem .8rem; border-radius: 50px;
}
.cotisation-card__type  {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .7rem;
}
.cotisation-card__price {
  font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1;
}
.cotisation-card__price sup { font-size: .95rem; font-weight: 400; color: var(--muted); }
.cotisation-card__price sub { font-size: .8rem; font-weight: 400; color: var(--muted); }
.cotisation-card__note  { font-size: .78rem; color: var(--muted); margin-top: .7rem; }

/* ============================================================
   21. Rejoindre — FAQ Accordéon
   ============================================================ */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--border); border-radius: var(--r);
  margin-bottom: .7rem; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.faq__question {
  width: 100%; display: flex;
  align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 1.5rem;
  text-align: left; font-size: .93rem; font-weight: 600;
  color: var(--navy); transition: background var(--t), color var(--t);
}
.faq__question:hover    { background: rgba(27,45,90,.03); }
.faq__question:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.faq__item.open .faq__question { color: var(--red); }

.faq__icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--red-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.1rem; font-weight: 700; line-height: 1;
  transition: transform var(--t), background var(--t), color var(--t);
}
.faq__item.open .faq__icon {
  transform: rotate(45deg);
  background: var(--red); color: var(--white);
}

.faq__answer        { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__answer-inner  { padding: 0 1.5rem 1.2rem; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.faq__item.open .faq__answer { max-height: 500px; }

/* ============================================================
   22. Contact — Formulaire
   ============================================================ */
.contact-layout {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 3rem; align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.5rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-card__title { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 1.75rem; }

.form__group    { margin-bottom: 1.2rem; }
.form__label    { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .38rem; }
.form__label span { color: var(--red); }

.form__input,
.form__textarea,
.form__select {
  width: 100%; padding: .72rem 1rem;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: .9rem; color: var(--text);
  background: var(--bg);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,45,90,.1);
}
.form__input.error,
.form__textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,39,42,.1);
}
.form__textarea  { resize: vertical; min-height: 135px; }
.form__error     { display: none; font-size: .78rem; color: var(--red); margin-top: .28rem; }
.form__error.show { display: block; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

.form__success {
  display: none; text-align: center;
  padding: 3rem 2rem; color: #1E8A4A;
}
.form__success.show { display: block; }
.form__success__icon { font-size: 3rem; margin-bottom: 1rem; }
.form__success h3    { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.form__success p     { font-size: .9rem; color: var(--muted); }

/* ============================================================
   23. Contact — Carte & infos
   ============================================================ */
.map-container {
  border-radius: var(--r-lg); overflow: hidden;
  height: 350px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info__item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.contact-info__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--red-light); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.1rem;
}
.contact-info__label { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .18rem; }
.contact-info__value { font-size: .9rem; color: var(--text); font-weight: 500; }
.contact-info__value a { color: var(--navy); transition: color var(--t); }
.contact-info__value a:hover { color: var(--red); }

/* ============================================================
   24. Animations légères (Intersection Observer)
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   25. Responsive ajustements divers
   ============================================================ */
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero__logo { margin-top: .75rem; }
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .cta-block   { padding: 2.5rem 1.25rem; }
  .training-card { padding: 1.75rem 1.5rem; }
  .form-card { padding: 1.75rem 1.25rem; }
  .event-item { grid-template-columns: 62px 1fr; }
}
