/* Vitrine du jeu [D-103, D-170] : l'accueil du site et le guide de l'organisateur.
   Proposition A « Le seuil » : sobre et éditoriale, dans l'esprit du jeu (nuit, laiton, le logo).
   Mêmes tokens que le jeu (style.css). Un seul style de cadre (.v-panneau) pour toute la page. */

.vitrine { --v-largeur: 72rem; --v-gouttiere: clamp(1.25rem, 4vw, 3rem); overflow-x: hidden; }
.vitrine .accueil { position: relative; z-index: 1; max-width: var(--v-largeur); margin: 0 auto; padding: 0 var(--v-gouttiere) 5rem; display: grid; gap: clamp(4.5rem, 10vw, 7.5rem); }

/* --- Barre du haut : logo, menu, bouton ; elle reste en haut quand on descend --- */
.v-entete {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) max(var(--v-gouttiere), calc((100% - var(--v-largeur)) / 2 + var(--v-gouttiere))) 0.75rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.v-defile .v-entete { background: rgb(11 15 30 / 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: rgb(184 150 85 / 0.22); }
.v-marque { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 1.4rem; color: var(--laiton-clair); text-decoration: none; white-space: nowrap; }
.v-marque .v-logo { width: auto; height: 2.75rem; filter: drop-shadow(0 0 6px rgb(226 201 143 / 0.35)); transition: transform 0.4s ease, filter 0.4s ease; } /* le fantôme dans le trou de serrure [D-167] */
.v-marque:hover .v-logo { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 0 10px rgb(226 201 143 / 0.6)); }
.v-menu { display: flex; gap: 1.75rem; margin-left: auto; }
.v-menu a { color: var(--texte-doux); text-decoration: none; font-size: 0.95rem; white-space: nowrap; transition: color 0.2s ease; }
.v-menu a:hover, .v-menu a:focus-visible { color: var(--laiton-clair); }
.v-menu .v-menu-orga { display: none; } /* dans le menu replié seulement */
.v-entete-liens { display: flex; align-items: center; gap: 0.9rem; }
.v-bouton-orga { padding: 0.55rem 1.1rem; border: 1px solid var(--laiton); border-radius: 0.4rem; color: var(--laiton-clair); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.v-bouton-orga:hover, .v-bouton-orga:focus-visible { background: var(--laiton); color: var(--nuit); }
.v-entete-code { display: none; padding: 0.5rem 1rem; border-radius: 0.4rem; font-weight: 700; font-size: 0.9rem; color: var(--nuit); background: linear-gradient(#e9cf95, var(--laiton)); text-decoration: none; white-space: nowrap; }
.v-loin .v-entete-code { display: inline-block; animation: v-arrive 0.4s ease both; }
@keyframes v-arrive { from { opacity: 0; transform: translateY(-6px); } }
.v-burger { display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--laiton-voile); border-radius: 0.4rem; background: transparent; cursor: pointer; }
.v-burger span, .v-burger span::before, .v-burger span::after { display: block; width: 1.2rem; height: 2px; margin: 0 auto; background: var(--laiton-clair); content: ''; position: relative; transition: transform 0.25s ease, opacity 0.25s ease; }
.v-burger span::before { position: absolute; top: -6px; }
.v-burger span::after { position: absolute; top: 6px; }
.v-menu-ouvert .v-burger span { background: transparent; }
.v-menu-ouvert .v-burger span::before { transform: translateY(6px) rotate(45deg); }
.v-menu-ouvert .v-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Ouverture --- */
.v-ouverture { position: relative; display: grid; gap: 2.5rem; align-items: center; padding-top: 2rem; }
.v-ouverture-texte, .v-embleme, .v-faits { position: relative; z-index: 1; }
.v-ouverture-texte { display: grid; gap: 1.4rem; }
.v-surtitre { margin: 0; font-family: var(--police-capitales); letter-spacing: 0.14em; font-size: 0.92rem; color: var(--laiton); text-wrap: balance; }
.v-titre { margin: 0; font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: clamp(3.4rem, 9vw, 6.6rem); line-height: 0.95; color: var(--laiton-clair); text-shadow: 0 0 40px rgb(226 201 143 / 0.28); }
.v-accroche { margin: 0; max-width: 34rem; font-family: var(--police-titre); font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.4; color: var(--texte); text-wrap: pretty; }
.v-accroche em { color: var(--vert-clair); }
.v-code { display: grid; gap: 0.5rem; max-width: 26rem; }
.v-code-etiquette { font-size: 0.85rem; font-weight: 600; color: var(--texte-doux); letter-spacing: 0.03em; }
.v-code-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.v-code .champ-code { height: 3.2rem; margin: 0; font-size: 1.2rem; letter-spacing: 0.35em; text-align: center; text-transform: uppercase; }
.v-code .bouton { height: 3.2rem; width: auto; padding-inline: 1.6rem; }
.v-orga { margin: 0; }
.v-lien-fleche { color: var(--laiton-clair); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--laiton-voile); padding-bottom: 0.1rem; }
.v-lien-fleche:hover { border-bottom-color: var(--laiton-clair); }
.v-embleme { margin: 0; justify-self: center; }
.v-embleme img { display: block; width: auto; height: clamp(15rem, 40vw, 30rem); filter: drop-shadow(0 0 30px rgb(226 201 143 / 0.3)); animation: v-embleme 8s ease-in-out infinite; }
@keyframes v-embleme { 50% { transform: translateY(-10px); filter: drop-shadow(0 0 42px rgb(226 201 143 / 0.42)); } }
.v-faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-column: 1 / -1; }
.v-faits li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0.3rem 1rem; padding-top: 1.1rem; border-top: 1px solid rgb(184 150 85 / 0.45); }
.v-faits strong { color: var(--texte); font-weight: 600; }
.v-faits span { grid-column: 2; color: var(--texte-doux); font-size: 0.95rem; }
.v-icone { width: 1.9rem; height: 1.9rem; fill: none; stroke: var(--laiton-clair); stroke-width: 1.4; grid-row: span 2; }

