/* Le voyage jusqu'aux grilles : l'entrée unique de Droits Divins (vitrine et jeu), concept validé par Paul le
   3 novembre 2026. La route au crépuscule, le vol au-dessus de Bourges, la descente vers la porte Bourbonnoux, puis le
   parchemin d'entrée devant les grilles fermées.

   Tailles de texte prises dans les jetons --dd-t-* et espacements en --dd-s* de ui-kit/css/tokens.css (règle
   droits-divins-design-systeme) ; l'écran des grilles pose sa grille sur .dd-ecran (ui-kit/css/ecran.css). Trois voix
   (décision de Paul du 2 novembre 2026) : IM Fell English en petites capitales pour les titres, en italique pour le
   récit, Source Sans 3 pour l'interface (polices/polices.css). Reprend de l'ancienne vitrine (« La lettre d'appel », 2 novembre 2026) les
   tableaux, les figures et leurs ombres, le logotype et la lettre ; de l'ancien accueil (maquettes/accueil) l'affiche,
   le parchemin et ses onglets. */

.vt {
  --vt-grave: "IM Fell English SC", Georgia, serif;
  --vt-lettre: "IM Fell English", Georgia, serif;
  --dd-font-ui: "Source Sans 3", system-ui, sans-serif;
  --dd-font-titre: var(--vt-lettre);
  --vt-nuit: #0d0a07;
  --vt-nuit-2: #17120c;
  --vt-encre: #1d1810;
  --vt-filet: rgba(212, 160, 23, .45);
  --vt-ombre-texte: 0 1px 2px rgba(10, 7, 4, .8), 0 0 24px rgba(10, 7, 4, .55);
  --vt-gravure: .06em;
  margin: 0;
  background: var(--vt-nuit);
  color: var(--dd-creme);
  overflow-x: clip;
}
html { scroll-behavior: smooth; background: #0d0a07; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.vt-capture { scroll-behavior: auto; }
.vt main { display: block; }
.vt a { color: inherit; }
.vt :focus-visible { outline: 2px solid var(--dd-or-clair); outline-offset: 3px; box-shadow: none; }

.vt-sauter { position: absolute; left: var(--dd-s4); top: var(--dd-s4); z-index: 60; padding: var(--dd-s2) var(--dd-s4); border-radius: var(--dd-r-m);
  background: var(--dd-or); color: var(--dd-encre); font: 700 var(--dd-t-corps) / 1.2 var(--dd-font-ui); transform: translateY(-200%); }
.vt-sauter:focus { transform: none; }

.vt-grave { margin: 0; font: 400 var(--dd-t-titre) / var(--dd-interligne-titre) var(--vt-grave); letter-spacing: var(--vt-gravure); text-transform: uppercase;
  text-wrap: balance; color: var(--dd-or-pale); text-shadow: var(--vt-ombre-texte); }
.vt-grave--une { font-size: var(--dd-t-affiche); max-width: 28ch; margin-inline: auto; }
.vt-surtitre { margin: 0 0 var(--dd-s3); font: 700 var(--dd-t-note) / 1.3 var(--dd-font-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--dd-or-clair);
  display: flex; align-items: center; gap: var(--dd-s3); }
.vt-surtitre::before { content: ""; width: var(--dd-s6); height: 1px; background: var(--vt-filet); }
.vt-voix { margin: var(--dd-s4) 0 0; font: italic 400 var(--dd-t-titre-boite) / 1.45 var(--vt-lettre); color: var(--dd-creme); text-shadow: var(--vt-ombre-texte); text-wrap: pretty; max-width: 34em; }
.vt-petit { margin: var(--dd-s3) 0 0; font: 400 var(--dd-t-petit) / var(--dd-interligne) var(--dd-font-ui); color: var(--dd-sombre-muet); }
/* ------------------------------------------------------------------ Scènes */
.vt-scene { position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; }
.vt-contenu { position: relative; z-index: 6; }

/* Un tableau : le cadre de la scène, un plan 16:9 qui le couvre, calé en bas (comme la cinématique) */
.vt-cadre { position: absolute; inset: 0; overflow: hidden; container-type: size; z-index: 0; background: var(--vt-nuit); }
.vt-plan { position: absolute; bottom: 0;
  width: max(100cqw, 100cqh * 16 / 9); height: max(100cqh, 100cqw * 9 / 16);
  left: calc((100cqw - max(100cqw, 100cqh * 16 / 9)) * var(--cx, .5)); }
.vt-fond { position: absolute; inset: 0; transform: scale(var(--zoom, 1)); transform-origin: var(--origine, 50% 100%); }
.vt-fond > img, .vt-fond > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; }
.vt-fond > video { pointer-events: none; }
/* La boucle du téléphone est déjà recadrée en hauteur : elle se pose sur sa bande du tableau */
.vt-fond > video.is-tel { width: calc(100% * 81 / 256); left: calc((100% - 100% * 81 / 256) * var(--k, .5)); right: auto; object-fit: fill; }

.vt-fig { position: absolute; z-index: 2; left: calc(var(--x) * 1%); bottom: calc((100 - var(--pied)) * 1%); height: calc(var(--h) * 1%);
  width: max-content; transform: translateX(-50%); --sk: -55deg; --sy: .25; --pg: .3; --pd: .7; }
.vt .vt-fig > img { position: relative; z-index: 2; display: block; height: 100%; width: auto; max-width: none; filter: var(--f, none); }
.vt-ombre { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.vt .vt-sil { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  transform-origin: calc((var(--pg) + var(--pd)) / 2 * 100%) 100%;
  transform: translateY(calc(min(var(--sy), 0) * 40% - 2%)) skewX(var(--sk)) scaleY(var(--sy));
  filter: brightness(0) blur(1.8px); opacity: min(.92, calc(var(--op) + .42));
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .9) 25%, rgba(0, 0, 0, .4) 70%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .9) 25%, rgba(0, 0, 0, .4) 70%, rgba(0, 0, 0, 0) 100%); }
.vt-contact { position: absolute; bottom: 0; left: calc(var(--pg) * 100%); width: calc((var(--pd) - var(--pg)) * 100%); height: 3.5%;
  transform: scaleX(1.18); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(12, 7, 3, min(.92, calc(var(--op) + .45))) 0%, rgba(12, 7, 3, calc(var(--op) + .1)) 45%, rgba(20, 12, 6, 0) 72%); }

/* Le voile passe par-dessus les figures, sous le texte */
.vt-voile { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 6, 4, .82) 0%, rgba(8, 6, 4, .42) 22%, rgba(8, 6, 4, 0) 44%),
              radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%); }

/* ------------------------------------------------------------------ Le logotype et le sceau */
/* Le logotype règle l'échelle des titres (décision de Paul du 2 novembre 2026 : « proportionné par rapport au logo ») :
   sa hauteur suit la taille du grand titre, prise dans les jetons, pour que la capitale du titre reste à 62 % de la
   capitale du logotype (celle-ci fait 69 % de la hauteur de l'image, comme celle d'IM Fell English SC fait 69 % du
   corps). Les titres des autres scènes (--dd-t-titre) restent sous ce grand titre, vers 45 % : la même échelle partout,
   sur téléphone aussi. */
