/* ==========================================================================
   RNC — Running Night Club · Reims
   Feuille de style principale
   --------------------------------------------------------------------------
   1.  Variables
   2.  Polices
   3.  Base
   4.  Utilitaires & typographie
   5.  Boutons
   6.  Navigation
   7.  Hero (accueil)
   8.  Hero des pages intérieures
   9.  Bandeau défilant
   10. Chiffres clés
   11. Sections communes
   12. Le club
   13. Infos run
   14. Groupes d'allure
   15. Les runs
   16. Vignettes (accueil)
   17. Partenaires
   18. Shop
   19. FAQ & contact
   20. Appel final
   21. Pied de page
   22. Page 404 & mentions légales
   23. Animations
   24. Responsive
   25. Mouvement réduit
   ========================================================================== */


/* 1. Variables
   ========================================================================== */

:root {
  /* Couleurs du club */
  --sage: #566b64;
  --sage-dark: #3f504a;
  --night: #121815;
  --night-light: #1b2420;
  --night-deep: #0d110f;
  --cream: #f3eee3;
  --beige: #efe7da;
  --grey-light: #ecebe6;
  --orange: #eca05d;
  --pink: #f080c0;
  --ink: #1e2622;

  /* Typo */
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;

  /* Divers */
  --radius: 18px;
  --radius-lg: 24px;
  --nav-height: 74px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}


/* 2. Polices
   Hébergées sur le site (pas de requête vers Google), licence SIL OFL
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-900-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-800-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-900-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Gochi Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gochi-hand-latin-400-normal.woff2") format("woff2");
}


/* 3. Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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


/* 4. Utilitaires & typographie
   ========================================================================== */

.wrap {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.kicker--sage   { color: var(--sage); }
.kicker--orange { color: var(--orange); }
.kicker--pink   { color: var(--pink); }

/* Texte lu par les lecteurs d'écran mais invisible à l'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: .7em 1.2em;
  border-radius: 10px;
  background: var(--orange);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}


/* 5. Boutons
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.5em;
  border: 0;
  border-radius: 999px;
  font: 600 .98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .25s;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Reflet qui traverse le bouton au survol */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .6s;
}

.btn:hover::after {
  left: 130%;
}

.btn--cream  { background: var(--cream); color: var(--night); }
.btn--orange { background: var(--orange); color: var(--night); }
.btn--sage   { background: var(--sage); color: var(--cream); }

.btn--ghost {
  border: 1.5px solid rgba(243, 238, 227, .55);
  color: var(--cream);
}

.btn--ghost:hover {
  background: rgba(243, 238, 227, .12);
}


/* 6. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(18, 24, 21, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo img {
  width: auto;
  height: 46px;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  position: relative;
  color: var(--cream);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  opacity: .85;
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
}

.nav__links a[aria-current="page"] {
  color: var(--orange);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  padding: .6em 1.15em;
  font-size: .88rem;
}

.nav__burger {
  display: none;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--cream);
  cursor: pointer;
}

.nav__burger svg {
  width: 28px;
  height: 28px;
}


/* 7. Hero (accueil)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--night);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 48px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.hero__lead {
  max-width: 560px;
  margin: 18px 0 26px;
  font-size: 1.12rem;
  opacity: .9;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  list-style: none;
}

.chip {
  padding: .45em 1em;
  border: 1.5px solid rgba(243, 238, 227, .35);
  border-radius: 999px;
  background: rgba(18, 24, 21, .35);
  backdrop-filter: blur(6px);
  font-size: .85rem;
  font-weight: 500;
  transition: background .25s, border-color .25s, transform .25s;
}

.chip:hover {
  border-color: var(--orange);
  background: rgba(236, 160, 93, .2);
  transform: translateY(-3px);
}

/* Assombrit le côté gauche pour la lisibilité du texte */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 19, 17, .75) 0%, rgba(14, 19, 17, .2) 55%, transparent 100%);
  pointer-events: none;
}

