/* =========================================================
   Projet Dédale — design system 2026 (mobile-first)
   Palette marque : extraite du logo (ardoise + turquoise)
   Thèmes aventure : extraits des affiches
   ========================================================= */

:root {
  /* Marque (logo) */
  --ink: #141b24;          /* fond profond, dérivé de l'ardoise du logo */
  --slate: #323d4b;        /* ardoise du logo */
  --slate-2: #24303d;
  --teal: #0297b6;         /* turquoise du logo */
  --teal-bright: #29c0e0;  /* turquoise éclairci pour les boutons (contraste) */
  --teal-deep: #15748d;
  --paper: #f3f6f8;
  --text: #e8eef2;
  --text-muted: #a9b6c2;
  --gold: #f5c542;         /* étoiles d'avis */

  /* Thème actif (surchargé par [data-theme]) */
  --bg: var(--ink);
  --surface: var(--slate-2);
  --accent: var(--teal-bright);
  --on-accent: #06141b;
  --title-font: 'Rubik', system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  --max: 1180px;
}

/* ---------- Thèmes par aventure ---------- */
/* Sabotage : affiche marine + ruban jaune "Sabotage" */
[data-theme="sabotage"] {
  --bg: #161d33;
  --surface: #222c47;
  --accent: #f2c628;
  --on-accent: #1a1608;
  --title-font: 'Bangers', 'Rubik', sans-serif;
}
/* Dark Tattoo : noir violacé + carmin + crème */
[data-theme="dark-tattoo"] {
  --bg: #1d1220;      /* éclairci (avant #0b060d) */
  --surface: #2f2234; /* éclairci (avant #1e1622) */
  --accent: #d0435f;
  --on-accent: #fff6ef;
  --text: #fdf4eb;
  --text-muted: #c9b8b3;
  --title-font: 'Oleo Script', 'Rubik', serif;
}
/* La Pierre Maudite : brun catacombe + rouge sang de bœuf */
[data-theme="pierre"] {
  --bg: #150908;
  --surface: #2a1714;
  --accent: #d2553f;
  --on-accent: #fff4ee;
  --text: #f6ebe6;
  --text-muted: #c8b1a9;
  --title-font: 'Bangers', 'Rubik', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 84px; /* place pour la barre de réservation mobile */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6em;
}
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 'Rubik', sans-serif; text-decoration: none; letter-spacing: .02em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1.5px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.97); }

/* ---------- En-tête : pleine largeur, fondu dans le décor ----------
   Transparent en haut de page (on voit le fond de la page derrière),
   puis couleur de la page + ombre légère quand on fait défiler. */
