/* =========================================================================
   Échos Santé — Décorations de Noël (Options du thème → Noël et fêtes)
   ========================================================================= */
.xmas{--xmas-red:#d6342c;--xmas-gold:#f2b632;--xmas-snow:#fff}

/* ---------- Guirlande lumineuse sous l'en-tête ---------- */
.xmas-lights{position:absolute;left:0;right:0;bottom:-15px;height:24px;pointer-events:none;z-index:3;overflow:hidden;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath d='M0 2Q28 16 56 2' fill='none' stroke='%23153a27' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0/56px 24px}
body.dark .xmas-lights{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath d='M0 2Q28 16 56 2' fill='none' stroke='%239fb8a6' stroke-width='1.4'/%3E%3C/svg%3E")}
.xmas-lights i{position:absolute;top:8px;width:8px;height:12px;margin-left:-4px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:var(--c);box-shadow:0 0 6px 1px var(--c),0 0 14px 2px color-mix(in srgb,var(--c) 45%,transparent);animation:xmas-twinkle var(--d,2.4s) ease-in-out var(--delay,0s) infinite}
.xmas-lights i::before{content:"";position:absolute;top:-3px;left:50%;width:5px;height:4px;margin-left:-2.5px;border-radius:1px;background:#2b3a31}
.xmas-lights i:nth-child(5n+1){--c:#ff4a3d}
.xmas-lights i:nth-child(5n+2){--c:#ffc83d}
.xmas-lights i:nth-child(5n+3){--c:#4ee37a}
.xmas-lights i:nth-child(5n+4){--c:#5cb8ff}
.xmas-lights i:nth-child(5n){--c:#ff8bd0}
@keyframes xmas-twinkle{0%,100%{opacity:1;filter:brightness(1.1)}50%{opacity:.35;filter:brightness(.7);box-shadow:none}}

/* ---------- Bonnet sur le logo ---------- */
.xmas-hat .brand-wrap .brand,.xmas-hat .masthead .brand{position:relative}
.xmas-hat .brand-wrap .brand::before,.xmas-hat .masthead>.brand::before{content:"";position:absolute;z-index:2;left:-20px;top:-24px;width:50px;height:43px;pointer-events:none;transform:rotate(-22deg);
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52'%3E%3Cpath d='M8 38C10 20 22 6 38 5c9-1 15 5 14 14-1 6-5 9-8 9 2-5 1-11-6-11-9 0-17 9-20 22z' fill='%23d6342c'/%3E%3Cpath d='M22 12c6-5 15-6 21-1-6-1-13 1-18 5z' fill='%23fff' opacity='.25'/%3E%3Crect x='3' y='34' width='34' height='11' rx='5.5' fill='%23fff'/%3E%3Crect x='3' y='34' width='34' height='11' rx='5.5' fill='none' stroke='%23e3e8e4' stroke-width='1'/%3E%3Ccircle cx='46' cy='30' r='6.5' fill='%23fff' stroke='%23e3e8e4'/%3E%3C/svg%3E") center/contain no-repeat;
	filter:drop-shadow(0 2px 2px rgba(7,40,25,.25));animation:xmas-hat 6s ease-in-out infinite;transform-origin:30% 90%}
.xmas-hat-right .brand-wrap .brand::before,.xmas-hat-right .masthead>.brand::before{left:auto;right:-20px;transform:scaleX(-1) rotate(-22deg);animation-name:xmas-hat-r}
@keyframes xmas-hat{0%,100%{transform:rotate(-22deg)}50%{transform:rotate(-16deg)}}
@keyframes xmas-hat-r{0%,100%{transform:scaleX(-1) rotate(-22deg)}50%{transform:scaleX(-1) rotate(-16deg)}}
footer .brand::before{display:none!important}
@media (max-width:560px){.xmas-hat .brand-wrap .brand::before,.xmas-hat .masthead>.brand::before{width:34px;height:29px;left:-13px;top:-16px}.xmas-hat-right .brand-wrap .brand::before{left:auto;right:-13px}}

/* ---------- Neige posée sur les cartes et grands blocs ---------- */
.xmas-caps :is(.card,.story-card,.hero,.vertical-carousel,.focus-section,.newsletter,.editor-note,.anniv-section,.ad-zone.has-creative){position:relative}
.xmas-caps :is(.card,.story-card,.hero,.vertical-carousel,.focus-section,.newsletter,.editor-note)::before{content:"";position:absolute;left:0;right:0;top:-1px;height:15px;z-index:5;pointer-events:none;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6c-4 0-6 5-10 5s-5-3-9-3-5 7-9 7-4-6-8-6-6 3-10 3-5-5-9-5-4 6-9 6-5-4-9-4-4 7-9 7-5-6-9-6-5 3-8 3-5-4-9-4H0z' fill='%23fff'/%3E%3C/svg%3E") repeat-x 0 0/120px 15px;
	filter:drop-shadow(0 2px 1.5px rgba(7,40,25,.18))}
.xmas-caps .card:nth-child(2n)::before{background-position:-47px 0}
.xmas-caps .card:nth-child(3n)::before{background-position:-83px 0}
.xmas-caps .story-card:nth-child(3n+2)::before{display:none}
body.dark.xmas-caps :is(.card,.story-card,.hero,.vertical-carousel,.focus-section,.newsletter,.editor-note)::before{opacity:.92}

/* ---------- Houx près des titres de section ---------- */
.xmas-holly .section-heading h2::after,.xmas-holly .anniv-section h2::after{content:"";display:inline-block;width:.78em;height:.62em;margin-left:.22em;vertical-align:.05em;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 40'%3E%3Cpath d='M24 26C17 27 9 23 4 16c4 1 5-2 7-3 0 3 4 3 5 1 1 3 5 3 6 1 0 3 2 6 2 11z' fill='%23139447'/%3E%3Cpath d='M26 26c7 1 15-3 20-10-4 1-5-2-7-3 0 3-4 3-5 1-1 3-5 3-6 1 0 3-2 6-2 11z' fill='%230b7a38'/%3E%3Cpath d='M24 25C17 22 11 19 6 16M26 25c7-3 13-6 18-9' stroke='%23075a29' stroke-width='.8' fill='none'/%3E%3Ccircle cx='21' cy='29' r='5' fill='%23d6342c'/%3E%3Ccircle cx='29' cy='29.5' r='5' fill='%23c22a23'/%3E%3Ccircle cx='25' cy='23.5' r='5' fill='%23e5463d'/%3E%3Ccircle cx='23.5' cy='22' r='1.4' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- Pied de page enneigé ---------- */
.xmas-footer footer{position:relative}
.xmas-footer footer::before{content:"";position:absolute;left:0;right:0;top:-1px;height:30px;pointer-events:none;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0h400v8c-20 0-30 14-60 14S300 6 270 6s-35 16-70 16-40-12-70-12-35 14-65 14S20 8 0 8z' fill='%23f5f6f0'/%3E%3Cpath d='M0 0h400v4c-25 0-35 9-65 9S290 3 260 3s-40 10-72 10-38-8-68-8-40 9-70 9S18 4 0 4z' fill='%23fff'/%3E%3C/svg%3E") repeat-x 0 0/400px 30px}
body.dark.xmas-footer footer::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0h400v8c-20 0-30 14-60 14S300 6 270 6s-35 16-70 16-40-12-70-12-35 14-65 14S20 8 0 8z' fill='%23dfe9e2'/%3E%3Cpath d='M0 0h400v4c-25 0-35 9-65 9S290 3 260 3s-40 10-72 10-38-8-68-8-40 9-70 9S18 4 0 4z' fill='%23fff'/%3E%3C/svg%3E")}
.xmas-footer footer{padding-top:64px}
.xmas-message{display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;margin:0 0 34px!important;padding:14px 20px;border:1px solid #ffffff22;border-radius:100px;background:#ffffff0d;color:#fff!important;font:700 14px/1.4 var(--display)!important;letter-spacing:-.01em}
.xmas-message span{color:var(--xmas-gold);font-size:12px}
@media (max-width:560px){.xmas-message{border-radius:16px;font-size:13px!important}}

/* ---------- Neige qui tombe ---------- */
.xmas-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:60}
.xmas-snow-toggle{position:fixed;left:18px;bottom:18px;z-index:61;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:#3b8fd0;font-size:19px;line-height:1;display:grid;place-items:center;box-shadow:0 6px 18px -8px rgba(7,40,25,.45);cursor:pointer;transition:transform .2s,opacity .2s}
.xmas-snow-toggle:hover{transform:rotate(30deg)}
.xmas-snow-toggle[aria-pressed=false]{opacity:.55}
.xmas-snow-toggle[aria-pressed=false]::after{content:"";position:absolute;width:24px;height:2px;background:currentColor;transform:rotate(-45deg);border-radius:2px}
@media (max-width:760px){.xmas-snow-toggle{bottom:84px;left:12px;width:36px;height:36px;font-size:17px}}

@media (prefers-reduced-motion:reduce){.xmas-lights i,.xmas-hat .brand::before{animation:none!important}}
@media print{.xmas-lights,.xmas-snow,.xmas-snow-toggle,.xmas-message{display:none!important}.xmas *::before{background:none!important}}
