/* --------------------------------------------------------------------------
   0. Police du site — Archivo, auto-hébergée (aucun CDN, aucun appel réseau)
   Fonte variable : axe de graisse 400→900 et axe de largeur 100→125 %.
   L'axe de largeur sert aux titres, pour un rendu plus athlétique.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   CSPTT Badminton — Maquette de démonstration
   Feuille de styles unique. Aucune dépendance, aucun CDN, aucun build.
   Palette inspirée de l'identité visuelle du club (orange / rouge / noir).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables de thème — modifier ici pour changer toute la maquette
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --orange: #f29400;
  --orange-dark: #c47700;
  --orange-soft: #fff1da;
  --red: #d62d1e;
  --red-dark: #a81f13;
  --red-soft: #fdeae7;

  /* Neutres chauds */
  --ink: #14110f;
  --ink-800: #211b17;
  --ink-700: #2f2621;
  --ink-600: #4a3f38;
  --muted: #6f6259;
  --line: #e8e0d7;
  --line-strong: #d6cabd;
  --cream: #fdfaf6;
  --paper: #ffffff;

  /* Mise en page */
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 6.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --header-h: 74px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(20, 17, 15, .06), 0 4px 14px rgba(20, 17, 15, .05);
  --shadow-md: 0 2px 6px rgba(20, 17, 15, .07), 0 18px 40px rgba(20, 17, 15, .09);
  --shadow-lg: 0 30px 70px rgba(20, 17, 15, .18);

  /* Typographie */
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font);
  font-size: 1.0375rem;
  font-stretch: 100%;
  line-height: 1.62;
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-wrap: balance;
}

/* Les titres sont légèrement élargis (axe de largeur de la fonte) :
   c'est ce qui leur donne leur allure sportive. */
