/* ==========================================================
   Spondy'Raid — v0
   Palette : violet (couleur de l'équipe 💜) + fuchsia & turquoise
   (couleurs de la Corsica Raid Fémina)
   ========================================================== */
:root {
  --violet-900: #2a1240;
  --violet-800: #3b1a5a;
  --violet-600: #6b2fa0;
  --violet-500: #8a3fd1;
  --violet-100: #f3eafb;
  --violet-50:  #faf6fe;
  --pink:       #e6007e;
  --turquoise:  #1fb5c3;
  --ink:        #1e1428;
  --muted:      #5f5370;
  --white:      #ffffff;
  --radius:     20px;
  --shadow:     0 10px 30px rgba(59, 26, 90, .10);
  --font-title: "Fraunces", Georgia, serif;
  --font-body:  "Poppins", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 60px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-600); }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-title); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pink);
  margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--pink);
  color: var(--white);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 18px rgba(230, 0, 126, .28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230, 0, 126, .35); }
.btn--small { padding: .6em 1.1em; font-size: .9rem; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn--ghost-dark { background: transparent; color: var(--violet-600); border-color: var(--violet-600); box-shadow: none; }
.btn--ghost-dark:hover { background: var(--violet-100); box-shadow: none; }
.btn--white { background: var(--white); color: var(--violet-800); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem max(16px, calc((100% - 1120px) / 2));
  background: rgba(42, 18, 64, .92);
  backdrop-filter: blur(10px);
  color: var(--white);
}
.nav__logo {
  font-family: var(--font-title); font-weight: 800; font-size: 1.35rem;
  color: var(--white); text-decoration: none;
}
.nav__logo span { color: var(--pink); }
.nav__logo .heart { color: inherit; font-size: 1rem; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a:not(.btn) { color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); transition: .2s; }

@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.2rem;
    background: var(--violet-900);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(6rem, 12vw, 9rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 181, 195, .35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(230, 0, 126, .45), transparent 45%),
    linear-gradient(135deg, var(--violet-900), var(--violet-600));
}
.hero__bg { position: absolute; inset: auto 0 -1px 0; height: 120px; }
.hero__bg svg { width: 100%; height: 100%; fill: var(--white); }
.hero__content { position: relative; }
.hero .eyebrow { color: #ffd2ea; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.8rem); margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: transparent; background: linear-gradient(90deg, #ff8ccc, var(--turquoise)); -webkit-background-clip: text; background-clip: text; }
.hero__lead { max-width: 640px; font-size: clamp(1rem, 2.2vw, 1.18rem); color: rgba(255,255,255,.9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }

.countdown {
  display: inline-block;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.countdown__label { margin: 0 0 .3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.countdown__grid { display: flex; gap: 1.6rem; }
.countdown__grid div { display: flex; flex-direction: column; align-items: center; }
.countdown__grid span { font-family: var(--font-title); font-weight: 800; font-size: 2rem; line-height: 1; }
.countdown__grid small { font-size: .75rem; opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--tinted { background: var(--violet-50); }
.section--dark { background: var(--violet-900); color: var(--white); }
.section--dark .eyebrow { color: #ff8ccc; }
.section--dark .section__intro { color: rgba(255,255,255,.8); }
.section__intro { max-width: 720px; font-size: 1.05rem; color: var(--muted); margin: 0 0 2.5rem; }
.small-note { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.tiny { font-size: .78rem; color: var(--muted); margin: .7rem 0 0; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 47, 160, .08);
}

/* ---------- Duo ---------- */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.duo__plus { font-family: var(--font-title); font-size: 3rem; color: var(--pink); font-weight: 800; }
.person { text-align: center; height: 100%; }
.person p:last-child { color: var(--muted); text-align: left; margin-bottom: 0; }
.person__photo {
  width: 140px; height: 140px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-500), var(--pink));
  color: var(--white);
  font-family: var(--font-title); font-size: 3.4rem; font-weight: 800;
  border: 5px solid var(--violet-100);
}
.person__photo { overflow: hidden; }
.person__img { width: 100%; height: 100%; object-fit: cover; }
.person__img--perrine { object-position: 62% 30%; }
.person__photo--alt { background: linear-gradient(135deg, var(--turquoise), var(--violet-500)); }
.person__role { color: var(--pink); font-weight: 600; font-size: .92rem; margin: -.3rem 0 1rem; }

@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .duo__plus { text-align: center; line-height: 1; }
}

.quote {
  margin: 3.5rem auto 0; max-width: 760px; text-align: center;
  font-family: var(--font-title); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 600;
  color: var(--violet-800);
}
.quote cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-size: .95rem; font-style: normal; color: var(--pink); }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.fact { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--violet-500); box-shadow: var(--shadow); }
.fact:nth-child(2) { border-color: var(--pink); }
.fact:nth-child(3) { border-color: var(--turquoise); }
.fact__icon { font-size: 1.8rem; }
.fact h3 { margin-top: .6rem; }
.fact p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Défi ---------- */
.defi { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.defi__text p { font-size: 1.05rem; color: var(--muted); margin-top: 0; }
.defi__infos { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.defi__infos li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--violet-50); border-radius: 14px; }
.defi__infos span { font-size: 1.5rem; }
.defi__infos strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--violet-600); }
@media (max-width: 860px) { .defi { grid-template-columns: 1fr; gap: 2rem; } }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--violet-100); }
.timeline__step { position: relative; padding-top: 2rem; }
.timeline__step span { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--violet-100); }
.timeline__step.is-done span { background: var(--violet-500); border-color: var(--violet-500); }
.timeline__step.is-current span { background: var(--pink); border-color: #ffc2e3; box-shadow: 0 0 0 6px rgba(230,0,126,.15); }
.timeline__step strong { color: var(--violet-800); }
.timeline__step p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 2rem; }
  .timeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline__step { padding-top: 0; }
  .timeline__step span { left: -2rem; }
}