.site-header {
  position: sticky; top: 0; z-index: 50; margin-bottom: -64px;
  background: transparent;
  transition: background .12s linear, box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
  background: var(--bg); /* opaque : le texte ne se voit plus à travers */
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .9);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* place laissée sous l'en-tête (64 px) */
.hero { padding-top: 92px !important; }
.legacy, .adv-hero .wrap, main > .section:first-child:not(.hero) { padding-top: 86px !important; }
.brand img { height: 35px; width: 35px; border-radius: 50%; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand { gap: 12px; color: var(--text); text-decoration: none; }
.brand-name { display: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 10px 8px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: rgba(255, 255, 255, .08); }
.site-nav .nav-hide-sm { display: inline-flex; } /* raccourcis visibles aussi sur smartphone */
@media (min-width: 768px) { .site-nav a { font-size: .95rem; padding: 10px 10px; } }
.site-nav .btn { min-height: 40px; padding: 0 16px; font-size: .9rem; display: none; }
.lang img { width: 26px; height: auto; border-radius: 3px; }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; overflow: hidden; padding: 28px 0 56px;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(2, 151, 182, .35), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(21, 116, 141, .30), transparent 60%),
    var(--ink);
}
.hero .wrap { display: grid; gap: 34px; }
.hero h1 span { color: var(--teal-bright); }
.hero-lead { font-size: 1.08rem; color: var(--text-muted); max-width: 34em; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 14px 8px 10px; border-radius: 999px; font-size: .92rem; margin-bottom: 18px;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.rating-chip strong { font-size: 1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-ctas .btn { flex: 1 1 160px; }

/* Éventail d'affiches (effet profondeur) */
.poster-fan { position: relative; height: 330px; perspective: 1200px; margin: 0 auto; width: 100%; max-width: 420px; }
.poster-fan a {
  position: absolute; top: 10px; left: 50%; width: 46%; aspect-ratio: 3/4;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), z-index 0s .1s;
  outline: 1px solid rgba(255, 255, 255, .12);
}
.poster-fan img { width: 100%; height: 100%; object-fit: cover; }
.poster-fan a:nth-child(1) { transform: translateX(-112%) rotate(-9deg) translateY(26px); z-index: 1; }
.poster-fan a:nth-child(2) { transform: translateX(-50%) translateY(0); z-index: 3; }
.poster-fan a:nth-child(3) { transform: translateX(12%) rotate(9deg) translateY(26px); z-index: 2; }
.poster-fan a:hover, .poster-fan a:focus-visible { z-index: 5; }
.poster-fan a:nth-child(1):hover { transform: translateX(-112%) rotate(-4deg) translateY(4px) scale(1.04); }
.poster-fan a:nth-child(2):hover { transform: translateX(-50%) translateY(-10px) scale(1.04); }
.poster-fan a:nth-child(3):hover { transform: translateX(12%) rotate(4deg) translateY(4px) scale(1.04); }

.hero-logo { justify-self: center; width: min(78%, 300px); height: auto; margin-bottom: -6px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }

/* ---------- Bandeau récompenses (défilant) ---------- */
.proof { background: var(--slate-2); border-block: 1px solid rgba(255, 255, 255, .06); }
.marquee {
  overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; list-style: none; margin: 0; padding: 0; animation: defile 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-50% - 7px)); } }
.proof-stars { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 197, 66, .14); color: var(--gold); font-weight: 800; font-size: .82rem; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
.proof-list {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px var(--gutter); margin: 0 calc(var(--gutter) * -1); list-style: none;
  scrollbar-width: none;
}
.proof-list::-webkit-scrollbar { display: none; }
.proof-item {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px 16px 10px 10px; max-width: 290px;
}
.proof-item img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.proof-item p { margin: 0; font-size: .88rem; line-height: 1.35; }
.proof-item strong { display: block; font-size: .95rem; }