/* --- Sections : surtitre, titre, puis le contenu --- */
.v-section { display: grid; gap: 1.75rem; }
.v-section p { margin: 0; }
.v-texte { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.v-h2 { margin: 0; font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.05; color: var(--laiton-clair); text-wrap: balance; }
.v-intro { max-width: 40rem; font-size: 1.08rem; color: var(--texte-doux); }
/* Rangée texte + capture du jeu (alternée avec .v-rangee-inverse sur grand écran) */
.v-rangee { display: grid; gap: 2.5rem; align-items: center; }

/* Le cadre unique de la page : panneaux, étapes, camps, chiffres */
.v-panneau, .v-camp, .v-etapes li, .v-chiffres > div, .v-besoins { border: 1px solid var(--bordure); border-radius: 0.5rem; background: rgb(23 26 45 / 0.72); transition: border-color 0.3s ease, transform 0.3s ease; }

/* Téléphones : les vraies captures du jeu, dans un cadre de laiton */
.v-telephone { margin: 0 auto; width: min(100%, 15rem); padding: 0.55rem; border-radius: 2.2rem; background: linear-gradient(145deg, #2a2d45, #10121f); border: 1px solid var(--laiton); box-shadow: 0 0 0 4px #0b0d18, 0 0 0 5px var(--laiton-voile), 0 30px 60px rgb(0 0 0 / 0.55), 0 0 80px rgb(195 163 255 / 0.12); }
.v-telephone img, .v-telephone video { display: block; width: 100%; height: auto; border-radius: 1.7rem; background: var(--nuit); }

/* Trois actes */
.v-actes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: acte; }
.v-actes li { position: relative; display: grid; gap: 0.4rem; padding-left: 3.6rem; counter-increment: acte; }
.v-actes li::before { content: counter(acte, upper-roman); position: absolute; left: 0; top: -0.15rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--laiton); font-family: var(--police-titre); font-style: italic; color: var(--laiton-clair); background: var(--nuit-claire); transition: box-shadow 0.6s ease; }
.v-actes li:nth-child(2)::before { border-color: var(--violet); color: var(--violet); }
.v-actes li:nth-child(3)::before { border-color: var(--danger); color: var(--danger); }
.v-actes li p:not(.v-acte-nom) { color: var(--texte-doux); }
.v-acte-nom { font-family: var(--police-capitales); letter-spacing: 0.08em; font-size: 1.15rem; color: var(--texte); }

/* Deux camps */
.v-camps { display: grid; gap: 1rem; }
.v-camp { padding: 1.1rem 1.25rem; display: grid; gap: 0.35rem; border-left-width: 3px; }
.v-camp p:not(.v-camp-nom) { color: var(--texte-doux); }
.v-camp-nom { font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 1.5rem; }
.v-camp-vivants { border-left-color: var(--vert); }
.v-camp-vivants .v-camp-nom { color: var(--vert-clair); }
.v-camp-envoutes { border-left-color: var(--violet); }
.v-camp-envoutes .v-camp-nom { color: var(--violet); }

/* Chiffres */
.v-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; }
.v-chiffres > div { display: grid; gap: 0.2rem; padding: 1.2rem 0.5rem; }
.v-chiffres p:not(.v-chiffre) { color: var(--texte-doux); font-size: 0.95rem; }
.v-chiffre { font-family: var(--police-titre); font-weight: 600; font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 1; color: var(--laiton-clair); font-variant-numeric: lining-nums tabular-nums; }
.v-chiffres > div:hover { transform: translateY(-3px); border-color: var(--laiton); }
.v-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; min-width: 0; }
.v-liste li { padding-left: 1.4rem; position: relative; color: var(--texte-doux); }
.v-liste li::before { content: '✦'; position: absolute; left: 0; color: var(--violet); }
.v-liste strong { color: var(--texte); }