h1 {
  font-size: clamp(2.6rem, 6.6vw, 4.4rem);
  font-weight: 900;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: .96;
}
h2 {
  font-size: clamp(1.95rem, 4.2vw, 2.9rem);
  font-weight: 800;
  font-stretch: 113%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h3 {
  font-size: clamp(1.14rem, 1.9vw, 1.32rem);
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: -0.018em;
  line-height: 1.22;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: -0.012em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

ul, ol { margin: 0; padding: 0; }

strong { color: var(--ink); font-weight: 700; }

/* Sur fond sombre, le gras doit s'éclaircir au lieu de disparaître. */
.hero strong,
.page-hero strong,
.section--dark strong,
.cta strong,
.site-footer strong,
.join-aside strong { color: #fff; }

sup {
  font-size: .62em;
  line-height: 0;
  vertical-align: super;
  margin-left: .02em;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Sur fond sombre, le halo de focus doit rester lisible */
.hero :focus-visible,
.page-hero :focus-visible,
.section--dark :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffc061;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.35rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--tint { background: var(--paper); }

/* Une section claire qui suit un bloc sombre vient se poser dessus :
   la liaison est adoucie au lieu d'être une cassure nette. */
.page-hero + .section:not(.section--dark),
.hero-stats + .section:not(.section--dark) {
  position: relative;
  z-index: 1;
  margin-top: -26px;
  border-radius: 26px 26px 0 0;
}
.section:not(.section--dark) + .section--dark,
.cta,
.site-footer { border-radius: 26px 26px 0 0; }
.section--dark + .cta { border-radius: 0; }

.section--dark {
  background: var(--ink);
  color: #cfc6bd;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* En-tête de section */
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4.2vw, 3.25rem); }
.section-head p {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.13rem);
  line-height: 1.58;
  color: var(--muted);
}
.section--dark .section-head p { color: #a89d94; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
  font-size: .755rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}
.section--dark .eyebrow { color: var(--orange); }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.65rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), background-color .2s ease,
    border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(178deg, #ffab27, var(--orange) 62%, #e98c00);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 10px 24px -8px rgba(242, 148, 0, .65);
}
.btn--primary:hover {
  background: linear-gradient(178deg, #ffb63f, #f89b0a 62%, #ef9200);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 16px 30px -10px rgba(242, 148, 0, .7);
}
.btn--primary:active { transform: translateY(0); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 20px -8px rgba(20, 17, 15, .5);
}
.btn--dark:hover { background: var(--ink-700); transform: translateY(-2px); }
.btn--dark:active { transform: translateY(0); }

.btn--outline {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(20, 17, 15, .45);
}
.btn--outline:active { transform: translateY(0); }

.btn--light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.btn--light:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

/* Lien fléché */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--orange-dark); }
.link-arrow span { transition: transform .16s ease; }
.link-arrow span { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
.link-arrow:hover span { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(20, 17, 15, .08);
}
.brand__name { transition: color .2s ease; }
.brand:hover .brand__name { color: var(--orange-dark); }
.brand__mark { transition: transform .3s cubic-bezier(.2, .7, .3, 1); }
.brand:hover .brand__mark { transform: rotate(-8deg); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand__mark {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 12px;
}
.brand__mark img { width: 27px; height: 27px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.06; }
.brand__name {
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__sub {
  font-size: .655rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

/* Navigation bureau */
.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}
.nav__link {
  display: block;
  padding: .5rem .55rem;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
.nav__link:hover { color: var(--ink); background: rgba(20, 17, 15, .05); }
.nav__link[aria-current] { color: var(--ink); font-weight: 700; }
.nav__link[aria-current]::after {
  content: "";
  display: block;
  height: 2.5px;
  margin: 4px auto 0;
  width: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.header__cta { display: none; }

/* Bouton menu mobile */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
  flex: none;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau mobile */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__list { list-style: none; padding-block: .6rem; }
.mobile-nav__list a {
  display: block;
  padding: .82rem .35rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list li:last-child a { border-bottom: 0; }
.mobile-nav__list a:hover { color: var(--orange-dark); }
.mobile-nav .btn { width: 100%; margin: .8rem 0 1.4rem; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   6. Section d'accueil (hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #d6cdc4;
  isolation: isolate;
}
.hero::before {
  /* lignes de terrain, très discrètes */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 90% at 70% 15%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 15%, #000 25%, transparent 75%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(760px, 82vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 148, 0, .3), transparent 62%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 979px) {
  .hero__inner { gap: 1.75rem; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1.05rem .45rem .5rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .795rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e6ddd4;
}
.hero__badge b {
  padding: .24rem .62rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: .705rem;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 { color: #fff; margin: 1.35rem 0 0; }
.hero h1 em {
  display: block;
  font-style: normal;
  background: linear-gradient(96deg, var(--orange) 10%, #ff6a35 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__slogan {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: #fff;
  font-style: italic;
  letter-spacing: -0.015em;
}
.hero__slogan::before,
.hero__slogan::after { content: "\00ab\00a0"; color: var(--orange); font-style: normal; }
.hero__slogan::after { content: "\00a0\00bb"; }

.hero__text {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.7vw, 1.09rem);
  color: #b3a89f;
}

/* Illustration + carte flottante */
.hero__visual { position: relative; }
.hero__visual > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .5));
}

.hero-card {
  position: relative;
  margin: -2.5rem auto 0;
  max-width: 318px;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  color: var(--ink-700);
}
.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .7rem;
}
.hero-card__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: .5rem 0;
  border-top: 1px dashed var(--line);
  font-size: .93rem;
}
.hero-card__row:first-of-type { border-top: 0; }
.hero-card__row b { color: var(--ink); font-weight: 700; }
.hero-card__row span { color: var(--muted); font-size: .87rem; text-align: right; }

/* Bandeau de chiffres */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-stats__item {
  position: relative;
  padding: 1.6rem var(--gutter);
  background: var(--ink);
  transition: background-color .3s ease;
}
.hero-stats__item:hover { background: #1c1714; }
.hero-stats__num {
  display: block;
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
  font-weight: 900;
  font-stretch: 116%;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
}
.hero-stats__num em { font-style: normal; color: var(--orange); }
.hero-stats__label {
  display: block;
  margin-top: .5rem;
  font-size: .74rem;
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #8d827b;
}

/* Sur petit écran, les libellés doivent tenir sur une ligne */
@media (max-width: 759px) {
  .hero-stats__item { padding-block: 1.25rem; }
  .hero-stats__label { font-size: .615rem; letter-spacing: .045em; }
}

@media (min-width: 760px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats__item { padding-inline: 1.5rem; }
  .hero-stats > :first-child { padding-left: var(--gutter); }
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1fr 1.08fr; }
  .hero-card { position: absolute; right: -6px; bottom: -16px; margin: 0; }
  .hero__visual { padding-bottom: 2.5rem; }
}

/* --------------------------------------------------------------------------
   6 bis. Bandeau de titre des pages internes
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #b3a89f;
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(3.5rem, 6.5vw, 5.25rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(110% 100% at 78% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(110% 100% at 78% 0%, #000 20%, transparent 72%);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 148, 0, .26), transparent 62%);
}
.page-hero > .wrap { position: relative; }

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.95rem, 4.6vw, 3.1rem);
  margin-top: .75rem;
}
.page-hero__lead {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  color: #b3a89f;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: .755rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.breadcrumb::before {
  content: "";
  width: 26px; height: 3px;
  margin-right: .7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}
.breadcrumb a { color: #9b9089; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { margin-inline: .4rem; color: #6f6259; }

/* Le bandeau sombre enchaine sans couture sur une section sombre */
.page-hero + .section--dark { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* --------------------------------------------------------------------------
   7. Grilles et cartes génériques
   -------------------------------------------------------------------------- */
/* Les enfants de grille peuvent rétrécir sous leur largeur mini :
   sans cette règle, une carte rigide élargit la page sur très petit écran. */
.grid > *,
.slots > *,
.gyms > *,
.news > *,
.gallery > *,
.club > *,
.join > *,
.tourney > *,
.contact > *,
.slots-panel > *,
.hero__inner > * { min-width: 0; }

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.7rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1),
    box-shadow .28s ease, border-color .28s ease;
}
/* Filet coloré qui se déploie sur le bord haut au survol */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.58; }

/* Numérotation discrète des cartes de la grille de 4 */
.grid--4 { counter-reset: carte; }
.grid--4 .card::after {
  counter-increment: carte;
  content: "0" counter(carte);
  position: absolute;
  top: 1.5rem;
  right: 1.55rem;
  font-size: .78rem;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: .04em;
  color: var(--line-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px rgba(242, 148, 0, .18);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card__icon { transform: translateY(-2px) rotate(-5deg); }
.card__icon svg { width: 27px; height: 27px; }
.card__icon--red { background: var(--red-soft); color: var(--red-dark); }
.card__icon--ink { background: #efeae4; color: var(--ink); }

/* --------------------------------------------------------------------------
   8. Le club
   -------------------------------------------------------------------------- */
.club { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .club { grid-template-columns: 1.02fr .98fr; } }

.club__lead {
  font-size: clamp(1.06rem, 1.9vw, 1.2rem);
  color: var(--ink-600);
}

.facts { list-style: none; display: grid; gap: .55rem; }
.facts li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: .95rem;
}
.facts svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--orange-dark);
}
.facts b { display: block; color: var(--ink); }
.facts span { color: var(--muted); font-size: .885rem; }

/* Encart de prudence rédactionnelle */
.note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-top: 1.6rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(242, 148, 0, .3);
  border-left: 3px solid var(--orange);
  border-radius: 6px 14px 14px 6px;
  background: var(--orange-soft);
  font-size: .89rem;
  line-height: 1.55;
  color: var(--ink-600);
}
.note svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--orange-dark); }
.note--plain { background: #f6f2ec; }
.section--dark .note {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .18);
  color: #b6aca3;
}
.section--dark .note svg { color: var(--orange); }

