/* Oracle de Noël « Néfira » — page /oracle-de-noel (v2.52.0).
   Nuit du Nil, or ancien, neige. Playfair (déjà auto-hébergée) pour la voix de Néfira et les titres,
   Inter pour l'interface. Le moment fort : l'éventail de cartes qu'on touche ; le reste reste sobre. */

@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-latin-700-900.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --nf-nuit: #0a1030;
  --nf-nuit-2: #121a48;
  --nf-lapis: #2a4bb3;
  --nf-or: #e9c46a;
  --nf-or-clair: #fff3c4;
  --nf-or-sombre: #a8741f;
  --nf-neige: #eef2ff;
  --nf-neige-2: rgba(238, 242, 255, 0.78);
  --nf-bougie: #ffb35c;
  --nf-verre: rgba(10, 16, 48, 0.72);
  --nf-trait: rgba(233, 196, 106, 0.38);
  --nf-carte-l: min(26vw, 150px);
  --nf-serif: 'Playfair Display', Georgia, serif;
  --nf-sans: 'Inter', system-ui, sans-serif;
}

[hidden] { display: none !important; }

html, body.nefira-body { height: 100%; margin: 0; background: var(--nf-nuit); color: var(--nf-neige); font-family: var(--nf-sans); overscroll-behavior: none; }
body.nefira-body { overflow: hidden; }

.nf { position: fixed; inset: 0; overflow: hidden; isolation: isolate; }

/* ─── Décor ─────────────────────────────────────────────────────────────── */
.nf-decor { position: absolute; inset: 0; z-index: 0; }
.nf-affiche img, .nf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nf-video { opacity: 0; transition: opacity .8s ease; }
.nf-video.visible { opacity: 1; }
.nf-video.contenue { object-fit: contain; background: radial-gradient(ellipse at center, #121a48, #0a1030 70%); }
.nf-neige { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nf-ombre { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,10,32,.92) 0%, rgba(6,10,32,.55) 32%, rgba(6,10,32,0) 58%),
              linear-gradient(to bottom, rgba(6,10,32,.55) 0%, rgba(6,10,32,0) 14%); transition: background .6s ease; }
.nf[data-etat="tirage"] .nf-ombre, .nf[data-etat="lecture"] .nf-ombre { background: linear-gradient(to top, rgba(6,10,32,.95) 0%, rgba(6,10,32,.6) 45%, rgba(6,10,32,.2) 75%, rgba(6,10,32,.35) 100%); }

/* ─── Barre du haut ─────────────────────────────────────────────────────── */
.nf-haut { position: absolute; z-index: 30; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 0; }
.nf-haut-droite { display: flex; gap: 8px; align-items: center; }
.nf-rond { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--nf-trait); background: rgba(10,16,48,.55); color: var(--nf-or-clair);
  font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; backdrop-filter: blur(6px); }
.nf-diamants { height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid var(--nf-trait); background: rgba(10,16,48,.55); color: var(--nf-neige);
  font: 600 14px var(--nf-sans); cursor: pointer; backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; }
.nf-diamants .cm-menu { opacity: .7; }
.nf-rond:focus-visible, .nf-diamants:focus-visible, .nf-bouton:focus-visible, .nf-bouton-sec:focus-visible, .nf-lien:focus-visible,
.nf-mode:focus-visible, .nf-puce:focus-visible, .nf-dos:focus-visible, .nf-emplacement:focus-visible { outline: 3px solid var(--nf-or-clair); outline-offset: 3px; }

/* ─── Écrans ────────────────────────────────────────────────────────────── */
.nf-ecran { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; }
.nf-colonne { padding: 0 22px calc(28px + env(safe-area-inset-bottom)); max-width: 560px; }

.nf-titre { font-family: var(--nf-serif); font-weight: 800; font-size: clamp(34px, 9vw, 58px); line-height: 1.02; margin: 0 0 10px;
  background: linear-gradient(180deg, #fff8e0 0%, #f3d58a 48%, #c9902f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(233,196,106,.35)); text-wrap: balance; }
.nf-accroche { font-family: var(--nf-serif); font-weight: 700; font-size: 19px; color: var(--nf-or-clair); margin: 0 0 14px; }
.nf-desc { font-size: 15px; line-height: 1.55; color: var(--nf-neige-2); margin: 0 0 20px; max-width: 46ch; }
.nf-apercu { display: inline-block; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(155,28,49,.85); color: #fff; margin: 0 0 12px; }

/* La bulle : Néfira s'adresse à la personne (texte, pas d'IA) */
.nf-bulle { position: relative; font-family: var(--nf-serif); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--nf-neige);
  background: rgba(18,26,72,.72); border: 1px solid var(--nf-trait); border-radius: 18px 18px 18px 4px; padding: 12px 16px; margin: 0 0 16px;
  backdrop-filter: blur(8px); max-width: 34ch; box-shadow: 0 0 30px rgba(233,196,106,.12); }

.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.nf-bouton { appearance: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 27px; font: 700 17px var(--nf-sans); color: #1a1205;
  background: linear-gradient(180deg, #fff1c2 0%, #e9c46a 45%, #c48d2c 100%);
  box-shadow: 0 6px 24px rgba(233,196,106,.38), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .15s ease, box-shadow .15s ease; }
.nf-bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(233,196,106,.5), inset 0 1px 0 rgba(255,255,255,.7); }
.nf-bouton:active { transform: translateY(1px); }
.nf-bouton:disabled { opacity: .55; cursor: wait; transform: none; }
.nf-bouton-large { width: 100%; }
.nf-bouton-sec { appearance: none; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--nf-trait);
  background: rgba(18,26,72,.6); color: var(--nf-neige); font: 600 14px var(--nf-sans); }
.nf-bouton-sec:hover { border-color: var(--nf-or); }
.nf-lien { appearance: none; background: none; border: 0; cursor: pointer; color: var(--nf-or-clair); font: 600 15px var(--nf-sans); text-decoration: underline; text-underline-offset: 4px; padding: 8px 2px; }

/* ─── Feuille du bas (question, fin) ────────────────────────────────────── */
.nf-question, .nf-fin { justify-content: flex-end; background: rgba(6,10,32,.25); }
.nf-feuille { position: relative; background: linear-gradient(180deg, rgba(18,26,72,.92), rgba(10,16,48,.97)); border-top: 1px solid var(--nf-trait);
  border-radius: 26px 26px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); backdrop-filter: blur(14px);
  max-height: 88vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0,0,0,.45); animation: nf-monte .35s ease both; }
