/* Festi Tour Réunicycle – thème repris de l'affiche */
/* Polices hébergées sur le site (pas d'appel à Google : RGPD) */
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/kaushan-script-latin.woff2") format("woff2"); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2"); }
:root {
  --ink: #0e2f3a;        /* bleu nuit du titre */
  --teal: #1a7d8c;       /* turquoise des pinceaux */
  --teal-d: #125f6b;
  --teal-l: #d9eef2;
  --sky: #f2f8fa;
  --yellow: #f6d531;     /* jaune du drapeau réunionnais : bouton d'inscription */
  --yellow-d: #e2bf12;
  --red: #d8262c;
  --white: #fff;
  --radius: 14px;
  --script: "Kaushan Script", cursive;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: clip; font-family: var(--sans); color: var(--ink); background: var(--sky); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--teal); }
.script { font-family: var(--script); font-weight: 400; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  font: 800 1rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .9em 1.4em; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn--cta { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-d), 0 10px 24px rgba(14,47,58,.25); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--yellow-d), 0 14px 28px rgba(14,47,58,.3); }
.btn--cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yellow-d); }
.btn--xl { font-size: 1.15rem; padding: 1.05em 1.8em; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Menu ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  height: 68px; padding: 0 16px; background: var(--ink); color: var(--white); box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.nav__logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.nav__emblem { width: 42px; height: 42px; background: var(--white); border-radius: 50%; padding: 2px; }
.nav__titre { display: flex; flex-direction: column; line-height: 1; }
.nav__titre .script { font-size: 1.5rem; }
.nav__titre img { width: 92px; margin-top: 3px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .85; }
.nav__links a:hover { opacity: 1; color: var(--yellow); }
.nav__cta { padding: .75em 1.3em; font-size: .95rem; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 4px 0 var(--yellow-d), 0 0 0 0 rgba(246,213,49,.55); }
                   50% { box-shadow: 0 4px 0 var(--yellow-d), 0 0 0 10px rgba(246,213,49,0); } }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { display: block; height: 3px; background: var(--white); border-radius: 2px; position: relative; content: ""; }
.nav__burger span::before { position: absolute; top: -8px; left: 0; right: 0; }
.nav__burger span::after { position: absolute; top: 8px; left: 0; right: 0; }

/* ---------- Héro ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; opacity: .6;
  background-color: var(--sky); background-image: url("assets/courbes-niveau.svg"), radial-gradient(circle at 85% 20%, var(--teal-l), transparent 55%), radial-gradient(circle at 10% 90%, var(--teal-l), transparent 45%);
  background-repeat: repeat, no-repeat, no-repeat; background-size: 1400px 1400px, auto, auto; background-position: center top, center, center; }
.hero__photo { position: relative; }
.hero__photo > img:first-child { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px;
  clip-path: polygon(6% 3%, 30% 0, 62% 2%, 94% 0, 100% 8%, 98% 40%, 100% 76%, 96% 98%, 66% 100%, 34% 97%, 4% 100%, 0 82%, 2% 46%, 0 12%);
  box-shadow: 0 20px 40px rgba(14,47,58,.25); }
.hero__tagline { font-size: .8rem; letter-spacing: .35em; font-weight: 600; margin: 0 0 8px; }
.hero__tagline i { font-style: normal; color: var(--teal); margin: 0 .4em; }
.hero__aventure { color: var(--teal); font-size: 1.35rem; margin: 0; transform: rotate(-3deg); transform-origin: left; }
.hero__title { margin: 8px 0 0; line-height: .9; }
.hero__title .script { display: block; font-size: clamp(4rem, 13vw, 8.5rem); letter-spacing: -.01em; }
.hero__title em { font-style: normal; color: var(--teal); }
.hero__o { display: inline-block; height: .74em; width: auto; vertical-align: -.02em; margin: 0 .01em 0 -.04em; }
.hero__brand { display: block; width: clamp(220px, 46vw, 470px); margin: .25em 0 0 .45em; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 22px 0 28px; }
.hero__tour { font-weight: 800; letter-spacing: .35em; font-size: 1.05rem; border-bottom: 3px solid var(--teal); padding-bottom: 4px; }

/* effet pinceau */
.brush { display: inline-block; padding: .25em 1.1em .35em; color: var(--white); font-size: 1.6rem;
  clip-path: polygon(2% 18%, 14% 6%, 40% 10%, 63% 2%, 88% 8%, 100% 22%, 97% 50%, 100% 80%, 84% 94%, 58% 88%, 32% 98%, 8% 90%, 0 66%, 3% 42%); }
