/* ===== marchedenoel-papier.css =====
   À charger APRÈS marchedenoel.css : il surcharge sans toucher à tes valeurs de taille/position.
   Réglages en haut de fichier. */
:root{
  --sticker-bord:5px;                        /* épaisseur du contour blanc (≈1,5 mm sur l'A3) */
  --sticker-ombre:3px 3px 3px rgba(0,0,0,.58); /* +1 mm X/Y, 1 mm de flou, 58 % noir */
  --washi-decalage:6px;                      /* décalage du washi vers le papier qu'il tient */
  --tex-grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='t'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23t)'/></svg>");
  --tex-fibres:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .25' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .35  0 0 0 0 .25  0 0 0 .6 -.1'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
}

/* ---------- Stickers : contour épais + ombre portée ---------- */
.sticker{
  filter:
    drop-shadow(var(--sticker-bord) 0 0 #fff) drop-shadow(calc(var(--sticker-bord) * -1) 0 0 #fff)
    drop-shadow(0 var(--sticker-bord) 0 #fff) drop-shadow(0 calc(var(--sticker-bord) * -1) 0 #fff)
    drop-shadow(var(--sticker-ombre));
}
/* Le washi est translucide : pas de contour blanc, ombre légère. */
.st-washi-haut,.st-washi-bas{filter:drop-shadow(1px 2px 2px rgba(0,0,0,.35))}
/* Décalage vers le papier (propriété « translate » : s'ajoute à tes top/left/rotate) */
.st-washi-haut{translate:var(--washi-decalage) var(--washi-decalage)}
.st-washi-bas{translate:calc(var(--washi-decalage) * -1) calc(var(--washi-decalage) * -1)}

/* ---------- Fond kraft ---------- */
body{background-color:var(--kraft);background-image:var(--tex-fibres),var(--tex-grain)}

/* ---------- Aspect papier découpé / déchiré ---------- */
.sheet,.tag,.day,.note,.date,.place{
  position:relative;isolation:isolate;background:none;box-shadow:none;border-radius:0;
}
.sheet::before,.tag::before,.day::before,.note::before,.date::before,.place::before,
.sheet::after,.tag::after,.day::after,.note::after,.date::after,.place::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
}
.sheet::before{background:var(--paper);filter:url(#rough) drop-shadow(0 6px 14px rgba(60,35,10,.5))}
.tag::before{background:var(--card);filter:url(#rough) drop-shadow(1px 2px 3px rgba(0,0,0,.35))}
.day::before{background:linear-gradient(var(--red) 0 8px,#fff 8px);filter:url(#rough) drop-shadow(1px 2px 3px rgba(0,0,0,.35))}
.note::before{background:var(--green);filter:url(#rough) drop-shadow(1px 3px 4px rgba(0,0,0,.4))}
.date::before{background:var(--pink);filter:url(#rough) drop-shadow(1px 2px 2px rgba(0,0,0,.3))}
.place::before{background:#fff;filter:url(#rough) drop-shadow(1px 2px 3px rgba(0,0,0,.35))}
/* grain + fibres par-dessus chaque papier */
.sheet::after,.tag::after,.day::after,.note::after,.date::after,.place::after{
  background-image:var(--tex-fibres),var(--tex-grain);mix-blend-mode:multiply;opacity:.30;filter:url(#rough);
}
.day{border-top:0}
.tag{border:0}
#plan{background-color:var(--card);background-image:var(--tex-fibres),var(--tex-grain);border-style:solid;border-color:#b89572}
/* petites rotations façon « posé à la main » */
.tag:nth-child(odd){rotate:-.7deg}
.tag:nth-child(even){rotate:.6deg}
.day:nth-child(odd){rotate:-.5deg}
.day:nth-child(even){rotate:.5deg}

/* ---------- Guirlande lumineuse ---------- */
.guirlande{position:absolute;top:-3px;left:6%;right:6%;display:flex;justify-content:space-between;z-index:3;pointer-events:none}
.guirlande::before{content:"";position:absolute;left:-3%;right:-3%;top:4px;height:2px;background:#3a2f2a}
.guirlande span{position:relative;width:10px;height:15px;margin-top:4px;background:var(--c);
  border-radius:50% 50% 45% 45%;box-shadow:0 0 8px var(--c)}
.guirlande span:nth-child(even){margin-top:11px}
.guirlande span::before{content:"";position:absolute;left:2px;top:-4px;width:6px;height:5px;background:#3a2f2a;border-radius:1px}

/* ---------- Neige ---------- */
.neige{position:fixed;top:0;z-index:1;pointer-events:none;border-radius:50%;background:#fff;
  box-shadow:0 0 4px rgba(110,140,175,.7);opacity:.9}

/* ---------- Animations (désactivées si « réduire les animations ») ---------- */
@media (prefers-reduced-motion:no-preference){
  .neige{animation:chute var(--d) linear infinite;animation-delay:var(--w)}
  @keyframes chute{from{transform:translate3d(0,-10vh,0)}to{transform:translate3d(var(--dx),108vh,0)}}
  .guirlande span{animation:scintille 2s ease-in-out infinite alternate}
  @keyframes scintille{from{opacity:.35;box-shadow:0 0 2px var(--c)}to{opacity:1;box-shadow:0 0 10px var(--c)}}
  .st-boule{transform-origin:50% 0;animation:balancier 3.6s ease-in-out infinite alternate}
  @keyframes balancier{from{rotate:-7deg}to{rotate:7deg}}
  .st-houx{transform-origin:100% 0;animation:brise 5s ease-in-out infinite alternate}
  @keyframes brise{from{rotate:-2deg}to{rotate:2.5deg}}
  .st-sapin{transform-origin:0 50%;animation:brise 6s ease-in-out infinite alternate}
  .st-flocon{animation:tourne 45s linear infinite}
  @keyframes tourne{to{rotate:360deg}}
  .st-cadeau{animation:saut 4.5s ease-in-out infinite}
  @keyframes saut{0%,80%,100%{translate:0 0}86%{translate:0 -10px}92%{translate:0 0}95%{translate:0 -4px}}
  #plan g{transform-box:fill-box;transform-origin:center}
  #plan g:hover{animation:remue .5s ease-in-out}
  @keyframes remue{25%{transform:rotate(-1.5deg) scale(1.03)}75%{transform:rotate(1.5deg) scale(1.03)}}
  .tag,.day{transition:translate .2s}
  .tag:hover,.day:hover{translate:0 -3px}
}