.vt { --vt-logo-h: calc(var(--dd-t-affiche) / .62); }
.vt .vt-logo { height: var(--vt-logo-h); width: auto; max-width: 80vw; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
.vt-sceau { position: absolute; z-index: 6; left: 50%; bottom: var(--dd-marge); width: var(--dd-med-l); height: var(--dd-med-l); margin-left: calc(var(--dd-med-l) / -2);
  display: grid; place-items: center; border-radius: 50%; animation: vt-invite 3.2s ease-in-out infinite; }
.vt .vt-sceau img { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); transition: transform var(--dd-moyen) var(--dd-courbe); }
.vt-sceau:hover img, .vt-sceau:focus-visible img { transform: scale(1.08) rotate(-6deg); }
.vt-sceau::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--dd-s5); background: linear-gradient(var(--dd-or-clair), rgba(232, 197, 71, 0)); }
@keyframes vt-invite { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--dd-s2)); } }
@keyframes vt-eclot { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes vt-monte { from { opacity: 0; transform: translateY(var(--dd-s4)); } to { opacity: 1; transform: none; } }
/* ------------------------------------------------------------------ Le passé et la lettre (dans la boîte de gauche des grilles) */
.vt-aide { font: 400 var(--dd-t-note) / 1.3 var(--dd-font-ui); color: var(--dd-encre-muette); text-transform: none; letter-spacing: 0; }
.vt-champ--age .vt-aide { display: block; margin-top: var(--dd-s1); }
.vt-segments { margin: 0; padding: 0; border: 0; }
.vt-segments legend { padding: 0; }
.vt-segments label { display: inline-flex; cursor: pointer; }
.vt-segments input { position: absolute; opacity: 0; }
.vt-segments span { display: inline-flex; align-items: center; min-height: var(--dd-champ); padding: 0 var(--dd-s5); border: 1px solid rgba(30, 58, 95, .45); background: rgba(255, 255, 255, .35);
  font: 600 var(--dd-t-corps) / 1 var(--dd-font-ui); color: var(--dd-indigo); }
.vt-segments label:first-of-type span { border-radius: var(--dd-r-m) 0 0 var(--dd-r-m); }
.vt-segments label:last-of-type span { border-radius: 0 var(--dd-r-m) var(--dd-r-m) 0; border-left: 0; }
.vt-segments input:checked + span { background: var(--dd-indigo); color: var(--dd-creme); }
.vt-segments input:focus-visible + span { outline: 2px solid var(--dd-or); outline-offset: 2px; }
.vt .dd-saisie { min-height: var(--dd-champ); padding: 0 var(--dd-s3); border: 1px solid rgba(58, 52, 40, .35); border-radius: var(--dd-r-m); background: rgba(255, 255, 255, .7);
  font: 400 var(--dd-t-corps) / 1.2 var(--dd-font-ui); color: var(--vt-encre); }
.vt-champ--age .dd-saisie { width: 6rem; }
.vt-erreur, .vt-reussite { flex-basis: 100%; min-height: 1.4em; margin: var(--dd-s2) 0 0; text-align: center; font: 600 var(--dd-t-petit) / 1.4 var(--dd-font-ui); color: var(--dd-cramoisi-fonce); }
.vt-reussite { color: var(--dd-mousse); }

.vt-passes { max-width: 74rem; margin: var(--dd-s6) auto 0; display: grid; gap: var(--dd-s5); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.vt-passes:empty { display: none; }
.vt-histoire { display: flex; flex-direction: column; padding: var(--dd-s5); border-radius: var(--dd-r-m); background: var(--dd-papier);
  border: 1px solid rgba(160, 120, 40, .45); box-shadow: var(--dd-ombre); transition: opacity .5s ease, transform .6s var(--dd-courbe), box-shadow .3s ease;
  animation: vt-monte .9s var(--dd-courbe) both; }
.vt-histoire:nth-child(2) { animation-delay: .15s; } .vt-histoire:nth-child(3) { animation-delay: .3s; }
.vt-histoire.is-ecartee { opacity: .45; transform: scale(.98); }
.vt-histoire.is-gardee { box-shadow: 0 0 0 2px var(--dd-or), var(--dd-ombre-forte); }
.vt-histoire__lieu { margin: 0; font: 700 var(--dd-t-note) / 1.3 var(--dd-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #7a5b16; }
.vt-histoire__nom { margin: var(--dd-s1) 0 0; font: 400 var(--dd-t-titre-boite) / 1.2 var(--vt-grave); letter-spacing: .06em; text-transform: uppercase; color: var(--vt-encre); }
.vt-histoire__metier { margin: var(--dd-s1) 0 0; font: 400 var(--dd-t-petit) / 1.3 var(--dd-font-ui); color: var(--dd-encre-muette); }
.vt-histoire__accroche { margin: var(--dd-s4) 0 0; min-height: 2.8em; font: italic 500 var(--dd-t-fort) / 1.4 var(--vt-lettre); color: var(--vt-encre); }
.vt-histoire__recit { margin: var(--dd-s3) 0 0; font: 400 var(--dd-t-corps) / var(--dd-interligne) var(--vt-lettre); color: var(--dd-encre-douce); flex: 1; }
.is-plume::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--dd-encre-douce); animation: vt-plume .8s steps(2) infinite; }
@keyframes vt-plume { 50% { opacity: 0; } }
.vt-histoire__faits { margin: var(--dd-s4) 0 0; display: grid; gap: var(--dd-s2); font: 400 var(--dd-t-petit) / 1.35 var(--dd-font-ui); opacity: 0; transition: opacity .6s ease; }
.vt-histoire__faits dt { font-weight: 700; color: var(--dd-encre-muette); }
.vt-histoire__faits dd { margin: 0; }
.vt-histoire__garder { margin-top: var(--dd-s4); align-self: flex-start; opacity: 0; transition: opacity .6s ease; }
.vt-histoire.is-ecrite .vt-histoire__faits, .vt-histoire.is-ecrite .vt-histoire__garder { opacity: 1; }

.vt-lettre-zone { max-width: 70rem; margin: var(--dd-s7) auto 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--dd-s7); align-items: center; }
.vt-lettre-zone[hidden] { display: none; }
.vt-lettre { position: relative; aspect-ratio: 1377 / 1984; width: min(100%, 32rem, calc((100vh - 2 * var(--dd-s5)) * 1377 / 1984)); justify-self: center;
  padding: 12% 12% 15%; background: url("../images/papier.webp") center / 100% 100% no-repeat; color: var(--vt-encre);
  filter: drop-shadow(0 22px 40px rgba(60, 40, 10, .35)); outline: none; display: flex; flex-direction: column; }
.vt-lettre.is-ouverte { animation: vt-deplie 1.4s var(--dd-courbe) both; transform-origin: 50% 0; }
@keyframes vt-deplie { 0% { opacity: 0; transform: perspective(1200px) rotateX(70deg) scale(.9); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.vt-lettre__ecu { width: 20%; margin: 0 auto var(--dd-s2); }
.vt-lettre__ecu .dd-ecu { display: block; width: 100%; height: auto; aspect-ratio: 616 / 806; }
.vt-lettre__ecu .dd-ecu > svg, .vt-lettre__ecu .dd-ecu > img { width: 100%; height: 100%; }
.vt-lettre__lieu { margin: 0; text-align: right; font: italic 400 var(--dd-t-petit) / 1.3 var(--vt-lettre); color: var(--dd-encre-muette); }
.vt-lettre__titre { margin: var(--dd-s3) 0 var(--dd-s2); font: 400 var(--dd-t-fort) / 1.3 var(--vt-grave); letter-spacing: .06em; text-transform: uppercase; }
.vt-lettre__corps p { margin: 0 0 var(--dd-s2); font: italic 400 var(--dd-t-corps) / 1.45 var(--vt-lettre); }
.vt-lettre__signe { margin: auto 0 0; padding-top: var(--dd-s3); font: italic 400 var(--dd-t-petit) / 1.4 var(--vt-lettre); color: var(--dd-encre-douce); }
.vt .vt-lettre__cire { position: absolute; right: 10%; bottom: 6%; width: 21%; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 4px 6px rgba(60, 20, 10, .45)); }
.vt-lettre.is-ouverte .vt-lettre__cire { animation: vt-cachet .7s 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes vt-cachet { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.vt-lien { font: 700 var(--dd-t-corps) / 1.3 var(--dd-font-ui); color: var(--dd-indigo); text-underline-offset: 3px; }
/* ------------------------------------------------------------------ Pied de page */
.vt-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--dd-s3) var(--dd-s5);
  padding: var(--dd-s5) var(--dd-marge); background: #0a0806; border-top: 1px solid rgba(212, 160, 23, .18);
  font: 400 var(--dd-t-note) / 1.4 var(--dd-font-ui); color: var(--dd-sombre-muet); }
.vt-pied__liens { display: flex; flex-wrap: wrap; gap: var(--dd-s2) var(--dd-s5); }
.vt-pied__liens a { color: var(--dd-sombre-muet); text-underline-offset: 3px; }
.vt-pied__liens a:hover, .vt-pied__liens a:focus-visible { color: var(--dd-sombre-texte); }
/* ================================================================== Le voyage */
html { scroll-behavior: auto; }
.vy { min-height: 100%; }
.vy main { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ La scène fixe */
.vy-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #2a1d12; contain: strict; }
.vy-tableau, .vy-3d, .vy-porte { position: absolute; inset: 0; }
.vy-tableau { opacity: 0; will-change: opacity, transform; }
.vy-tableau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 100%); transform-origin: var(--origine, 50% 50%); }
/* Le premier écran : le tableau de la route, tout de suite, pendant que la 3D se charge derrière */
.vy-tableau--route { opacity: 1; }
/* L'écran noir du départ (quatrième passage : six secondes à la tablette) : le tableau se montre tout de suite, sans fondu
   depuis le noir ; avant même son arrivée, une miniature de 40 pixels du même tableau, écrite dans cette feuille, tient sa
   place. Le léger rapprochement reste. */
.vy-tableau--route { background: #2a1d12 url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAWACgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDA0LQZdXjkkhcJ5RPzkZX2BI5rrtO0y0t7RIrg4nIywJ3Ip9s/yrhtF1SSwDlG2ZGCcnP5VprrV1JtH2l1LdMjivMqwqOT10O+DjY37vTbNX3zToxbO3kLnHvUCwCCXetqzqBwzYOPfI4rAn1OadQJZw/pu59+KZDqVzFGEhncJ12rnrRGnK243ONzoruf5QIYnQEc5OaK52XUr3nMknGM5FFaRi0iHJMwAzB+3txWhbTtDg4BPXpRRW80mZQZbN61wMSIv1Awap3AkibIYc8g0UVkkk7I0k7q40XsoH7wlzjqSTRRRWnKiLs//9k=") 52% 100% / cover no-repeat; }
.vy-tableau--route > img { --origine: 52% 42%; animation: vy-approche 2.4s var(--dd-courbe) both; }
@keyframes vy-approche { from { transform: scale(1.04); } to { transform: none; } }
.vy-tableau--ville > img { --pos: 50% 50%; filter: sepia(.35) saturate(1.05) brightness(.82) contrast(1.05); }
/* En attendant la vue de la ville et le tableau de la porte (réseau lent) : une teinte de crépuscule et une miniature
   floue de 1 ko, jamais le noir (test des vingt visiteurs, T2). L'image, une fois là, se pose par-dessus. */
.vy-tableau--ville { background: #3b2a1a url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCAAeACgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCS4nMhxu4HGKrmQAY5GfQ4pkjfN82MZoxlsZ9x7/SvOWh2WuSecwA2uxHTOf50+N4iu3jPftmoHAXGwlu5Xqah5Vjt6E80WGy/Htxn5dwOOgyBRVVZdpGRkr0+lFZyjqUnYUlQzL1Abt2oYERttwwz9auPaJ5hU7nzzy2P5VC1tluFQHrwT+NWmu5OpX2gpyPL29sdaYfugFtvNXFgMpJODjg5J5FReV8gOdqd9vWnzINSBImJ45Uck5xRV6G3gaQqqtkHJLUVLmhqDP/Z") 50% 50% / cover no-repeat; }
.vy-porte .vt-fond { background: #3a2a1b url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCAAXACgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDR0MSXVj5k+xhnCkdaf9ptpZRGrAk5xu4HHFcxp+tXNralI5PkznB7H2qJ7ppepGCcmvNVOV3c7m0b97eW9tI8bqWkXB2p3zTYbm3uJFjiX5ym7Dfy+tYzyCaS3Ab5mXbk5IyKYbiS1MUsRCPlgCRn1FaK9rXI0vc2b1nji3yY2r0AFFYVzez3CEvKGbpxxRVRUhtozo5Cvpg9eKuwSoq/NGh/CiirkiYlpJ7cYPkBSOhWmymGTpk+zCiis7F3KkhjUHMYH0FFFFWkS9D/2Q==") 50% 100% / cover no-repeat; }
.vy-tableau--ville::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(105deg, rgba(255, 170, 80, .34) 0%, rgba(255, 150, 70, .12) 45%, rgba(60, 40, 80, .28) 100%); mix-blend-mode: soft-light; }
.vy-tableau--ville::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to top, rgba(10, 7, 4, .78) 0%, rgba(10, 7, 4, .4) 30%, rgba(10, 7, 4, 0) 55%); }

.vy-3d { opacity: 0; transition: opacity .35s linear; }
.vy-3d > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* La 3D se fond au défilement par-dessus le tableau de la route (js/voyage.js), jamais d'elle-même */
[data-voyage="peint"] .vy-3d, [data-voyage="fondu"] .vy-3d { display: none; }

/* Les pastilles des gens en ligne, posées par la scène sur les lieux (maquettes/bourges/scene.js) */
.vy-3d .bg-etiquettes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vy-3d .bg-etiquette { position: absolute; left: 0; top: 0; padding: 2px 9px; border-radius: var(--dd-pill); white-space: nowrap; opacity: 0; visibility: hidden;
  transition: opacity .25s ease; font: 600 var(--dd-t-note) / 1.3 var(--dd-font-ui); }
.vy-3d .bg-etiquette.is-vue { opacity: 1; visibility: visible; }
.vy-sans-pastilles .vy-3d .bg-etiquettes { opacity: 0; transition: opacity .6s ease; }
.vy-3d .bg-etiquettes { transition: opacity .6s ease; }
.vy-3d .bg-etiquette--presence { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; background: rgba(252, 246, 230, .95); color: var(--dd-encre);
  box-shadow: 0 2px 8px rgba(20, 12, 4, .4); }
.vy-3d .dd-point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2e8b57; box-shadow: 0 0 0 2px rgba(46, 139, 87, .25); }

