/* =====================================================================
   Habillage de Noël — APPARENCE SEULE, aucun script ; pour le retirer :
   enlever les liens vers noel.css dans base.html et _nova.html
   (et, si souhaité, le bloc « bonnet » du logo dans _nova.html et le
   favicon de Noël). Aucune fonctionnalité, aucun template, aucun autre
   CSS n'est modifié : tout est décor (pseudo-éléments en
   pointer-events:none, fonds, bordures, ombres, couleurs).
   Images : static/img/noel/*.svg
   ===================================================================== */
/* ===== Noël — variables communes ===== */
:root {
  --noel-rouge: #e11d2e; --noel-rouge-fonce: #b91c1c;
  --noel-vert: #16a34a; --noel-sapin: #14532d;
  --noel-or: #fbbf24; --noel-or-clair: #fde68a; --noel-neige: #f8fafc;
}

/* ===== Noël — socle : palette des dégradés du site + bonnet du logo ===== */
/* Palette or / rouge velours / vert sapin (panel) */
:root, [data-bs-theme="dark"] {
  --nu-coral: #f0453f; --nu-coral-rgb: 240, 69, 63;
  --nu-pink: #e11d48; --nu-pink-rgb: 225, 29, 72; --nu-pink-tx: #fda4af;
  --nu-grad: linear-gradient(120deg, #fff3d1, #fbbf24 45%, #ef4444);
  --nu-grad-brand: linear-gradient(135deg, #fcd34d, #ef4444 50%, #b91c1c);
  --nu-grad-line: linear-gradient(90deg, #22c55e, #fbbf24, #ef4444);
}
[data-bs-theme="light"] {
  --nu-coral: #c8102e; --nu-coral-rgb: 200, 16, 46;
  --nu-pink: #b0122f; --nu-pink-rgb: 176, 18, 47; --nu-pink-tx: #b0122f;
  --nu-grad: linear-gradient(120deg, #b86a00, #c8102e);
  --nu-grad-brand: linear-gradient(135deg, #d97706, #c8102e 50%, #991b1b);
  --nu-grad-line: linear-gradient(90deg, #15803d, #d97706, #c8102e);
}
/* Pages publiques */
:root {
  --nv-grad: linear-gradient(135deg, #ef4444 0%, #b91c1c 45%, #f59e0b 100%);
  --nv-grad-hot: linear-gradient(135deg, #fbbf24 0%, #ef4444 55%, #b91c1c 100%);
  --nv-grad-text: linear-gradient(90deg, #fde68a, #fbbf24 30%, #f87171 65%, #fde68a);
}
.nv-aurora span:nth-child(1) { background: radial-gradient(circle, #b91c1c 0%, transparent 62%); }
.nv-aurora span:nth-child(2) { background: radial-gradient(circle, #166534 0%, transparent 62%); }
.nv-aurora span:nth-child(3) { background: radial-gradient(circle, #b45309 0%, transparent 62%); }
/* Bonnet sur le logo : le laisser dépasser */
svg.nv-logo { overflow: visible; }
.cf-logo, .nv-brand, .nv-side-brand, .nv-ll-logo { overflow: visible; }

/* ===== Noël — Chrome du panel : menu latéral, barre du haut, fond général ===== */
/* APPARENCE SEULE : décors en ::before/::after libres, fonds, bordures, ombres.
   Aucun élément existant n'est déplacé, masqué ni redimensionné.
   Pseudo-éléments utilisés ici (tous libres dans nuit.css / nova-app.css) :
   html::before, body.nv-app::before/::after, .sidebar::before/::after,
   .nv-side-brand::after, .topbar::before/::after, #nva-bell::before, .nv-banner::after. */

/* ------------------------------------------------------------------
   1. GUIRLANDE LUMINEUSE (toutes les pages) — fil courbé + ampoules
   Image à 2 états empilés (ampoules paires / impaires allumées),
   on alterne par background-position : rien d'autre ne bouge.
   ------------------------------------------------------------------ */
html::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 30px;
  z-index: 1040; pointer-events: none; opacity: 1; filter: none;
  background: url('../img/noel/chrome-guirlande.svg') repeat-x 0 0 / 240px 60px;
  animation: noel-chrome-guirlande 2.8s steps(2) infinite;
}
@keyframes noel-chrome-guirlande { to { background-position: 0 -60px; } }

/* ------------------------------------------------------------------
   2. CHUTE DE NEIGE (toutes les pages) — vrais flocons, 3 profondeurs
   ------------------------------------------------------------------ */
body.nv-app::after {
  content: ""; position: fixed; left: 0; right: 0; top: -1200px; bottom: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    url('../img/noel/chrome-flocons-a.svg'),
    url('../img/noel/chrome-flocons-b.svg'),
    url('../img/noel/chrome-flocons-c.svg');
  background-repeat: repeat;
  background-position: 0 0, 140px 60px, 30px 110px;
  background-size: 600px 600px, 400px 400px, 300px 300px;
  will-change: transform; animation: noel-chrome-neige 90s linear infinite;
}
/* DERRIÈRE le contenu (comme les collines) et animée en transform : aucun flocon
   ne passe sur un texte, un champ ou une modale, et rien n'est repeint. */
@keyframes noel-chrome-neige { to { transform: translate3d(0, 1200px, 0); } }
/* Thème clair : flocons bleu givre (le blanc serait invisible) */
[data-bs-theme="light"] body.nv-app::after {
  opacity: .45;
  background-image: url('../img/noel/chrome-flocons-clair.svg'), url('../img/noel/chrome-flocons-clair.svg');
}

/* ------------------------------------------------------------------
   3. FOND GÉNÉRAL DU PANEL — nuit de Noël : lueurs velours / sapin / or
   ------------------------------------------------------------------ */
html:not([data-bs-theme="light"]) body.nv-app {
  background-image:
    radial-gradient(ellipse 55% 42% at 92% -6%, rgba(185, 28, 28, .34), transparent 66%),
    radial-gradient(ellipse 52% 44% at -6% 106%, rgba(20, 83, 45, .46), transparent 66%),
    radial-gradient(ellipse 42% 30% at 46% -4%, rgba(251, 191, 36, .09), transparent 70%),
    radial-gradient(ellipse 60% 50% at 62% 58%, rgba(44, 62, 170, .20), transparent 70%);
}
/* Collines enneigées et sapins, tout en bas, DERRIÈRE le contenu */
body.nv-app::before {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 110px; z-index: -1; pointer-events: none;
  background: url('../img/noel/chrome-colline.svg') repeat-x center bottom / 640px 110px;
  opacity: .7;
}
[data-bs-theme="light"] body.nv-app::before { opacity: .85; }

/* Barre de défilement dorée */
html[data-bs-theme="dark"] { scrollbar-color: rgba(251, 191, 36, .45) #03050c; }
.nv-app ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(251, 191, 36, .65), rgba(225, 29, 46, .55));
  background-clip: padding-box;
}
.nv-app ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(253, 230, 138, .9), rgba(225, 29, 46, .8));
  background-clip: padding-box;
}

/* ------------------------------------------------------------------
   4. MENU LATÉRAL
   ------------------------------------------------------------------ */
.nv-app .sidebar {
  background-image:
    radial-gradient(ellipse 130% 24% at 50% 0, rgba(185, 28, 28, .34), transparent 72%),
    radial-gradient(ellipse 130% 30% at 50% 100%, rgba(20, 83, 45, .55), transparent 74%),
    var(--nva-side);
  border-color: rgba(251, 191, 36, .24);
}
/* Calotte de neige posée sur le haut du menu */
.nv-app .sidebar::before {
  content: ""; position: absolute; top: -8px; left: -4px; right: -4px; height: 34px; pointer-events: none;
  background: url('../img/noel/chrome-neige-menu.svg') no-repeat center top / 100% 100%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
}
/* Pied de menu : sapin, cadeaux et congère, DERRIÈRE les liens */
.nv-app .sidebar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; z-index: -1; pointer-events: none;
  background: url('../img/noel/chrome-pied.svg') no-repeat right bottom / 250px 100px;
  border-radius: 0 0 25px 25px; opacity: .8;
}
/* écran peu haut : les derniers liens descendent jusqu'au décor, on l'estompe */
@media (max-height: 900px) { .nv-app .sidebar::after { opacity: .55; } }
/* Bloc logo : lueur velours + séparateur sucre d'orge + brin de houx */
.nv-side-brand {
  background-image:
    repeating-linear-gradient(-45deg, #e11d2e 0 5px, #f8fafc 5px 10px),
    radial-gradient(130px 70px at 36px 34px, rgba(225, 29, 46, .26), transparent 72%);
  background-repeat: no-repeat;
  background-size: calc(100% - 36px) 3px, 100% 100%;
  background-position: center bottom, 0 0;
}
.nv-side-brand::after {
  content: ""; position: absolute; top: 15px; right: 8px; width: 60px; height: 43px; pointer-events: none;
  background: url('../img/noel/chrome-houx.svg') no-repeat center / contain;
  transform: rotate(14deg); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5));
}
/* Intitulés de section : filet or -> rouge, petit flocon au bout */
.nv-side-label { background: url('../img/noel/chrome-flocon.svg') no-repeat right 1px bottom 4px / 10px 10px; }
.nv-side-label::after { background: linear-gradient(90deg, rgba(251, 191, 36, .42), rgba(225, 29, 46, .22) 60%, transparent); }

/* Liens : survol doré */
.nv-app .sidebar .nav-link:not(.active):hover { background-color: rgba(251, 191, 36, .09); }
.nv-app .sidebar .nav-link:not(.active):not(:has(.badge)):hover {
  background-image: url('../img/noel/chrome-flocon.svg');
  background-repeat: no-repeat; background-position: right 11px center; background-size: 13px 13px;
}
.nv-app .sidebar .nav-link:hover > i { color: var(--noel-or); }
/* Lien actif : or, étoile, repère sucre d'orge */
.nv-app .sidebar .nav-link.active {
  color: #fff4d6;
  background:
    url('../img/noel/chrome-etoile.svg') no-repeat right 11px center / 15px 15px,
    linear-gradient(90deg, rgba(251, 191, 36, .26), rgba(225, 29, 46, .13) 66%, rgba(225, 29, 46, .04));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .32), 0 8px 20px -12px rgba(251, 191, 36, .7);
}
.nv-app .sidebar .nav-link.active:has(.badge) {
  background: linear-gradient(90deg, rgba(251, 191, 36, .26), rgba(225, 29, 46, .13) 66%, rgba(225, 29, 46, .04));
}
.nv-app .sidebar .nav-link.active > i { color: var(--noel-or); text-shadow: 0 0 14px rgba(251, 191, 36, .9); }
.nv-app .sidebar .nav-link.active::before {
  width: 4px;
  background: repeating-linear-gradient(-45deg, #e11d2e 0 4px, #f8fafc 4px 8px);
  box-shadow: 0 0 12px rgba(225, 29, 46, .8);
}

/* ------------------------------------------------------------------
   5. BARRE DU HAUT
   ------------------------------------------------------------------ */
.nv-app .topbar {
  background-image:
    radial-gradient(ellipse 34% 190% at 0 0, rgba(185, 28, 28, .26), transparent 72%),
    radial-gradient(ellipse 30% 190% at 100% 0, rgba(20, 83, 45, .36), transparent 72%);
  border-color: rgba(251, 191, 36, .22);
}
/* Neige posée sur le bord supérieur */
.nv-app .topbar::before {
  content: ""; position: absolute; top: -9px; left: 14px; right: 14px; height: 17px; pointer-events: none;
  background: url('../img/noel/chrome-neige-bord.svg') repeat-x 0 0 / 200px 17px;
  border-radius: 9px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}
/* Liseré lumineux rouge / or / vert sous la barre */
.nv-app .topbar::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #e11d2e 16%, #fbbf24 50%, #16a34a 84%, transparent);
  opacity: .8;
}
/* Titre : simple couleur or (pas de texte « découpé » : émojis et points de suspension intacts) */
html:not([data-bs-theme="light"]) .nv-app .topbar h5 { color: var(--noel-or-clair); text-shadow: 0 1px 12px rgba(251, 191, 36, .35); }
/* Cloche de Noël : dorée, avec son nœud rouge */
#nva-bell > i { color: var(--noel-or); text-shadow: 0 0 10px rgba(251, 191, 36, .6); }
[data-bs-theme="light"] #nva-bell > i { color: #b45309; text-shadow: none; }
#nva-bell::before {
  content: ""; position: absolute; top: 3px; left: 50%; width: 16px; height: 10px; margin-left: -8px; pointer-events: none;
  background: url('../img/noel/chrome-noeud.svg') no-repeat center / contain;
}
/* Avatar : boule de Noël rouge cerclée d'or */
.nv-avatar {
  color: #fff;
  background: radial-gradient(circle at 30% 24%, #f4727c 0, #d51b2b 42%, #8f1220 100%);
  box-shadow: 0 0 0 1.5px rgba(251, 191, 36, .9), 0 8px 18px -8px rgba(225, 29, 46, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html:not([data-bs-theme="light"]) .nv-app .cf-nav-toggle { border-color: rgba(251, 191, 36, .38); color: var(--noel-or-clair); }
html:not([data-bs-theme="light"]) .nv-user { border-color: rgba(251, 191, 36, .22); }

/* Bandeau d'annonce : brin de houx sur le coin */
.nv-banner::after {
  content: ""; position: absolute; top: -13px; left: 8px; width: 36px; height: 26px; pointer-events: none;
  background: url('../img/noel/chrome-houx.svg') no-repeat center / contain;
  transform: rotate(-12deg); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
}
/* deux bandeaux qui se suivent : un seul houx */
.nv-banner + .nv-banner::after { content: none; }

/* ------------------------------------------------------------------
   6. TÉLÉPHONE
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  html::before { height: 22px; background-size: 176px 44px; animation-name: noel-chrome-guirlande-m; }
  body.nv-app::after {
    top: -840px; opacity: .45;
    background-image: url('../img/noel/chrome-flocons-a.svg'), url('../img/noel/chrome-flocons-b.svg');
    background-position: 0 0, 90px 40px;
    background-size: 420px 420px, 280px 280px;
    animation-name: noel-chrome-neige-m; animation-duration: 70s;
  }
  body.nv-app::before { height: 70px; background-size: 407px 70px; opacity: .28; }
  /* menu mobile (overflow auto) : la calotte ne doit rien faire déborder */
  .nv-app .sidebar::before { left: 0; right: 0; top: 0; height: 26px; }
  .nv-side-brand::after { content: none; }
  /* la guirlande suffit en haut : pas de neige sur la barre */
  .nv-app .topbar::before { content: none; }
}
@keyframes noel-chrome-guirlande-m { to { background-position: 0 -44px; } }
@keyframes noel-chrome-neige-m { to { transform: translate3d(0, 840px, 0); } }

@media (prefers-reduced-motion: reduce) {
  html::before, body.nv-app::after { animation: none; }
}
/* Veille du site (html.nu-idle après 40 s d'inactivité) : nos boucles se figent aussi */
html.nu-idle::before,
html.nu-idle body.nv-app::after,
html.nu-idle body.nv-app .progress-bar,
html.nu-idle body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::after,
html.nu-idle body[data-nu-tpl="fiches"] .fx-shell > aside.fx-card::after,
html.nu-idle body[data-nu-tpl="fiches"] .fx-dons.is-live .fx-don-bar i { animation-play-state: paused; }

/* ===== Noël — Composants communs du panel : cartes, boutons, formulaires, tableaux, badges, modales ===== */
/* APPARENCE SEULE. Aucun display/visibility/pointer-events/taille/position modifié sur l'existant.
   Pseudo-éléments utilisés (vérifiés libres dans style/nova/nova-app/nuit) :
   .card/.card-panel/.chart-card ::before (hors pages settings, command_center et hors .cf-agent-card/.kpi-card),
   .modal-content ::after. Tout le reste : background-image, box-shadow, border-color, color. */

/* ---------- 1. Cartes & panneaux : calotte de neige posée sur le bord haut ---------- */
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card-panel:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .chart-card:not(.kpi-card):not(.nu5-lic)::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  left: 16px; right: 16px; top: -8px; height: 21px;
  border-radius: 11px 11px 9px 9px;
  background: url('../img/noel/composants-calotte.svg') 0 0 / 150px 100% round no-repeat;
  filter: drop-shadow(0 2px 3px rgba(2, 6, 23, .45));
  opacity: .96;
}

/* Brin de houx au coin droit des cartes et panneaux (au-dessus du bord, hors du contenu) */
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card-panel:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before {
  top: -19px; height: 32px;
  border-radius: 11px 11px 9px 9px;
  background:
    url('../img/noel/composants-houx.svg') right 6px top 0 / 46px 31px no-repeat,
    url('../img/noel/composants-calotte.svg') 0 11px / 150px 21px round no-repeat;
}

/* Cartes qui rognent leur contenu (overflow hidden) : la neige se pose à l'intérieur du bord, sans houx */
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card[style*="overflow:hidden"]:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card[style*="overflow: hidden"]:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card.overflow-hidden:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card-panel[style*="overflow:hidden"]:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card-panel[style*="overflow: hidden"]:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card-panel.overflow-hidden:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .chart-card[style*="overflow:hidden"]:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .chart-card[style*="overflow: hidden"]:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .chart-card.overflow-hidden:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before {
  left: 0; right: 0; top: -5px; height: 19px; border-radius: 0;
  background: url('../img/noel/composants-calotte.svg') 0 0 / 150px 100% round no-repeat;
}

/* En-tête de carte : filet doré + flocon discret à droite */
html body.nv-app:not([data-nu-tpl="notifications"]) .card-header {
  background-image:
    url('../img/noel/composants-flocon.svg'),
    linear-gradient(90deg, rgba(225, 29, 46, .12), rgba(251, 191, 36, .06) 45%, transparent 80%) !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center, 0 0 !important;
  background-size: 22px 22px, 100% 100% !important;
  border-bottom-color: rgba(251, 191, 36, .28) !important;
}
/* Pastille d'icône des titres de panneaux : boule dorée cerclée de rouge velours */
html body.nv-app .cf-panel-icon {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .55), inset 0 -8px 12px -8px rgba(225, 29, 46, .55),
              0 0 0 3px rgba(185, 28, 28, .22), 0 10px 24px -10px rgba(251, 191, 36, .6);
}

/* ---------- 2. Boutons ---------- */
/* Principal : or chaud givré, liseré rouge velours */
html body.nv-app .btn-primary,
html body.nv-app .nav-pills .nav-link.active,
html body.nv-app .pagination .page-item.active .page-link {
  color: #2a1503;
  background:
    url('../img/noel/composants-calotte.svg') 0 -1px / 64px 7px repeat-x,
    linear-gradient(180deg, #fff1b8 0%, #fbbf24 46%, #f59e0b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(185, 28, 28, .78),
              0 0 0 1px #b91c1c, 0 12px 26px -12px rgba(251, 191, 36, .85), 0 4px 14px -6px rgba(225, 29, 46, .55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
html body.nv-app .btn-primary:hover,
html body.nv-app .btn-primary:focus {
  color: #2a1503;
  background:
    url('../img/noel/composants-calotte.svg') 0 -1px / 64px 7px repeat-x,
    linear-gradient(180deg, #fff6cf 0%, #fcd34d 46%, #f59e0b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(185, 28, 28, .85),
              0 0 0 1px #b91c1c, 0 0 0 4px rgba(251, 191, 36, .2), 0 16px 32px -12px rgba(251, 191, 36, 1);
}
/* Succès : vert sapin, liseré or (reste clairement « vert = valider ») */
html body.nv-app .btn-success {
  color: #f8fafc;
  background: linear-gradient(180deg, #1c9a4b 0%, #15803d 45%, #14532d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(251, 191, 36, .7),
              0 0 0 1px rgba(251, 191, 36, .55), 0 12px 26px -12px rgba(22, 163, 74, .9);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
html body.nv-app .btn-success:hover,
html body.nv-app .btn-success:focus {
  color: #fff;
  background: linear-gradient(180deg, #1fa652 0%, #15803d 45%, #14532d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(251, 191, 36, .85),
              0 0 0 1px rgba(251, 191, 36, .8), 0 16px 30px -12px rgba(22, 163, 74, 1);
}
/* Contours dorés : léger voile d'or + reflet givré (le survol d'origine reprend la main) */
html body.nv-app .btn-outline-primary,
html body.nv-app .btn-outline-warning {
  color: var(--noel-or-clair);
  border-color: rgba(251, 191, 36, .62);
  background-image: linear-gradient(180deg, rgba(253, 230, 138, .13), rgba(251, 191, 36, .03) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 18px -12px rgba(251, 191, 36, .8);
}
html body.nv-app .btn-outline-success {
  border-color: rgba(34, 197, 94, .55);
  background-image: linear-gradient(180deg, rgba(34, 197, 94, .12), rgba(20, 83, 45, .06) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
html body.nv-app .btn-secondary,
html body.nv-app .btn-outline-secondary {
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, .14);
}

/* ---------- 3. Formulaires : focus doré ---------- */
html body.nv-app .form-control:focus,
html body.nv-app .form-select:focus {
  border-color: var(--noel-or);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .22), 0 0 26px -8px rgba(251, 191, 36, .75), inset 0 1px 0 rgba(253, 230, 138, .12);
}
html body.nv-app .form-check-input:focus {
  border-color: var(--noel-or);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .24);
}
html body.nv-app .form-check-input:checked {
  box-shadow: 0 0 0 1px rgba(185, 28, 28, .7), 0 0 14px -2px rgba(251, 191, 36, .9);
}
html body.nv-app .input-group-text { border-color: rgba(251, 191, 36, .26); }

/* ---------- 4. Tableaux : en-tête doré souligné d'un sucre d'orge, survol chaleureux ---------- */
html body.nv-app .table > thead > tr > th {
  color: rgba(253, 230, 138, .88);
  background-image: repeating-linear-gradient(135deg, var(--noel-rouge) 0 6px, var(--noel-neige) 6px 12px);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px;
}
html body.nv-app .table { --bs-table-hover-bg: rgba(251, 191, 36, .075); }
html body.nv-app .table-hover > tbody > tr:hover > td:first-child,
html body.nv-app .table-hover > tbody > tr:hover > th:first-child {
  background-image: linear-gradient(180deg, var(--noel-or), var(--noel-rouge));
  background-repeat: no-repeat; background-position: 0 0; background-size: 3px 100%;
}

/* ---------- 5. Badges & pastilles : reflet givré (les couleurs de statut ne changent pas) ---------- */
html body.nv-app .badge,
html body.nv-app .cf-status-pill {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, .16), rgba(248, 250, 252, 0) 58%);
}
html body.nv-app .badge.bg-warning,
html body.nv-app .badge.text-bg-warning,
html body.nv-app .badge.text-bg-primary {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .6), 0 0 12px -4px rgba(251, 191, 36, .7);
}

/* ---------- 6. Barres de progression : sucre d'orge ---------- */
html body.nv-app .progress {
  background-color: rgba(248, 250, 252, .1);
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, .14), inset 0 1px 2px rgba(0, 0, 0, .5);
}
html body.nv-app .progress-bar:not(.progress-bar-striped) {
  background: linear-gradient(135deg, #e11d2e 25%, #f8fafc 25% 50%, #e11d2e 50% 75%, #f8fafc 75%) 0 0 / 16px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 12px rgba(225, 29, 46, .55);
  animation: noel-sucre-dorge 1.6s linear infinite;
}
html body.nv-app .progress-bar.bg-success:not(.progress-bar-striped) {
  background: linear-gradient(135deg, #16a34a 25%, #f8fafc 25% 50%, #16a34a 50% 75%, #f8fafc 75%) 0 0 / 16px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 12px rgba(22, 163, 74, .6);
}
html body.nv-app .progress-bar.bg-warning:not(.progress-bar-striped) {
  background: linear-gradient(135deg, #fbbf24 25%, #fff7d6 25% 50%, #fbbf24 50% 75%, #fff7d6 75%) 0 0 / 16px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 12px rgba(251, 191, 36, .6);
}
/* « danger » reste plein (non rayé) pour ne pas être confondu avec la barre festive */
html body.nv-app .progress-bar.bg-danger:not(.progress-bar-striped) {
  background: linear-gradient(90deg, #ff7d98, #e0245e) !important;
  box-shadow: 0 0 12px rgba(224, 36, 94, .6);
}
@keyframes noel-sucre-dorge { from { background-position: 0 0; } to { background-position: 16px 0; } }

/* ---------- 7. Modales : calotte de neige + houx, en-tête velours et guirlande ---------- */
html body.nv-app .modal-content::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  left: 20px; right: 20px; top: -22px; height: 36px;
  background:
    url('../img/noel/composants-houx.svg') 50% 0 / 54px 36px no-repeat,
    url('../img/noel/composants-calotte.svg') 0 13px / 150px 21px round no-repeat;
  filter: drop-shadow(0 2px 3px rgba(2, 6, 23, .5));
}
/* Mobile : la modale colle au haut de l'écran, on rentre le décor pour qu'il ne soit pas coupé */
@media (max-width: 575.98px) {
  html body.nv-app .modal-content::after {
    left: 0; right: 0; top: 0; height: 19px; filter: none;
    background: url('../img/noel/composants-calotte.svg') 0 0 / 130px 19px round no-repeat;
  }
}
html body.nv-app .modal-content { border-color: rgba(251, 191, 36, .34); }
html body.nv-app .modal-header {
  background-image:
    url('../img/noel/composants-guirlande.svg'),
    radial-gradient(120% 140% at 0% 0%, rgba(185, 28, 28, .34), rgba(185, 28, 28, .08) 45%, transparent 70%),
    linear-gradient(90deg, transparent 55%, rgba(20, 83, 45, .3));
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-position: 0 100%, 0 0, 0 0;
  background-size: 108px 12px, 100% 100%, 100% 100%;
  border-bottom-color: rgba(251, 191, 36, .3);
}
html body.nv-app .modal-title { text-shadow: 0 1px 12px rgba(251, 191, 36, .35); }
html body.nv-app .modal-footer {
  border-top-color: rgba(251, 191, 36, .22);
  background-image: linear-gradient(0deg, rgba(20, 83, 45, .16), transparent 80%);
}

/* ---------- 8. Alertes / toasts : flocon en filigrane, couleurs de statut intactes ---------- */
html body.nv-app .alert {
  background-image:
    url('../img/noel/composants-flocon-doux.svg'),
    linear-gradient(180deg, rgba(248, 250, 252, .07), rgba(248, 250, 252, 0) 45%);
  background-repeat: no-repeat;
  background-position: right 10px top -9px, 0 0;
  background-size: 46px 46px, 100% 100%;
}
html body.nv-app .toast {
  background-image: url('../img/noel/composants-etoile.svg');
  background-repeat: no-repeat; background-position: right 36px top 3px; background-size: 18px 18px;
}

/* ---------- 9. Onglets, pagination, menus, infobulles, séparateurs ---------- */
html body.nv-app .nav-tabs { border-bottom-color: rgba(251, 191, 36, .26); }
html body.nv-app .nav-tabs .nav-link.active {
  color: var(--noel-or-clair);
  background-image: linear-gradient(0deg, rgba(251, 191, 36, .14), transparent 70%);
  box-shadow: inset 0 -3px 0 var(--noel-or), 0 12px 20px -16px rgba(251, 191, 36, .9);
}
html body.nv-app .pagination .page-link:hover { border-color: var(--noel-or); color: var(--noel-or-clair); }
html body.nv-app .dropdown-menu {
  border-color: rgba(251, 191, 36, .3);
  background-image: linear-gradient(180deg, rgba(185, 28, 28, .14), transparent 44px);
}
html body.nv-app .dropdown-header { color: var(--noel-or-clair); }
html body.nv-app .dropdown-divider,
html body.nv-app hr {
  border-image: linear-gradient(90deg, transparent, var(--noel-or) 22%, var(--noel-rouge) 50%, var(--noel-or) 78%, transparent) 1;
  opacity: .6;
}
html body.nv-app .tooltip .tooltip-inner {
  color: var(--noel-neige);
  background: linear-gradient(180deg, #2a0d14, #0a0e22 70%);
  border-color: rgba(251, 191, 36, .55);
  box-shadow: 0 20px 40px -20px #000, 0 0 18px -8px rgba(251, 191, 36, .7);
}
html body.nv-app .popover { border-color: rgba(251, 191, 36, .35); }

/* ---------- 10. Thème clair : mêmes décors, teintes adaptées pour rester lisibles ---------- */
html[data-bs-theme="light"] body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html[data-bs-theme="light"] body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .card-panel:not(.cf-agent-card):not(.kpi-card):not(.nu5-lic)::before,
html[data-bs-theme="light"] body.nv-app:not([data-nu-tpl="settings"]):not([data-nu-tpl="command_center"]) .chart-card:not(.kpi-card):not(.nu5-lic)::before,
html[data-bs-theme="light"] body.nv-app .modal-content::after {
  filter: drop-shadow(0 1px 0 rgba(100, 130, 190, .55)) drop-shadow(0 3px 4px rgba(30, 50, 110, .3));
}
html[data-bs-theme="light"] body.nv-app:not([data-nu-tpl="notifications"]) .card-header {
  background-image:
    url('../img/noel/composants-flocon-clair.svg'),
    linear-gradient(90deg, rgba(225, 29, 46, .07), rgba(251, 191, 36, .06) 45%, transparent 80%) !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center, 0 0 !important;
  background-size: 22px 22px, 100% 100% !important;
  border-bottom-color: rgba(180, 83, 9, .3) !important;
}
html[data-bs-theme="light"] body.nv-app .alert {
  background-image: url('../img/noel/composants-flocon-clair.svg'), linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%);
}
html[data-bs-theme="light"] body.nv-app .btn-outline-primary,
html[data-bs-theme="light"] body.nv-app .btn-outline-warning {
  color: #8a4b00; border-color: rgba(180, 83, 9, .6);
  background-image: linear-gradient(180deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .06) 60%);
  box-shadow: 0 6px 16px -12px rgba(180, 83, 9, .7);
}
html[data-bs-theme="light"] body.nv-app .btn-outline-success {
  background-image: linear-gradient(180deg, rgba(22, 163, 74, .1), rgba(22, 163, 74, .03) 60%);
}
html[data-bs-theme="light"] body.nv-app .table > thead > tr > th { color: #8a4b00; }
html[data-bs-theme="light"] body.nv-app .table { --bs-table-hover-bg: rgba(251, 191, 36, .13); }
html[data-bs-theme="light"] body.nv-app .badge,
html[data-bs-theme="light"] body.nv-app .cf-status-pill {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 58%);
}
html[data-bs-theme="light"] body.nv-app .progress { background-color: rgba(20, 26, 60, .08); box-shadow: inset 0 0 0 1px rgba(20, 26, 60, .12); }
html[data-bs-theme="light"] body.nv-app .modal-content { border-color: rgba(180, 83, 9, .35); }
html[data-bs-theme="light"] body.nv-app .modal-header {
  background-image:
    url('../img/noel/composants-guirlande.svg'),
    radial-gradient(120% 140% at 0% 0%, rgba(225, 29, 46, .12), transparent 60%),
    linear-gradient(90deg, transparent 55%, rgba(22, 163, 74, .1));
  border-bottom-color: rgba(180, 83, 9, .28);
}
html[data-bs-theme="light"] body.nv-app .modal-title { text-shadow: none; }
html[data-bs-theme="light"] body.nv-app .modal-footer { background-image: linear-gradient(0deg, rgba(22, 163, 74, .07), transparent 80%); }
html[data-bs-theme="light"] body.nv-app .nav-tabs .nav-link.active { color: #8a4b00; box-shadow: inset 0 -3px 0 #d97706; }
html[data-bs-theme="light"] body.nv-app .pagination .page-link:hover,
html[data-bs-theme="light"] body.nv-app .dropdown-header { color: #8a4b00; }
html[data-bs-theme="light"] body.nv-app .dropdown-menu { background-image: linear-gradient(180deg, rgba(225, 29, 46, .06), transparent 44px); border-color: rgba(180, 83, 9, .3); }
html[data-bs-theme="light"] body.nv-app .form-control:focus,
html[data-bs-theme="light"] body.nv-app .form-select:focus {
  border-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .22), 0 0 22px -8px rgba(217, 119, 6, .6);
}
html[data-bs-theme="light"] body.nv-app .cf-panel-icon {
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .45), 0 0 0 3px rgba(185, 28, 28, .12), 0 10px 24px -12px rgba(180, 83, 9, .5);
}

/* ---------- 11. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html body.nv-app .progress-bar:not(.progress-bar-striped) { animation: none; }
}

/* ===== Noël — Tableau de bord + écran de bienvenue ===== */
/* APPARENCE SEULE : pseudo-éléments libres, fonds, bordures, couleurs. Aucun
   élément existant n'est déplacé, masqué ni redimensionné. Tous les décors
   sont en pointer-events:none. Images : static/img/noel/dashboard-*.svg */

/* ------------------------------------------------------------------ */
/* 1. BLOC D'ACCUEIL « Bonjour … »                                     */
/* ------------------------------------------------------------------ */
html:not([data-bs-theme="light"]) body[data-nu-tpl="dashboard"] .nv-hello {
  border-color: rgba(251, 191, 36, .32);
  background:
    radial-gradient(420px 260px at 100% 100%, rgba(22, 163, 74, .20), transparent 65%),
    radial-gradient(520px 300px at 62% 108%, rgba(185, 28, 28, .30), transparent 62%),
    radial-gradient(700px 420px at 100% 0%, rgba(44, 62, 170, .34), transparent 62%),
    radial-gradient(360px 220px at 88% 0%, rgba(251, 191, 36, .14), transparent 65%),
    var(--nu-slab-solid);
  box-shadow: var(--nu-shadow), 0 0 0 1px rgba(251, 191, 36, .06), 0 30px 70px -40px rgba(225, 29, 46, .55);
}
/* neige posée + boules suspendues + sapin et cadeaux (::after était libre ; ::before est pris par le site) */
body[data-nu-tpl="dashboard"] .nv-hello::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    url('../img/noel/dashboard-neige.svg') 0 0 / 200px 24px repeat-x,
    url('../img/noel/dashboard-boules.svg') right 10px top 6px / 146px 120px no-repeat,
    url('../img/noel/dashboard-sapin-cadeaux.svg') right 22px bottom 0 / 220px 170px no-repeat;
}
@media (min-width: 1400px) {
  /* les drapeaux occupent le coin bas-droit : le sapin se décale à leur gauche */
  body[data-nu-tpl="dashboard"] .nv-hello::after {
    background-position: 0 0, right 10px top 6px, right 470px bottom 0;
  }
}
@media (max-width: 767px) {
  /* téléphone : neige + petites boules seulement, rien derrière les boutons */
  body[data-nu-tpl="dashboard"] .nv-hello::after {
    background:
      url('../img/noel/dashboard-neige.svg') 0 0 / 150px 18px repeat-x,
      url('../img/noel/dashboard-boules.svg') right 10px top 4px / 92px 76px no-repeat,
      url('../img/noel/dashboard-sapin-cadeaux.svg') right 6px bottom 0 / 88px 68px no-repeat;
  }
}
/* pastilles pays : liseré doré (la pastille active garde son halo d'origine) */
html:not([data-bs-theme="light"]) body[data-nu-tpl="dashboard"] .nu-db-flags span:not(.is-on) {
  border-color: rgba(253, 230, 138, .26);
}

/* ------------------------------------------------------------------ */
/* 2. TUILES DE STATISTIQUES                                           */
/* (::before et ::after de .kpi-card sont pris : on passe par les      */
/*  pseudo-éléments des libellés, positionnés par rapport à la tuile)  */
/* ------------------------------------------------------------------ */
html:not([data-bs-theme="light"]) body[data-nu-tpl="dashboard"] .kpi-card {
  border-color: rgba(253, 230, 138, .20);
}
body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 15px; pointer-events: none;
  background: url('../img/noel/dashboard-neige.svg') -30px 0 / 125px 15px repeat-x;
}
body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::after {
  content: ""; position: absolute; top: 0; right: 16px; width: 32px; height: 64px; pointer-events: none;
  background: url('../img/noel/dashboard-boule-rouge.svg') center top / contain no-repeat;
  transform-origin: 50% 0; animation: noel-db-balance 5s ease-in-out infinite alternate;
}
body[data-nu-tpl="dashboard"] .row > [class*="col"]:nth-child(5n+1) .kpi-card .kpi-label::after { background-image: url('../img/noel/dashboard-boule-or.svg'); }
body[data-nu-tpl="dashboard"] .row > [class*="col"]:nth-child(5n+2) .kpi-card .kpi-label::after { background-image: url('../img/noel/dashboard-boule-verte.svg'); animation-delay: -1.2s; }
body[data-nu-tpl="dashboard"] .row > [class*="col"]:nth-child(5n+3) .kpi-card .kpi-label::after { background-image: url('../img/noel/dashboard-flocon.svg'); animation-delay: -2.4s; }
body[data-nu-tpl="dashboard"] .row > [class*="col"]:nth-child(5n+4) .kpi-card .kpi-label::after { background-image: url('../img/noel/dashboard-boule-rouge.svg'); animation-delay: -3.1s; }
body[data-nu-tpl="dashboard"] .row > [class*="col"]:nth-child(5n+5) .kpi-card .kpi-label::after { background-image: url('../img/noel/dashboard-etoile.svg'); animation-delay: -4s; }
@keyframes noel-db-balance { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (max-width: 767px) {
  body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::after { right: 10px; width: 26px; height: 52px; }
  body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::before { height: 12px; background-size: 100px 12px; }
}

/* 3. PANNEAUX : neige, houx et en-tête de tableau sont fournis par la section « composants ». */

/* thème clair : pas de sapin (il tomberait à cheval sur le disque du globe) */
[data-bs-theme="light"] body[data-nu-tpl="dashboard"] .nv-hello::after {
  background:
    url('../img/noel/dashboard-neige.svg') 0 0 / 200px 24px repeat-x,
    url('../img/noel/dashboard-boules.svg') right 10px top 6px / 146px 120px no-repeat;
}
/* thème clair : la neige blanche reçoit une ombre bleutée pour rester visible */
[data-bs-theme="light"] body[data-nu-tpl="dashboard"] .nv-hello::after,
[data-bs-theme="light"] body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::before {
  filter: drop-shadow(0 1px 1.5px rgba(30, 58, 138, .35));
}

/* ------------------------------------------------------------------ */
/* 4. ÉCRAN DE BIENVENUE — carte de Noël                               */
/* (durée, fondu de sortie et retrait inchangés : on n'écrit jamais    */
/*  la propriété animation de l'écran, du titre ni du sous-titre)      */
/* ------------------------------------------------------------------ */
.nv-app #cf-welcome-overlay {
  background:
    radial-gradient(ellipse 46% 34% at 50% 42%, rgba(251, 191, 36, .20), transparent 70%),
    radial-gradient(ellipse 60% 55% at 0% 100%, rgba(185, 28, 28, .55), transparent 70%),
    radial-gradient(ellipse 60% 55% at 100% 100%, rgba(20, 83, 45, .65), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(225, 29, 46, .22), transparent 70%),
    radial-gradient(ellipse at 50% 40%, #17225e 0%, #080d26 55%, #03050c 100%);
}
/* flocons qui tombent (deux plans) */
#cf-welcome-overlay::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url('../img/noel/dashboard-flocons.svg') 0 0 / 390px 390px,
    url('../img/noel/dashboard-flocons-fins.svg') 40px 0 / 300px 300px;
  opacity: .55;
  /* le centre (logo, titre, sous-titre) reste dégagé */
  -webkit-mask-image: radial-gradient(ellipse 36% 32% at 50% 50%, transparent 55%, #000 100%);
  mask-image: radial-gradient(ellipse 36% 32% at 50% 50%, transparent 55%, #000 100%);
  animation: noel-db-chute 12s linear infinite;
}
@keyframes noel-db-chute {
  from { background-position: 0 0, 40px 0; }
  to { background-position: 0 780px, 40px 300px; }
}
/* guirlande de sapin en haut, colline enneigée + sapins + cadeaux en bas */
#cf-welcome-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url('../img/noel/dashboard-guirlande.svg') center 8px / 200px 72px repeat-x,
    url('../img/noel/dashboard-scene.svg') center bottom / 800px 220px repeat-x;
}
/* scintilles dorées (deux plans en opposition) */
#cf-welcome-overlay > .text-center::before,
#cf-welcome-overlay > .text-center::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('../img/noel/dashboard-scintilles.svg') 30px 50px / 420px 420px;
  animation: noel-db-scintille 1.3s ease-in-out infinite alternate;
}
#cf-welcome-overlay > .text-center::after {
  background-position: 190px 210px; background-size: 360px 360px; animation-delay: -1.3s;
}
@keyframes noel-db-scintille { from { opacity: .12; } to { opacity: .95; } }
/* halo d'étoile derrière le logo */
#cf-welcome-overlay .nv-welcome-logo::before {
  content: ""; position: absolute; inset: -95px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(253, 230, 138, .30) 0 5deg, transparent 5deg 22.5deg);
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 100%);
  mask: radial-gradient(closest-side, #000 22%, transparent 100%);
  animation: noel-db-rayons 16s linear infinite;
}
#cf-welcome-overlay .nv-welcome-logo::after {
  content: ""; position: absolute; inset: -46px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251, 191, 36, .42), rgba(225, 29, 46, .16) 55%, transparent 100%);
}
@keyframes noel-db-rayons { to { transform: rotate(360deg); } }
#cf-welcome-overlay .nv-welcome-logo .nv-logo { filter: drop-shadow(0 18px 36px rgba(251, 191, 36, .55)); }
#cf-welcome-overlay .nv-welcome-logo span { border-color: rgba(251, 191, 36, .8); }
#cf-welcome-overlay .nv-welcome-logo span:nth-child(2) { border-color: rgba(225, 29, 46, .7); }
#cf-welcome-overlay .nv-welcome-logo span:nth-child(3) { border-color: rgba(34, 197, 94, .6); }
/* « Bienvenue » doré */
.nv-app #cf-welcome-overlay .cf-welcome-title {
  background: linear-gradient(100deg, #fde68a 0%, #fbbf24 30%, #fff8dc 52%, #fbbf24 72%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(251, 191, 36, .45));
}
.nv-app #cf-welcome-overlay .cf-welcome-sub { color: #f1e3b8; text-shadow: 0 1px 6px #03050c, 0 0 12px #03050c; }
/* houx + filets dorés sous le sous-titre (hors flux : ne décale rien) */
#cf-welcome-overlay .cf-welcome-sub::after {
  content: ""; display: block; position: absolute; left: 50%; width: 240px; height: 40px; margin: 12px 0 0 -120px; pointer-events: none;
  background:
    url('../img/noel/dashboard-houx.svg') center / 58px 40px no-repeat,
    linear-gradient(90deg, transparent, rgba(251, 191, 36, .9)) left center / 84px 1px no-repeat,
    linear-gradient(270deg, transparent, rgba(251, 191, 36, .9)) right center / 84px 1px no-repeat;
}
@media (max-width: 575px) {
  #cf-welcome-overlay::after {
    background-size: 150px 54px, 640px 176px;
  }
  #cf-welcome-overlay::before {
    background-size: 300px 300px, 220px 220px; animation-name: noel-db-chute-m; opacity: .45;
    -webkit-mask-image: radial-gradient(ellipse 70% 26% at 50% 50%, transparent 60%, #000 100%);
    mask-image: radial-gradient(ellipse 70% 26% at 50% 50%, transparent 60%, #000 100%);
  }
  #cf-welcome-overlay .nv-welcome-logo::before { inset: -75px; }
}
@keyframes noel-db-chute-m {
  from { background-position: 0 0, 40px 0; }
  to { background-position: 0 600px, 40px 220px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-nu-tpl="dashboard"] .kpi-card .kpi-label::after,
  #cf-welcome-overlay::before,
  #cf-welcome-overlay > .text-center::before,
  #cf-welcome-overlay > .text-center::after,
  #cf-welcome-overlay .nv-welcome-logo::before { animation: none; }
}

/* ===== Noël — Pages métier : Fiches, Agents, Clients ===== */
/* Apparence seule : pseudo-éléments décoratifs (pointer-events:none), fonds,
   bordures. Aucun élément existant n'est masqué, déplacé ni redimensionné.
   Les seuls « position:relative » posés (sans décalage) servent d'ancre aux
   calottes de neige : .fx-toolbar, .fx-dons, .fx-stat. */

/* ------------------------------------------------------------------
   1. Calotte de neige posée sur le haut des blocs
   (border-image : coin gauche / milieu répété / coin droit)
   ------------------------------------------------------------------ */
body[data-nu-tpl="fiches"] .fx-toolbar,
body[data-nu-tpl="fiches"] .fx-dons,
body[data-nu-tpl="fiches"] .fx-stat { position: relative; }

body[data-nu-tpl="fiches"] .fx-card::before,
body[data-nu-tpl="fiches"] .fx-toolbar::before,
body[data-nu-tpl="fiches"] .fx-dons::before,
body[data-nu-tpl="fiches"] .fx-stat::before,
body[data-nu-tpl="agents"] .cf-agent-card::after,
body[data-nu-tpl="clients"] .nu5-hero::after {
  content: ""; position: absolute; box-sizing: content-box;
  top: -9px; left: 3px; right: 3px; bottom: auto; width: auto; height: 0;
  margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
  transform: none; animation: none; opacity: 1; filter: none; z-index: 1;
  -webkit-mask: none; mask: none;
  border-style: solid; border-color: transparent; border-width: 18px 0 0 0;
  border-image: url('../img/noel/fiches-neige.svg') 18 30 0 30 / 18px 30px 0 30px / 0 round;
  pointer-events: none;
}
/* petite calotte sur les 4 compteurs */
body[data-nu-tpl="fiches"] .fx-stat::before {
  top: -6px; left: 2px; right: 2px; border-width: 12px 0 0 0;
  border-image-width: 12px 20px 0 20px;
}

/* ------------------------------------------------------------------
   2. FICHES
   ------------------------------------------------------------------ */
/* titre : brin de houx */
body[data-nu-tpl="fiches"] .fx-head h1::after {
  content: ""; position: absolute; width: 1.25em; height: .95em;
  margin: .12em 0 0 .28em; pointer-events: none;
  background: url('../img/noel/fiches-houx.svg') center / contain no-repeat;
}
/* compteurs : liseré or + chiffres or chaud sur le premier */
body[data-nu-tpl="fiches"] .fx-stat { border-color: rgba(251, 191, 36, .3); }
body[data-nu-tpl="fiches"] .fx-stat:first-child { border-color: rgba(251, 191, 36, .6); }

/* en-têtes de blocs : velours rouge + flocons en filigrane + filet or */
body[data-nu-tpl="fiches"] .fx-card-head {
  background:
    linear-gradient(90deg, rgba(251, 191, 36, .55), rgba(251, 191, 36, 0) 85%) left bottom / 100% 1px no-repeat,
    url('../img/noel/fiches-flocons-motif.svg') right 6px center / auto 44px no-repeat,
    linear-gradient(90deg, rgba(225, 29, 46, .2), rgba(185, 28, 28, .06) 55%, rgba(185, 28, 28, 0) 80%);
  border-bottom-color: rgba(251, 191, 36, .16);
}
body[data-nu-tpl="fiches"] .fx-card > .fx-card-head:first-child { border-radius: 17px 17px 0 0; }
body[data-nu-tpl="fiches"] .fx-label > i { color: var(--noel-or); }

/* bordure or fine sur les blocs */
body[data-nu-tpl="fiches"] .fx-card { border-color: rgba(251, 191, 36, .2) !important; }

/* ornements de coin (un par bloc, dans une zone vide) */
body[data-nu-tpl="fiches"] .fx-shell > aside.fx-card::after,
body[data-nu-tpl="fiches"] .fx-cols > aside.fx-card:first-child::after,
body[data-nu-tpl="fiches"] .fx-cols > section > .fx-card::after,
body[data-nu-tpl="fiches"] .fx-side-right > .fx-card:has(.fx-card-head .bi-funnel)::after,
body[data-nu-tpl="fiches"] .fx-side-right > .fx-card:has(#fx-export)::after,
body[data-nu-tpl="fiches"] .fx-toolbar::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  background: center / contain no-repeat;
}
/* rail des pays : boule suspendue */
body[data-nu-tpl="fiches"] .fx-shell > aside.fx-card::after {
  top: 3px; right: 20px; width: 19px; height: 30px;
  background-image: url('../img/noel/fiches-boule.svg');
  transform-origin: 50% 0; animation: noel-fiches-balance 5.5s ease-in-out infinite;
}
/* banques : houx sur le coin */
body[data-nu-tpl="fiches"] .fx-cols > aside.fx-card:first-child::after {
  top: -15px; right: 10px; width: 46px; height: 36px;
  background-image: url('../img/noel/fiches-houx.svg'); transform: rotate(10deg);
}
/* sélection active : étoile dorée */
body[data-nu-tpl="fiches"] .fx-cols > section > .fx-card::after {
  top: -15px; right: 14px; width: 26px; height: 26px;
  background-image: url('../img/noel/fiches-etoile.svg'); transform: rotate(12deg);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, .55));
}
/* filtres : flocon or */
body[data-nu-tpl="fiches"] .fx-side-right > .fx-card:has(.fx-card-head .bi-funnel)::after {
  top: 8px; right: 14px; width: 22px; height: 22px;
  background-image: url('../img/noel/fiches-flocon-or.svg');
}
/* export / télécharger : un cadeau posé sur le bloc */
body[data-nu-tpl="fiches"] .fx-side-right > .fx-card:has(#fx-export)::after {
  top: -17px; right: 16px; width: 36px; height: 36px;
  background-image: url('../img/noel/fiches-cadeau.svg'); transform: rotate(-6deg);
}

