/* Première visite du Studio — « Le feuillet lumineux » (ONB-01, lots 1 à 3).
   Voir app/studio/visite.js. Le voile est une encre chaude où passe un grain
   de papier ; la découpe est nette, cerclée au crayon ; le carnet est
   posé, de format fixe, relié ; sa page est ivoire, sobre, numérotée. Pas de ruban, pas d'écriture manuscrite : la
   matière est suggérée par la couleur et le grain, jamais imitée. */

.visite{
  --vf-voile:rgba(34,27,18,.6);--vf-grain:.55;--vf-crayon:#F1D9A6;--vf-halo:#FFE7B8;
  --vf-papier:#FCFAF5;--vf-encre:#15130F;--vf-corps:#3E3A31;--vf-doux:#6A6253;--vf-sepia:#835D1F;
  --vf-filet:#DDD3BF;--vf-cran:#DED5C2;--vf-timbre:#F3E3C2;--vf-timbre-filet:#D9C49A;
  --vf-ombre:0 1px 2px rgba(21,19,15,.14),0 16px 36px -10px rgba(20,14,6,.55);
  --vf-action:#1F3A5F;--vf-action-encre:#F5F0E6;--vf-action-survol:#16304F;
  --vf-reliure:#6B5636;--vf-tranche:#E8E0CE;--vf-dorure:#EBD29C;
  --vs-fond:#FCFAF5;--vs-surface:#F5F0E6;--vs-encre:#15130F;--vs-doux:#6A6253;--vs-ligne:#E2DAC9;--vs-ligne-fort:#CFC4AC;
  --vs-accent:#1F3A5F;--vs-accent-doux:#E2E7EE;--vs-eveil:rgba(31,58,95,.16);
  /* Une teinte par enrichissement (prototype V2) : identité, chasse, quiz. */
  --vs-identite:#835D1F;--vs-chasse:#4E5A34;--vs-quiz:#4E6681;--vs-quiz-doux:rgba(78,102,129,.12);
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;
  /* Les zones de sécurité sont portées en padding : visite.js les y lit. */
  padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);
  background:transparent;color:var(--vf-corps);overflow:hidden;
  font-family:var(--fb);
}
@media (prefers-color-scheme:dark){
  .visite{
    --vf-voile:rgba(6,5,3,.72);--vf-grain:.35;--vf-crayon:#D2AE6E;--vf-halo:#E9C98A;
    --vf-papier:#26221B;--vf-encre:#F3EFE5;--vf-corps:#D3CCBC;--vf-doux:#A9A391;--vf-sepia:#D9B677;
    --vf-filet:#433D31;--vf-cran:#433D31;--vf-timbre:#3A3326;--vf-timbre-filet:#5C5240;
    --vf-ombre:0 1px 2px rgba(0,0,0,.5),0 18px 40px -10px rgba(0,0,0,.8),0 0 0 1px rgba(243,239,229,.06);
    --vf-action:#9DB6D4;--vf-action-encre:#15130F;--vf-action-survol:#B4C8E0;
    --vf-reliure:#4A3B24;--vf-tranche:#3A342A;--vf-dorure:#CDAA68;
    --vs-fond:#1C1914;--vs-surface:#221F18;--vs-encre:#F3EFE5;--vs-doux:#A9A391;--vs-ligne:#363126;--vs-ligne-fort:#4A4436;
    --vs-accent:#9DB6D4;--vs-accent-doux:#22303F;--vs-eveil:rgba(157,182,212,.22);
    --vs-identite:#D9B677;--vs-chasse:#AAB889;--vs-quiz:#9DB6D4;--vs-quiz-doux:rgba(157,182,212,.16);
  }
}
.visite::backdrop{background:transparent}
.visite:not([open]){display:none}

