/* Festival Jeu & Écologie — V2 « plateau de jeu »
   Palette reprise de l'affiche, contrastes vérifiés (WCAG AA). */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* couleurs de l'affiche */
  --green-900: #0f5229;
  --green-800: #146b35;      /* titres, panneaux : 6,2:1 sur crème */
  --green-600: #1c9148;      /* grandes surfaces */
  --green-100: #e3f1dc;
  --blue-700: #236b82;       /* texte bleu : 5,7:1 */
  --blue-400: #56acc7;       /* rivière */
  --blue-100: #e6f3f7;
  --yellow-400: #ffd34d;     /* boutons */
  --yellow-200: #fade8a;
  --yellow-50: #fff8dc;
  --brick-600: #b5432a;
  --brick-100: #f8e3dc;
  --ink: #1e2529;
  --ink-soft: #4f5d64;       /* texte secondaire : 6,4:1 */
  --cream: #fbf8ef;
  --white: #ffffff;
  --line: #e4e6dc;

  --font-display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(30, 37, 41, .06), 0 1px 2px rgba(30, 37, 41, .05);
  --shadow: 0 14px 40px rgba(30, 37, 41, .10);
  --shadow-card: 0 18px 50px rgba(15, 82, 41, .18);
  --container: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-800); text-underline-offset: .18em; }
a:hover { color: var(--green-900); }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.05; color: var(--green-800); }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--inline { vertical-align: -.2em; margin-right: .35em; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 16px; color: var(--white); }

:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 14px;
  color: var(--blue-700);
  font: 800 .82rem/1.3 var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow-400);
  letter-spacing: .06em;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s;
  touch-action: manipulation;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { color: var(--ink); background: var(--yellow-400); box-shadow: 0 6px 0 #e0b42c, 0 12px 24px rgba(224, 180, 44, .35); }
.btn--primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 #e0b42c, 0 16px 28px rgba(224, 180, 44, .4); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #e0b42c, 0 6px 12px rgba(224, 180, 44, .3); }

.btn--ghost { color: var(--green-800); background: var(--white); border-color: rgba(20, 107, 53, .28); }
.btn--ghost:hover { color: var(--green-900); border-color: var(--green-800); }

.btn--dark { color: var(--white); background: var(--green-800); box-shadow: 0 6px 0 var(--green-900); }
.btn--dark:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-900); }
.btn--dark:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-900); }

.btn--ghost-dark { color: var(--green-900); background: transparent; border-color: var(--green-900); }
.btn--ghost-dark:hover { color: var(--green-900); background: rgba(255, 255, 255, .45); }

.link { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 700; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  width: min(var(--container), 100% - 28px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-800); text-decoration: none; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--green-800); background: var(--yellow-400);
}
.brand__mark .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.brand__text { font: 800 1.15rem/1 var(--font-display); }
.brand__text span { color: var(--brick-600); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  padding: 10px 14px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: .97rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--green-800); background: var(--green-100); }
.site-nav .btn { margin-left: 6px; box-shadow: 0 4px 0 #e0b42c; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--green-100); cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--green-800); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Rivière (motif de l'affiche) ---------- */
.river { position: absolute; left: 0; width: 100%; pointer-events: none; }
.river path { fill: none; stroke: var(--blue-400); stroke-linecap: round; }
.river--hero { bottom: 0; height: 70%; opacity: .5; }
.river--hero path { stroke-width: 46; }
.river--green { top: 0; height: 160px; opacity: .22; }
.river--green path { stroke-width: 34; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 110px;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--blue-100), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, var(--green-100), transparent 70%),
    var(--cream);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }
.h1-line { display: block; }
.hero__slogan {
  display: inline-block; margin: 18px 0 0; padding: 6px 16px;
  border-radius: 12px; transform: rotate(-1.5deg);
  color: var(--ink); background: var(--yellow-200);
  font: 700 clamp(1.2rem, 2.2vw, 1.55rem)/1.2 var(--font-display);
}
.hero__text { max-width: 560px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Affiche (à droite du titre, comme sur le site d'origine) */
.hero__poster { justify-self: center; width: min(100%, 440px); margin: 0; }
.hero__poster img { border: 8px solid var(--white); border-radius: 22px; box-shadow: var(--shadow-card); transform: rotate(2deg); }
.hero__poster figcaption { margin-top: 14px; text-align: center; }
.hero__poster figcaption a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 700; font-size: .95rem; }

/* Les 3 rendez-vous, en cartes à jouer sous le hero */
.hand { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 64px 0 0; padding: 0; list-style: none; }
.playcard {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 20px 20px 96px;
  border: 5px solid var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.playcard:nth-child(1) { transform: rotate(-1.5deg); }
.playcard:nth-child(2) { transform: translateY(-8px); }
.playcard:nth-child(3) { transform: rotate(1.5deg); }
.playcard:hover, .playcard:focus-within { box-shadow: 0 26px 60px rgba(15, 82, 41, .28); }
.playcard:nth-child(1):hover, .playcard:nth-child(1):focus-within { transform: rotate(-1.5deg) translateY(-6px); }
.playcard:nth-child(2):hover, .playcard:nth-child(2):focus-within { transform: translateY(-14px); }
.playcard:nth-child(3):hover, .playcard:nth-child(3):focus-within { transform: rotate(1.5deg) translateY(-6px); }

.playcard--blue { color: var(--white); background: var(--blue-700); }
.playcard--green { color: var(--white); background: var(--green-800); }
.playcard--yellow { color: var(--ink); background: var(--yellow-200); }

.playcard__icon {
  position: absolute; left: 20px; top: 22px;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.playcard--yellow .playcard__icon { background: rgba(20, 107, 53, .1); color: var(--green-800); }
.playcard__icon .icon { width: 30px; height: 30px; }
.playcard__date { margin: 0; font: 800 1.4rem/1.1 var(--font-display); }
.playcard__meta { margin: 2px 0 8px; font-size: .9rem; font-weight: 600; opacity: .92; }
.playcard__title { margin-bottom: 4px; color: inherit; font-size: 1.12rem; line-height: 1.15; }
.playcard__who { font-size: .9rem; opacity: .92; }
.playcard__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  align-self: flex-start; margin-top: auto; min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  color: var(--ink); background: var(--white);
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.playcard__who { margin-bottom: 12px; }
.playcard__link:hover { color: var(--ink); background: var(--yellow-400); }
.playcard--green .playcard__link { background: var(--yellow-400); }
.playcard--green .playcard__link:hover { background: var(--white); }
.playcard--yellow .playcard__link { color: var(--white); background: var(--green-800); }
.playcard--yellow .playcard__link:hover { color: var(--white); background: var(--green-900); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section--river { background: var(--blue-100); }
.section--cream { background: var(--cream); }
.section--green { overflow: hidden; color: var(--white); background: var(--green-800); }
#infos, #organisateurs { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head > p:last-child { color: var(--ink-soft); font-size: 1.1rem; }
.section-head--light h2 { color: var(--white); }
.section-head--light .eyebrow { color: var(--yellow-200); }
.section-head--light > p:last-child { color: #dcefd5; }

/* ---------- Onglets programme ---------- */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px; padding: 6px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.tab {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 56px; padding: 8px 20px;
  border: 0; border-radius: 16px;
  color: var(--ink-soft); background: transparent;
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--green-800); background: var(--green-100); }
.tab[aria-selected="true"] { color: var(--white); background: var(--green-800); }
.tab__day { font: 800 1.1rem/1.1 var(--font-display); }
.tab__label { font-size: .85rem; font-weight: 600; }

.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 48px; }
.js .panel + .panel { margin-top: 0; }
.panel__title { color: var(--green-800); font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.panel__intro { margin: 8px 0 28px; color: var(--ink-soft); font-size: 1.08rem; }
.panel__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.panel--vendredi { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

/* Parcours de la journée : la rivière relie les étapes */
.parcours { position: relative; margin: 0; padding: 0; list-style: none; }
.parcours::before {
  content: ""; position: absolute; top: 14px; bottom: 14px; left: 82px; width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='48' viewBox='0 0 16 48'%3E%3Cpath d='M8 0 C 15 12, 15 12, 8 24 S 1 36, 8 48' fill='none' stroke='%2356acc7' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y center / 16px 48px;
}
.step { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 40px; padding: 12px 0; }
.step::before {
  content: ""; position: absolute; left: 82px; top: 18px;
  width: 16px; height: 16px; border: 4px solid var(--white); border-radius: 50%;
  background: var(--green-800); box-shadow: 0 0 0 2px var(--green-800);
}
.step--pause::before { background: var(--yellow-400); box-shadow: 0 0 0 2px #e0b42c; }
.step__time { padding-top: 10px; color: var(--green-800); font: 800 1.05rem/1.2 var(--font-display); text-align: right; }
.step > div {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.step > div > p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.step > div > .step__title { color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.step--pause > div { background: var(--yellow-50); }

/* Mini-cartes d'ateliers (boîtes de jeu) */
.minigames { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 14px 0 4px; padding: 0; list-style: none; }
.minigame {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 74px; padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-size: .9rem; line-height: 1.3;
}
.minigame::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green-600); }
.minigame strong { color: var(--ink); font-size: .98rem; }
.minigame span { color: var(--ink-soft); }
.minigame--link { padding: 0; border-color: rgba(20, 107, 53, .35); background: var(--green-100); }
.minigame--link a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 12px 12px 16px; border-radius: 12px; color: inherit; text-decoration: none; }
.minigame--link em { display: inline-flex; align-items: center; gap: .3em; margin-top: 4px; color: var(--green-800); font-style: normal; font-weight: 700; }
.minigame--link a:hover { background: #d5ebcb; }

/* Encart d'inscription (collant sur grand écran) */
.register {
  position: sticky; top: 100px;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--green-800);
  box-shadow: var(--shadow-card);
}
.register h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 14px; }
.register__badge {
  display: inline-flex; align-items: center; gap: .4em;
  margin-bottom: 10px; padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink); background: var(--yellow-400);
  font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
}
.register .checks { margin-bottom: 22px; }
.register .checks li { color: #e3f1dc; }
.register .checks .icon { color: var(--yellow-400); }
.register__links { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.register__links a { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; color: var(--white); font-weight: 600; }
.register__links a:hover { color: var(--yellow-200); }

/* Cartes de jeu (Jeudi, Samedi) */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.games--single { grid-template-columns: minmax(0, 760px); }
.game {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-top: 8px solid var(--green-600);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.game:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game--blue { border-top-color: var(--blue-700); }
.game--brick { border-top-color: var(--brick-600); }
.games--single .game { display: grid; grid-template-columns: 300px 1fr; }
.game__cover { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-100); }
.games--single .game__cover { aspect-ratio: auto; height: 100%; }
.game__cover img { width: 100%; height: 100%; object-fit: cover; }
.game__body { padding: 20px 22px 22px; }
.game__by { margin-bottom: 4px; color: var(--blue-700); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.game__title { margin-bottom: 12px; color: var(--ink); font-size: 1.35rem; }
.game__body > p:not(.game__by) { color: var(--ink-soft); font-size: .98rem; }
.game__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.game__more { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-weight: 700; }

.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.specs li {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green-800); background: var(--green-100);
  font-size: .85rem; font-weight: 700;
}

.game__fiche summary, .fiche summary { list-style: none; cursor: pointer; }
.game__fiche summary::-webkit-details-marker, .fiche summary::-webkit-details-marker { display: none; }
.game__fiche summary { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; color: var(--green-800); font-weight: 700; }
.game__fiche[open] summary .icon, .fiche[open] summary .icon { transform: rotate(180deg); }
.game__fiche p { color: var(--ink-soft); font-size: .95rem; }

/* Fiches détaillées */
.fiches { margin-top: 28px; }
.fiches__note { color: var(--ink-soft); font-size: .95rem; }
.fiche { margin-top: 12px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.fiche summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 14px 22px; font-weight: 700; }
.fiche summary small { display: block; color: var(--ink-soft); font-weight: 600; }
.fiche summary .icon { width: 22px; height: 22px; color: var(--green-800); transition: transform .2s; }
.fiche[open] { box-shadow: var(--shadow); }
.fiche__body { padding: 0 22px 22px; color: var(--ink-soft); }
.fiche__body--media { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr); gap: 24px; align-items: start; }
.fiche__body img { border-radius: var(--radius-sm); }
.fiche__body a { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; }

/* Listes à coches */
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { margin-top: .2em; color: var(--green-600); stroke-width: 3; }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.info { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.info--highlight { border-color: #f0d27a; background: var(--yellow-50); }
.info__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; color: var(--white); background: var(--green-800); }
.info__icon .icon { width: 24px; height: 24px; }
.info h3 { margin-bottom: 12px; }
.info p, .info dd { color: var(--ink-soft); font-size: .97rem; }
.info dl { margin: 0; }
.info dt { color: var(--ink); font-weight: 700; font-size: .97rem; }
.info dd { margin: 0 0 10px; }
.info .btn { margin-top: 6px; }

/* ---------- Le festival ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.pillars { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.pillars li { display: flex; gap: 16px; }
.pillar__icon { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; color: var(--green-800); background: var(--green-100); }
.pillar__icon .icon { width: 26px; height: 26px; }
.pillars h3 { margin-bottom: 4px; color: var(--ink); font-size: 1.2rem; }
.pillars p { color: var(--ink-soft); }
.why { padding: 24px; border-radius: var(--radius); background: var(--blue-100); }
.why h3 { margin-bottom: 14px; color: var(--blue-700); }

.about .why { position: sticky; top: 110px; margin-top: 64px; }

/* ---------- Organisateurs et partenaires ---------- */
.orgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.org { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.org img { width: 180px; height: 80px; margin-bottom: 18px; object-fit: contain; object-position: left center; }
.org h3 { margin-bottom: 8px; color: var(--ink); }
.org p { flex: 1; color: var(--ink-soft); font-size: .97rem; }

.partners { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.partners h3 { margin-bottom: 20px; color: var(--ink); }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.partners__grid > * { display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.partners__grid a:hover { border-color: var(--green-600); box-shadow: var(--shadow-sm); }
.partners__grid img { width: 100%; max-width: 150px; height: 80px; object-fit: contain; }
.partners__ecosystem { max-width: 820px; margin-top: 24px; color: var(--ink-soft); }
.partners__funding { max-width: 820px; color: var(--ink-soft); font-size: .85rem; }

/* ---------- Contribuer ---------- */
.ways { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ways li { padding: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); background: rgba(255, 255, 255, .07); }
.ways .icon { width: 30px; height: 30px; margin-bottom: 14px; color: var(--yellow-200); }
.ways h3 { margin-bottom: 6px; color: var(--white); }
.ways p { color: #dcefd5; font-size: .97rem; }
.volunteer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 26px; padding: 26px 28px;
  border-radius: var(--radius-lg);
  color: var(--ink); background: var(--white);
}
.volunteer h3 { margin-bottom: 4px; font-size: 1.6rem; }
.volunteer p { color: var(--ink-soft); }

/* ---------- Appel final ---------- */
.final { padding: 88px 0; text-align: center; background: var(--yellow-400); }
.final .eyebrow { justify-content: center; color: var(--green-900); }
.final h2 { margin-bottom: 30px; color: var(--green-900); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 34px 0; color: #a9b4ba; background: var(--ink); }
.site-footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.site-footer__brand .brand__mark { width: 34px; height: 34px; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.site-footer a, .site-footer__cookies { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
.site-footer__cookies { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Barre mobile + cookies ---------- */
.sticky-cta {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 239, .95); backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(30, 37, 41, .08);
  transform: translateY(110%); transition: transform .25s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }

.consent {
  position: fixed; z-index: 60; left: 16px; bottom: 16px;
  width: min(440px, 100% - 32px); padding: 20px;
  border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  font-size: .92rem;
}
.consent p { margin-bottom: 14px; color: var(--ink-soft); }
.consent__actions { display: flex; gap: 10px; }
.consent__actions .btn { flex: 1; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--vendredi { grid-template-columns: minmax(0, 1fr); }
  .register { position: static; order: -1; }
  .register .checks { display: none; }
}

@media (max-width: 980px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); right: 0;
    display: none; flex-direction: column; align-items: stretch;
    min-width: 250px; padding: 12px;
    border-radius: 24px; background: var(--white); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { margin: 6px 0 0; }

  .hero { padding: 120px 0 72px; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .about .why { position: static; margin-top: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__poster { width: min(100%, 360px); }
  .hand { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .orgs, .games { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 72px 0; }
  .brand__text { font-size: 1.05rem; }

  .hero__actions .btn { width: 100%; }

  .hero__poster { width: min(100%, 300px); }
  .playcard { padding: 18px 18px 18px 88px; border-width: 4px; }
  .playcard__icon { left: 16px; top: 20px; width: 54px; height: 54px; }
  .playcard__date { font-size: 1.3rem; }

  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tab { align-items: center; padding: 8px 6px; text-align: center; }
  .tab__day { font-size: 1rem; }
  .tab__label { font-size: .78rem; }

  /* l'heure passe au-dessus de chaque étape pour libérer de la largeur */
  .parcours::before { left: 4px; top: 8px; }
  .step { grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 10px 0; }
  .step::before { left: 4px; top: 12px; }
  .step__time { grid-column: 2; padding-top: 6px; text-align: left; font-size: 1rem; }
  .step > div { grid-column: 2; padding: 12px 14px; }
  .minigames { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .minigame { padding: 10px 10px 10px 14px; }
  .minigame.minigame--link { padding: 0; }
  .minigame--link a { padding: 10px 10px 10px 14px; }

  .games, .orgs, .infos, .ways { grid-template-columns: 1fr; }
  .games--single .game { grid-template-columns: 1fr; }
  .games--single .game__cover { aspect-ratio: 16 / 9; }
  .fiche__body--media { grid-template-columns: 1fr; }

  .volunteer { padding: 22px; }
  .volunteer .btn, .final__actions .btn, .panel__cta .btn { width: 100%; }
  .site-footer { padding-bottom: 110px; }
}

@media (min-width: 981px) {
  .sticky-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .btn:hover, .btn:active, .game:hover { transform: none; }
}