/* La porte Bourbonnoux : le tableau peint, sans agrandissement, pour que les poses de Paul tombent juste */
.vy-porte { opacity: 0; will-change: opacity, transform; }
.vy-porte .vt-plan { transform-origin: 58.65% 61%; }
.vy-voile--porte { background:
  linear-gradient(90deg, rgba(10, 7, 4, .66) 0%, rgba(10, 7, 4, .28) 32%, rgba(10, 7, 4, 0) 48%),
  linear-gradient(to top, rgba(10, 7, 4, .55) 0%, rgba(10, 7, 4, 0) 26%),
  radial-gradient(ellipse at 60% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3) 100%); }
/* Les grilles fermées : une herse de bois ferré, dessinée dans l'arche du tableau (mesurée sur
   maquettes/portes/fond-porte-bourbonnoux.jpg : 55,7 à 61,6 % en largeur, 49,8 à 71,6 % en hauteur), découpée en ogive.
   Sous les figures : le garde et les voyageurs restent devant. */
.vy-herse { position: absolute; z-index: 1; left: 55.73%; top: 49.8%; width: 5.87%; height: 21.9%; overflow: hidden;
  clip-path: polygon(0 100%, 0 22%, 2% 15%, 6% 10%, 12% 6%, 20% 3%, 30% 1.2%, 40% .3%, 50% 0, 60% .3%, 70% 1.2%, 80% 3%, 88% 6%, 94% 10%, 98% 15%, 100% 22%, 100% 100%); }
