/* ============================================
   CDC-CD MAT HappyJogg'Run — 2026 redesign
   Type: Azo Sans
   Palette: Pure red on warm-white, deep ink
   ============================================ */

@font-face {
  font-family: "Azo Sans";
  src: url("./fonts/AzoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azo Sans";
  src: url("./fonts/AzoSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Azo Sans";
  src: url("./fonts/AzoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azo Sans";
  src: url("./fonts/AzoSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@keyframes words_rotation {
  0%, 23% {
    content: "surprenante !";
    opacity: 1;
  }
  24%, 25% {
    opacity: 0;
  }
  26%, 48% {
    content: "palpitante !";
    opacity: 1;
  }
  49%, 50% {
    opacity: 0;
  }
  51%, 73% {
    content: "mémorable !";
    opacity: 1;
  }
  74%, 75% {
    opacity: 0;
  }
  76%, 98% {
    content: "électrique !";
    opacity: 1;
  }
  99%, 100% {
    opacity: 0;
  }
}

/* ---------- tokens ---------- */
:root {
  --red: oklch(0.625 0.235 25);          /* primary red ≈ #F23A2F */
  --red-soft: oklch(0.625 0.235 25 / 0.12);
  --red-line: oklch(0.625 0.235 25 / 0.28);
  --red-deep: oklch(0.5 0.21 25);

  --ink: oklch(0.18 0.012 30);            /* near black, warm */
  --ink-2: oklch(0.32 0.01 30);
  --ink-3: oklch(0.55 0.008 30);
  --line: oklch(0.88 0.006 30);
  --bg: oklch(0.985 0.004 50);            /* warm white */
  --bg-2: oklch(0.96 0.005 50);
  --bg-3: oklch(0.93 0.006 50);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --container: 1320px;
  --pad: clamp(20px, 4vw, 56px);

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t: 320ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: "Azo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
p { margin: 0 0 1em; text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: var(--red); color: white; }

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--pad);
  margin-inline: auto;
}

/* ---------- NAV (floating pill, matches reference) ---------- */
.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 8px 14px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-pill);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 12px 40px -16px rgba(20,10,10,0.18),
    0 2px 6px -2px rgba(20,10,10,0.08);
}
.nav__brand {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.nav__brand svg,
.nav__brand img { width: 32px; height: 32px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: var(--r-pill);
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav__link:hover { color: var(--red); }
.nav__link.is-active {
  color: var(--red);
  background: var(--red-soft);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  opacity: .35;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav__cta:hover { background: var(--red); transform: translateY(-1px); }
.nav__cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; }
.nav__cta:hover .dot { background: white; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t); }
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 24px; }

@media (max-width: 1180px) {
  .nav { padding: 8px 12px; }
  .nav__list, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__list {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: stretch;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    padding: 14px;
    border-radius: var(--r-lg);
    box-shadow: 0 24px 60px -20px rgba(20,10,10,0.25);
    gap: 4px;
  }
  .nav.is-open .nav__link { justify-content: flex-start; padding: 14px 16px; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* ---------- HERO (matches reference image exactly) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 100px var(--pad) 50px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* subtle vignette for legibility */
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 40%, rgba(255,255,255,0.5) 100%),
    /* stone texture base */
    linear-gradient(135deg, #d8d6d3 0%, #c5c2bf 40%, #b8b5b2 100%);
  background-size: cover;
  background-position: center;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 35%, transparent 60%, rgba(255,255,255,0.45) 100%);
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(54px, 9.5vw, 144px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0;
}
.hero__title .accent { color: var(--red); }
.hero__title .white { color: #FFF; }

.hero__tag {
  margin-top: 14px;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 400;
  color: var(--ink);
  max-width: 720px;

  .accent::after {
    content: "surprenante !";
    animation: words_rotation 10s ease-in-out infinite;
    display: inline-block;
    color: var(--red);
  }
}
.hero__tag .accent {
  color: var(--red);
  font-weight: 700;
}

/* Countdown pill */
.countdown {
  display: flex;
  flex-direction: row;
  align-items: center;
  backdrop-filter: blur(4px);
  width: fit-content;
  gap: 10px;
  margin: 1rem 0;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(181, 181, 181);
  border-image: initial;
  background: rgba(255, 255, 255, 0.19);
  border-radius: 45px;
  padding: 10px 20px;
}
.countdown__label {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.countdown__unit {
  text-align: center;
  min-width: 60px;
}
.countdown__num {
  display: block;
  font-size: clamp(28px, 3vw, 30px);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.hero__meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  color: var(--ink);
}
.hero__meta svg { width: 22px; height: 22px; color: var(--ink); }

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll .line {
  width: 1px;
  height: 60px;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
  transform: rotate(180deg);
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--red);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -30px; }
  100% { top: 60px; }
}
@media (max-width: 1020px) {
  .sub_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  gap: 60px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.marquee__item.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTION shared ---------- */
.section { padding: clamp(80px, 10vw, 160px) 0; }
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--red-line);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section__kicker .num {
  font-variant-numeric: tabular-nums;
  opacity: .7;
}
.section__title {
  margin: 22px 0 0;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.section__title .accent { color: var(--red); }
.section__title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.section__lede {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-2);
}

/* ---------- About / Presentation ---------- */
.about { background: var(--bg); position: relative; }
.about__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about__copy p { font-size: 18px; color: var(--ink-2); }
.about__copy .accent, .container .accent { color: var(--red); font-weight: 700; }
.about__copy strong { color: var(--ink); font-weight: 700; }
.sub_title {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 2rem;
  margin-top: 50px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.stat {
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.btn--red { background: var(--red); color: white; }
.btn--red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: white; }
.btn--ink:hover { background: var(--red); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: white; }
.btn .arrow {
  display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: transform var(--t-fast);
}
.btn--ghost .arrow { background: var(--ink); color: white; }
.btn:hover .arrow { transform: translate(3px, -3px) rotate(-15deg); }

/* ---------- GALLERY / Carousel ---------- */
.gallery { background: var(--bg-2); }
.gallery__row {
  margin-top: 56px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.gallery__row::-webkit-scrollbar { height: 6px; }
.gallery__row::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
.gallery__card {
  flex: 0 0 clamp(280px, 32vw, 460px);
  height: clamp(360px, 42vw, 580px);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: var(--ink);
}
.gallery__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery__card:hover img { transform: scale(1.05); }
.gallery__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.gallery__caption {
  position: absolute;
  bottom: 18px; left: 18px;
  color: white;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
}
.gallery__caption .num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

/* ---------- SPONSORS ---------- */
.sponsors { background: var(--bg); }
.sponsors__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.sponsor-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.sponsor-card:hover { transform: translateY(-3px); border-color: var(--red-line); background: white; }
.sponsor-card img { max-height: 80px; max-width: 100%; object-fit: contain; filter: saturate(0.9); }
.sponsor-card.lead { grid-column: span 6; min-height: 220px; background: white; }
.sponsor-card.lead-all { grid-column: span 12; min-height: 120px; }
.sponsor-card.lead img { max-height: 140px; }
.sponsor-card.size-4 { grid-column: span 4; }
@media (max-width: 900px) {
  .sponsor-card.size-4 { grid-column: span 6; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer__big {
  font-size: clamp(80px, 14vw, 280px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin: 0 0 60px;
  color: white;
  position: relative;
  display: flex;
  justify-content: center;
}
.footer__big .accent { color: var(--red); }
.footer__big .outline { color: transparent; -webkit-text-stroke: 2px white; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer__col h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: white; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--red); }
.footer__col .small { font-size: 14px; color: rgba(255,255,255,0.7); }

.footer__bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer__bottom .accent { color: var(--red); }
.social {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.social:hover { background: var(--red); }
.social svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- PAGE HEADERS (interior) ---------- */
.page-header {
  padding: 200px var(--pad) 80px;
  position: relative;
}
.page-header__inner { max-width: var(--container); margin-inline: auto; }
.page-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-header__title {
  font-size: clamp(50px, 8vw, 124px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 18px 0 0;
}
.page-header__title .accent { color: var(--red); }
.page-header__title .outline {
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.page-header__lede {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: clamp(17px, 1.3vw, 21px);
  color: var(--ink-2);
}

/* ---------- INFO CARDS (infos.html) ---------- */
.race-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.race-block.accent-red { border-left: 4px solid var(--red); }
.race-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 36px;
}
.race-block__name {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.race-block__name .accent { color: var(--red); }
.race-block__date {
  text-align: right;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.race-block__date strong { display: block; font-size: 28px; color: var(--ink); margin-bottom: 4px; text-transform: none; letter-spacing: -0.02em; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.info-card {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 26px;
  position: relative;
  transition: background var(--t-fast);
}
.info-card:hover { background: var(--bg-3); }
.info-card .ic-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.info-card .ic-icon svg { width: 22px; height: 22px; }
.info-card h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-weight: 700; }
.info-card .ic-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.info-card .ic-value .accent { color: var(--red); }
.info-card .ic-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid > *:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid > *:last-child { grid-column: span 1; }
}

.schedule {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.schedule__card {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.schedule__card h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-weight: 700; }
.schedule__card p { font-size: 22px; color: var(--ink); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.schedule__card p .accent { color: var(--red); }

/* ---------- PRICING TABLE (inscription.html) ---------- */
.pricing { background: var(--bg); }
.pricing__block {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 32px;
}
.pricing__title {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.pricing__title .accent { color: var(--red); }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.price-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 24px 14px;
  border-bottom: 1px solid var(--line);
}
.price-table tbody td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--bg-2); }
.price-table .period { color: var(--ink-2); }
.price-table .period strong { color: var(--ink); display: block; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }
.price-table .price { font-weight: 700; font-size: 22px; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price-table .price small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.price-table .option { color: var(--ink-2); font-size: 14px; }

/* Chaque phase identifiee par une pastille et separee nettement de la suivante */
.price-table .phase-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-table .phase-tag--ink { background: var(--ink); }
.price-table tbody .phase > td { border-bottom: 2px solid var(--line); }
.price-table tbody .phase > td:first-child { box-shadow: inset 3px 0 0 var(--red-line); }
.price-table tbody .phase:hover > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.price-table .price--wide { text-align: center; }
.phase--onsite {
  .sub_title-strong {
    margin-top: -8px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .sub_title-strong-second {
    margin-bottom: -5px!important;
  }
}

/* Ligne pleine largeur : fin de l'option personnalisation */
.price-table__banner > td {
  padding: 14px 24px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 0;
}
.price-table__banner:hover > td { background: var(--ink); }

/* Inscription sur place : derniere ligne, mise en avant */
.price-table tbody .phase--onsite > td,
.price-table tbody .phase--onsite:hover > td { background: var(--red-soft); }

/* ---------- CHALLENGE ---------- */
.challenge-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.challenge-card {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 32px;
  transition: background var(--t-fast);
}
.challenge-card:hover { background: white; box-shadow: 0 12px 30px -16px rgba(0,0,0,0.1); }
.challenge-card .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 16px;
}
.challenge-card h4 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.challenge-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .challenge-grid { grid-template-columns: 1fr; } }

.packs {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pack {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  border: 1px solid var(--line);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.pack:hover { transform: translateY(-4px); border-color: var(--red-line); }
.pack.featured { background: var(--ink); color: white; border-color: var(--ink); }
.pack.featured h3, .pack.featured .pack__price { color: white; }
.pack.featured .pack__price .accent { color: var(--red); }
.pack__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.pack h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 14px; }
.pack__price {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--red);
  margin-bottom: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pack ul { list-style: none; padding: 0; margin: 0 0 24px; }
.pack li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pack.featured li { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.pack li::before {
  content: "→";
  color: var(--red);
  font-weight: 700;
}
/* Carte pack occupée par une seule image : elle remplit toute la carte */
.pack--media {
  padding: 0;
  overflow: hidden;
  display: grid;
  background: var(--ink);
}
.pack--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .packs { grid-template-columns: 1fr; }
  /* En colonne unique, plus de hauteur de reference : on en impose une */
  .pack--media { aspect-ratio: 3 / 2; }
}

/* ---------- PALMARÈS TABLE ---------- */
.palmares-section { background: var(--bg); }
.palmares-year {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  margin-bottom: 18px;
}
.year_primary {
  background-color: var(--red);

  .palmares-year__num, .palmares-year__caption {
    color: #FFF;
  }
}
.palmares-year__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.palmares-year__num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.palmares-year__caption { font-size: 14px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* --- Accordeon : seule l'annee la plus recente est ouverte au chargement --- */
.palmares-year { transition: border-color var(--t-fast); }
.palmares-year > .palmares-year__head {
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.palmares-year > .palmares-year__head::-webkit-details-marker { display: none; }
.palmares-year:not([open]) > .palmares-year__head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.palmares-year:not([open]):hover { border-color: var(--red-line); }
.palmares-year__head:focus-visible { outline: 2px solid var(--red); outline-offset: 8px; border-radius: 8px; }

.palmares-year__meta { display: inline-flex; align-items: center; gap: 18px; }
.palmares-year__toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  transition: transform var(--t), background var(--t-fast), color var(--t-fast);
}
.palmares-year__toggle svg { width: 18px; height: 18px; }
.palmares-year[open] .palmares-year__toggle { transform: rotate(180deg); }
.palmares-year:not([open]):hover .palmares-year__toggle { background: var(--red); color: white; }
.year_primary .palmares-year__toggle { background: rgba(255,255,255,0.2); color: white; }

/* Le contenu se deplie en fondu ; ferme, il est retire du flux par <details> */
.palmares-year[open] > *:not(.palmares-year__head) {
  animation: palmaresOpen var(--t) cubic-bezier(.2,.7,.2,1);
}
@keyframes palmaresOpen {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .palmares-year[open] > *:not(.palmares-year__head) { animation: none; }
  .palmares-year__toggle { transition: none; }
}

/* --- Photo de cloture du palmares --- */
.palmares-photo { background: var(--bg); padding-top: 0; }
.photo-feature { margin: 0 auto; max-width: 860px; text-align: center; }
.photo-feature img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 34px 70px -34px rgba(20, 10, 10, 0.5);
}
.photo-feature figcaption { margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.photo-feature__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.podium-grid_2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.podium {
  padding: 20px;
  background: var(--bg-2);
  border-radius: var(--r);
}
.podium__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.podium__head .badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: white;
}
.podium ol { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.podium li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  counter-increment: rank;
}
.podium li:last-child { border-bottom: 0; }
.podium li::before {
  content: counter(rank);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--ink-2);
}
.podium li:nth-child(1)::before { background: var(--red); color: white; }
.podium li:nth-child(1) { font-weight: 700; }

@media (max-width: 760px) { .podium-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- VIDEOS ---------- */
.videos-grid {
  margin-top: 56px;
}
.video-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16/9;
  position: relative;
}
.video-card iframe { width: 100%; height: 100%; border: 0; }
.video-card .info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  pointer-events: none;
  z-index: 0;
}
.video-card .info h4 { font-size: 18px; font-weight: 700; }
@media (max-width: 760px) { .videos-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info {
  background: var(--ink);
  color: white;
  border-radius: var(--r-lg);
  padding: 48px;
}
.contact-info h3 { font-size: 28px; margin-bottom: 24px; }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-info li { display: flex; gap: 14px; align-items: center; }
.contact-info .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-info .ic svg { width: 18px; height: 18px; }
.contact-info a { color: white; }
.contact-info a:hover { color: var(--red); }
.contact-info .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; }
/* l'adresse e-mail est insecable : sans ca elle elargit la grille sur mobile */
.contact-info li > div { min-width: 0; }
.contact-info a { overflow-wrap: anywhere; }

/* --- Formulaire de contact (Web3Forms) --- */
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
}
.contact-form h3 { font-size: 28px; margin-bottom: 8px; }
.contact-form__lede { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field label span { color: var(--red); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: white;
  border-color: var(--red);
}
/* :user-invalid ne se declenche qu'apres une vraie saisie, pas au chargement */
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); background: var(--red-soft); }

.contact-form .btn { margin-top: 8px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.contact-form__note { margin: 20px 0 0; font-size: 13px; color: var(--ink-3); }

.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--ink); color: white; }
.form-status.is-error { background: var(--red-soft); color: var(--red-deep); border: 1px solid var(--red-line); }
.form-status a { color: inherit; text-decoration: underline; }

/* Photo pleine largeur (bas de page contact) */
.photo-feature--wide { max-width: none; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-form { padding: 28px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- UTILS / ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- SMALL ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 110px 20px 40px; }
  .countdown { padding: 14px 20px; gap: 14px; }
  .countdown__num { font-size: 24px; }
  .countdown__label { font-size: 16px; }
  .nav { top: 12px; }
}