/* Préparer */
.v-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: etape; }
.v-etapes li { counter-increment: etape; display: grid; gap: 0.35rem; padding: 1.2rem 1.25rem 1.2rem 4.2rem; position: relative; }
.v-etapes li::before { content: counter(etape); position: absolute; left: 1.2rem; top: 1rem; font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--laiton); }
.v-etapes li:hover { border-color: var(--laiton); }
.v-etapes li p:not(.v-etape-titre) { color: var(--texte-doux); }
.v-etape-titre { font-family: var(--police-capitales); letter-spacing: 0.08em; color: var(--laiton-clair); font-size: 1.1rem; }
.v-besoins { display: grid; gap: 0.6rem; padding: 1.25rem 1.4rem; }
.v-besoins ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--texte-doux); }

/* Principes */
.v-principes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.5rem; padding: 2.25rem 0; border-top: 1px solid var(--laiton-voile); border-bottom: 1px solid var(--laiton-voile); }
.v-principes > div { display: grid; gap: 0.35rem; text-align: center; }
.v-principes p:not(.v-principe) { color: var(--texte-doux); }
.v-principe { font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 1.6rem; color: var(--vert-clair); }

/* Fin */
.v-fin { text-align: center; justify-items: center; }
.v-fin p { color: var(--texte-doux); }
.v-fin-boutons { display: grid; gap: 0.75rem; width: 100%; max-width: 22rem; }
.v-fin-boutons .bouton { width: 100%; font-size: clamp(0.95rem, 4.3vw, 1.05rem); letter-spacing: 0.03em; padding-inline: 0.75rem; }
#preparer .v-fin-boutons { justify-self: start; }
.v-auteurs { font-family: var(--police-titre); font-style: italic; font-size: 1.25rem; }
.v-auteurs strong { color: var(--laiton-clair); font-weight: 600; }