@keyframes nf-monte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.nf-fermer { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--nf-neige); cursor: pointer; font-size: 15px; }
.nf-question-titre { display: block; font-family: var(--nf-serif); font-weight: 700; font-size: 22px; color: var(--nf-or-clair); margin: 0 40px 12px 2px; }
.nf-texte { width: 100%; box-sizing: border-box; resize: none; border-radius: 16px; border: 1px solid var(--nf-trait); background: rgba(6,10,32,.6); color: var(--nf-neige);
  font: 16px/1.45 var(--nf-sans); padding: 12px 14px; }
.nf-texte:focus { outline: none; border-color: var(--nf-or); box-shadow: 0 0 0 3px rgba(233,196,106,.2); }
.nf-texte::placeholder { color: rgba(238,242,255,.5); }
.nf-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.nf-puce { appearance: none; cursor: pointer; border: 1px solid var(--nf-trait); background: rgba(42,75,179,.22); color: var(--nf-neige); border-radius: 18px;
  padding: 8px 12px; font: 500 13.5px var(--nf-sans); text-align: left; }
.nf-puce:hover { border-color: var(--nf-or); background: rgba(42,75,179,.35); }

/* Modes : chaque tirage montre sa forme (1 carte, 3 en chemin, 5 en étoile) */
.nf-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 14px; }
.nf-mode { appearance: none; cursor: pointer; border: 1px solid var(--nf-trait); background: rgba(6,10,32,.5); color: var(--nf-neige); border-radius: 16px;
  padding: 10px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-family: var(--nf-sans); transition: border-color .15s, background .15s; }