/* ---------- Cartes aventures ---------- */
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--text-muted); max-width: 40em; }
.adventures {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.adventures::-webkit-scrollbar { display: none; }
.adv-card {
  flex: 0 0 84%; scroll-snap-align: center; position: relative;
  background: var(--surface); color: var(--text); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.adv-media { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.adv-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.adv-card:hover .adv-media img { transform: scale(1.04); }
.adv-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 72%, var(--surface) 99%);
}
.adv-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .78rem;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.adv-body { padding: 0 18px 20px; margin-top: -22px; position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.adv-body h3 { font-family: 'Bangers', 'Rubik', sans-serif; font-weight: 400; font-size: 2.3rem; letter-spacing: .02em; margin-bottom: .2em; color: var(--text); }
.adv-body h3 a { color: inherit; text-decoration: none; }
.adv-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* carte entièrement cliquable */
.adv-pitch { color: var(--text-muted); font-size: .98rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 16px; }
.facts li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 6px 11px;
}
.facts svg { width: 16px; height: 16px; color: var(--accent); }
.adv-actions { display: flex; gap: 10px; margin-top: auto; position: relative; z-index: 2; }
.adv-actions .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: .95rem; }
.warning { font-size: .82rem; color: var(--accent); font-weight: 700; margin: -6px 0 12px; }
.swipe-hint { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Avis ---------- */
.reviews { background: linear-gradient(180deg, var(--ink), var(--slate-2)); }
.score-card {
  display: grid; gap: 18px; align-items: center; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 22px;
}
.score-big { display: flex; align-items: center; gap: 16px; }
.score-big .num { font-size: 3.6rem; font-weight: 800; line-height: 1; }
.score-big .stars { font-size: 1.4rem; display: block; }
.score-big small { color: var(--text-muted); }
.score-card .btn { width: 100%; }
.review-widget { min-height: 120px; }
.reviews.section { padding: 40px 0; }
.review-note { font-size: .9rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Contenu éditorial / accordéons ---------- */
.prose { max-width: 46em; }
.prose .strong { font-weight: 700; color: var(--text); }
.acc { border-top: 1px solid rgba(255, 255, 255, .1); }
.acc details { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 700; font-size: 1.05rem; min-height: 56px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc .acc-body { padding: 0 2px 18px; color: var(--text-muted); }
.acc .acc-body a { color: var(--accent); }
.acc summary h3 { margin: 0; font-size: inherit; font-weight: inherit; }

.rules { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.rule { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; }
.rule h3 { font-size: 1rem; color: var(--accent); margin-bottom: .35em; }
.rule p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- Page aventure ---------- */
.adv-hero { position: relative; padding: 0 0 36px; overflow: hidden; }
.adv-hero-bg { position: absolute; inset: 0; z-index: 0; }
.adv-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.1); }
.adv-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--bg) 92%); }
.adv-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
.adv-hero .wrap > * { min-width: 0; }
.adv-hero h1 { font-family: var(--title-font); font-weight: 400; font-size: clamp(3.2rem, 15vw, 6rem); letter-spacing: .03em; margin-bottom: .1em; }
.adv-hero h1 small { display: block; font-family: 'Rubik', sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.adv-hook { font-size: 1.25rem; font-weight: 600; }
.adv-poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: min(92%, 360px); transform: rotate(-2deg); justify-self: center; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 18px 0; }
.fact-grid li { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 359px) { .fact-grid li { padding: 10px; gap: 8px; } }
.fact-grid svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.fact-grid span { font-size: .78rem; color: var(--text-muted); display: block; line-height: 1.2; }
.fact-grid strong { display: block; font-size: 1rem; line-height: 1.25; }
.brief {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 26px 22px 22px;
  border-left: 5px solid var(--accent);
}
.brief::before {
  content: "Ordre de mission"; position: absolute; top: -12px; left: 18px; background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.brief[data-label]::before { content: attr(data-label); }
.tags { color: var(--accent); font-weight: 600; font-size: .95rem; }
.access { display: grid; gap: 16px; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.access-list li { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; }
.access-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.crumbs { font-size: .85rem; color: var(--text-muted); padding-top: 14px; }
.crumbs a { color: var(--text-muted); }

/* ---------- Barre de réservation (mobile) ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.book-bar.is-visible { transform: none; }
.book-bar .btn { flex: 1; min-height: 50px; min-width: 0; padding: 0 16px; }
.book-bar .btn-primary { overflow: hidden; text-overflow: ellipsis; }
.book-bar .btn-ghost { flex: 0 0 auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0c1117; padding: 48px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 14px; } /* +30 % (avant 46 px) */
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--text); text-decoration: none; display: inline-block; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--teal-bright); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; padding: 0; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .14); }
.social svg { width: 20px; height: 20px; }
.footer-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--text-muted); font-size: .85rem; }

/* ---------- Vidéo (chargée au clic, plus légère) ---------- */
.video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: #000 center/cover no-repeat; box-shadow: var(--shadow);
}
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: rgba(0, 0, 0, .25);
  display: grid; place-items: center; color: #fff; font: 700 1rem 'Rubik', sans-serif;
}
.video button span {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent);
  padding: 14px 22px; border-radius: 999px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Récompenses page aventure ---------- */
.award-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.award-row img { height: 84px; width: auto; }
.press-row img { height: 44px; filter: grayscale(1) brightness(1.6); opacity: .8; }
.press-titre { margin: 34px 0 12px; font-size: 1.15rem; }
.press-grid { display: grid; gap: 12px; }
.press-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.press-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.press-card img { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: contain; background: #fff; padding: 4px; }
.press-card span { display: flex; flex-direction: column; font-size: .88rem; color: var(--text-muted); line-height: 1.35; }
.press-card strong { color: var(--text); font-size: 1rem; }
.press-card em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 4px; font-size: .85rem; }
@media (min-width: 768px) { .press-grid { grid-template-columns: repeat(3, 1fr); } }