/* barre « sélection active » : or + lueur velours, houx au coin */
body[data-nu-tpl="fiches"] .fx-toolbar {
  border-color: rgba(251, 191, 36, .5);
  background:
    radial-gradient(460px 150px at 100% 0%, rgba(225, 29, 46, .2), transparent 72%),
    radial-gradient(300px 120px at 62% 120%, rgba(22, 163, 74, .12), transparent 70%),
    linear-gradient(90deg, rgba(var(--nu-amber-rgb), .12), transparent 46%),
    var(--nu-slab), var(--nu-slab-solid);
}
body[data-nu-tpl="fiches"] .fx-toolbar::after {
  top: -17px; right: 12px; width: 50px; height: 39px;
  background-image: url('../img/noel/fiches-houx.svg'); transform: rotate(-8deg);
}

/* dons : la jauge devient un sucre d'orge */
body[data-nu-tpl="fiches"] .fx-dons { border-color: rgba(251, 191, 36, .24); }
body[data-nu-tpl="fiches"] .fx-don-bar { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .25); }
body[data-nu-tpl="fiches"] .fx-don-bar i,
body[data-nu-tpl="fiches"] .fx-dons.is-live .fx-don-bar i {
  background: linear-gradient(135deg, #e11d2e 25%, #f8fafc 25% 50%, #e11d2e 50% 75%, #f8fafc 75%) 0 0 / 16px 16px repeat;
}
body[data-nu-tpl="fiches"] .fx-dons.is-live .fx-don-bar i {
  animation: noel-fiches-sucre 1.1s linear infinite;
}

/* listes : survol et ligne active réchauffés */
body[data-nu-tpl="fiches"] .fx-item.is-active {
  background: linear-gradient(90deg, rgba(251, 191, 36, .2), rgba(225, 29, 46, .1));
}
body[data-nu-tpl="fiches"] .fx-row:hover { box-shadow: inset 3px 0 0 var(--noel-or); }
body[data-nu-tpl="fiches"] .fx-row-main > .bi-telephone,
body[data-nu-tpl="fiches"] .fx-row-main > i:first-child { color: var(--noel-or); }

/* ------------------------------------------------------------------
   3. AGENTS
   ------------------------------------------------------------------ */
body[data-nu-tpl="agents"] .cf-agent-card::after { left: 4px; right: 4px; }
/* flocons en filigrane dans le coin vide de la carte */
body[data-nu-tpl="agents"].nv-app .cf-agent-card {
  background-image:
    url('../img/noel/fiches-flocons-motif.svg'),
    radial-gradient(420px circle at var(--mx, -400px) var(--my, -400px), var(--nu-glare), transparent 55%),
    var(--nu-slab) !important;
  background-position: right 8px top 14px, 0 0, 0 0;
  background-size: 150px auto, auto, auto;
  background-repeat: no-repeat;
}
/* liseré or seulement au repos : la bordure verte « en ligne » et celle du survol restent celles du site */
body[data-nu-tpl="agents"].nv-app .cf-agent-card:not(.is-live):not(:hover) { border-color: rgba(251, 191, 36, .22) !important; }
/* chaque agent porte son bonnet */
body[data-nu-tpl="agents"] .cf-agent-card-top::before {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  left: 8px; top: 2px; width: 40px; height: 33px;
  background: url('../img/noel/fiches-bonnet.svg') center / contain no-repeat;
  transform: rotate(-20deg); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
}
body[data-nu-tpl="agents"] .cf-agent-actions { border-top-color: rgba(251, 191, 36, .4); }
body[data-nu-tpl="agents"] .col-lg-8 > .d-flex > h6::after {
  content: ""; position: absolute; width: 24px; height: 18px;
  margin: 3px 0 0 4px; pointer-events: none;
  background: url('../img/noel/fiches-houx.svg') center / contain no-repeat;
}

/* ------------------------------------------------------------------
   4. CLIENTS
   ------------------------------------------------------------------ */
/* bandeau : neige + branche de sapin et ses boules */
body[data-nu-tpl="clients"] .nu5-hero { border-color: rgba(251, 191, 36, .3); }
body[data-nu-tpl="clients"] .nu5-hero h4::after {
  content: ""; position: absolute; width: 36px; height: 28px;
  margin: -2px 0 0 10px; pointer-events: none;
  background: url('../img/noel/fiches-houx.svg') center / contain no-repeat;
}

/* ------------------------------------------------------------------
   5. Mouvement (transform / background-position uniquement)
   ------------------------------------------------------------------ */
@keyframes noel-fiches-balance {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}
@keyframes noel-fiches-sucre {
  to { background-position: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-nu-tpl="fiches"] .fx-shell > aside.fx-card::after,
  body[data-nu-tpl="fiches"] .fx-dons.is-live .fx-don-bar i { animation: none; }
}

/* ------------------------------------------------------------------
   6. Thème clair : décors adoucis, lisibilité intacte
   ------------------------------------------------------------------ */
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-card-head {
  background:
    linear-gradient(90deg, rgba(180, 83, 9, .5), rgba(180, 83, 9, 0) 85%) left bottom / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(225, 29, 46, .09), rgba(225, 29, 46, 0) 70%);
}
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-card { border-color: rgba(180, 83, 9, .25) !important; }
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-toolbar {
  background:
    radial-gradient(460px 150px at 100% 0%, rgba(225, 29, 46, .08), transparent 72%),
    linear-gradient(90deg, rgba(var(--nu-amber-rgb), .12), transparent 46%),
    var(--nu-slab), var(--nu-slab-solid);
}
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-label > i,
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-row-main > i:first-child { color: #b45309; }
[data-bs-theme="light"] body[data-nu-tpl="agents"].nv-app .cf-agent-card {
  background-image:
    radial-gradient(420px circle at var(--mx, -400px) var(--my, -400px), var(--nu-glare), transparent 55%),
    var(--nu-slab) !important;
  background-position: 0 0; background-size: auto; background-repeat: repeat;
}
[data-bs-theme="light"] body[data-nu-tpl="agents"].nv-app .cf-agent-card:not(.is-live):not(:hover) { border-color: rgba(180, 83, 9, .25) !important; }
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-card::before,
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-toolbar::before,
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-dons::before,
[data-bs-theme="light"] body[data-nu-tpl="fiches"] .fx-stat::before,
[data-bs-theme="light"] body[data-nu-tpl="agents"] .cf-agent-card::after,
[data-bs-theme="light"] body[data-nu-tpl="clients"] .nu5-hero::after {
  filter: drop-shadow(0 1px 1.5px rgba(30, 64, 120, .35));
}

/* ===== Noël — Pages publiques : accueil (vitrine), connexion, inscription, tarifs ===== */
/* APPARENCE SEULE : aucun script, aucune taille/position d'élément existant modifiée.
   Portée : body.nv-body:not(.nv-app) = pages publiques uniquement (jamais le panel).
   Les décors sont des ::before/::after libres ou des background-image, tous pointer-events:none. */

/* ---------- 1. Nuit de Noël : lueurs + vrais flocons qui tombent ---------- */
body.nv-body:not(.nv-app) {
  background-image:
    radial-gradient(900px 520px at 50% -120px, rgba(225, 29, 46, .22), transparent 70%),
    radial-gradient(700px 520px at 0% 520px, rgba(20, 83, 45, .34), transparent 70%),
    radial-gradient(760px 560px at 100% 380px, rgba(251, 191, 36, .13), transparent 70%);
  background-repeat: no-repeat;
}
body.nv-body:not(.nv-app)::before {
  content: ""; position: fixed; left: 0; right: 0; top: -1200px; bottom: 0; z-index: -1; pointer-events: none;
  background:
    url('../img/noel/public-flocons.svg') 0 0 / 600px 600px,
    url('../img/noel/public-flocons.svg') 170px 90px / 400px 400px;
  opacity: .5; will-change: transform; animation: noel-pub-neige 110s linear infinite;
}
@keyframes noel-pub-neige { to { transform: translate3d(0, 1200px, 0); } }

/* ---------- 2. Titres en dégradé or ---------- */
body.nv-body:not(.nv-app) .nv-grad-text {
  background-image: linear-gradient(100deg, #fde68a, #fbbf24 30%, #f59e0b 55%, #fff3c4 78%, #fbbf24);
}
body.nv-body:not(.nv-app) .nv-eyebrow { color: var(--noel-or-clair); }
body.nv-body:not(.nv-app) .nv-eyebrow::before {
  height: 4px; margin-block: -1.5px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, var(--noel-rouge) 0 4px, var(--noel-neige) 4px 8px);
}

/* ---------- 3. Boutons : or chaud à liseré rouge velours (même code que le panel) ---------- */
body.nv-body:not(.nv-app) .nv-btn--primary:not(.is-disabled):not([disabled]),
body.nv-body:not(.nv-app) .nv-btn--primary:not(.is-disabled):not([disabled]):hover {
  background: linear-gradient(180deg, #fff1b8 0%, #fbbf24 46%, #f59e0b 100%);
  border-color: #b91c1c; color: #2a1503 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(185, 28, 28, .78),
    0 14px 36px -14px rgba(251, 191, 36, .9), 0 4px 0 -1px #7f1d1d;
}
body.nv-body:not(.nv-app) .nv-btn--primary:not(.is-disabled):not([disabled]):hover {
  background: linear-gradient(180deg, #fff6cf 0%, #fcd34d 46%, #f59e0b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(185, 28, 28, .85),
    0 20px 46px -14px rgba(251, 191, 36, 1), 0 0 0 4px rgba(251, 191, 36, .2), 0 5px 0 -1px #7f1d1d;
}
body.nv-body:not(.nv-app) .nv-btn--primary:not(.is-disabled):not([disabled]) i { color: #7c2d12; }
body.nv-body:not(.nv-app) .nv-btn--ghost { border-color: rgba(251, 191, 36, .32); }
body.nv-body:not(.nv-app) .nv-btn--ghost:hover { border-color: rgba(251, 191, 36, .7); }

/* ---------- 4. Calotte de neige sur les cartes ---------- */
body.nv-body:not(.nv-app) .nv-card::after,
body.nv-body:not(.nv-app) .nv-stat::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -8px; height: 24px; z-index: 2; pointer-events: none;
  background: url('../img/noel/public-neige-cap.svg') center / 100% 100% no-repeat;
}
body.nv-body:not(.nv-app) .nv-stat::before { height: 20px; top: -7px; }
body.nv-body:not(.nv-app) .nv-country::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -7px; height: 20px; z-index: 2; pointer-events: none;
  background: url('../img/noel/public-neige-cap.svg') center / 100% 100% no-repeat;
}
body.nv-body:not(.nv-app) .nv-crypto {
  background: url('../img/noel/public-neige-cap.svg') center top -7px / calc(100% - 18px) 20px no-repeat, var(--nv-surface);
}

/* Cartes de licences : neige qui déborde + ruban cadeau sur la licence disponible */
body.nv-body:not(.nv-app) .nv-plan:not(.nv-plan--featured)::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: -11px; height: 28px; z-index: 3; pointer-events: none;
  background: url('../img/noel/public-neige-cap.svg') center / 100% 100% no-repeat;
}
/* licence disponible : calotte complète + houx posé sur le coin */
body.nv-body:not(.nv-app) .nv-plan:not(.nv-plan--featured):not(.nv-plan--soldout)::after {
  left: 14px; right: -10px; top: -30px; height: 64px;
  background:
    url('../img/noel/public-houx.svg') right 0 top 0 / 72px 60px no-repeat,
    url('../img/noel/public-neige-cap.svg') left 0 top 19px / calc(100% - 24px) 28px no-repeat;
}
body.nv-body:not(.nv-app) .nv-plan--featured::after {
  background: linear-gradient(140deg, #fde68a, #e11d2e 40%, #16a34a 72%, #fbbf24);
}
body.nv-body:not(.nv-app) .nv-plan-badge {
  background: linear-gradient(180deg, #dc2626, #991b1b); color: #fff8e7;
  box-shadow: 0 0 0 1px var(--noel-or), 0 10px 24px -8px rgba(225, 29, 46, 1);
}

/* ---------- 5. Vitrine : neige au sol, sapin et cadeaux en bas du héros ---------- */
body.nv-body:not(.nv-app) .nv-hero::after {
  content: ""; position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: 18px; height: 64px;
  z-index: -1; pointer-events: none;
  background: url('../img/noel/public-neige-sol.svg') center bottom / 100% 100% no-repeat;
}
body.nv-body:not(.nv-app) .nv-hero::before {
  content: ""; position: absolute; right: 1.5%; bottom: 30px; width: 290px; height: 190px;
  z-index: -1; pointer-events: none;
  background:
    url('../img/noel/public-sapin.svg') right bottom / auto 100% no-repeat,
    url('../img/noel/public-cadeaux.svg') left 8px bottom 2px / auto 50% no-repeat;
}

/* Séparateur étoilé entre les sections */
body.nv-body:not(.nv-app) .nv-section + .nv-section::before,
body.nv-body:not(.nv-app) .nv-stats + .nv-section::before {
  content: ""; position: absolute; top: -24px; left: 50%; width: min(360px, 76%); height: 28px;
  transform: translateX(-50%); pointer-events: none;
  background: url('../img/noel/public-separateur.svg') center / contain no-repeat;
}
body.nv-body:not(.nv-app) .nv-stats + .nv-section::before { top: 26px; }

/* Étapes : fil de progression en sucre d'orge */
body.nv-body:not(.nv-app) .nv-steps::after {
  height: 4px; margin-top: -1px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, var(--noel-rouge) 0 6px, var(--noel-neige) 6px 12px);
  box-shadow: 0 0 14px rgba(225, 29, 46, .7);
}

/* Bloc contact : calotte de neige + houx */
body.nv-body:not(.nv-app) .nv-contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url('../img/noel/public-houx.svg') left 8px top 14px / 74px auto no-repeat,
    url('../img/noel/public-neige-cap.svg') center top -9px / calc(100% - 30px) 28px no-repeat;
}
body.nv-body:not(.nv-app) .nv-contact { border-color: rgba(251, 191, 36, .32); }

/* Pied de page : petit village de sapins et cadeaux sur un tapis de neige */
body.nv-body:not(.nv-app) .nv-footer {
  border-top-color: rgba(251, 191, 36, .25);
  background:
    url('../img/noel/public-sapin.svg') right 3% bottom 6px / auto 50px no-repeat,
    url('../img/noel/public-sapin.svg') right calc(3% + 34px) bottom 5px / auto 32px no-repeat,
    url('../img/noel/public-cadeaux.svg') left 3% bottom 6px / auto 40px no-repeat,
    url('../img/noel/public-neige-sol.svg') center bottom / 100% 38px no-repeat,
    linear-gradient(180deg, transparent, rgba(3, 5, 12, .7));
}

/* ---------- 6. Tarifs : boules suspendues autour du titre ---------- */
body.nv-body:not(.nv-app) .nv-page-hero {
  background:
    url('../img/noel/public-boules.svg') left 3% top 0 / 92px auto no-repeat,
    url('../img/noel/public-boules.svg') right 3% top 0 / 78px auto no-repeat;
}
body.nv-body:not(.nv-app) .nv-flagrow a { border-color: rgba(251, 191, 36, .28); }

/* ---------- 7. Connexion / inscription ---------- */
body.nv-body:not(.nv-app) .nv-auth-card { border-color: rgba(251, 191, 36, .34); }
body.nv-body:not(.nv-app) .nv-auth-card::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: -12px; height: 30px; z-index: 2; pointer-events: none;
  background: url('../img/noel/public-neige-cap.svg') center / 100% 100% no-repeat;
}
body.nv-body:not(.nv-app) .nv-auth-card::after {
  content: ""; position: absolute; right: -16px; top: -34px; width: 96px; height: 80px; z-index: 3; pointer-events: none;
  background: url('../img/noel/public-houx.svg') center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
}
body.nv-body:not(.nv-app) .nv-auth-art::before {
  content: ""; position: absolute; right: 34px; top: 0; width: 110px; height: 170px; z-index: -1; pointer-events: none;
  background: url('../img/noel/public-boules.svg') center top / contain no-repeat;
}
/* Scène de Noël au pied de la page (sapins, cadeaux, congère), DERRIÈRE tout le contenu.
   Bureau : collée au bas de la fenêtre (toujours visible, même si la page défile) ;
   la neige s'efface à gauche pour ne jamais passer derrière les puces de texte. */
