/* ============================================
   ASD Mentonnais — Design tokens
============================================ */
:root {
  --ink: #0d2733;
  --ink-soft: #35505b;
  --paper: #faf7f0;
  --paper-alt: #f1ece0;
  --line: rgba(13, 39, 51, 0.12);

  --blue: #1668b0;
  --blue-dark: #0d3f66;
  --blue-light: #4a9fd8;
  --blue-light-dark: #1f6f9c;
  --blue-vivid: #1959c9;

  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container-w: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -25px rgba(13, 39, 51, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: inherit; }

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================
   Buttons
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-vivid);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(25, 89, 201, 0.65);
}
.btn-primary:hover { background: #cf4a22; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ============================================
   Header
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 247, 240, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(13,39,51,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue-dark);
}
.brand-mark { display: block; height: 40px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-text strong { color: var(--blue-vivid); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-vivid);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 60%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.stadium-track {
  position: absolute;
  top: -6%;
  right: -18%;
  width: 62%;
  min-width: 560px;
  transform: rotate(-7deg);
}
.stadium-track .lane {
  fill: none;
  stroke-width: 3;
}
.stadium-track .lane-6 { stroke: var(--blue); opacity: 0.16; }
.stadium-track .lane-5 { stroke: var(--blue-light); opacity: 0.18; }
.stadium-track .lane-4 { stroke: var(--blue); opacity: 0.2; }
.stadium-track .lane-3 { stroke: var(--blue-vivid); opacity: 0.22; }
.stadium-track .lane-2 { stroke: var(--blue); opacity: 0.26; }
.stadium-track .lane-1 { stroke: var(--blue-light); opacity: 0.3; }
.stadium-track .finish-line {
  stroke: var(--blue-vivid);
  stroke-width: 3;
  stroke-dasharray: 4 5;
  opacity: 0.35;
}

@media (max-width: 860px) {
  .stadium-track { display: none; }
}


.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 18px;
}
.text-accent { color: var(--blue-vivid); }
.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ============================================
   Sections (generic)
============================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark {
  position: relative;
  background: var(--blue-dark);
  color: #fff;
  overflow: hidden;
}
.section-dark .kicker { color: #a8d8de; }
.section-dark .lead { color: rgba(255,255,255,0.85); }
.section-dark .container { position: relative; z-index: 1; }
.section-cta { background: var(--paper-alt); }

.track-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.track-texture svg {
  width: 55%;
  min-width: 480px;
  height: 100%;
  position: absolute;
  right: -12%;
  top: 0;
}
.track-texture rect {
  fill: none;
  stroke: rgba(255,255,255,0.14);
  stroke-width: 2;
}
.track-texture rect:nth-child(2) { stroke: rgba(74,159,216,0.16); }
.track-texture rect:nth-child(3) { stroke: rgba(255,255,255,0.1); }

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--blue);
  margin: 0 0 10px;
}
.kicker-num {
  color: var(--ink-soft);
  opacity: 0.45;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.section-dark .kicker-num { color: #fff; }

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.section-grid-reverse { grid-template-columns: 1.15fr 0.85fr; }
.section-grid-reverse .section-media { order: 1; }
.section-grid-reverse .section-body { order: 2; }

.section-head-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }
.lead-center { margin: 0 auto; }

.jersey-showcase {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--paper-alt);
  border-radius: var(--radius);
}
.jersey-flip {
  position: relative;
  max-width: 280px;
  width: 100%;
  cursor: pointer;
  outline: none;
}
.jersey-flip img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(13, 39, 51, 0.16));
}
.jersey-flip .jersey-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.jersey-flip:hover .jersey-back,
.jersey-flip:focus-visible .jersey-back,
.jersey-flip.is-flipped .jersey-back {
  opacity: 1;
}
.jersey-flip:hover .jersey-front,
.jersey-flip:focus-visible .jersey-front,
.jersey-flip.is-flipped .jersey-front {
  opacity: 0;
}
.jersey-hint {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 39, 51, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.jersey-flip:hover .jersey-hint,
.jersey-flip:focus-visible .jersey-hint,
.jersey-flip.is-flipped .jersey-hint {
  opacity: 0;
}
.jersey-caption {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.discipline-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
}
.discipline-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
}
.discipline-row svg { color: var(--blue-vivid); flex-shrink: 0; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  border-left: 4px solid var(--blue-light);
  padding-left: 22px;
  margin: 32px 0;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
}
.fact-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