/* Décor de fond : dégradés, grille de points, lune, tracé, lumières */
.night-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 35%, rgba(86, 107, 100, .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(236, 160, 93, .1), transparent 70%),
    linear-gradient(180deg, #0e1311 0%, #16201c 55%, var(--night) 100%);
}

.night-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 238, 227, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

.night-sky__moon {
  position: absolute;
  top: 8vh;
  right: -8vw;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 38px 0 0 0 rgba(243, 238, 227, .1);
  transform: rotate(-20deg);
  animation: moon-float 9s ease-in-out infinite;
}

.night-sky__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.night-sky__route path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  filter: drop-shadow(0 0 8px rgba(236, 160, 93, .6));
  animation: draw-route 4.5s .4s cubic-bezier(.4, 0, .2, 1) forwards;
}

.night-sky__route circle {
  opacity: 0;
  animation: fade-in .4s 4.7s forwards;
}

.night-sky__lights {
  position: absolute;
  inset: 0;
}

.light {
  position: absolute;
  border-radius: 50%;
  background: #fff6e6;
  box-shadow: 0 0 14px 4px rgba(255, 246, 230, .45);
  animation: twinkle 3s ease-in-out infinite;
}


/* 8. Hero des pages intérieures
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 90px;
  color: var(--cream);
  background: var(--night);
}

.page-hero .night-sky__moon {
  top: -30%;
  width: min(55vw, 620px);
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  margin: 14px 0 18px;
  font-size: clamp(3rem, 9vw, 6.6rem);
  animation-delay: .2s;
}

.page-hero__lead {
  max-width: 560px;
  font-size: 1.12rem;
  color: rgba(243, 238, 227, .85);
  animation-delay: .35s;
}

.breadcrumb ol {
  display: flex;
  gap: .5em;
  margin-bottom: 10px;
  list-style: none;
  font-size: .85rem;
  opacity: .6;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .5em;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}


/* 9. Bandeau défilant
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-block: 2px solid var(--night);
  background: var(--orange);
  color: var(--night);
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  padding: 0 1.3rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.marquee span::after {
  content: "✦";
  margin-left: 2.6rem;
  font-style: normal;
}


/* 10. Chiffres clés
   ========================================================================== */

.stats {
  padding: 90px 0;
  color: var(--cream);
  background: var(--night);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(243, 238, 227, .12);
  list-style: none;
}

.stat {
  padding: 34px 26px;
  background: var(--night);
}

.stat__number {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.stat__number--accent {
  color: var(--orange);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: .95rem;
  opacity: .7;
}


/* 11. Sections communes
   ========================================================================== */

.section {
  padding: 110px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 54px;
}

.section-head__title {
  margin-top: 12px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.section-head__text {
  max-width: 420px;
  opacity: .8;
}


/* 12. Le club
   ========================================================================== */

.club {
  color: var(--cream);
  background: var(--sage);
}

.club__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.club__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.club__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club__photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  padding: .5em 1em;
  border-radius: 10px;
  background: var(--cream);
  color: var(--night);
  font-size: .88rem;
  font-weight: 600;
}

.club__title {
  margin: 14px 0 26px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.club p {
  margin-bottom: 16px;
  font-size: 1.06rem;
  opacity: .9;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
  list-style: none;
}

.pillar {
  padding: 18px;
  border: 1px solid rgba(243, 238, 227, .18);
  border-radius: 14px;
  background: rgba(243, 238, 227, .08);
}

.pillar strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.pillar span {
  font-size: .9rem;
  opacity: .8;
}


/* 13. Infos run
   ========================================================================== */

.infos {
  overflow: hidden;
  background-color: var(--beige);
  background-image: radial-gradient(rgba(30, 38, 34, .13) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

.infos__badge {
  display: inline-block;
  padding: .5em 1.2em;
  border-radius: 12px;
  background: var(--sage);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  transform: rotate(2deg);
  box-shadow: 4px 5px 0 var(--ink);
}

.infos__banner {
  max-width: 880px;
  margin: 44px 0 0 -6vw;
  padding: 34px 40px 34px 6vw;
  border: 3px solid var(--ink);
  border-left: 0;
  border-radius: 0 26px 26px 0;
  background: var(--orange);
  box-shadow: 0 8px 0 var(--ink);
  transform: rotate(-2deg);
}

.infos__banner h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: .95;
  text-transform: uppercase;
}

.infos__hand {
  position: relative;
  display: block;
  margin: 18px 6% 0 0;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  text-align: right;
  transform: rotate(-4deg);
}

.infos__hand::after {
  content: "";
  display: block;
  width: min(420px, 70%);
  height: 4px;
  margin: 4px 0 0 auto;
  border-radius: 4px;
  background: var(--sage);
  transform: rotate(-2deg);
}

.note {
  position: relative;
  max-width: 760px;
  margin: 46px auto 0;
  padding: 40px 38px 34px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .09);
  transform: rotate(.6deg);
}

/* Morceau de scotch */
.note::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 150px;
  height: 30px;
  background: rgba(160, 175, 180, .6);
  transform: translateX(-50%) rotate(-1deg);
}

.note p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.2;
}

