/* =========================================================================
   TRI TEAM LUTRY — Site web (hi-fi)
   Styles on top of design tokens.
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color: var(--fg-1); font-family: var(--font-body); background: var(--paper); }
body {
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* DENSITY tweak — multiplier applied via [data-density="compact|airy"] */
:root {
  --d-section: 96px;     /* default airy */
  --d-section-mob: 64px;
  --d-card-pad: 28px;
  --d-stack: 24px;
  --d-tight: 16px;
}
[data-density="compact"] {
  --d-section: 64px;
  --d-section-mob: 44px;
  --d-card-pad: 20px;
  --d-stack: 16px;
  --d-tight: 12px;
}

/* ACCENT tweak override.  Default = prune. */
:root { --site-accent: var(--prune-700); --site-accent-hover: var(--prune-800); --site-accent-soft: var(--prune-100); --site-accent-ink: var(--prune-900); --site-accent-200: var(--prune-200); --site-accent-300: var(--prune-300); --site-accent-400: var(--prune-400); }
[data-accent="red"] {
  --site-accent: var(--swiss-red);
  --site-accent-hover: var(--swiss-red-dark);
  --site-accent-soft: #FCE9EA;
  --site-accent-ink: #5A0309;
  --site-accent-200: #F6B9BD;
  --site-accent-300: #ED8088;
  --site-accent-400: #E84A55;
}
[data-accent="black"] {
  --site-accent: var(--ink-1000);
  --site-accent-hover: var(--ink-900);
  --site-accent-soft: var(--ink-100);
  --site-accent-ink: #000;
  --site-accent-200: var(--ink-300);
  --site-accent-300: var(--ink-400);
  --site-accent-400: var(--ink-500);
}

/* Duotone image filter — applies to image-slot when toggled on */
[data-duotone="on"] image-slot img,
[data-duotone="on"] .ttl-photo img {
  filter: grayscale(1) sepia(0.4) saturate(1.6) hue-rotate(280deg) contrast(1.1);
}

