/* Ambiance de Noël : le décor ne capte aucun clic ; bouton et panneau compacts aux couleurs du site. */
.neige-bouton.neige-libre { position: fixed; left: 14px; bottom: 14px; z-index: 1032; margin: 0; }
.neige-bouton.neige-eteinte { opacity: .5; }
.neige-panneau { position: fixed; z-index: 2000; width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; display: grid; gap: 10px; padding: 12px 14px; line-height: 1.3; text-align: left; text-transform: none; letter-spacing: normal; }
.neige-message[hidden] { display: none; }
.neige-panneau button { font: inherit; cursor: pointer; }
.neige-titre { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.neige-corps, .neige-bloc, .neige-ambiances { display: grid; gap: 8px; }
.neige-bloc { gap: 4px; }
.neige-ambiances { gap: 6px; }
.neige-corps.neige-inactif { opacity: .4; pointer-events: none; }
.neige-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; }
.neige-segments button { min-height: 26px; padding: 0 2px; border: 0; background: transparent; font-size: .85em; }
.neige-marche { position: relative; flex: 0 0 auto; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 999px; }
.neige-marche::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.neige-marche[aria-pressed="true"]::after { transform: translateX(14px); }
.neige-message { margin: 0; font-size: .78em; }
@media (max-width: 700px) { .neige-bouton.neige-libre { left: 8px; bottom: 8px; width: 34px; height: 34px; font-size: 16px; opacity: .85; } }
@media print { .neige-toile, .neige-bouton, .neige-panneau { display: none !important; } }