.warn-box {
  display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px;
}
.warn-box svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Page 404 ---------- */
/* Même décor que l'accueil (halos turquoise) + emblème géant en filigrane + éventail d'affiches */
.err-hero { min-height: calc(100vh - 20px); display: flex; align-items: center; }
.err-hero::before {
  content: ""; position: absolute; right: -8%; top: 50%; width: min(680px, 100vw); aspect-ratio: 1; transform: translateY(-50%);
  background: url('/img/logo-flat-30x30mm.png') center / contain no-repeat; opacity: .07; pointer-events: none;
}
.err-hero .wrap { position: relative; z-index: 1; }
.err-hero .err-code {
  font-family: 'Bangers', 'Rubik', sans-serif; font-size: clamp(7rem, 34vw, 13rem); line-height: .9; letter-spacing: .05em;
  color: #3fd0ee; margin: 0 0 .08em; display: inline-block; transform: rotate(-3deg); transform-origin: left bottom;
  /* relief : extrusion en 8 couches + ombre portée + halo */
  text-shadow: 0 1px 0 #25a9c4, 0 2px 0 #2099b3, 0 3px 0 #1b8aa2, 0 4px 0 #177b91, 0 5px 0 #136c80, 0 6px 0 #105d70, 0 7px 0 #0c4e5f, 0 8px 0 #09404f,
    0 20px 28px rgba(0, 0, 0, .55), 0 0 70px rgba(63, 208, 238, .35);
}
.err-hero h1 { font-size: clamp(2rem, 8.5vw, 3.6rem); }
.err-hero .err-lien { margin-top: 40px; line-height: 1.8; font-size: .92rem; color: var(--text-muted); }
.err-hero .poster-fan { margin-top: 6px; }
.err-hero .poster-fan a { box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- Page réservation (module Bookeo) ---------- */
.rz-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.rz-head h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); }
.rz-intro { font-size: clamp(1.15rem, 4.2vw, 1.45rem); font-weight: 600; line-height: 1.45; color: var(--text); margin: 6px 0 4px; }
/* Accroche en deux temps, dans le style du titre de l'accueil */
.rz-intro-big { display: block; font-size: clamp(1.75rem, 7vw, 2.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.rz-intro-big em { font-style: normal; color: var(--accent); }
.rz-intro-small { display: block; margin-top: 12px; font-size: clamp(1rem, 3.6vw, 1.15rem); font-weight: 600; color: var(--text-muted); }
.rz-choix { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 4px 0 14px; }
.rz-all {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem; border: 1.5px solid rgba(255, 255, 255, .14);
}
.rz-all[aria-current] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.rz-affiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 480px; }
.rz-aff { min-width: 0; text-decoration: none; color: var(--text); text-align: center; border-radius: 12px; transition: transform .2s var(--ease); }
.rz-aff img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 2px solid transparent; opacity: .72; transition: opacity .2s, border-color .2s; }
.rz-aff span { display: block; font-weight: 700; font-size: .85rem; line-height: 1.2; margin-top: 6px; }
.rz-aff small { display: block; color: var(--text-muted); font-weight: 600; font-size: .72rem; margin-top: 2px; }
.rz-aff:hover img { opacity: 1; }
.rz-aff[aria-current] img { opacity: 1; border-color: var(--accent); box-shadow: 0 8px 22px -10px var(--accent); }
.rz-aff[aria-current] { transform: translateY(-3px); }
.rz-choix:not(:has([aria-current])) .rz-aff img { opacity: 1; }