/* ---------- CONTAINER ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.container--narrow { max-width: 980px; }
.container--wide   { max-width: 1440px; }
@media (max-width: 1024px) { .container { padding: 0 40px; } }
@media (max-width: 640px)  { .container { padding: 0 20px; } }

/* ---------- SECTION ---------- */
.section { padding: var(--d-section) 0; position: relative; }
@media (max-width: 1024px) { .section { padding: var(--d-section-mob) 0; } }
.section--tint { background: var(--site-accent-soft); }
.section--paper2 { background: var(--ink-50); }
.section--dark { background: var(--ink-1000); color: #fff; }
.section--prune { background: var(--prune-900); color: #fff; }

.section__head { max-width: 760px; margin: 0 0 48px; }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 12px 0 16px; color: var(--ink-1000);
  text-wrap: balance;
}
.section__title em {
  font-style: italic; font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--site-accent);
  font-size: 0.92em;
  line-height: 1;
}
.section--dark .section__title, .section--prune .section__title { color: #fff; }
.section__lede { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 60ch; margin: 0; }
.section--dark .section__lede, .section--prune .section__lede { color: var(--ink-300); }

/* ---------- TYPE ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--site-accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; white-space: nowrap;
}
.eyebrow--light { color: var(--site-accent-300); }
.eyebrow--ink   { color: var(--ink-700); }

.cross-mini {
  display: inline-block; width: 12px; height: 12px; background: var(--swiss-red); position: relative;
  flex-shrink: 0;
}
.cross-mini::before, .cross-mini::after { content: ""; position: absolute; background: #fff; }
.cross-mini::before { left: 25%; right: 25%; top: 42%; bottom: 42%; }
.cross-mini::after  { top: 25%; bottom: 25%; left: 42%; right: 42%; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.kit-voice {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em;
}

/* ---------- LINK ---------- */
.link {
  color: var(--site-accent); font-weight: 600; text-decoration: none; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 200ms var(--ease-sport), color 120ms;
}
.link:hover { color: var(--site-accent-hover); gap: 10px; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: all 120ms var(--ease-sport);
  display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn--lg { padding: 15px 24px; font-size: 15px; }
.btn--xl { padding: 18px 28px; font-size: 16px; }
.btn--primary { background: var(--site-accent); color: #fff; }
.btn--primary:hover { background: var(--site-accent-hover); }
.btn--shadow { box-shadow: var(--shadow-prune); }
.btn--secondary { background: #fff; color: var(--site-accent); border-color: var(--site-accent); }
.btn--secondary:hover { background: var(--site-accent-soft); }
.btn--secondary-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.3);
}
.btn--secondary-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn--ghost { background: transparent; color: var(--fg-1); }
.btn--ghost:hover { background: var(--ink-100); }
.btn--inverse { background: #fff; color: var(--site-accent); }
.btn--inverse:hover { background: var(--site-accent-soft); }

/* ---------- HEADER ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid transparent;
  transition: backdrop-filter 200ms, background 200ms, border-color 200ms, box-shadow 200ms;
}
.hdr.is-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
}
.hdr__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (max-width: 1100px) { .hdr__inner { padding: 0 20px; gap: 12px; } }
.hdr__brand { display: flex; align-items: center; flex-shrink: 0; cursor: pointer; background: none; border: none; padding: 0; }
.hdr__nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
@media (max-width: 900px) { .hdr__nav { display: none; } }
.hdr__link {
  background: none; border: none; cursor: pointer; text-decoration: none;
  color: var(--fg-1); font-size: 14px; font-weight: 500; font-family: inherit;
  padding: 10px 14px; border-radius: 4px; line-height: 1; white-space: nowrap;
  position: relative; transition: color 120ms, background 120ms;
}
.hdr__link:hover { background: var(--ink-100); }
.hdr__link.is-active { color: var(--site-accent); }
.hdr__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px;
  height: 2px; background: var(--site-accent);
}
.hdr__cta { display: flex; gap: 8px; flex-shrink: 0; }
.hdr__menu-btn { display: none; background: none; border: 1px solid var(--border); padding: 8px; border-radius: 4px; cursor: pointer; color: var(--fg-1); }
@media (max-width: 900px) { .hdr__menu-btn { display: inline-flex; } }

.hdr__mobile {
  position: absolute; top: 72px; left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--border); padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-2);
}
.hdr__mobile .hdr__link { text-align: left; padding: 14px 16px; font-size: 16px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 112px;
}
@media (max-width: 900px) { .hero { padding: 56px 0 72px; } }
.hero__burst {
  position: absolute; top: -180px; right: -300px;
  width: 1080px; height: 1080px;
  z-index: 0; pointer-events: none;
  opacity: 0.6;
  mask-image: radial-gradient(circle at 75% 25%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 75% 25%, #000 10%, transparent 65%);
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 60%; z-index: 0;
}
/* la photo est deja claire : le degrade doit rester franc a gauche
   pour que le titre noir et l'accent cramoisi tiennent le contraste */
.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(98deg,
    rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.90) 30%,
    rgba(255,255,255,0.66) 48%, rgba(255,255,255,0.28) 70%, rgba(255,255,255,0.02) 100%);
}
/* pas de max-width sur l'ensemble : le titre display monte a 132px
   et se briserait mal. On ne contraint que le paragraphe. */
.hero--photo .hero__sub { max-width: 58ch; }
@media (max-width: 760px) {
  .hero--photo::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.96) 50%, var(--paper) 100%);
  }
  .hero__photo { object-position: 58% 55%; }
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.96;
  font-size: clamp(48px, 7.4vw, 116px);
  margin: 0 0 28px;
  color: var(--ink-1000);
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--site-accent); }
.hero__title .stroke {
  -webkit-text-stroke: 2px var(--ink-1000); color: transparent;
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--fg-2);
  max-width: 56ch; margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero--compact { padding: 72px 0 56px; }
.hero--compact .hero__title { font-size: clamp(40px, 5.5vw, 84px); max-width: 22ch; }