/* Habillage website2 : comme les menus de la barre. */
.neige-bouton { flex: 0 0 auto; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 4px; padding: 0; border: 0; border-radius: var(--border-radius-10, 10px); background: rgba(255, 255, 255, .07); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.neige-bouton:hover, .neige-bouton[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.neige-bouton.neige-libre { background: rgba(10, 10, 10, .82); }
.neige-ambiance small, .neige-legende, .neige-message { color: rgba(255, 255, 255, .6); }
.neige-marche { background: rgba(255, 255, 255, .2); }
.neige-marche[aria-pressed="true"] { background: #ff7f8c; }

/* La roue quotidienne occupe le coin bas gauche : le bouton flottant se place à mi-hauteur. */
.neige-bouton.neige-libre { left: 10px; top: 50%; bottom: auto; }
/* Accroche de la guirlande du haut de l’écran. */
.neige-fil { position: fixed; top: 0; left: 0; width: 100%; height: 0; pointer-events: none; }

/* Les trois ambiances : une couleur et une icône (Hugeicons) par niveau. */
.neige-icone { display: block; width: 18px; height: 18px; background-color: currentColor; -webkit-mask: var(--neige-masque) center / contain no-repeat; mask: var(--neige-masque) center / contain no-repeat; }
.neige-titre strong { display: flex; align-items: center; gap: 6px; }
.neige-panneau .neige-ambiance { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; transition: background .35s ease, box-shadow .35s ease; }
.neige-ambiance[data-valeur="discret"] { --teinte: 56, 176, 255; --teinte-2: 90, 220, 235; }
.neige-ambiance[data-valeur="hiver"] { --teinte: 255, 92, 138; --teinte-2: 255, 140, 120; }
.neige-ambiance[data-valeur="feerie"] { --teinte: 148, 92, 255; --teinte-2: 255, 184, 60; }
.neige-pastille { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, rgb(var(--teinte)), rgb(var(--teinte-2))); color: #fff; box-shadow: 0 4px 14px rgba(var(--teinte), .4); transition: transform .5s cubic-bezier(.33, 1, .68, 1); }
.neige-texte { display: grid; gap: 1px; min-width: 0; }
.neige-ambiance strong { font-size: 1em; }
.neige-ambiance small { font-size: .8em; line-height: 1.25; }
.neige-niveau { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.neige-niveau i { width: 3px; height: 6px; border-radius: 2px; background: rgba(var(--teinte), .25); }
.neige-niveau i:nth-child(2) { height: 10px; }
.neige-niveau i:nth-child(3) { height: 14px; }
.neige-niveau i.plein { background: rgb(var(--teinte)); }
.neige-panneau .neige-ambiance:hover { background: rgba(var(--teinte), .12); }
.neige-panneau .neige-ambiance[aria-pressed="true"] { background: linear-gradient(100deg, rgba(var(--teinte), .26), rgba(var(--teinte-2), .07)); box-shadow: inset 0 0 14px rgba(var(--teinte), .22); }
.neige-icone { transition: rotate .7s cubic-bezier(.33, 1, .68, 1), scale .7s cubic-bezier(.33, 1, .68, 1); }
.neige-bouton:hover .neige-icone, .neige-bouton[aria-expanded="true"] .neige-icone { rotate: 60deg; }
.neige-ambiance:hover .neige-pastille, .neige-ambiance[aria-pressed="true"] .neige-pastille { transform: scale(1.05); }
.neige-ambiance[aria-pressed="true"][data-valeur="discret"] .neige-icone { rotate: -14deg; }
.neige-ambiance[aria-pressed="true"][data-valeur="hiver"] .neige-icone { rotate: 60deg; }
.neige-ambiance[aria-pressed="true"][data-valeur="feerie"] .neige-icone { scale: 1.14; }
.neige-icone-flocon { --neige-masque: url("../icons/utils/neige-flocon-M0-rQgM.svg"); }
.neige-icone-cristal { --neige-masque: url("../icons/utils/neige-cristal-VMAnU8z.svg"); }
.neige-icone-lune { --neige-masque: url("../icons/utils/neige-lune-qc3aysy.svg"); }
.neige-icone-etincelles { --neige-masque: url("../icons/utils/neige-etincelles-NyU_pCt.svg"); }
/* Dans la barre : même fond, même taille et même arrondi que les autres actions. */
.neige-bouton:not(.neige-libre) { position: relative; isolation: isolate; margin: 0; background: transparent; }
.neige-bouton:not(.neige-libre)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bs-body-bg); opacity: .3; transition: opacity .4s ease; }
.neige-bouton:not(.neige-libre):hover::before, .neige-bouton:not(.neige-libre)[aria-expanded="true"]::before { opacity: .55; }
@media (max-width: 1199.98px) { .navbar-header .neige-bouton:not(.neige-libre) { width: 32px; height: 32px; margin: 0 2px; } }

/* Habillage repris des menus déroulants de la barre. */
.neige-panneau { padding: 18px 20px; border: 0; border-radius: var(--border-radius-20, 20px); background: #0a0a0ac9; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-family: inherit; font-size: 13.5px; }
.neige-titre { padding-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / 38%); }
.neige-titre strong { font-family: "Hanson", sans-serif; font-size: .8rem; text-transform: uppercase; }
.neige-ambiances { margin-inline: -8px; gap: 2px; }
.neige-panneau .neige-ambiance { border: 0; border-radius: 10px; background: transparent; color: #fff; }
.neige-legende { font-size: .72rem; text-transform: uppercase; }
.neige-segments { gap: .25rem; padding: 0; }
.neige-segments button { min-height: 2.25rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: .6rem; color: #fff; font-size: .75rem; font-weight: 600; transition: background-color .25s ease, border-color .25s ease; }
.neige-segments button:hover { background: rgba(255, 255, 255, .08); }
.neige-segments button[aria-pressed="true"] { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .18); }
.neige-panneau button:focus-visible { outline: 0; box-shadow: inset 0 0 12px rgb(255 255 255 / 30%); }

/* Entrée et sortie : le fondu glissé des menus de la barre. */
.neige-panneau { opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.neige-panneau.neige-ouvert { opacity: 1; transform: none; visibility: visible; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .neige-panneau, .neige-panneau.neige-ouvert { transform: none; } .neige-icone, .neige-pastille { transition: none; } }
.neige-panneau { margin-block: 8px; }

/* Application sur l’écran d’accueil : la barre d’état et la Dynamic Island couvrent le haut de l’écran,
   la guirlande s’accroche juste en dessous. Dans le navigateur, rien ne change. */
@media (display-mode: standalone) { .neige-fil { top: calc(env(safe-area-inset-top, 0px) + 2px); } }