.note mark {
  padding: 0 .2em;
  background: var(--orange);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em 1.1em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.pill svg {
  width: 18px;
  height: 18px;
}

.days {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 46px auto 0;
}

.days .pills {
  margin: 0;
}

.days .pill {
  padding: .45em 1.3em;
  background: #fff;
  font-size: 1.15rem;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
}

.days .pill:hover {
  transform: translate(-2px, -2px) rotate(-2deg);
  box-shadow: 5px 5px 0 var(--ink);
}

.days__bisous {
  font-size: 1.9rem;
  color: var(--sage-dark);
}


/* 14. Groupes d'allure
   ========================================================================== */

.groups {
  background: var(--cream);
}

.groups__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.group {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px 28px;
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--night);
}

.group--medium { background: var(--sage); }
.group--fast   { background: var(--orange); color: var(--night); }

.group .kicker {
  opacity: .75;
}

.group__name {
  margin: 12px 0 4px;
  font-size: 2.6rem;
}

.group__pace {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.group p {
  margin-top: 14px;
  font-size: .97rem;
  opacity: .85;
}

.group__meta {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
  font-size: .88rem;
  font-weight: 600;
}

.group__route {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 150px;
  opacity: .35;
}

.group__route path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 2s .3s ease;
}

.group--fast .group__route {
  opacity: .55;
}

.group--fast .group__route path {
  stroke: var(--ink);
}

.group.is-visible .group__route path {
  stroke-dashoffset: 0;
}

.small-note {
  margin-top: 22px;
  font-size: .88rem;
  opacity: .65;
}


/* 15. Les runs
   ========================================================================== */

.runs {
  color: var(--cream);
  background: var(--night);
}

/* Bloc record */
.record {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(240, 128, 192, .25);
  border-radius: var(--radius-lg);
  background: var(--night-light);
}

.record__photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.record__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 38px;
  background: radial-gradient(ellipse at 100% 0%, rgba(240, 128, 192, .18), transparent 60%);
}

.record__number {
  margin-top: 10px;
  font-size: clamp(5rem, 11vw, 8.5rem);
  font-style: normal;
  line-height: .9;
  color: var(--pink);
  animation: glow 2.6s ease-in-out infinite;
}

.record__subtitle {
  margin: 6px 0 26px;
  font-size: 1.3rem;
  font-weight: 500;
}

.record__money {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 238, 227, .12);
}

.record__money strong {
  font-size: 2.4rem;
}

.record__money span {
  opacity: .8;
}

/* Cartes des derniers runs */
.runs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.run-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--night-light);
}

.run-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.run-card:hover img {
  transform: scale(1.06);
}

.run-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 24, 21, .92));
}

.run-card__caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
}

.run-card__count {
  display: block;
  font-size: 3.4rem;
}

.run-card__date {
  font-size: .85rem;
  font-weight: 500;
  opacity: .8;
}

/* Graphique de fréquentation */
.chart {
  margin-top: 44px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--night-light);
}

