/* Couleurs Sud — thèmes saisonniers
   Chargé après style.css. Le thème est choisi côté PHP dans site_theme(). */

body[class*="theme-"]{
  --season-ink:#47332d;
  --season-muted:#765e51;
  --season-primary:#ae492f;
  --season-secondary:#edae4b;
  --season-soft:#f5ded0;
  --season-page:#fcf6ec;
  --season-card:#fffaf4;
  --season-line:#e9d8c7;
  --season-header:rgba(255,250,244,.96);
  --season-footer:#693b31;
  --season-footer-text:#fff1e4;
  background:var(--season-page);
  color:var(--season-ink);
}

body[class*="theme-"] .site-header{background:var(--season-header);border-bottom-color:var(--season-line)}

body.theme-default,
body.theme-hiver,
body.theme-saint-valentin,
body.theme-printemps,
body.theme-ete,
body.theme-automne,
body.theme-halloween,
body.theme-noel{
  position:relative;
  isolation:isolate;
}

body[class*="theme-"] .site-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:linear-gradient(90deg,var(--season-primary),var(--season-secondary),var(--season-primary));opacity:.88}
body[class*="theme-"] .main-nav a:hover,
body[class*="theme-"] .header-actions a:hover{background:var(--season-soft)}
body[class*="theme-"] .count{background:var(--season-primary)}
body[class*="theme-"] .seasonal-theme-badge{display:inline-flex;align-items:center;min-height:30px;padding:.28rem .65rem;border-radius:999px;background:var(--season-soft);border:1px solid var(--season-line);color:var(--season-primary);font-size:.72rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
body[class*="theme-"] .hero{background:var(--season-soft)!important;box-shadow:0 20px 55px color-mix(in srgb,var(--season-primary) 16%,transparent)}
body[class*="theme-"] .hero-copy{background:radial-gradient(circle at 8% 92%,rgba(255,255,255,.58),transparent 33%),linear-gradient(125deg,var(--season-card),var(--season-soft))}
body[class*="theme-"] .hero h1,
body[class*="theme-"] .catalog-head h1,
body[class*="theme-"] .product-info h1,
body[class*="theme-"] .cart-page>h1,
body[class*="theme-"] .account-page>h1,
body[class*="theme-"] .loyalty-page h1{color:var(--season-ink)}
body[class*="theme-"] .hero .lead,
body[class*="theme-"] .results-meta,
body[class*="theme-"] .product-meta{color:var(--season-muted)}
body[class*="theme-"] .eyebrow,
body[class*="theme-"] .text-link,
body[class*="theme-"] .hero .text-link{color:var(--season-primary);text-decoration-color:color-mix(in srgb,var(--season-primary) 55%,white)}
body[class*="theme-"] .button{background:var(--season-primary);box-shadow:0 5px 0 color-mix(in srgb,var(--season-primary) 25%,transparent)}
body[class*="theme-"] .button:hover{background:color-mix(in srgb,var(--season-primary) 84%,black)}
body[class*="theme-"] .button.secondary{background:var(--season-soft);color:var(--season-ink)}
body[class*="theme-"] .cs-welcome-strip,
body[class*="theme-"] .filters,
body[class*="theme-"] .account-card,
body[class*="theme-"] .checkout-form,
body[class*="theme-"] .order-summary-card,
body[class*="theme-"] .member-order-card,
body[class*="theme-"] .product-card{background:var(--season-card);border-color:var(--season-line)}
body[class*="theme-"] .universe-card:nth-child(5n+1){background:color-mix(in srgb,var(--season-primary) 38%,white)}
body[class*="theme-"] .universe-card:nth-child(5n+2){background:color-mix(in srgb,var(--season-secondary) 56%,white)}
body[class*="theme-"] .universe-card:nth-child(5n+3){background:color-mix(in srgb,var(--season-soft) 78%,white)}
body[class*="theme-"] .universe-card:nth-child(5n+4){background:color-mix(in srgb,var(--season-primary) 27%,var(--season-soft))}
body[class*="theme-"] .universe-card:nth-child(5n){background:color-mix(in srgb,var(--season-secondary) 30%,var(--season-soft))}
body[class*="theme-"] .price-row strong,
body[class*="theme-"] .price-large strong{color:var(--season-primary)}
body[class*="theme-"] .promo-badge,
body[class*="theme-"] .catalog-layout .filter-link.active{background:var(--season-primary)}
body[class*="theme-"] .loyalty-banner,
body[class*="theme-"] .points-card,
body[class*="theme-"] .loyalty-steps article,
body[class*="theme-"] .cart-summary,
body[class*="theme-"] .no-payment-note{background:var(--season-soft);border-color:var(--season-line)}
body[class*="theme-"] .site-footer{background:var(--season-footer)!important;color:var(--season-footer-text)!important;border-top-color:var(--season-secondary)}
body[class*="theme-"] .site-footer a{color:var(--season-footer-text)}

/* Thème standard Couleurs Sud */
body.theme-default{--season-ink:#442b24;--season-muted:#705247;--season-primary:#ba4325;--season-secondary:#e69a2f;--season-soft:#f1cfbb;--season-page:#fbefe1;--season-card:#fff9f1;--season-line:#dfc3a8;--season-header:rgba(255,247,238,.97);--season-footer:#653126;--season-footer-text:#fff3e8}

/* Hiver : bleu brume, ivoire, argent */
body.theme-hiver{--season-ink:#1f3850;--season-muted:#526f84;--season-primary:#3f7099;--season-secondary:#84abc5;--season-soft:#d1e4ef;--season-page:#edf5f9;--season-card:#fbfdff;--season-line:#bdd3e0;--season-header:rgba(242,249,252,.98);--season-footer:#203f55;--season-footer-text:#eff9ff}
body.theme-hiver .hero-media img{filter:saturate(.88) brightness(1.04)}

/* Saint-Valentin : framboise, rose poudré, crème */
body.theme-saint-valentin{--season-ink:#5a1f39;--season-muted:#7f4c62;--season-primary:#bd2857;--season-secondary:#df7194;--season-soft:#f3cad8;--season-page:#fff0f4;--season-card:#fff9fb;--season-line:#e8b8c9;--season-header:rgba(255,243,247,.98);--season-footer:#701e3e;--season-footer-text:#fff1f6}

/* Printemps : sauge, rose tendre, crème fraîche */
body.theme-printemps{--season-ink:#2f5137;--season-muted:#5f765f;--season-primary:#5f9144;--season-secondary:#e68d9d;--season-soft:#dcecc9;--season-page:#f5faee;--season-card:#fffdf7;--season-line:#c7dcb0;--season-header:rgba(248,252,241,.98);--season-footer:#426438;--season-footer-text:#f5fbef}
body.theme-printemps .hero-media img{filter:saturate(1.08) brightness(1.035)}

/* Été : Méditerranée, soleil, corail */
body.theme-ete{--season-ink:#0d4b54;--season-muted:#45727a;--season-primary:#008d9c;--season-secondary:#f0aa27;--season-soft:#caece7;--season-page:#fff5df;--season-card:#fffaf0;--season-line:#b6ddd7;--season-header:rgba(255,249,236,.98);--season-footer:#075b65;--season-footer-text:#effefd}
body.theme-ete .hero{background:linear-gradient(135deg,#cfeee9,#ffdf92)!important}
body.theme-ete .hero-copy{background:radial-gradient(circle at 10% 90%,rgba(255,255,255,.68),transparent 32%),linear-gradient(125deg,#fff4df,#d2eeea)}

/* Automne : terracotta, olive, caramel */
body.theme-automne{--season-ink:#563326;--season-muted:#765b47;--season-primary:#b34d20;--season-secondary:#cc8d2e;--season-soft:#e7cda4;--season-page:#f8eddd;--season-card:#fff8ed;--season-line:#d8ba8b;--season-header:rgba(255,246,233,.98);--season-footer:#6a3c23;--season-footer-text:#fff3df}
body.theme-automne .hero-media img{filter:saturate(1.08) sepia(.08)}

/* Halloween : chic, pas enfantin — aubergine, citrouille, crème */
body.theme-halloween{--season-ink:#2b1730;--season-muted:#654c69;--season-primary:#ea6709;--season-secondary:#764181;--season-soft:#ecc6a2;--season-page:#f4e8dc;--season-card:#fff7ee;--season-line:#d8b395;--season-header:rgba(32,20,36,.98);--season-footer:#211525;--season-footer-text:#fff0db}
body.theme-halloween .site-header{color:#fff1de}
body.theme-halloween .main-nav a:hover,body.theme-halloween .header-actions a:hover{background:#4a354f}
body.theme-halloween .count{background:#e77822;color:#21151f}
body.theme-halloween .seasonal-theme-badge{background:#4a354f;border-color:#715179;color:#ffd9a0}
body.theme-halloween .nav-toggle{color:#fff1de;border-color:#705a74}
body.theme-halloween .hero{background:linear-gradient(135deg,#efb978,#d78349)!important}
body.theme-halloween .hero-copy{background:radial-gradient(circle at 7% 92%,rgba(255,255,255,.48),transparent 30%),linear-gradient(130deg,#ffe8c6,#e8ac76)}
body.theme-halloween .hero::after{content:"";position:absolute;right:2rem;top:1.4rem;width:76px;height:76px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffd991,#e77822 68%,#b94f16);opacity:.92;box-shadow:0 0 34px rgba(231,120,34,.3);pointer-events:none}
body.theme-halloween .site-footer{border-top-color:#e77822}

/* Noël : vert sapin, rouge profond, doré */
body.theme-noel{--season-ink:#173f30;--season-muted:#557066;--season-primary:#146a43;--season-secondary:#d2a02e;--season-soft:#d8e9dc;--season-page:#f3f2e6;--season-card:#fffaf2;--season-line:#c5d7c6;--season-header:rgba(247,246,235,.98);--season-footer:#0f4731;--season-footer-text:#fff8e7}
body.theme-noel .site-header::after{background:linear-gradient(90deg,#146a43,#d2a02e,#b52d42,#d2a02e,#146a43)}
body.theme-noel .hero{background:linear-gradient(135deg,#d5e8da,#efd08a)!important}
body.theme-noel .hero-copy{background:radial-gradient(circle at 8% 92%,rgba(255,255,255,.60),transparent 33%),linear-gradient(125deg,#fff4df,#d8eadc)}
body.theme-noel .promo-badge{background:#b52d42}

@media(max-width:900px){body[class*="theme-"] .seasonal-theme-badge{display:none}}
@media(prefers-reduced-motion:reduce){body[class*="theme-"] .hero-media img{filter:none}}

/* Fallback pour navigateurs sans color-mix(). */
@supports not (color:color-mix(in srgb,red 50%,white)){
  body[class*="theme-"] .hero{box-shadow:0 20px 55px rgba(80,50,35,.12)}
  body[class*="theme-"] .button:hover{filter:brightness(.9)}
  body[class*="theme-"] .universe-card:nth-child(n){background:var(--season-soft)}
}

/* ==========================================================
   DÉCORS SAISONNIERS ANIMÉS
   - arrière-plan uniquement
   - aucun clic intercepté
   - animations désactivées si l'utilisateur préfère moins de mouvement
   ========================================================== */

.seasonal-background{
  position:fixed;
  inset:0;
  display:block;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  user-select:none;
  contain:layout paint;
}

/* Le contenu du site reste toujours au-dessus du décor. */
body[class*="theme-"] > :not(.seasonal-background){
  position:relative;
  z-index:1;
}

.seasonal-particle{
  position:absolute;
  display:block;
  left:var(--x,50%);
  top:var(--y,50%);
  font-size:var(--size,2rem);
  line-height:1;
  opacity:var(--opacity,.16);
  filter:saturate(.98); text-shadow:0 1px 0 rgba(255,255,255,.12);
  transform:translate3d(0,0,0) rotate(var(--rot,0deg));
  animation:
    seasonal-float var(--duration,18s) ease-in-out var(--delay,0s) infinite alternate,
    seasonal-sway calc(var(--duration,18s) * .7) ease-in-out var(--delay,0s) infinite alternate;
  will-change:transform;
}

/* Répartition fixe : décor équilibré et sans calcul JavaScript. */
.seasonal-particle-1 {--x:3%; --y:9%; --size:2.9rem; --duration:17s; --delay:-2s; --opacity:.17; --rot:-8deg}
.seasonal-particle-2 {--x:15%;--y:72%;--size:3.5rem;--duration:21s;--delay:-7s;--opacity:.15;--rot:10deg}
.seasonal-particle-3 {--x:25%;--y:22%;--size:2.4rem;--duration:15s;--delay:-4s;--opacity:.16;--rot:-15deg}
.seasonal-particle-4 {--x:36%;--y:84%;--size:3.1rem;--duration:23s;--delay:-11s;--opacity:.14;--rot:5deg}
.seasonal-particle-5 {--x:47%;--y:13%;--size:2.7rem;--duration:19s;--delay:-5s;--opacity:.16;--rot:12deg}
.seasonal-particle-6 {--x:58%;--y:64%;--size:3.6rem;--duration:24s;--delay:-13s;--opacity:.14;--rot:-6deg}
.seasonal-particle-7 {--x:68%;--y:30%;--size:2.8rem;--duration:18s;--delay:-3s;--opacity:.16;--rot:8deg}
.seasonal-particle-8 {--x:79%;--y:80%;--size:3.2rem;--duration:22s;--delay:-9s;--opacity:.15;--rot:-10deg}
.seasonal-particle-9 {--x:90%;--y:16%;--size:3rem;--duration:20s;--delay:-6s;--opacity:.17;--rot:6deg}
.seasonal-particle-10{--x:7%; --y:43%;--size:2.2rem;--duration:16s;--delay:-8s;--opacity:.13;--rot:14deg}
.seasonal-particle-11{--x:20%;--y:50%;--size:2.7rem;--duration:25s;--delay:-15s;--opacity:.14;--rot:-4deg}
.seasonal-particle-12{--x:31%;--y:6%; --size:2.1rem;--duration:18s;--delay:-10s;--opacity:.13;--rot:9deg}
.seasonal-particle-13{--x:43%;--y:46%;--size:3rem;--duration:21s;--delay:-12s;--opacity:.14;--rot:-12deg}
.seasonal-particle-14{--x:54%;--y:91%;--size:2.4rem;--duration:17s;--delay:-3s;--opacity:.13;--rot:7deg}
.seasonal-particle-15{--x:65%;--y:7%; --size:3.4rem;--duration:26s;--delay:-17s;--opacity:.14;--rot:-7deg}
.seasonal-particle-16{--x:75%;--y:51%;--size:2.3rem;--duration:19s;--delay:-8s;--opacity:.13;--rot:11deg}
.seasonal-particle-17{--x:86%;--y:61%;--size:2.9rem;--duration:23s;--delay:-14s;--opacity:.14;--rot:-9deg}
.seasonal-particle-18{--x:95%;--y:89%;--size:2.2rem;--duration:18s;--delay:-5s;--opacity:.13;--rot:5deg}

@keyframes seasonal-float{
  0%{transform:translate3d(-4px,-10px,0) rotate(var(--rot,0deg)) scale(.96)}
  50%{transform:translate3d(8px,8px,0) rotate(calc(var(--rot,0deg) + 6deg)) scale(1.03)}
  100%{transform:translate3d(-7px,22px,0) rotate(calc(var(--rot,0deg) - 5deg)) scale(.98)}
}

@keyframes seasonal-sway{
  from{margin-left:-10px}
  to{margin-left:14px}
}

/* Hiver / Noël : sensation de chute lente. */
body.theme-hiver .seasonal-particle,
body.theme-noel .seasonal-particle{
  animation-name:seasonal-fall,seasonal-sway;
  animation-timing-function:linear,ease-in-out;
}
@keyframes seasonal-fall{
  0%{transform:translate3d(0,-35px,0) rotate(var(--rot,0deg))}
  100%{transform:translate3d(18px,90px,0) rotate(calc(var(--rot,0deg) + 35deg))}
}

/* Halloween : mouvements un peu plus vivants mais toujours discrets. */
body.theme-halloween .seasonal-particle{
  opacity:calc(var(--opacity,.12) + .035);
  animation-name:halloween-bob,seasonal-sway;
}
@keyframes halloween-bob{
  0%{transform:translate3d(-8px,-8px,0) rotate(var(--rot,0deg)) scale(.96)}
  45%{transform:translate3d(13px,13px,0) rotate(calc(var(--rot,0deg) + 9deg)) scale(1.06)}
  100%{transform:translate3d(-6px,28px,0) rotate(calc(var(--rot,0deg) - 7deg)) scale(.98)}
}

/* Printemps : papillons/fleurs plus légers. */
body.theme-printemps .seasonal-particle{
  animation-duration:calc(var(--duration,18s) * .85),calc(var(--duration,18s) * .62);
}

/* Été : décor très discret pour garder l'aspect lumineux. */
body.theme-ete .seasonal-particle{opacity:calc(var(--opacity,.12) * .75)}

/* Automne : chute douce des feuilles. */
body.theme-automne .seasonal-particle{
  animation-name:autumn-fall,seasonal-sway;
  animation-timing-function:ease-in-out,ease-in-out;
}
@keyframes autumn-fall{
  0%{transform:translate3d(-5px,-18px,0) rotate(var(--rot,0deg))}
  50%{transform:translate3d(16px,15px,0) rotate(calc(var(--rot,0deg) + 25deg))}
  100%{transform:translate3d(-10px,65px,0) rotate(calc(var(--rot,0deg) + 55deg))}
}

/* Saint-Valentin : battement très léger. */
body.theme-saint-valentin .seasonal-particle{
  animation-name:heart-float,seasonal-sway;
}
@keyframes heart-float{
  0%{transform:translate3d(0,-8px,0) scale(.94) rotate(var(--rot,0deg))}
  50%{transform:translate3d(7px,8px,0) scale(1.08) rotate(calc(var(--rot,0deg) + 4deg))}
  100%{transform:translate3d(-5px,22px,0) scale(.98) rotate(calc(var(--rot,0deg) - 3deg))}
}

/* Noël : Père Noël et sapins un peu plus visibles que les flocons. */
body.theme-noel .seasonal-particle:nth-child(6n+1),
body.theme-noel .seasonal-particle:nth-child(6n+2){
  opacity:.22;
  font-size:calc(var(--size,2rem) * 1.28);
}

/* Halloween : citrouilles plus présentes, chauves-souris plus fines. */
body.theme-halloween .seasonal-particle:nth-child(6n+1),
body.theme-halloween .seasonal-particle:nth-child(6n+4){
  opacity:.24;
  font-size:calc(var(--size,2rem) * 1.3);
}

/* Sur mobile : moins d'éléments pour préserver les performances. */
@media(max-width:700px){
  .seasonal-particle:nth-child(n+11){display:none}
  .seasonal-particle{font-size:calc(var(--size,2rem) * .86)}
}

/* Accessibilité : aucune animation si le système demande moins de mouvement. */
@media(prefers-reduced-motion:reduce){
  .seasonal-particle{
    animation:none!important;
    transform:none;
  }
}



body.theme-printemps .seasonal-particle,
body.theme-saint-valentin .seasonal-particle{
  opacity:calc(var(--opacity,.16) + .03);
}

body.theme-automne .seasonal-particle,
body.theme-hiver .seasonal-particle{
  opacity:calc(var(--opacity,.16) + .02);
}

body.theme-default .seasonal-particle,
body.theme-ete .seasonal-particle{
  opacity:calc(var(--opacity,.16) + .01);
}

/* === ANIMATIONS SAISONNIÈRES RAFFINÉES V2 === */

/* Noël et hiver : vraie chute verticale de neige.
   Les éléments principaux (Père Noël / sapins) restent plus lents et flottants. */
body.theme-noel .seasonal-particle:nth-child(6n+3),
body.theme-noel .seasonal-particle:nth-child(6n+4),
body.theme-hiver .seasonal-particle{
  top:-12vh;
  animation:cs-snow-fall var(--duration,18s) linear var(--delay,0s) infinite!important;
}

@keyframes cs-snow-fall{
  0%{
    transform:translate3d(-8px,-8vh,0) rotate(0deg);
    opacity:0;
  }
  8%{opacity:var(--opacity,.18)}
  90%{opacity:var(--opacity,.18)}
  100%{
    transform:translate3d(34px,118vh,0) rotate(300deg);
    opacity:0;
  }
}

body.theme-noel .seasonal-particle:nth-child(6n+1),
body.theme-noel .seasonal-particle:nth-child(6n+2),
body.theme-noel .seasonal-particle:nth-child(6n+5),
body.theme-noel .seasonal-particle:nth-child(6n){
  animation:cs-noel-float calc(var(--duration,18s) * 1.25) ease-in-out var(--delay,0s) infinite alternate!important;
}

@keyframes cs-noel-float{
  from{transform:translate3d(-12px,-10px,0) rotate(-5deg) scale(.98)}
  to{transform:translate3d(16px,22px,0) rotate(7deg) scale(1.06)}
}

/* Printemps : pétales et fleurs qui descendent en diagonale.
   Papillons : mouvement latéral plus léger. */
body.theme-printemps .seasonal-particle:nth-child(6n+1),
body.theme-printemps .seasonal-particle:nth-child(6n+2),
body.theme-printemps .seasonal-particle:nth-child(6n+5),
body.theme-printemps .seasonal-particle:nth-child(6n){
  top:-10vh;
  animation:cs-petal-fall calc(var(--duration,18s) * 1.15) ease-in-out var(--delay,0s) infinite!important;
}

@keyframes cs-petal-fall{
  0%{
    transform:translate3d(-10px,-8vh,0) rotate(-15deg);
    opacity:0;
  }
  10%{opacity:var(--opacity,.18)}
  55%{transform:translate3d(42px,52vh,0) rotate(120deg)}
  92%{opacity:var(--opacity,.18)}
  100%{
    transform:translate3d(-28px,116vh,0) rotate(260deg);
    opacity:0;
  }
}

body.theme-printemps .seasonal-particle:nth-child(6n+3){
  animation:cs-butterfly-flight calc(var(--duration,18s) * .85) ease-in-out var(--delay,0s) infinite alternate!important;
}

@keyframes cs-butterfly-flight{
  0%{transform:translate3d(-22px,10px,0) rotate(-7deg) scale(.95)}
  35%{transform:translate3d(25px,-18px,0) rotate(5deg) scale(1.04)}
  70%{transform:translate3d(-8px,20px,0) rotate(-3deg) scale(.98)}
  100%{transform:translate3d(34px,-12px,0) rotate(7deg) scale(1.03)}
}

/* Automne : vraies feuilles qui tombent en tournoyant. */
body.theme-automne .seasonal-particle{
  top:-12vh;
  animation:cs-leaf-fall calc(var(--duration,18s) * 1.2) ease-in-out var(--delay,0s) infinite!important;
}

@keyframes cs-leaf-fall{
  0%{
    transform:translate3d(-18px,-10vh,0) rotate(0deg);
    opacity:0;
  }
  8%{opacity:var(--opacity,.17)}
  30%{transform:translate3d(28px,32vh,0) rotate(95deg)}
  60%{transform:translate3d(-25px,68vh,0) rotate(220deg)}
  92%{opacity:var(--opacity,.17)}
  100%{
    transform:translate3d(35px,118vh,0) rotate(390deg);
    opacity:0;
  }
}

/* Halloween : chauves-souris qui traversent réellement l'écran.
   Citrouilles/fantômes restent en flottement lent au fond. */
body.theme-halloween .seasonal-particle:nth-child(6n+2),
body.theme-halloween .seasonal-particle:nth-child(6n){
  left:-12vw;
  animation:cs-bat-cross calc(var(--duration,18s) * .85) linear var(--delay,0s) infinite!important;
  opacity:.24;
}

@keyframes cs-bat-cross{
  0%{
    transform:translate3d(-8vw,0,0) rotate(-8deg) scale(.9);
    opacity:0;
  }
  10%{opacity:.24}
  35%{transform:translate3d(36vw,-22px,0) rotate(5deg) scale(1.05)}
  65%{transform:translate3d(72vw,18px,0) rotate(-4deg) scale(.98)}
  90%{opacity:.24}
  100%{
    transform:translate3d(124vw,-12px,0) rotate(7deg) scale(1.04);
    opacity:0;
  }
}

body.theme-halloween .seasonal-particle:nth-child(6n+1),
body.theme-halloween .seasonal-particle:nth-child(6n+3),
body.theme-halloween .seasonal-particle:nth-child(6n+4),
body.theme-halloween .seasonal-particle:nth-child(6n+5){
  animation:cs-halloween-float calc(var(--duration,18s) * 1.12) ease-in-out var(--delay,0s) infinite alternate!important;
}

@keyframes cs-halloween-float{
  from{transform:translate3d(-10px,-12px,0) rotate(-7deg) scale(.96)}
  to{transform:translate3d(14px,25px,0) rotate(8deg) scale(1.06)}
}

/* Saint-Valentin : remontée douce de quelques cœurs, comme des bulles. */
body.theme-saint-valentin .seasonal-particle:nth-child(odd){
  top:auto;
  bottom:-10vh;
  animation:cs-heart-rise calc(var(--duration,18s) * 1.1) ease-in-out var(--delay,0s) infinite!important;
}

@keyframes cs-heart-rise{
  0%{
    transform:translate3d(-10px,12vh,0) rotate(-6deg) scale(.9);
    opacity:0;
  }
  10%{opacity:var(--opacity,.19)}
  55%{transform:translate3d(24px,-48vh,0) rotate(8deg) scale(1.07)}
  90%{opacity:var(--opacity,.19)}
  100%{
    transform:translate3d(-18px,-116vh,0) rotate(-5deg) scale(.98);
    opacity:0;
  }
}

/* Été : mouvement lent et presque imperceptible, effet brise. */
body.theme-ete .seasonal-particle{
  animation:cs-summer-breeze calc(var(--duration,18s) * 1.35) ease-in-out var(--delay,0s) infinite alternate!important;
}

@keyframes cs-summer-breeze{
  from{transform:translate3d(-13px,-5px,0) rotate(-3deg) scale(.98)}
  to{transform:translate3d(18px,13px,0) rotate(4deg) scale(1.04)}
}

/* Thème Couleurs Sud classique : soleil/feuillage respirent doucement. */
body.theme-default .seasonal-particle{
  animation:cs-south-breathe calc(var(--duration,18s) * 1.3) ease-in-out var(--delay,0s) infinite alternate!important;
}

@keyframes cs-south-breathe{
  from{transform:translate3d(-8px,-5px,0) rotate(-2deg) scale(.97)}
  to{transform:translate3d(12px,12px,0) rotate(3deg) scale(1.035)}
}

/* Variations de vitesse : évite un mouvement trop mécanique. */
.seasonal-particle:nth-child(3n+1){animation-duration:17s!important}
.seasonal-particle:nth-child(3n+2){animation-duration:23s!important}
.seasonal-particle:nth-child(3n){animation-duration:29s!important}

/* Sur petit écran, animations plus lentes et moins denses. */
@media(max-width:700px){
  .seasonal-particle:nth-child(n+11){display:none!important}
  body.theme-halloween .seasonal-particle:nth-child(6n+2),
  body.theme-halloween .seasonal-particle:nth-child(6n){
    animation-duration:25s!important;
  }
}

/* Respect du réglage d'accessibilité du visiteur. */
@media(prefers-reduced-motion:reduce){
  .seasonal-particle{
    animation:none!important;
  }
}

/* V5 animation engine: mouvement piloté en priorité par includes/layout.php */