.rz-module { position: relative; margin-top: 10px; min-height: 420px; } /* sans cadre : le calendrier Bookeo s'affiche directement sur la page */
#bookeo_position { position: relative; z-index: 1; }
.rz-attente { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--text-muted); font-weight: 600; }
.rz-attente p { margin: 0; }
.rz-sq { display: flex; gap: 8px; }
.rz-sq span { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); animation: rz-pulse 1s ease-in-out infinite; }
.rz-sq span:nth-child(2) { animation-delay: .15s; }
.rz-sq span:nth-child(3) { animation-delay: .3s; }
@keyframes rz-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.rz-module.rz-pret { min-height: 0; }
.rz-module.rz-pret .rz-attente { display: none; }
.rz-secours { display: none; text-align: center; margin: 12px 0 4px; color: var(--text-muted); font-size: .92rem; }
.rz-module.rz-absent .rz-attente { display: none; }
.rz-module.rz-absent .rz-secours { display: block; position: absolute; inset: 0; display: grid; place-content: center; padding: 20px; font-size: 1rem; }

.rz-garanties { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rz-garanties li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.rz-garanties svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

.rz-infos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rz-bloc { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid rgba(255, 255, 255, .06); }
.rz-bloc h2 { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.rz-bloc p { color: var(--text-muted); font-size: .95rem; }
.rz-bloc .btn { min-height: 46px; padding: 8px 16px; font-size: .92rem; white-space: normal; text-align: center; max-width: 100%; }
.rz-tarifs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.rz-tarifs li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rz-tarifs a { color: var(--text); font-weight: 800; text-decoration: none; }
.rz-tarifs span { color: var(--text-muted); font-size: .9rem; line-height: 1.4; }
.rz-note { font-size: .85rem !important; margin: 0; }
.rz-bloc h3 { font-size: 1.15rem; margin: 0 0 .45em; color: var(--text); }
.rz-bloc h3 a { color: inherit; text-decoration: none; }
.rz-bloc h3 a:hover { color: var(--accent); }
.rz-bloc > a:not(.btn) { display: inline-block; margin-top: 4px; font-weight: 700; font-size: .92rem; text-decoration: none; }
.rz-bloc strong { color: var(--text); }
.rz-etapes { margin: 0; padding-left: 1.2em; color: var(--text-muted); font-size: .95rem; display: grid; gap: 8px; }
.rz-etapes li::marker { color: var(--accent); font-weight: 800; }

@media (min-width: 768px) {
  .rz-affiches { max-width: 480px; gap: 18px; }
  .rz-garanties { grid-template-columns: repeat(4, 1fr); }
  .rz-infos { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- Ancienne page réservation (plus utilisée) ---------- */
.picker { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 18px 0 8px; }
.pick {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease);
}
.pick img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.pick span { display: block; padding: 8px 8px 10px; font-weight: 700; font-size: .85rem; line-height: 1.2; text-align: center; }
.pick small { display: block; color: var(--text-muted); font-weight: 600; font-size: .75rem; margin-top: 2px; }
.pick[aria-current="true"] { border-color: var(--accent); transform: translateY(-3px); }
.booking-box {
  background: #fff; color: #111; border-radius: var(--radius); padding: 14px; min-height: 420px; margin-top: 18px;
  box-shadow: var(--shadow);
}
.booking-fallback { text-align: center; padding: 40px 12px; color: #333; }
.booking-fallback p { margin-bottom: 18px; }
.booking-fallback .btn { background: var(--teal); color: #fff; white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding: 12px 22px; }
.info-grid { display: grid; gap: 12px; margin-top: 18px; }
.info-grid div { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; }
.info-grid h3 { font-size: 1rem; color: var(--accent); margin-bottom: .3em; }
.info-grid p { margin: 0; color: var(--text-muted); font-size: .93rem; }
@media (min-width: 768px) {
  .picker { gap: 18px; max-width: 640px; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Pages annexes (contenu d'origine, nouvelle mise en forme)
   ========================================================= */
.legacy-content { max-width: 880px; margin: 0 auto; }
[id] { scroll-margin-top: 84px; } /* les liens d'ancre ne finissent pas sous l'en-tête */
.legacy-content h1 { font-size: clamp(2rem, 7vw, 3rem); margin: .3em 0 .4em; }
.legacy-content h2 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); margin: 1.6em 0 .55em; }
.legacy-content h1 + h2 { margin-top: 0; color: var(--text-muted); font-weight: 600; font-size: 1.15rem; }
.legacy-content h3 { font-size: 1.15rem; color: var(--accent); margin: 1.4em 0 .4em; }
.legacy-content h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.legacy-content p, .legacy-content li { color: color-mix(in srgb, var(--text) 86%, transparent); }
.legacy-content ul, .legacy-content ol { padding-left: 1.3em; }
.legacy-content .strong, .legacy-content strong { color: var(--text); font-weight: 700; }
.legacy-content img { border-radius: 12px; margin: 14px auto; }
.legacy-content .img-max4 img, .legacy-content.img-max4 img { max-width: min(100%, 420px); }
.legacy-content .img-max2 img, .legacy-content .img-max150 img { max-width: 180px; }
/* Plusieurs logos-liens dans le même bloc : côte à côte */
.legacy-content .img-max150 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin: 18px 0; }
.legacy-content .img-max150 a { display: block; transition: transform .2s var(--ease); }
.legacy-content .img-max150 a:hover { transform: translateY(-3px); }
.legacy-content .img-max150 img { width: 130px; height: 130px; object-fit: contain; margin: 0; }
.legacy-content .legende { font-size: .88rem; color: var(--text-muted); font-style: italic; text-align: center; margin-top: -6px; }
.legacy-content .box-center { text-align: center; }
.legacy-content .alignleft { float: none; }
.legacy-content hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 32px 0; }
.legacy-content blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.legacy-content .embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 20px 0; background: var(--surface); }
.legacy-content .embed.map { aspect-ratio: 4/3; }
.legacy-content .embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.legacy-content .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

/* Cartes articles / actus */
.cards-grid { display: grid; gap: 16px; margin: 20px 0; }
.box-actu { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .06); }
.box-actu > a { color: inherit; text-decoration: none; display: block; }
.box-actu img { margin: 0; border-radius: 0; width: 100%; aspect-ratio: 16/9; object-fit: cover; max-width: none !important; }
.box-actu .box-txt { padding: 16px 18px 18px; }
.box-actu .box-txt h2, .box-actu .box-txt h3 { font-size: 1.15rem; margin: 0 0 .4em; color: var(--text); }
.box-actu .box-txt p { font-size: .95rem; margin-bottom: .6em; }
.box-actu .date { font-size: .8rem; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.box-actu:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* FAQ */
.faq-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.faq-menu h3 { margin: 0; font-size: .92rem; }
.faq-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; border: 1px solid rgba(255, 255, 255, .1); }
.faq-menu a:hover { border-color: var(--accent); }
.faq-block { scroll-margin-top: 80px; margin-top: 28px; }
.legacy-content details { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.legacy-content details:first-of-type { border-top: 1px solid rgba(255, 255, 255, .1); }
.legacy-content summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 2px; font-weight: 700; min-height: 54px; color: var(--text); }
.legacy-content summary::-webkit-details-marker { display: none; }
.legacy-content summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.legacy-content details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.legacy-content details > :not(summary) { padding: 0 2px; }
.legacy-content details[open] { padding-bottom: 12px; }

/* Charte qualité : pictogrammes des critères (1 ligne sur grand écran, 2 sur téléphone) */
.legacy-content .menu-picto { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 26px; }
.legacy-content .menu-picto a { display: block; width: calc((100% - 30px) / 4); max-width: 76px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); transition: transform .2s var(--ease), border-color .2s; }
.legacy-content .menu-picto a:hover { transform: translateY(-3px); border-color: var(--accent); }
.legacy-content .menu-picto img { width: 100%; height: auto; margin: 0; border-radius: 0; filter: invert(1) brightness(.95); } /* dessins noirs -> clairs sur fond sombre */
.legacy-content .crit-article { background: var(--surface); border-radius: var(--radius); padding: 4px 20px 10px; margin: 16px 0; scroll-margin-top: 80px; }
.legacy-content .crit-article h4 { color: var(--accent); }
@media (min-width: 768px) { .legacy-content .menu-picto a { width: 76px; } .legacy-content .menu-picto { gap: 14px; } }

/* Équipe (page À propos) : cartes */
.legacy-content .equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 22px 0; }
@media (min-width: 768px) { .legacy-content .equipe { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.legacy-content .membre { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); padding-bottom: 12px; }
.legacy-content .membre .photo { width: 100%; max-width: none; aspect-ratio: 1; object-fit: cover; margin: 0; border-radius: 0; }
.legacy-content .membre h4 { margin: 10px 12px 4px; color: var(--text); font-size: .98rem; }
.legacy-content .membre .legende { text-align: left; font-style: normal; margin: 0 12px; }
.legacy-content .membre .legende p { display: flex; gap: 7px; align-items: flex-start; margin: .35em 0; font-size: .84rem; line-height: 1.35; }
.legacy-content img.ico-avis { width: 18px; height: 18px; margin: 1px 0 0 !important; flex: none; border-radius: 0; display: inline-block; vertical-align: -4px; filter: invert(1) brightness(.9); }
@media (min-width: 768px) { .legacy-content .membre h4 { margin: 12px 16px 6px; font-size: 1.05rem; } .legacy-content .membre .legende { margin: 0 16px; } .legacy-content .membre .legende p { font-size: .9rem; } }

/* Logos partenaires / presse */
.partenaires { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.legacy-content .partenaires img { max-height: 120px; width: auto; background: rgba(255, 255, 255, .92); padding: 10px; }

/* Pages aventures (versions anglaises / Ludirobot) */
.legacy-content .chapeau p { font-size: 1.2rem; font-weight: 600; color: var(--text); }
.legacy-content .main-aventure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 18px 0; }
.legacy-content .main-aventure > * { min-width: 0; }
.legacy-content .affiche-principale { max-width: min(100%, 360px); margin: 0 auto; box-shadow: var(--shadow); }
.legacy-content .picto { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.legacy-content .picto img { width: 56px; height: 56px; margin: 0; border-radius: 10px; object-fit: contain; }
.legacy-content .speech { position: relative; background: var(--surface); border-radius: var(--radius); padding: 22px; border-left: 5px solid var(--accent); }
.legacy-content .block-mission { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; }
.legacy-content .block-mission p { margin: 0 0 .3em; font-weight: 600; color: var(--text); }
.legacy-content .acces { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.legacy-content .acces img { display: inline-block; width: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: middle; }
.legacy-content .acces-title { font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.legacy-content .les-autres-aventures { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.legacy-content .les-autres-aventures > :first-child { flex-basis: 100%; }
.legacy-content .affiche-secondaire { width: 160px; margin: 0; box-shadow: var(--shadow); }
.legacy-content .interdiction p { color: var(--accent); font-weight: 700; }

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .legacy-content .main-aventure { grid-template-columns: 340px 1fr; align-items: start; }
  .legacy-content .main-aventure > .block-right { grid-column: 2; }
}

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- Tablette / desktop ---------- */
@media (min-width: 768px) {
  :root { --gutter: 28px; }
  body { padding-bottom: 0; }
  .book-bar { display: none; }
  .site-nav .nav-hide-sm { display: inline-flex; }
  .site-nav .btn { display: inline-flex; }
  .section { padding: 96px 0; }
  .hero { padding: 28px 0 90px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero-logo { grid-column: 1 / -1; width: 380px; }
  .brand-name { display: inline; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .poster-fan { height: 440px; max-width: 520px; }
  .adventures { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .adv-card { flex: auto; }
  .swipe-hint { display: none; }
  .score-card { grid-template-columns: 1fr auto; padding: 28px 32px; }
  .score-card .btn { width: auto; }
  .rules { grid-template-columns: repeat(4, 1fr); }
  .adv-hero .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; padding-top: 56px; }
  .adv-poster { grid-row: 1 / span 2; grid-column: 2; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 600px; }
  .fact-grid li { padding: 14px 18px; gap: 14px; }
  .fact-grid svg { width: 26px; height: 26px; }
  .fact-grid strong { font-size: 1.05rem; }
  .access { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