.chart__title {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.chart__bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.bar {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
}

.bar__track {
  overflow: hidden;
  height: 14px;
  border-radius: 8px;
  background: rgba(243, 238, 227, .08);
}

.bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: var(--sage);
  transition: width 1.2s var(--ease-out);
}

.bar__value {
  font-family: var(--font-display);
  font-weight: 800;
  text-align: right;
}

.bar--record .bar__fill  { background: var(--pink); }
.bar--record .bar__value { color: var(--pink); }

/* Runs sans photo */
.record--no-photo {
  grid-template-columns: 1fr;
}

.run-card--no-photo {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(86, 107, 100, .7), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(236, 160, 93, .25), transparent 60%),
    var(--night-light);
}

.runs__empty {
  margin-top: 16px;
  opacity: .8;
}

/* Historique complet */
.history {
  margin-top: 16px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--night-light);
}

.history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.history__table th {
  padding: 0 0 10px;
  font-size: .78rem;
  letter-spacing: .15em;
  text-align: left;
  text-transform: uppercase;
  opacity: .6;
}

.history__table td {
  padding: 10px 0;
  border-top: 1px solid rgba(243, 238, 227, .08);
}

.history__table th:last-child,
.history__table td:last-child {
  font-family: var(--font-display);
  font-weight: 800;
  text-align: right;
}

/* 16. Vignettes (accueil)
   ========================================================================== */

.teasers {
  background: var(--cream);
}

.teasers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.teaser {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--sage);
  color: var(--cream);
  text-decoration: none;
}

.teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.teaser:hover img {
  transform: scale(1.06);
}

.teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(18, 24, 21, .9));
}

.teaser--logo img {
  padding: 22%;
  object-fit: contain;
}

.teaser--cap {
  background: var(--grey-light);
}

.teaser--cap img {
  padding: 8%;
  object-fit: contain;
}

.teaser__body {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
}

.teaser__title {
  font-size: 2rem;
}

.teaser__text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: .9rem;
  opacity: .85;
}


/* 17. Partenaires
   ========================================================================== */

.partners {
  color: var(--cream);
  background: var(--sage);
}

.partner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sage-dark);
}

.partner__body {
  padding: 50px 44px;
}

.partner__body .kicker {
  opacity: .75;
}

.partner__name {
  margin: 16px 0 6px;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.partner__underline {
  width: min(330px, 80%);
  height: 5px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: #f2f27a;
  box-shadow: 0 0 18px rgba(242, 242, 122, .6);
}

.partner__tagline {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .35em;
  opacity: .85;
}

.partner__sites {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  list-style: none;
}

.partner__sites li {
  padding: .5em 1em;
  border: 1.5px solid rgba(243, 238, 227, .35);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .12em;
}

.partner__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--night);
}

.partner__visual img {
  width: min(300px, 80%);
}

.partners__more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  list-style: none;
}

.partners__more li {
  padding: 22px;
  border: 1.5px dashed rgba(243, 238, 227, .35);
  border-radius: 16px;
  font-size: .95rem;
}

.partners__more h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}


/* 18. Shop
   ========================================================================== */

.shop {
  background: var(--grey-light);
}

.shop__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.shop__visual {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #f1f0ec;
}

.shop__visual img {
  animation: cap-float 5s ease-in-out infinite;
}

.shop__title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: .9;
  color: var(--sage);
}

.shop__presale {
  display: inline-block;
  margin-bottom: 26px;
  padding: .5em 1em;
  border: 1.5px solid var(--sage);
  border-radius: 999px;
  color: var(--sage-dark);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3em;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 30px;
  border-block: 1px solid rgba(86, 107, 100, .3);
  list-style: none;
}

.feature {
  padding: 18px 6px;
  color: var(--sage-dark);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
}

.feature + .feature {
  border-left: 1px solid rgba(86, 107, 100, .3);
}

.feature svg {
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.8;
  transition: transform .3s;
}

.feature:hover svg {
  transform: scale(1.25) rotate(-8deg);
}