.brush--teal { background: var(--teal); transform: rotate(-4deg); }

.hero__infos { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-bottom: 26px; }
.info { display: flex; align-items: center; gap: 12px; }
.info svg { width: 46px; height: 46px; fill: none; stroke: var(--teal); stroke-width: 2; flex: none; }
.info div { display: flex; flex-direction: column; line-height: 1.1; }
.info strong { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; }
.info small { font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.info span { font-size: .9rem; font-weight: 600; color: var(--teal-d); }
.info .script { font-size: 1.5rem; color: var(--teal); }

.countdown { display: flex; gap: 10px; margin-bottom: 30px; }
.countdown div { background: var(--ink); color: var(--white); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 74px; }
.countdown b { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #9fd3dc; }

.hero__sticker { position: absolute; left: -60px; bottom: -40px; width: 160px; transform: rotate(-8deg); filter: drop-shadow(0 4px 8px rgba(14,47,58,.3)); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--light { background-color: var(--white); background-image: url("assets/courbes-niveau.svg"); background-repeat: repeat;
  background-size: 1400px 1400px; background-position: center top; }
.h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; margin: 0 0 18px; line-height: 1.1; }
.h2 .script { color: var(--teal); font-weight: 400; }
.lead { font-size: 1.1rem; max-width: 720px; }

.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.atout { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border-top: 5px solid var(--teal); box-shadow: 0 6px 20px rgba(14,47,58,.08); }
.atout svg { width: 58px; height: 58px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linejoin: round; }
.atout h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; margin: 14px 0 8px; }
.atout p { margin: 0; color: #3d5a64; }

/* ---------- Niveaux (bandeau turquoise de l'affiche) ---------- */
.niveaux { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-d) 100%); color: var(--white); padding: 70px 0;
  clip-path: polygon(0 4%, 18% 0, 46% 3%, 72% 0, 100% 3%, 100% 96%, 80% 100%, 52% 97%, 25% 100%, 0 97%); text-align: center; }