body.nv-body:not(.nv-app) .nv-auth-main::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 250px; z-index: -1; pointer-events: none;
  background:
    url('../img/noel/public-sapin.svg') left 40% bottom 14px / auto 220px no-repeat,
    url('../img/noel/public-sapin.svg') left 33% bottom 10px / auto 118px no-repeat,
    url('../img/noel/public-cadeaux.svg') left 27% bottom 8px / auto 78px no-repeat,
    url('../img/noel/public-sapin.svg') left 55% bottom 10px / auto 96px no-repeat,
    url('../img/noel/public-sapin.svg') right 8px bottom 10px / auto 112px no-repeat,
    url('../img/noel/public-neige-sol.svg') center bottom / 100% 74px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 250px, #000 400px);
  mask-image: linear-gradient(90deg, transparent 250px, #000 400px);
}
/* Téléphone / tablette : le panneau illustré disparaît, la scène se pose au bas de la page */
@media (max-width: 960px) {
  body.nv-body:not(.nv-app) .nv-auth-main::after {
    position: absolute; height: 140px;
    background:
      url('../img/noel/public-sapin.svg') right 14px bottom 8px / auto 112px no-repeat,
      url('../img/noel/public-cadeaux.svg') right 92px bottom 6px / auto 46px no-repeat,
      url('../img/noel/public-sapin.svg') left 12px bottom 6px / auto 66px no-repeat,
      url('../img/noel/public-neige-sol.svg') center bottom / 100% 52px no-repeat;
    -webkit-mask-image: none; mask-image: none;
  }
  /* boules suspendues à la guirlande, à gauche (le bouton de langue est à droite) */
  body.nv-body:not(.nv-app) .nv-auth-main::before {
    content: ""; position: absolute; left: 14px; top: 0; width: 84px; height: 130px; z-index: -1; pointer-events: none;
    background: url('../img/noel/public-boules.svg') center top / contain no-repeat;
  }
  /* inscription : la carte monte jusqu'en haut, le houx suffit */
  body.nv-body:not(.nv-app)[data-nu-tpl="register"] .nv-auth-main::before { content: none; }
}