/* 19. FAQ & contact
   ========================================================================== */

.faq {
  background: var(--cream);
}

.faq__list {
  max-width: 820px;
}

.faq details {
  padding: 22px 0;
  border-bottom: 1.5px solid rgba(30, 38, 34, .15);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  transition: color .2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--sage);
}

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform .25s, background .25s;
}

.faq details[open] .faq__icon {
  background: var(--orange);
  color: var(--night);
  transform: rotate(45deg);
}

.faq details p {
  max-width: 680px;
  margin-top: 12px;
  opacity: .82;
}

.faq details[open] p {
  animation: slide-up .45s ease;
}

.contact {
  background: var(--cream);
}

.contact .section-head__text a {
  color: var(--sage-dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px;
  border: 1.5px solid rgba(30, 38, 34, .1);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.contact-card:target {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(236, 160, 93, .3);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--beige);
  font-size: 1.6rem;
}

.contact-card__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.contact-card p {
  margin-bottom: 22px;
  font-size: .95rem;
  opacity: .8;
}

.contact-card__btn {
  margin-top: auto;
  padding: .8em 1.25em;
  font-size: .9rem;
}

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--cream);
  background: var(--night);
}

.contact__direct-title {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact__direct p {
  max-width: 440px;
  opacity: .85;
}

.contact__direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* 20. Appel final
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  color: var(--cream);
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(236, 160, 93, .22), transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(86, 107, 100, .45), transparent 70%),
    var(--night);
  text-align: center;
}

.cta__title {
  font-size: clamp(3rem, 9vw, 7rem);
}

.cta__hand {
  display: block;
  margin: 14px 0 34px;
  font-size: 2.2rem;
  color: var(--orange);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* 21. Pied de page
   ========================================================================== */

.footer {
  padding: 50px 0 34px;
  color: rgba(243, 238, 227, .7);
  background: var(--night-deep);
  font-size: .9rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer__logo img {
  width: auto;
  height: 56px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--cream);
}

.footer__legal a {
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 238, 227, .08);
  font-size: .8rem;
}

/* Bouton retour en haut (ajouté en JS) */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--night);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.8);
  transition: opacity .3s, transform .3s;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* Barre de progression du scroll (ajoutée en JS) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}


/* 22. Page 404 & mentions légales
   ========================================================================== */

.not-found {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
  color: var(--cream);
  background: var(--night);
}

.not-found .wrap {
  position: relative;
  z-index: 2;
}

.not-found__code {
  font-size: clamp(7rem, 22vw, 14rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
}

.not-found__text {
  max-width: 480px;
  margin: 10px 0 30px;
  font-size: 1.15rem;
  opacity: .85;
}

.legal {
  background: var(--cream);
}

.legal__content {
  max-width: 760px;
}

.legal__content h2 {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content p,
.legal__content li {
  margin-bottom: 10px;
}

.legal__content ul {
  padding-left: 1.2em;
}

.legal__content dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: #fff;
}

.legal__content dt {
  font-weight: 600;
}

.legal__content a {
  color: var(--sage-dark);
}


/* 23. Animations
   ========================================================================== */

/* Sortie de page avant navigation */
body.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s;
}

/* Entrées du hero (CSS seul, sans JS) */
.anim-up {
  opacity: 0;
  animation: slide-up .9s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}

.line > span {
  display: block;
  transform: translateY(105%);
  animation: line-up 1s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}