/* ---------- STATS BANNER ---------- */
.stats-banner {
  background: var(--site-accent-soft);
  border-top: 1px solid var(--site-accent-200);
  border-bottom: 1px solid var(--site-accent-200);
  padding: 36px 0;
}
.stats-banner__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
  align-items: stretch;
}
.stats-banner__cell {
  padding: 8px 32px;
  border-right: 1px solid var(--site-accent-200);
  display: flex; flex-direction: column; gap: 6px;
}
.stats-banner__cell:last-child { border-right: 0; }
.stats-banner__cell:first-child { padding-left: 0; }
.stats-banner__cell:last-child  { padding-right: 0; }
.stats-banner__num {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; letter-spacing: -0.02em;
  color: var(--site-accent);
}
.stats-banner__lbl {
  font-size: 12px; font-weight: 600; color: var(--ink-700);
  text-transform: uppercase; letter-spacing: 0.14em;
}
@media (max-width: 1024px) {
  .stats-banner__grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats-banner__cell,
  .stats-banner__cell:first-child,
  .stats-banner__cell:last-child { border-right: 0; border-bottom: 1px solid var(--site-accent-200); padding: 16px; }
}

/* ---------- CARDS ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: var(--d-card-pad);
  transition: box-shadow 200ms var(--ease-sport), border-color 200ms, transform 200ms var(--ease-sport);
}
.card--hover:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); transform: translateY(-2px); }
.card--feature {
  border-top: 3px solid var(--site-accent);
}
.card--tint { background: var(--site-accent-soft); border-color: var(--site-accent-200); }
.card--dark { background: var(--ink-900); border-color: var(--ink-800); color: #fff; }
.card--prune {
  background: var(--site-accent); border-color: var(--site-accent); color: #fff;
  box-shadow: var(--shadow-prune);
}

.card h3 {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.2;
}
.card p { margin: 0; color: var(--fg-2); line-height: 1.55; font-size: 15px; }
.card--dark p, .card--prune p { color: rgba(255,255,255,0.85); }
.card--dark h3, .card--prune h3 { color: #fff; }

/* ---------- GRID UTILS ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- SESSION CARDS (Entraînements) ---------- */
.sess-grid { display: flex; flex-direction: column; gap: 14px; }
.sess {
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  transition: box-shadow 200ms var(--ease-sport), border-color 200ms, transform 200ms;
}
.sess:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.sess__day {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em; font-size: 24px;
  color: var(--site-accent); line-height: 1;
}
.sess__time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-800); font-weight: 500; }
.sess__main h4 { margin: 0 0 4px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.sess__main p  { margin: 0; font-size: 14px; color: var(--fg-3); }
@media (max-width: 900px) {
  .sess { grid-template-columns: auto 1fr; gap: 6px 16px; padding: 16px 18px; }
  .sess__main { grid-column: 1 / -1; }
}

/* ---------- TAG / BADGE ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.tag--essai { background: #E8F4EB; color: #1E6B36; }
.tag--essai::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2A8A4A; }
.tag--membres { background: var(--site-accent-soft); color: var(--site-accent-ink); }
.tag--membres::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--site-accent); }
.tag--info { background: var(--ink-100); color: var(--ink-700); }
.tag--info::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-500); }
.tag--soft { background: #fff; color: var(--ink-800); border: 1px solid var(--border); }

/* ---------- IMAGE SLOT WRAP ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: 4px; background: var(--ink-100);
}
image-slot {
  display: block; width: 100%; height: 100%;
  --is-bg: var(--ink-100);
  --is-border: var(--ink-300);
}
.photo--ratio-1 { aspect-ratio: 1 / 1; }
.photo--ratio-4-3 { aspect-ratio: 4 / 3; }
.photo--ratio-3-2 { aspect-ratio: 3 / 2; }
.photo--ratio-16-9 { aspect-ratio: 16 / 9; }
.photo--ratio-3-4 { aspect-ratio: 3 / 4; }

/* ---------- INSTAGRAM GRID ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
@media (max-width: 1024px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-tile {
  aspect-ratio: 1; position: relative; cursor: pointer; overflow: hidden;
  transition: transform 200ms var(--ease-sport);
}
.ig-tile:hover { transform: scale(0.98); }
.ig-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(52, 6, 14, 0); pointer-events: none;
  transition: background 200ms;
}
.ig-tile:hover::after { background: rgba(52, 6, 14, 0.22); }
.ig-tile { display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-grid--vide { min-height: 120px; }
.ig-tile__count {
  position: absolute; bottom: 8px; right: 10px; z-index: 2;
  font-size: 11px; color: #fff; font-weight: 600;
  background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 2px;
  font-family: var(--font-mono);
}

/* ---------- SPONSORS ---------- */
.sponsors-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff;
}
@media (max-width: 1100px) { .sponsors-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sponsors-row { grid-template-columns: repeat(2, 1fr); } }
.sponsor-tile {
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: #fff;
  transition: background 200ms;
  position: relative;
  min-width: 0;
}
.sponsor-tile:last-child { border-right: 0; }
.sponsor-tile:hover { background: var(--ink-50); }
.sponsor-tile__name {
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: -0.01em; color: var(--ink-700);
  text-align: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 100%;
}
/* Logos sponsors.
   Les conteneurs tirent leur hauteur d'un aspect-ratio : un pourcentage de
   hauteur ne s'y resout pas et l'image retombe sur son ratio natif, donc
   deborde. On cale l'image en absolu avec width/height a 100% : sur un element
   remplace, "auto" retomberait sur la taille intrinseque. object-fit s'occupe
   du letterboxing, le padding fait la marge interieure. */
