/* =========================================================
   Calendrier de Casse-Noisette — laque rouge & filigranes d'or
   ========================================================= */
:root {
  --laque: #8e0d1a;
  --laque-vive: #b3121f;
  --laque-sombre: #4a050c;
  --laque-nuit: #2a0308;
  --or: #d9b25c;
  --or-clair: #f4dfa0;
  --or-sombre: #9b7428;
  --ivoire: #f6ecd8;
  --ivoire-ombre: #e4d2ae;
  --sapin: #1f4d37;
  --sapin-sombre: #12301f;
  --encre: #3a0a0f;
  --drape: 14px;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e8c46a' stroke-opacity='.11' stroke-width='1.1'%3E%3Cpath d='M48 14c7 9 7 20 0 28c-7-8-7-19 0-28zM48 82c7-9 7-20 0-28c-7 8-7 19 0 28zM14 48c9-7 20-7 28 0c-8 7-19 7-28 0zM82 48c-9-7-20-7-28 0c8 7 19 7 28 0z'/%3E%3Ccircle cx='48' cy='48' r='4'/%3E%3Cpath d='M0 6l6-6M90 0l6 6M0 90l6 6M96 90l-6 6'/%3E%3C/g%3E%3Cg fill='%23e8c46a' fill-opacity='.10'%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='96' cy='0' r='3'/%3E%3Ccircle cx='0' cy='96' r='3'/%3E%3Ccircle cx='96' cy='96' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --fleur-or: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 80'%3E%3Cg fill='none' stroke='%23e2bd62' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M20 76V30'/%3E%3Cpath d='M20 64c-8-2-12-8-11-14c6 1 10 6 11 14zM20 52c8-2 12-8 11-14c-6 1-10 6-11 14z'/%3E%3Cpath d='M20 30c-6-4-7-12 0-18c7 6 6 14 0 18zM20 30c-8 0-12-6-11-12M20 30c8 0 12-6 11-12'/%3E%3C/g%3E%3Cg fill='%23e2bd62'%3E%3Ccircle cx='20' cy='21' r='2.2'/%3E%3Ccircle cx='9' cy='18' r='1.4'/%3E%3Ccircle cx='31' cy='18' r='1.4'/%3E%3Ccircle cx='20' cy='76' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --fleur-rouge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 80'%3E%3Cg fill='none' stroke='%23a30f1c' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M20 76V30'/%3E%3Cpath d='M20 64c-8-2-12-8-11-14c6 1 10 6 11 14zM20 52c8-2 12-8 11-14c-6 1-10 6-11 14z'/%3E%3Cpath d='M20 30c-6-4-7-12 0-18c7 6 6 14 0 18zM20 30c-8 0-12-6-11-12M20 30c8 0 12-6 11-12'/%3E%3C/g%3E%3Cg fill='%23c9a04a'%3E%3Ccircle cx='20' cy='21' r='2.2'/%3E%3Ccircle cx='9' cy='18' r='1.4'/%3E%3Ccircle cx='31' cy='18' r='1.4'/%3E%3Ccircle cx='20' cy='76' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--laque-nuit); }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden;
  color: var(--ivoire); font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px;
  background-color: var(--laque-sombre);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% 18%, rgba(196, 24, 44, .55) 0%, transparent 65%),
    var(--motif),
    linear-gradient(180deg, #6a0812 0%, #4a050c 55%, #2a0308 100%);
  background-size: auto, 96px 96px, auto;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(20, 0, 4, .55) 100%);
}
body.fige { overflow: hidden; }

#ciel { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#neige { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 21; }

