/* =====================================================
   ICHOR — page evenement Domaine de Maizerets (15 aout)
   Theme cottagecore/chalet : nuit chaleureuse, feu de foyer & ambre
   ===================================================== */

:root {
  /* Palette — nuit chaude de chalet, braises & bois */
  --ink:        #100d09;   /* fond principal, brun-noir chaud */
  --ink-2:      #17130d;   /* sections alternées */
  --ink-3:      #211a12;   /* cartes, bois sombre */
  --amber:      #e0952b;   /* accent principal — feu / lanterne */
  --amber-soft: #f2c67a;
  --gold:       #d4a017;   /* rappel Ichor (jeu vedette) */
  --pine:       #5c8a6a;   /* accent secondaire — forêt / bois rond */
  --pine-soft:  #86b494;
  --ember:      #c0532a;   /* braise */
  --blood:      #9c2433;   /* rouge sang — extrémité « pédagogique » du curseur */
  --paper:      #f1e9d9;   /* texte principal */
  --paper-dim:  #bcad94;   /* texte secondaire */
  --line:       rgba(224, 149, 43, 0.18);

  --font-display: "Cinzel", serif;
  --font-body: "Spectral", serif;

  --radius: 12px;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Grain léger sur tout le site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

strong { font-weight: 500; }
.txt-amber { color: var(--amber-soft); }
.txt-pine  { color: var(--pine-soft); }

/* =================== HEADER =================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(16, 13, 9, 0.92), rgba(16, 13, 9, 0.72));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 22px;
  height: 22px;
  fill: var(--amber);
  filter: drop-shadow(0 0 6px rgba(224, 149, 43, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
}

.nav-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--amber-soft); }

.nav-links .nav-cta {
  color: var(--ink);
  background: var(--amber);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}

/* =================== HERO =================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 112%, rgba(224, 149, 43, 0.28), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(28, 22, 16, 0.35), rgba(16, 13, 9, 0.55));
}

/* Voûte étoilée discrète */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(241, 233, 217, 0.8), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(241, 233, 217, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 30%, rgba(242, 198, 122, 0.7), transparent),
    radial-gradient(1px 1px at 33% 10%, rgba(241, 233, 217, 0.6), transparent),
    radial-gradient(1px 1px at 90% 38%, rgba(241, 233, 217, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 20% 42%, rgba(241, 233, 217, 0.35), transparent),
    radial-gradient(1px 1px at 47% 16%, rgba(242, 198, 122, 0.5), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* Silhouette forêt + chalet en bas du hero */
.hero-scene {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.hero-scene .scene-tree { fill: #0a0806; }
.hero-scene .scene-cabin { fill: #0c0906; }
.hero-scene .scene-window {
  fill: var(--amber-soft);
  filter: drop-shadow(0 0 6px rgba(242, 198, 122, 0.9));
  animation: firelight 3.5s ease-in-out infinite alternate;
}

@keyframes firelight {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.hero-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 1;
  letter-spacing: 0.06em;
  margin: 1.1rem 0;
  background: linear-gradient(180deg, var(--paper) 30%, var(--amber-soft) 85%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--paper);
  max-width: 720px;
  margin: 0 auto;
}

.hero-sub {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--paper-dim);
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-arrow {
  margin-top: 2.6rem;
  color: var(--amber-soft);
  font-size: 1.5rem;
  line-height: 1;
  animation: arrowbounce 2s ease-in-out infinite;
}

@keyframes arrowbounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* =================== BOUTONS =================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(224, 149, 43, 0.35);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(224, 149, 43, 0.5);
}

.btn-ghost {
  color: var(--paper);
  border: 1px solid rgba(241, 233, 217, 0.35);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-soft);
}

.btn-lg { padding: 1.05rem 2.6rem; font-size: 1.1rem; }

/* =================== SECTIONS =================== */

.section { padding: var(--section-pad) 0; }

.section-alt {
  background: rgba(23, 19, 13, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 0.8rem;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}

.section-lead {
  color: var(--paper-dim);
  max-width: 680px;
  margin-bottom: 2.6rem;
}

/* =================== CARTES VALEUR =================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.value-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 149, 43, 0.45);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  background: rgba(224, 149, 43, 0.12);
  border: 1px solid rgba(224, 149, 43, 0.35);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.55rem;
}

.value-card p { color: var(--paper-dim); font-size: 0.98rem; }

/* =================== JEU VEDETTE =================== */

.feature-row {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  background: linear-gradient(180deg, #f5eddd, #e6d8ba);
  border: 1px solid #b79b6d;
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.5rem);
  flex: 1 1 0;
  min-width: 0;
  max-width: 540px;
  margin-inline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 34px rgba(0, 0, 0, 0.4);
  color: #2a2118;
}

.feature-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #b8860b);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
  color: #8b2f38;
}

.feature p { color: #4a3b28; margin-bottom: 0.45rem; line-height: 1.55; }
.feature strong { color: #2a2118; }
.feature .txt-amber { color: #9a5b12; }
.feature .concept-word { border-bottom-color: rgba(120, 70, 15, 0.55); }
.feature .feature-credit { color: #6b543c !important; }

.feature .btn-ghost { color: #3a2e1e; border-color: rgba(58, 46, 30, 0.45); }
.feature .btn-ghost:hover { color: #8b2f38; border-color: #8b2f38; }

.feature h3 { text-align: center; }
.feature-title-link { color: inherit; text-decoration: none; transition: color 0.25s; }
.feature-title-link:hover { color: #b5323f; }
.feature .feature-badge { display: block; width: fit-content; margin-inline: auto; }

.feature-actions { margin-top: 1.4rem; }

.feature .line-center { text-align: center; }
.feature .tight { line-height: 1.3; }
.feature .bold-italic { font-style: italic; font-weight: 600; color: #2a2118; }
.feature .net-icon { line-height: 1; margin-top: 1.4rem; margin-bottom: 0.3rem; }
.feature .net-icon svg { display: inline-block; vertical-align: middle; }

/* La boîte « À découvrir » : le texte apparaît en fondu d'opacité progressif
   (invisible -> de plus en plus visible) au clic sur le titre. */
.reveal-trigger { cursor: pointer; transition: color 0.25s; }
.reveal-trigger:hover { color: #b5323f; }

.reveal-hint {
  text-align: center;
  color: #9a5b12;
  font-style: italic;
  font-size: 0.88rem;
  margin-top: 0.3rem;
  animation: hintpulse 2.2s ease-in-out infinite;
}

@keyframes hintpulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.feature-text.is-revealed .reveal-hint { display: none; }

/* Bouton évident « Cliquez pour révéler » (boîte À découvrir) */
.btn-reveal {
  display: block;
  margin: 0.7rem auto 0;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 149, 43, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-reveal:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224, 149, 43, 0.45); }
.btn-reveal:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.feature-text.is-revealed .btn-reveal { display: none; }

.reveal-content { opacity: 0; transition: opacity 6s ease; }
.reveal-content.is-open { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal-content { transition: opacity 0.4s ease; }
  .reveal-hint { animation: none; }
}

/* Autres jeux — grille de types */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}

.game-chip {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fdfbf6;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-chip img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.game-chip h4 {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  text-align: center;
  color: #2a2118;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.game-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 149, 43, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* =================== CHALET FÊTE (petite illustration dans la boîte Ichor) =================== */

.cabins-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.cabin-under {
  display: block;
  width: min(210px, 42vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

/* Le chalet au feu est décalé vers le bas pour aligner la BASE du bâtiment
   avec les autres chalets — le feu déborde volontairement sous la ligne. */
.cabin-fire { transform: translateY(4.6%); }

/* Colonne chalet + titre : le titre est en position absolue sous le chalet,
   il ne modifie donc pas l'alignement des chalets dans la rangée. */
.cabin-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
}

/* Anneau de focus clavier visible (WCAG 2.4.7) — .cabin-col est un bouton (disclosure) */
.cabin-col:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Infobulle au survol / focus du chalet ou de son titre */
.cabin-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(250px, 74vw);
  padding: 0.85rem 1rem;
  background: var(--ink-3);
  border: 1px solid rgba(224, 149, 43, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
}

.cabin-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: rgba(224, 149, 43, 0.45);
}

/* Révélation (survol souris + disclosure tactile/clavier via .is-open).
   L'état VISIBLE est explicite ici — jamais tenu par un keyframe fill-mode. */
:is(.cabin-col:hover, .cabin-col.is-open) .cabin-tip {
  visibility: visible;
  opacity: 1;
}

/* Entrées thématiques.
   ⚠️ Le raccourci `animation:` réinitialise animation-fill-mode à `none` :
   le `both` final est OBLIGATOIRE. Mais la persistance ne DÉPEND pas de lui —
   l'état visible ci-dessus suffit (root cause du bug d'infobulle qui disparaissait). */
:is(.cabin-col:hover, .cabin-col.is-open) .tip-fun {
  animation: tipFun 1.15s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
:is(.cabin-col:hover, .cabin-col.is-open) .tip-team {
  animation: tipTeam 0.55s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

/* ===== Compétitif : le drapeau (image) apparaît DERRIÈRE le chalet ===== */
.col-team { z-index: 1; }                            /* isole ce chalet dans son contexte d'empilement */
.cabin-double { position: relative; z-index: 1; }    /* le chalet passe DEVANT le drapeau */

.team-flag {
  position: absolute;
  left: 50%;                     /* le MÂT (≈11 % de la largeur de l'image) tombe pile au centre */
  bottom: 42%;                   /* plus bas (le mât descend davantage entre les toits) */
  width: min(380px, 96%);        /* drapeau agrandi → lettres plus grosses tiennent dans la toile */
  z-index: 0;                    /* derrière l'image des chalets (z-index 1) → se dresse de derrière */
  transform: translateX(-11%) translateY(60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}
:is(.cabin-col:hover, .cabin-col.is-open) .team-flag {
  opacity: 1;
  transform: translateX(-11%) translateY(0);
}
.team-flag__img { display: block; width: 100%; height: auto; }
/* Le texte s'inscrit DANS la toile du drapeau — découpé selon son contour
   (clip-path) pour ne jamais déborder de la forme, et calé sur la partie toile. */
.team-flag__text {
  position: absolute;
  inset: 0;
  padding: 8% 12% 52% 18%;            /* colonne resserrée : aucun mot n'atteint le bord penché de la toile */
  display: flex;
  align-items: center;                /* centre le texte dans la toile */
  justify-content: center;
  text-align: center;
  color: #2a2118;
  font: 600 0.86rem/1.2 var(--font-body);  /* grosses lettres, ajustées pour rester dans la toile */
  overflow: hidden;
  clip-path: polygon(13% 8%, 30% 4%, 50% 4%, 72% 5%, 90% 6%, 96% 25%, 97% 42%, 90% 54%, 58% 57%, 32% 55%, 14% 48%, 11% 24%);
}

/* Mystères cryptiques : la boîte apparaît PRÈS du chalet (pas de flou) ; le
   texte se décrypte lettre par lettre en JS, comme un code qui se résout. */
.tip-mystery { bottom: calc(100% + 5px); }        /* plus près du chalet */
.tip-mystery .scramble { color: var(--amber-soft); }  /* les lettres non résolues = code ambré */

:is(.cabin-col:hover, .cabin-col.is-open) .tip-mystery {
  animation: tipMystery 0.3s ease both;
}

/* ===== Stratégique : une CARTE (image) se déplie et reste ouverte au-dessus du chalet ===== */
.tip-strategy {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: min(340px, 90vw);         /* carte dimensionnée pour que le texte la remplisse serré */
  bottom: calc(100% + 12px);
  perspective: 1000px;
}
.tip-strategy::after { display: none; }          /* pas de flèche */

/* La carte est découpée en 4 panneaux verticaux (le long de ses plis).
   Les 2 du centre sont visibles ; les 2 extérieurs partent pliés puis se
   déplient vers l'extérieur, un à un. */
.map-fold {
  position: relative;
  display: block;                 /* span → block, sinon width/aspect-ratio ignorés */
  width: 100%;
  aspect-ratio: 820 / 596;
  transform-style: preserve-3d;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}
.map-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background-image: url("../img/carte.webp");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  backface-visibility: hidden;
}
.mp-L { left: 0;   background-position-x: 0%;   transform-origin: right center; }  /* page gauche (charnière = pli central) */
.mp-R { left: 50%; background-position-x: 100%; transform-origin: left center; }   /* page droite (charnière = pli central) */

/* Le texte s'inscrit sur la surface de la carte, une fois dépliée */
.map-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 11% 12% 13% 12%;           /* zone de texte élargie → remplit le parchemin serré */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #3a2c18;
  font: 600 0.92rem/1.3 var(--font-body);  /* plus gros + gras — lisible sur la carte agrandie */
  opacity: 0;
  overflow: hidden;
  /* voile parchemin derrière le texte : atténue les motifs de la carte, s'estompe vers les bords */
  background: radial-gradient(ellipse 62% 58% at center, rgba(234, 222, 194, 0.82) 0%, rgba(234, 222, 194, 0.6) 48%, rgba(234, 222, 194, 0) 80%);
}

/* Ouverture façon livre : les 2 pages, presque fermées, s'ouvrent de part et
   d'autre du pli central, puis restent ouvertes. */
:is(.cabin-col:hover, .cabin-col.is-open) .mp-L { animation: bookOpenL 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
:is(.cabin-col:hover, .cabin-col.is-open) .mp-R { animation: bookOpenR 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
:is(.cabin-col:hover, .cabin-col.is-open) .map-text { animation: mapTextReveal 1.4s ease both; }

/* Plaisir & convivialité : pop rebondissant et joyeux */
@keyframes tipFun {
  0%   { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.7); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-5px) scale(1.06); }
  80%  { transform: translateX(-50%) translateY(2px) scale(0.98); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ===== Plaisir : feu d'artifice — une gerbe d'étincelles éclate autour de l'infobulle ===== */
.fireworks {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}
.fw-1 { left: 50%; top: -6px; }
.fw-2 { left: 66%; top: -24px; }
.spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(255, 214, 150, 0.7);
}
.spark:nth-child(1)  { --a: 0deg;   background: var(--gold); }
.spark:nth-child(2)  { --a: 30deg;  background: var(--blood-soft); }
.spark:nth-child(3)  { --a: 60deg;  background: var(--amber-soft); }
.spark:nth-child(4)  { --a: 90deg;  background: var(--pine-soft); }
.spark:nth-child(5)  { --a: 120deg; background: var(--paper); }
.spark:nth-child(6)  { --a: 150deg; background: var(--gold-soft); }
.spark:nth-child(7)  { --a: 180deg; background: var(--amber); }
.spark:nth-child(8)  { --a: 210deg; background: var(--blood-soft); }
.spark:nth-child(9)  { --a: 240deg; background: var(--amber-soft); }
.spark:nth-child(10) { --a: 270deg; background: var(--pine-soft); }
.spark:nth-child(11) { --a: 300deg; background: var(--gold); }
.spark:nth-child(12) { --a: 330deg; background: var(--paper); }

/* 2 gerbes qui éclatent en boucle, décalées dans le temps = feux en continu */
:is(.cabin-col:hover, .cabin-col.is-open) .fireworks .spark {
  animation: sparkFly 2s ease-out infinite both;
}
:is(.cabin-col:hover, .cabin-col.is-open) .fw-2 .spark { animation-delay: 1s; }

@keyframes sparkFly {
  0%   { opacity: 1; transform: rotate(var(--a)) translateY(-2px) scale(1.2); }
  8%   { opacity: 1; }
  45%  { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scale(0.3); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scale(0.3); }
}

/* Compétitif par équipe : ouverture horizontale, deux camps qui se rejoignent */
@keyframes tipTeam {
  0%   { opacity: 0; transform: translateX(-50%) scaleX(0.15) scaleY(0.85); }
  55%  { opacity: 1; transform: translateX(-50%) scaleX(1.06) scaleY(1); }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1) scaleY(1); }
}

/* Mystères cryptiques : apparition simple près du chalet (le décryptage du
   texte, lettre par lettre, est géré en JS). */
@keyframes tipMystery {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Stratégique : la carte pliée en accordéon s'ouvre à pleine largeur, puis reste
   ouverte. Le texte n'apparaît qu'une fois la carte dépliée. */
/* Les 2 pages partent presque fermées (pivotées au pli central) et s'ouvrent à plat. */
@keyframes bookOpenL { 0% { transform: rotateY(80deg); }  100% { transform: rotateY(0deg); } }
@keyframes bookOpenR { 0% { transform: rotateY(-80deg); } 100% { transform: rotateY(0deg); } }
@keyframes mapTextReveal { 0%, 85% { opacity: 0; } 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  :is(.cabin-col:hover, .cabin-col.is-open) .cabin-tip { animation: none; opacity: 1; visibility: visible; }
  :is(.cabin-col:hover, .cabin-col.is-open) .mp-L,
  :is(.cabin-col:hover, .cabin-col.is-open) .mp-R,
  :is(.cabin-col:hover, .cabin-col.is-open) .map-text { animation: none; }
  .mp-L, .mp-R { transform: none; }
  .map-text { opacity: 1; }
  :is(.cabin-col:hover, .cabin-col.is-open) .spark { animation: none; opacity: 0; }
}

.cabin-title {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1.1rem;
  width: max-content;
  max-width: 190px;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cabin-question {
  position: relative;
  z-index: 1;                 /* le chalet passe DEVANT sa brume (qui émerge de derrière) */
  display: block;
  width: min(210px, 42vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.cabin-double {
  display: flex;
  align-items: flex-end;
}

.cabin-double .cabin-half {
  display: block;
  width: min(185px, 37vw);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

/* fusionne les deux moitiés : la 2e chevauche la colonne de rondins du milieu
   ET est retournée en miroir pour un chalet double symétrique */
.cabin-double .cabin-half + .cabin-half {
  margin-left: calc(min(185px, 37vw) * -0.135);
  transform: scaleX(-1);
}

/* =================== ÉTAPES =================== */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.75rem 1.7rem 4.6rem;
}

/* Chaque étape : le numéro s'affiche dans une serrure de porte (au lieu d'un rond). */
.steps > li::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  width: 1.9rem;
  height: 2.55rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.steps > li:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='3' y='1' width='18' height='30' rx='4' fill='%23e0952b'/%3E%3Ctext x='12' y='24' font-family='Georgia,serif' font-size='23' font-weight='700' text-anchor='middle' fill='%23100d09'%3E1%3C/text%3E%3C/svg%3E");
}
.steps > li:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='3' y='1' width='18' height='30' rx='4' fill='%23e0952b'/%3E%3Ctext x='12' y='24' font-family='Georgia,serif' font-size='23' font-weight='700' text-anchor='middle' fill='%23100d09'%3E2%3C/text%3E%3C/svg%3E");
}
.steps > li:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='3' y='1' width='18' height='30' rx='4' fill='%23e0952b'/%3E%3Ctext x='12' y='24' font-family='Georgia,serif' font-size='23' font-weight='700' text-anchor='middle' fill='%23100d09'%3E3%3C/text%3E%3C/svg%3E");
}
.steps > li:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='3' y='1' width='18' height='30' rx='4' fill='%23e0952b'/%3E%3Ctext x='12' y='24' font-family='Georgia,serif' font-size='23' font-weight='700' text-anchor='middle' fill='%23100d09'%3E4%3C/text%3E%3C/svg%3E");
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}
.th-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--paper-dim);
  white-space: nowrap;
}

.steps p { color: var(--paper-dim); font-size: 0.97rem; }
.step-input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(224, 149, 43, 0.4);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-input::placeholder { color: rgba(241, 233, 217, 0.4); }
.step-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

/* Choix multiples (case à cocher) + champs de détails conditionnels */
.step-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
/* Variante horizontale (box « combien serez-vous » : choix d'âge sur une ligne) */
.step-choices--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.3rem;
}
/* Variante 2 colonnes (box « raison ») */
.step-choices--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  align-items: start;
}
.choice-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  font-size: 0.97rem;
  cursor: pointer;
}
.choice input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  accent-color: var(--amber);
  cursor: pointer;
}
.choice-detail {
  margin-top: 0;
  margin-left: 1.6rem;
  width: calc(100% - 1.6rem);
}
/* Le champ de détail n'apparaît que si l'option juste au-dessus est cochée.
   Repli : si :has() n'est pas supporté, le champ reste visible (aucune perte de saisie). */
.choice:not(:has(input:checked)) + .choice-detail { display: none; }
.choice-note {
  font-style: italic;
  color: var(--paper-dim);
  font-size: 0.95rem;
}
.choice-inline-note {
  font-style: italic;
  color: var(--paper-dim);
  font-size: 0.9rem;
}
.choice-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.choice-row .choice { flex: none; }
.choice-inline-input {
  width: auto;
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

/* Niveau : curseur ludique ↔ pédagogique.
   La barre passe au rouge sang sur la portion droite (sous « Pédagogique »). */
.step-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin-top: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  /* Remplissage ancré au CENTRE (50 %) : la couleur n'est visible qu'entre --start et --end
     (le côté vers lequel on glisse). Deux caches neutres masquent le reste ; la couleur de
     fond fixe (ambre côté ludique → sang côté pédagogique) apparaît dans la bande révélée. */
  background:
    linear-gradient(#2b2318, #2b2318) no-repeat,   /* cache gauche : 0 → --start */
    linear-gradient(#2b2318, #2b2318) no-repeat,   /* cache droit : --end → 100 */
    linear-gradient(to right, var(--amber) 0%, var(--amber) 55%, var(--blood) 100%) no-repeat;
  background-size:
    var(--start, 50%) 100%,
    calc(100% - var(--end, 50%)) 100%,
    100% 100%;
  background-position: left center, right center, left center;
}
.step-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;              /* centre le pouce sur la piste de 8 px */
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
/* Firefox : on laisse voir le fond en bande de l'input (piste + progression transparentes). */
.step-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
.step-range::-moz-range-progress {
  height: 8px;
  background: transparent;
}
.step-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.step-range:focus-visible { box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.25); }
/* Repère central « Animation générale » : petit trait vertical fixe à 50 % de la piste */
.range-wrap { position: relative; }
.range-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(0.8rem - 2px);         /* la piste commence à margin-top: 0.8rem */
  transform: translateX(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.range-end {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.range-end--right { text-align: right; }
.range-end--center { text-align: center; align-items: center; }
.range-end--center .range-label { color: var(--amber-soft); font-size: 0.9rem; }
.range-label {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--paper);
}
.range-sub {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--paper-dim);
}

/* =================== PARTENARIAT =================== */

.partner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.partner-text p { color: var(--paper-dim); }
.partner-text p + p { margin-top: 1rem; }
.partner-text strong { color: var(--paper); }
.partner-text .btn { margin-top: 1.6rem; }

.partner-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.partner-card .partner-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pine-soft);
  margin-bottom: 0.6rem;
}

.partner-card ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.partner-card li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--paper-dim);
  font-size: 0.97rem;
}

.partner-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--pine-soft);
}

/* =================== FORMULES =================== */

.formules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.formule-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
}

.formule-card.is-featured {
  border-color: rgba(224, 149, 43, 0.55);
  box-shadow: 0 0 30px rgba(224, 149, 43, 0.12);
}

.formule-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.formule-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.formule-card .formule-desc { color: var(--paper-dim); font-size: 0.95rem; margin-bottom: 1.3rem; }

.formule-card ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.formule-card li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--paper);
  font-size: 0.95rem;
}

