/* public/assets/css/seasons.css — surcouche des jours spéciaux (html[data-season="…"]) ; animations dans seasons.js
   Les couleurs propres à chaque fête sont fixes, c'est voulu : elles remplacent la palette le temps de l'événement.
   Le contraste renforcé du menu d'accessibilité reste prioritaire. */

/* ---------- Commun ---------- */
.season-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 930; pointer-events: none; }
.season-deco { position: fixed; inset: 0; z-index: 929; pointer-events: none; }
.season-ribbon {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 945;
    display: flex; align-items: center; gap: 12px; max-width: min(720px, calc(100vw - 180px));
    padding: 9px 10px 9px 16px; border-radius: 22px;
    background: var(--season-bg, var(--cd-surface-inverse)); color: var(--season-ink, var(--cd-surface));
    box-shadow: var(--cd-shadow-panel); font: 500 0.88rem/1.35 var(--font-body, var(--cd-font-sans));
    animation: season-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both 1.2s;
}
.season-off { flex: none; padding: 5px 10px; border: 1px solid currentColor; border-radius: 14px; background: transparent; color: inherit; font: inherit; font-size: 0.78rem; opacity: 0.8; cursor: pointer; }
.season-off:hover { opacity: 1; }
@keyframes season-in { from { opacity: 0; transform: translate(-50%, 20px); } }
html:not([data-season]) .season-ribbon, html:not([data-season]) .season-deco { display: none; }
@media (max-width: 760px) {
    .season-ribbon { left: 12px; right: 12px; bottom: 72px; transform: none; max-width: none; border-radius: 14px; font-size: 0.82rem; }
    @keyframes season-in { from { opacity: 0; transform: translateY(20px); } }
}
@media print { .season-ribbon, .season-deco, .season-canvas { display: none !important; } }
html.intro .season-ribbon, html.intro .season-canvas { display: none; }

/* =================================================================
   Halloween : ça doit faire peur
   ================================================================= */