.sponsor-tile__logo {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  padding: 14px 16px; box-sizing: border-box; object-fit: contain;
}
.sponsor-logo-box {
  /* 3/2 et non 5/2 : certains logos sont carres ou en portrait et seraient
     ecrases par une boite trop basse. */
  position: relative; aspect-ratio: 3 / 2;
  background: #fff; border: 1px solid var(--border);
  border-radius: 2px; margin-bottom: 16px; overflow: hidden;
}
.sponsor-logo {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  padding: 14px; box-sizing: border-box; object-fit: contain;
}
.sponsor-tile--placeholder {
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, var(--ink-50) 10px, var(--ink-50) 20px);
}
.sponsor-tile--placeholder .sponsor-tile__name { color: var(--ink-400); font-size: 12px; font-weight: 500; }

/* ---------- TESTIMONIAL ---------- */
.testimonial {
  background: var(--site-accent-soft);
  border-left: 4px solid var(--site-accent);
  padding: 40px 48px;
  border-radius: 0 4px 4px 0;
  position: relative;
}
.testimonial__quote {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink-900); margin: 0 0 24px;
}
.testimonial__attr {
  display: flex; align-items: center; gap: 14px;
}
.testimonial__avatar {
  width: 56px; height: 56px; border-radius: 999px; overflow: hidden;
  background: var(--ink-200); flex-shrink: 0;
}
.testimonial__name { font-weight: 600; color: var(--ink-1000); font-size: 15px; }
.testimonial__role { font-size: 13px; color: var(--fg-3); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--site-accent); color: #fff;
  padding: 56px 56px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 360px; height: 360px; opacity: 0.10;
  background-image: url('assets/swiss-cross.svg');
  background-size: contain; background-repeat: no-repeat;
  pointer-events: none;
}
.cta-banner__title {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(28px, 3vw, 44px); line-height: 1; margin: 0;
}
.cta-banner__sub { font-size: 16px; color: rgba(255,255,255,0.85); margin: 8px 0 0; max-width: 50ch; }
.cta-banner__body { position: relative; z-index: 1; }
.cta-banner__actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left; padding: 24px 0;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--ink-1000);
  letter-spacing: -0.01em;
}
.faq__q:hover { color: var(--site-accent); }
.faq__icon {
  width: 28px; height: 28px; border-radius: 4px;
  background: var(--site-accent-soft); color: var(--site-accent);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 200ms var(--ease-sport);
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--site-accent); color: #fff; }
.faq__a {
  max-height: 0; overflow: hidden; transition: max-height 300ms var(--ease-sport);
}
.faq__a-inner { padding: 0 0 24px; font-size: 16px; color: var(--fg-2); line-height: 1.6; max-width: 70ch; }
.faq__item.is-open .faq__a { max-height: 400px; }

/* ---------- CARTE ---------- */
.map {
  position: relative; aspect-ratio: 4/3; border-radius: 4px;
  overflow: hidden; border: 1px solid var(--border); background: var(--ink-50);
}
.map__canvas { position: absolute; inset: 0; }
/* remplit la hauteur restante de sa colonne pour s'aligner sur la colonne voisine */
.map--fill { aspect-ratio: auto; flex: 1 1 0; min-height: 240px; }
@media (max-width: 900px) { .map--fill { aspect-ratio: 4/3; flex: none; min-height: 0; } }
.map__repli { padding: 16px; font-size: 14px; color: var(--fg-3); }

