/* Décor de Noël de la boutique. Chargé uniquement quand le décor est actif (partials/christmas.blade.php). */

/* Bandeau de vœux */
.xmas-banner{position:relative;display:flex;align-items:center;justify-content:center;padding:9px 48px;background:linear-gradient(100deg,#7a0c1e,#b3122f 45%,#0f5c36);color:#fff;text-align:center}
.xmas-banner[hidden]{display:none}
.xmas-banner p{margin:0;font-size:14px;line-height:1.45}
.xmas-banner p,.xmas-banner p span,.xmas-banner p strong{color:#fff!important}
.xmas-banner strong{font-weight:700}
.xmas-banner p .xmas-star{color:#ffd566!important}
.xmas-close{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.xmas-close:hover{background:rgba(255,255,255,.16)}
.xmas-close:focus-visible,.xmas-toggle:focus-visible{outline:3px solid #ffd566;outline-offset:2px}

/* Guirlande lumineuse, dans sa propre bande sous le bandeau */
.xmas-lights{position:relative;height:24px;overflow:hidden;background:#fff;pointer-events:none}
.xmas-lights:before,.xmas-lights:after{content:'';position:absolute;left:0;right:0;top:-3px;height:26px;background-repeat:repeat-x;background-size:160px 26px}
.xmas-lights:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Cpath d='M0 3Q20 13 40 3T80 3T120 3T160 3' fill='none' stroke='%231f4d36' stroke-width='1.6'/%3E%3Cg%3E%3Crect x='17' y='7' width='6' height='4' fill='%231f4d36'/%3E%3Cellipse cx='20' cy='16' rx='4.5' ry='6' fill='%23e5233f'/%3E%3Crect x='97' y='7' width='6' height='4' fill='%231f4d36'/%3E%3Cellipse cx='100' cy='16' rx='4.5' ry='6' fill='%23f5b301'/%3E%3C/g%3E%3C/svg%3E");animation:xmas-twinkle 1.8s ease-in-out infinite}
.xmas-lights:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Crect x='57' y='7' width='6' height='4' fill='%231f4d36'/%3E%3Cellipse cx='60' cy='16' rx='4.5' ry='6' fill='%2318a558'/%3E%3Crect x='137' y='7' width='6' height='4' fill='%231f4d36'/%3E%3Cellipse cx='140' cy='16' rx='4.5' ry='6' fill='%231683e0'/%3E%3C/svg%3E");animation:xmas-twinkle 1.8s ease-in-out -.9s infinite}
@keyframes xmas-twinkle{0%,100%{opacity:1;filter:drop-shadow(0 0 4px rgba(255,205,90,.75))}50%{opacity:.4;filter:none}}

/* Neige : au-dessus de la page, sans jamais intercepter un clic */
.xmas-snow{position:fixed;inset:0;width:100%;height:100%;z-index:9990;pointer-events:none}
.xmas-toggle{position:fixed;left:12px;bottom:75px;z-index:9995;display:flex;align-items:center;gap:6px;min-height:38px;padding:7px 13px;border:1px solid #cfe0f3;border-radius:30px;background:#fff;color:#0b4f96;font-size:13px;font-weight:600;box-shadow:0 4px 14px rgba(15,50,90,.18);cursor:pointer}
.xmas-toggle[hidden]{display:none}

/* Bonnet sur le logo */
.u-header__navbar-brand h3{position:relative;display:inline-block}
.u-header__navbar-brand h3:before{content:'';position:absolute;left:-13px;top:-13px;width:32px;height:28px;transform:rotate(-14deg);pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M8 42C10 22 24 8 38 9c11 1 17 9 18 20l-9-5c1 8 3 13 6 18z' fill='%23d7172f'/%3E%3Cpath d='M38 9c11 1 17 9 18 20l-9-5c-1-6-4-11-9-15z' fill='%23ac0f23'/%3E%3Crect x='3' y='39' width='55' height='13' rx='6.5' fill='%23fff' stroke='%23c9d6e6' stroke-width='1.5'/%3E%3Ccircle cx='55' cy='31' r='7.5' fill='%23fff' stroke='%23c9d6e6' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat}

/* Touches rouge et vert sur les titres de rubriques ; le bleu de la marque reste partout ailleurs */
.section-title:after{background:linear-gradient(90deg,#c8102e 0 55%,#147a45 55% 100%)!important;height:3px!important}

@media (max-width:767px){
    .xmas-banner{padding:8px 42px 8px 12px}
    .xmas-banner p{font-size:12px}
    .xmas-banner .xmas-star{display:none}
    .xmas-toggle{padding:7px 11px}
    .xmas-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
    .u-header__navbar-brand h3:before{left:-10px;top:-10px;width:25px;height:22px}
}
@media (prefers-reduced-motion:reduce){
    .xmas-lights:before,.xmas-lights:after{animation:none}
    .xmas-snow,.xmas-toggle{display:none!important}
}
@media print{.xmas-banner,.xmas-lights,.xmas-snow,.xmas-toggle{display:none!important}}