.nf-mode[aria-checked="true"] { border-color: var(--nf-or); background: linear-gradient(180deg, rgba(233,196,106,.18), rgba(42,75,179,.22)); box-shadow: 0 0 22px rgba(233,196,106,.25); }
.nf-mode-forme { position: relative; width: 64px; height: 46px; }
.nf-mode-forme i { position: absolute; width: 14px; height: 20px; border-radius: 3px; background: linear-gradient(160deg, #f6d77c, #a8741f); box-shadow: 0 0 6px rgba(233,196,106,.6); }
.nf-mode-nom { font-weight: 700; font-size: 12.5px; line-height: 1.2; }
.nf-mode-prix { font-size: 12.5px; color: var(--nf-or-clair); }
.nf-mention { font-size: 12.5px; color: var(--nf-neige-2); text-align: center; margin: 10px 0 0; }

/* ─── Le tirage ─────────────────────────────────────────────────────────── */
.nf-tirage { justify-content: flex-start; align-items: center; padding-top: calc(70px + env(safe-area-inset-top)); }
.nf-consigne { position: absolute; left: 16px; right: 16px; top: calc(66px + env(safe-area-inset-top)); z-index: 4; font-family: var(--nf-serif); font-weight: 700; font-size: 20px; color: var(--nf-or-clair); text-align: center; margin: 0; min-height: 28px; pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.nf-emplacements { position: relative; width: 100%; height: 0; flex: 0 0 auto; }
.nf-eventail { position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); height: 46vh; pointer-events: none; }
.nf-eventail.actif { pointer-events: auto; }

/* Une carte (dos ou face) — tailles en variables pour l'éventail et les emplacements */
.nf-dos { position: absolute; left: 50%; bottom: 15vh; width: calc(var(--nf-carte-l) * .78); aspect-ratio: 3 / 4; margin-left: calc(var(--nf-carte-l) * -.39);
  border-radius: 9px; background: var(--nf-dos-image, linear-gradient(160deg, #1f2b66, #0a1030)) center / cover; border: 1px solid rgba(233,196,106,.8);
  box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 10px rgba(233,196,106,.25); transform-origin: 50% 330%; cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .2s, opacity .3s; appearance: none; padding: 0; }
.nf-dos:hover { box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 22px rgba(255,220,130,.75); }
.nf-dos.pris { opacity: 0; pointer-events: none; }

.nf-carte { position: absolute; width: var(--nf-carte-l); aspect-ratio: 3 / 4; perspective: 1200px; transition: left .6s cubic-bezier(.2,.8,.2,1), top .6s cubic-bezier(.2,.8,.2,1), width .6s, transform .6s; }
.nf-carte-in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.7,.2,1); }
.nf-carte.retournee .nf-carte-in { transform: rotateY(180deg); }
.nf-face, .nf-verso { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.nf-verso { background: var(--nf-dos-image, linear-gradient(160deg, #1f2b66, #0a1030)) center / cover; border: 1px solid rgba(233,196,106,.85); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.nf-face { transform: rotateY(180deg); background: #0a1030 center / cover; box-shadow: 0 10px 30px rgba(0,0,0,.65), 0 0 0 1px rgba(233,196,106,.5); }
.nf-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-carte.parle .nf-face { box-shadow: 0 0 0 2px var(--nf-or-clair), 0 0 34px rgba(255,220,130,.9), 0 10px 30px rgba(0,0,0,.65); }
.nf-carte.parle { transform: translateY(-10px) scale(1.42); z-index: 5; }
.nf-tirage.focus .nf-carte.nf-emplacement:not(.parle) { opacity: .45; filter: saturate(.6); }
.nf-tirage.focus .nf-carte.parle .nf-pos { opacity: 0; }
.nf-carte.nf-emplacement { transition: left .6s cubic-bezier(.2,.8,.2,1), top .6s cubic-bezier(.2,.8,.2,1), width .6s, transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s, filter .4s; }
@media (min-aspect-ratio: 1/1) and (min-width: 820px) { .nf-carte.parle { transform: translateY(-8px) scale(1.3); } }
.nf-pos { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: calc(100% + 14px); text-align: center; font-size: 11.5px; line-height: 1.2;
  color: var(--nf-neige-2); opacity: 0; transition: opacity .5s .4s; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.nf-carte.retournee .nf-pos { opacity: 1; }
.nf-tirage[data-n="5"] .nf-pos { font-size: 10.5px; }
.nf-emplacement { appearance: none; padding: 0; border: 0; background: none; cursor: zoom-in; }
.nf-eclat { position: absolute; inset: -30%; pointer-events: none; background: radial-gradient(circle, rgba(255,236,170,.85) 0%, rgba(255,220,130,0) 60%); opacity: 0; }
.nf-carte.retournee .nf-eclat { animation: nf-eclat .9s ease-out; }
@keyframes nf-eclat { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }

.nf-attente { font-family: var(--nf-serif); font-weight: 700; font-size: 18px; color: var(--nf-or-clair); text-align: center; margin: 0 20px;
  position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); animation: nf-pulse 2.4s ease-in-out infinite; }
@keyframes nf-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Sous-titres : la voix de Néfira, en Playfair */
.nf-sous-titre { position: absolute; left: 14px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); text-align: center; pointer-events: none; }
.nf-sous-titre span { display: inline; font-family: var(--nf-serif); font-weight: 700; font-size: clamp(18px, 4.8vw, 25px); line-height: 1.45; color: #fff;
  background: rgba(6,10,32,.62); padding: 3px 10px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.nf-lecteur { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.nf-progression { flex: 1; height: 4px; border-radius: 2px; background: rgba(238,242,255,.18); overflow: hidden; }
.nf-progression span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--nf-or-sombre), var(--nf-or-clair)); }

/* ─── Fin ───────────────────────────────────────────────────────────────── */
.nf-feuille-fin { max-height: 62vh; }
.nf-fin-titre { font-family: var(--nf-serif); font-weight: 700; font-size: 22px; color: var(--nf-or-clair); margin: 0 0 12px; }
.nf-fin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.nf-texte-lecture { font-family: var(--nf-serif); font-weight: 700; font-size: 16px; line-height: 1.65; color: var(--nf-neige); background: rgba(6,10,32,.5);
  border: 1px solid var(--nf-trait); border-radius: 14px; padding: 12px 14px; margin: 10px 0; white-space: pre-line; max-width: 70ch; }
.nf-relances-titre { font-size: 13px; color: var(--nf-neige-2); margin: 12px 0 0; }
.nf-fin .nf-bouton { margin-top: 12px; }

/* ─── Zoom, modales ─────────────────────────────────────────────────────── */
.nf-zoom { position: absolute; inset: 0; z-index: 60; background: rgba(6,10,32,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; backdrop-filter: blur(6px); }
.nf-zoom-carte { margin: 0; width: min(78vw, 50vh * .75, 420px); }
.nf-zoom-carte img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 0 40px rgba(233,196,106,.35); }
.nf-zoom-carte figcaption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--nf-neige-2); }
.nf-zoom-carte figcaption strong { display: block; font-family: var(--nf-serif); font-size: 18px; color: var(--nf-or-clair); margin-bottom: 2px; }
.nf-modale, .nf-voile-modal { position: fixed; inset: 0; z-index: 70; background: rgba(6,10,32,.86); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(8px); }
.nf-voile-modal { z-index: 9999; }
.nf-modale-carte { width: 100%; max-width: 430px; box-sizing: border-box; background: linear-gradient(180deg, var(--nf-nuit-2), var(--nf-nuit)); border: 1px solid var(--nf-trait);
  border-radius: 22px; padding: 24px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.nf-modale-carte p { margin: 0; }
.nf-modale-titre { font-family: var(--nf-serif); font-weight: 700; font-size: 21px; color: var(--nf-or-clair); }
.nf-indice { color: var(--nf-bougie); font-weight: 600; }
.nf-histo-liste { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.nf-histo-liste li { display: flex; gap: 8px; align-items: center; background: rgba(6,10,32,.5); border: 1px solid var(--nf-trait); border-radius: 12px; padding: 8px 10px; }
.nf-histo-liste .q { flex: 1; min-width: 0; font-size: 13.5px; }
.nf-histo-liste .qt { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nf-histo-liste .q small { display: block; color: var(--nf-neige-2); font-size: 12px; }
.nf-histo-liste button { flex: 0 0 auto; }
.nf-histo-vide { color: var(--nf-neige-2); }
.nf-danger { border-color: rgba(230,90,110,.5); color: #ffc7cf; }
.nf-danger-plein { background: #9b1c31; border-color: #9b1c31; color: #fff; }
.nf-statut { color: var(--nf-bougie); }
.nf-voile-modal .nf-bouton { color: #1a1205; }

.oracle-rec-canvas { position: fixed; left: -99999px; top: 0; width: 360px; height: 640px; pointer-events: none; }

/* ─── Ordinateur : l'interface vit dans le ciel, à gauche de Néfira ─────── */
@media (min-aspect-ratio: 1/1) and (min-width: 820px) {
  :root { --nf-carte-l: min(11vw, 18vh, 170px); }
  .nf-ombre { background: linear-gradient(to right, rgba(6,10,32,.85) 0%, rgba(6,10,32,.55) 35%, rgba(6,10,32,0) 60%); }
  .nf[data-etat="tirage"] .nf-ombre, .nf[data-etat="lecture"] .nf-ombre { background: linear-gradient(to right, rgba(6,10,32,.9) 0%, rgba(6,10,32,.65) 45%, rgba(6,10,32,.25) 70%), linear-gradient(to top, rgba(6,10,32,.8), rgba(6,10,32,0) 40%); }
  .nf-accueil { justify-content: center; }
  .nf-colonne { padding: 0 0 0 max(56px, 6vw); max-width: 540px; }
  .nf-question, .nf-fin { justify-content: center; align-items: flex-start; padding-left: max(40px, 5vw); background: none; }
  .nf-feuille { width: min(520px, 46vw); border-radius: 26px; border: 1px solid var(--nf-trait); max-height: 86vh; }
  .nf-tirage { align-items: flex-start; }
  .nf-consigne { left: 0; right: auto; width: 60vw; top: 84px; }
  .nf-dos { bottom: 6vh; }
  .nf-eventail { right: 38vw; }
  .nf-sous-titre { left: 4vw; right: 40vw; bottom: 84px; text-align: left; }
  .nf-lecteur { left: 4vw; right: 40vw; }
  .nf-attente { right: 38vw; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-feuille, .nf-attente { animation: none; }
  .nf-carte, .nf-carte-in, .nf-dos { transition-duration: .01s; }
  .nf-neige { display: none; }
}

/* ═══ v2 — La table de Néfira (question, fin) ══════════════════════════════
   Une nappe de velours bleu nuit, ourlet brodé d'or, médaillon étoilé ; la question s'écrit sur un papyrus ;
   les tirages sont posés sur la nappe avec les vrais dos de cartes ; les idées de questions sont des murmures. */
.nf-question, .nf-fin { background: linear-gradient(to top, rgba(6,10,32,.55), rgba(6,10,32,0) 55%); }
.nf-table { position: relative; box-sizing: border-box; padding: 34px 20px calc(18px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto;
  border-radius: 50% 50% 0 0 / 46px 46px 0 0;
  background:
    radial-gradient(130% 70% at 50% 0%, rgba(70,90,190,.28), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, rgba(0,0,0,0) 2px 7px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 2px, rgba(0,0,0,0) 2px 7px),
    linear-gradient(180deg, #141d52 0%, #0c1238 55%, #070b26 100%);
  box-shadow: 0 -18px 50px rgba(0,0,0,.55), inset 0 2px 0 rgba(233,196,106,.35);
  animation: nf-monte .45s cubic-bezier(.2,.8,.2,1) both; }
/* L'ourlet brodé : un fil d'or en pointillés qui suit la courbe de la nappe */
.nf-table::before { content: ''; position: absolute; inset: 9px 9px auto 9px; height: 60px; pointer-events: none;
  border-top: 2px dotted rgba(233,196,106,.75); border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
.nf-medaillon { position: absolute; left: 50%; top: -19px; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #3a2508;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e9c46a 45%, #a8741f 100%);
  box-shadow: 0 0 0 3px #0c1238, 0 0 0 4px rgba(233,196,106,.6), 0 0 24px rgba(233,196,106,.55); }
.nf-revenir { position: absolute; top: 14px; left: 14px; appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--nf-neige-2); font: 500 13px var(--nf-sans); padding: 6px; }
.nf-revenir:hover { color: var(--nf-or-clair); }
.nf-table-titre { display: block; text-align: center; font-family: var(--nf-serif); font-weight: 700; font-size: 23px; line-height: 1.2;
  color: var(--nf-or-clair); margin: 4px 0 14px; text-shadow: 0 2px 14px rgba(233,196,106,.25); }
.nf-table-sous { text-align: center; font-family: var(--nf-serif); font-weight: 700; font-size: 15px; color: rgba(243,213,138,.8); margin: 16px 0 6px; }
.nf-table-sous::before, .nf-table-sous::after { content: ''; display: inline-block; vertical-align: middle; width: 34px; height: 1px; margin: 0 10px;
  background: linear-gradient(90deg, rgba(233,196,106,0), rgba(233,196,106,.7)); }
.nf-table-sous::after { transform: scaleX(-1); }

/* Le papyrus : la question s'écrit à l'encre */
.nf-papyrus { position: relative; border-radius: 3px 6px 4px 7px; padding: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(110,70,20,.07) 0 1px, rgba(0,0,0,0) 1px 5px),
    repeating-linear-gradient(0deg, rgba(110,70,20,.05) 0 1px, rgba(0,0,0,0) 1px 9px),
    radial-gradient(ellipse at 30% 20%, #f7e9c4, #ead39d 60%, #d9bb7b 100%);
  box-shadow: inset 0 0 22px rgba(120,80,20,.45), 0 8px 22px rgba(0,0,0,.55); transform: rotate(-.4deg); }
.nf-papyrus .nf-texte { display: block; width: 100%; box-sizing: border-box; border: 0; background: none; resize: none; color: #2e1c08;
  font: 700 18px/1.5 var(--nf-serif); padding: 12px 14px; }
.nf-papyrus .nf-texte::placeholder { color: rgba(70,45,15,.5); }
.nf-papyrus .nf-texte:focus { outline: none; }
.nf-papyrus:focus-within { box-shadow: inset 0 0 22px rgba(120,80,20,.45), 0 8px 22px rgba(0,0,0,.55), 0 0 0 3px rgba(255,236,170,.65); }
.nf-papyrus-lecture { padding: 14px 16px; color: #2e1c08; font: 700 16px/1.65 var(--nf-serif); white-space: pre-line; transform: rotate(.3deg); margin: 10px 0 4px; }

/* Les murmures : idées de questions, sans pastilles */
.nf-murmures { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 12px 0 0; }
.nf-murmure { appearance: none; background: none; border: 0; cursor: pointer; padding: 6px 8px; text-align: center;
  font: 700 15px/1.35 var(--nf-serif); color: rgba(238,242,255,.82); transition: color .2s, text-shadow .2s; }
.nf-murmure::before { content: '\2726\00a0'; color: var(--nf-or); font-size: 12px; }
.nf-murmure:hover, .nf-murmure:focus-visible { color: var(--nf-or-clair); text-shadow: 0 0 14px rgba(233,196,106,.6); outline: none; }

/* Les tirages posés sur la nappe */
.nf-table .nf-modes { gap: 4px; margin: 4px 0 12px; }
.nf-table .nf-mode { background: none; border: 0; border-radius: 14px; padding: 10px 4px 8px; gap: 8px; position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nf-table .nf-mode::after { content: ''; position: absolute; left: 12%; right: 12%; top: 8px; height: 62px; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse, rgba(255,214,120,.42), rgba(255,214,120,0) 70%); opacity: 0; transition: opacity .35s; }
.nf-table .nf-mode[aria-checked="true"] { background: none; box-shadow: none; transform: translateY(-5px); }
.nf-table .nf-mode[aria-checked="true"]::after { opacity: 1; }
.nf-table .nf-mode-forme { width: 70px; height: 62px; }
.nf-table .nf-mode-forme i { border-radius: 2px; background: var(--nf-dos-image, linear-gradient(160deg, #f6d77c, #a8741f)) center / cover;
  box-shadow: 0 0 0 1px rgba(233,196,106,.85), 0 3px 8px rgba(0,0,0,.6); }
.nf-table .nf-mode[aria-checked="true"] .nf-mode-forme i { box-shadow: 0 0 0 1px #fff3c4, 0 0 12px rgba(255,220,130,.8), 0 3px 8px rgba(0,0,0,.6); }
.nf-table .nf-mode-nom { font: 700 13.5px/1.2 var(--nf-serif); color: var(--nf-neige); }
.nf-table .nf-mode[aria-checked="true"] .nf-mode-nom { color: var(--nf-or-clair); }
.nf-table .nf-mode-prix { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--nf-sans); color: #2b1a05;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e9c46a 55%, #b9852b); border-radius: 10px; padding: 2px 8px; }

/* Le bouton : une barre d'or ciselée, étoiles aux deux bouts */
.nf-sceau { position: relative; letter-spacing: .3px; font-family: var(--nf-serif); font-size: 18px;
  background: linear-gradient(180deg, #fff4cf 0%, #f0cf7c 35%, #c89332 70%, #e9c46a 100%);
  box-shadow: 0 8px 26px rgba(233,196,106,.35), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(120,70,10,.35); }
.nf-sceau::before, .nf-sceau::after { content: '\2726'; font-size: 13px; color: rgba(90,55,10,.75); margin: 0 10px; }
.nf-table .nf-mention { color: rgba(238,242,255,.6); }

/* Fin : actions en lettres d'or, pas en boutons-pilules */
.nf-fin-actions { justify-content: center; gap: 4px 14px; margin-bottom: 4px; }
.nf-action { appearance: none; background: none; border: 0; cursor: pointer; color: var(--nf-or-clair); font: 600 14.5px var(--nf-sans);
  padding: 8px 6px; border-bottom: 1px solid rgba(233,196,106,.35); }
.nf-action:hover, .nf-action:focus-visible { color: #fff; border-bottom-color: var(--nf-or); outline: none; }
.nf-table-fin { max-height: 70vh; }

/* Mes tirages : un coffret */
.nf-modale-carte { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, rgba(0,0,0,0) 2px 7px),
    linear-gradient(180deg, #141d52, #090e2e); border: 1px solid rgba(233,196,106,.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.65), inset 0 0 0 6px rgba(9,14,46,1), inset 0 0 0 7px rgba(233,196,106,.35); }

/* Mode cinéma : la présentation occupe tout l'écran, l'interface s'efface */
.nf[data-etat="presentation"] .nf-accueil { opacity: 0; pointer-events: none; transition: opacity .6s; }
.nf[data-etat="presentation"] .nf-ombre { background: linear-gradient(to top, rgba(6,10,32,.35), rgba(6,10,32,0) 30%); }
.nf-passer { position: absolute; z-index: 35; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); appearance: none; cursor: pointer;
  background: rgba(10,16,48,.6); color: var(--nf-neige); border: 1px solid var(--nf-trait); border-radius: 20px; padding: 9px 16px; font: 600 13px var(--nf-sans); backdrop-filter: blur(6px); }

@media (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf-table { width: min(520px, 46vw); border-radius: 30px; max-height: 88vh; }
  .nf-table::before { inset: 9px; height: auto; bottom: 9px; border: 2px dotted rgba(233,196,106,.5); border-radius: 24px; }
}

/* Le médaillon déborde de la nappe : c'est l'écran qui défile (petits téléphones), jamais la nappe. */
.nf-question, .nf-fin { justify-content: flex-start; overflow-y: auto; padding-top: 70px; box-sizing: border-box; }
.nf-table { overflow: visible; max-height: none; margin-top: auto; padding-top: 48px; }
.nf-table-fin { max-height: none; }
.nf-revenir { top: 18px; left: 16px; }
@media (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf-question, .nf-fin { justify-content: center; padding-top: 40px; padding-bottom: 40px; }
  .nf-table { margin-top: 0; }
}

/* Le bandeau « Installer l'application » (pwa.js, tout le site) attend la fin des moments immersifs :
   masqué pendant le tirage, la lecture et la présentation, visible sur l'accueil, la question et la fin. */
body.nf-immersif #pwa-banner { display: none !important; }

/* ═══ v3 — après la relecture indépendante ═════════════════════════════════ */
/* Le bandeau « Installer l'application » n'a pas sa place sur cette page immersive (proposé sur les autres pages). */
body.nefira-body #pwa-banner { display: none !important; }

/* Accueil allégé : la bulle devient une parole, un compte à rebours remplace le paragraphe sur téléphone */
.nf-bulle { background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0 0 0 26px; border-radius: 0;
  font-family: Georgia, 'Noto Serif', serif; font-style: italic; font-weight: 400; font-size: 19px; line-height: 1.45; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.8); position: relative; max-width: 30ch; }
.nf-bulle::before { content: '\201C'; position: absolute; left: -2px; top: -14px; font: 700 52px/1 var(--nf-serif); color: var(--nf-or); opacity: .85; }
.nf-compte { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font: 600 13px var(--nf-sans); letter-spacing: .2px; color: var(--nf-or-clair);
  padding: 6px 12px; border-radius: 16px; background: rgba(10,16,48,.55); border: 1px solid rgba(233,196,106,.35); }
.nf-compte::before { content: '\2726'; color: var(--nf-or); }
@media not all and (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf-accroche { display: none; }
  .nf-desc { display: none; }
  .nf-colonne { text-align: center; margin: 0 auto; }
  .nf-bulle { margin-left: auto; margin-right: auto; text-align: left; }
  .nf-actions { justify-content: center; flex-direction: column; gap: 6px; }
}

/* Question : la nappe laisse voir le visage ; « Revenir » descend sous le bouton */
.nf-revenir-bas { display: block; margin: 6px auto 0; font-size: 14px; color: var(--nf-neige-2); text-decoration: none; }
.nf-revenir-bas:hover { color: var(--nf-or-clair); }
.nf-table-titre { font-size: 21px; margin-bottom: 12px; }
.nf-mention { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.nf-mention .nf-solde { color: var(--nf-or-clair); font-weight: 600; }
.nf-papyrus .nf-texte { font-family: Georgia, 'Noto Serif', serif; font-weight: 400; font-style: italic; font-size: 18px; }
/* Papyrus : fibres horizontales irrégulières et bords inégaux (plus de quadrillage) */
.nf-papyrus { clip-path: polygon(0.6% 3%, 8% 0.4%, 22% 1.6%, 41% 0.2%, 58% 1.4%, 77% 0.3%, 93% 1.5%, 99.6% 0.5%, 100% 30%, 99.3% 64%, 100% 97%, 88% 99.6%, 70% 98.6%, 49% 100%, 31% 98.8%, 12% 99.8%, 0.3% 98%, 0.8% 62%, 0% 31%);
  background:
    repeating-linear-gradient(0deg, rgba(120,78,24,.10) 0 1px, rgba(0,0,0,0) 1px 3px, rgba(120,78,24,.05) 3px 4px, rgba(0,0,0,0) 4px 9px, rgba(120,78,24,.08) 9px 10px, rgba(0,0,0,0) 10px 14px),
    repeating-linear-gradient(90deg, rgba(120,78,24,.05) 0 2px, rgba(0,0,0,0) 2px 37px, rgba(120,78,24,.04) 37px 39px, rgba(0,0,0,0) 39px 83px),
    radial-gradient(ellipse at 18% 30%, rgba(170,120,50,.18), rgba(0,0,0,0) 40%),
    radial-gradient(ellipse at 80% 75%, rgba(170,120,50,.15), rgba(0,0,0,0) 45%),
    radial-gradient(ellipse at 30% 20%, #f7e9c4, #ead39d 60%, #d9bb7b 100%); }
.nf-papyrus-lecture { font-family: Georgia, 'Noto Serif', serif; font-weight: 400; font-size: 16.5px; line-height: 1.7; }

/* Éventail : la rotation passe par --a ; la carte sous le doigt se soulève */
.nf-eventail.actif .nf-dos { transform: rotate(var(--a, 0deg)); }
.nf-eventail.actif .nf-dos.leve { transform: rotate(var(--a, 0deg)) translateY(-24px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.6), 0 0 26px rgba(255,220,130,.85); z-index: 3; }

/* Carte qui parle : elle grandit vers l'intérieur de l'écran, les autres s'effacent davantage */
.nf-carte[data-col="g"] { transform-origin: 0% 55%; }
.nf-carte[data-col="d"] { transform-origin: 100% 55%; }
.nf-carte[data-col="c"] { transform-origin: 50% 60%; }
.nf-tirage.focus .nf-carte.nf-emplacement:not(.parle) { opacity: .32; }
.nf-tirage[data-n="5"] .nf-pos { font-size: 11.5px; }

/* Sous-titres : deux lignes, un serif plus léger pour la lecture */
.nf-sous-titre span { font-family: Georgia, 'Noto Serif', serif; font-weight: 400; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.5; }

/* Fin : la phrase-vœu en grand, des actions illustrées */
.nf-voeu { margin: 0 4px 14px; text-align: center; font-family: Georgia, 'Noto Serif', serif; font-style: italic; font-size: 21px; line-height: 1.4;
  color: #fff6dc; text-shadow: 0 0 18px rgba(233,196,106,.45); }
.nf-fin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nf-fin-actions .nf-action, .nf-histo-liste .nf-action { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; padding: 6px 2px;
  font-size: 12.5px; color: var(--nf-neige-2); }
.nf-fin-actions .nf-action svg, .nf-histo-liste .nf-action svg { color: var(--nf-or); }
.nf-fin-actions .nf-action:hover, .nf-fin-actions .nf-action:focus-visible { color: var(--nf-or-clair); }
.nf-relances-note { text-align: center; font-size: 12px; color: rgba(238,242,255,.55); margin: -2px 0 2px; }

/* Mes tirages : vignettes, questions en serif, effacement discret */
.nf-histo-liste li { align-items: flex-start; gap: 10px; padding: 8px; }
.nf-histo-liste .vig { width: 46px; aspect-ratio: 3 / 4; border-radius: 4px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(233,196,106,.6); }
.nf-histo-liste .qt { font-family: Georgia, 'Noto Serif', serif; font-style: italic; font-size: 14.5px; color: #fff; }
.nf-histo-liste .acts { display: flex; gap: 14px; margin-top: 4px; }
.nf-histo-liste .nf-action { flex-direction: row; font-size: 12.5px; padding: 2px 0; }
.nf-histo-liste .nf-action svg { width: 16px; height: 16px; }
.nf-histo-fermer { margin-top: 6px; }
.nf-oubli-lien { font-size: 12.5px; color: rgba(255,199,207,.75); text-decoration: none; margin-top: 2px; }

/* Boutons ronds : icônes au trait doré */
.nf-rond svg { display: block; }
.nf-passer { display: inline-flex; align-items: center; gap: 6px; }
.nf-murmure-seul { min-height: 42px; transition: opacity .35s, transform .35s; }
.nf-murmure-seul.change { opacity: 0; transform: translateY(-6px); }
.nf-sceau { white-space: nowrap; font-size: 17px; padding: 0 18px; }
.nf-sceau::before, .nf-sceau::after { margin: 0 8px; }
@media not all and (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf-table { padding-top: 40px; }
  .nf-table-titre { margin-bottom: 10px; }
  .nf-table .nf-modes { margin: 0 0 8px; }
  .nf-table-sous { margin: 10px 0 2px; }
}
/* Téléphone : quand la nappe s'ouvre, la scène glisse vers le haut — le regard de Néfira reste au-dessus de la table. */
.nf-video, .nf-affiche img { transition: opacity .8s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
@media not all and (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf[data-etat="question"] .nf-video, .nf[data-etat="question"] .nf-affiche img,
  .nf[data-etat="fin"] .nf-video, .nf[data-etat="fin"] .nf-affiche img { transform: translateY(-17%); }
}
/* Contre-vérification : la carte qui parle ne recouvre plus sa voisine sur téléphone ; légendes des autres masquées pendant le focus */
@media not all and (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf-carte.parle { transform: translateY(-8px) scale(1.25); }
}
.nf-tirage.focus .nf-carte.nf-emplacement:not(.parle) .nf-pos { opacity: 0; }
.nf-sceau.manque { background: linear-gradient(180deg, #f5e6ff, #c9a2ff 45%, #7b55c9 100%); color: #1d0b33; }
.nf-sceau.manque::before, .nf-sceau.manque::after { display: none; }
.nf-sceau.manque { font-size: 16.5px; }

/* ═══ Carte du jour offerte : une petite carte enrubannée à côté du bouton principal ═══════════ */
.nf-cadeau { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 14px; min-height: 58px;
  padding: 7px 18px 7px 10px; border-radius: 16px; text-align: left; color: var(--nf-neige);
  background: linear-gradient(180deg, rgba(20,30,84,.78), rgba(10,16,48,.78)); border: 1px solid rgba(233,196,106,.5);
  box-shadow: 0 6px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,243,196,.12); backdrop-filter: blur(6px);
  transition: border-color .2s ease, transform .15s ease; }
.nf-cadeau:hover { border-color: var(--nf-or); transform: translateY(-1px); }
.nf-cadeau:focus-visible { outline: 3px solid var(--nf-or-clair); outline-offset: 3px; }
.nf-cadeau-carte { position: relative; flex: none; width: 30px; height: 44px; border-radius: 4px; transform: rotate(-8deg);
  background: var(--nf-dos-image, linear-gradient(160deg, #2a4bb3, #0a1030)) center / cover; box-shadow: 0 3px 10px rgba(0,0,0,.55), 0 0 0 1px rgba(233,196,106,.7); }
/* Le sceau de cire grenat marqué d'une étoile d'or : la carte est encore scellée, rien que pour toi */
.nf-cadeau-carte::after { content: ''; position: absolute; right: -7px; bottom: -6px; width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d2455c 0%, #9b1c31 55%, #5e0f1d 100%);
  box-shadow: 0 0 0 1.5px rgba(233,196,106,.9), 0 2px 5px rgba(0,0,0,.6); }
.nf-cadeau-carte::before { content: '\2726'; position: absolute; right: -7px; bottom: -6px; width: 17px; height: 17px; z-index: 1;
  display: flex; align-items: center; justify-content: center; font: 700 10px/1 var(--nf-sans); color: #ffe08a; }
.nf-cadeau-txt { display: flex; flex-direction: column; gap: 1px; }
.nf-cadeau-txt strong { font: 700 17px/1.2 var(--nf-serif); color: var(--nf-or-clair); }
.nf-cadeau-txt small { font: 500 12.5px/1.3 var(--nf-sans); color: var(--nf-neige-2); }
/* Disponible : la petite carte luit doucement (une seule animation, coupée si l'on réduit les mouvements) */
.nf-cadeau:not(.prise) .nf-cadeau-carte { animation: nf-cadeau-lueur 3.2s ease-in-out infinite; }
@keyframes nf-cadeau-lueur { 0%, 100% { box-shadow: 0 3px 10px rgba(0,0,0,.55), 0 0 0 1px rgba(233,196,106,.7); }
  50% { box-shadow: 0 3px 10px rgba(0,0,0,.55), 0 0 0 1px rgba(255,243,196,.95), 0 0 16px rgba(255,220,130,.75); } }
@media (prefers-reduced-motion: reduce) { .nf-cadeau:not(.prise) .nf-cadeau-carte { animation: none; } }
/* Déjà reçue aujourd'hui : le ruban est dénoué, l'ensemble s'efface un peu */
.nf-cadeau.prise { opacity: .78; border-color: rgba(233,196,106,.28); }
.nf-cadeau.prise .nf-cadeau-carte::before, .nf-cadeau.prise .nf-cadeau-carte::after { display: none; }
.nf-cadeau.prise .nf-cadeau-txt strong { font-size: 15.5px; }
@media not all and (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .nf-cadeau { margin: 4px auto 0; min-height: 54px; padding: 6px 16px 6px 10px; }
  .nf-cadeau-txt strong { font-size: 16px; }
}

/* ═══ 26/11 — retours sur téléphone ═══════════════════════════════════════════════════════════ */
/* Le texte de la lecture : bords déchirés en pixels (plus en % de la hauteur) et marges plus grandes,
   pour que ni la première ni la dernière ligne ne soient mangées par la coupure. */
.nf-papyrus.nf-papyrus-lecture { padding: 26px 18px 28px;
  clip-path: polygon(0.6% 10px, 8% 2px, 22% 7px, 41% 0, 58% 6px, 77% 1px, 93% 6px, 99.6% 2px, 100% 30%, 99.3% 64%,
    100% calc(100% - 10px), 88% calc(100% - 1px), 70% calc(100% - 6px), 49% 100%, 31% calc(100% - 5px), 12% calc(100% - 1px),
    0.3% calc(100% - 8px), 0.8% 62%, 0% 31%); }
@media not all and (min-aspect-ratio: 1/1) and (min-width: 820px) {
  /* Fin : le texte qui défile s'efface sous les boutons du haut au lieu de passer dessous */
  .nf-fin { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 76px); mask-image: linear-gradient(to bottom, transparent 0, #000 76px); }
  /* Croix de 5 cartes : légendes du haut et du bas plus larges (deux lignes), la croix tient au-dessus des sous-titres */
  .nf-tirage[data-n="5"] .nf-carte[data-i="3"] .nf-pos, .nf-tirage[data-n="5"] .nf-carte[data-i="4"] .nf-pos { width: calc(100% + 80px); }
  /* Pendant le tirage et la lecture, la scène avance doucement : le visage de Néfira reste au-dessus des cartes.
     Même origine (en bas) dans tous les états : pas de saut entre la question, la lecture et la fin. */
  .nf-video, .nf-affiche img { transform-origin: 50% 100%; }
  .nf[data-etat="tirage"] .nf-video, .nf[data-etat="tirage"] .nf-affiche img,
  .nf[data-etat="lecture"] .nf-video, .nf[data-etat="lecture"] .nf-affiche img { transform: scale(1.1); }
  /* La carte en lumière est grande : son halo s'ajuste, ses voisines s'effacent davantage */
  .nf-tirage.focus .nf-carte.nf-emplacement:not(.parle) { opacity: .22; }
  .nf-carte.parle { z-index: 8; }
  .nf-carte.parle .nf-pos { opacity: 0; }   /* agrandie, sa légende grossirait jusque sur les sous-titres */
}