/* pastille de marqueur, aux couleurs du club */
.ttl-pin__dot {
  display: block; width: 14px; height: 14px; margin: 2px; border-radius: 50%;
  background: var(--site-accent); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.leaflet-container { font: inherit; background: #EAF1F4; }
.leaflet-popup-content { margin: 10px 14px; font-size: 13px; line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--font-heading); }
.leaflet-popup-content a { color: var(--site-accent); font-weight: 600; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 4px; }

/* ---------- COMITÉ ---------- */
.com-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .com-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .com-grid { grid-template-columns: 1fr; } }
.com-card { display: flex; flex-direction: column; gap: 16px; cursor: default; }
.com-card__photo {
  aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden;
  background: var(--ink-100); position: relative;
}
.com-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}
.com-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(43,15,30,0.4));
  pointer-events: none;
}
.com-card__role {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--site-accent); margin: 0;
}
.com-card__name {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; margin: 6px 0 6px;
}
.com-card__bio { font-size: 14px; color: var(--fg-2); line-height: 1.5; margin: 0; }

/* ---------- TIERS (cotisations / sponsor levels) ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tier-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 900px) { .tier-grid, .tier-grid--2 { grid-template-columns: 1fr; } }
.tier {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow 200ms;
}
.tier:hover { box-shadow: var(--shadow-2); }
.tier--feature {
  background: var(--site-accent); color: #fff; border-color: var(--site-accent);
  box-shadow: var(--shadow-prune);
}
.tier--paper { background: var(--ink-50); }
.tier__name {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  margin: 0; letter-spacing: -0.01em;
}
.tier__price {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.tier__price-num { font-size: 64px; line-height: 1; }
.tier__price-curr {
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-500);
}
.tier--feature .tier__price-curr { color: var(--site-accent-200); }
.tier__note { margin: -4px 0 0; font-size: 14px; color: var(--fg-3); }
.tier--feature .tier__note { color: var(--site-accent-200); }
.tier ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.tier li {
  font-size: 14px; line-height: 1.45; color: var(--fg-2);
  padding-left: 28px; position: relative;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--site-accent);
  border-bottom: 2px solid var(--site-accent);
  transform: rotate(-45deg);
}
.tier--feature li { color: rgba(255,255,255,0.95); }
.tier--feature li::before { border-color: #fff; }

/* ---------- FOOTER ---------- */
.ftr {
  background: var(--prune-900); color: #fff; position: relative; overflow: hidden;
  padding: 80px 0 32px;
}
.ftr__cross {
  position: absolute; top: 50%; right: -160px; transform: translateY(-50%) rotate(-8deg);
  width: 540px; height: 540px; opacity: 0.05; pointer-events: none;
}
.ftr__cross::before, .ftr__cross::after { content: ""; position: absolute; background: #fff; }
.ftr__cross::before { left: 0; right: 0; top: 42%; bottom: 42%; }
.ftr__cross::after  { top: 0; bottom: 0; left: 42%; right: 42%; }
.ftr__inner { position: relative; z-index: 1; }
.ftr__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 1024px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ftr__top { grid-template-columns: 1fr; gap: 32px; } }
.ftr__brand-tag {
  margin: 16px 0 24px; font-size: 14px; color: var(--prune-300); line-height: 1.5;
  max-width: 32ch;
}
.ftr__social { display: flex; gap: 8px; }
.ftr__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 4px;
  color: #fff; text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.ftr__social a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }
.ftr h5 {
  margin: 0 0 16px; font-size: 11px; font-weight: 600; color: var(--prune-300);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.ftr__col a, .ftr__col button {
  display: block; color: var(--ink-300); font-size: 14px; text-decoration: none;
  padding: 5px 0; cursor: pointer; background: none; border: none; font-family: inherit;
  text-align: left;
}
.ftr__col a:hover, .ftr__col button:hover { color: #fff; }
.ftr__legal {
  margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--prune-300);
}
.ftr__legal a { color: var(--prune-300); text-decoration: none; cursor: pointer; }
.ftr__legal a:hover { color: #fff; }

/* ---------- LOGO mask helper ---------- */
.logo {
  display: inline-block; background-color: var(--logo-color, #8C1024);
  -webkit-mask-image: url('assets/logo-official-red.png');
  mask-image: url('assets/logo-official-red.png');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}

/* ---------- PAGE INTRO HERO ---------- */
.page-hero {
  padding: 80px 0 56px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.page-hero__title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08;
  letter-spacing: -0.025em; margin: 16px 0 24px;
  color: var(--ink-1000);
  text-wrap: balance;
}
.page-hero__title em {
  font-style: italic; font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; color: var(--site-accent);
  letter-spacing: -0.01em;
  font-size: 0.92em;
  line-height: 1;
}
.page-hero__sub {
  font-size: 19px; line-height: 1.55; color: var(--fg-2);
  max-width: 60ch; margin: 0;
}
.page-hero__burst {
  position: absolute; top: -120px; right: -240px;
  width: 720px; height: 720px;
  z-index: 0; pointer-events: none; opacity: 0.45;
  mask-image: radial-gradient(circle at 70% 30%, #000 5%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 5%, transparent 60%);
}

/* ---------- STATUTS layout ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: flex-start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } }
.legal-toc { position: sticky; top: 96px; }
/* En une colonne, le sommaire collant (sans fond) passait par-dessus le texte. */
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc h6 {
  margin: 0 0 12px; font-size: 11px; font-weight: 600; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block; padding: 8px 0; font-size: 14px;
  color: var(--ink-700); text-decoration: none;
  border-left: 2px solid var(--border); padding-left: 14px;
  transition: color 120ms, border-color 120ms;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero) "  ·  "; color: var(--ink-400); font-family: var(--font-mono); }
.legal-toc a:hover { color: var(--site-accent); border-left-color: var(--site-accent); }
.legal-toc a.is-active { color: var(--site-accent); border-left-color: var(--site-accent); font-weight: 600; }
.legal-body article { margin-bottom: 48px; scroll-margin-top: 96px; }
.legal-body h3 {
  font-family: var(--font-heading); font-weight: 700; font-size: 26px;
  letter-spacing: -0.01em; margin: 0 0 16px;
  display: flex; align-items: baseline; gap: 16px;
}
.legal-body h3::before {
  content: var(--art); font-family: var(--font-mono);
  font-weight: 400; font-size: 14px; color: var(--ink-500);
  background: var(--ink-100); padding: 4px 8px; border-radius: 2px;
}
.legal-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink-800); }
.legal-body p:last-child { margin-bottom: 0; }

/* ---------- HISTOIRE inline marker ---------- */
.history-mark {
  display: flex; align-items: center; gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.history-mark__date {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 72px; line-height: 0.9; color: var(--site-accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* ---------- CHECKLIST ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; padding: 0; list-style: none; margin: 0; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.checklist li {
  font-size: 14px; color: var(--ink-800); padding-left: 24px; position: relative;
  padding-top: 6px; padding-bottom: 6px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--site-accent);
  border-bottom: 2px solid var(--site-accent);
  transform: rotate(-45deg);
}

/* ---------- STEP CARDS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; position: relative; padding-top: 24px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 64px; line-height: 0.9; color: var(--site-accent);
  letter-spacing: -0.03em;
}
.step h4 {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; margin: 8px 0 8px;
}
.step p { margin: 0; font-size: 15px; color: var(--fg-2); line-height: 1.55; }

/* ---------- ADJUSTABLE animation classes ---------- */
.fade-in {
  animation: fadeUp 600ms var(--ease-sport) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HIDE for screen readers ---------- */
.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;
}

/* ---------- DETAILS BLOCK (contact methods) ---------- */
.contact-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .contact-blocks { grid-template-columns: 1fr; } }
.contact-block {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: box-shadow 200ms, border-color 200ms, transform 200ms;
}
.contact-block:hover { box-shadow: var(--shadow-2); border-color: var(--site-accent); transform: translateY(-2px); }
.contact-block__icon {
  width: 48px; height: 48px; border-radius: 4px;
  background: var(--site-accent-soft); color: var(--site-accent);
  display: grid; place-items: center;
}
.contact-block__icon svg { width: 24px; height: 24px; }
.contact-block__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-500); font-weight: 600; margin: 0; }
.contact-block__value {
  font-family: var(--font-heading); font-weight: 700; font-size: 24px;
  letter-spacing: -0.01em; color: var(--ink-1000); margin: 0;
}