/* --------------------------------------------------------------------------
   9. Créneaux
   -------------------------------------------------------------------------- */
.slots { display: grid; gap: 1.15rem; }
@media (min-width: 700px) { .slots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .slots { grid-template-columns: repeat(3, 1fr); } }

.slot {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
}
.slot:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* Les pastilles restent alignées d'une carte à l'autre */
.slot__body { display: flex; flex-direction: column; }
.slot__tags { margin-top: auto; padding-top: 1.1rem; }

.slot__head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.25rem 1.4rem;
  background: var(--ink);
  color: #fff;
}
/* Lignes de terrain en filigrane dans le bandeau du jour */
.slot__head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 100%;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.slot__day {
  position: relative;
  font-size: 1.42rem;
  font-weight: 900;
  font-stretch: 116%;
  letter-spacing: -0.035em;
}
.slot__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: rgba(242, 148, 0, .16);
  box-shadow: inset 0 0 0 1px rgba(242, 148, 0, .35);
  font-size: .82rem;
  font-weight: 800;
  color: var(--orange);
}

.slot__time {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.05rem 1.4rem;
  background: var(--orange-soft);
  border-bottom: 1px solid var(--line);
  font-size: 1.28rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.slot__time svg { width: 20px; height: 20px; color: var(--orange-dark); flex: none; }

.slot__body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.slot__place {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .98rem;
}
.slot__place svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--red); }
.slot__gym { display: block; font-weight: 700; color: var(--ink); }
.slot__addr { display: block; color: var(--muted); font-size: .9rem; margin-top: .1rem; }