/* « Night Club » se remplit au survol */
.hero__title .outline {
  background: linear-gradient(90deg, var(--cream) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position .7s var(--ease-out);
}

.hero__title:hover .outline {
  background-position: 0 0;
}

.page-hero .breadcrumb,
.page-hero .kicker,
.page-hero__title,
.page-hero__lead {
  opacity: 0;
  animation: slide-up .9s var(--ease-out) forwards;
}

.page-hero .kicker {
  animation-delay: .1s;
}

/* Apparition au scroll : seulement si le JS tourne (classe .js sur <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal--left  { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal--zoom  { transform: scale(.92); }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Petits effets de la section infos */
.js .infos__banner.is-visible {
  animation: wobble 1s .3s ease;
}

.js .infos__hand {
  opacity: 0;
  transform: rotate(-4deg) translateY(16px);
  transition: opacity .6s .5s, transform .6s .5s;
}

.js .infos__hand.is-visible {
  opacity: 1;
  transform: rotate(-4deg);
}

.js .infos__hand::after {
  transform: rotate(-2deg) scaleX(0);
  transform-origin: right;
  transition: transform .7s 1s;
}

.js .infos__hand.is-visible::after {
  transform: rotate(-2deg) scaleX(1);
}

.js .note mark {
  background: linear-gradient(var(--orange), var(--orange)) 0 0 / 0% 100% no-repeat;
  transition: background-size .8s .6s;
}

.js .note.is-visible mark {
  background-size: 100% 100%;
}

/* Cartes inclinables (effet 3D en JS) */
.tilt {
  transform-style: preserve-3d;
}

.js .tilt.is-visible {
  transition: transform .25s ease-out, opacity .9s;
}

.tilt__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, .18), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.tilt:hover .tilt__glare {
  opacity: 1;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes line-up {
  to { transform: none; }
}

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

@keyframes twinkle {
  50% { opacity: .25; }
}

@keyframes moon-float {
  50% { transform: rotate(-14deg) translateY(-14px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes wobble {
  30%  { transform: rotate(-3.5deg); }
  60%  { transform: rotate(-1.2deg); }
  100% { transform: rotate(-2deg); }
}

@keyframes glow {
  50% { text-shadow: 0 0 30px rgba(240, 128, 192, .55); }
}

@keyframes cap-float {
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}


/* 24. Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .section {
    padding: 80px 0;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .nav.is-open .nav__links {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 4vw 20px;
    background: var(--night);
  }

  .nav.is-open .nav__links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .nav.is-open .nav__links a::after {
    display: none;
  }

  .page-hero {
    padding: 130px 0 70px;
  }

  .stats__grid,
  .runs__grid,
  .teasers__grid {
    grid-template-columns: 1fr 1fr;
  }

  .club__grid,
  .shop__grid,
  .partner,
  .record {
    grid-template-columns: 1fr;
  }

  .club__photo {
    aspect-ratio: 16 / 11;
  }

  .groups__grid,
  .partners__more {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__direct {
    padding: 30px 24px;
  }

  .group {
    min-height: 260px;
  }

  .record__photo img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .record__body {
    padding: 28px 24px;
  }
}

/* Écrans peu hauts : on resserre le hero pour voir le bandeau */
@media (max-height: 820px) {
  .hero__inner {
    padding: 96px 0 30px;
  }

  .hero__title {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
  }

  .hero__lead {
    margin: 14px 0 20px;
  }

  .chips {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .hero__inner {
    padding: 92px 0 26px;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .chip {
    font-size: .78rem;
  }

  .pillars,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature:nth-child(3) {
    border-left: 0;
  }

  .feature:nth-child(n + 3) {
    border-top: 1px solid rgba(86, 107, 100, .3);
  }

  .legal__content dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal__content dd {
    margin-bottom: 10px;
  }

  .bar {
    grid-template-columns: 62px 1fr 40px;
    font-size: .82rem;
  }

  .note {
    padding: 34px 22px 26px;
  }

  .infos__banner {
    padding: 26px 24px 26px 6vw;
  }
}

/* Pas d'effet 3D sur les écrans tactiles */
@media (hover: none) {
  .tilt {
    transform: none !important;
  }
}


/* 25. Mouvement réduit
   ========================================================================== */

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

  .anim-up,
  .line > span,
  .page-hero .breadcrumb,
  .page-hero .kicker,
  .page-hero__title,
  .page-hero__lead,
  .js .reveal,
  .js .infos__hand {
    opacity: 1 !important;
    transform: none !important;
  }

  .night-sky__route path {
    stroke-dashoffset: 0;
  }

  .night-sky__route circle {
    opacity: 1;
  }
}