/* ---------- Budget ---------- */
.progress-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 2rem; }
.progress-card__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.progress-card .big { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.2rem); }
.progress { height: 16px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin: 1rem 0 .8rem; }
.progress__bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--turquoise)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.progress-card__meta { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }

.budget { margin-top: 2.5rem; }
.budget ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.budget li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.budget li em { font-style: normal; color: rgba(255,255,255,.55); font-size: .88rem; display: block; }
.budget li.total { border-bottom: 0; font-weight: 700; font-size: 1.1rem; }
.budget__note { background: rgba(230, 0, 126, .15); border-left: 4px solid var(--pink); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 0; color: rgba(255,255,255,.92); }

/* ---------- Ways to help ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.way { position: relative; display: flex; flex-direction: column; }
.way p { color: var(--muted); }
.way .btn { margin-top: auto; }
.way__num {
  position: absolute; top: -18px; left: 2rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--violet-600); color: var(--white); font-weight: 700;
}
.way h3 { margin-top: .6rem; font-size: 1.4rem; font-family: var(--font-title); }
.way--featured { background: linear-gradient(160deg, var(--violet-600), var(--violet-800)); color: var(--white); }
.way--featured p, .way--featured li { color: rgba(255,255,255,.85); }
.way--featured .way__num { background: var(--pink); }
.checklist { padding: 0; margin: 0 0 1.5rem; list-style: none; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .4rem; font-size: .94rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--turquoise); font-weight: 700; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; justify-content: center; }
.social { font-size: .85rem; font-weight: 600; text-decoration: none; padding: .35em .9em; border-radius: 999px; background: var(--violet-100); }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Partenariat ---------- */
.partner-flow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.8rem 3.6rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--pink); color: var(--pink); font-weight: 700;
}
.steps p { margin: .3rem 0 0; color: var(--muted); }
.tarif { background: var(--pink); color: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: 0 16px 40px rgba(230,0,126,.3); }
.tarif__label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; margin: 0; opacity: .9; }
.tarif__price { font-family: var(--font-title); font-size: 3rem; font-weight: 800; margin: .4rem 0 0; line-height: 1.1; }
.tarif__price small { font-size: 1.1rem; }
.tarif__ttc { margin: 0 0 1.5rem; opacity: .9; }
.tarif__contact { display: inline-block; margin-top: 1rem; color: var(--white); font-size: .9rem; }
@media (max-width: 860px) { .partner-flow { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Partenaires ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.logo-slot {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  border: 2px dashed rgba(107, 47, 160, .25); border-radius: 16px;
  color: var(--muted); font-size: .9rem; background: var(--violet-50);
}

/* ---------- CTA / Footer ---------- */
.section--cta { background: linear-gradient(135deg, var(--pink), var(--violet-600)); color: var(--white); }
.section--cta p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; opacity: .92; }
.footer { background: var(--violet-900); color: rgba(255,255,255,.75); padding: 2.5rem 0; text-align: center; }
.footer p { margin: .2rem 0; }
.footer__brand { font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; color: var(--white); }
.footer .tiny { color: rgba(255,255,255,.5); }

.version-switch {
  position: fixed; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  padding: .5em .9em; border-radius: 999px;
  background: var(--violet-900); color: var(--white); text-decoration: none;
  font-size: .78rem; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .progress__bar { transition: none; }
}