.slot__tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #f2ece5;
  box-shadow: inset 0 0 0 1px rgba(20, 17, 15, .05);
  font-size: .765rem;
  font-weight: 700;
  font-stretch: 104%;
  color: var(--ink-600);
}
.tag--warn { background: var(--red-soft); color: var(--red-dark); }
.tag--ok { background: #e6f3ec; color: #1c6b42; }

/* --------------------------------------------------------------------------
   10. Gymnases
   -------------------------------------------------------------------------- */
.gyms { display: grid; gap: 1.15rem; }
@media (min-width: 700px) { .gyms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .gyms { grid-template-columns: repeat(3, 1fr); } }

.gym {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  transition: transform .28s cubic-bezier(.2, .7, .3, 1),
    border-color .28s ease, background-color .28s ease;
}
/* Halo chaud qui s'allume au survol */
.gym::after {
  content: "";
  position: absolute;
  top: -55%; right: -25%;
  width: 230px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 148, 0, .3), transparent 62%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.gym:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 148, 0, .55);
}
.gym:hover::after { opacity: 1; }
.gym > * { position: relative; }
.gym__ico {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1.2rem;
  border-radius: 15px;
  background: rgba(242, 148, 0, .16);
  box-shadow: inset 0 0 0 1px rgba(242, 148, 0, .28);
  color: var(--orange);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.gym:hover .gym__ico { transform: translateY(-2px) rotate(-5deg); }
.gym__ico svg { width: 22px; height: 22px; }
.gym h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.gym__addr { color: #a89d94; font-size: .93rem; line-height: 1.5; }
.gym__meta {
  margin-top: auto;
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}
.gym__when {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .8rem;
  border-radius: 999px;
  background: rgba(242, 148, 0, .14);
  box-shadow: inset 0 0 0 1px rgba(242, 148, 0, .32);
  font-size: .79rem;
  font-weight: 700;
  font-stretch: 104%;
  color: #ffc061;
}
.gym__when svg { color: var(--orange); }
.gym__map {
  font-size: .84rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 148, 0, .45);
}
.gym__map:hover { color: #ffab29; }

/* --------------------------------------------------------------------------
   11. Inscriptions — parcours en étapes
   -------------------------------------------------------------------------- */
.join { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .join { grid-template-columns: 1.25fr .75fr; } }

.steps { list-style: none; counter-reset: step; display: grid; gap: .9rem; }
.steps li {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--ink);
  color: var(--orange);
  font-size: .98rem;
  font-weight: 900;
}
.steps h3 { font-size: 1.06rem; margin-bottom: .25rem; }
.steps p { font-size: .93rem; color: var(--muted); }

.join-aside {
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #b8ada4;
  box-shadow: var(--shadow-md);
}
.join-aside h3 { color: #fff; font-size: 1.2rem; margin-bottom: .7rem; }
.join-aside p { font-size: .94rem; }
.join-aside .btn { width: 100%; margin-top: 1.25rem; }
.join-aside .note {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .18);
  color: #a89d94;
}
.join-aside .note svg { color: var(--orange); }

.mail-box {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.2rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
}
.mail-box svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.mail-box a {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: .93rem;
  word-break: break-all;
}
.mail-box a:hover { color: var(--orange); }

.docs { list-style: none; display: grid; gap: .5rem; margin-top: 1.2rem; }
.docs li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .89rem;
  color: #a89d94;
}
.docs svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--orange); }

