/*
 * Gabarit « Les Univers d'Alexandre » (avec theme.js).
 * Parchemin, bannière peinte, barre sarcelle, plaques et pied de page.
 * Sur les pages intérieures, le contenu existant est posé dans un grand
 * panneau sarcelle bordé d'or : ses couleurs claires restent lisibles.
 */
:root {
  --uaEncre: #4a2414; --uaVin: #6e1f24; --uaSarcelle: #163d44; --uaSarcelle2: #0f2d33;
  --uaOr: #b98a3e; --uaCreme: #f6e7c4;
  --uaTitre: 'Cinzel', 'Liberation Serif', Georgia, serif;
  --uaTexte: 'Lora', 'DejaVu Serif', Georgia, serif;
}

/* ---------- Parchemin ---------- */
html.ua { background: #e9d6ab url(/template/decors/d4-raccord.webp) repeat; background-size: 512px; }
html.ua body { background: transparent !important; }
/* Appli installée sur iPhone : la barre d'état (heure, batterie) est
   transparente, et le contenu passait dessous en faisant défiler. Un bandeau
   sarcelle fixe, de la hauteur de cette barre, la garde lisible. */
html.ua body::before { content: ''; position: fixed; z-index: 9999; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #12313a; pointer-events: none; }

/* ---------- Plaques (image d'ornement + texte posé dessus) ---------- */
.uaPlaque { position: relative; display: block; color: inherit; text-decoration: none; }
.uaPlaque > img { display: block; width: 100%; height: auto; }
.uaPlaque > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 12%; }
/* Guirlande de saison sur le cartouche du titre (theme.js). */
/* Derrière le cartouche (z-index -1 dans le groupe du titre) : elle dépasse au-dessus et sur les côtés sans cacher le texte. */
.uaPlaque > img.uaGuirlande { position: absolute; z-index: -1; left: 50%; top: 0; width: 116%; max-width: none; height: auto; transform: translate(-50%, -40%); pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
@media (max-width: 520px) { .uaPlaque > img.uaGuirlande { width: 104%; } html[data-saison] .uaMarque { top: calc(30px + env(safe-area-inset-top)); } }
/* Un peu de place au-dessus du titre pour la guirlande, sur ordinateur. */
@media (min-width: 900px) { html[data-saison] .uaMarque { top: calc(3.5vw + 22px); } }
/* Ornement de saison (houx) au coin supérieur gauche de l'encart de la page. */
.uaAvecOrnement { position: relative; }
/* Le lien « ← Accueil » en haut à gauche laisse la place à l'ornement (Infos, Journal). */
.uaAvecOrnement > a.back { margin-left: 52px; }
@media (max-width: 520px) { .uaAvecOrnement > a.back { margin-left: 44px; } }
.uaOrnementSaison { position: absolute; z-index: 2; top: -18px; left: -16px; width: 92px; height: auto; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
@media (max-width: 520px) { .uaOrnementSaison { width: 70px; top: -14px; left: -10px; } }
.uaTitre { font-family: var(--uaTitre); font-weight: 700; letter-spacing: .03em; }

/* ---------- Bannière ---------- */
.uaBanniere { position: relative; height: 190px; overflow: hidden; border-bottom: 3px solid var(--uaOr); background: #2d4f6b; }
.uaBanniere .uaFond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.uaMarque { position: absolute; left: 50%; top: calc(18px + env(safe-area-inset-top)); transform: translateX(-50%); width: 84%; max-width: 520px; text-align: center; z-index: 2; }
.uaRouge > span { color: #f8e3b0; font: 700 clamp(13px, 3.7vw, 26px) var(--uaTitre); letter-spacing: .02em; text-shadow: 0 2px 2px rgba(0,0,0,.55); padding: 0 15%; white-space: nowrap; }
.uaCreme { width: 76%; margin: 2px auto 0; }
.uaCreme > span { color: #5a1d1d; font: italic 500 clamp(11px, 3.2vw, 15px) var(--uaTexte); padding: 0 10%; white-space: nowrap; }
.uaBanniere--accueil { height: 330px; }
/* L'accueil garde la même plaque que les autres pages ; il est seulement un peu
   plus haut sur téléphone, parce que la barre de recherche chevauche son bas. */
/* Bouton ☰ du menu commun, en haut à droite de la bannière. */
.uaBanniere .mnuBtn { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); right: 10px; margin: 0; background: #12313ae6; border-color: var(--uaOr); color: #f2e2bf; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
@media (max-width: 520px) { .uaBanniere .mnuBtn { top: auto; bottom: 10px; } .uaBanniere--accueil .mnuBtn { bottom: 40px; } }
/* Bouton 📍 « Où suis-je ? », en miroir du menu ☰ : l'en-tête prend l'illustration du land. */
.uaBanniere .uaOu { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); left: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: 46%; padding: 8px 13px; border: 1px solid var(--uaOr); border-radius: 999px; background: #12313ae6; color: #f2e2bf; font: 600 13px 'Jost', Arial, sans-serif; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
.uaBanniere .uaOu b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.uaBanniere .uaOu[aria-pressed="true"] { background: #7a1f24eb; border-color: #f2d48a; color: #fff3d6; }
.uaBanniere .uaOu.uaOuCherche span { animation: uaOuClignote 1s ease-in-out infinite; }
@keyframes uaOuClignote { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .uaBanniere .uaOu.uaOuCherche span { animation: none; } }
@media (max-width: 520px) { .uaBanniere .uaOu { top: auto; bottom: 10px; padding: 8px 11px; font-size: 12px; } .uaBanniere--accueil .uaOu { bottom: 40px; } }
/* Illustration d'un land (format 4:3) : cadrée sur le centre de la scène. */
.uaBanniere .uaFond[data-n^="land-"] { object-position: 50% 55%; }
@media (max-width: 520px) {
  /* Téléphone : le décor est centré (l'arche sous le titre) et commence sous la
     barre d'état de l'iPhone (heure, batterie), pour que le dirigeable passe sous
     le ruban, avec Space Mountain et le château de part et d'autre. */
  .uaBanniere { height: calc(290px + env(safe-area-inset-top, 0px)); }
  .uaBanniere--accueil { height: calc(330px + env(safe-area-inset-top, 0px)); }
  .uaBanniere .uaFond { top: env(safe-area-inset-top, 0px); height: 348px; object-position: 50% 0; }
}

/* ---------- Barre de navigation (navigateur seulement) ---------- */
.uaNav { display: none; }
@media (min-width: 900px) {
  /* Pages intérieures : même cadrage que l'accueil (dirigeable, Space Mountain,
     château), un peu moins haut pour que le contenu reste proche. */
  .uaBanniere { height: clamp(420px, 30vw, 600px); }
  .uaBanniere .uaFond { object-position: 50% 40%; }
  .uaMarque { top: 3.5vw; max-width: min(600px, 36vw); }
  .uaRouge > span { font-size: clamp(13px, 1.6vw, 26px); }
  .uaCreme > span { font-size: clamp(12px, .95vw, 16px); }
  .uaBanniere--accueil { height: 500px; }
  /* Accueil sur ordinateur : réglé comme les pages intérieures (ci-dessus). */
  .uaBanniere--accueil { height: clamp(420px, 30vw, 600px); }
  .uaNav { display: flex; justify-content: center; flex-wrap: wrap; background: linear-gradient(#1d4650, #12313a); border-bottom: 3px solid var(--uaOr); position: relative; z-index: 2; }
  .uaNav a { color: #f2e2bf; padding: 13px 18px; font: 15px var(--uaTexte); text-decoration: none; border-right: 1px solid rgba(185,138,62,.45); }
  .uaNav a:first-child { border-left: 1px solid rgba(185,138,62,.45); }
  .uaNav a:hover, .uaNav a:focus-visible { background: rgba(185,138,62,.14); color: #fff3d6; outline: none; }
  .uaNav a[aria-current] { background: rgba(185,138,62,.26); color: #fff3d6; }
}
html[data-invite] .uaNavCarnet { display: none; }

/* ---------- Onglets d'une rubrique (Encyclopédie, Journal, Mes clichés) ----------
   Centrés quand ils tiennent, défilent sinon (les marges automatiques des
   pseudo-éléments font le centrage sans couper le premier onglet). */
.uaOnglets { display: flex; gap: 6px; padding: 10px 12px; background: #12313a; border-bottom: 2px solid var(--uaOr); overflow-x: auto; scrollbar-width: none; position: relative; z-index: 2; }
.uaOnglets::-webkit-scrollbar { display: none; }
.uaOnglets::before, .uaOnglets::after { content: ''; margin: auto; }
.uaOnglets a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(185,138,62,.55); color: #f2e2bf; font: 14px var(--uaTexte); text-decoration: none; white-space: nowrap; }
.uaOnglets a:hover, .uaOnglets a:focus-visible { background: rgba(185,138,62,.16); outline: none; }
.uaOnglets a[aria-current] { background: var(--uaOr); border-color: var(--uaOr); color: #1b1418; font-weight: 600; }
.uaCourt { display: none; }
@media (max-width: 520px) { .uaOnglets { padding: 9px 10px; gap: 5px; } .uaOnglets a { padding: 6px 11px; font-size: 13.5px; } .uaLong { display: none; } .uaCourt { display: inline; } }

/* ---------- Pied de page ---------- */
/* Pied de page : Big Thunder Mountain en entier (téléphone : toute l'image ;
   ordinateur : le haut de la montagne et le train). */
.uaPied { position: relative; margin-top: 30px; height: 280px; overflow: hidden; border-top: 3px solid var(--uaOr); }
.uaPied > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.uaPied::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(20,10,20,.7)); }
.uaSig { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fbe9c2; font: italic 13px var(--uaTexte); text-shadow: 0 1px 3px #000; }
@media (min-width: 900px) { .uaPied { height: clamp(380px, 30vw, 540px); } .uaPied > img { object-position: 50% 20%; } .uaSig { font-size: 16px; } }

/* ================= Pages intérieures ================= */
/* Teintes des pages, ramenées vers le sarcelle du gabarit. */
html.ua:not(.uaAccueil) {
  --bg: #0f2a30; --bg2: #123139; --card: #143840; --card2: #184550; --deep: #0b2025; --night: #0f2a30; --navy: #0f2a30;
}
/* L'en-tête d'origine devient une petite barre d'outils sur le parchemin. */
html.ua:not(.uaAccueil) .masthead { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.ua:not(.uaAccueil) .masthead .brand { display: none !important; }
html.ua:not(.uaAccueil) .masthead a:not(.brand) { background: linear-gradient(#f7ead0, #efdcb4) !important; color: var(--uaEncre) !important; border: 1.5px solid #c7a467 !important; box-shadow: 0 2px 0 #b38f55; }
html.ua:not(.uaAccueil) .masthead:not(:has(a:not(.brand), button)) { display: none !important; }
/* Le contenu : un grand panneau sarcelle bordé d'or. */
html.ua:not(.uaAccueil) body > main, html.ua:not(.uaAccueil) main.page {
  box-sizing: border-box; position: relative; margin-top: 18px; margin-bottom: 0;
  background: radial-gradient(ellipse at 85% 0, #2a6a7333, transparent 50%), linear-gradient(170deg, #173c44, #10262d 42%, #0c1d22);
  border: 2px solid var(--uaOr); border-radius: 18px;
  box-shadow: inset 0 0 0 5px rgba(185,138,62,.16), 0 4px 0 #8a6a35, 0 14px 30px rgba(60,30,10,.35);
  padding: 20px clamp(12px, 2.4vw, 28px) 28px;
}
html.ua:not(.uaAccueil) main .hero {
  background: radial-gradient(ellipse at 85% 0, #2a6a7355, transparent 55%), linear-gradient(150deg, #1d4b53, #163d44 45%, #0f2d33) !important;
  border-color: var(--uaOr) !important;
}
/* Mêmes proportions partout (scan du 26 novembre) : largeur du panneau et
   titre de page identiques sur toutes les pages intérieures. Les deux pages
   « message » (hors connexion, page introuvable) gardent leur petite carte. */
@media (min-width: 900px) {
  html.ua:not(.uaAccueil) body:not([data-ua-message]) > main, html.ua:not(.uaAccueil) body:not([data-ua-message]) main.page { width: calc(100% - 48px) !important; max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; }
}
html.ua:not(.uaAccueil) body:not([data-ua-message]) main h1 { font: 400 clamp(36px, 4.4vw, 58px)/1.08 var(--uaTitre) !important; letter-spacing: -.5px; }
html.ua:not(.uaAccueil) body:not([data-ua-message]) main h1 em { font-family: 'Poiret One', var(--uaTexte); font-style: normal; letter-spacing: 0; }
html.ua:not(.uaAccueil) .infosTitre em, html.ua:not(.uaAccueil) .journalTitre em { color: var(--gold-light, #e7c98a); }
/* Polices par défaut : boutons et champs prennent celle de la page (sinon Arial
   du navigateur), et une page sans police déclarée prend Jost. */
:where(html.ua) :where(button, input, select, textarea) { font-family: inherit; }
:where(html.ua) body { font-family: 'Jost', Arial, sans-serif; }
@media (max-width: 640px) {
  html.ua:not(.uaAccueil) body > main, html.ua:not(.uaAccueil) main.page { width: auto !important; margin-left: 8px !important; margin-right: 8px !important; padding: 14px 12px 22px; }
}

/* Page de connexion : le formulaire devient une carte sarcelle sous la bannière. */
html.ua body:has(> form[action="/api/connexion"]) { display: block !important; place-items: normal !important; padding: 0 !important; }
html.ua form[action="/api/connexion"] { margin: 28px auto 0; background: radial-gradient(ellipse at 85% 0, #2a6a7355, transparent 55%), linear-gradient(150deg, #1d4b53, #163d44 45%, #0f2d33); border: 2px solid var(--uaOr); box-shadow: inset 0 0 0 5px rgba(185,138,62,.16), 0 4px 0 #8a6a35, 0 14px 30px rgba(60,30,10,.35); }
@media (max-width: 420px) { html.ua form[action="/api/connexion"] { width: auto; margin: 22px 10px 0; } }

/* Fiches boutiques et restaurants : cartes sarcelle profond, filet doré. */
html.ua .shopCard, html.ua .restaurantCard { background: linear-gradient(150deg, #1a434b, #112d34 70%, #0d2429) !important; border-color: #b98a3e99 !important; box-shadow: 0 2px 0 #8a6a3555, 0 8px 18px rgba(0,0,0,.25); }
html.ua .shopCard:hover, html.ua .restaurantCard:hover { border-color: var(--uaOr) !important; }
html.ua .shopPhoto { border-bottom-color: #b98a3e88 !important; background: #10272d !important; }

/* Médaillon peint de la page (theme.js), à la place des sceaux dessinés. */
html.ua .uaAvecMedaillon { position: relative; }
html.ua .uaAvecMedaillon .heroSeal { display: none !important; }
html.ua .uaMedaillon { float: right; width: 72px; height: 72px; margin: 0 0 6px 10px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); position: relative; z-index: 1; }
html.ua .uaMedaillon.uaIcone { padding: 8px; border: 2px solid var(--uaOr); border-radius: 50%; background: radial-gradient(#f7ead0, #e6cf9d); }
@media (min-width: 900px) {
  html.ua .uaMedaillon { position: absolute; float: none; right: 34px; top: 50%; transform: translateY(-50%); width: 150px; height: 150px; margin: 0; }
  html.ua .uaMedaillon.uaIcone { padding: 18px; }
}

/* ---------- Pluie animée sur l'en-tête (theme.js, ciel « pluie ») ---------- */
/* En-tête de nuit : étoiles scintillantes et lueurs de bougie (placées par theme.js sur le dessin). */
.uaEtoiles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.uaEtoiles i { position: absolute; transform: translate(-50%, -50%) scale(.55); opacity: .2; animation: uaScintille 3s ease-in-out infinite; will-change: transform, opacity;
  background: radial-gradient(circle, #fff 0 7%, rgba(255,250,225,.75) 12%, rgba(255,240,200,.18) 30%, transparent 52%),
              linear-gradient(90deg, transparent 0 46%, rgba(255,252,235,.9) 50%, transparent 54% 100%) center / 100% 70% no-repeat,
              linear-gradient(transparent 0 46%, rgba(255,252,235,.9) 50%, transparent 54% 100%) center / 70% 100% no-repeat; }
/* Lueurs de bougie des lumières : vacillement irrégulier, à des rythmes différents. */
.uaEtoiles b { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; opacity: .7; animation: uaBougie 2s linear infinite; will-change: opacity, transform;
  background: radial-gradient(circle, rgba(255,226,160,.75) 0, rgba(255,190,95,.38) 30%, rgba(255,150,50,.12) 55%, transparent 72%); }
@keyframes uaBougie { 0% { opacity: .55; transform: translate(-50%, -50%) scale(.94); } 12% { opacity: .9; } 21% { opacity: .62; transform: translate(-50%, -50%) scale(1.02); } 34% { opacity: 1; } 41% { opacity: .7; transform: translate(-50%, -50%) scale(.97); } 58% { opacity: .95; transform: translate(-50%, -50%) scale(1.05); } 66% { opacity: .58; } 79% { opacity: .88; transform: translate(-50%, -50%) scale(.98); } 88% { opacity: .66; } 100% { opacity: .55; transform: translate(-50%, -50%) scale(.94); } }
@keyframes uaScintille { 0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(.5); } 45% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 60% { opacity: .85; transform: translate(-50%, -50%) scale(.85) rotate(8deg); } }
.uaPluie { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.uaPluie[hidden] { display: none; }
.uaPluie::before, .uaPluie::after { content: ''; position: absolute; left: -10px; right: -130px; top: -660px; bottom: 0; will-change: transform; }
/* Nappe proche : gouttes longues et claires. */
.uaPluie::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='220' stroke='%23e6eef8' stroke-linecap='round'%3E%3Cg stroke-width='1.4' opacity='.55'%3E%3Cpath d='M12 8l-5 30M58 70l-5 30M95 20l-5 30M35 140l-5 30M80 160l-5 30M20 190l-4 24'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 110px 220px; animation: uaPluie 1.65s linear infinite;
}
/* Nappe lointaine : fines, plus lentes. */
.uaPluie::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='110' stroke='%23d5e0ee' stroke-linecap='round'%3E%3Cg stroke-width='.9' opacity='.4'%3E%3Cpath d='M8 6l-3 16M40 34l-3 16M62 70l-3 16M24 84l-3 16'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 70px 110px; animation: uaPluieLoin 3s linear infinite; top: -440px;
}
/* Un motif entier en largeur et plusieurs en hauteur : la boucle ne se voit pas. */
@keyframes uaPluie { to { transform: translate3d(-110px, 660px, 0); } }
@keyframes uaPluieLoin { to { transform: translate3d(-70px, 440px, 0); } }
@media (prefers-reduced-motion: reduce) { .uaPluie::before, .uaPluie::after { animation: none; } }
/* Flocons (quand il neige sur le parc) : deux nappes de points blancs qui descendent en dérivant un peu. */
.uaNeige { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.uaNeige[hidden] { display: none; }
.uaNeige::before, .uaNeige::after { content: ''; position: absolute; left: -160px; right: -10px; top: -840px; bottom: 0; will-change: transform; }
.uaNeige::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='280' fill='%23ffffff'%3E%3Cg opacity='.85'%3E%3Ccircle cx='18' cy='22' r='2.4'/%3E%3Ccircle cx='92' cy='64' r='1.9'/%3E%3Ccircle cx='54' cy='128' r='2.6'/%3E%3Ccircle cx='120' cy='176' r='2'/%3E%3Ccircle cx='30' cy='214' r='1.8'/%3E%3Ccircle cx='78' cy='252' r='2.2'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 140px 280px; animation: uaNeige 15s linear infinite;
}
.uaNeige::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='180' fill='%23f2f6ff'%3E%3Cg opacity='.55'%3E%3Ccircle cx='10' cy='14' r='1.2'/%3E%3Ccircle cx='62' cy='48' r='1'/%3E%3Ccircle cx='34' cy='96' r='1.3'/%3E%3Ccircle cx='80' cy='132' r='1'/%3E%3Ccircle cx='20' cy='162' r='1.1'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 90px 180px; animation: uaNeigeLoin 22s linear infinite; top: -540px; left: -100px;
}
@keyframes uaNeige { to { transform: translate3d(140px, 840px, 0); } }
@keyframes uaNeigeLoin { to { transform: translate3d(90px, 540px, 0); } }
@media (prefers-reduced-motion: reduce) { .uaNeige { display: none; } }
html.eco .uaNeige { display: none; }
html.eco .uaPluie::before, html.eco .uaPluie::after { animation: none; }

/* ---------- Un site plus vivant (animations légères) ----------
   Tout s'éteint si le téléphone demande moins d'animations. */
/* Apparition au défilement (classe posée par theme.js). */
.uaRevele { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease-out; transition-delay: var(--uaDelai, 0s); }
.uaRevele.uaVu { opacity: 1; transform: none; }
/* Survol : les cartes se soulèvent. */
@media (hover: hover) {
  html.ua :is(.tuile, .card, .carte, .shopCard, .spot, .chiffre, .top, details.carte, .jours a, .mosaique a) { transition: transform .25s ease, box-shadow .25s ease; }
  html.ua :is(.tuile, .card, .carte, .shopCard, .spot, .chiffre, .top, .jours a):hover { transform: translateY(-3px); box-shadow: 0 10px 24px #0000004d; }
}
@media (prefers-reduced-motion: reduce) {
  .uaRevele { opacity: 1; transform: none; transition: none; }
}

/* Alerte urgente reçue site ouvert (theme.js) */
.uaUrgent{position:fixed;z-index:9999;left:50%;top:calc(10px + env(safe-area-inset-top));transform:translateX(-50%);width:min(520px,calc(100% - 20px));box-sizing:border-box;display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:12px 14px;border-radius:14px;background:#7a1f16;border:1px solid #f0c98a;color:#fff6e6;text-decoration:none;box-shadow:0 10px 30px #0008;font-size:14px;line-height:1.4}
.uaUrgent b{font-size:15px}.uaUrgent span{grid-column:1;white-space:pre-line;opacity:.92}
.uaUrgent button{grid-row:1/3;grid-column:2;align-self:start;background:none;border:0;color:inherit;font-size:22px;line-height:1;cursor:pointer}

/* Mode batterie (jour J) : rien qui bouge, fond sombre */
html[data-batterie] .uaPluie, html[data-batterie] .uaNeige, html[data-batterie] .uaEtoiles { display: none !important; }
html[data-batterie] *, html[data-batterie] *::before, html[data-batterie] *::after { animation: none !important; transition: none !important; }
html[data-batterie] body { background: #0b1214 !important; background-image: none !important; }

/* Anniversaire (4 décembre) : ruban doré sous le titre, sans animation */
.uaAnniv { position: relative; z-index: 2; margin: 6px auto 0; width: max-content; max-width: 92%; padding: 4px 16px; border: 1px solid #f3d48a; border-radius: 999px; background: linear-gradient(180deg, #7a1f16, #5a140e); color: #fbe9c2; font: italic 600 13px var(--uaTexte, Georgia, serif); letter-spacing: .04em; box-shadow: 0 4px 14px #0007; text-shadow: 0 1px 2px #000; }

/* En-tête ou pied hors de l'écran : animations en pause (batterie). */
.uaHorsVue *, .uaHorsVue *::before, .uaHorsVue *::after { animation-play-state: paused !important; }

/* ---------- Lettrines : première lettre en capitale dorée ---------- */
html.ua .intro::first-letter, html.ua .lettrine::first-letter { font: 700 1.85em/.8 var(--uaTitre); font-style: normal; color: #9b6a22; text-shadow: 0 1px 0 #fff8e6aa, 0 0 1px #6b4a1a66; padding-right: 1px; }

/* ---------- Filet doré à rose des vents, entre les grandes parties ---------- */
.uaFilet { position: relative; height: 26px; max-width: 560px; margin: 30px auto 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.6' fill='none' stroke='%23b98a3e' stroke-width='.9'/%3E%3Cpath d='M12 .8l2 9.2 9.2 2-9.2 2-2 9.2-2-9.2L.8 12l9.2-2z' fill='%23b98a3e'/%3E%3Cpath d='M12 5.5l1 5.5 5.5 1-5.5 1-1 5.5-1-5.5-5.5-1 5.5-1z' fill='%23f1d79a' transform='rotate(45 12 12)'/%3E%3Ccircle cx='12' cy='12' r='1.3' fill='%234a2414'/%3E%3C/svg%3E") center / 26px 26px no-repeat; }
.uaFilet::before, .uaFilet::after { content: ''; position: absolute; top: 50%; width: calc(50% - 22px); height: 4px; margin-top: -2px; border-top: 1.5px solid; border-bottom: .6px solid; border-image: linear-gradient(90deg, transparent, #b98a3e 75%) 1; }
.uaFilet::before { left: 0; }
.uaFilet::after { right: 0; border-image: linear-gradient(270deg, transparent, #b98a3e 75%) 1; }

/* ---------- Couleur et motif de chaque land (fer forgé Belle Époque, planches western,
   zellige d'Adventureland, fanions de Fantasyland, laiton riveté de Discoveryland…) ---------- */
[data-land*="Main Street"] { --land: #c4544a; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Crect width='24' height='10' fill='%237a1f24'/%3E%3Cpath d='M0 5c3-4 6-4 6 0s3 4 6 0 3-4 6 0 3 4 6 0' fill='none' stroke='%23e2bf7a' stroke-width='1.1'/%3E%3Ccircle cx='3' cy='5' r='.9' fill='%23e2bf7a'/%3E%3Ccircle cx='15' cy='5' r='.9' fill='%23e2bf7a'/%3E%3Cpath d='M0 .6h24M0 9.4h24' stroke='%23e2bf7a' stroke-width='.8'/%3E%3C/svg%3E"); }
[data-land*="Frontier"] { --land: #c98a35; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='10'%3E%3Crect width='44' height='10' fill='%237b4a25'/%3E%3Crect x='22' width='22' height='10' fill='%236c4020'/%3E%3Cpath d='M0 3.5c6-1 12 1 20 0M23 6c6 1 12-1 20 0M2 7.6c5 .6 10-.6 16 0M25 2.6c5-.5 10 .5 16 0' stroke='%2355301a' stroke-width='.7' fill='none'/%3E%3Cpath d='M22 0v10M.5 0v10' stroke='%233d2311' stroke-width='1'/%3E%3Ccircle cx='3.2' cy='5' r='1' fill='%232a180c'/%3E%3Ccircle cx='25.2' cy='5' r='1' fill='%232a180c'/%3E%3C/svg%3E"); }
[data-land*="Adventureland"] { --land: #4c9a5c; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Crect width='16' height='10' fill='%23b5553a'/%3E%3Cpath d='M8 1.4l1 2.6 2.6 1-2.6 1-1 2.6-1-2.6L4.4 5 7 4z' fill='%232f7f78'/%3E%3Cpath d='M8 2.7l.6 1.7 1.7.6-1.7.6-.6 1.7-.6-1.7L5.7 5l1.7-.6z' fill='%23f1dfb4' transform='rotate(45 8 5)'/%3E%3Cpath d='M0 .6h16M0 9.4h16' stroke='%23e6c48a' stroke-width='1' stroke-dasharray='2 1'/%3E%3C/svg%3E"); }
[data-land*="Fantasy"] { --land: #d98fac; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='10'%3E%3Crect width='36' height='10' fill='%23f4e6ec'/%3E%3Cpath d='M0 1h36' stroke='%238a6a4a' stroke-width='.8'/%3E%3Cpath d='M1 1h10L6 9z' fill='%23d98fac'/%3E%3Cpath d='M13 1h10l-5 8z' fill='%237fa7d6'/%3E%3Cpath d='M25 1h10l-5 8z' fill='%23d9b24f'/%3E%3C/svg%3E"); }
[data-land*="Discovery"] { --land: #c27443; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e3a06a'/%3E%3Cstop offset='.5' stop-color='%23a9592c'/%3E%3Cstop offset='1' stop-color='%236b3317'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='16' height='10' fill='url(%23g)'/%3E%3Ccircle cx='8' cy='5' r='1.9' fill='%237d3e1c'/%3E%3Ccircle cx='7.4' cy='4.4' r='.75' fill='%23f6c79a'/%3E%3C/svg%3E"); }
[data-land*="Avengers"] { --land: #cf4b45; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Crect width='20' height='10' fill='%232b2f38'/%3E%3Cpath d='M0 5h4l2-3h8l2 3h4' fill='none' stroke='%23cf4b45' stroke-width='1.2'/%3E%3Cpath d='M6 8h8' stroke='%23d1ad55' stroke-width='.8'/%3E%3C/svg%3E"); }
[data-land*="Pixar"] { --land: #5a98d6; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Crect width='12' height='10' fill='%231d1d22'/%3E%3Crect x='3' y='1' width='3' height='2' rx='.4' fill='%23f2e6cc'/%3E%3Crect x='3' y='7' width='3' height='2' rx='.4' fill='%23f2e6cc'/%3E%3Cpath d='M0 4.3h12' stroke='%235a98d6' stroke-width='.7'/%3E%3Cpath d='M0 5.7h12' stroke='%23e0b84a' stroke-width='.7'/%3E%3C/svg%3E"); }
[data-land*="Frozen"], [data-land*="Reine des Neiges"] { --land: #93c8e2; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Crect width='16' height='10' fill='%232e5f86'/%3E%3Cpath d='M8 1.6v6.8M5 3.3l6 3.4M5 6.7l6-3.4' stroke='%23eaf6ff' stroke-width='.8' stroke-linecap='round'/%3E%3Cpath d='M0 .6h16M0 9.4h16' stroke='%2393c8e2' stroke-width='1'/%3E%3C/svg%3E"); }
[data-land*="Adventure Way"] { --land: #d1ad55; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Crect width='12' height='10' fill='%232f5a3e'/%3E%3Cpath d='M0 8l6-6 6 6' fill='none' stroke='%23d1ad55' stroke-width='1.1'/%3E%3Cpath d='M3 8l3-3 3 3' fill='none' stroke='%23d1ad55' stroke-width='.7'/%3E%3C/svg%3E"); }
[data-land*="Village"] { --land: #d0553f; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Crect width='14' height='10' fill='%235a1a22'/%3E%3Ccircle cx='7' cy='5' r='2.2' fill='%23ffd36b'/%3E%3Ccircle cx='7' cy='5' r='3.4' fill='%23ffd36b' opacity='.25'/%3E%3Cpath d='M0 .6h14M0 9.4h14' stroke='%23d7b874' stroke-width='.9'/%3E%3C/svg%3E"); }
[data-land*="Premiere"], [data-land*="Production"], [data-land*="Toon"] { --land: #9a80c0; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Crect width='12' height='10' fill='%23463063'/%3E%3Cpath d='M0 8l6-6 6 6' fill='none' stroke='%23d1ad55' stroke-width='1.1'/%3E%3Cpath d='M3 8l3-3 3 3' fill='none' stroke='%23d1ad55' stroke-width='.7'/%3E%3C/svg%3E"); }
/* Sous la photo des fiches restaurants et boutiques : la frise du land. */
:is(.restaurantCard, .shopCard)[data-land] :is(.photoWrap, .shopPhoto) { position: relative; border-bottom: 0; }
:is(.restaurantCard, .shopCard)[data-land] :is(.photoWrap, .shopPhoto)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: var(--motif, none) left top / auto 9px repeat-x; z-index: 2; pointer-events: none; }

/* ---------- Journal : clichés tenus par des coins photo, coin de page corné ---------- */
.album { margin: 20px 0 8px; text-align: center; }
.album h3 { margin: 0 0 10px; font: 600 14px var(--uaTitre); letter-spacing: .1em; text-transform: uppercase; color: #9b6a22; }
.albumPage { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 14px; padding: 16px 10px 12px; border-radius: 6px; background: #2b1d14; box-shadow: inset 0 0 0 1px #5a3d22, inset 0 0 30px #0007; }
.coinsPhoto { position: relative; margin: 0; width: min(150px, 28vw); padding: 6px 6px 8px; background: #f8efdc; box-shadow: 0 3px 8px #0008; transform: rotate(var(--r, 0deg)); }
.coinsPhoto img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.coinsPhoto figcaption { margin-top: 5px; font: italic 11px/1.3 var(--uaTexte); color: #5a3a22; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coinsPhoto::before, .coinsPhoto::after, .coinsPhoto img + figcaption::before, .coinsPhoto img + figcaption::after { content: ''; position: absolute; width: 16px; height: 16px; background: linear-gradient(135deg, #e3c27a, #9b6a22); }
.coinsPhoto::before { left: -3px; top: -3px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.coinsPhoto::after { right: -3px; top: -3px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.coinsPhoto img + figcaption::before { left: -3px; bottom: -3px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.coinsPhoto img + figcaption::after { right: -3px; bottom: -3px; clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.albumLien { display: inline-block; margin-top: 8px; font: 13px var(--uaTexte); color: #9b6a22; }
html.ua .card.corne { position: relative; }
html.ua .card.corne::after { content: ''; position: absolute; top: -1px; right: -1px; width: 20px; height: 20px; border-bottom-left-radius: 5px; background: linear-gradient(225deg, #e9d6ab 50%, #c9a76b 51%, #a8844a 100%); box-shadow: -2px 2px 3px #0003; pointer-events: none; }

/* ---------- Sac du jour : un trait de plume raye l'objet coché (chaque ligne) ---------- */
.plume { line-height: 1.4; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M1 8C18 5.5 33 9.5 51 7S81 5.8 99 7.6' fill='none' stroke='%23e2bf7a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") left top / 0% 1.4em repeat-y; transition: background-size .45s cubic-bezier(.4, .1, .3, 1), color .3s; }
input:checked + .plume { color: #a99c86; background-size: 100% 1.4em; }

/* ---------- Carnet à la lanterne : le soir, parchemin brun et texte crème ---------- */
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) { background-color: #4a3320; background-blend-mode: multiply; --uaEncre: #f1e0bd; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) :is(.saison, .apPerso) { color: #f0cf8e !important; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) :is(.intro, .lettrine)::first-letter { color: #f0c46c; text-shadow: 0 0 8px #e7b85a55; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) .uaFilet::before, html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) .uaFilet::after { border-image: linear-gradient(90deg, transparent, #d7b874 75%) 1; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) .uaFilet::after { border-image: linear-gradient(270deg, transparent, #d7b874 75%) 1; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) .une a b { color: #f0cf8e !important; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]) .une a i { color: #cdb48e !important; }

/* Flèche « retour en haut » : bouton rond à droite, en bas. */
.uaHaut { position: fixed; z-index: 900; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1.5px solid #d7b874; border-radius: 50%; color: #f3dca0; background: radial-gradient(circle at 35% 30%, #2a5a62, #12313a 70%); box-shadow: 0 4px 12px #0008, inset 0 0 0 3px #12313a, inset 0 0 0 4px #d7b87455; cursor: pointer; }
.uaHaut:hover { color: #fff3d0; }
.uaHaut[hidden] { display: none; }
html.ua[data-ciel="nuit"]:not([data-lanterne="off"]):not(.uaAccueil) .masthead a:not(.brand) { color: #4a2414 !important; }

/* Journal : comparaison avec la visite précédente. */
.compareAvant { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid #d7b874; border-radius: 0 10px 10px 0; background: #d7b87414; color: #ead7a8; font-size: 13.5px; line-height: 1.5; }
a.souvBtn { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }

/* Police d'enseigne de chaque land (polices.css) : Belle Époque, western, aventure, conte, Jules Verne, Hollywood, high-tech. */
[data-land*="Main Street"] { --enseigne: 'Enseigne Main Street'; }
[data-land*="Frontier"] { --enseigne: 'Enseigne Frontier'; }
[data-land*="Adventureland"] { --enseigne: 'Enseigne Adventure'; }
[data-land*="Fantasy"] { --enseigne: 'Enseigne Fantasy'; }
[data-land*="Discovery"] { --enseigne: 'Enseigne Discovery'; }
[data-land*="Premiere"], [data-land*="Production"] { --enseigne: 'Enseigne Studio'; }
[data-land*="Avengers"] { --enseigne: 'Enseigne Avengers'; }

/* Lever de rideau du jour J (accueil, une fois par visite). */
.uaRideau { position: fixed; inset: 0; z-index: 10001; pointer-events: none; overflow: hidden; }
.uaRideau i { position: absolute; top: 0; bottom: 0; width: 51%; background: linear-gradient(180deg, #0000 0 88%, #0000004d 100%), repeating-linear-gradient(90deg, #6e0d14 0, #a3202a 9px, #c0303a 13px, #8d1820 19px, #5c0a10 28px); box-shadow: inset 0 -18px 0 -6px #d7b874, inset 0 -22px 0 -6px #8a6424; animation: 1.5s .45s cubic-bezier(.65, 0, .25, 1) forwards; }
.uaRideau i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, #e9c46a 0 3px, #b98a2e 3px 6px); -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
.uaRideau .g { left: 0; animation-name: rideauG; box-shadow: inset -30px 0 40px -20px #0009, inset 0 -18px 0 -6px #d7b874; }
.uaRideau .d { right: 0; animation-name: rideauD; box-shadow: inset 30px 0 40px -20px #0009, inset 0 -18px 0 -6px #d7b874; }
@keyframes rideauG { to { transform: translateX(-104%) skewX(-4deg); } }
@keyframes rideauD { to { transform: translateX(104%) skewX(4deg); } }
.uaRideau b { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 10px 22px; border: 2px solid #d7b874; border-radius: 8px; background: #2b0a0dcc; color: #f3dca0; font: 700 24px 'Cinzel', serif; letter-spacing: .12em; white-space: nowrap; animation: rideauTitre .5s .35s ease-in forwards; }
@keyframes rideauTitre { to { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
.uaRideau s { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, #fff6d0, #e3b44a 60%, transparent 70%); opacity: 0; animation: paillette 1.6s ease-out forwards; }
@keyframes paillette { 0% { opacity: 0; transform: translateY(-10px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(90px) scale(1); } }

/* ---------- Étiquettes de bagage (Nouveau, Rouvert, En rénovation, Fermé) ---------- */
.etiquette { position: absolute; top: 12px; left: 16px; z-index: 3; display: inline-block; padding: 5px 10px 5px 20px; font: 700 10.5px/1.2 'Jost', Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--etq, #6b4a33); transform: rotate(-5deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); pointer-events: none; }
.etiquette::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#f4e7c7, #e6d2a6); clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.etiquette::after { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #2b1d14; box-shadow: 0 0 0 1.5px #b98a3e; }
.etiquette i { position: absolute; left: -9px; top: -10px; width: 18px; height: 16px; border-left: 1.5px solid #c9b48a; border-top: 1.5px solid #c9b48a; border-radius: 12px 0 0 0; transform: rotate(-20deg); }
.etiquette--neuf { --etq: #2f6b3a; } .etiquette--rouvert { --etq: #1f5a7a; } .etiquette--renov { --etq: #a3221d; } .etiquette--ferme { --etq: #6b4a33; }

/* ---------- Marque-page ruban : favoris et attractions épinglées ---------- */
.signet { position: relative; }
.signet::after { content: ''; position: absolute; top: -2px; left: 22px; z-index: 4; width: 16px; height: 46px; background: linear-gradient(90deg, #8d1820, #c0303a 45%, #8d1820); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); pointer-events: none; }
:is(.restaurantCard, .shopCard):has(.favStar[aria-pressed="true"]) { position: relative; }
:is(.restaurantCard, .shopCard):has(.favStar[aria-pressed="true"])::after { content: ''; position: absolute; top: -2px; left: 22px; z-index: 4; width: 16px; height: 46px; background: linear-gradient(90deg, #8d1820, #c0303a 45%, #8d1820); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); pointer-events: none; }
:is(.restaurantCard, .shopCard):has(.favStar[aria-pressed="true"]) .parkTag { margin-left: 30px; }
.etiquette.etqDroite { left: auto; right: 16px; }