/* --- Pied de page en colonnes --- */
.v-pied { position: relative; z-index: 1; padding: 3rem max(var(--v-gouttiere), calc((100% - var(--v-largeur)) / 2 + var(--v-gouttiere))) calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgb(184 150 85 / 0.25); background: rgb(8 10 20 / 0.6); color: var(--texte-doux); font-size: 0.92rem; display: grid; gap: 2rem; }
.v-pied p { margin: 0; }
.v-pied a { color: var(--texte-doux); text-decoration: none; }
.v-pied a:hover, .v-pied a:focus-visible { color: var(--laiton-clair); }
.v-pied-colonnes { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.v-pied-colonnes > * { display: grid; gap: 0.55rem; align-content: start; }
.v-pied-marque { gap: 0.9rem; }
.v-pied-marque .v-marque { color: var(--laiton-clair); }
.v-pied-titre { font-family: var(--police-capitales); letter-spacing: 0.12em; color: var(--laiton); font-size: 0.95rem; }
.v-pied-mentions { font-size: 0.8rem; opacity: 0.8; }
.v-installer { justify-self: start; width: auto; }
.v-installer-haut { justify-self: start; margin-block: 0.6rem; }

/* --- Téléphone : menu replié derrière un bouton --- */
@media (max-width: 899px) {
  .v-entete { gap: 1rem; }
  .v-burger { display: inline-block; }
  .v-bouton-orga { display: none; }
  .v-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 0.5rem var(--v-gouttiere) 1rem; background: rgb(11 15 30 / 0.97); border-bottom: 1px solid rgb(184 150 85 / 0.3); }
  .v-menu-ouvert .v-menu { display: flex; }
  .v-menu a { padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--bordure); }
  .v-menu .v-menu-orga { display: block; color: var(--laiton-clair); font-weight: 700; border-bottom: 0; }
  .v-entete-liens { margin-left: auto; }
  .v-ouverture { text-align: left; }
}
@media (max-width: 480px) {
  .v-marque { font-size: 1.15rem; }
  .v-marque .v-logo { height: 2.3rem; }
  .v-entete-code { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
  .v-chiffres { gap: 0.5rem; }
  .v-chiffres p:not(.v-chiffre) { font-size: 0.82rem; line-height: 1.35; }
  .v-actes li { padding-left: 3.2rem; }
  .v-etapes li { padding-left: 3.4rem; }
  .v-etapes li::before { left: 0.9rem; }
}
@media (max-width: 360px) {
  .v-chiffres { grid-template-columns: minmax(0, 1fr); }
  .v-chiffres > div { grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: 0.8rem; padding: 0.7rem 1rem; }
}

/* --- Tablette et plus : deux colonnes --- */
@media (min-width: 700px) {
  .v-ouverture { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); padding-top: 3.5rem; }
  .v-faits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .v-rangee { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: 3.5rem; }
  .v-rangee-inverse { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); }
  .v-rangee-inverse > .v-telephone { order: -1; }
  .v-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-actes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .v-actes li { padding: 3.6rem 0 0; }
  .v-fin-boutons { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
}