/* --------------------------------------------------------------------------
   12. Tournois FSGT
   -------------------------------------------------------------------------- */
.tourney { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .tourney { grid-template-columns: .92fr 1.08fr; } }

.fsgt-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.fsgt-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.fsgt-card__badge i { font-style: normal; color: var(--orange); }
.fsgt-card p { color: var(--muted); font-size: .96rem; }
.fsgt-card .link-arrow { margin-top: 1.2rem; }

.slots-panel { display: grid; gap: .85rem; }
.panel-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.3rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}
.panel-item__ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.panel-item__ico svg { width: 20px; height: 20px; }
.panel-item > div { min-width: 0; flex: 1 1 11rem; }
.panel-item h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.panel-item p { font-size: .9rem; color: var(--muted); }
.panel-item__state {
  margin-left: auto;
  flex: none;
  align-self: center;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #f2ece5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Actualités
   -------------------------------------------------------------------------- */
.news { display: grid; gap: 1.15rem; }
@media (min-width: 700px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .news { grid-template-columns: repeat(3, 1fr); } }

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.post__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 120% at 78% 10%, rgba(242, 148, 0, .28), transparent 62%),
    linear-gradient(140deg, #241d18, #14110f);
  overflow: hidden;
}
/* Lignes de terrain en fond, plutôt qu'une trame de points */
.post__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(160deg, #000 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(160deg, #000 20%, transparent 85%);
}
.post__cover svg {
  position: relative;
  width: 62px; height: 62px;
  color: var(--orange);
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.post:hover .post__cover svg { transform: translateY(-4px) rotate(-7deg) scale(1.06); }
.post__cover--red {
  background:
    radial-gradient(90% 120% at 78% 10%, rgba(228, 64, 43, .34), transparent 62%),
    linear-gradient(140deg, #2c1712, #14110f);
}
.post__cover--red svg { color: #ff7a52; }

.post__demo {
  position: absolute;
  z-index: 1;
  top: .8rem; left: .8rem;
  padding: .26rem .68rem;
  border-radius: 999px;
  background: rgba(20, 17, 15, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-size: .66rem;
  font-weight: 800;
  font-stretch: 106%;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
}

.post__body { padding: 1.35rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.post__meta i { font-style: normal; color: var(--orange-dark); }
.post h3 { font-size: 1.13rem; margin-bottom: .5rem; }
.post p { font-size: .93rem; color: var(--muted); }
.post .link-arrow { margin-top: 1.15rem; align-self: flex-start; }

/* --------------------------------------------------------------------------
   14. Galerie
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.gallery img {
  width: 100%;
  height: auto;              /* sans quoi l'attribut height du HTML l'emporte */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .95rem .8rem;
  background: linear-gradient(transparent, rgba(10, 8, 7, .85));
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 940px) { .contact { grid-template-columns: .82fr 1.18fr; } }

.contact-info { display: grid; gap: .85rem; }
.contact-info__item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.contact-info__item svg { width: 21px; height: 21px; flex: none; margin-top: 3px; color: var(--orange-dark); }
.contact-info__item b { display: block; color: var(--ink); font-size: .95rem; }
.contact-info__item a,
.contact-info__item span { color: var(--muted); font-size: .92rem; word-break: break-word; }
.contact-info__item a { text-decoration: none; }
.contact-info__item a:hover { color: var(--orange-dark); text-decoration: underline; }

.form {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.form__grid { display: grid; gap: 1.05rem; }
@media (min-width: 620px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; } }

.field { display: flex; flex-direction: column; gap: .38rem; }
.field label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6259' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 17px 17px;
  cursor: pointer;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--cream);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--paper);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 148, 0, .2);
}
.field input::placeholder,
.field textarea::placeholder { color: #a99e95; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}
.form__hint { font-size: .82rem; color: var(--muted); }

.form__status {
  margin-top: 1.1rem;
  padding: .9rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  border: 1px solid rgba(242, 148, 0, .4);
  font-size: .89rem;
  font-weight: 600;
  color: var(--ink-700);
}
.form__status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   16. Appel à l'action final
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 6.5vw, 5rem);
  background: linear-gradient(102deg, #a81f13 0%, #d13a17 44%, #ef9105 100%);
  color: #fff;
  text-align: center;
}
/* Lignes de terrain, très discrètes, plutôt qu'une trame de points */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(90% 120% at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 120% at 50% 0%, #000, transparent 78%);
}
/* Volant en filigrane, côté droit */
.cta::after {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -32%;
  width: min(310px, 34vw);
  aspect-ratio: 1;
  background: url("assets/logo-volant.svg") center / contain no-repeat;
  opacity: .11;
  transform: rotate(-14deg);
  pointer-events: none;
}
.cta > .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p {
  max-width: 38rem;
  margin: 1.05rem auto 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.08rem;
}
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.cta .btn-row { justify-content: center; }
.cta .btn--primary { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.cta .btn--primary:hover { background: #fff6e8; }

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #9b9089;
  padding-block: clamp(3rem, 5.5vw, 4.25rem) 1.75rem;
  font-size: .92rem;
}
/* Trait de marque en haut du pied de page */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red) 55%, transparent);
}
.site-footer > .wrap { position: relative; }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer .brand__name { color: #fff; }
.site-footer .brand__mark { background: rgba(255, 255, 255, .08); }
.footer__about { margin-top: 1.05rem; max-width: 26rem; font-size: .9rem; }

.footer__title {
  margin-bottom: 1rem;
  font-size: .735rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #fff;
}
.footer__list { list-style: none; display: grid; gap: .5rem; }
.footer__list a {
  display: inline-block;
  color: #9b9089;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.footer__list a:hover { color: var(--orange); transform: translateX(3px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .84rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__legal a { color: #9b9089; text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }

.footer__disclaimer {
  width: 100%;
  margin-top: .3rem;
  font-size: .79rem;
  color: #776d66;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   18. Apparition douce au défilement — CSS pur, sans JavaScript

   Utilise les animations liées au défilement (`animation-timeline: view()`).
   Les navigateurs qui ne les gèrent pas ignorent tout le bloc : le contenu
   s'affiche alors normalement, sans animation. Aucun risque de section
   invisible, et aucune dépendance à JavaScript.
   -------------------------------------------------------------------------- */
@keyframes apparition {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: apparition linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 20%;
    }
  }
}

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