/* =========================================================
   Améliorations : séparations, miroir, nuancier, rose sous cloche,
   intro vidéo à vitesse réelle
   ========================================================= */

/* ---------- intro : passer / défiler ---------- */
.intro-skip {
  position: absolute; z-index: 12;
  top: calc(16px + env(safe-area-inset-top)); right: 16px;
  padding: 8px 16px; border-radius: 99px;
  font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--parch); background: rgba(13, 20, 40, .55); border: 1px solid rgba(201, 164, 90, .45);
  backdrop-filter: blur(6px);
}
.intro-next {
  margin-top: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--tale); font-style: italic; font-size: 15px; color: var(--ink-soft);
}
.intro-next i { position: relative; width: 1px; height: 40px; background: rgba(143, 109, 47, .3); overflow: hidden; }
.intro-next i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--rose); animation: drip 2s cubic-bezier(.6, 0, .4, 1) infinite; }

/* ---------- séparations entre chapitres ---------- */
.sec + .sec { box-shadow: none; }
.seam {
  position: absolute !important; z-index: 8 !important;
  left: 0; right: 0; top: -23px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.seam::before, .seam::after {
  content: ""; flex: 1; height: 7px;
  border-top: 1px solid rgba(201, 164, 90, .9);
  border-bottom: 1px solid rgba(201, 164, 90, .45);
}
.seam::before { margin-right: 8px; background: linear-gradient(90deg, transparent, rgba(201, 164, 90, .12)); }
.seam::after { margin-left: 8px; background: linear-gradient(270deg, transparent, rgba(201, 164, 90, .12)); }
.seam-medal {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #2a3b6e, var(--night) 75%);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(13, 20, 40, .9), 0 0 0 6px rgba(201, 164, 90, .5), 0 6px 18px rgba(0, 0, 0, .35);
}
.seam-medal::before, .seam-medal::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  background: var(--gold); transform: rotate(45deg);
}
.seam-medal::before { left: -22px; }
.seam-medal::after { right: -22px; }
.seam-medal svg { width: 20px; height: 28px; color: var(--gold-l); filter: drop-shadow(0 0 4px rgba(236, 213, 154, .6)); }

/* ---------- miroir magique ---------- */
.mirror { animation: mirrorFloat 5s ease-in-out infinite; }
@keyframes mirrorFloat { 50% { translate: 0 -6px; } }
.mirror::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 32%; width: 340px; height: 340px; margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 213, 154, .28), rgba(201, 164, 90, .08) 45%, transparent 70%);
  animation: halo 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo { 50% { opacity: .6; transform: scale(1.06); } }
.mirror.has-img { width: 250px; height: 495px; }
.mirror-glass {
  background:
    radial-gradient(ellipse 70% 60% at 35% 25%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse at 50% 50%, #f7f1e2, #d9d3c6 70%, #a9a7b4);
  box-shadow: inset 0 0 18px rgba(20, 25, 50, .45), inset 0 0 0 1px rgba(201, 164, 90, .5);
}
.mirror-glass::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 58%);
  transform: translateX(-120%);
}
.mirror.is-clear .mirror-glass::after { animation: shine 1.6s .3s cubic-bezier(.3, .6, .3, 1) forwards; }
@keyframes shine { to { transform: translateX(120%); } }
.mirror-date { position: relative; z-index: 1; }
.mirror-date b { text-shadow: 0 0 18px rgba(201, 74, 92, .35); }
.mirror.is-clear .mirror-date { animation: dateGlow 2.4s ease-in-out .4s infinite; }
@keyframes dateGlow { 50% { filter: drop-shadow(0 0 6px rgba(236, 213, 154, .9)); } }
.mirror .fog { z-index: 2; transition: filter .3s; }
.hint { margin-bottom: 6px; }

/* ---------- nuancier « tenue de bal » ---------- */
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 12px; margin: 34px auto 0; max-width: 360px; perspective: 900px; }
.swatch { width: 30%; min-width: 92px; display: flex; flex-direction: column; align-items: center; }
.silk {
  position: relative; display: block; width: 100%; height: 132px;
  border-radius: 999px 999px 4px 4px;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 42%, transparent 54%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse 90% 70% at 40% 20%, var(--c2), var(--c) 70%);
  background-size: 260% 100%, auto, auto;
  background-position: 110% 0, 0 0, 0 0;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px var(--parch), 0 0 0 7px rgba(143, 109, 47, .5), 0 16px 26px rgba(43, 33, 24, .25);
  transition: background-position 1.4s cubic-bezier(.3, .6, .3, 1);
}
.silk::after {
  content: ""; position: absolute; left: 50%; top: 14px; width: 16px; height: 22px; margin-left: -8px;
  background: var(--gold); opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M50 18c-13 0-23 9-23 22 0 14 10 25 23 25s23-11 23-25c0-13-10-22-23-22zM48 65h4v70h-4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M50 18c-13 0-23 9-23 22 0 14 10 25 23 25s23-11 23-25c0-13-10-22-23-22zM48 65h4v70h-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.swatch.is-in .silk, .swatch:hover .silk { background-position: -60% 0, 0 0, 0 0; }
.swatch figcaption { margin-top: 12px; text-align: center; }
.swatch figcaption b { display: block; white-space: nowrap; font-family: var(--script); font-weight: 400; font-size: 22px; line-height: 1.05; color: var(--ink); }
.swatch figcaption small { display: block; font-family: var(--tale); font-style: italic; font-size: 13px; color: var(--ink-soft); }
.dress-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.dress-tips > div { padding: 16px 12px; border: 1px solid rgba(143, 109, 47, .35); border-radius: 60px 60px 4px 4px; background: rgba(255, 252, 244, .5); padding-top: 22px; }
.dress-tips p:last-child { font-family: var(--tale); font-size: 15.5px; line-height: 1.45; margin-top: 8px; }

/* ---------- épilogue : la rose sous cloche ---------- */
.finale { padding-top: 120px; overflow: hidden; }
.finale .chap { color: var(--gold); }
.finale .title--script { color: #e0798a; }
.finale .lead { color: var(--parch); }
.finale .final-names { color: var(--gold); }
.finale .fin { color: var(--gold-l); }
.cloche-stage { position: relative; width: 280px; height: 380px; margin: 0 auto 14px; display: grid; place-items: end center; }
.cloche-rays {
  position: absolute; left: 50%; top: 44%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: repeating-conic-gradient(from 0deg, rgba(236, 213, 154, .10) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%); mask: radial-gradient(circle, #000 15%, transparent 62%);
  animation: spin 50s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cloche-glow {
  position: absolute; left: 50%; top: 40%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 160, .45), rgba(201, 74, 92, .18) 40%, transparent 70%);
  animation: halo 3.6s ease-in-out infinite;
  pointer-events: none;
}
.cloche-shadow { position: absolute; bottom: 4px; left: 50%; width: 200px; height: 26px; margin-left: -100px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); }
.cloche-stage .cloche { position: relative; z-index: 2; width: 200px; margin: 0 0 14px; }
.cloche-stage .cloche-img { filter: drop-shadow(0 0 22px rgba(255, 196, 160, .35)) drop-shadow(0 18px 20px rgba(0, 0, 0, .5)); }

@media (max-width: 360px) {
  .swatch { min-width: 84px; }
  .silk { height: 116px; }
  .cloche-stage { transform: scale(.9); }
}

/* vidéo d'ouverture HD */
video.cinema { object-fit: cover; background: #0d1428; pointer-events: none; }
