/* Le Serment de l'Orfèvre — application du parcours.
   L'interface de jeu reste claire (on y joue dehors, en plein jour) ; les
   écrans de récit passent en sombre pour l'atmosphère. Toutes les tailles
   de l'application sont en rem : le réglage « taille du texte » agit sur
   la racine. Le panneau de présentation, lui, est en px. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("polices/inter-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("polices/inter-latin-600-normal.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap;
  src: url("polices/inter-latin-700-normal.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap;
  src: url("polices/cormorant-garamond-latin-600-normal.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap;
  src: url("polices/cormorant-garamond-latin-700-normal.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic;
  font-display: swap;
  src: url("polices/cormorant-garamond-latin-500-italic.woff") format("woff"); }

:root {
  --papier: #fbf7ee;
  --papier2: #f5efe2;
  --encre: #241810;
  --encre2: #5e4a36;
  --encre3: #7d6a52;
  --laiton: #8f6520;
  --laiton2: #c9a24a;
  --bordeaux: #7a2e22;
  --rouge: #b0162a;
  --filet: #e6dcc4;
  --nuit: #140e07;
  --nuit-txt: #f0e3cb;
  --nuit-txt2: #c4b08f;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --texte: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* Cormorant a des chiffres « elzéviriens » : son 1 ressemble à un I. */
.h, .ital, .pos b, .carte .n, .reussi .L, .compteur, .itin .etat, .champ input, .ok,
#panneau h1 { font-variant-numeric: lining-nums; }
body { background: var(--nuit); color: var(--encre); font-family: var(--texte);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--laiton2); outline-offset: 2px; }

/* ------------------------------------------------------------ cadre */
#panneau { display: none; }
#scene { height: 100%; }
#tel { height: 100%; height: 100dvh; background: var(--papier); overflow: hidden; }
#app { height: 100%; display: flex; flex-direction: column; position: relative; }

@media (min-width: 980px) {
  body { display: grid; grid-template-columns: minmax(340px, 440px) 1fr;
    background:
      radial-gradient(60% 50% at 70% 30%, rgba(201,162,74,.16), transparent 70%),
      var(--nuit); }
  #panneau { display: block; overflow: auto; height: 100vh; padding: 40px 36px;
    color: #c4b08f; font-size: 14px; line-height: 1.55;
    border-right: 1px solid rgba(201,162,74,.16); }
  #scene { display: grid; place-items: center; height: 100vh; padding: 24px; }
  #tel { width: 400px; height: min(860px, calc(100vh - 48px)); border-radius: 46px;
    border: 10px solid #0b0703; box-shadow: 0 0 0 1px rgba(201,162,74,.3),
      0 40px 90px -30px rgba(0,0,0,.9); }
}

/* ------------------------------------------------------------ panneau */
.pn-tete { display: flex; gap: 16px; align-items: center; }
.pn-tete img { width: 92px; height: auto; flex: none; }
.pn-ey, .pn-ti { font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: #d9b469; }
#panneau h1 { font-family: var(--display); font-weight: 700; font-size: 34px;
  line-height: 1; color: #f4ead6; margin: 6px 0 0; }
.pn-txt { margin: 20px 0 0; }
.pn-bloc { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(201,162,74,.18); }
#pn-ecrans { margin-top: 10px; }
#pn-ecrans .gr { font-size: 12px; color: #96836a; margin: 12px 0 6px; }
#pn-ecrans a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 11px;
  border: 1px solid rgba(201,162,74,.3); border-radius: 999px; color: #e8cf96;
  text-decoration: none; font-size: 13px; }
#pn-ecrans a:hover, #pn-ecrans a.actif { background: #c9a24a; color: #1d1409;
  border-color: #c9a24a; }
.pn-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pn-demo button { background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,74,.3);
  color: #f0e3cb; border-radius: 10px; padding: 9px 10px; cursor: pointer; font-size: 13px; }
