/* ==========================================================================
   AS Gym Salbris — feuille de styles
   Palette tirée du logo : bleu marine #000083, gris #666, blanc.
   Motif signature : le « double trait » du logo (élément marine + ombre grise
   décalée), repris sur les titres, boutons, cartes et rubans.
   ========================================================================== */

:root {
  --marine: #000083;
  --marine-fonce: #00005a;
  --marine-nuit: #00003c;
  --marine-clair: #1c2aa3;
  --roi: #2f4fd0;
  --ciel: #eef3fd;
  --ciel-2: #d6e2f8;
  --gris: #666666;
  --gris-clair: #a9adba;
  --argent: #e3e6ee;
  --encre: #141a44;
  --texte: #3a3f5c;
  --blanc: #ffffff;

  --font: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;

  --container: 1180px;
  --header-h: 84px;
  --radius-l: 24px;
  --radius-m: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { flex-shrink: 0; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blanc); color: var(--marine); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--roi);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Boutons — ombre grise décalée comme les lettres du logo
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 26px;
  font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 2px solid transparent; border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translate(3px, 3px); }

.btn--marine {
  background: var(--marine); color: var(--blanc);
  box-shadow: 5px 5px 0 var(--gris-clair);
}
.btn--marine:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--gris-clair); }
.btn--marine:active { box-shadow: 2px 2px 0 var(--gris-clair); }

.btn--blanc {
  background: var(--blanc); color: var(--marine);
  box-shadow: 5px 5px 0 rgba(102, 102, 102, .8);
}
.btn--blanc:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(102, 102, 102, .8); }
.btn--blanc:active { box-shadow: 2px 2px 0 rgba(102, 102, 102, .8); }

.btn--contour {
  background: transparent; color: var(--blanc);
  border-color: rgba(255, 255, 255, .85);
}
.btn--contour:hover { background: rgba(255, 255, 255, .12); }

.btn--small { padding: 10px 18px; font-size: .78rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--marine); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   En-tête — carte blanche du logo suspendue, comme sur le site de la piscine
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--marine); color: var(--blanc);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 40, .6); }

.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  height: var(--header-h);
}

.logo-card {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 172px; height: 142px; padding: 18px 16px;
  display: grid; place-items: center;
  background: var(--blanc);
  border-radius: 0 0 22px 22px;
  box-shadow: 6px 6px 0 rgba(102, 102, 102, .55), 0 14px 30px -10px rgba(0, 0, 40, .45);
  transition: width .35s var(--ease), height .35s var(--ease), padding .35s var(--ease);
}
.logo-card img { width: 100%; height: auto; }
.site-header.is-scrolled .logo-card { width: 120px; height: 96px; padding: 10px 12px; }

.main-nav ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  position: relative; display: block;
  padding: 10px 13px;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--blanc); box-shadow: 2px 2px 0 var(--gris);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 52px; height: 52px; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .9); background: transparent; cursor: pointer;
  place-items: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--blanc); transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -8px; }
.nav-toggle .bars::after { top: 8px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Bandeau d'information */
.infobar { background: var(--marine); color: var(--blanc); padding: 10px 0 30px; }
.infobar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: 205px;
}
.infobar p { margin: 0; font-size: 1rem; line-height: 1.5; }
.pill {
  display: inline-block; vertical-align: 2px; margin-right: 10px;
  padding: 3px 11px; border-radius: 999px;
  background: var(--blanc); color: var(--marine);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--gris);
}

/* --------------------------------------------------------------------------
   Héros
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 84vh, 800px);
  display: flex; align-items: center;
  color: var(--blanc);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.08);
  animation: hero-zoom 16s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 80, .9) 0%, rgba(0, 0, 110, .62) 42%, rgba(0, 0, 120, .08) 78%),
    linear-gradient(0deg, rgba(0, 0, 60, .55) 0%, transparent 40%);
}

.hero-wave-top { position: absolute; top: -1px; left: 0; width: 100%; height: 64px; z-index: 1; }
.hero-wave-top path { fill: var(--marine); }

.hero-content { position: relative; z-index: 2; padding: 110px 0 190px; max-width: 660px; }

.kicker {
  display: inline-block; margin: 0 0 .15em;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2;
  color: var(--roi);
  transform: rotate(-4deg); transform-origin: left center;
}
.hero .kicker { color: #c9d6ff; }

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6rem); line-height: .92; font-weight: 800;
  letter-spacing: .005em; text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--marine), 10px 10px 0 rgba(102, 102, 102, .55);
}
.hero h1 span { display: block; }
.hero-sub {
  max-width: 36ch; margin: 1.1em 0 1.9em;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Ruban de gymnastique animé */