/* ---------- Lambrequin, broderie, guirlande ---------- */
.lambrequin { position: absolute; top: 0; left: 0; right: 0; height: 66px; z-index: 6; pointer-events: none; }
.lambrequin::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.30) 0 5px, transparent 5px 22px, rgba(255,255,255,.07) 22px 25px, transparent 25px 38px),
    linear-gradient(180deg, #a3121e 0%, #7a0915 100%);
  -webkit-mask: radial-gradient(19px 14px at 19px 100%, transparent 97%, #000) repeat-x 0 0 / 38px 100%;
          mask: radial-gradient(19px 14px at 19px 100%, transparent 97%, #000) repeat-x 0 0 / 38px 100%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5));
}
.broderie {
  position: absolute; left: 0; right: 0; top: 30px; height: 14px; z-index: 1;
  background:
    linear-gradient(var(--or), var(--or)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--or), var(--or)) 0 100% / 100% 1.5px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 7h4M24 7h4M14 2l5 5-5 5-5-5z' fill='none' stroke='%23e8c46a' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='7' r='1.3' fill='%23e8c46a'/%3E%3C/svg%3E") repeat-x 0 50% / 28px 14px;
}
.guirlande { position: absolute; top: 48px; left: 0; width: 100%; height: 42px; overflow: visible; }
.guirlande .fil { fill: none; stroke: #2b1a0c; stroke-width: 1.2; }
.guirlande .halo { opacity: .3; animation: scintille var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
@keyframes scintille { 0%, 100% { opacity: .18; } 50% { opacity: .9; } }

.drape {
  position: fixed; top: 0; bottom: 0; width: var(--drape); z-index: 6; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 4px, transparent 4px 10px, rgba(255,255,255,.07) 10px 12px, transparent 12px 16px),
    linear-gradient(90deg, #4a050c, #8e0d1a);
  box-shadow: 0 0 18px rgba(0, 0, 0, .6);
}
.drape::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: linear-gradient(var(--or-sombre), var(--or), var(--or-sombre)); }
.drape-g { left: 0; }
.drape-d { right: 0; transform: scaleX(-1); }

/* ---------- Scène ---------- */
.scene {
  position: relative; z-index: 2; max-width: 860px; margin: 0 auto;
  padding: 92px calc(var(--drape) + 12px) 36px;
}

/* Ciel de nuit en arche */
.ciel-nuit {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: 26px 8px calc(var(--h-toits) + 10px); border-radius: 50% 50% 0 0 / 90px 90px 0 0; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 196, 120, .22), transparent 70%),
    radial-gradient(ellipse 100% 90% at 50% 110%, #3b1234 0%, #1f0a26 55%, #13061a 100%);
  box-shadow: inset 0 0 0 2px var(--or-sombre), inset 0 0 0 5px rgba(0,0,0,.3), inset 0 0 0 6px rgba(217, 178, 92, .5);
}
.ciel-nuit .scintille-deco { position: absolute; width: 10px; height: 10px; animation: astre 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes astre { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.etoile-filante {
  position: absolute; top: 22%; left: -30%; width: 110px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .9));
  transform: rotate(-16deg); animation: filante 13s ease-in 4s infinite;
}
@keyframes filante {
  0% { opacity: 0; transform: translate(0, 0) rotate(-16deg); }
  3% { opacity: 1; }
  9% { opacity: 0; transform: translate(170vw, -40vw) rotate(-16deg); }
  100% { opacity: 0; transform: translate(170vw, -40vw) rotate(-16deg); }
}

.cartouche { position: relative; z-index: 2; text-align: center; padding: 0 2px; max-width: 520px; }
.orn { display: block; width: 150px; height: 17px; margin: 0 auto; overflow: visible; }
.orn-haut { margin-bottom: 4px; }
.orn-bas { margin-top: 10px; }
.dedicace { margin: 0; font-family: "Marck Script", cursive; font-size: 1.55rem; color: var(--or-clair); line-height: 1.1; text-shadow: 0 0 14px rgba(255, 210, 130, .45); }
h1 {
  margin: .08em 0 .12em; font-family: "Yeseva One", serif; font-weight: 400; line-height: 1.02;
  font-size: clamp(1.7rem, 7.6vw, 3.1rem); letter-spacing: .005em; text-wrap: balance;
  background: linear-gradient(100deg, #b88a2a 0%, #f4dfa0 25%, #fff7dc 33%, #f0d386 42%, #d4a93a 62%, #fbe9b0 80%, #b88a2a 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 0, 6, .6));
  animation: dorure 11s linear infinite;
}
@keyframes dorure { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.insecable { white-space: nowrap; }
.titre-petit {
  display: block; margin-bottom: .18em; color: var(--or-clair); -webkit-text-fill-color: var(--or-clair);
  font: 600 .36em/1.2 "Cormorant Garamond", serif; letter-spacing: .32em; text-transform: uppercase; text-indent: .32em;
}
.sous-titre { margin: 0 auto; max-width: 30ch; font-style: italic; font-size: 1.02rem; line-height: 1.35; color: rgba(246, 236, 216, .82); }

/* Casse-noisettes gardes */
.garde { position: relative; z-index: 4; width: 50px; justify-self: center; align-self: end; margin-bottom: calc(-1 * var(--h-toits) - 12px); }
.casse-noisette { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.garde-d .casse-noisette { transform: scaleX(-1); }
.cn-corps { transform-origin: 40px 196px; animation: balance 5.5s ease-in-out infinite; animation-delay: var(--dc, 0s); }
@keyframes balance { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.4deg); } }
.cn-machoire { animation: croque 4.6s ease-in-out infinite; animation-delay: var(--dm, 0s); }
@keyframes croque { 0%, 80%, 100% { transform: translateY(0); } 84% { transform: translateY(4px); } 88% { transform: translateY(0); } 92% { transform: translateY(3px); } 96% { transform: translateY(0); } }
.cn-yeux { transform-origin: 40px 53px; animation: cligne 5s infinite; animation-delay: var(--dy, 0s); }
@keyframes cligne { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.cn-plumet { transform-origin: 40px 14px; animation: plumet 3.2s ease-in-out infinite; }
@keyframes plumet { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.revele .garde { animation: salut .9s cubic-bezier(.3, 1.6, .5, 1) .9s both; }
@keyframes salut { 0% { transform: translateY(0); } 40% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* ---------- Palais ---------- */
:root { --h-toits: min(170px, calc((100vw - 52px) * .5)); }
.palais { position: relative; margin-top: calc(-1 * var(--h-toits)); z-index: 3; }
.toits { display: block; width: 100%; height: var(--h-toits); overflow: visible; filter: drop-shadow(0 -4px 12px rgba(0, 0, 0, .25)); }
.toit {
  position: relative; height: 16px; margin: -2px -6px 0; z-index: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath d='M4 16a8 8 0 0 1 16 0' fill='none' stroke='%23e2bd62' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='11' r='1.3' fill='%23e2bd62'/%3E%3C/svg%3E") repeat-x 0 100% / 24px 16px,
    linear-gradient(180deg, #a3121e, #7a0915);
  box-shadow: inset 0 1.5px 0 var(--or), 0 4px 8px rgba(40, 0, 6, .35);
}
.toit::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -7px; height: 9px; border-radius: 8px 8px 2px 2px;
  background:
    radial-gradient(9px 6px at 6% 70%, #fff 95%, transparent), radial-gradient(12px 7px at 21% 60%, #fff 95%, transparent),
    radial-gradient(10px 6px at 38% 70%, #fff 95%, transparent), radial-gradient(13px 7px at 57% 60%, #fff 95%, transparent),
    radial-gradient(10px 6px at 76% 70%, #fff 95%, transparent), radial-gradient(12px 7px at 93% 62%, #fff 95%, transparent),
    linear-gradient(#fff, #eef3fb) 0 100% / 100% 55% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 40, .25));
}
.astre { transform-box: fill-box; transform-origin: center; animation: astre 3s ease-in-out infinite; animation-delay: var(--d); }
.facade {
  position: relative; margin-top: -1px; padding: 22px 16px 18px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.06), transparent 8%, transparent 92%, rgba(0,0,0,.06)),
    linear-gradient(180deg, #fbf3e3, var(--ivoire) 40%, #efe1c4);
  box-shadow:
    inset 0 0 0 2px var(--or), inset 0 0 0 5px var(--ivoire), inset 0 0 0 6px rgba(201, 160, 74, .6),
    0 16px 40px rgba(0, 0, 0, .45);
}
.compte {
  margin: 0 auto 18px; width: fit-content; padding: 6px 18px; border-radius: 999px; text-align: center;
  color: var(--laque); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(179, 18, 31, .06); border: 1px solid rgba(155, 116, 40, .55);
}
.compte b { font-family: "Yeseva One", serif; font-weight: 400; color: var(--laque-vive); font-size: 1.2rem; }
.perron { display: block; width: calc(100% + 40px); height: 70px; margin: -2px -20px 0; }

/* ---------- Grille de fenêtres ---------- */
.grille { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 14px; row-gap: 30px; padding-top: 10px; }
@media (min-width: 720px) {
  :root { --drape: 40px; }
  .grille { grid-template-columns: repeat(6, 1fr); column-gap: 20px; row-gap: 34px; }
  .garde { width: 74px; }
  .ciel-nuit { padding-top: 34px; padding-left: 20px; padding-right: 20px; border-radius: 50% 50% 0 0 / 130px 130px 0 0; }
  .dedicace { font-size: 2rem; }
  .facade { padding: 28px 30px 22px; }
}

.case {
  position: relative; aspect-ratio: 3 / 4.3; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; perspective: 520px; -webkit-tap-highlight-color: transparent;
}
.case .fronton { position: absolute; left: 50%; top: -14px; width: 66%; height: auto; transform: translateX(-50%); z-index: 3; overflow: visible; }
.case .baie {
  position: absolute; inset: 0; border-radius: 50% 50% 5px 5px / 24% 24% 5px 5px;
  border: 3px solid var(--or);
  box-shadow: 0 0 0 1px var(--or-sombre), 0 0 0 4px rgba(155, 116, 40, .22), 0 8px 14px rgba(58, 10, 15, .3);
  background: #2a0308;
}
.case .interieur {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse 70% 60% at 50% 58%, #fff3c8 0%, #f6c96b 35%, #b8641c 75%, #5a1a0a 100%);
  color: #5a1a0a;
}
.case .interieur svg { width: 46%; height: auto; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .6)); }
.case .interieur img { width: 100%; height: 100%; object-fit: cover; }
.case .interieur::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(90, 26, 10, .45)); pointer-events: none; }

.volet {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--fleur-or) no-repeat center 62% / 62% auto, linear-gradient(165deg, #c21b2e 0%, #8e0d1a 55%, #650812 100%);
  box-shadow: inset 0 0 0 2px rgba(217, 178, 92, .7), inset 0 0 0 4px rgba(0, 0, 0, .12);
  transition: transform .9s cubic-bezier(.35, .6, .2, 1) .12s, filter .9s;
  transform-style: preserve-3d; will-change: transform;
}
.volet-g { left: 0; border-radius: 100% 0 0 3px / 24% 0 0 3px; transform-origin: left center; }
.volet-d { right: 0; border-radius: 0 100% 3px 0 / 0 24% 3px 0; transform-origin: right center; }
.volet-g::after, .volet-d::after { content: ""; position: absolute; top: 18%; bottom: 8%; width: 3px; background: rgba(0, 0, 0, .28); }
.volet-g::after { right: 0; }
.volet-d::after { left: 0; }
.case[data-teinte="sapin"] .volet { background: var(--fleur-or) no-repeat center 62% / 62% auto, linear-gradient(165deg, #2f6b4c 0%, #1f4d37 55%, #12301f 100%); }
.case[data-teinte="ivoire"] .volet { background: var(--fleur-rouge) no-repeat center 62% / 62% auto, linear-gradient(165deg, #fffaf0 0%, #f3e6c9 60%, #e4d2ae 100%); box-shadow: inset 0 0 0 2px rgba(201, 160, 74, .85), inset 0 0 0 4px rgba(0, 0, 0, .05); }

.medaillon {
  position: absolute; left: 50%; top: 38%; z-index: 2; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffdf5, var(--ivoire) 55%, var(--ivoire-ombre));
  border: 2px solid var(--or); box-shadow: 0 0 0 1px var(--or-sombre), 0 3px 6px rgba(40, 0, 6, .4);
  transition: transform .35s cubic-bezier(.5, -0.4, .6, 1), opacity .3s;
}
.num { font-family: "Yeseva One", serif; font-size: clamp(1.05rem, 4.6vw, 1.5rem); color: var(--laque-vive); line-height: 1; transform: translateY(1px); }
.appui {
  position: absolute; left: -5px; right: -5px; bottom: -6px; height: 7px; z-index: 3; border-radius: 2px;
  background: linear-gradient(180deg, var(--or-clair), var(--or) 60%, var(--or-sombre));
  box-shadow: 0 2px 3px rgba(40, 0, 6, .35);
}
.appui::before {
  content: ""; position: absolute; left: 1px; right: 1px; top: -5px; height: 7px; border-radius: 6px 6px 2px 2px;
  background: radial-gradient(6px 4px at 20% 70%, #fff 95%, transparent), radial-gradient(7px 5px at 55% 60%, #fff 95%, transparent), radial-gradient(6px 4px at 85% 70%, #fff 95%, transparent), linear-gradient(#fff, #eef3fb) 0 100% / 100% 60% no-repeat;
}

/* États */
.case.ouverte .medaillon { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.case.ouverte .volet-g { transform: rotateY(-116deg); filter: brightness(.7); }
.case.ouverte .volet-d { transform: rotateY(116deg); filter: brightness(.7); }
.case.ouverte .baie { box-shadow: 0 0 0 1px var(--or-sombre), 0 0 22px 4px rgba(255, 200, 110, .55), 0 8px 14px rgba(58, 10, 15, .3); }
.case.verrouillee .volet { filter: saturate(.82) brightness(.9); }
@media (hover: hover) {
  .case:not(.verrouillee):not(.ouverte):hover .volet-g { transform: rotateY(-14deg); }
  .case:not(.verrouillee):not(.ouverte):hover .volet-d { transform: rotateY(14deg); }
}
.case.aujourdhui:not(.ouverte) .baie::after {
  content: ""; position: absolute; left: 50%; top: 14%; bottom: 6%; width: 3px; z-index: 1; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #ffe29a 25%, #fff3cf 55%, #ffd27a 85%, transparent);
  box-shadow: 0 0 10px 3px rgba(255, 205, 110, .8); animation: bougie 1.6s ease-in-out infinite alternate;
}
.case.aujourdhui:not(.ouverte) .baie { animation: halo 2.6s ease-in-out infinite; }
@keyframes bougie { 0% { opacity: .65; } 40% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 1; } }
@keyframes halo {
  0%, 100% { box-shadow: 0 0 0 1px var(--or-sombre), 0 0 8px 1px rgba(255, 210, 120, .3), 0 8px 14px rgba(58, 10, 15, .3); }
  50% { box-shadow: 0 0 0 1px var(--or-sombre), 0 0 22px 6px rgba(255, 210, 120, .75), 0 8px 14px rgba(58, 10, 15, .3); }
}
.case.secoue .baie { animation: secoue .5s; }
@keyframes secoue { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.case:focus-visible { outline: none; }
.case:focus-visible .baie { outline: 3px solid var(--or-clair); outline-offset: 3px; }

/* Grand final */
.case.finale { grid-column: 1 / -1; aspect-ratio: auto; height: 150px; margin-top: 6px; }
.case.finale .baie { border-radius: 50% 50% 6px 6px / 42% 42% 6px 6px; border-width: 4px; }
.case.finale .volet-g { border-radius: 100% 0 0 4px / 42% 0 0 4px; }
.case.finale .volet-d { border-radius: 0 100% 4px 0 / 0 42% 4px 0; }
.case.finale .volet { background-size: 20% auto, auto; }
.case.finale .medaillon { width: 76px; top: 46%; }
.case.finale .num { font-size: 1.9rem; }
.case.finale .fronton { width: 34%; top: -20px; }
.finale-texte {
  position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 16px; font-family: "Marck Script", cursive; font-size: 1.25rem; color: var(--ivoire);
  background: var(--laque-vive); border: 1px solid var(--or);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  transition: opacity .3s;
}
.case.finale.ouverte .finale-texte { opacity: 0; }
.case.finale .interieur svg { width: 60px; }

/* ---------- Pied ---------- */
.pied { text-align: center; margin-top: 18px; color: rgba(246, 236, 216, .6); font-size: .98rem; }
.pied .orn { margin-bottom: 10px; opacity: .8; }
.pied p { margin: 0 0 6px; }
.pied button { background: none; border: 0; color: inherit; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Rideau & programme ---------- */
.rideau { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; }
.pan {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.36) 0 9px, transparent 9px 26px, rgba(255,255,255,.08) 26px 30px, transparent 30px 44px),
    linear-gradient(180deg, #b0142a 0%, #8e0d1a 50%, #560610 100%);
  transition: transform 1.8s cubic-bezier(.7, 0, .2, 1) .35s;
  box-shadow: inset 0 -60px 80px rgba(0, 0, 0, .45);
}
.pan::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background:
    linear-gradient(var(--or), var(--or)) 0 0 / 100% 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 7h4M24 7h4M14 2l5 5-5 5-5-5z' fill='none' stroke='%23e8c46a' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='7' r='1.3' fill='%23e8c46a'/%3E%3C/svg%3E") repeat-x 0 8px / 28px 14px,
    repeating-linear-gradient(90deg, var(--or) 0 2px, #9c7420 2px 5px) 0 100% / 100% 16px no-repeat;
}
.pan-g { left: 0; }
.pan-d { right: 0; }
.rideau.ouvert .pan-g { transform: translateX(-102%); }
.rideau.ouvert .pan-d { transform: translateX(102%); }
.rideau.parti { display: none; }

.programme {
  position: relative; z-index: 2; width: min(82vw, 320px); padding: 30px 24px 26px; text-align: center; color: var(--encre);
  background: radial-gradient(ellipse at 50% 0%, #fffdf6, var(--ivoire) 60%, #efe0c0);
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--or-sombre), 0 0 0 5px var(--ivoire), 0 0 0 6px var(--or), 0 26px 60px rgba(0, 0, 0, .55), 0 0 90px rgba(255, 200, 110, .25);
  transition: opacity .45s, transform .6s cubic-bezier(.5, 0, .7, .4);
  animation: flotte 5s ease-in-out infinite;
}
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.rideau.ouvert .programme { opacity: 0; transform: translateY(-30px) scale(.94); animation: none; pointer-events: none; }
.prog-haut { margin: 0; font-style: italic; font-size: 1.05rem; color: #7b5a3a; }
.prog-titre { margin: 2px 0 8px; font-family: "Yeseva One", serif; font-size: 2.2rem; line-height: 1; color: var(--laque-vive); }
.prog-pour { margin: 10px 0 4px; font-family: "Marck Script", cursive; font-size: 1.7rem; color: var(--laque); }
.prog-bas { margin: 0 0 18px; font-size: .95rem; line-height: 1.35; color: #7b5a3a; letter-spacing: .02em; }
.lever {
  font: 600 1rem "Cormorant Garamond", serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  padding: 12px 26px; border-radius: 999px; color: var(--ivoire);
  background: linear-gradient(180deg, #c61d31, #8e0d1a); border: 1.5px solid var(--or);
  box-shadow: 0 0 0 3px rgba(217, 178, 92, .25), 0 8px 18px rgba(90, 6, 16, .45);
  animation: appel 2.4s ease-in-out infinite;
}
@keyframes appel { 0%, 100% { box-shadow: 0 0 0 3px rgba(217, 178, 92, .25), 0 8px 18px rgba(90, 6, 16, .45); } 50% { box-shadow: 0 0 0 7px rgba(217, 178, 92, .12), 0 8px 26px rgba(255, 190, 90, .45); } }
.lever:active { transform: scale(.97); }

.coin { position: absolute; width: 34px; height: 34px; }
.coin-hg { top: 6px; left: 6px; }
.coin-hd { top: 6px; right: 6px; transform: scaleX(-1); }
.coin-bg { bottom: 6px; left: 6px; transform: scaleY(-1); }
.coin-bd { bottom: 6px; right: 6px; transform: scale(-1, -1); }

/* ---------- Carte ---------- */
.voile {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(74, 5, 12, .55), rgba(20, 0, 4, .88));
  animation: fondu .35s ease;
}
.voile[hidden] { display: none; }
@keyframes fondu { from { opacity: 0; } }
.carte {
  position: relative; width: min(100%, 440px); max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  padding: 30px 26px 28px; text-align: center; color: var(--encre); border-radius: 8px;
  background: radial-gradient(ellipse at 50% 0%, #fffdf6, var(--ivoire) 55%, #efdfbd);
  box-shadow:
    0 0 0 1px var(--or-sombre), 0 0 0 6px var(--ivoire), 0 0 0 7px var(--or), 0 0 0 11px var(--laque), 0 0 0 12px var(--or-sombre),
    0 30px 80px rgba(0, 0, 0, .6), 0 0 90px rgba(255, 200, 110, .3);
}
.fermer {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font: 400 1.5rem/1 "Cormorant Garamond", serif; color: var(--laque-vive);
  background: var(--ivoire); border: 1px solid var(--or);
}
.carte-bandeau { margin-bottom: 16px; }
.carte-jour { margin: 0; font-size: .9rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--or-sombre); }
.carte h2 { margin: 4px 0 8px; font-family: "Yeseva One", serif; font-weight: 400; font-size: 1.85rem; line-height: 1.1; color: var(--laque-vive); }
.carte .orn { width: 130px; }
.carte-corps { text-align: center; }
.carte .photo { margin: 4px 0 18px; }
.carte .photo img {
  display: block; width: 100%; max-height: 50dvh; object-fit: cover; border-radius: 4px;
  border: 7px solid #fff; box-shadow: 0 0 0 1px var(--or), 0 10px 24px rgba(58, 10, 15, .3);
}
.texte p { margin: 0 0 12px; font-size: 1.22rem; line-height: 1.55; }
.texte p:last-child { margin-bottom: 0; }
.jeu { margin-top: 16px; padding: 16px 18px; border-radius: 6px; background: rgba(179, 18, 31, .05); border: 1px solid rgba(155, 116, 40, .45); }
.question { margin: 0 0 14px; font-size: 1.22rem; line-height: 1.45; font-weight: 600; }
.reponse { margin: 0; font-family: "Yeseva One", serif; font-size: 1.25rem; color: var(--sapin); animation: apparait .5s ease; }
.btn {
  font: 600 1rem "Cormorant Garamond", serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  padding: 10px 22px; border-radius: 999px; color: var(--ivoire); border: 1.5px solid var(--or);
  background: linear-gradient(180deg, #c61d31, #8e0d1a);
}
.ticket {
  position: relative; margin-top: 18px; padding: 20px 22px; color: var(--ivoire); border-radius: 6px;
  background: var(--fleur-or) no-repeat 8px 50% / 22px auto, var(--fleur-or) no-repeat calc(100% - 8px) 50% / 22px auto, linear-gradient(160deg, #c21b2e, #7a0915);
  box-shadow: inset 0 0 0 2px rgba(217, 178, 92, .8), inset 0 0 0 6px rgba(0, 0, 0, .12), 0 10px 22px rgba(58, 10, 15, .3);
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket-entete { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--or-clair); }
.ticket-bon { margin: 8px 0; font-family: "Yeseva One", serif; font-size: 1.4rem; line-height: 1.2; }
.ticket-details { margin: 0; font-size: 1.1rem; }
.ticket-validite { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(244, 223, 160, .6); font-style: italic; color: var(--or-clair); }
.signature { margin: 18px 4px 0; text-align: right; font-family: "Marck Script", cursive; font-size: 1.6rem; color: var(--laque); }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }

/* Cadeau à déballer */
.cadeau { display: grid; justify-items: center; gap: 10px; margin-top: 10px; }
.paquet {
  position: relative; width: 150px; height: 150px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; animation: attend 2.8s ease-in-out infinite;
}
@keyframes attend { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-5deg); } 92% { transform: rotate(5deg); } 96% { transform: rotate(-2deg); } }
.paquet .boite, .paquet .couvercle { position: absolute; border-radius: 4px; transition: transform .8s cubic-bezier(.3, .7, .2, 1), opacity .6s; }
.paquet .boite {
  left: 14px; right: 14px; bottom: 0; height: 96px;
  background: linear-gradient(90deg, transparent 42%, var(--or) 42% 58%, transparent 58%), var(--fleur-or) no-repeat 22% 60% / 18px auto, var(--fleur-or) no-repeat 78% 60% / 18px auto, linear-gradient(160deg, #c61d31, #7a0915);
  box-shadow: inset 0 -12px 18px rgba(0, 0, 0, .25), 0 12px 24px rgba(58, 10, 15, .3);
}
.paquet .couvercle {
  left: 6px; right: 6px; top: 34px; height: 28px; z-index: 2;
  background: linear-gradient(90deg, transparent 43%, var(--or-clair) 43% 57%, transparent 57%), linear-gradient(180deg, #d42a3a, #9e1020);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .3);
}
.paquet .noeud-cadeau { position: absolute; left: 50%; top: -26px; width: 0; height: 0; }
.paquet .noeud-cadeau::before, .paquet .noeud-cadeau::after {
  content: ""; position: absolute; top: 0; width: 34px; height: 26px; border: 6px solid var(--or);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.paquet .noeud-cadeau::before { right: -2px; transform: rotate(-18deg); }
.paquet .noeud-cadeau::after { left: -2px; transform: rotate(18deg); }
.paquet.deballe { animation: none; }
.paquet.deballe .couvercle { transform: translate(40px, -170px) rotate(40deg); opacity: 0; }
.paquet.deballe .boite { transform: scale(.85) translateY(10px); opacity: 0; transition-delay: .25s; }
.cadeau-invite { margin: 0; font-style: italic; color: #7b5a3a; }
.cadeau-revele { display: none; width: 100%; }
.cadeau.ouvert .paquet { height: 0; overflow: visible; }
.cadeau.ouvert .cadeau-invite { display: none; }
.cadeau.ouvert .cadeau-revele { display: block; animation: apparait .6s cubic-bezier(.2, .9, .3, 1.2); }
.cadeau-genre { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--or-sombre); }
.cadeau-intitule { margin: 6px 0 14px; font-family: "Yeseva One", serif; font-size: 1.55rem; line-height: 1.2; color: var(--laque-vive); }
.cadeau-indice { margin: 0; padding: 12px 16px; border-radius: 6px; text-align: left; font-size: 1.12rem; background: rgba(217, 178, 92, .14); border: 1px dashed rgba(155, 116, 40, .6); }
.cadeau-indice b { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--or-sombre); margin-bottom: 2px; }

/* ---------- Bulle ---------- */
.bulle {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 40px); width: max-content; margin: 0; padding: 10px 20px; border-radius: 999px;
  background: var(--ivoire); color: var(--laque); font-weight: 600; text-align: center;
  box-shadow: 0 0 0 1px var(--or), 0 10px 26px rgba(0, 0, 0, .45);
  transition: opacity .3s, transform .3s;
}
.bulle.visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   GRANDIOSE — lever à l'italienne, projecteurs, entrée en scène
   ========================================================= */
:root { --delai-base: 1.5s; }

/* Rideau à l'italienne : les pans se relèvent en drapés vers les cintres */
.pan { transition: none; will-change: clip-path, transform; }
.rideau.ouvert .pan-g { animation: italienne-g 2.5s cubic-bezier(.62, 0, .28, 1) .35s forwards; }
.rideau.ouvert .pan-d { animation: italienne-d 2.5s cubic-bezier(.62, 0, .28, 1) .35s forwards; }
@keyframes italienne-g {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; opacity: 1; }
  55%  { clip-path: polygon(0 0, 100% 0, 40% 58%, 0 76%); transform: none; opacity: 1; }
  100% { clip-path: polygon(0 0, 100% 0, 0 16%, 0 16%); transform: translate(-22%, -14%); opacity: 0; }
}
@keyframes italienne-d {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; opacity: 1; }
  55%  { clip-path: polygon(0 0, 100% 0, 100% 76%, 60% 58%); transform: none; opacity: 1; }
  100% { clip-path: polygon(0 0, 100% 0, 100% 16%, 100% 16%); transform: translate(22%, -14%); opacity: 0; }
}

/* Projecteurs */
.projecteur {
  position: fixed; top: -6vh; width: 80vmax; height: 140vh; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 238, 196, .75), rgba(255, 222, 160, .22) 45%, transparent 82%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  -webkit-mask: linear-gradient(90deg, transparent 8%, #000 42%, #000 58%, transparent 92%);
          mask: linear-gradient(90deg, transparent 8%, #000 42%, #000 58%, transparent 92%);
  transform-origin: 50% 0; transition: opacity 2.2s ease;
}
.projecteur-g { left: calc(-40vmax + 6vw); animation: balaye-g 12s ease-in-out infinite alternate; }
.projecteur-d { right: calc(-40vmax + 6vw); animation: balaye-d 14s ease-in-out infinite alternate; }
@keyframes balaye-g { from { transform: rotate(-34deg); } to { transform: rotate(-12deg); } }
@keyframes balaye-d { from { transform: rotate(34deg); } to { transform: rotate(12deg); } }
.revele .projecteur { opacity: .13; }
.ouverture .projecteur { opacity: .42; transition-duration: .6s; }

/* Entrée en scène : titre dans un flou d'or, fenêtres en cascade */
.revele h1 { animation: dorure 11s linear infinite, titre-entree 1.8s cubic-bezier(.2, .8, .2, 1) calc(var(--delai-base) - .7s) both; }
@keyframes titre-entree {
  from { opacity: 0; letter-spacing: .22em; filter: blur(8px) drop-shadow(0 2px 0 rgba(40, 0, 6, .6)); }
  to   { opacity: 1; letter-spacing: .005em; filter: blur(0) drop-shadow(0 2px 0 rgba(40, 0, 6, .6)); }
}
.revele .dedicace, .revele .sous-titre, .revele .cartouche .orn { animation: apparait 1.2s ease calc(var(--delai-base) - .3s) both; }
.revele .case { animation: surgit .75s cubic-bezier(.2, .9, .3, 1.25) calc(var(--delai-base) + var(--i, 0) * 45ms) both; }
@keyframes surgit { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.revele .toits .coupole-centrale { transform-box: fill-box; transform-origin: 50% 100%; animation: coupole 1.1s cubic-bezier(.2, 1.3, .4, 1) calc(var(--delai-base) - .4s) both; }
.revele .toits .coupole { transform-box: fill-box; transform-origin: 50% 100%; animation: coupole 1s cubic-bezier(.2, 1.3, .4, 1) calc(var(--delai-base) - .2s) both; }
@keyframes coupole { from { opacity: 0; transform: translateY(24px) scaleY(.85); } }

/* Éclair de lumière à l'ouverture d'une fenêtre */
.eclair {
  position: fixed; z-index: 11; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 250, 225, .95) 0%, rgba(255, 214, 130, .55) 35%, transparent 70%);
}

/* Forêts des marges (grands écrans) */
.foret { display: none; position: fixed; bottom: 0; width: 17vw; max-width: 290px; height: 72vh; z-index: 1; pointer-events: none; }
.foret svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.foret-g { left: calc(var(--drape) + 1vw); }
.foret-d { right: calc(var(--drape) + 1vw); transform: scaleX(-1); }
@media (min-width: 1180px) { .foret { display: block; } }
.boules circle { animation: boule 2.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes boule { 0%, 100% { opacity: .75; } 50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 220, 140, .9)); } }

/* Bouton musique */
.son {
  position: fixed; right: calc(var(--drape) + 10px); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15;
  width: 46px; height: 46px; padding: 9px; border-radius: 50%; cursor: pointer; color: var(--laque-vive);
  background: radial-gradient(circle at 40% 35%, #fffdf5, var(--ivoire) 60%, var(--ivoire-ombre));
  border: 1.5px solid var(--or); box-shadow: 0 0 0 3px rgba(217, 178, 92, .25), 0 8px 18px rgba(0, 0, 0, .45);
  animation: apparait .8s ease both;
}
.son svg { width: 100%; height: 100%; display: block; }
.son.muet { color: #9a8a78; }
.son.muet::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--laque-vive); transform: rotate(-40deg); border-radius: 2px; }
.son:active { transform: scale(.94); }

/* La salle s'assombrit pendant le feu d'artifice */
.nuit-feu {
  position: fixed; inset: 0; z-index: 19; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  background: radial-gradient(ellipse 120% 80% at 50% 30%, rgba(24, 8, 46, .72), rgba(8, 0, 14, .88));
}
.feu .nuit-feu { opacity: 1; }

/* =========================================================
   SALLE D'ATTENTE — compte à rebours & boîte à musique
   ========================================================= */
.attente {
  position: relative; margin: 0 auto 30px; padding: 30px 16px 22px; text-align: center; border-radius: 10px; color: var(--ivoire);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 214, 140, .22), transparent 70%),
    var(--motif),
    linear-gradient(180deg, #a3121e 0%, #7a0915 55%, #5a0610 100%);
  background-size: auto, 96px 96px, auto;
  box-shadow: inset 0 0 0 2px var(--or), inset 0 0 0 5px rgba(0, 0, 0, .2), inset 0 0 0 6px rgba(217, 178, 92, .55), 0 16px 34px rgba(58, 10, 15, .4);
}
.attente[hidden] { display: none; }
.attente .coin { width: 30px; height: 30px; }
.attente .coin use { color: var(--or); }
.attente-titre { margin: 0 0 16px; font-weight: 700; font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; text-indent: .3em; color: var(--or-clair); }
.horloge { display: flex; justify-content: center; align-items: flex-start; gap: 5px; }
.case-temps { display: grid; justify-items: center; gap: 7px; }
.chiffre {
  position: relative; display: block; min-width: 2.15ch; padding: 9px 6px 7px;
  font-family: "Yeseva One", serif; font-size: clamp(1.7rem, 8.2vw, 2.7rem); line-height: 1; color: var(--laque-vive);
  background: linear-gradient(180deg, #fffdf6 0%, var(--ivoire) 49.5%, #eadcbf 50.5%, var(--ivoire-ombre) 100%);
  border-radius: 8px; box-shadow: 0 0 0 1.5px var(--or), 0 0 0 3px rgba(0, 0, 0, .15), 0 6px 12px rgba(0, 0, 0, .35);
  transform-origin: 50% 50%; backface-visibility: hidden;
}
.chiffre::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(90, 20, 10, .22); }
.chiffre.bascule { animation: bascule .5s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes bascule { from { transform: perspective(240px) rotateX(-88deg); filter: brightness(.7); } }
.unite { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--or-clair); }
.sep { margin-top: 20px; color: var(--or); font-size: .9rem; animation: astre 2s ease-in-out infinite; }
.attente-date { margin: 16px 0 4px; font-style: italic; font-size: 1.05rem; color: rgba(246, 236, 216, .88); }

.boite-musique {
  position: relative; display: block; width: 214px; margin: 4px auto 0; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .2s;
}
.boite-musique:active { transform: scale(.97); }
.boite-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.bm-danseuse { transform-origin: 110px 80px; }
.bm-cle { transform-origin: 196px 138px; }
.boite-musique.joue .bm-danseuse { animation: pirouette 2.4s linear infinite; }
.boite-musique.joue .bm-cle { animation: remonte 4s linear infinite; }
@keyframes pirouette { 0% { transform: scaleX(1); } 25% { transform: scaleX(.05); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.05); } 100% { transform: scaleX(1); } }
@keyframes remonte { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.boite-musique:not(.joue) .boite-svg { animation: appel-boite 3.2s ease-in-out infinite; }
@keyframes appel-boite { 0%, 100% { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); } 50% { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)) drop-shadow(0 0 16px rgba(255, 214, 130, .55)); } }
.notes { position: absolute; left: 50%; top: 18%; width: 0; height: 0; pointer-events: none; }
.notes i { position: absolute; font-style: normal; font-size: 1.3rem; color: var(--or-clair); opacity: 0; text-shadow: 0 0 8px rgba(255, 214, 130, .8); }
.boite-musique.joue .notes i { animation: note-vole 3.2s ease-out infinite; }
.notes i:nth-child(1) { left: -30px; animation-delay: 0s !important; }
.notes i:nth-child(2) { left: 12px; animation-delay: .8s !important; }
.notes i:nth-child(3) { left: -8px; animation-delay: 1.6s !important; }
.notes i:nth-child(4) { left: 26px; animation-delay: 2.4s !important; }
@keyframes note-vole { 0% { opacity: 0; transform: translate(0, 0) rotate(-10deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-18px, -90px) rotate(14deg); } }
.boite-legende { margin: 4px 0 0; font-family: "Marck Script", cursive; font-size: 1.35rem; color: var(--or-clair); }
@media (min-width: 720px) {
  .attente { padding: 34px 30px 26px; }
  .horloge { gap: 12px; }
  .boite-musique { width: 250px; }
}

/* Retouches salle d'attente & première */
sup { font-size: .6em; line-height: 0; vertical-align: .55em; }
@media (max-width: 480px) {
  .unite { font-size: .6rem; letter-spacing: .08em; }
  .horloge { gap: 3px; }
  .sep { font-size: .7rem; }
}
.attente .pret { margin: 16px auto 6px; display: block; }
.attente .pret[hidden] { display: none; }
.attente.grand-soir .horloge, .attente.grand-soir .boite-musique, .attente.grand-soir .boite-legende { display: none; }
.attente.grand-soir .attente-titre { font-family: "Yeseva One", serif; font-size: 1.7rem; letter-spacing: .02em; text-transform: none; text-indent: 0; }
.programme.premiere .prog-haut { color: var(--laque-vive); font-weight: 600; letter-spacing: .06em; }
.programme.premiere .prog-bas { font-size: 1.08rem; color: #5a3a24; }
.case.appel .baie { animation: halo 1.2s ease-in-out 4; }

/* Coulisses : rien du calendrier avant le 1er décembre et « Je suis prête » */
.avant-premiere .grille, .avant-premiere .compte, .avant-premiere #refermer { display: none; }
.avant-premiere .attente { margin-bottom: 8px; }
