/* =============================================================================
   AMPHYX — Thèmes de fête (02/12/2026)
   Bandeau d'annonce, décor de l'en-tête et calque des effets animés.
   Couleurs plates uniquement. Réglages : console admin › Thèmes & fêtes.
   ============================================================================= */

/* Calque des particules : ne bloque jamais les clics, reste sous les fenêtres modales. */
#amphyxSeasonFx { position: fixed; inset: 0; z-index: 1040; width: 100%; height: 100%; pointer-events: none; }

/* Bandeau d'annonce */
.season-ribbon { --sb: #0f5132; --sf: #fff; position: relative; z-index: 5; background: var(--sb); color: var(--sf); }
.season-ribbon[hidden] { display: none; }
.season-ribbon .in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 7px 52px 7px 16px; text-align: center; }
.season-ribbon .em { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.season-ribbon p { margin: 0; color: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.season-ribbon a.go { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; background: var(--sf); color: var(--sb); font-size: 12.5px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.season-ribbon a.go:hover { opacity: .9; text-decoration: none; }
.season-ribbon .x { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.season-ribbon .x:hover { background: rgba(255,255,255,.28); }
.season-ribbon .pv { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: #fde047; color: #3b2a00; font-size: 11px; font-weight: 900; text-transform: uppercase; }
@media (max-width: 575.98px) {
  .season-ribbon .in { justify-content: flex-start; gap: 10px; padding-left: 12px; text-align: left; }
  .season-ribbon p { font-size: 13px; }
  .season-ribbon a.go { display: none; }
}

/* Bouton pour couper / remettre l'effet animé */
.season-toggle { position: fixed; left: 14px; bottom: 18px; z-index: 1041; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: var(--season-accent, #0c2e60); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(12,46,96,.28); transition: transform .15s ease; }
.season-toggle:hover { transform: scale(1.08); }
.season-toggle.is-off { opacity: .6; }
.season-toggle.is-off::after { content: ""; position: absolute; width: 26px; height: 3px; border-radius: 2px; background: #fff; transform: rotate(-45deg); }
@media (max-width: 991.98px) { .season-toggle { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 38px; height: 38px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .season-toggle { display: none; } }

/* ---------- Décor de l'en-tête ---------- */
/* Noël : guirlande lumineuse sous l'en-tête et bonnet sur le logo */
.season-deco-noel .main_menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 2 Q15 9 30 2 T60 2 T90 2 T120 2' fill='none' stroke='%230f5132' stroke-width='1.6'/%3E%3Cellipse cx='15' cy='8.5' rx='3' ry='4' fill='%23c8102e'/%3E%3Cellipse cx='45' cy='8.5' rx='3' ry='4' fill='%23f5b800'/%3E%3Cellipse cx='75' cy='8.5' rx='3' ry='4' fill='%2316a34a'/%3E%3Cellipse cx='105' cy='8.5' rx='3' ry='4' fill='%232563eb'/%3E%3C/svg%3E") repeat-x left top / 120px 14px; animation: seasonTwinkle 1.6s steps(2, jump-none) infinite; }
@keyframes seasonTwinkle { 50% { opacity: .55; } }
.season-deco-noel .main_menu .navbar-brand { position: relative; }
.season-deco-noel .main_menu .navbar-brand::before { content: ""; position: absolute; left: 19px; top: calc(50% - 27px); z-index: 2; width: 27px; height: 22px; pointer-events: none; transform: rotate(16deg); transform-origin: 30% 85%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 28'%3E%3Cpath d='M4 21 C4.5 13 9 5.5 16.5 3.2 C23 1.4 29 4.6 30.6 11 C31.2 13.4 31 15.6 30.4 17.4 L27 16.6 C27.2 13.4 26 10.6 23.4 9.6 C21.6 12.6 21.2 16.4 21.6 21 Z' fill='%23c8102e'/%3E%3Cpath d='M16.5 3.2 C21 3 24.6 5.6 23.4 9.6 C21.6 12.6 21.2 16.4 21.6 21 L17 21 C16.4 15 16.6 8.6 16.5 3.2 Z' fill='%23a50d26'/%3E%3Crect x='1' y='18.6' width='23' height='7.2' rx='3.6' fill='%23ffffff'/%3E%3Ccircle cx='29.4' cy='18.2' r='3.8' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / contain; filter: drop-shadow(0 1px 0 rgba(12, 46, 96, 0.25)); }

/* Nouvel An : frise d'étoiles dorées */
.season-deco-gold .main_menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M15 1l1.2 2.6 2.8.3-2.1 1.9.6 2.8L15 7.2l-2.5 1.4.6-2.8L11 3.9l2.8-.3z' fill='%23f5b800'/%3E%3Ccircle cx='45' cy='5' r='1.6' fill='%23f5b800'/%3E%3C/svg%3E") repeat-x left center / 60px 10px; animation: seasonTwinkle 2s steps(2, jump-none) infinite; }

/* Fêtes nationales : liseré vert, rouge, jaune */
.season-deco-flag .main_menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 5px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='1' viewBox='0 0 3 1' preserveAspectRatio='none'%3E%3Crect width='1' height='1' fill='%23007a5e'/%3E%3Crect x='1' width='1' height='1' fill='%23ce1126'/%3E%3Crect x='2' width='1' height='1' fill='%23fcd116'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }

/* Saint-Valentin : guirlande de cœurs sous l'en-tête et petit cœur sur le logo */
.season-deco-love .main_menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16' viewBox='0 0 96 16'%3E%3Cpath d='M0 2 Q12 8 24 2 T48 2 T72 2 T96 2' fill='none' stroke='%23be123c' stroke-width='1.3'/%3E%3Cg stroke='%23be123c' stroke-width='1'%3E%3Cpath d='M12 14 C7 10.4 6 7.6 8 6 C9.6 4.9 11.2 5.8 12 7 C12.8 5.8 14.4 4.9 16 6 C18 7.6 17 10.4 12 14 Z' fill='%23ffffff'/%3E%3Cpath d='M36 12.5 C32.5 10 31.8 8 33.2 7 C34.3 6.2 35.4 6.8 36 7.7 C36.6 6.8 37.7 6.2 38.8 7 C40.2 8 39.5 10 36 12.5 Z' fill='%23fda4af'/%3E%3Cpath d='M60 14 C55 10.4 54 7.6 56 6 C57.6 4.9 59.2 5.8 60 7 C60.8 5.8 62.4 4.9 64 6 C66 7.6 65 10.4 60 14 Z' fill='%23ffffff'/%3E%3Cpath d='M84 12.5 C80.5 10 79.8 8 81.2 7 C82.3 6.2 83.4 6.8 84 7.7 C84.6 6.8 85.7 6.2 86.8 7 C88.2 8 87.5 10 84 12.5 Z' fill='%23fda4af'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top / 96px 16px; animation: seasonBeat 1.4s ease-in-out infinite; }
@keyframes seasonBeat { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
.season-deco-love .main_menu .navbar-brand { position: relative; }
.season-deco-love .main_menu .navbar-brand::before { content: ""; position: absolute; left: 30px; top: calc(50% - 23px); z-index: 2; width: 16px; height: 15px; pointer-events: none; transform: rotate(14deg); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 14.5 C2 10.3 0 7 1.6 4.2 C3 1.8 6.4 1.6 8 4 C9.6 1.6 13 1.8 14.4 4.2 C16 7 14 10.3 8 14.5 Z' fill='%23e11d48' stroke='%23ffffff' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain; animation: seasonHeart 1.4s ease-in-out infinite; }
@keyframes seasonHeart { 0%, 100% { transform: rotate(14deg) scale(1); } 15% { transform: rotate(14deg) scale(1.22); } 30% { transform: rotate(14deg) scale(1); } 45% { transform: rotate(14deg) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .season-deco-noel .main_menu::after, .season-deco-gold .main_menu::after, .season-deco-love .main_menu::after, .season-deco-love .main_menu .navbar-brand::before { animation: none; }
}
@media print { #amphyxSeasonFx, .season-ribbon, .season-toggle { display: none !important; } }