.hero-ribbon {
  position: absolute; left: 0; bottom: 30px; z-index: 0;
  width: 100%; height: 300px; pointer-events: none;
}
.hero-ribbon path { fill: none; stroke-linecap: round; }
.hero-ribbon .r-main { stroke: rgba(255, 255, 255, .9); stroke-width: 4; }
.hero-ribbon .r-shadow { stroke: rgba(102, 102, 102, .7); stroke-width: 4; transform: translate(7px, 7px); }
.hero-ribbon .r-thin { stroke: rgba(201, 214, 255, .7); stroke-width: 1.6; }
.hero-ribbon path {
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
  animation: ribbon-draw 3.2s .5s var(--ease) forwards;
}
.hero-ribbon .r-thin { animation-delay: .9s; }
@keyframes ribbon-draw { to { stroke-dashoffset: 0; } }

/* Pastille tournante « saison » */
.hero-badge {
  position: absolute; right: 6%; bottom: 72px; z-index: 3;
  width: 148px; height: 148px; border-radius: 50%;
  background: var(--blanc); color: var(--marine);
  box-shadow: 6px 6px 0 rgba(102, 102, 102, .7);
  display: grid; place-items: center;
}
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-badge text { font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 2.6px; fill: var(--marine); }
.hero-badge-center { text-align: center; font-weight: 800; line-height: 1; font-size: 1.15rem; letter-spacing: .02em; }
.hero-badge-center small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; z-index: 2; }

/* --------------------------------------------------------------------------
   Sections & séparateurs « ruban »
   -------------------------------------------------------------------------- */
.section { position: relative; padding: 140px 0 120px; }
.section--ciel { background: var(--ciel); }
.section--blanc { background: var(--blanc); }
.section--marine { background: var(--marine); color: #dfe4ff; }

.swoosh { position: absolute; top: -1px; left: 0; width: 100%; height: 72px; display: block; pointer-events: none; }
.swoosh .s-fill { fill: var(--from, var(--blanc)); }
.swoosh .s-shadow { fill: var(--gris-clair); opacity: .75; }
.hero-wave-bottom .s-fill { fill: var(--to, var(--ciel)); }
.hero-wave-bottom .s-shadow { fill: rgba(102, 102, 102, .75); }

.section-head { text-align: center; margin-bottom: 56px; }
.title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem); line-height: 1.1; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--marine);
  text-shadow: 3px 3px 0 var(--ciel-2);
}
.section--ciel .title { text-shadow: 3px 3px 0 #c9d2e6; }
.section--marine .title { color: var(--blanc); text-shadow: 3px 3px 0 rgba(102, 102, 102, .8); }

.title-swoosh { display: block; width: 86px; height: 18px; margin: 16px auto 0; overflow: visible; }
.title-swoosh path { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.title-swoosh .a { stroke: var(--marine); }
.title-swoosh .b { stroke: var(--gris-clair); }
.section--marine .title-swoosh .a, .site-footer .title-swoosh .a { stroke: var(--blanc); }
.section--marine .title-swoosh .b, .site-footer .title-swoosh .b { stroke: var(--gris); }

.section-intro { max-width: 64ch; margin: 22px auto 0; font-size: 1.1rem; }
.center { text-align: center; margin-top: 52px; }

/* --------------------------------------------------------------------------
   Actualités
   -------------------------------------------------------------------------- */
.cards-actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.actu {
  display: flex; flex-direction: column;
  background: var(--blanc); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 80, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.actu:hover { transform: translateY(-6px); box-shadow: 9px 9px 0 var(--ciel-2), 0 26px 50px -22px rgba(0, 0, 80, .45); }
.actu-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ciel-2); }
.actu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.actu:hover .actu-media img { transform: scale(1.05); }
.actu-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.actu-date { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--roi); }
.actu h3 { margin: 0; font-size: 1.22rem; line-height: 1.25; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--marine); }
.actu p { margin: 0; font-size: .98rem; }
.actu .link-arrow { margin-top: auto; padding-top: 8px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Le club
   -------------------------------------------------------------------------- */
.club-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }

.club-photo { position: relative; justify-self: center; width: min(100%, 430px); aspect-ratio: 1; }
.club-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 8px solid var(--blanc);
  box-shadow: 14px 14px 0 rgba(102, 102, 102, .75);
}
.club-photo-tag {
  position: absolute; left: -6px; bottom: 26px;
  padding: 14px 20px; border-radius: 16px;
  background: var(--blanc); color: var(--marine);
  font-weight: 800; font-size: .95rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 5px 5px 0 rgba(102, 102, 102, .8);
  transform: rotate(-4deg);
}
.club-photo-tag span { display: block; font-family: var(--script); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--roi); font-size: 1.15rem; }

.club-box { position: relative; padding: 36px 38px; border: 2px solid rgba(255, 255, 255, .9); }
.club-box::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 2px solid rgba(102, 102, 102, .9);
  transform: translate(10px, 10px);
}
.club-box { isolation: isolate; }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.club-list li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; line-height: 1.5; }
.club-list .icon { width: 28px; height: 28px; color: var(--blanc); margin-top: 1px; }
.club-list strong { color: var(--blanc); font-weight: 600; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 80px; padding: 0; list-style: none;
}
.stats li {
  text-align: center; padding: 26px 14px;
  border-radius: var(--radius-m); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
}
.stats strong {
  display: block; color: var(--blanc);
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.05;
  text-shadow: 3px 3px 0 rgba(102, 102, 102, .8);
}
.stats span { display: block; margin-top: 8px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Activités
   -------------------------------------------------------------------------- */
.section--motif {
  background-color: var(--blanc);
  background-image: radial-gradient(var(--argent) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
}
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 110px 30px; margin-top: 120px; }

.act {
  position: relative; display: flex; flex-direction: column;
  padding: 98px 28px 30px; text-align: center;
  background: var(--blanc); border: 1px solid var(--argent); border-radius: var(--radius-l);
  box-shadow: 9px 9px 0 var(--ciel-2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.act:hover { transform: translateY(-6px); box-shadow: 13px 13px 0 var(--ciel-2); }
.act-img {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--blanc);
  box-shadow: 6px 6px 0 var(--gris-clair);
  transition: transform .45s var(--ease);
}
.act:hover .act-img { transform: translateX(-50%) rotate(-3deg) scale(1.04); }
.act h3 { margin: 0 0 10px; font-size: 1.32rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--marine); }
.act-tag {
  align-self: center; margin-bottom: 14px; padding: 4px 13px; border-radius: 999px;
  background: var(--ciel); color: var(--roi);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.act p { margin: 0; font-size: .98rem; }
.act-times {
  display: grid; gap: 8px; margin: 18px 0 0; padding: 18px 0 0; list-style: none; text-align: left;
  border-top: 1px dashed var(--gris-clair);
}
.act-times li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; line-height: 1.45; }
.act-times .icon { width: 18px; height: 18px; color: var(--roi); margin-top: 3px; }
.act-times strong { color: var(--marine); font-weight: 600; }
.act-new {
  position: absolute; top: 20px; right: -10px;
  padding: 6px 14px; border-radius: 8px;
  background: var(--marine); color: var(--blanc);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--gris);
  transform: rotate(4deg);
}