/* Inscription / paiement (carte large) : la carte monte près du bouton de langue (en haut à droite) -> houx à gauche */
body.nv-body:not(.nv-app) .nv-auth-card--wide::after {
  right: auto; left: -24px; top: -42px; width: 80px; height: 66px; transform: scaleX(-1);
}

/* Écran de chargement de la connexion */
body.nv-body:not(.nv-app) .nv-login-loader {
  background:
    url('../img/noel/public-flocons.svg') 0 0 / 420px 420px,
    radial-gradient(ellipse at 50% 40%, #4a0f18 0%, #0b0d22 52%, #03050c 82%);
}
body.nv-body:not(.nv-app) .nv-login-loader .nv-ll-logo i { border-color: rgba(251, 191, 36, .75); }
body.nv-body:not(.nv-app) .nv-login-loader .nv-ll-logo i:nth-child(2) { border-color: rgba(225, 29, 46, .7); }
body.nv-body:not(.nv-app) .nv-login-loader .nv-ll-logo i:nth-child(3) { border-color: rgba(22, 163, 74, .7); }
body.nv-body:not(.nv-app) .nv-ll-bar span {
  background: repeating-linear-gradient(-45deg, var(--noel-rouge) 0 8px, var(--noel-neige) 8px 16px);
  background-size: 22.63px 100%;
  box-shadow: 0 0 16px rgba(225, 29, 46, .8);
  animation: noel-pub-canne 1s linear infinite;
}
@keyframes noel-pub-canne { to { background-position: 22.63px 0; } }

/* ---------- 8. Mobile ---------- */
@media (max-width: 980px) {
  body.nv-body:not(.nv-app) .nv-hero::after { height: 32px; bottom: -4px; }
  body.nv-body:not(.nv-app) .nv-hero::before { width: 84px; height: 52px; right: 4px; bottom: 0; }
}
@media (max-width: 700px) {
  body.nv-body:not(.nv-app)::before { background-size: 420px 420px, 280px 280px; top: -840px; animation-name: noel-pub-neige-m; animation-duration: 84s; }
  body.nv-body:not(.nv-app) .nv-page-hero {
    background:
      url('../img/noel/public-boules.svg') left 2px top 0 / 44px auto no-repeat,
      url('../img/noel/public-boules.svg') right 2px top 0 / 38px auto no-repeat;
  }
  body.nv-body:not(.nv-app) .nv-auth-card::after { right: -8px; top: -30px; width: 78px; height: 66px; }
  body.nv-body:not(.nv-app) .nv-auth-card--wide::after { left: -12px; right: auto; top: -32px; width: 60px; height: 50px; }
  body.nv-body:not(.nv-app) .nv-contact::after {
    background:
      url('../img/noel/public-houx.svg') left 4px top 10px / 54px auto no-repeat,
      url('../img/noel/public-neige-cap.svg') center top -9px / calc(100% - 24px) 26px no-repeat;
  }
}
@keyframes noel-pub-neige-m { to { transform: translate3d(0, 840px, 0); } }

/* ---------- 9. Thème clair : décors neutralisés / adaptés ---------- */
[data-bs-theme="light"] body.nv-body:not(.nv-app) { background-image: none; }
[data-bs-theme="light"] body.nv-body:not(.nv-app)::before { opacity: 0; animation: none; }
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-grad-text {
  background-image: linear-gradient(100deg, #92400e, #b45309 40%, #b91c1c 90%); filter: none;
}
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-eyebrow { color: #92400e; }
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-hero::after { opacity: 0; }
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-auth-main::after {
  background:
    url('../img/noel/public-sapin.svg') right 14px bottom 8px / auto 112px no-repeat,
    url('../img/noel/public-cadeaux.svg') right 92px bottom 6px / auto 46px no-repeat;
  -webkit-mask-image: none; mask-image: none;
}
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-crypto { background: var(--nv-surface); }
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-country::before,
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-card::after,
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-stat::before,
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-plan:not(.nv-plan--featured)::after,
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-auth-card::before {
  filter: drop-shadow(0 2px 2px rgba(30, 58, 110, .28));
}
[data-bs-theme="light"] body.nv-body:not(.nv-app) .nv-footer {
  background:
    url('../img/noel/public-sapin.svg') right 3% bottom 5px / auto 46px no-repeat,
    url('../img/noel/public-cadeaux.svg') left 3% bottom 5px / auto 34px no-repeat;
}

/* ---------- 10. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  body.nv-body:not(.nv-app)::before,
  body.nv-body:not(.nv-app) .nv-ll-bar span { animation: none; }
}

/* ===== Noël — fin ===== */

/* ===== Noël — message de remerciement + bouton musique (06/12) ===== */
#noel-merci {
  border-color: rgba(251, 191, 36, .55) !important;
  background: linear-gradient(100deg, rgba(185, 28, 28, .30), rgba(20, 83, 45, .28) 60%, rgba(251, 191, 36, .14)) !important;
}
#noel-merci > .bi-gift-fill { color: var(--noel-or); }
#noel-merci strong { color: var(--noel-or-clair); }
[data-bs-theme="light"] #noel-merci { background: linear-gradient(100deg, #fde8e8, #e7f6ec 60%, #fff6d8) !important; }
[data-bs-theme="light"] #noel-merci strong { color: #b0122f; }
#noel-musique {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 1035;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font-size: 1.15rem; color: var(--noel-or-clair);
  background: linear-gradient(135deg, #7f1d1d, #14532d); border: 1.5px solid rgba(251, 191, 36, .7);
  box-shadow: 0 10px 26px -10px #000, 0 0 0 0 rgba(251, 191, 36, .5);
}
#noel-musique[hidden] { display: none; }
#noel-musique.is-on { animation: noel-musique-pouls 2.4s ease-out infinite; }
#noel-musique:not(.is-on) { opacity: .75; }
@keyframes noel-musique-pouls {
  0% { box-shadow: 0 10px 26px -10px #000, 0 0 0 0 rgba(251, 191, 36, .5); }
  100% { box-shadow: 0 10px 26px -10px #000, 0 0 0 14px rgba(251, 191, 36, 0); }
}
@media (prefers-reduced-motion: reduce) { #noel-musique.is-on { animation: none; } }