.vy-herse__grille { position: absolute; inset: 0 0 -4% 0; transition: transform 1.2s .1s cubic-bezier(.55, 0, .35, 1);
  background:
    /* les pointes de fer, au bas de chaque montant */
    linear-gradient(to bottom, transparent 94%, rgba(28, 22, 16, .95) 94%) 0 0 / 14.28% 100%,
    /* les montants : bois sombre, un filet de lumière à gauche */
    linear-gradient(90deg, transparent 0 34%, #6b5133 34% 39%, #3b2b1b 39% 58%, #22180f 58% 64%, transparent 64%) 0 0 / 14.28% 100%,
    /* les traverses */
    linear-gradient(to bottom, transparent 0 40%, #4a3721 40% 52%, #241a10 52% 62%, transparent 62%) 0 0 / 100% 12.5%,
    /* l'ombre portée par la herse dans le passage */
    linear-gradient(to bottom, rgba(20, 12, 6, .38), rgba(20, 12, 6, .22));
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
/* Le voile qui lit le texte, et le noir de l'entrée */
.vy-voile { position: absolute; inset: 0; pointer-events: none; opacity: var(--voile, 1); background:
  linear-gradient(to bottom, rgba(8, 6, 4, .5) 0%, rgba(8, 6, 4, .08) 28%, rgba(8, 6, 4, 0) 48%),
  linear-gradient(to top, rgba(8, 6, 4, .62) 0%, rgba(8, 6, 4, .14) 26%, rgba(8, 6, 4, 0) 42%); }
.vy-noir { position: absolute; inset: 0; background: #050302; opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ Les étapes du texte */
.vy-etape { position: relative; }
.vy-route { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--dd-marge); }
.vy-route__contenu { display: flex; flex-direction: column; align-items: center; gap: var(--dd-s5); margin-top: -12vh; }
.vy-route__contenu > * { animation: vt-monte 1s .1s var(--dd-courbe) both; }
.vy-route__contenu > h1 { animation-delay: .25s; }
.vy-route__contenu > p { animation-delay: .4s; }
.vy-route__dit { margin: 0; font: italic 400 var(--dd-t-titre-boite) / 1.4 var(--vt-lettre); color: var(--dd-creme); text-shadow: var(--vt-ombre-texte); }
/* La promesse du jeu, lisible à la première seconde, puis le bouton « Jouer » (test des dix visiteurs exigeants) */
.vy-route__promesse { margin: 0; max-width: 44ch; font: 600 var(--dd-t-titre-boite) / 1.35 var(--dd-font-ui); color: var(--dd-creme); text-shadow: var(--vt-ombre-texte); }
.vy-route__dit { font-size: var(--dd-t-corps); opacity: .9; }
.vy-route__contenu > .vy-jouer { width: auto; align-self: center; }
.vy-jouer { min-width: 12rem; font-size: var(--dd-t-titre-boite); padding: var(--dd-s3) var(--dd-s6); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.vy-route__contenu > .vy-jouer { animation-delay: .5s; }
.vy-route__sans { margin: calc(var(--dd-s3) * -1) 0 0; font: 400 var(--dd-t-note) / 1.4 var(--dd-font-ui); color: var(--dd-creme); text-shadow: var(--vt-ombre-texte); }
.vy-route__contenu > .vy-route__sans { animation-delay: .55s; }
.jouer-sans { margin: 0 0 var(--dd-s2); font-size: var(--dd-t-note); color: #4a4234; }
.jouer-sans .vy-lien { font-weight: 700; }
.vy-passer { position: absolute; z-index: 6; top: var(--dd-marge); right: var(--dd-marge); padding: var(--dd-s1) var(--dd-s3); border-radius: var(--dd-pill);
  font: 600 var(--dd-t-petit) / 1.3 var(--dd-font-ui); color: rgba(244, 232, 200, .88); text-decoration: none; background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(244, 232, 200, .28); }
.vy-passer:hover, .vy-passer:focus-visible { color: var(--dd-creme); background: rgba(0, 0, 0, .45); }
.vy-sceau { bottom: calc(var(--dd-marge) + var(--dd-s6)); }
.vy-invite { position: absolute; left: 0; right: 0; bottom: var(--dd-marge); margin: 0; text-align: center; font: 600 var(--dd-t-note) / 1.3 var(--dd-font-ui);
  letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 232, 200, .78); text-shadow: var(--vt-ombre-texte); }

.vy-vol { height: 470vh; }
.vy-descente { height: 150vh; }
/* Les textes du voyage restent posés sur l'écran ; leurs étapes ne donnent que la longueur du défilement */
.vy-collant { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.vy-recit { position: absolute; left: var(--dd-marge); right: var(--dd-marge); bottom: calc(var(--dd-marge) + var(--dd-s5)); display: grid; }
.vy-phrase { grid-area: 1 / 1; margin: 0; max-width: 26em; opacity: 0; transform: translateY(var(--dd-s3)); transition: opacity .8s ease, transform 1s var(--dd-courbe); }
.vy-phrase.is-on { opacity: 1; transform: none; }
.vy-date { display: flex; align-items: center; gap: var(--dd-s3); margin-bottom: var(--dd-s3); font: 400 var(--dd-t-fort) / 1.2 var(--vt-grave); letter-spacing: .18em;
  text-transform: uppercase; color: var(--dd-or-pale); text-shadow: var(--vt-ombre-texte); }
.vy-date::after { content: ""; width: var(--dd-s7); height: 1px; background: var(--vt-filet); }
.vy-texte { display: block; font: italic 400 var(--dd-t-titre) / 1.3 var(--vt-lettre); color: var(--dd-creme); text-shadow: var(--vt-ombre-texte); text-wrap: pretty; }
/* La phrase s'écrit en temps dès qu'elle paraît : chaque lettre à son tour, la phrase entière en 1,5 s environ, même si
   l'on cesse de défiler (test des vingt visiteurs, T1). Le texte entier reste lu d'un trait par les lecteurs d'écran. */
.vy-texte .vy-l { opacity: 0; transition: opacity .2s ease; }
.vy-phrase.is-on .vy-l { opacity: 1; transition: opacity .25s ease calc(var(--i, 0) * 1500ms / var(--n, 60)); }
.vy-phrase.is-ecrite .vy-l { transition-delay: 0s; }
/* « Continue de descendre » : discret, au bas du vol, quand on s'est arrêté sur une phrase */
.vy-continuer { position: absolute; left: 0; right: 0; bottom: max(var(--dd-s2), env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font: 600 var(--dd-t-note) / 1.3 var(--dd-font-ui);
  letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 232, 200, .7); text-shadow: var(--vt-ombre-texte); opacity: 0; transition: opacity .8s ease; }
.vy-continuer.is-on { opacity: 1; }
.vy-invite { transition: opacity .6s ease; }
.vy-en-vol .vy-invite { opacity: 0; }
.vy-presents { position: absolute; top: var(--dd-marge); left: var(--dd-marge); margin: 0; display: inline-flex; align-items: center; gap: var(--dd-s2);
  padding: var(--dd-s1) var(--dd-s3); border-radius: var(--dd-pill); background: rgba(0, 0, 0, .42); border: 1px solid rgba(212, 160, 23, .55);
  font: 400 var(--dd-t-petit) / 1.3 var(--dd-font-ui); color: var(--dd-creme); opacity: 0; transition: opacity .8s ease; }
.vy-presents.is-on { opacity: 1; }
.vy-presents[hidden] { display: none; }
.vy-presents b { color: var(--dd-or-clair); font-variant-numeric: tabular-nums; }
.vy-descente__texte { position: absolute; left: var(--dd-marge); bottom: calc(var(--dd-marge) + var(--dd-s5)); max-width: 34rem; opacity: 0; transform: translateY(var(--dd-s3));
  transition: opacity .8s ease, transform 1s var(--dd-courbe); }
.vy-descente__texte.is-on { opacity: 1; transform: none; }

/* Arrivé devant les grilles sans refaire le voyage (session ouverte, lien d'une lettre) : seules les grilles restent */
.vy-direct .vy-etape { display: none; }
.vy-direct .vy-tableau--route, .vy-direct .vy-3d { opacity: 0 !important; }
.vy-direct .vy-porte { opacity: 1; }
#b-revoir { display: none; }
.vy-direct #b-revoir { display: inline-block; }

/* ------------------------------------------------------------------ Devant les grilles */
.vy-grilles { position: relative; min-height: 100vh; min-height: 100svh; outline: none; }
.vy-grilles .dd-ecran { transition: opacity .6s ease; }
/* Le plus grand titre de l'écran reste sous la capitale du logotype de l'en-tête, vers 60 % (consigne de Paul du
   2 novembre 2026 : « proportionné par rapport au logo » ; les deux capitales font 69 % de leur boîte) : le titre au
   jeton --dd-t-titre, le logotype à --dd-logo-entete, de 59 % (1920 x 970) à 68 % (1366 x 680). */
.vy-grilles__titre { font-size: var(--dd-t-titre); }
.vy-promesse { text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.vy-promesse .vt-voix { margin-top: var(--dd-s3); }
/* Le jeu en quatre lignes, devant le parchemin */
.vy-quatre { list-style: none; margin: var(--dd-s4) 0 0; padding: 0; display: grid; gap: var(--dd-s2); max-width: 36rem;
  font: 400 var(--dd-t-petit) / 1.45 var(--dd-font-ui); color: var(--dd-creme); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.vy-quatre li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--dd-s3); align-items: baseline; }
.vy-quatre b { font: 400 var(--dd-t-note) / 1.3 var(--vt-grave); letter-spacing: .08em; text-transform: uppercase; color: var(--dd-or-pale); }
.vy-quatre a { color: var(--dd-or-clair); text-underline-offset: 3px; }
/* Les quatre lignes parlent à qui arrive : l'onglet « Reprendre ma vie » garde l'affiche de la criée */
[data-onglet="connexion"] .vy-quatre { display: none; }
/* Les trois captures du jeu : des vignettes légendées, qui s'agrandissent dans une feuille */
.vy-captures > span { display: flex; gap: var(--dd-s2); }
.vy-captures a { flex: 1 1 0; min-width: 0; max-width: 7rem; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--dd-creme); }
.vy-captures img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--dd-r-s, 4px);
  border: 1px solid rgba(212, 160, 23, .55); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.vy-captures a:hover img, .vy-captures a:focus-visible img { border-color: var(--dd-or-clair); }
.vy-captures small { font: 400 var(--dd-t-note) / 1.2 var(--dd-font-ui); }
.vy-apercu { width: min(92vw, 1100px); max-height: 92vh; padding: var(--dd-s3); border: 0; border-radius: var(--dd-r-m); background: var(--vt-nuit-2); color: var(--dd-creme); }
.vy-apercu::backdrop { background: rgba(8, 6, 4, .78); }
.vy-apercu img { display: block; width: 100%; height: auto; max-height: calc(92vh - 7rem); object-fit: contain; }
.vy-apercu p { margin: var(--dd-s2) 0 0; font: 400 var(--dd-t-petit) / 1.4 var(--dd-font-ui); }
.vy-apercu__tete { display: flex; justify-content: space-between; align-items: center; gap: var(--dd-s3); margin-bottom: var(--dd-s2); font: 400 var(--dd-t-note) var(--dd-font-ui); color: var(--dd-sombre-muet); }
@media (max-height: 820px) {
  .vy-quatre { margin-top: var(--dd-s3); gap: var(--dd-s1); }
  .vy-quatre li { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .vy-captures a { max-width: 6rem; }
}
/* Petite hauteur : la phrase d'accroche se replie, les quatre lignes restent */
@media (max-height: 760px) and (min-width: 901px) {
  .vy-promesse .vt-voix { display: none; }
  .vy-promesse .vt-surtitre { display: none; }
}
@media (max-width: 700px) {
  .vy-quatre li { grid-template-columns: 1fr; gap: 0; }
}

.dd-ecran__coin { position: relative; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dd-ecran__coin > button { font: 400 var(--dd-t-note) var(--dd-font-ui); color: rgba(244, 232, 200, .85); background: transparent;
  border: 0; border-radius: 999px; padding: var(--dd-s1) var(--dd-s2); cursor: pointer; }
.dd-ecran__coin > button:hover, .dd-ecran__coin > button:focus-visible { color: var(--dd-creme); background: rgba(0, 0, 0, .3); }
.lecture-panneau { position: absolute; right: 0; top: calc(100% + var(--dd-s2)); z-index: 20; width: min(22rem, calc(100vw - 2 * var(--dd-s3))); padding: var(--dd-s4); color: var(--dd-encre); }
.lecture-panneau[hidden] { display: none; }
.dd-ecran__coin .lecture-panneau button { color: var(--dd-encre); }
.en-ligne { display: flex; align-items: center; gap: var(--dd-s2); margin: 0; font: 400 var(--dd-t-petit) var(--dd-font-ui); color: var(--dd-creme);
  background: rgba(0, 0, 0, .42); border: 1px solid rgba(212, 160, 23, .55); border-radius: 999px; padding: var(--dd-s1) var(--dd-s3); }
.en-ligne[hidden] { display: none; }
a.en-ligne { text-decoration: none; }
a.en-ligne:hover, a.en-ligne:focus-visible { background: rgba(0, 0, 0, .58); }
.en-ligne b { font-weight: 700; color: var(--dd-or-clair); font-variant-numeric: tabular-nums; }
.en-ligne .pouls { width: 9px; height: 9px; border-radius: 50%; background: #7bc96f; box-shadow: 0 0 0 0 rgba(123, 201, 111, .7); animation: pouls 2s infinite; }
.en-ligne .sep { opacity: .45; }
@keyframes pouls { 70% { box-shadow: 0 0 0 7px rgba(123, 201, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 201, 111, 0); } }

/* L'affiche de la criée, clouée (ancien accueil) */
.affiche { position: relative; transform: rotate(-.6deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--dd-encre); }
.affiche[hidden], .vy-lettre-boite[hidden] { display: none; }
.affiche::before, .affiche::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b9a27a, #4a3a22 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.affiche::before { left: 12px; } .affiche::after { right: 12px; }
.affiche .sceau { position: absolute; right: -18px; top: -22px; width: 76px; height: auto; transform: rotate(12deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.affiche .dd-t-surtitre { color: #7a5b16; margin: 0 0 var(--dd-s1); }
.affiche h3 { font: 400 var(--dd-t-titre-boite) / 1.15 var(--vt-grave); letter-spacing: .04em; text-transform: uppercase; color: var(--dd-encre); margin: 0; }
.affiche ul { list-style: none; margin: var(--dd-s3) 0 0; padding: 0; }
.nouvelles li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--dd-s3); font: 400 var(--dd-t-corps) / 1.35 var(--vt-lettre);
  padding: var(--dd-s2) 0; border-top: 1px solid rgba(122, 91, 22, .28); color: #2a2418; }
.nouvelles li span:last-child { color: #7a6a4a; white-space: nowrap; font: 400 var(--dd-t-note) var(--dd-font-ui); }
.nouvelles li.neuve { animation: neuve 1.2s ease-out; }
@keyframes neuve { from { background: rgba(212, 160, 23, .28); } }
.affiche .rdv { display: flex; gap: var(--dd-s2); flex-wrap: wrap; margin-top: var(--dd-s3); }
.affiche .rdv[hidden], .arrivees[hidden] { display: none; }
.affiche .rdv span { font: 700 var(--dd-t-note) var(--dd-font-ui); color: #5a4310; border: 1px solid rgba(122, 91, 22, .6); border-radius: 999px; padding: 3px var(--dd-s3); }
.affiche .rdv span:empty { display: none; }
.arrivees { display: flex; align-items: center; gap: var(--dd-s3); margin-top: var(--dd-s3); padding-top: var(--dd-s3); border-top: 1px solid rgba(122, 91, 22, .28); }
.arrivees .visages { display: flex; flex: none; }
.arrivees .visages:empty { display: none; }
.arrivees .visages img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #b38a2a; background: #e7d8b3; margin-left: -10px; object-fit: cover; object-position: 50% 6%; }
.arrivees .visages img:first-child { margin-left: 0; }
.arrivees p { margin: 0; font-size: var(--dd-t-petit); line-height: 1.35; color: #3a3428; }
.arrivees p b { color: #1d1810; }
.affiche .dd-t-note { color: #6a5d45; margin: var(--dd-s3) 0 0; line-height: 1.4; font-size: var(--dd-t-note); }

/* La lettre d'appel : trois passés, puis la lettre scellée au nom gardé */
.vy-lettre-boite { color: var(--vt-encre); }
.vy-boite-titre { margin: 0; font: 400 var(--dd-t-titre-boite) / 1.2 var(--vt-grave); letter-spacing: .04em; text-transform: uppercase; color: var(--vt-encre); }
.vy-petit { margin: var(--dd-s2) 0 0; font: 400 var(--dd-t-petit) / 1.4 var(--dd-font-ui); color: var(--dd-encre-douce); }
.vy-passe__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--dd-s3) var(--dd-s4); margin-top: var(--dd-s3); }
.vy-passe__form .vt-champ--age .vt-aide { display: block; margin-top: var(--dd-s1); }
.vy-lettre-boite .vt-erreur { text-align: left; min-height: 0; }
.vy-lettre-boite .vt-erreur:empty { display: none; }
.vy-passe[hidden] { display: none; }
.vy-lettre-boite .vt-passes { max-width: none; margin: var(--dd-s3) 0 0; grid-template-columns: 1fr; gap: var(--dd-s2); }
.vy-lettre-boite .vt-histoire { padding: var(--dd-s3) var(--dd-s4); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--dd-s3); align-items: center; }
.vy-lettre-boite .vt-histoire > * { grid-column: 1; }
.vy-lettre-boite .vt-histoire__nom { font-size: var(--dd-t-fort); }
.vy-lettre-boite .vt-histoire__accroche { margin-top: var(--dd-s1); min-height: 0; font-size: var(--dd-t-corps); }
.vy-lettre-boite .vt-histoire__recit, .vy-lettre-boite .vt-histoire__faits { display: none; }
.vy-lettre-boite .vt-histoire__garder { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
.vy-lettre-boite .vt-lettre-zone { max-width: none; margin: var(--dd-s3) 0 0; display: flex; flex-direction: column; align-items: center; gap: var(--dd-s3); }
.vy-lettre-boite .vt-lettre-zone[hidden] { display: none; }
.vy-lettre-boite .vt-lettre { width: min(100%, 21rem, calc((100vh - 13rem) * 1377 / 1984)); font-size: var(--dd-t-petit); }
.vy-lettre-boite .vt-lettre__corps p { font-size: var(--dd-t-petit); line-height: 1.38; }
.vy-lettre-suite { text-align: center; }
.vy-lien { padding: 0; border: 0; background: none; font: 700 var(--dd-t-petit) / 1.3 var(--dd-font-ui); color: var(--dd-indigo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Le parchemin d'entrée (ancien accueil, maquettes/accueil) */
.cta .dd-chargement { --dd-chargement-taille: 34px; flex-direction: row; justify-content: center; gap: var(--dd-s2); }
.cta .dd-chargement span { opacity: 1; font-style: normal; }
.onglets a { font: 600 var(--dd-t-corps) / 1.2 var(--dd-font-ui); }
.dd-boite--cadre > .onglets > a { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 480px) { .dd-boite--cadre > .onglets > a { flex: 1 1 0; font-size: var(--dd-t-petit); padding-inline: var(--dd-s1); } }
.parchemin { color: var(--dd-encre); }
.panneau { display: none; } .panneau.on { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.intro { font-size: var(--dd-t-petit); line-height: 1.4; margin: 0 0 var(--dd-s2); color: #4a4234; }
.parchemin label { display: block; font: 700 var(--dd-t-petit) var(--dd-font-ui); color: #3a3428; margin: var(--dd-air) 0 0; }
.champ { display: flex; align-items: center; gap: var(--dd-s2); border-bottom: 1px solid #3a3428; min-height: var(--dd-champ); }
/* Une session ouverte retire les champs (maquettes/accueil/jeu.js) : « hidden » doit l'emporter sur display: flex
   (cinquième passage : « Ta session est ouverte » au-dessus d'un formulaire vide) */
.champ[hidden], label[hidden], .ligne[hidden] { display: none; }
.champ input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 var(--dd-t-corps) var(--dd-font-ui); color: #1d1810; outline: none; padding: var(--dd-s2) 0; }
.champ:focus-within { box-shadow: 0 2px 0 0 var(--dd-or); }
.champ .action { font: 700 var(--dd-t-petit) var(--dd-font-ui); color: #7a5b16; cursor: pointer; }
.ligne { display: flex; justify-content: space-between; align-items: center; gap: var(--dd-s3); margin: var(--dd-air) 0 0; font-size: var(--dd-t-petit); }
.ligne a { color: #7a5b16; }
.case { display: flex; gap: var(--dd-s2); align-items: flex-start; font-size: var(--dd-t-petit); line-height: 1.35; margin: var(--dd-air) 0 0; }
.case i { width: 18px; height: 18px; flex: none; border: 1.5px solid #3a3428; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.case a { color: #7a5b16; }
.case[role="checkbox"] { cursor: pointer; }
.case.coche i { background: #7a5b16; box-shadow: inset 0 0 0 3px #efe3c4; }
/* Au doigt (quatrième passage, tablette) : la case se touche sur 44 px sans toucher les liens du texte */
.case i { position: relative; width: 22px; height: 22px; }
.case i::after { content: ""; position: absolute; inset: -11px -9px -11px -11px; }
.case[role="checkbox"] { gap: var(--dd-s3); }
/* Les liens des règles hors de la case : la case se coche sur toute sa ligne, un lien s'ouvre dans une feuille, sans
   quitter le formulaire (cinquième passage, tablette : toucher le milieu de la case ouvrait la confidentialité) */
.case-liens { margin: var(--dd-s1) 0 0; font-size: var(--dd-t-note); line-height: 1.5; }
.case-liens a { color: #7a5b16; display: inline-block; min-height: 32px; padding: 6px 0; }
.vy-feuille { width: min(46rem, calc(100vw - 2 * var(--dd-s3))); height: min(80dvh, 52rem); padding: 0; border: 1px solid rgba(196, 163, 90, .6);
  border-radius: var(--dd-r-m); background: var(--dd-papier, #faf3e0); }
.vy-feuille::backdrop { background: rgba(10, 7, 4, .55); }
.vy-feuille__tete { display: flex; justify-content: flex-end; padding: var(--dd-s2); }
.vy-feuille iframe { display: block; width: 100%; height: calc(100% - 60px); border: 0; }
.jeu-message { margin: var(--dd-s3) 0 0; font-size: var(--dd-t-petit); line-height: 1.4; color: var(--dd-cramoisi); }
.jeu-message[data-sorte="annonce"] { color: #3a3428; }
.jeu-fondateur label { display: block; margin-top: var(--dd-air); }
.jeu-attente { margin: var(--dd-s2) 0 0; font-size: var(--dd-t-note); color: #4a4234; }
.jeu-attente a { color: #7a5b16; }
.jeu-attente-accord { margin-top: var(--dd-s2); font-size: var(--dd-t-note); }
.jeu-attente-accord[hidden] { display: none; }
.cta { display: block; width: 100%; height: var(--dd-bouton); margin: var(--dd-s4) 0 0; border: 0; border-radius: var(--dd-r-m); background: var(--dd-or);
  color: var(--dd-encre); font: 700 var(--dd-t-fort) var(--dd-font-ui); cursor: pointer; }
.cta:hover { background: var(--dd-or-clair); }
.invitation { margin-top: var(--dd-s4); padding: var(--dd-s3) var(--dd-s4); border: 1px dashed rgba(122, 91, 22, .6); border-radius: var(--dd-r-m); background: rgba(255, 250, 235, .35); }
.invitation strong { font: 700 var(--dd-t-petit) var(--dd-font-ui); color: #1d1810; }
.invitation summary { display: flex; justify-content: space-between; align-items: center; gap: var(--dd-s3); cursor: pointer; list-style: none; font-size: var(--dd-t-petit); color: #7a5b16; }
.invitation summary::-webkit-details-marker { display: none; }
.invitation summary span::after { content: " ›"; }
.invitation[open] summary span::after { content: " ˅"; }
.invitation--recue { margin-top: var(--dd-s2); }
.invitation--recue[hidden] { display: none; }
.invitation .ok { display: flex; align-items: center; gap: var(--dd-s2); font-size: var(--dd-t-petit); line-height: 1.35; color: #3a3428; }
.invitation .ok a { color: #7a5b16; }
.invitation .ok b { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid #b38a2a; background: #e7d8b3; display: grid; place-items: center;
  font: 700 var(--dd-t-note) var(--dd-font-ui); color: #7a5b16; }
.pied { padding-top: var(--dd-s3); margin-top: var(--dd-s4); border-top: 1px solid rgba(122, 91, 22, .3); display: flex; justify-content: space-between; gap: var(--dd-s3);
  font-size: var(--dd-t-note); color: #6a5d45; }
.pied.dd-boite__pied { margin-top: auto; }
.panneau > :nth-last-child(2) { margin-bottom: var(--dd-s4); }
.pied a { color: #6a5d45; }
.age { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--dd-s3); }

/* ------------------------------------------------------------------ L'entrée : les grilles se lèvent, on passe la porte */
.vy-entre .vy-grilles .dd-ecran { opacity: 0; pointer-events: none; }
.vy-entre .vy-voile { opacity: 0; transition: opacity .8s ease; }
.vy-entre .vy-herse__grille { transform: translateY(-104%); }
.vy-entre .vy-porte .vt-plan { transform: scale(3.4); transition: transform 1s 1s cubic-bezier(.6, 0, .8, .4); }
.vy-entre .vy-noir { opacity: 1; transition: opacity .5s 1.6s ease; }

/* ------------------------------------------------------------------ Petites hauteurs (portable de 680 px) */
@media (max-height: 720px) {
  .vy-route__contenu { gap: var(--dd-s4); }
  #p-inscription .intro { margin-bottom: 0; }
  #p-inscription .cta { margin-top: var(--dd-s2); }
  #p-inscription .case { margin-top: var(--dd-s2); }
  .affiche .nouvelles li:nth-child(n+3) { display: none; }
}
@media (max-width: 900px) {
  .ligne, .pied { flex-wrap: wrap; }
  .dd-ecran__entete { flex-wrap: wrap; }
  .dd-ecran__coin button { white-space: nowrap; }
  .affiche .sceau { right: calc(var(--dd-marge) * -.5); }
}

/* ------------------------------------------------------------------ Téléphone, à la verticale */
@media (max-width: 700px) {
  .vt { --dd-marge: var(--dd-s4); }
  .vy-route__contenu { margin-top: -18vh; }
  .vt-grave--une { max-width: 17ch; }
  .vy-sceau { bottom: calc(var(--dd-marge) + var(--dd-s6) + env(safe-area-inset-bottom, 0px)); }
  .vy-vol { height: 380vh; }
  .vy-texte { font-size: var(--dd-t-titre-boite); }
  .vy-date { font-size: var(--dd-t-corps); }
  .vy-passer { top: var(--dd-s3); right: var(--dd-s3); }
  .vy-voile--porte { background:
    linear-gradient(to bottom, rgba(10, 7, 4, .7) 0%, rgba(10, 7, 4, .2) 30%, rgba(10, 7, 4, 0) 45%),
    linear-gradient(to top, rgba(10, 7, 4, .75) 0%, rgba(10, 7, 4, 0) 40%); }
  .vt-segments { display: flex; }
  .vt-segments label { flex: 1; }
  .vt-segments span { width: 100%; justify-content: center; padding: 0 var(--dd-s3); }
  .vt-pied { flex-direction: column; align-items: flex-start; }
  .vy-lettre-boite .vt-histoire { grid-template-columns: 1fr; }
  .vy-lettre-boite .vt-histoire__garder { grid-column: 1; grid-row: auto; margin-top: var(--dd-s2); justify-self: start; }
}

/* ------------------------------------------------------------------ Mouvement réduit et captures */
[data-voyage="fondu"] .vy-tableau, [data-voyage="fondu"] .vy-porte { transition: opacity 1s ease; }
[data-voyage="fondu"] .vy-tableau > img { animation: none; transform: none !important; }
[data-voyage="fondu"] .vy-texte .vy-l { opacity: 1; transition: none; }
[data-voyage="fondu"] .vy-herse__grille { transition-duration: .01s; }
[data-voyage="fondu"].vy-entre .vy-porte .vt-plan { transform: none; transition: none; }
[data-voyage="fondu"].vy-entre .vy-noir { transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .vt *, .vt *::before, .vt *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .vt-sceau { animation: none; }
}
.vy-capture *, .vy-capture *::before, .vy-capture *::after { animation: none !important; transition: none !important; }
.parchemin label.jeu-attente-accord { display: flex; gap: var(--dd-s2); align-items: flex-start; font: 400 var(--dd-t-note) / 1.4 var(--dd-font-ui); color: #4a4234; }
.parchemin label.jeu-attente-accord[hidden] { display: none; }
.jeu-attente-accord input { flex: none; margin-top: 2px; accent-color: #7a5b16; }

/* Les liens légaux dans la marge du bas, à gauche, en face de « jeu conçu par » */
.dd-ecran > .vy-legal { position: absolute; left: var(--dd-marge); right: 12rem; bottom: max(var(--dd-s1), calc((var(--dd-marge) - 16px) / 2));
  display: flex; flex-wrap: wrap; gap: 0 var(--dd-s4); font: 400 var(--dd-t-note) / 1.4 var(--dd-font-ui); }
.vy-legal a { color: var(--dd-sombre-muet); text-underline-offset: 3px; text-shadow: 0 1px 2px rgba(10, 7, 4, .8); }
.vy-legal a:hover, .vy-legal a:focus-visible { color: var(--dd-sombre-texte); }
.vt-segments input, .jeu-attente-accord input { font-size: var(--dd-t-note); }
@media (max-width: 900px) {
  .dd-ecran > .vy-legal { position: static; grid-column: 1; order: 4; }
  /* « jeu conçu par » sous la ligne des liens, jamais par-dessus « Signaler » (test des vingt visiteurs, T5) */
  .vy-grilles .dd-ecran > .dd-credit { position: static; grid-column: 1; order: 5; justify-self: start; }
}
/* Une seule des deux boîtes de gauche est montrée (selon l'onglet) : c'est elle qui se cale en bas */
.dd-ecran__gauche > .affiche, .dd-ecran__gauche > .vy-lettre-boite { margin-top: auto; }
@media (max-height: 720px) {
  .vy-passe > .vy-petit { display: none; }
  .vy-passe__form { margin-top: var(--dd-s2); }
}

/* Téléphone et tablette : le parchemin d'entrée et son bouton à l'écran sans défiler, juste sous le titre ; les quatre
   lignes, les captures, la lettre et l'affiche ensuite (test des dix visiteurs exigeants : le bouton à 1 233 px) */
@media (max-width: 900px) {
  .vy-grilles .dd-ecran__gauche, .vy-grilles .vy-promesse { display: contents; }
  .vy-promesse > .vt-surtitre, .vy-promesse > .vt-voix { display: none; }
  .vy-grilles__titre { order: 1; margin: 0; }
  .vy-grilles .dd-ecran__droite { order: 2; }
  .vy-quatre { order: 3; margin-top: 0; }
  .vy-grilles .affiche, .vy-lettre-boite { order: 4; }
  #p-inscription:not(.jeu-saison-0) .intro, #p-inscription .naissance-aide { display: none; }
  .vy-grilles .dd-sceau { display: none; }
}
/* L'aide sous la date de naissance */
.naissance-aide { margin: 2px 0 0; color: #6a5d45; }
@media (max-width: 700px) {
  /* Au téléphone, la présence en une ligne courte : le parchemin et son bouton restent à l'écran */
  .vy-grilles .en-ligne .sep, .vy-grilles .en-ligne > span:last-child { display: none; }
}
@media (max-width: 700px) { .jouer-sans > span { display: none; } }