:root[data-season="halloween"]:not(.a11y-contrast) {
    color-scheme: dark;
    --cd-surface: #0B080D; --cd-surface-alt: #120C14; --cd-surface-card: #18101B; --cd-surface-inverse: #F1E6D6;
    --cd-ink: #F1E6D6; --cd-slate: #B9A99A; --cd-muted: #9C8B80; --cd-border: #2B1D2C; --cd-border-strong: #3E2A3F;
    --cd-ocre: #E8711A; --cd-accent: #E8711A; --cd-accent-ink: #FF9A4A; --cd-brand-ink: #FF9A4A; --cd-on-accent: #120C14;
    --cd-tint: 241 230 214;
    --cd-shadow-card: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(232, 113, 26, 0.08);
    --season-bg: #E8711A; --season-ink: #120C14;
}
html[data-season="halloween"]:not(.a11y-contrast) body { --accent-ink: color-mix(in srgb, var(--accent) 45%, #FF9A4A); }
html[data-season="halloween"]:not(.a11y-contrast) .h1 { text-shadow: 0 0 22px rgba(232, 113, 26, 0.35), 0 0 2px rgba(0, 0, 0, 0.9); }
html[data-season="halloween"]:not(.a11y-contrast):not(.a11y-motion) .h1 .grad-text { animation: hw-flicker 7s infinite; }
@keyframes hw-flicker {
    0%, 91%, 100% { opacity: 1; filter: none; }
    92% { opacity: 0.35; } 93% { opacity: 1; } 94.5% { opacity: 0.2; filter: blur(1px); } 96% { opacity: 1; filter: none; }
}
html[data-season="halloween"] .site-header .brand svg { filter: drop-shadow(0 0 6px rgba(232, 113, 26, 0.7)); }

.season-deco .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
html:not(.a11y-motion) .season-deco .vignette { animation: hw-lights 11s infinite; }
@keyframes hw-lights { 0%, 86%, 100% { opacity: 1; } 87% { opacity: 1.6; background-color: rgba(0, 0, 0, 0.35); } 88% { background-color: transparent; } 89.5% { background-color: rgba(0, 0, 0, 0.5); } 90.5% { background-color: transparent; } }
.season-deco .web { position: absolute; top: 0; width: clamp(130px, 18vw, 230px); aspect-ratio: 1; opacity: 0.4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23d8cfc4' stroke-width='0.6'%3E%3Cpath d='M0 0L100 30M0 0L80 60M0 0L55 85M0 0L28 100M0 0L100 6'/%3E%3Cpath d='M18 5Q16 10 13 14Q8 16 4 18M38 12Q33 22 26 28Q17 34 8 37M60 18Q52 34 41 43Q27 53 12 56M82 24Q70 46 55 58Q37 72 17 76'/%3E%3C/svg%3E") no-repeat top left / contain; }
.season-deco .web-l { left: 0; top: var(--header-h, 76px); }
.season-deco .web-r { right: 0; top: var(--header-h, 76px); transform: scaleX(-1); }

.season-scare { position: fixed; inset: 0; z-index: 990; pointer-events: none; background: #000; animation: hw-scare 3.6s ease forwards; }
.season-scare .eyes { position: absolute; display: flex; gap: 34px; align-items: center; flex-wrap: wrap; width: 170px; justify-content: center; animation: hw-eyes 3.6s ease forwards; }
.season-scare .eyes i { width: 46px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #FFE07A 0 18%, #FF3B1F 40%, #7A0B00 70%, transparent 72%); box-shadow: 0 0 30px 6px rgba(255, 59, 31, 0.6); }
.season-scare .eyes span { flex-basis: 100%; margin-top: 22px; text-align: center; font: 700 1.1rem/1.2 var(--font-display, serif); color: #FF9A4A; letter-spacing: 0.04em; }
@keyframes hw-scare { 0% { opacity: 0; } 4% { opacity: 0.95; } 7% { opacity: 0.2; } 10% { opacity: 0.97; } 80% { opacity: 0.97; } 100% { opacity: 0; } }
@keyframes hw-eyes { 0%, 22% { opacity: 0; transform: scale(0.6); } 30% { opacity: 1; transform: scale(1); } 52% { transform: scaleY(1); } 54% { transform: scaleY(0.1); } 57%, 85% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; } }

/* =================================================================
   Noël : guirlande et neige
   ================================================================= */
:root[data-season="noel"]:not(.a11y-contrast) { --season-bg: #A3272F; --season-ink: #FFF6EC; }
.season-deco .garland { position: absolute; left: 0; right: 0; top: var(--header-h, 76px); height: 28px; display: flex; justify-content: space-around;
    background: radial-gradient(ellipse 50% 16px at 50% 0, transparent 92%, rgba(60, 118, 80, 0.7) 93%, transparent 100%) repeat-x 0 -6px / 72px 28px; }
.season-deco .garland i { width: 9px; height: 13px; margin-top: 7px; border-radius: 50% 50% 45% 45%; background: hsl(calc(var(--i) * 77deg) 85% 60%); box-shadow: 0 0 10px hsl(calc(var(--i) * 77deg) 85% 60%); }
html:not(.a11y-motion) .season-deco .garland i { animation: xm-blink 1.6s infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes xm-blink { 50% { opacity: 0.35; box-shadow: none; } }
@media (max-width: 760px) { .season-deco .garland i:nth-child(n + 13) { display: none; } }

/* =================================================================
   Nouvel An, 14 Juillet, Saint-Valentin, Pâques, Fête de la musique
   ================================================================= */
:root[data-season="nouvel-an"]:not(.a11y-contrast) { --season-bg: linear-gradient(90deg, #C07A2E, #E6B566); --season-ink: #1A2533; }
:root[data-season="nouvel-an"]:not(.a11y-contrast) .h1 .grad-text { background: linear-gradient(90deg, #E6B566, #C07A2E, #E6B566); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }
html[data-season="nouvel-an"]:not(.a11y-motion) .h1 .grad-text { animation: ny-shine 4s linear infinite; }
@keyframes ny-shine { to { background-position: -200% 0; } }
:root[data-season="14-juillet"]:not(.a11y-contrast) { --season-bg: linear-gradient(90deg, #1F4FBF 0 33%, #FFFFFF 33% 66%, #D63A3A 66%); --season-ink: #1A2533; }
:root[data-season="14-juillet"] .season-ribbon { text-shadow: 0 0 6px #fff; }
:root[data-season="black-friday"]:not(.a11y-contrast) {
    color-scheme: dark;
    --cd-surface: #0A0A0A; --cd-surface-alt: #121212; --cd-surface-card: #161616; --cd-surface-inverse: #FFD400;
    --cd-ink: #F5F5F0; --cd-slate: #B8B8B0; --cd-muted: #9A9A92; --cd-border: #262626; --cd-border-strong: #3A3A3A;
    --cd-ocre: #FFD400; --cd-accent: #FFD400; --cd-accent-ink: #FFE45C; --cd-brand-ink: #FFE45C; --cd-on-accent: #111111;
    --cd-tint: 245 245 240;
    --season-bg: #FFD400; --season-ink: #111111;
}
html[data-season="black-friday"]:not(.a11y-contrast) body { --accent-ink: color-mix(in srgb, var(--accent) 40%, #FFE45C); }
html[data-season="black-friday"]:not(.a11y-contrast) .h1 .grad-text { color: #FFD400; }
html[data-season="black-friday"] .season-ribbon { font-weight: 700; }
:root[data-season="fete-meres"]:not(.a11y-contrast) { --season-bg: #C2577A; --season-ink: #FFF6F8; }
:root[data-season="fete-peres"]:not(.a11y-contrast) { --season-bg: #1F3F66; --season-ink: #F3F7FC; }
:root[data-season="anniversaire"]:not(.a11y-contrast) { --season-bg: #C07A2E; --season-ink: #1A2533; }
html[data-season="anniversaire"]:not(.a11y-motion) .site-header .brand svg { animation: bday-hop 2.4s ease-in-out infinite; }
@keyframes bday-hop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-4px) rotate(-8deg); } 86% { transform: translateY(0) rotate(6deg); } }
:root[data-season="saint-valentin"]:not(.a11y-contrast) { --season-bg: #C2375F; --season-ink: #FFF3F6; }
:root[data-season="paques"]:not(.a11y-contrast) { --season-bg: #F3D36B; --season-ink: #3A2E12; }
:root[data-season="fete-musique"]:not(.a11y-contrast) { --season-bg: #6E4B8B; --season-ink: #FFFFFF; }

.season-egg { display: inline-block; margin-left: 8px; padding: 0; border: 0; background: none; font-size: 1.15rem; line-height: 1; cursor: pointer; vertical-align: middle; transform-origin: 50% 90%; }
html:not(.a11y-motion) .season-egg:not(:disabled) { animation: egg-wobble 3.5s infinite; }
.season-egg:disabled { cursor: default; }
@keyframes egg-wobble { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 93% { transform: rotate(12deg); } 96% { transform: rotate(-6deg); } }
html[data-season="black-friday"] .ac-fab svg { color: #111111; }
