/* ============================================================================
   minecraft.fr — HABILLAGE DES FÊTES (flocons pixel + bonnet + coffre-cadeau)
   Chargé uniquement pendant la période (inc/mcfr-fetes.php). Markup :
   header.php (flocons, bonnet dans le SVG du logo) et footer.php (coffre).
   Aucune image, aucune police. Les flocons n'animent que `transform`.
   Couleurs FIXES : header et pied de page restent sombres dans les deux thèmes.
   ============================================================================ */

/* ---- 1) Flocons : 14 carrés qui tombent par à-coups DANS le header ---- */
.mcfr-flocons{
  position:absolute; inset:0; z-index:3;
  overflow:hidden; pointer-events:none;
}
.mcfr-flocons i{
  position:absolute; top:-8px; display:block;
  width:4px; height:4px; opacity:.55; background:#fff;
  animation:mcfr-flocon 7s steps(18) infinite;
}
.mcfr-flocons i:nth-child(3n+1){ width:6px; height:6px; opacity:.9; }
@keyframes mcfr-flocon{ to{ transform:translateY(180px); } }
.mcfr-flocons i:nth-child(1){left:2%;animation-duration:5s;animation-delay:0s}
.mcfr-flocons i:nth-child(2){left:61.3%;animation-duration:6.3s;animation-delay:-1.7s}
.mcfr-flocons i:nth-child(3){left:24.7%;animation-duration:7.6s;animation-delay:-3.4s}
.mcfr-flocons i:nth-child(4){left:84%;animation-duration:8.9s;animation-delay:-5.1s}
.mcfr-flocons i:nth-child(5){left:47.3%;animation-duration:10.2s;animation-delay:-6.8s}
.mcfr-flocons i:nth-child(6){left:10.6%;animation-duration:5s;animation-delay:-8.5s}
.mcfr-flocons i:nth-child(7){left:70%;animation-duration:6.3s;animation-delay:-1.2s}
.mcfr-flocons i:nth-child(8){left:33.3%;animation-duration:7.6s;animation-delay:-2.9s}
.mcfr-flocons i:nth-child(9){left:92.6%;animation-duration:8.9s;animation-delay:-4.6s}
.mcfr-flocons i:nth-child(10){left:56%;animation-duration:10.2s;animation-delay:-6.3s}
.mcfr-flocons i:nth-child(11){left:19.3%;animation-duration:5s;animation-delay:-8s}
.mcfr-flocons i:nth-child(12){left:78.6%;animation-duration:6.3s;animation-delay:-.7s}
.mcfr-flocons i:nth-child(13){left:41.9%;animation-duration:7.6s;animation-delay:-2.4s}
.mcfr-flocons i:nth-child(14){left:5.3%;animation-duration:8.9s;animation-delay:-4.1s}
/* mobile : moitié moins de flocons */
@media only screen and (max-width:782px){
  .mcfr-flocons i:nth-child(n+8){ display:none; }
}
/* coupés par le visiteur (bouton « Neige » du pied de page) ou par le système */
html[data-neige="off"] .mcfr-flocons{ display:none; }
@media (prefers-reduced-motion:reduce){
  .mcfr-flocons{ display:none; }
}

/* ---- 2) Logo : bonnet (dessiné dans le SVG de la tête) + point rouge ---- */
.mcfr-fetes .mcfr-logo-tete{ overflow:visible; }
.mcfr-fetes .mcfr-logo-wm i{ background:#E0463E; }

/* ---- 3) Bouton « Neige » : même habillage que le switch clair/sombre ---- */
.mcfr-tsw-row .mcfr-neige-sw{ margin-left:10px; }

/* ---- 4) Coffre-cadeau du pied de page (<details>, aucun script) ----
   Deux exemplaires dans footer.php, un seul affiché :
   --d (≥ 1201px) : colonne à droite du pied de page, centrée en hauteur,
        le mot s'affiche SOUS le coffre (place réservée : rien ne bouge) ;
   --m (≤ 782px, pied de page empilé) : à côté du personnage, le mot en
        bulle au-dessus.
   Entre les deux, pas de coffre : il ferait passer la mention légale sur
   une ligne de plus. */
.mcfr-cadeau{
  position:relative; flex:0 0 auto;
  margin:0; padding:0; border:0; background:none;
}
.mcfr-cadeau summary{
  display:block; list-style:none; cursor:pointer;
  width:48px; height:51px; margin:0 auto; padding:0;
}
.mcfr-cadeau summary::-webkit-details-marker{ display:none; }
.mcfr-cadeau summary:focus-visible{ outline:2px solid #34CBB2; outline-offset:3px; }
.mcfr-cadeau svg{ display:block; width:48px; height:51px; overflow:visible; }
.mcfr-cadeau[open] .mcfr-cadeau-couvercle{ transform:translateY(-2px); }
.mcfr-cadeau-mot{
  position:absolute; box-sizing:border-box;
  background:#fff; color:#1E2422;
  border:2px solid #1E2422; box-shadow:3px 3px 0 #1AA995;
  font-family:var(--mc-display,"Space Grotesk",system-ui,sans-serif);
  font-weight:700; line-height:1.25; text-align:center;
}
.mcfr-cadeau--d{ width:76px; height:101px; align-self:center; }
.mcfr-cadeau--d .mcfr-cadeau-mot{
  left:0; top:59px; width:76px; padding:5px 4px; font-size:11px;
}
.mcfr-cadeau--m{ display:none; width:48px; align-self:flex-end; }
.mcfr-cadeau--m .mcfr-cadeau-mot{
  right:0; bottom:100%; margin-bottom:8px; padding:6px 10px;
  white-space:nowrap; font-size:13px;
}
@media only screen and (max-width:1200px){
  .mcfr-cadeau--d{ display:none; }
}
@media only screen and (max-width:782px){
  .mcfr-cadeau--m{ display:block; }
}