/* --------------------------------------------------------------------------
   Horaires & tarifs
   -------------------------------------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0 0 30px; padding: 0; list-style: none; font-size: .9rem; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }

.planning { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.day { background: var(--blanc); border-radius: var(--radius-m); overflow: hidden; box-shadow: 6px 6px 0 var(--ciel-2); }
.day h3 {
  margin: 0; padding: 12px; text-align: center;
  background: var(--marine); color: var(--blanc);
  font-size: .9rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.day ul { list-style: none; margin: 0; padding: 14px; display: grid; gap: 12px; }
.slot {
  --c: var(--roi);
  padding: 9px 11px; border-radius: 8px; border-left: 4px solid var(--c);
  background: #f5f7fe;
  background: color-mix(in srgb, var(--c) 7%, white);
}
.slot time { display: block; font-weight: 700; color: var(--marine); font-size: .92rem; }
.slot span { display: block; font-size: .93rem; line-height: 1.35; color: var(--encre); }
.slot small { display: block; color: var(--gris); font-size: .8rem; margin-top: 2px; }
.slot--enfants, .legend .l-enfants { --c: var(--roi); }
.slot--adultes, .legend .l-adultes { --c: #8a8fa3; }
.slot--compet, .legend .l-compet { --c: var(--marine); }

.compet-band {
  display: flex; align-items: center; gap: 18px;
  margin-top: 26px; padding: 20px 26px; border-radius: var(--radius-m);
  background: var(--marine); color: var(--blanc);
  box-shadow: 6px 6px 0 var(--gris-clair);
}
.compet-band .icon { width: 34px; height: 34px; }
.compet-band p { margin: 0; }
.compet-band strong { text-transform: uppercase; letter-spacing: .06em; }

.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.info-card {
  position: relative; padding: 30px 28px; border-radius: var(--radius-l);
  background: var(--blanc); border: 1px solid var(--argent);
}
.info-card .icon-wrap {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 14px; background: var(--marine); color: var(--blanc);
  box-shadow: 4px 4px 0 var(--gris-clair);
}
.info-card .icon { width: 26px; height: 26px; }
.info-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--marine); }
.info-card p { margin: 0 0 10px; font-size: .98rem; }
.info-card p:last-child { margin-bottom: 0; }
.price { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--argent); }
.price strong { color: var(--marine); white-space: nowrap; }
.affiches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */
.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 23vw, 280px);
  --bord: max(16px, calc((100vw - var(--container)) / 2));
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--bord);
  margin-inline: calc(50% - 50vw);
  padding: 10px var(--bord) 50px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 20px; overflow: hidden; background: var(--marine-clair);
  scroll-snap-align: start;
  box-shadow: 7px 7px 0 rgba(102, 102, 102, .7);
  transition: transform .35s var(--ease);
}
.gallery-item:nth-child(even) { margin-top: 34px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 100, .45), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 14px; }
.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blanc); color: var(--marine); border: 0; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(102, 102, 102, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.round-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(102, 102, 102, .8); }
.round-btn:disabled { opacity: .4; cursor: default; transform: none; }
.round-btn .icon { width: 22px; height: 22px; }
.gallery-progress { width: min(260px, 40vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; width: 20%; background: var(--blanc); border-radius: 4px; transition: width .2s; }

/* --------------------------------------------------------------------------
   Appel à l'action
   -------------------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: 170px 0 150px; color: var(--blanc); text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(0, 0, 90, .92), rgba(0, 0, 131, .72)); }
.cta .kicker { color: #c9d6ff; transform-origin: center; max-width: none; margin: 0 0 .15em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; text-shadow: 4px 4px 0 rgba(102, 102, 102, .75); }
.cta p { max-width: 54ch; margin: 18px auto 34px; font-size: 1.12rem; }
.cta .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { position: relative; padding: 70px 0 0; background: var(--marine-fonce); color: #cdd4f6; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.05fr .75fr 1.35fr; gap: 44px; }
.footer-logo {
  display: block; width: 190px; padding: 18px; border-radius: 18px; background: var(--blanc);
  box-shadow: 6px 6px 0 rgba(102, 102, 102, .7);
}
.footer-about p { margin: 22px 0 0; font-size: .95rem; }
.footer-title { margin: 0; color: var(--blanc); font-size: 1rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .title-swoosh { margin: 10px 0 22px; width: 64px; height: 14px; }
.contact-list, .footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .97rem; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.contact-list .icon { width: 20px; height: 20px; color: var(--blanc); margin-top: 2px; }
.contact-list a, .footer-menu a { text-decoration: none; transition: color .2s; }
.contact-list a:hover, .footer-menu a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 4px; }
.footer-menu { gap: 10px; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.map { border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 rgba(102, 102, 102, .7); background: var(--marine-clair); }
.map iframe { display: block; width: 100%; height: 230px; border: 0; }
.footer-bottom { margin-top: 80px; padding: 18px 0; background: var(--marine-nuit); font-size: .85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .78rem; }
.footer-bottom a:hover { color: var(--blanc); }

/* --------------------------------------------------------------------------
   Visionneuse (lightbox)
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--blanc);
}
.lightbox::backdrop { background: rgba(0, 0, 40, .93); }
.lightbox figure { height: 100%; margin: 0; padding: 70px 84px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain;
  border-radius: 14px; box-shadow: 8px 8px 0 rgba(102, 102, 102, .6);
}
.lightbox figcaption { max-width: 70ch; text-align: center; font-size: .98rem; }
.lb-close, .lb-prev, .lb-next { position: fixed; z-index: 2; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(calc(-50% - 2px)); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* --------------------------------------------------------------------------
   Page intérieure (mentions légales)
   -------------------------------------------------------------------------- */
.page-head { background: var(--marine); color: var(--blanc); padding: 70px 0 120px; position: relative; }
.page-head .container { padding-left: 205px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-shadow: 4px 4px 0 rgba(102, 102, 102, .75); }
.prose { max-width: 760px; }
.prose h2 { margin: 2em 0 .5em; font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--marine); }
.prose p, .prose li { font-size: 1.02rem; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Apparitions au défilement
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

.hero-content > * { animation: rise .9s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero-content > .kicker { animation-name: rise-kicker; }
@keyframes rise-kicker { from { opacity: 0; transform: translateY(26px) rotate(-4deg); } to { transform: rotate(-4deg); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--marine); border-top: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 40, .7);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 16px 16px 24px 160px; }
  .main-nav a { padding: 14px 8px; font-size: .92rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .main-nav a::after { left: 8px; right: auto; width: 40px; bottom: 8px; }
  .logo-card { width: 140px; height: 116px; padding: 14px 12px; }
  .site-header.is-scrolled .logo-card { width: 104px; height: 84px; }
  .infobar .container { padding-left: 165px; }
  .page-head .container { padding-left: 165px; }
}

@media (max-width: 960px) {
  .cards-actus { grid-template-columns: 1fr 1fr; }
  .cards-actus .actu:last-child { grid-column: 1 / -1; max-width: calc(50% - 15px); justify-self: center; }
  .club-grid { grid-template-columns: 1fr; gap: 56px; }
  .club-photo { width: min(100%, 360px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .acts { grid-template-columns: 1fr 1fr; }
  .planning { grid-template-columns: repeat(3, 1fr); }
  .infos { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { width: 122px; height: 122px; right: 4%; bottom: 84px; }
  .hero-badge text { font-size: 10.5px; letter-spacing: 2px; }
}

@media (max-width: 680px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .logo-card { width: 112px; height: 94px; padding: 10px; border-radius: 0 0 18px 18px; }
  .site-header.is-scrolled .logo-card { width: 92px; height: 74px; padding: 8px; }
  .nav-toggle { width: 46px; height: 46px; }
  .main-nav ul { padding: 34px 16px 24px; }
  .infobar { padding: 34px 0 24px; }
  .infobar .container { padding-left: 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-head { padding-top: 60px; }
  .page-head .container { padding-left: 0; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero-content { padding: 90px 0 150px; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(0, 0, 80, .95) 0%, rgba(0, 0, 100, .7) 50%, rgba(0, 0, 110, .25) 100%);
  }
  .hero-badge { display: none; }
  .hero-ribbon { height: 160px; bottom: 24px; opacity: .55; }
  .hero-ribbon .r-thin { display: none; }
  .section { padding: 110px 0 90px; }
  .swoosh { height: 46px; }
  .hero-wave-bottom { height: 50px; }
  .hero-wave-top { height: 40px; }
  .cards-actus { grid-template-columns: 1fr; }
  .cards-actus .actu:last-child { max-width: none; }
  .club-box { padding: 28px 22px; }
  .club-box::after { transform: translate(7px, 7px); }
  .acts { grid-template-columns: 1fr; gap: 104px; }
  .planning { grid-template-columns: 1fr 1fr; gap: 12px; }
  .day ul { padding: 10px; }
  .compet-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery-item:nth-child(even) { margin-top: 22px; }
  .lightbox figure { padding: 76px 14px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: translate(-2px, -2px); }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

@media (max-width: 420px) {
  .slot { padding: 8px 9px; }
  .slot time { font-size: .86rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats li { padding: 20px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-ribbon path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}


/* --- Bandeau Information Flash --- */
.flash-info {
    background-color: #f0f4f9;
    border-left: 5px solid #d93025; /* Barre rouge sur le côté */
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px auto;
    max-width: 1100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.flash-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #d93025;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.flash-info p {
    margin: 0;
    color: #1f1f1f;
    font-size: 1rem;
    line-height: 1.5;
}