.visite-voile{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.visite-encre{fill:var(--vf-voile)}
.visite-grain{opacity:var(--vf-grain)}
.visite-halo{stroke:var(--vf-halo);opacity:.42}
.visite-crayon,.visite-renvoi{stroke:var(--vf-crayon)}
.visite-annonce{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.visite button{cursor:pointer;-webkit-tap-highlight-color:transparent;font-family:inherit}
.visite :focus-visible{outline:2px solid var(--vf-action);outline-offset:3px}
.visite .vf-titre:focus{outline:none}

/* --- Le carnet ------------------------------------------------------------
   Un format fixe pour toute la visite (visite.js le calcule sur sa page la
   plus haute). Ordinateur : relié à gauche ; téléphone (.tel) : relié en
   haut, la page tourne vers le haut. */
.vf-carnet{position:absolute;left:0;top:0;width:384px;height:360px}
.vf-reliure{position:absolute;left:0;top:0;bottom:0;width:16px;background:var(--vf-reliure);border-radius:3px 0 0 3px;
  box-shadow:inset -3px 0 4px rgba(0,0,0,.25),0 14px 32px -12px rgba(20,14,6,.5)}
.vf-reliure::after{content:"";position:absolute;left:7px;top:12px;bottom:12px;border-left:1px dashed rgba(255,240,210,.45)}
.vf-tranche{position:absolute;right:-6px;top:4px;bottom:-5px;left:20px;background:var(--vf-tranche);border-radius:0 3px 3px 0;box-shadow:var(--vf-ombre)}
.vf-pages{position:absolute;inset:0 0 0 14px}
.vf-carnet.tel .vf-reliure{right:0;bottom:auto;width:auto;height:16px;border-radius:3px 3px 0 0;box-shadow:inset 0 -3px 4px rgba(0,0,0,.25)}
.vf-carnet.tel .vf-reliure::after{left:12px;right:12px;top:7px;bottom:auto;border-left:0;border-top:1px dashed rgba(255,240,210,.45)}
.vf-carnet.tel .vf-tranche{right:-4px;left:-4px;top:20px;bottom:-6px;border-radius:0 0 3px 3px}
.vf-carnet.tel .vf-pages{inset:14px 0 0 0}

.vf-feuillet{position:absolute;inset:0;display:flex;flex-direction:column;padding:22px 24px 14px;background:var(--vf-papier);color:var(--vf-corps);
  border-radius:0 3px 3px 0;transform-origin:0 50%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.vf-carnet.tel .vf-feuillet{border-radius:0 0 3px 3px;transform-origin:50% 0}
/* Double de mesure : hauteur naturelle, invisible. */
.vf-feuillet.mesure{inset:0 auto auto 0;height:auto;visibility:hidden;pointer-events:none}
.vf-feuillet.tourne{z-index:2}
/* Une page courte ne laisse pas un vide au hasard : des lignes de carnet. */
.vf-blanc{flex:1 1 auto;min-height:0;margin:12px 0 0;background:repeating-linear-gradient(to bottom,transparent 0 23px,var(--vf-cran) 23px 24px);opacity:.5}
.vf-lustre,.vf-ombre{position:absolute;inset:0;pointer-events:none;border-radius:inherit}
.vf-lustre{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(20,14,6,.28))}
.vf-ombre{background:linear-gradient(90deg,rgba(20,14,6,.38),rgba(20,14,6,0) 70%)}
.vf-carnet.tel .vf-lustre{background:linear-gradient(180deg,rgba(255,255,255,0),rgba(20,14,6,.28))}
.vf-carnet.tel .vf-ombre{background:linear-gradient(180deg,rgba(20,14,6,.38),rgba(20,14,6,0) 70%)}
/* La couverture, rabattue à la fin de la visite : cuir, lumière douce en
   haut à gauche, double filet et dessin dorés (visite.js, dessinCouverture). */
.vf-couverture{position:absolute;inset:0;z-index:3;border-radius:0 3px 3px 0;transform-origin:0 50%;
  background:radial-gradient(120% 90% at 28% 18%,rgba(255,240,210,.13),rgba(255,240,210,0) 62%),var(--vf-reliure);
  backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:inset 0 0 0 6px rgba(255,240,210,.08)}
.vf-carnet.tel .vf-couverture{transform-origin:50% 0;border-radius:0 0 3px 3px}
.vf-couverture::before,.vf-couverture::after{content:"";position:absolute;inset:14px;border:1px solid var(--vf-dorure);border-radius:2px;opacity:.75;pointer-events:none}
.vf-couverture::after{inset:19px;opacity:.4}
.vf-couv-dessin{position:absolute;inset:30px;width:calc(100% - 60px);height:calc(100% - 60px);overflow:visible;
  fill:none;stroke:var(--vf-dorure);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vf-couv-dessin .fin{stroke-width:1.2;opacity:.85}
.vf-couv-dessin .pointille{stroke-width:1.6;stroke-dasharray:2 4}
.vf-couv-dessin path[d^="m100"]{fill:var(--vf-dorure);stroke:none}
.vf-couv-dessin text{fill:var(--vf-dorure);stroke:none;font-family:var(--fd);font-style:italic;font-size:17px;letter-spacing:.04em}
.vf-titre{margin:0;padding-right:64px;font-family:var(--fd);font-size:25px;font-weight:600;line-height:1.15;letter-spacing:-.012em;text-wrap:balance;color:var(--vf-encre)}
.vf-corps{margin:10px 0 0;font-size:15.5px;line-height:1.55;text-wrap:pretty}

/* Le timbre de Lumo : dentelure sur le pourtour seulement (sinon le motif
   perce le portrait), cadre papier, légère rotation. */
.vf-timbre{position:absolute;top:-14px;right:16px;width:66px;height:78px;padding:6px;background:var(--vf-timbre);transform:rotate(4deg);
  -webkit-mask:linear-gradient(#000 0 0) center/calc(100% - 7px) calc(100% - 7px) no-repeat,radial-gradient(circle 3.2px at 3.2px 3.2px,transparent 98%,#000) -3.2px -3.2px/9px 9px;
  mask:linear-gradient(#000 0 0) center/calc(100% - 7px) calc(100% - 7px) no-repeat,radial-gradient(circle 3.2px at 3.2px 3.2px,transparent 98%,#000) -3.2px -3.2px/9px 9px;
  filter:drop-shadow(0 2px 3px rgba(20,14,6,.3))}
.vf-timbre div{width:100%;height:100%;background:#FCFAF5 center 62%/74% auto no-repeat;border:1px solid var(--vf-timbre-filet)}
.vf-timbre.grand{width:72px;height:86px;top:-20px}
.vf-timbre.grand div{background-size:84% auto;background-position:center 70%}

/* Le folio : un cran par feuillet, puis « Première visite » et le numéro. */
.vf-prog{display:flex;gap:4px;margin-top:12px}
.vf-prog i{flex:1;height:3px;border-radius:2px;background:var(--vf-cran);position:relative;overflow:hidden}
.vf-prog i.on::after,.vf-prog i.cur::after{content:"";position:absolute;inset:0;background:var(--vf-sepia)}
.vf-prog i.cur::after{transform-origin:0 50%;animation:vfRemplir .7s cubic-bezier(.16,1,.3,1) both}
@keyframes vfRemplir{from{transform:scaleX(0)}}
.vf-folio{display:flex;justify-content:space-between;gap:12px;margin:7px 0 0;font-family:var(--fd);font-style:italic;font-size:13.5px;color:var(--vf-doux)}
.vf-folio b{font-style:normal;font-weight:600;color:var(--vf-sepia);font-variant-numeric:tabular-nums}

.vf-gestes{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--vf-filet)}
.vf-passer{min-height:44px;margin-right:auto;padding:0 2px;border:0;background:none;font-size:13px;font-weight:600;color:var(--vf-encre);
  text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--vf-sepia)}
.vf-passer:hover{text-decoration-thickness:2px}
.vf-precedent{flex:none;width:44px;height:44px;margin-left:auto;display:grid;place-items:center;border:1px solid var(--vf-filet);border-radius:3px;background:transparent;color:var(--vf-encre)}
.vf-passer + .vf-precedent{margin-left:0}
.vf-precedent svg{width:18px;height:18px}
.vf-precedent:hover{border-color:var(--vf-encre)}
.vf-suivant{min-height:44px;padding:0 18px;border-radius:3px;font-size:13.5px;font-weight:600;letter-spacing:.01em;
  background:var(--vf-action);color:var(--vf-action-encre);border:1px solid var(--vf-action)}
.vf-suivant:hover{background:var(--vf-action-survol);border-color:var(--vf-action-survol)}
.vf-gestes > :only-child{margin-left:auto}

/* Ouverture : Lumo (A1) se tient debout sur le carnet, puis descend. */
.vf-lumo-accueil{position:absolute;left:44px;top:-112px;z-index:4;width:108px;height:135px;pointer-events:none}
.vf-lumo-accueil img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(20,14,6,.28))}
.vf-feuillet.hero .vf-titre{font-size:36px;font-weight:500;line-height:1.04;letter-spacing:-.022em;padding-right:0}
.vf-feuillet.hero .vf-corps{margin-top:12px;font-size:16px}
.vf-mot{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
.vf-mot > span{display:inline-block}

/* Conclusion : le carnet sur deux téléphones, dont un hors réseau. */
.vf-voyage{display:flex;gap:10px;margin-top:14px}
.vf-tel{position:relative;width:62px;height:92px;padding:12px 7px 7px;border:1.5px solid var(--vf-encre);border-radius:11px;display:flex;flex-direction:column;gap:5px}
.vf-tel.deux{transform:translateY(8px) rotate(4deg);opacity:.75}
.vf-tel b{display:block;height:16px;border-radius:2px;background:var(--vf-sepia);opacity:.55}
.vf-tel i{display:block;height:4px;border-radius:2px;background:var(--vf-cran)}
.vf-tel i.c{width:64%}
.vf-hors-reseau{position:absolute;right:-12px;top:-10px;width:26px;height:26px;padding:4px;border-radius:50%;background:var(--vf-papier);box-shadow:0 0 0 1.5px var(--vf-encre);color:var(--vf-encre)}
.vf-hors-reseau svg{display:block;width:100%;height:100%}

/* Post-scriptum : le chemin vers la visite, en image (il ne s'ouvre pas). */
.vf-chemin{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 0;font-size:13px;font-weight:600;color:var(--vf-encre)}
.vf-chemin span{padding:5px 10px;border:1px solid var(--vf-filet);border-radius:3px}
.vf-chemin svg{width:18px;height:18px;color:var(--vf-sepia)}
.vf-feuillet.ps .vf-folio{justify-content:flex-start}

/* --- Planches illustratives (feuillets 4 à 11) --------------------------
   Une carte postale posée hors du carnet, dans la lumière : bord papier,
   légende, mention « Aperçu illustratif ». La scène est dessinée à
   440 × 290 et réduite par visite.js ; rien n'y est cliquable. */
.vf-planche{position:absolute;left:0;top:0;border-radius:3px;background:var(--vf-papier);box-shadow:var(--vf-ombre);pointer-events:none;user-select:none}
.vf-planche[hidden]{display:none}
.vf-carte{position:relative;padding:10px 10px 0;overflow:hidden}
.vf-scene{position:relative;width:440px;height:290px;transform-origin:0 0}
.vf-legende{display:flex;justify-content:space-between;align-items:center;gap:10px;height:30px;margin:0;padding:0 10px;
  font-family:var(--fd);font-style:italic;font-size:13px;color:var(--vf-doux);white-space:nowrap}
.vf-legende span:first-child{overflow:hidden;text-overflow:ellipsis}
.vf-legende span:last-child{display:flex;align-items:center;gap:6px;font-family:var(--fb);font-style:normal;font-size:10.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--vf-sepia)}
.vf-legende span:last-child::before{content:"";width:12px;border-top:1.5px dashed currentColor}

/* La scène de l'atelier : un mode par feuillet (data-mode). */
.vs{position:absolute;inset:0;overflow:hidden;background:var(--vs-fond);color:var(--vs-encre);font-family:var(--fb);font-size:12px;line-height:1.4;
  border:1px solid var(--vs-ligne);border-radius:2px}
.vs[hidden]{display:none}
.vs img{display:block}
.vs-barre{display:flex;align-items:center;gap:9px;height:32px;padding:0 12px;border-bottom:1px solid var(--vs-ligne);white-space:nowrap}
.vs-barre b{font-family:var(--fd);font-size:14px;font-weight:600}
.vs-retour{color:var(--vs-doux)}
.vs-statut{margin-left:auto;padding:1px 8px;border:1px solid var(--vs-ligne-fort);border-radius:3px;font-size:11px;color:var(--vs-doux)}
.vs-corps{position:absolute;top:32px;left:0;right:0;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) 150px}
.vs-feuille{position:relative;transition:opacity .55s cubic-bezier(.16,1,.3,1),filter .55s}
.vs-vide{position:absolute;inset:14px;display:flex;flex-direction:column;justify-content:center;gap:14px;transition:opacity .45s,transform .55s cubic-bezier(.16,1,.3,1)}
.vs-fantome{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.vs-fantome i{height:118px;border:1.5px dashed var(--vs-ligne-fort);border-radius:4px;opacity:.75}
.vs-vide p{margin:0;font-family:var(--fd);font-size:13.5px;color:var(--vs-doux);text-align:center}
.vs-jours{position:absolute;inset:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start;opacity:0;visibility:hidden}
.vs-jour{display:flex;flex-direction:column;padding:10px;background:var(--vs-surface);border:1px solid var(--vs-ligne);border-radius:4px}
.vs-jour b{margin-bottom:9px;font-family:var(--fd);font-size:13px}
.vs-lieu{position:relative;display:flex;align-items:center;gap:6px}
.vs-lieu i{flex:none;width:9px;height:9px;border-radius:50%;border:1.5px solid var(--vs-accent);background:var(--vs-surface)}
.vs-lieu em{display:block;height:6px;border-radius:2px;background:var(--vs-ligne-fort);transform-origin:0 50%}
.vs-lieu em.ancien{position:absolute;left:15px;top:50%;margin-top:-3px;background:var(--vs-doux);opacity:0}
.vs-reprise{position:absolute;right:-3px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--vf-sepia)}
.vs-trajet{display:block;width:0;height:20px;margin-left:4px;border-left:1.5px dotted var(--vs-ligne-fort)}
.vs-cote{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border-left:1px solid var(--vs-ligne);background:var(--vs-surface)}
.vs-nom{display:flex;align-items:center;gap:6px;margin:0;font-family:var(--fd);font-size:14px;font-weight:600}
.vs-nom img{width:20px;height:20px}
.vs-bulle{padding:8px 9px;background:var(--vs-fond);border:1px solid var(--vs-ligne);border-radius:6px;font-family:var(--fd);font-size:13px}
.vs-fil{display:none;flex-direction:column;gap:6px}
.vs-fil i{display:block;height:16px;border-radius:6px;background:var(--vs-fond);border:1px solid var(--vs-ligne);transform-origin:0 50%}
.vs-fil i.moi{width:76%;margin-left:auto;background:var(--vs-accent-doux);border-color:transparent;transform-origin:100% 50%}
.vs-fil i.court{width:52%}
.vs-jalon{display:none;align-items:center;gap:6px;margin:0}
.vs-jalon img{width:22px;height:22px}
.vs-jalon b{font-family:var(--fd);font-size:12px}
.vs-champ{display:flex;align-items:center;gap:2px;height:32px;margin-top:auto;padding:0 8px;border:1px solid var(--vs-ligne-fort);border-radius:4px;
  background:var(--vs-fond);color:var(--vs-doux);font-size:12px;transition:border-color .4s}
.vs-curseur{display:none;width:1px;height:14px;background:var(--vs-accent)}
/* Lumo (A2) désigne le champ : la main à hauteur du champ, il se penche
   depuis le bas du cadre. */
.vs-guide{position:absolute;left:176px;top:189px;width:120px;height:150px;object-fit:contain;opacity:0;visibility:hidden;pointer-events:none;
  filter:drop-shadow(0 4px 6px rgba(20,14,6,.22))}
.vs-cercle{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.vs-cercle path{fill:none;stroke:var(--vf-sepia);stroke-width:1.7;stroke-linecap:round;opacity:0}

.vs[data-mode="lumo"] .vs-feuille{opacity:.3;filter:saturate(.4)}
.vs[data-mode="lumo"] .vs-guide{opacity:1;visibility:visible}
.vs[data-mode="lumo"] .vs-cercle path{opacity:1}
.vs[data-mode="lumo"] .vs-champ{border-color:var(--vs-accent);box-shadow:0 0 0 4px var(--vs-eveil)}
.vs[data-mode="lumo"] .vs-curseur{display:block;animation:vsCurseur 1.1s steps(1) infinite}
@keyframes vsCurseur{50%{opacity:0}}
.vs[data-mode="jours"] .vs-vide{opacity:0;visibility:hidden;transform:scale(.96)}
.vs[data-mode="jours"] .vs-jours{opacity:1;visibility:visible}
.vs[data-mode="jours"] .vs-bulle{display:none}
.vs[data-mode="jours"] .vs-fil,.vs[data-mode="jours"] .vs-jalon{display:flex}
/* Téléphone : la scène est plus petite ; Lumo grandit pour que son geste
   reste lisible. */
.vf-planche.tel .vs-guide{left:154px;top:176px;width:140px;height:175px}

/* Feuillets 7 à 9 : la barre de la vue « Enrichir ». */
.vs-onglets{gap:14px}
.vs-onglets span{color:var(--vs-doux)}
.vs-onglets span.actif{align-self:stretch;display:flex;align-items:center;color:var(--vs-encre);font-weight:600;box-shadow:inset 0 -2px 0 var(--vs-accent)}

/* Feuillet 7 : identité visuelle. La page « avant » garde les couleurs par
   défaut ; la page « après », posée dessus, porte celles de l'exemple. */
.vs-id{position:absolute;top:32px;left:0;right:0;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) 150px;grid-template-rows:minmax(0,1fr);gap:14px;padding:12px 14px}
.vs-id-feuille{position:relative;border:1px solid var(--vs-ligne);border-radius:3px;overflow:hidden}
.vs-id-page{position:absolute;inset:0;background:#FBF8F1;color:#3E3A31;
  --id-a:#BDB6A6;--id-b:#D6D0C2;--id-c:#9C9586;--id-titre:#6A6253}
.vs-id-page.apres{--id-a:#B5573A;--id-b:#E6C590;--id-c:#2F6E7E;--id-titre:#7A3420;clip-path:inset(0 0 0 0)}
.vs-id-couv{position:relative;height:84px;background:var(--id-b);overflow:hidden}
.vs-id-couv svg{position:absolute;left:0;right:0;bottom:0;width:100%;height:46px}
.vs-id-couv path{fill:var(--id-a)}
.vs-id-couv path.m2{fill:var(--id-c);opacity:.85}
.vs-id-titre{position:absolute;left:14px;top:16px;width:46%;height:11px;border-radius:2px;background:var(--id-titre);opacity:.9}
.vs-id-jour{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px 0}
.vs-id-jour b{flex:none;width:44px;font-family:Georgia,serif;font-size:12px;color:var(--id-titre)}
.vs-id-page.apres .vs-id-jour b{font-style:italic}
.vs-id-jour i{display:block;height:6px;border-radius:2px;background:var(--id-b)}
.vs-id-volet{position:absolute;top:0;bottom:0;left:100%;width:3px;margin-left:-1.5px;background:var(--vs-identite);opacity:0;pointer-events:none}
.vs-id-panneau{display:flex;flex-direction:column;gap:6px;padding:9px 10px;border:1px solid var(--vs-ligne);border-radius:3px;background:var(--vs-surface)}
.vs-id-panneau > b{font-family:var(--fd);font-size:13.5px;font-weight:600}
.vs-nuancier{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
.vs-nuancier li{display:flex;align-items:center;gap:7px}
.vs-nuancier i{flex:none;width:15px;height:15px;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(21,19,15,.15)}
.vs-nuancier li:nth-child(1) i{background:#B5573A}
.vs-nuancier li:nth-child(2) i{background:#E6C590}
.vs-nuancier li:nth-child(3) i{background:#2F6E7E}
.vs-nuancier li:nth-child(4) i{background:#7A3420}
.vs-nuancier em{display:block;height:5px;border-radius:2px;background:var(--vs-ligne-fort)}
.vs-police{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding-top:4px;border-top:1px solid var(--vs-ligne);font-size:11px;color:var(--vs-doux)}
.vs-police b{font-size:15px;line-height:1.2;font-weight:500;color:var(--vs-encre)}
.vs-police b.serif{font-family:Georgia,serif;font-style:italic}
.vs-police svg{width:56px;height:14px}
.vs-police svg path{fill:none;stroke:var(--vs-identite);stroke-width:2;stroke-linecap:round}

/* Feuillet 8 : la chasse. La carte remplit la scène et ne bouge pas ; le
   reste est une couche par-dessus. */
.vs-chasse{border:0}
.vs-carte{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vs-parcours{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.vs-sillage{fill:none;stroke:rgba(255,248,232,.75);stroke-width:5;stroke-linecap:round}
.vs-pointilles{fill:none;stroke:#5A3413;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:5 7}
.vs-repere{position:absolute;width:26px;height:26px;padding:4px;border-radius:50%;transform:translate(-50%,-50%);
  background:#FCFAF5;color:#4E5A34;box-shadow:0 0 0 2px #4E5A34,0 3px 6px rgba(20,14,6,.35)}
.vs-repere svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vs-croix{position:absolute;width:24px;height:24px;margin:-12px 0 0 -12px;overflow:visible}
.vs-croix path{fill:none;stroke:#8A3B1E;stroke-width:3.4;stroke-linecap:round}
.vs-badge{position:absolute;right:14px;bottom:12px;width:52px;height:52px;transform:rotate(-8deg);filter:drop-shadow(0 3px 5px rgba(20,14,6,.35))}
.vs-badge svg{display:block;width:100%;height:100%}
.vs-badge circle{fill:#C08A2E}
.vs-badge circle.in{fill:none;stroke:#FCFAF5;stroke-width:1.6;stroke-dasharray:3 3}
.vs-badge path{fill:none;stroke:#FCFAF5;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
/* Lumo guette le troisième repère, depuis le haut de l'île. */
.vs-guet{position:absolute;left:226px;top:20px;width:28px;height:28px;transform:none;filter:drop-shadow(0 2px 3px rgba(20,14,6,.35))}

/* Feuillet 9 : le quiz. Les cartes s'écartent ; la première se retourne. */
.vs-qz{position:absolute;top:50px;left:50%;width:210px;height:180px;margin-left:-118px}
.vs-q{position:absolute;inset:0;border:1px solid var(--vs-ligne-fort);border-radius:6px;background:var(--vs-surface)}
.vs-q.c3{transform:translate(26px,8px) rotate(6deg);opacity:.55}
.vs-q.c2{transform:translate(13px,4px) rotate(3deg);opacity:.8}
.vs-q.c1{border:0;background:none;perspective:900px}
.vs-flip{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(180deg)}
.vs-face{position:absolute;inset:0;display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid var(--vs-ligne-fort);border-radius:6px;background:var(--vs-fond);
  backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 6px 14px -8px rgba(20,14,6,.35)}
.vs-face.recto{align-items:center;justify-content:center;background:var(--vs-quiz);border-color:var(--vs-quiz)}
.vs-face.recto span{font-family:var(--fd);font-size:56px;font-weight:600;line-height:1;color:var(--vs-fond)}
.vs-face.verso{transform:rotateY(180deg)}
.vs-qt{display:flex;flex-direction:column;gap:6px;margin:0 0 4px}
.vs-qt i{display:block;height:7px;border-radius:2px;background:var(--vs-encre);opacity:.7}
.vs-choix{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid var(--vs-ligne);border-radius:4px}
.vs-choix i{flex:none;width:11px;height:11px;border-radius:50%;border:1.5px solid var(--vs-quiz)}
.vs-choix em{display:block;height:5px;border-radius:2px;background:var(--vs-ligne-fort)}
.vs-choix.choisi{border-color:var(--vs-quiz);background:var(--vs-quiz-doux);box-shadow:0 0 0 1px var(--vs-quiz)}
.vs-choix.choisi i{background:var(--vs-quiz);box-shadow:inset 0 0 0 2px var(--vs-fond)}
.vs-points{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:6px;margin:0}
.vs-points i{width:7px;height:7px;border-radius:50%;background:var(--vs-ligne-fort)}
.vs-points i.on{background:var(--vs-quiz)}

/* Feuillet 10 : l'aperçu. Le retour, l'état du brouillon, le carnet, puis
   « Publier ce voyage » au pied. */
.vs-ap-retour{position:relative;color:var(--vs-encre);font-weight:600}
.vs-souligne{position:absolute;left:0;right:0;bottom:-4px;height:2px;border-radius:1px;background:var(--vf-sepia);transform-origin:0 50%}
.vs-brouillon{margin-left:auto;padding:1px 8px;border-radius:3px;background:var(--vs-accent-doux);font-size:11px;color:var(--vs-encre)}
.vs-ap-cadre{position:absolute;top:44px;left:50%;bottom:48px;width:250px;margin-left:-125px;overflow:hidden;border:1px solid var(--vs-ligne);border-radius:4px;background:#FBF8F1}
.vs-ap-couv{position:relative;height:50px;background:#E6C590;overflow:hidden}
.vs-ap-couv svg{position:absolute;left:0;right:0;bottom:0;width:100%;height:28px}
.vs-ap-couv path{fill:#B5573A}
.vs-ap-couv i{position:absolute;left:12px;top:11px;width:50%;height:10px;border-radius:2px;background:#7A3420}
.vs-ap-jours{display:flex;flex-direction:column;gap:6px;padding:8px 10px}
.vs-ap-jour{display:flex;flex-direction:column;gap:4px;padding:6px 9px;border:1px solid #E2DAC9;border-radius:3px;background:#FCFAF5}
.vs-ap-jour b{font-family:Georgia,serif;font-style:italic;font-size:11.5px;color:#7A3420}
.vs-ap-jour i{display:block;height:5px;border-radius:2px;background:#DED5C2}
.vs-ap-pied{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:flex-end;align-items:center;height:40px;padding:0 12px;border-top:1px solid var(--vs-ligne);background:var(--vs-surface)}
.vs-bouton{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:3px;background:var(--vs-accent);color:var(--vs-fond);font-size:11px;font-weight:600;white-space:nowrap}
.vs-discret{font-size:11px;font-weight:600;color:var(--vs-encre);white-space:nowrap}

/* Feuillet 11 : publier, puis partager. */
.vs-pb{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:center;gap:6px;padding:16px 14px;background:var(--vs-surface)}
.vs-pb-carte{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid var(--vs-ligne-fort);border-radius:5px;background:var(--vs-fond);box-shadow:0 6px 14px -8px rgba(20,14,6,.35)}
.vs-pb-carte > b{font-family:var(--fd);font-size:13.5px;font-weight:600}
.vs-pb-carte ul{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.vs-pb-carte li,.vs-pb-info{display:flex;flex-direction:column;gap:4px;margin:0}
.vs-pb-carte li i,.vs-pb-info i{display:block;height:5px;border-radius:2px;background:var(--vs-ligne-fort)}
.vs-pb-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:2px 0 0}
.vs-pb-partage .vs-pb-actions{justify-content:flex-start}
.vs-pb-fleche{width:22px;height:22px;color:var(--vf-sepia)}
.vs-pb-fleche svg{display:block;width:100%;height:100%}
.vs-pb-adresse{display:block;height:18px;border:1px solid var(--vs-ligne);border-radius:3px;background:var(--vs-surface)}
/* L'invitation : à part, et annotée -- les administrateurs du voyage seuls. */
.vs-pb-inviter{display:flex;flex-direction:column;gap:3px;margin:2px 0 0;padding:7px 8px;border:1.5px dashed var(--vf-sepia);border-radius:4px}
.vs-pb-inviter span{font-size:11px;font-weight:600;color:var(--vs-accent);text-decoration:underline;text-underline-offset:3px}
.vs-pb-inviter em{font-family:var(--fd);font-size:11px;color:var(--vf-sepia)}

/* --- Téléphone : le feuillet se pose en bas, sur toute la largeur utile -- */
@media (max-width:620px){
  .vf-feuillet{padding:16px 18px 10px}
  .vf-titre{font-size:22px;padding-right:58px}
  .vf-corps{font-size:15px;line-height:1.5}
  .vf-timbre{width:54px;height:64px;top:-12px;right:14px}
  .vf-timbre.grand{width:60px;height:72px;top:-16px}
  .vf-lumo-accueil{left:24px;top:-96px;width:92px;height:115px}
  .vf-feuillet.hero .vf-titre{font-size:30px}
  .vf-feuillet.hero .vf-corps{font-size:15.5px}
  .vf-voyage{display:none}
  .vf-prog{margin-top:10px}
  .vf-gestes{margin-top:8px;padding-top:6px}
  .vf-blanc{margin-top:8px}
  /* Carnet serré : quand la page la plus haute prendrait plus de la moitié
     de l'écran, pour laisser la cible au-dessus du carnet. */
  .vf-carnet.serre .vf-titre{font-size:20px}
  .vf-carnet.serre .vf-corps{font-size:14.5px;line-height:1.45;margin-top:6px}
  .vf-carnet.serre .vf-feuillet.hero .vf-titre{font-size:27px}
  .vf-carnet.serre .vf-voyage{display:none}
}

@media (prefers-reduced-motion:reduce){
  .vf-prog i.cur::after{animation:none}
  .vs *{transition:none!important}
  .vs[data-mode="lumo"] .vs-curseur{animation:none}
}
@media (prefers-color-scheme:dark){
  /* La carte reste une aquarelle sur papier ; elle se tamise un peu. */
  .vs-carte{filter:brightness(.88)}
}