.formule-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber-soft);
  font-weight: 700;
}

.formule-card .btn { margin-top: auto; justify-content: center; }

.formules-note {
  text-align: center;
  color: var(--paper-dim);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* =================== CTA / RÉSERVATION =================== */

.section-cta {
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(224, 149, 43, 0.18), transparent 70%),
    rgba(23, 19, 13, 0.8);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 1rem; }
.cta-sub { color: var(--paper-dim); margin-bottom: 2.4rem; }

/* Formulaire de réservation */
.resa-form {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 1.3rem;
}

.resa-field { border: 0; padding: 0; margin: 0; }

.resa-field label:not(.resa-radios label),
.resa-field legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--amber-soft);
  margin-bottom: 0.5rem;
}

.resa-field input,
.resa-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--ink-3);
  border: 1px solid rgba(241, 233, 217, 0.25);
  border-radius: 8px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color-scheme: dark;
  transition: border-color 0.2s;
}

.resa-field input:focus,
.resa-field textarea:focus { outline: none; border-color: var(--amber); }

.resa-field input::placeholder,
.resa-field textarea::placeholder { color: rgba(188, 173, 148, 0.55); }

.resa-field textarea { resize: vertical; }

.resa-radios { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.resa-radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper-dim);
  cursor: pointer;
}