/* --- Guide de l'organisateur [D-105] --- */
.vitrine .g-page { gap: 2.5rem; max-width: 52rem; }
.g-tete { display: grid; gap: 1.1rem; padding-top: 2rem; }
.g-titre { margin: 0; }
.g-sommaire ol { margin: 0; padding-left: 1.3rem; columns: 2 12rem; column-gap: 1.5rem; }
.g-sommaire li { margin-bottom: 0.3rem; break-inside: avoid; }
.g-sommaire a { color: var(--laiton-clair); }
.g-etape { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; scroll-margin-top: 1rem; }
.g-num {
  margin: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--laiton);
  font: italic 600 1.4rem var(--police-titre);
  color: var(--laiton-clair);
  background: var(--nuit-claire);
}
.g-corps { display: grid; gap: 0.8rem; min-width: 0; }
.g-corps h2 { margin: 0.2rem 0 0; font: italic 600 1.9rem/1.1 var(--police-titre); color: var(--laiton-clair); }
.g-corps p, .g-corps ul, .g-corps ol, .g-corps dl { margin: 0; color: var(--texte-doux); }
.g-corps strong { color: var(--texte); }
.g-corps ul, .g-sous { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.g-astuce { padding: 0.7rem 0.9rem; border-left: 3px solid var(--violet); background: rgb(195 163 255 / 0.07); font-size: 0.95rem; }
.g-astuce::before { content: 'Astuce · '; font-family: var(--police-capitales); letter-spacing: 0.06em; color: var(--violet); }
.g-code { font-family: var(--police-capitales); letter-spacing: 0.2em; color: var(--laiton-clair); }
.g-reglages { display: grid; gap: 0.6rem; }
.g-reglages dt { font-family: var(--police-capitales); letter-spacing: 0.06em; color: var(--laiton-clair); }
.g-reglages dd { margin: 0 0 0.3rem; }
.v-pied a { color: var(--laiton-clair); }
@media (max-width: 600px) {
  .g-etape { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .g-num { width: 2.2rem; height: 2.2rem; font-size: 1.15rem; }
}
.v-installer { max-width: 26rem; }


/* --- Vitrine animée [D-163] : la nuit de l'ouverture, apparitions au défilement, téléphones qui flottent.
   Tout s'arrête pour qui préfère moins de mouvement ; sans JavaScript, rien n'est caché. --- */
.v-symboles { position: absolute; }
.v-nuit { position: absolute; inset: -6rem calc(50% - 50vw) -2rem; z-index: 0; pointer-events: none; overflow: hidden; }
.v-lune {
  position: absolute;
  top: 7rem;
  right: max(6%, calc(50% - 31rem)); /* derrière le logo de l'ouverture */
  width: clamp(8rem, 22vw, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0, #efe2c2 45%, #c9b48a 70%, #a8946c);
  box-shadow: 0 0 60px 18px rgb(255 240 200 / 0.18), 0 0 160px 60px rgb(195 163 255 / 0.08);
  opacity: 0.85;
  animation: v-lune 9s ease-in-out infinite;
}
.v-lune::after { /* cratères discrets */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 58%, rgb(150 130 95 / 0.35) 0 9%, transparent 10%), radial-gradient(circle at 40% 70%, rgb(150 130 95 / 0.25) 0 6%, transparent 7%), radial-gradient(circle at 70% 30%, rgb(150 130 95 / 0.2) 0 5%, transparent 6%);
}
@keyframes v-lune { 50% { box-shadow: 0 0 70px 24px rgb(255 240 200 / 0.24), 0 0 180px 70px rgb(195 163 255 / 0.1); } }

/* La lanterne et ses fantômes, sur toute la page [D-164] (js/lanterne.js) : une couche fixe de la taille
   de l'écran ; les fantômes défilent avec la page et ne se voient qu'à la lueur. */
.v-nuit-page { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.v-nuit-defile {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
}
.v-fantome { position: absolute; opacity: 0; will-change: opacity, transform; color: rgb(232 236 255 / 0.32); filter: drop-shadow(0 0 16px rgb(195 220 255 / 0.45)); animation: v-flotte 7s ease-in-out infinite; } /* translucides : le texte passe toujours devant, lisible */
.v-fantome svg { display: block; width: 100%; height: 100%; }
/* Chauve-souris cachée : silhouette sombre au liseré doré, comme éclairée par la lanterne ; elle bat des ailes. */
.v-chauve-cachee { color: #1d1830; filter: drop-shadow(0 0 2px rgb(255 214 140 / 0.9)) drop-shadow(0 0 10px rgb(255 214 140 / 0.35)); }
.v-chauve-cachee svg { animation: v-ailes 0.45s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes v-ailes { to { transform: scaleY(0.45); } }
@keyframes v-flotte {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(1.2rem, -1.4rem) rotate(4deg); }
}
/* La lueur : une tache de 26rem, déplacée (jamais redessinée) [D-169]. */
.v-lanterne {
  position: absolute;
  left: -13rem;
  top: -13rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 140 / 0.13), rgb(255 214 140 / 0.04) 60%, transparent);
  will-change: transform;
}
.v-chauve-souris { position: absolute; top: 6rem; left: -10vw; width: 3.6rem; height: 1.5rem; color: #05060c; filter: drop-shadow(0 0 6px rgb(255 240 200 / 0.25)); animation: v-vol 19s linear infinite; animation-delay: 4s; }
@keyframes v-vol {
  0% { transform: translate(0, 0) scaleY(1); }
  2% { transform: translate(8vw, -1rem) scaleY(0.4); }
  4% { transform: translate(16vw, 0.5rem) scaleY(1); }
  6% { transform: translate(24vw, -1.5rem) scaleY(0.4); }
  8% { transform: translate(32vw, 0) scaleY(1); }
  10% { transform: translate(40vw, -2rem) scaleY(0.4); }
  12% { transform: translate(48vw, -0.5rem) scaleY(1); }
  14% { transform: translate(56vw, -2.5rem) scaleY(0.4); }
  16% { transform: translate(64vw, -1rem) scaleY(1); }
  18% { transform: translate(72vw, -3rem) scaleY(0.4); }
  20% { transform: translate(80vw, -1.5rem) scaleY(1); }
  22% { transform: translate(88vw, -3.5rem) scaleY(0.4); }
  24%, 100% { transform: translate(130vw, -4rem) scaleY(1); }
}

/* Le titre vacille comme une flamme. */
.v-titre { animation: v-flamme 7s infinite; }
@keyframes v-flamme {
  0%, 100% { text-shadow: 0 0 40px rgb(226 201 143 / 0.28); opacity: 1; }
  42% { text-shadow: 0 0 46px rgb(226 201 143 / 0.36); }
  44% { opacity: 0.86; text-shadow: 0 0 22px rgb(226 201 143 / 0.18); }
  45% { opacity: 1; }
  47% { opacity: 0.92; }
  48% { opacity: 1; text-shadow: 0 0 52px rgb(226 201 143 / 0.4); }
  80% { text-shadow: 0 0 34px rgb(226 201 143 / 0.24); }
}

/* Les téléphones flottent doucement. */
.v-telephone { animation: v-telephone 7s ease-in-out infinite; }
.v-detail .v-telephone { animation-delay: -2.5s; }
.v-rangee-inverse > .v-telephone { animation-delay: -4s; }
@keyframes v-telephone { 50% { transform: translateY(-10px); } }

/* Apparitions au défilement (seulement si le JavaScript a pris la main). */
.v-anime .v-a-reveler { opacity: 0; transform: translateY(22px); }
.v-anime .v-a-reveler.v-revele { opacity: 1; transform: none; transition: opacity 0.8s ease var(--delai, 0s), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delai, 0s); }
.v-actes li.v-revele::before { box-shadow: 0 0 18px rgb(226 201 143 / 0.35); }
.v-actes li:nth-child(2).v-revele::before { box-shadow: 0 0 18px rgb(195 163 255 / 0.45); }
.v-actes li:nth-child(3).v-revele::before { box-shadow: 0 0 18px rgb(240 161 145 / 0.45); }

@media (prefers-reduced-motion: reduce) {
  .v-lune, .v-fantome, .v-chauve-souris, .v-titre, .v-telephone, .v-embleme img, .v-chauve-cachee svg { animation: none; }
  .v-chauve-souris { display: none; }
  .v-anime .v-a-reveler { opacity: 1; transform: none; }
}


/* Téléphone : le logo d'abord (comme une couverture), la lune derrière lui [D-170]. */
@media (max-width: 699px) {
  .v-embleme { order: -1; }
  .v-embleme img { height: 13rem; }
  .v-lune { top: 6.5rem; right: calc(50% - 4.5rem); width: 9rem; opacity: 0.45; }
  .v-titre, .v-surtitre, .v-accroche { text-align: center; justify-self: center; }
  .v-code, .v-orga { justify-self: stretch; text-align: center; }
  .v-code { max-width: none; }
}