.pn-demo button:hover { background: rgba(201,162,74,.18); }
.pn-qr { display: flex; gap: 16px; align-items: center; }
.pn-qr p { margin: 6px 0 0; }
#pn-qr { flex: none; width: 150px; height: 150px; background: #fff; padding: 10px;
  border-radius: 12px; box-shadow: 0 0 0 3px rgba(201,162,74,.5); }
.pn-url { font-size: 12px; color: #e8cf96; word-break: break-all; }
#pn-qr:empty { display: none; }
#pn-qr img, #pn-qr svg { width: 100%; height: 100%; display: block; }
.pn-fin { font-size: 12px; color: #7d6a52; margin-top: 26px; }

/* ------------------------------------------------------------ chrome */
.tete { flex: none; display: flex; align-items: center; gap: .5rem;
  padding: calc(.55rem + env(safe-area-inset-top, 0px)) .75rem .55rem;
  background: var(--papier); border-bottom: 1px solid var(--filet); z-index: 5; }
.tete .ti { flex: 1; font-weight: 600; font-size: .9rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.tete .info { font-size: .78rem; color: var(--encre3); font-variant-numeric: tabular-nums; }
.retour { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0;
  background: transparent; display: grid; place-items: center; cursor: pointer;
  color: var(--bordeaux); }
.retour svg { width: 1.3rem; height: 1.3rem; }
.nuit .tete { background: var(--nuit); border-color: rgba(201,162,74,.18); color: var(--nuit-txt); }
.nuit .retour { color: #e8cf96; }

.corps { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  position: relative; scrollbar-width: thin; }
.nuit .corps { background: var(--nuit); color: var(--nuit-txt); }
.pad { padding: 0 1.25rem 1.5rem; }

.onglets { flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--filet); background: var(--papier2);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.onglets a { display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .5rem .2rem .55rem; font-size: .7rem; font-weight: 600; color: var(--encre3);
  text-decoration: none; }
.onglets svg { width: 1.45rem; height: 1.45rem; }
.onglets a.actif { color: var(--bordeaux); }
.onglets a.actif::before { content: ""; display: block; width: 1.6rem; height: 3px;
  border-radius: 3px; background: var(--bordeaux); margin: -.5rem 0 .3rem; }
.nuit .onglets { background: #1b130a; border-color: rgba(201,162,74,.18); }
.nuit .onglets a { color: #96836a; }
.nuit .onglets a.actif { color: #e8cf96; }
.nuit .onglets a.actif::before { background: #e8cf96; }

/* ------------------------------------------------------------ typographie */
.ey { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--laiton); }
.nuit .ey { color: #d9b469; }
.h { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.02;
  margin: .4rem 0 .6rem; letter-spacing: -.005em; }
.h.sm { font-size: 1.65rem; }
.p { font-size: .95rem; color: var(--encre2); margin: 0 0 .9rem; line-height: 1.6; }
.nuit .p { color: var(--nuit-txt2); }
.ital { font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.3rem; color: var(--bordeaux); }
.filet { border: 0; border-top: 1px solid var(--filet); margin: 1.2rem 0; }
.nuit .filet { border-color: rgba(201,162,74,.22); }
.centre { text-align: center; }

/* ------------------------------------------------------------ boutons */
.btn { display: block; width: 100%; border: 0; border-radius: .8rem; cursor: pointer;
  background: linear-gradient(180deg, #8d2c22, #6f2019); color: #fff;
  font-size: 1rem; font-weight: 600; padding: .95rem 1rem; text-align: center;
  text-decoration: none; box-shadow: 0 6px 16px -6px rgba(111,32,25,.6); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--bordeaux); box-shadow: none;
  border: 1.5px solid #d6c7a6; }
.nuit .btn.ghost { color: #e8cf96; border-color: rgba(201,162,74,.4); }
.btn.or { background: linear-gradient(180deg, #e2c074, #b2822c); color: #2a1c08;
  box-shadow: 0 8px 22px -8px rgba(201,162,74,.7); }
.btn + .btn { margin-top: .6rem; }
.lien { display: block; width: 100%; background: none; border: 0; text-align: center;
  font-size: .9rem; color: var(--encre3); margin-top: .9rem; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; padding: .3rem; }
.nuit .lien { color: #b8a27e; }

/* ------------------------------------------------------------ accueil */
.photo { position: relative; height: 15rem; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,5,.45) 0%, rgba(20,12,5,0) 45%,
    rgba(251,247,238,0) 65%, var(--papier) 100%); }
/* flow-root : sans lui, la marge négative de la médaille fusionne avec celle
   de la feuille, et la médaille ne chevauche plus la photo. */
.feuille { display: flow-root; margin-top: -2.2rem; position: relative; z-index: 2; background: var(--papier);
  border-radius: 1.7rem 1.7rem 0 0; }
.medaille { width: 6rem; height: 6rem; border-radius: 50%; margin: -3rem auto 0;
  position: relative; z-index: 3; background: var(--papier); padding: .35rem;
  box-shadow: 0 8px 22px -8px rgba(40,24,8,.5); }
.medaille img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1.3rem 0 0; }
.infos div { border: 1px solid var(--filet); border-radius: .7rem; padding: .55rem .6rem;
  font-size: .8rem; color: var(--encre2); background: #fff; text-align: left; }
.infos b { display: block; font-size: .95rem; color: var(--encre); }
.signature { display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1rem 1.2rem 1.4rem; border-top: 1px solid var(--filet); background: var(--papier2);
  font-size: .75rem; color: var(--encre3); line-height: 1.4; }
.signature img { height: 2.3rem; width: auto; }

/* ------------------------------------------------------------ plan */
.plan { margin: 0 -1.25rem; border-block: 1px solid var(--filet); background: #fff;
  position: relative; }
.plan-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.plan-defile img { display: block; width: 100%; height: auto; max-width: 26rem; margin: 0 auto; }
.plan-zoom { position: absolute; right: .6rem; bottom: .6rem; border: 0; cursor: pointer;
  background: rgba(36,24,16,.82); color: #fff; font-size: .78rem; font-weight: 600;
  padding: .45rem .75rem; border-radius: 999px; }
.plan-aide { font-size: .78rem; color: var(--encre3); margin: .5rem 0 0; }
.visionneuse { position: absolute; inset: 0; z-index: 50; background: #fff;
  display: flex; flex-direction: column; }
.visionneuse .barre { display: flex; align-items: center; gap: .5rem;
  padding: calc(.5rem + env(safe-area-inset-top, 0px)) .7rem .5rem;
  border-bottom: 1px solid var(--filet); font-weight: 600; font-size: .9rem; }
.visionneuse .barre span { flex: 1; }
.visionneuse .barre button { border: 1px solid var(--filet); background: #fff;
  border-radius: .6rem; min-width: 2.6rem; height: 2.6rem; cursor: pointer;
  font-size: 1.1rem; font-weight: 700; color: var(--bordeaux); }
.visionneuse .zone { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom; }
.visionneuse .zone { display: flex; align-items: center; }
.visionneuse .zone img { display: block; max-width: none; width: 100%; height: auto;
  margin: auto 0; flex: none; }
.visionneuse .astuce { font-size: .8rem; color: var(--encre3); text-align: center;
  padding: .6rem 1rem calc(.8rem + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------------------ liste du parcours */
.itin { list-style: none; margin: 1rem 0 0; padding: 0; position: relative; }
.itin::before { content: ""; position: absolute; left: 1.15rem; top: 1rem; bottom: 1rem;
  border-left: 2px dashed #d6c7a6; }
.itin li { position: relative; }
.itin a, .itin .fixe { display: flex; gap: .8rem; align-items: center; padding: .55rem 0;
  text-decoration: none; color: inherit; }
.rep { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid;
  place-items: center; font-weight: 700; font-size: .85rem; position: relative; z-index: 1;
  background: #fff; border: 2px solid var(--bordeaux); color: var(--bordeaux); }
.rep.fait { background: var(--bordeaux); color: #fff; }
.rep.patri { border-radius: .35rem; transform: rotate(45deg) scale(.82);
  border-color: var(--laiton); color: var(--laiton); }
.rep.patri span { transform: rotate(-45deg); }
.rep.patri.fait { background: var(--laiton); color: #fff; }
.rep.ls { border-radius: .5rem; background: var(--laiton); border-color: var(--laiton);
  color: #fff; }
.itin .txt { flex: 1; min-width: 0; }
.itin .txt b { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.itin .txt em { display: block; font-style: normal; font-size: .8rem; color: var(--encre3); }
.itin .etat { flex: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  color: var(--bordeaux); min-width: 1.5rem; text-align: center; }
.itin .etat.vide { font-family: var(--texte); font-size: .72rem; font-weight: 600;
  color: var(--encre3); border: 1px solid var(--filet); border-radius: 999px;
  padding: .15rem .5rem; }
.itin .ici .txt b { color: var(--bordeaux); }

/* ------------------------------------------------------------ rosace */
.ros { width: 88%; margin: .4rem auto 0; }
.rose-etat { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; container-type: inline-size; }
/* Le fond crème de la Rose, éclairci en blanc puis multiplié, disparaît
   dans le papier : seule la Rose estompée reste visible. */
.rose-etat .fond { position: absolute; inset: 0; width: 100%; height: 100%;
  filter: grayscale(1) brightness(1.18); opacity: .4; mix-blend-mode: multiply; }
.rose-etat.sombre .fond { mix-blend-mode: normal; opacity: .3; }
.rose-etat.sombre { background: #efe6d2; }
.rose-etat .pet { position: absolute; max-width: none;
  filter: drop-shadow(0 1px 2px rgba(60,40,10,.5)); }
.mark { position: absolute; transform: translate(-50%, -50%); width: 10.5%; aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  font-size: 4.2cqw; color: #6b5a42; background: rgba(255,255,255,.88);
  border: 1.5px dashed #a8957a; font-variant-numeric: lining-nums; }
.mark.pleine { font-family: var(--display); font-size: 6.4cqw; color: var(--bordeaux);
  background: #fbf6ec; border: 2px solid #8a6224; box-shadow: 0 2px 6px rgba(40,24,8,.4); }
.rose-etat .neuf { animation: pousse .9s cubic-bezier(.2,1.4,.4,1) both; }
.mark.neuf { animation-name: pousse-m; }
@keyframes pousse { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pousse-m { from { transform: translate(-50%,-50%) scale(.3); opacity: 0; } }
.badge-pet { height: 7.5rem; margin: -5.2rem auto .3rem; position: relative; z-index: 3;
  display: flex; justify-content: center; }
.badge-pet img { height: 100%; width: auto;
  filter: drop-shadow(0 10px 14px rgba(40,24,8,.45)) drop-shadow(0 0 1px rgba(40,24,8,.6)); }
.jauge { height: .4rem; border-radius: 1rem; background: #e9dfc8; overflow: hidden;
  margin: 1rem 0 .5rem; }
.jauge i { display: block; height: 100%; background: linear-gradient(90deg, #c9a24a, #9e7024);
  border-radius: 1rem; transition: width .6s; }
.compte { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem;
  color: var(--encre3); font-variant-numeric: tabular-nums; }
.compte b { color: var(--encre); letter-spacing: .08em; }

.carte { border: 1px solid var(--filet); border-radius: 1rem; background: #fff;
  overflow: hidden; box-shadow: 0 4px 14px -8px rgba(40,24,8,.3); }
.carte .row { display: flex; gap: .8rem; padding: .8rem; align-items: center; }
.carte .vig { flex: none; width: 3.6rem; height: 3.6rem; border-radius: .7rem; object-fit: cover; }
.carte .k { font-size: .62rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--laiton); }
.carte .n { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.1;
  margin: .1rem 0; }
.carte .a { font-size: .82rem; color: var(--encre2); }
.carte .btn { border-radius: 0; box-shadow: none; }
.carte.nuit { background: rgba(255,255,255,.06); border-color: rgba(201,162,74,.28); }
.carte.nuit .n { color: var(--nuit-txt); }
.carte.nuit .a { color: var(--nuit-txt2); }

/* ------------------------------------------------------------ étape */
.badge { width: 5.2rem; height: 5.2rem; border-radius: 50%; margin: -2.6rem auto 0; overflow: hidden;
  position: relative; z-index: 3; background: var(--papier); border: 1px solid var(--filet);
  display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(40,24,8,.4); }
.badge svg { width: 4.6rem; height: 5.75rem; display: block; margin-top: .2rem; }
.badge.patri { border-radius: .8rem; transform: rotate(45deg); width: 3.6rem; height: 3.6rem;
  margin-top: -1.8rem; background: var(--laiton); border-color: var(--laiton); }
.badge.patri b { transform: rotate(-45deg); color: #fff; font-size: 1.05rem; }
.bandeau-patri { height: 10rem; background:
  repeating-linear-gradient(135deg, rgba(201,162,74,.08) 0 2px, transparent 2px 14px),
  linear-gradient(180deg, #2a1d10, #3b2a17); display: grid; place-items: center;
  color: #e8cf96; text-align: center; }
.bandeau-patri div { font-family: var(--display); font-size: 1.3rem; font-style: italic;
  font-weight: 500; padding: 0 1.5rem 1.5rem; }
.adr { font-size: .9rem; color: var(--encre2); margin-bottom: .8rem; }
.consigne { font-size: 1rem; line-height: 1.6; color: var(--encre); text-align: left;
  background: #fff; border: 1px solid var(--filet); border-left: 3px solid var(--laiton2);
  border-radius: .8rem; padding: .9rem 1rem; margin: 0 0 1.1rem; }
.saisie { display: flex; gap: .7rem; align-items: stretch; }
.champ { flex: 1; text-align: left; }
.champ label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--laiton); margin-bottom: .4rem; }
.champ input { width: 100%; font-family: var(--display); font-size: 2.4rem; font-weight: 700;
  text-align: center; text-transform: uppercase; color: var(--bordeaux); background: #fff;
  border: 2px solid var(--laiton2); border-radius: .8rem; padding: .1rem .3rem; height: 4rem; }
.champ input.date { font-size: 2rem; letter-spacing: .15em; }
.champ input:focus { outline: 3px solid rgba(143,101,32,.35); outline-offset: 1px; }
.pos { flex: none; width: 4.4rem; border: 1px solid var(--filet); border-radius: .8rem;
  background: var(--papier2); display: grid; place-content: center; align-self: end;
  height: 4rem; text-align: center; }
.pos span { font-size: .66rem; color: var(--encre3); }
.pos b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.retourmsg { min-height: 1.4rem; margin: .7rem 0 0; font-size: .92rem; line-height: 1.45;
  text-align: left; }
.retourmsg.non { color: var(--rouge); }
.retourmsg.presque { color: var(--laiton); }
.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.reussi { border: 1.5px solid var(--laiton2); border-radius: 1rem; background: #fdf7ea;
  padding: 1rem; display: flex; gap: 1rem; align-items: center; text-align: left; }
.reussi .L { flex: none; width: 4rem; height: 4rem; border-radius: .8rem; display: grid;
  place-items: center; font-family: var(--display); font-size: 2.3rem; font-weight: 700;
  color: #2a1c08; background: linear-gradient(170deg, #f0dcac, #c08f33); }
.reussi b { display: block; font-size: 1rem; }
.reussi span { font-size: .85rem; color: var(--encre2); }
.savez { margin-top: 1.3rem; padding: .9rem 1rem; border-radius: .8rem; background: var(--papier2);
  font-size: .88rem; color: var(--encre2); line-height: 1.55; text-align: left; }
.savez .ey { display: block; margin-bottom: .3rem; }
.joker { margin-top: .8rem; display: flex; gap: .7rem; align-items: center; text-align: left;
  border: 1.5px dashed var(--laiton2); border-radius: .8rem; padding: .7rem .9rem;
  background: none; width: 100%; cursor: pointer; font-size: .88rem; color: var(--encre2); }
.joker b { color: var(--laiton); }
.controle { list-style: none; padding: 0; margin: .6rem 0 0; text-align: left; }
.controle li { display: flex; justify-content: space-between; padding: .45rem 0;
  border-bottom: 1px solid var(--filet); font-size: .9rem; }
.controle li b { font-family: var(--display); font-size: 1.2rem; color: var(--bordeaux); }
.cases-nom { display: flex; justify-content: center; gap: .2rem; margin: .8rem 0 .2rem; }
.cases-nom .case { flex: 1 1 0; max-width: 2rem; display: flex; flex-direction: column; align-items: center; }
.cases-nom b { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4;
  border: 1px solid var(--filet); border-radius: .3rem; font-family: var(--display); font-size: 1.15rem; }
.cases-nom .marquee b { border: 2px solid var(--bordeaux); color: var(--bordeaux); }
.cases-nom small { font-size: .55rem; line-height: 1.1; text-align: center; color: var(--bordeaux); margin-top: .15rem; }

/* bascule lecture facile */
.bascule { display: flex; align-items: center; gap: .7rem; width: 100%; cursor: pointer;
  border: 1px solid var(--laiton2); border-radius: .7rem; padding: .6rem .8rem;
  background: #fdf7ea; margin: 1rem 0 0; text-align: left; }
.bascule .aa { flex: none; width: 2rem; height: 2rem; border-radius: .5rem; background: var(--laiton);
  color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.bascule .lb { flex: 1; font-size: .85rem; font-weight: 600; color: #6b5027; line-height: 1.3; }
.sw { flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #d6c7a6;
  position: relative; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem;
  height: 1.1rem; border-radius: 50%; background: #fff; transition: left .2s; }
.sw.on { background: var(--laiton); }
.sw.on::after { left: 1.3rem; }

.falc { text-align: left; font-size: 1.12rem; line-height: 1.6; }
.falc p { margin: 0 0 .5rem; }
.falc .q { font-weight: 700; margin: 1rem 0 .4rem; font-size: 1.2rem; }

/* ------------------------------------------------------------ indices */
.indice { width: 100%; text-align: left; display: block; border: 1px solid var(--filet);
  border-radius: .9rem; margin-bottom: .7rem; overflow: hidden; background: #fff;
  cursor: pointer; padding: 0; }
.indice.ouvert { border-left: 4px solid var(--laiton); cursor: default; }
.indice .t { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; }
.indice .num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--laiton); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; }
.indice.masque .num { background: #ddd0b4; color: #6b5a42; }
.indice .lab { flex: 1; font-size: .95rem; font-weight: 600; }
.indice .etat { font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--laiton); border: 1px solid var(--filet);
  border-radius: 999px; padding: .25rem .65rem; }
.indice.ouvert .etat { color: var(--encre3); border-color: transparent; }
.indice .txt { padding: 0 1rem 1rem 3.4rem; font-size: .95rem; color: var(--encre2);
  line-height: 1.55; }
.indice.masque .txt { display: none; }
.note { font-size: .85rem; color: var(--encre3); line-height: 1.55; border-left: 2px solid
  var(--filet); padding-left: .8rem; margin-top: 1rem; }
.nuit .note { color: #a8957a; border-color: rgba(201,162,74,.28); }

/* ------------------------------------------------------------ lettre */
.fond-photo { position: absolute; inset: 0 0 auto; height: 16rem; pointer-events: none; }
.fond-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.fond-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,7,.5) 0%, rgba(20,14,7,.3) 34%,
    rgba(20,14,7,.88) 74%, var(--nuit) 100%); }
.lecteur { border-radius: 1rem; padding: .9rem; background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,162,74,.28); display: flex; align-items: center; gap: .8rem; }
.play { flex: none; width: 3.3rem; height: 3.3rem; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #e2c074, #b2822c); color: #2a1c08; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(201,162,74,.7); }
.play svg { width: 1.2rem; height: 1.2rem; }
.onde { flex: 1; display: flex; align-items: center; gap: 2px; height: 2.2rem; cursor: pointer; }
.onde i { flex: 1; background: rgba(201,162,74,.28); border-radius: 1px; }
.onde i.on { background: #e2c074; }
.duree { flex: none; font-size: .8rem; color: var(--nuit-txt2); font-variant-numeric: tabular-nums;
  min-width: 2.4rem; text-align: right; }
.texte-lettre { font-size: 1rem; color: #d6c4a4; line-height: 1.75; }
.texte-lettre p { margin: 0 0 .9rem; }
.texte-lettre p:first-child::first-letter { font-family: var(--display); font-size: 3rem;
  float: left; line-height: .8; margin: .35rem .4rem 0 0; color: #e8cf96; }

/* ------------------------------------------------------------ serment */
.final-rose { position: relative; width: 11rem; margin: .4rem auto 0; }
.final-rose::before { content: ""; position: absolute; inset: -2.4rem;
  background: radial-gradient(circle, rgba(226,192,116,.32), transparent 68%);
  animation: halo 3.5s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .55; transform: scale(.94); } }
.final-rose img { position: relative; width: 100%; display: block; border-radius: 50%; }
.mot { display: flex; gap: .2rem; justify-content: center; margin: 1.2rem 0 .3rem; }
.mot i { flex: 1; max-width: 1.9rem; aspect-ratio: 3/4; border-radius: .3rem; display: grid;
  place-items: center; font-family: var(--display); font-size: 1.15rem; font-weight: 700;
  font-style: normal; color: #2a1c08; background: linear-gradient(170deg, #f0dcac, #c08f33);
  animation: tombe .5s both; }
@keyframes tombe { from { transform: translateY(-14px) rotate(-8deg); opacity: 0; } }
.mot.vide i { background: rgba(255,255,255,.08); color: #e8cf96; border: 1px dashed rgba(201,162,74,.4);
  animation: none; }
.ok { text-align: center; font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  color: #e8cf96; margin: 1rem 0 .2rem; }
.nuit .champ label { color: #d9b469; }
.nuit .champ input { background: rgba(255,255,255,.06); color: #f4ead6; border-color: #c9a24a; }
.compteur { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(201,162,74,.22);
  font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: #e8cf96; line-height: 1; }
.compteur span { display: block; font-family: var(--texte); font-size: .78rem; font-weight: 400;
  color: #96836a; margin-top: .4rem; }

/* ------------------------------------------------------------ aide & réglages */
.etapes-aide { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: n; }
.etapes-aide li { display: flex; gap: .9rem; margin-bottom: 1.1rem; counter-increment: n; }
.etapes-aide li::before { content: counter(n); flex: none; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--bordeaux); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center; }
.etapes-aide b { display: block; font-size: 1rem; }
.etapes-aide span { font-size: .9rem; color: var(--encre2); line-height: 1.5; }
.pictos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.pictos div { background: #fff; border: 1px solid var(--filet); border-radius: .8rem;
  padding: .7rem; font-size: .85rem; color: var(--encre2); line-height: 1.4; }
.pictos b { display: block; color: var(--encre); font-size: .95rem; margin-bottom: .15rem; }
.reglage { display: flex; align-items: center; gap: .8rem; padding: .9rem 0;
  border-bottom: 1px solid var(--filet); }
.reglage .lb { flex: 1; }
.reglage .lb b { display: block; font-size: 1rem; }
.reglage .lb span { font-size: .85rem; color: var(--encre3); }
.reglage button.sw-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.tailles { display: flex; gap: .35rem; }
.tailles button { width: 2.6rem; height: 2.6rem; border-radius: .6rem; cursor: pointer;
  border: 1.5px solid var(--filet); background: #fff; font-weight: 700; color: var(--encre2); }
.tailles button.on { border-color: var(--bordeaux); color: var(--bordeaux); background: #fdf3ef; }

.toast { position: absolute; left: 1rem; right: 1rem; bottom: 5.2rem; z-index: 60;
  background: var(--encre); color: #fff; border-radius: .8rem; padding: .8rem 1rem;
  font-size: .9rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  animation: monte .3s both; }
@keyframes monte { from { transform: translateY(12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ écoute d'une étape */
.ecoute { position: relative; overflow: hidden; display: flex; align-items: center; gap: .8rem;
  width: 100%; margin: 0 0 .6rem; padding: .75rem 1rem .85rem .75rem; cursor: pointer;
  text-align: left; border: 0; border-radius: 1rem; color: #2a1c08;
  background: linear-gradient(180deg, #f3dfab, #d9b469);
  box-shadow: 0 8px 20px -10px rgba(143,101,32,.8); }
.ecoute .ic { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid;
  place-items: center; background: var(--bordeaux); color: #fff; }
.ecoute .ic svg { width: 1.15rem; height: 1.15rem; }
.ecoute .lb { flex: 1; line-height: 1.25; }
.ecoute .lb b { display: block; font-size: 1.08rem; }
.ecoute .lb small { font-size: .8rem; color: #5e4a36; }
.ecoute .hp { flex: none; width: 1.7rem; height: 1.7rem; color: #6b5027; }
.ecoute.joue .hp { animation: vibre 1s ease-in-out infinite; }
@keyframes vibre { 50% { transform: scale(1.15); } }
.ecoute .barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(122,46,34,.15); }
.ecoute .barre i { display: block; height: 100%; width: 0; background: var(--bordeaux);
  transition: width .25s linear; }
.histoire { text-align: left; margin: 0 0 1rem; font-size: .92rem; color: var(--encre2);
  line-height: 1.6; }
.histoire summary { cursor: pointer; color: var(--bordeaux); font-weight: 600; font-size: .9rem;
  text-align: center; list-style: none; padding: .2rem; }
.histoire summary::-webkit-details-marker { display: none; }
.histoire summary::after { content: " ▾"; }
.histoire[open] summary::after { content: " ▴"; }
.histoire p { margin: .6rem 0 0; }

/* ------------------------------------------------------------ teaser */
.accroche { font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.35;
  color: var(--bordeaux, #7a2e22); margin: .7rem 0 0; }
.compte-rebours { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .6rem 0 1.1rem; }
.compte-rebours div { border: 1px solid var(--filet); border-radius: .7rem; padding: .6rem .2rem; background: #fff; }
.compte-rebours b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--encre); }
.compte-rebours span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--encre3); }

/* ------------------------------------------------------------ à propos */
.credit { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px solid var(--filet); border-radius: .8rem;
  background: #fff; text-align: center; }
.credit p { font-size: .9rem; line-height: 1.5; color: var(--encre2); margin: .7rem 0 .2rem; }
.credit-ls { display: block; height: 2.6rem; width: auto; margin: .7rem auto 0; }
.credit-qb { display: block; height: 3.4rem; width: auto; margin: .6rem auto 0; }
.cercle { list-style: none; margin: .8rem 0 0; padding: 0; }
.cercle li { padding: .45rem 0; border-bottom: 1px solid var(--filet); font-size: .88rem; }
.cercle b { display: block; color: var(--encre); }
.cercle span { color: var(--encre3); font-size: .8rem; }
.realise { text-align: center; padding: 0 1rem 1.2rem; background: var(--papier2); font-size: .74rem; }
.realise a { color: var(--encre3); }
