/* =========================================================
   Placement des éléments décoratifs
   ========================================================= */

/* ---------- guirlandes : centrées pile sur la jonction des chapitres ---------- */
.el--seam {
  top: 0; left: 50%;
  width: 112%; max-width: none;
  margin-left: -56%;
  margin-top: -14.24%;        /* = moitié de la hauteur (largeur 112 % ÷ ratio 3,93 ÷ 2) : le milieu tombe sur la jonction */
  z-index: 9 !important;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45));
  animation: sway 7s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.el--flip { scale: -1 1; }
@keyframes sway { 0%, 100% { rotate: -.5deg; } 50% { rotate: .5deg; } }
/* plus d'air sous la guirlande pour que rien ne passe dessous */
.sec:has(> .el--seam) { padding-top: 118px; }
/* la scène finale ne coupe plus sa guirlande */
.finale { overflow: visible; }
.cloche-stage { overflow: visible; }

/* ---------- coin fleuri autour du médaillon ---------- */
.medallion-wrap { position: relative; width: 190px; margin: 34px auto 34px; }
.medallion-wrap .medallion { margin: 0 auto; }
.med-corner {
  position: absolute; z-index: 3; pointer-events: none;
  width: 168px; height: auto;
  filter: drop-shadow(0 8px 12px rgba(43, 33, 24, .3));
}
.med-corner--tl { top: -46px; left: -74px; }
.med-corner--br { bottom: -46px; right: -74px; rotate: 180deg; }

/* ---------- deux candélabres qui encadrent « Le bal » ---------- */
.el--candle { top: 70px; width: 21%; max-width: 104px; }
.el--candle-l { left: 2px; }
.el--candle-r { right: 2px; scale: -1 1; }

/* ---------- coin de la lettre RSVP ---------- */
.el--letter { top: -26px; right: -16px; width: 40%; }

@media (max-width: 380px) {
  .el--candle { width: 19%; top: 76px; }
  .med-corner { width: 148px; }
  .med-corner--tl { left: -62px; }
  .med-corner--br { right: -62px; }
}