/* ============================================
   Day cards (école d'athlétisme)
============================================ */
.day-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.day-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--blue);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.day-card:nth-child(2) { border-top-color: var(--blue-light); }
.day-card:nth-child(3) { border-top-color: var(--blue-vivid); }
.day-card:hover { transform: translateY(-6px); }

.day-name {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.day-slot + .day-slot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.day-slot-time {
  display: block;
  font-weight: 700;
  color: var(--blue-vivid);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.day-slot-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.day-slot-groups li + li {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.day-group-name {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.day-group-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 400;
}

/* ============================================
   Pillar cards (pourquoi nous rejoindre)
============================================ */
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  text-align: left;
}
.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(22, 104, 176, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pillar-card:nth-child(2) .pillar-icon { background: rgba(74, 159, 216, 0.12); color: var(--blue-light-dark); }
.pillar-card:nth-child(3) .pillar-icon { background: rgba(25, 89, 201, 0.1); color: var(--blue-vivid); }
.pillar-card:nth-child(4) .pillar-icon { background: rgba(22, 104, 176, 0.08); color: var(--blue); }
.pillar-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ============================================
   Location strip + map
============================================ */
.location-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.location-text h3 { margin-bottom: 12px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue-dark);
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ============================================
   Competition calendar
============================================ */
.competition-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.competition-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.comp-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
}
.competition-list li:nth-child(2) .comp-date { background: var(--blue-light); }
.comp-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
}
.comp-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.85;
}
.comp-info h3 { margin-bottom: 2px; font-size: 1.05rem; }
.comp-info p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.instagram-embed-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.instagram-embed-wrap iframe { border-radius: var(--radius) !important; }

.route-embed {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
/* The Strava embed script hardcodes a fixed pixel width on its iframe that
   doesn't match our column width, leaving a gap on the right. Force it full width. */
.route-embed iframe {
  width: 100% !important;
}
.route-embed-label {
  margin: 0;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ============================================
   Strava card
============================================ */
.strava-card {
  margin-top: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.strava-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fc4c02;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.strava-card h3 { margin-bottom: 4px; color: #fff; }
.strava-card p { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.strava-cta { margin-left: auto; }

/* ============================================
   Contact
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.contact-card-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.contact-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--blue-light-dark);
  margin-bottom: 4px;
}
.contact-card-featured .contact-badge { color: var(--blue-light); }
.contact-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.contact-phone { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.contact-phone:hover { color: var(--blue-vivid); }
.contact-card-featured .contact-phone { color: rgba(255,255,255,0.75); }
.contact-card-featured .contact-phone:hover { color: #fff; }

.contact-qualif {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-link:hover { background: var(--blue); color: #fff; }
.contact-link-ffa {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.finish-strip {
  height: 10px;
  background-image:
    conic-gradient(var(--ink) 90deg, transparent 90deg 180deg, var(--ink) 180deg 270deg, transparent 270deg 360deg);
  background-size: 20px 20px;
  background-color: var(--paper-alt);
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 28px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin: 6px 0 0; color: rgba(255,255,255,0.55); }
.footer-info p { margin: 0 0 6px; }
.footer-legal { text-align: right; }
.footer-inner > div:last-child { border: 0; }
.site-footer .footer-legal p { margin: 0; }

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; }
  .footer-legal { text-align: left; }
}

/* ============================================
   Reveal animation
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 980px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-grid-reverse .section-media { order: 2; }
  .section-grid-reverse .section-body { order: 1; }
  .day-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-cards { grid-template-columns: repeat(2, 1fr); }
  .location-strip { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .pillar-cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 18px 0; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 70px 0 90px; }
  .section { padding: 70px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .strava-cta { margin-left: 0; width: 100%; justify-content: center; }
}