.resa-radios input[type="radio"] { accent-color: var(--amber); }

.resa-form .btn { justify-self: center; margin-top: 0.4rem; }

.resa-alt { text-align: center; font-size: 0.9rem; color: var(--paper-dim); }
.resa-alt a { color: var(--amber-soft); }

/* =================== FOOTER =================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-footer { font-size: 1.05rem; }

.footer-note { font-size: 0.88rem; color: var(--paper-dim); }
.footer-note a { color: var(--amber-soft); }

/* =================== REVEAL ON SCROLL =================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::after, .hero-scene .scene-window, .hero-arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================== ENVELOPPE « CONCEPT » (reveal au survol) =================== */

.concept-line { margin-top: 0.2rem; }

.envelope-trigger {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
}

.concept-word { border-bottom: 1px dotted rgba(242, 198, 122, 0.75); }

.envelope-hint { margin-left: 0.25em; font-size: 0.95em; }

.envelope {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: min(400px, 84vw);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92) rotate(-1.5deg);
  transform-origin: top left;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.85, 0.25, 1);
  z-index: 9;
  pointer-events: none;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.65));
}

.envelope-trigger:hover .envelope,
.envelope-trigger:focus .envelope,
.envelope-trigger:focus-within .envelope {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) rotate(0deg);
}