/* ---------- Responsive helpers for inline two-column grids ---------- */
@media (max-width: 900px) {
  .home-week-grid, .ow-grid, .ag-grid, .loc-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- LOC list ---------- */
.locs { display: flex; flex-direction: column; gap: 14px; }
.loc { display: grid; grid-template-columns: 28px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.loc__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--site-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--site-accent); justify-self: center; }
.loc__name { font-weight: 600; font-size: 15px; }
.loc__detail { font-size: 13px; color: var(--fg-3); }
.loc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-700); }

/* ---------- AGENDA iCal ---------- */
.agenda__head {
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.agenda__src { font-size: 12px; color: var(--ink-500); }
.agenda__msg { margin: 0; padding: 24px 28px; font-size: 14px; color: var(--fg-3); }
.agenda__ligne {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  align-items: center; padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}
.agenda__ligne:last-child { border-bottom: 0; }
.agenda__date { display: flex; flex-direction: column; line-height: 1; }
.agenda__jour {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 32px; color: var(--ink-1000); letter-spacing: -0.02em;
}
.agenda__mois {
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.14em; margin-top: 6px;
}
.agenda__titre {
  margin: 0 0 4px; font-family: var(--font-heading); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
}
.agenda__detail { margin: 0; font-size: 13px; color: var(--fg-3); }
@media (max-width: 640px) {
  .agenda__ligne { grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 20px; }
  .agenda__head { padding: 16px 20px; }
}

/* ---------- AVANTAGE MEMBRES ---------- */
.avantage {
  margin: 12px 0 0; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.5; color: var(--fg-2);
}
.avantage__label {
  display: block; margin-bottom: 2px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--site-accent);
}

/* ---------- CAMP ---------- */
/* la date vit dans le hero : une ligne, pas un bandeau */
.camp-quand {
  margin: 22px 0 0; padding-left: 16px;
  border-left: 3px solid var(--site-accent);
  display: flex; flex-direction: column; gap: 3px;
}
.camp-quand__dates {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(17px, 1.9vw, 21px); letter-spacing: -0.01em;
  color: var(--ink-1000);
}
.camp-quand__note { font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.camp-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .camp-check { grid-template-columns: 1fr 1fr; gap: 10px 32px; } }
.camp-check li {
  position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--fg-2);
}
.camp-check li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; border-radius: 2px;
  border: 2px solid var(--site-accent);
}

/* ---------- QR CODES DU CAMP ---------- */
.camp-info { display: flex; gap: 24px; align-items: flex-start; }
.camp-info__texte { flex: 1; min-width: 0; }
.camp-qr {
  flex-shrink: 0; width: 104px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.camp-qr img {
  width: 104px; height: 104px; display: block;
  border: 1px solid var(--border); border-radius: 4px;
  background: #fff; padding: 6px; box-sizing: border-box;
  transition: border-color 200ms;
}
.camp-qr:hover img { border-color: var(--site-accent); }
.camp-qr span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-500);
}
@media (max-width: 560px) {
  .camp-info { flex-direction: column; }
  .camp-qr { align-self: flex-start; }
}

/* ---------- HERO AVEC PHOTO ---------- */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 45%; z-index: 0;
}
/* degrade blanc depuis la gauche : le texte reste lisible sur la photo */
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    var(--paper) 0%, var(--paper) 34%,
    rgba(255,255,255,0.92) 48%, rgba(255,255,255,0.45) 68%, rgba(255,255,255,0.05) 100%);
}
.page-hero--photo .container { position: relative; z-index: 2; }
.page-hero--photo .page-hero__inner { max-width: 620px; }
@media (max-width: 760px) {
  .page-hero--photo::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.95) 45%, var(--paper) 100%);
  }
  .page-hero__photo { object-position: 55% 40%; }
}

/* ---------- COTISATION ---------- */
.cotis {
  display: grid; grid-template-columns: 1fr 420px; gap: 48px;
  align-items: start;
}
.cotis__texte { display: flex; flex-direction: column; gap: 28px; }
.cotis__bonus {
  padding: 24px 26px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--ink-50);
}
.cotis__bonus p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.cotis__carte { margin: 0; }
@media (max-width: 900px) {
  .cotis { grid-template-columns: 1fr; gap: 32px; }
  .cotis__carte { max-width: 460px; }
}
