/* WAF Forme V2 — Easter eggs Octobre Rose 🎀 (chargé seulement quand c'est actif) */

/* 1. Petit ruban accroché au logo du header */
.waf-octobre-rose .waf-header .waf-logo { position: relative; }
.waf-octobre-rose .waf-header .waf-logo::after {
  content: ""; position: absolute; top: -4px; right: -14px; width: 12px; height: 18px;
  background: var(--waf-or-ribbon) center / contain no-repeat;
  transform-origin: 50% 0; animation: waf-or-sway 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes waf-or-sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* 2. Ruban caché dans le footer */
.waf-or-footer {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 28px; height: 28px; margin-left: 6px; padding: 0; border: 0; border-radius: 9999px;
  background: transparent; cursor: pointer; opacity: .35; transition: opacity .25s ease, transform .25s ease;
}
.waf-or-footer:hover, .waf-or-footer:focus-visible { opacity: 1; transform: scale(1.25) rotate(-8deg); }
.waf-or-footer:focus-visible { outline: 2px solid var(--waf-rose); outline-offset: 2px; }
.waf-or-footer img { display: block; width: 12px; height: 18px; }

/* 3. Pluie de rubans */
.waf-or-rain { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.waf-or-drop {
  position: absolute; top: -60px; width: 22px; height: 33px;
  background: var(--waf-or-ribbon) center / contain no-repeat;
  animation: waf-or-fall linear forwards; will-change: transform;
}
@keyframes waf-or-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate3d(var(--dx, 0px), 110vh, 0) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* 4. Message */
.waf-or-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 2147483001;
  width: min(440px, calc(100vw - 32px)); transform: translate(-50%, 24px); opacity: 0;
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 20px 18px;
  background: #0d0b0b; color: #ffffff; border: 1px solid rgba(232, 77, 112, .5); border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4); font-family: 'Poppins', sans-serif;
  transition: transform .35s ease, opacity .35s ease;
}
.waf-or-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.waf-or-toast img { flex: 0 0 26px; width: 26px; height: 39px; }
.waf-or-toast strong {
  display: block; margin-bottom: 6px; font-family: 'League Spartan', sans-serif; font-weight: 900;
  font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; color: #e84d70;
}
.waf-or-toast p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #e8ddd8; }
.waf-or-toast a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 9999px;
  background: #e84d70; color: #0d0b0b; text-decoration: none;
  font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.waf-or-toast a:hover { background: #c4305a; color: #ffffff; }
.waf-or-toast-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 9999px;
  background: transparent; color: #c4b8b8; font-size: 18px; cursor: pointer;
}
.waf-or-toast-close:hover { color: #ffffff; }
/* au-dessus de la barre d'actions mobile */
@media (max-width: 1024px) { .has-sticky-cta .waf-or-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }

/* 5. « rose » tapé au clavier : le site rosit quelques secondes */
.waf-or-blush { transition: filter .8s ease; }
.waf-or-blush .waf-main, .waf-or-blush .waf-header, .waf-or-blush .waf-footer { filter: sepia(.35) saturate(2.2) hue-rotate(-30deg); }

@media (prefers-reduced-motion: reduce) {
  .waf-octobre-rose .waf-header .waf-logo::after { animation: none; }
  .waf-or-drop { display: none; }
  .waf-or-toast { transition: none; }
}
