/* ============ Couleurs de l'affiche ============ */
:root {
  --vert-fonce: #12351f;
  --vert: #2f9e3a;
  --vert-clair: #dff0d5;
  --orange: #f26a10;
  --creme: #fbf5e6;
  --papier: #f3ead2;
  --blanc: #fffdf7;
  --titre: "Baloo 2", system-ui, sans-serif;
  --texte: "Nunito", system-ui, sans-serif;
  --main: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.55;
  color: var(--vert-fonce);
  background: var(--creme);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); line-height: 1; margin: 0; }
h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; margin-bottom: .3em; }
h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: .4em; }
p { margin: 0 0 1em; }

section { padding: 72px 0; }
.contenu { width: min(100% - 32px, 860px); margin-inline: auto; }
.contenu.large { width: min(100% - 32px, 1100px); }
.chapo { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.6em; }
.manuscrit { font-family: var(--main); font-size: 1.5em; font-weight: 700; color: var(--orange); line-height: 1; }
.manuscrit.clair { color: #ffb37a; }
.manuscrit.grand { font-size: 2.2rem; color: var(--vert-fonce); transform: rotate(-2deg); margin-top: .6em; }
.penche-g { transform: rotate(-1.5deg); }
.penche-d { transform: rotate(1.2deg); }

/* ============ Barre du haut ============ */
.barre {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 16px;
  background: var(--creme);
  border-bottom: 3px solid var(--vert-fonce);
}
.barre-nom { font-family: var(--titre); font-weight: 800; font-size: 1.4rem; text-decoration: none; text-transform: uppercase; }
.barre-club { display: flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--main); font-size: 1.3rem; font-weight: 700; margin-left: -10px; }
.barre-club img { height: 44px; width: auto; background: #fff; border: 2px solid var(--vert-fonce); border-radius: 8px; padding: 2px 4px; transform: rotate(-2deg); }
.barre nav { display: flex; gap: 18px; margin-left: auto; }
.barre nav a { text-decoration: none; font-weight: 800; font-size: .95rem; }
.barre nav a:hover { color: var(--orange); }
@media (max-width: 760px) {
  .barre nav { display: none; }
  .barre .bouton { margin-left: auto; }
}

/* ============ Boutons ============ */
.bouton {
  display: inline-block;
  font-family: var(--titre); font-weight: 800; font-size: 1.15rem;
  text-decoration: none; text-align: center;
  color: #fff; background: var(--orange);
  padding: .45em 1.1em .35em;
  border: 3px solid var(--vert-fonce); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--vert-fonce);
  transition: transform .1s, box-shadow .1s;
}
.bouton:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--vert-fonce); }
.bouton.gros { font-size: 1.5rem; }
.bouton.petit { font-size: 1rem; box-shadow: 3px 3px 0 var(--vert-fonce); }
.bouton.contour { background: var(--blanc); color: var(--vert-fonce); }
.bouton.clair { border-color: var(--creme); box-shadow: 4px 4px 0 var(--creme); }
.bouton.bientot { background: #cfc8b4; color: var(--vert-fonce); cursor: default; pointer-events: none; box-shadow: none; }
.bouton.bientot::after, a.bientot:not(.bouton)::after { content: " (bientôt)"; font-family: var(--main); font-size: 1.1em; }
a.bientot:not(.bouton) { opacity: .6; pointer-events: none; text-decoration: none; }
.lien-fleche { font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { color: var(--orange); }

/* ============ Hero ============ */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center;
  width: min(100% - 32px, 1100px); margin-inline: auto;
  padding: 48px 0 24px;
}
.surtitre { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; margin-bottom: .8em; }
.h1-eki { display: block; font-size: clamp(4.5rem, 15vw, 9rem); font-weight: 800; text-transform: uppercase; line-height: .82; }
.h1-frange { display: block; font-size: clamp(1.7rem, 5.2vw, 3.1rem); font-weight: 800; text-transform: uppercase; color: var(--orange); margin-top: .15em; }
.accroche { font-size: 1.3rem; margin: 1em 0 1.2em; }
.accroche strong { color: var(--orange); }

.dossard {
  position: relative; display: inline-block;
  background: var(--blanc); border: 3px solid var(--vert-fonce); border-radius: 10px;
  padding: 22px 26px 14px; margin-bottom: 26px;
  transform: rotate(-2deg);
  box-shadow: 5px 5px 0 var(--vert);
}
.dossard-trou { position: absolute; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--vert-fonce); }
.dossard-trou:first-child { left: 10px; } .dossard-trou:nth-child(2) { right: 10px; }
.dossard p { margin: 0; }
.dossard-jour { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.dossard-date { font-family: var(--titre); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; color: var(--orange); text-transform: uppercase; }
.dossard-lieu { font-weight: 800; font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.hero-image { position: relative; }
.hero-image img { /* cadre "photo scotchée" en attendant le logo détouré */
  background: #fff; border: 3px solid var(--vert-fonce); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--vert); transform: rotate(2deg);
}
.hero-image::before {
  content: ""; position: absolute; top: -14px; left: 22%; width: 110px; height: 28px; z-index: 1;
  background: rgba(47,158,58,.55); transform: rotate(-4deg);
}
.pastille {
  position: absolute; top: -6%; right: 2%; z-index: 1;
  font-family: var(--titre); font-weight: 800; font-size: 1.25rem; color: #fff;
  background: var(--orange); border: 3px solid var(--vert-fonce); border-radius: 999px;
  padding: .3em 1em .2em; transform: rotate(6deg);
}
.annotation { font-family: var(--main); font-size: 1.5rem; font-weight: 700; text-align: center; transform: rotate(-3deg); margin: 14px 0 0; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-image { order: -1; max-width: 420px; margin-inline: auto; }
  .pastille { top: -4px; font-size: 1rem; }
}

.collines { display: block; width: 100%; height: clamp(50px, 9vw, 120px); margin-bottom: -1px; }

/* ============ Bandes de couleur ============ */
.bande-verte { background: var(--vert-fonce); color: var(--creme); }
.bande-orange { background: var(--orange); color: var(--vert-fonce); }
.bande-orange h2 { color: #fff; }
.fond-papier {
  background-color: var(--papier);
  background-image: radial-gradient(circle at 20% 30%, transparent 0 60px, rgba(18,53,31,.07) 61px 62px, transparent 63px 110px, rgba(18,53,31,.07) 111px 112px, transparent 113px 170px, rgba(18,53,31,.07) 171px 172px, transparent 173px);
  background-size: 520px 420px;
}

/* ============ Concept ============ */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 2em; }
.chiffre { background: var(--creme); color: var(--vert-fonce); border-radius: 14px; padding: 18px 12px 12px; text-align: center; box-shadow: 5px 5px 0 var(--vert); }
.chiffre b { display: block; font-family: var(--titre); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; color: var(--orange); }
.chiffre span { font-weight: 800; font-size: .95rem; }
@media (max-width: 600px) { .chiffres { grid-template-columns: 1fr; } }

/* ============ Cartes ============ */
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.cartes.trois { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.carte {
  position: relative;
  background: var(--blanc); border: 3px solid var(--vert-fonce); border-radius: 16px;
  padding: 30px 24px 24px;
  box-shadow: 6px 6px 0 var(--vert-fonce);
}
.carte.scotch::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px;
  background: rgba(242,106,16,.55); transform: translateX(-50%) rotate(-3deg);
}
.carte { color: var(--vert-fonce); }
.carte a:not(.bouton) { font-weight: 800; }
.prix { line-height: 1.2; }
.prix b { font-family: var(--titre); font-size: 2.4rem; line-height: 1; color: var(--orange); }
.prix span { font-size: .95rem; }
.prix .quand { display: block; font-family: var(--titre); font-weight: 800; font-size: 1.15rem; margin-bottom: .1em; }
.prix:has(+ ul) { margin-bottom: .2em; }
.petit-texte { font-size: .9rem; opacity: .8; }
.carte.papiers { margin-top: 34px; }
.carte.papiers .bouton { margin-top: .4em; }
.carte ul { padding-left: 1.1em; margin: 0 0 1em; }
.carte li { margin-bottom: .25em; }
.carte li::marker { color: var(--orange); }
.carte p:last-child { margin-bottom: 0; }
.note { font-family: var(--main); font-size: 1.35rem; line-height: 1.15; color: var(--vert); font-weight: 700; }
.etiquette { display: inline-block; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; padding: .2em .8em; border-radius: 999px; margin-bottom: .8em; }
.etiquette.orange { background: var(--orange); } .etiquette.vert { background: var(--vert); }
@media (max-width: 760px) { .cartes, .cartes.trois { grid-template-columns: 1fr; } }

/* ============ Parcours ============ */
.onglets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.onglets button {
  font-family: var(--titre); font-weight: 800; font-size: 1.1rem; color: var(--vert-fonce);
  background: var(--blanc); border: 3px solid var(--vert-fonce); border-radius: 999px;
  padding: .3em 1em .2em; cursor: pointer;
}
.onglets button[aria-selected="true"] { background: var(--vert-fonce); color: var(--creme); transform: rotate(-2deg); }
.parcours-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
#carte { min-height: 460px; border: 3px solid var(--vert-fonce); border-radius: 16px; box-shadow: 6px 6px 0 var(--vert-fonce); background: var(--vert-clair); z-index: 0; }
.parcours-infos { background: var(--blanc); border: 3px solid var(--vert-fonce); border-radius: 16px; padding: 24px; }
.mesures { display: flex; gap: 28px; margin-bottom: 14px; }
.mesures b { display: block; font-family: var(--titre); font-size: 2.2rem; line-height: 1; color: var(--orange); }
.mesures span { font-weight: 800; font-size: .85rem; }
#profil { margin-bottom: 18px; }
#profil svg { display: block; width: 100%; height: auto; overflow: visible; }
#profil text { font-family: var(--texte); font-size: 11px; font-weight: 800; fill: var(--vert-fonce); }
.depart-icone { font-family: var(--titre); font-weight: 800; font-size: 12px; color: #fff; background: var(--vert-fonce); border: 2px solid #fff; border-radius: 999px; text-align: center; line-height: 22px; }
@media (max-width: 820px) { .parcours-grille { grid-template-columns: 1fr; } #carte { min-height: 340px; } }

/* ============ Challenge ============ */
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 1.6em; }
.equation .bloc { font-family: var(--titre); font-weight: 800; font-size: 1.25rem; background: var(--creme); border: 3px solid var(--vert-fonce); border-radius: 12px; padding: .4em .8em .3em; }
.equation .bloc:nth-child(1) { transform: rotate(-2deg); } .equation .bloc:nth-child(3) { transform: rotate(1.5deg); }
.equation .bloc.final { background: var(--vert-fonce); color: var(--creme); transform: rotate(-1deg); }
.equation .signe { font-family: var(--titre); font-weight: 800; font-size: 2rem; color: #fff; }

.classement { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 1.2em; }
.classement .numero { font-family: var(--titre); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--orange); background: var(--creme); border: 3px solid var(--vert-fonce); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; margin: 0; padding-top: 4px; transform: rotate(-4deg); }
.classement h3 { color: #fff; }
.classement p { margin: 0; }
.classement + .equation { margin-left: 68px; }
@media (max-width: 600px) { .classement + .equation { margin-left: 0; } }

/* ============ Programme ============ */
.frise { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 4px dashed var(--vert); }
.frise li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: start; padding: 0 0 26px 22px; }
.frise li::before { content: ""; position: absolute; left: -15px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 3px solid var(--vert-fonce); }
.frise .heure { font-family: var(--titre); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--orange); }
.frise .heure.inconnue { font-family: var(--main); font-size: 1.4rem; line-height: 1.05; color: var(--vert); padding-top: 4px; }
.frise h3 { font-size: 1.4rem; margin-bottom: .15em; }
.frise p { margin: 0; }
@media (max-width: 520px) { .frise li { grid-template-columns: 1fr; gap: 2px; } }

/* ============ Partenaires ============ */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.logo { display: grid; place-items: center; min-height: 110px; padding: 14px; background: var(--blanc); border: 3px solid var(--vert-fonce); border-radius: 14px; text-decoration: none; font-weight: 800; text-align: center; }
.logo img { max-height: 80px; object-fit: contain; }
.logo.vide { border-style: dashed; background: transparent; font-family: var(--main); font-size: 1.4rem; color: var(--vert); }
.logo:nth-child(odd) { transform: rotate(-1deg); } .logo:nth-child(even) { transform: rotate(1deg); }

.resultats { text-align: center; }

/* ============ Pied de page ============ */
footer { background: var(--papier); border-top: 3px solid var(--vert-fonce); padding: 40px 0; font-size: 1rem; }
.pied { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .4em; font-weight: 800; }
.pied-titre { font-family: var(--titre); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.pied-titre span { color: var(--orange); }
.pied-logo { display: inline-block; background: #fff; border: 3px solid var(--vert-fonce); border-radius: 14px; padding: 8px 14px; box-shadow: 4px 4px 0 var(--vert); transform: rotate(-1.5deg); }
.pied-logo img { height: 90px; width: auto; }
a.pied-logo.bientot::after, a.barre-club.bientot::after { content: none; }
@media (max-width: 700px) { .pied { grid-template-columns: 1fr; } }

/* ============ Page règlement ============ */
.page-simple { padding: 48px 0 72px; }
.page-simple h1 { font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 800; margin-bottom: .4em; }
.page-simple h2 { font-size: 1.7rem; margin-top: 1.6em; }
.page-simple h3 { font-size: 1.25rem; margin-top: 1.2em; }
.page-simple li { margin-bottom: .3em; }
.page-simple li::marker { color: var(--orange); }
.page-simple table { border-collapse: collapse; width: 100%; margin-bottom: 1em; background: var(--blanc); }
.page-simple th, .page-simple td { border: 2px solid var(--vert-fonce); padding: .4em .7em; text-align: left; }
.page-simple th { background: var(--vert-fonce); color: var(--creme); }
.encart { background: var(--blanc); border: 3px solid var(--vert-fonce); border-radius: 16px; padding: 20px 24px; box-shadow: 6px 6px 0 var(--vert); margin-bottom: 2em; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.encart p { margin: 0; flex: 1 1 260px; }
.page-simple .vide { color: var(--vert); font-family: var(--main); font-size: 1.4rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