.envelope-paper {
  position: relative;
  display: block;
  background: linear-gradient(180deg, #f5eddd, #e6d8ba);
  border: 1px solid #b79b6d;
  border-radius: 5px;
  padding: 4.3rem 1.7rem 1.6rem;
  color: #2a2118;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 400;
  overflow: hidden;
}

/* rabat triangulaire de l'enveloppe */
.envelope-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: linear-gradient(180deg, #efe4cd, #dccdaa);
  border-bottom: 1px solid rgba(140, 116, 74, 0.45);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 1;
}

/* sceau de cire */
.envelope-seal {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b5323f, #7d1420);
  color: #f2c67a;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.envelope-text {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: #4a3b28;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .envelope { transition: opacity 0.2s ease; transform: none; }
  .envelope-trigger:hover .envelope,
  .envelope-trigger:focus .envelope,
  .envelope-trigger:focus-within .envelope { transform: none; }
}

/* =================== RESPONSIVE =================== */

@media (max-width: 860px) {
  .value-grid, .formules { grid-template-columns: 1fr; }
  .feature, .partner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column; align-items: center; }
  .feature-row .feature { width: 100%; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(16, 13, 9, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
    display: none;
  }

  .nav-links.is-open { display: flex; }
  .nav-links li { text-align: center; }

  .nav-links a { display: block; padding: 0.9rem 1.5rem; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 0.6rem 1.5rem 0; border-radius: 999px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===================== Recherche de jeux ===================== */
.jeu-search {
  max-width: 720px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.jeu-search__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 0.35rem;
}
.jeu-search__hint {
  color: var(--paper-dim);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.jeu-search__box { margin-bottom: 1.5rem; }
.jeu-search__input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid rgba(224, 149, 43, 0.4);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jeu-search__input::placeholder { color: rgba(241, 233, 217, 0.42); }
.jeu-search__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}
.jeu-results { display: grid; gap: 0.9rem; }
.jeu-results__state {
  color: var(--paper-dim);
  font-style: italic;
  padding: 1.4rem 0;
}
.jeu-card {
  text-align: left;
  background: var(--ink-3);
  border: 1px solid rgba(224, 149, 43, 0.22);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.jeu-card:hover {
  border-color: rgba(224, 149, 43, 0.5);
  transform: translateY(-2px);
}
.jeu-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.jeu-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
}
.jeu-badge {
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
}
.jeu-badge--on { color: #0d1f12; background: #7ac47f; }
.jeu-badge--soon {
  color: var(--paper-dim);
  background: rgba(241, 233, 217, 0.1);
  border: 1px solid rgba(241, 233, 217, 0.22);
}
.jeu-card__meta {
  color: var(--paper-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.jeu-card__desc {
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.55;
}
.jeu-interest,
.jeu-reserve {
  justify-self: center;      /* bouton centré dans la grille de résultats (état « aucun résultat ») */
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}
.jeu-card .jeu-interest,
.jeu-card .jeu-reserve { display: inline-block; margin-top: 0.7rem; }
.jeu-card--reg { border-style: dashed; }   /* jeu du registre (non au catalogue) */
.jeu-card__img {
  display: block;
  max-width: 130px;
  max-height: 130px;
  width: auto;
  height: auto;
  margin: 0.5rem 0;
  border-radius: 6px;
}
.jeu-card__src {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--paper-dim);
}

/* ===================== Fenêtre de réservation ===================== */
.resa-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.resa-modal[hidden] { display: none; }
.resa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.resa-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ink-2);
  border: 1px solid rgba(224, 149, 43, 0.4);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.resa-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  background: none;
  border: 0;
  color: var(--paper-dim);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.resa-modal__close:hover { color: var(--paper); }
.resa-modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 0.3rem;
  padding-right: 1.5rem;
}
.resa-modal__game { color: var(--paper-dim); margin-bottom: 1rem; }
.resa-modal__game strong { color: var(--gold); }
.resa-form2 { display: flex; flex-direction: column; gap: 0.75rem; }
.resa-field2 {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--paper);
  font-size: 0.9rem;
}
.resa-field2 input,
.resa-field2 textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(224, 149, 43, 0.35);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  outline: none;
}
.resa-field2 input:focus,
.resa-field2 textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}
.resa-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--paper-dim);
  font-size: 0.83rem;
  line-height: 1.4;
}
.resa-consent input { margin-top: 0.15rem; flex: none; accent-color: var(--amber); }
.resa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.resa-form2__status { color: var(--amber-soft); font-size: 0.9rem; margin-top: 0.2rem; }

/* Bloc contact + Envoyer du formulaire « Réservez votre partie » */
.partie-contact {
  max-width: 460px;
  margin: 2.2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.partie-contact .btn { align-self: center; margin-top: 0.4rem; }
.partie-contact .resa-form2__status { text-align: center; }
.resa-title-row {
  position: relative;
  text-align: left;
}
.resa-title-row .section-title { margin-bottom: 0; text-align: left; }
#comment { overflow-x: clip; }         /* évite toute barre de défilement si le chalet déborde */
.resa-title-chalet {
  position: absolute;
  right: -7rem;                         /* poussé dans la marge de droite */
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: auto;
}
@media (max-width: 720px) {
  .resa-title-chalet {
    position: static;
    transform: none;
    display: block;
    width: 120px;
    margin: 0.8rem auto 0;
  }
}

.concept-delai {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--amber-soft);
  white-space: nowrap;
}
.concept-delai strong { color: var(--paper); }

.vedette-count {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.6rem;
  border: 2px solid var(--blood);   /* cadre rouge Ichor */
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);          /* blanc ivoire, comme le titre */
  vertical-align: middle;
  white-space: nowrap;
}