.niveaux__titre { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0; transform: rotate(-2deg); }
.niveaux__sub { font-weight: 700; letter-spacing: .12em; margin: 6px 0 36px; }
.niveaux__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.niveau { padding: 0 16px; }
.niveau + .niveau { border-left: 2px solid rgba(255,255,255,.4); }
.niveau svg { width: 76px; height: 60px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.niveau h3 { text-transform: uppercase; letter-spacing: .08em; margin: 8px 0 4px; }
.niveau p { margin: 0; opacity: .9; font-size: .92rem; }

/* ---------- Parcours & déroulement ---------- */
.provisoire { color: #b06a00; }
.parcours { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.carte { height: 460px; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--teal); background: var(--teal-l); z-index: 0; }
.carte__erreur { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; font-weight: 600; }
.carte-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 14px; }
.carte-stats div { display: flex; align-items: baseline; gap: 6px; }
.carte-stats b { font-size: 1.6rem; font-weight: 900; color: var(--teal-d); }
.carte-stats span { font-weight: 600; font-size: .85rem; }
.carte-stats .btn { margin-left: auto; }
.btn--dark { background: var(--ink); color: var(--white); padding: .8em 1.2em; font-size: .85rem; }
.btn--dark:hover { background: var(--teal-d); }
.legende { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; font-weight: 600; }
.legende li { display: flex; align-items: center; gap: 8px; }
.pt { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,.3); display: inline-block; }
.pt--depart { background: var(--red); }
.pt--ravito { background: var(--yellow); }
.legende .ligne { width: 26px; height: 5px; border-radius: 3px; background: var(--teal); display: inline-block; }
.marqueur { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.marqueur--depart { background: var(--red); width: 22px; height: 22px; }
.marqueur--ravito { background: var(--yellow); }
.marqueur-magasin { background: var(--white); border-radius: 50%; box-shadow: 0 0 0 3px var(--white), 0 2px 8px rgba(0,0,0,.5); }
.popup-magasin { font: 500 .85rem/1.45 var(--sans); color: var(--ink); }
.popup-magasin img { display: block; margin: 0 0 8px; }
.popup-magasin strong { display: block; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--teal-d); }
.popup-magasin a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--teal); }
.legende .logo-pt { width: 18px; height: 18px; }
.deroule h3 { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--teal-l); }
.timeline li { position: relative; padding: 0 0 18px 20px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); border: 3px solid var(--white); }
.timeline time { font-weight: 900; color: var(--teal-d); font-size: .95rem; }
.timeline strong { display: block; }
.timeline div { font-size: .92rem; color: #3d5a64; }
.timeline div strong { color: var(--ink); }
.deroule__rappel { font-size: .9rem; margin: 0 0 10px; color: var(--teal-d); }
.deroule__note { background: var(--sky); border-left: 4px solid var(--yellow); border-radius: 8px; padding: 12px 14px; font-size: .9rem; margin: 6px 0 0; }

/* ---------- Inscription ---------- */
.inscription { background: var(--ink); color: var(--white); position: relative; }
.inscription .h2 { color: var(--white); }
.inscription .h2 .script { color: var(--yellow); }
.wrap--form { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 900; display: grid; place-items: center; font-size: .8rem; }
.tel a { color: var(--yellow); font-weight: 800; }

.form { background: var(--white); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 18px 40px rgba(0,0,0,.35); border-top: 8px solid var(--yellow); }
.form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.form label small { font-weight: 500; color: #5b7680; }
.form input:not([type=radio]):not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; font: 500 1rem var(--sans); color: var(--ink);
  padding: 13px 14px; border: 2px solid #c8dde2; border-radius: 10px; background: var(--sky); transition: border-color .15s; }
.form input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form input.invalid { border-color: var(--red); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.licences { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.licences legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.licences.invalid .chip span { border-color: var(--red); }
.form .chip { margin: 0; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border: 2px solid #c8dde2; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .88rem; background: var(--sky); }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.assurance { border: 2px solid var(--yellow); background: #fffbe6; border-radius: 12px; padding: 14px 14px 4px; margin: 0 0 16px; }
.assurance legend { font-weight: 800; font-size: .9rem; padding: 0 6px; }
.assurance legend small { font-weight: 500; color: #5b7680; }
.assurance.invalid, .decharge.invalid { border-color: var(--red); color: var(--red); }
.form .option { display: flex; gap: 10px; font-weight: 500; margin-bottom: 12px; cursor: pointer; }
.option input, .decharge input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.option strong { display: block; }
.form .decharge { display: flex; gap: 10px; font-weight: 500; font-size: .85rem; background: var(--white); border: 2px solid #f0c9a8; border-radius: 10px; padding: 10px; }
.merci__assur { background: #fff6d6; border-radius: 8px; padding: 10px; }
.consent { display: flex !important; gap: 10px; font-weight: 500 !important; font-size: .85rem !important; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--teal); }
.consent.invalid { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form__error { background: #fde8e8; color: #9b1c1c; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .9rem; }
.form button[disabled] { opacity: .6; cursor: wait; }

.merci { background: var(--white); color: var(--ink); border-radius: 18px; padding: 36px 28px; text-align: center; border-top: 8px solid var(--teal); }
.merci__titre { font-size: 3rem; color: var(--teal); margin: 0 0 6px; }
.merci__num { font-size: 1.3rem; }
.merci__num strong { background: var(--yellow); padding: 2px 10px; border-radius: 6px; }
.merci__demo { font-size: .85rem; color: #8a5a00; background: #fff6d6; border-radius: 8px; padding: 8px; }
.merci .script:last-child { font-size: 1.5rem; color: var(--teal); margin-bottom: 0; }

/* ---------- Infos ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--sky); border-radius: var(--radius); padding: 22px; border-left: 5px solid var(--teal); }
.card h3 { margin: 0 0 6px; text-transform: uppercase; font-size: .85rem; letter-spacing: .1em; color: var(--teal-d); }
.card p { margin: 0; font-weight: 700; }

/* ---------- Partenaires ---------- */
.partenaires { background: #f6f6f3; padding: 50px 16px; text-align: center; }
.partenaires__titre { letter-spacing: .35em; color: var(--teal); font-weight: 700; font-size: .85rem; margin: 0 0 18px; }
.partenaires__logos { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.partenaires__logos img { display: block; height: auto; width: auto; max-height: 90px; max-width: 170px; }
@media (max-width: 600px) { .partenaires__logos { gap: 22px 30px; } .partenaires__logos img { max-height: 64px; max-width: 130px; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--white); text-align: center; padding: 50px 16px 110px; }
.footer__orga { margin: 0 0 10px; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.footer__logo { width: min(340px, 80%); margin: 0 auto 26px; }
.footer__slogan { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 12px; }
.footer__tel { font-weight: 800; letter-spacing: .04em; }
.footer__tel a { color: var(--yellow); text-decoration: none; white-space: nowrap; }
.footer__small { opacity: .6; font-size: .8rem; }

/* Bouton fixe mobile */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap--form { grid-template-columns: 1fr; gap: 28px; }
  .parcours { grid-template-columns: 1fr; }
  .carte { height: 380px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero__photo { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero__photo > img:first-child { aspect-ratio: 16/10; object-position: 50% 25%; }
  .hero__sticker { width: 100px; left: auto; right: 6px; bottom: -26px; }
}
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav__burger { display: block; order: 3; }
  .nav__cta { margin-left: auto; padding: .7em 1em; font-size: .82rem; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .atouts { grid-template-columns: 1fr; }
  .niveaux__grid { grid-template-columns: 1fr; gap: 22px; }
  .niveau + .niveau { border-left: 0; border-top: 2px solid rgba(255,255,255,.3); padding-top: 22px; }
  .form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; justify-content: center; gap: .5em;
    background: var(--yellow); color: var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
    padding: 16px; border-radius: 999px; box-shadow: 0 5px 0 var(--yellow-d), 0 10px 26px rgba(0,0,0,.35); transition: transform .2s, opacity .2s; }
  .sticky-cta.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .hero__tour { letter-spacing: .2em; }
  .nav__titre .script { font-size: 1.25rem; }
  .nav__titre img { width: 78px; }
  .nav__emblem { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__cta { animation: none; }
}
.form__robot { min-height: 65px; margin: 4px 0 14px; }

/* ---------- Pages règlement / mentions légales ---------- */
.page-legale .nav__cta { margin-left: auto; animation: none; }
.legal { max-width: 820px; margin: 0 auto; padding: 36px 16px 70px; line-height: 1.65; }
.legal h1 { margin-top: 10px; }
.legal h1#confidentialite { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--teal-l); scroll-margin-top: 80px; }
.legal h2 { font-size: 1.12rem; font-weight: 800; color: var(--teal-d); margin: 30px 0 8px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal a { color: var(--teal-d); }
.legal__retour { font-size: .9rem; margin-bottom: 4px; }
.legal__maj { color: var(--teal); font-size: .88rem; margin-bottom: 8px; }
.footer__small a { color: inherit; }
.consent a { color: inherit; text-decoration: underline; }
