/* ==========================================================================
   MoJo Care — CHRISTMAS EDITION 2026 (édition de Noël)
   Accueil public (frontend), connexion (auth/login) et écran d'ouverture (auth/splash).

   Tout est rangé sous .noel (classe posée sur <body> par la vue quand edition_noel() est actif) :
   sans elle, cette feuille n'a aucun effet. Interrupteur : $config['edition_noel'] (config/config.php).

   Direction artistique : une nuit d'hiver tirée de l'indigo de la marque, la lumière chaude du champagne,
   le vert profond du sapin, un rouge velours réservé aux nœuds et aux boules, la neige. Le dégradé
   indigo → violet reste la couleur des actions ; l'or accompagne. Les zones de saisie restent claires,
   nettes, contrastées. Verre « liquide » : transparence, flou d'arrière-plan, reflet en haut, liseré.

   Plan : 1. jetons · 2. atmosphère (ciel, lune, lueurs, paysage, neige) · 3. sapin · 4. guirlandes ·
          5. Père Noël · 6. petits éléments · 7. connexion · 8. splash · 9. accueil · 10. adaptations
   ========================================================================== */

/* ---------- 1. Jetons ---------- */
.noel {
  --nx-nuit: #0b0e2c;
  --nx-nuit-2: #121844;
  --nx-or: #e8c675;
  --nx-or-clair: #f7e7bd;
  --nx-or-fonce: #9a6f26;
  --nx-sapin: #134a35;
  --nx-sapin-clair: #2f8a5e;
  --nx-rouge: #b4233c;
  --nx-neige: #f8faff;
  --nx-texte-nuit: #f1f2ff;
  --nx-texte-nuit-2: rgba(228, 231, 255, .82);
  --nx-filet: rgba(247, 231, 189, .55);
  --nx-grad-or: linear-gradient(135deg, #fbefc9 0%, #ecca78 42%, #c4943f 100%);
  --nx-grad-ciel: radial-gradient(130% 95% at 50% -10%, #353c92 0%, #1c215c 36%, #10143b 66%, #090b25 100%);
  --nx-verre: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05));
  --nx-verre-bord: rgba(255, 255, 255, .26);
  --nx-script: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
.noel .nx-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---------- 2. Atmosphère : ciel, étoiles, lune, lueurs, paysage, neige ---------- */
.noel .nx-ciel {
  inset: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(70% 38% at 50% 104%, rgba(255, 196, 120, .16), transparent 72%), var(--nx-grad-ciel);
}
.noel .nx-ciel--fixe { position: fixed; z-index: 0; }
.noel .nx-ciel--section { position: absolute; z-index: 0; border-radius: inherit; }
.noel .nx-etoiles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 7% 12%, #fff, transparent 70%),
    radial-gradient(1px 1px at 19% 38%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(1.6px 1.6px at 33% 8%, #fff7dc, transparent 70%),
    radial-gradient(1px 1px at 46% 27%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(1.2px 1.2px at 58% 14%, #fff, transparent 70%),
    radial-gradient(1px 1px at 71% 41%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(1.5px 1.5px at 84% 9%, #fff3cf, transparent 70%),
    radial-gradient(1px 1px at 93% 33%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(1px 1px at 26% 62%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(1.2px 1.2px at 64% 70%, rgba(255, 255, 255, .55), transparent 70%);
  background-size: 560px 380px;
  opacity: .7;
  animation: nx-ciel-scintille 7s ease-in-out infinite;
}
.noel .nx-etoiles--2 { background-size: 730px 470px; background-position: 140px 90px; opacity: .45; animation-delay: -3.5s; }
@keyframes nx-ciel-scintille { 0%, 100% { opacity: .75; } 50% { opacity: .35; } }

.noel .nx-lueur { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.noel .nx-l1 { width: 46vmax; height: 46vmax; top: -20vmax; left: -14vmax; background: radial-gradient(circle, rgba(102, 126, 234, .75), transparent 66%); animation: nx-derive 22s ease-in-out infinite; }
.noel .nx-l2 { width: 40vmax; height: 40vmax; bottom: -22vmax; right: -14vmax; background: radial-gradient(circle, rgba(118, 75, 162, .7), transparent 66%); animation: nx-derive 27s ease-in-out -9s infinite reverse; }
.noel .nx-l3 { width: 34vmax; height: 34vmax; top: 34%; left: 30%; opacity: .32; background: radial-gradient(circle, rgba(255, 220, 160, .45) 0%, rgba(240, 200, 120, .12) 40%, transparent 68%); animation: nx-derive 19s ease-in-out -4s infinite; }
@keyframes nx-derive { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3vmax, 2vmax) scale(1.08); } }

/* lune : le traîneau passe devant */
.noel .nx-lune-pos { position: absolute; top: 12%; right: 23%; z-index: 1; }
.noel.nx-accueil .hero .nx-lune-pos { top: 25%; right: max(7vw, calc(50% - 640px)); }
.noel .nx-lune {
  position: relative; display: block; width: clamp(50px, 6vw, 88px); height: clamp(50px, 6vw, 88px); border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffef8 0%, #f8efd6 50%, #e2cf9f 100%);
  box-shadow: 0 0 38px 8px rgba(255, 236, 190, .26), 0 0 130px 46px rgba(255, 226, 170, .1), inset -8px -10px 18px rgba(150, 120, 60, .22);
}
.noel .nx-lune::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 63% 38%, rgba(175, 145, 85, .22) 0 9%, transparent 10%),
    radial-gradient(circle at 40% 67%, rgba(175, 145, 85, .17) 0 7%, transparent 8%),
    radial-gradient(circle at 71% 70%, rgba(175, 145, 85, .14) 0 5%, transparent 6%),
    radial-gradient(circle at 30% 42%, rgba(175, 145, 85, .1) 0 4%, transparent 5%);
}
.noel .nx-lune::after {
  content: ''; position: absolute; inset: -70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 240, 205, .16) 0%, rgba(255, 240, 205, .05) 42%, transparent 70%);
  animation: nx-lune 9s ease-in-out infinite;
}
@keyframes nx-lune { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* lumières chaudes floues au loin (dégradés, aucun filtre) */
.noel .nx-bokehs { position: absolute; inset: 0; z-index: 1; }
.noel .nx-bokeh {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  opacity: .45; animation: nx-bokeh 15s ease-in-out var(--d, 0s) infinite alternate;
}
.noel .nx-bokeh--or { background: radial-gradient(circle, rgba(255, 214, 140, .5) 0%, rgba(255, 200, 120, .15) 38%, transparent 70%); }
.noel .nx-bokeh--rose { background: radial-gradient(circle, rgba(255, 140, 160, .36) 0%, rgba(255, 120, 140, .1) 40%, transparent 70%); }
.noel .nx-bokeh--vert { background: radial-gradient(circle, rgba(140, 230, 185, .28) 0%, rgba(120, 210, 170, .08) 40%, transparent 70%); }
@keyframes nx-bokeh { from { transform: translate(0, 0) scale(1); opacity: .3; } to { transform: translate(18px, -14px) scale(1.12); opacity: .62; } }

/* paysage : montagnes, forêt, collines enneigées */
.noel .nx-paysage-pos { position: absolute; left: -24px; right: -24px; bottom: 0; height: clamp(150px, 28vh, 280px); z-index: 2; }
.noel .nx-paysage { display: block; width: 100%; height: 100%; }
.noel .nx-fenetres circle { fill: #ffd690; animation: nx-fenetre 5s ease-in-out var(--d, 0s) infinite alternate; }
@keyframes nx-fenetre { from { opacity: .45; } to { opacity: 1; } }

/* ChristmasSnow */
.noel .nx-neige { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 4; pointer-events: none; }
.noel .nx-neige-page { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ---------- 3. ChristmasTree ---------- */
.noel .nx-pos { position: absolute; z-index: 3; pointer-events: none; }
.noel .nx-sapin { display: block; height: 100%; width: auto; overflow: visible; }
.noel .nx-g1 { animation: nx-scint 2.3s ease-in-out -.4s infinite alternate; }
.noel .nx-g2 { animation: nx-scint 3.1s ease-in-out -1.3s infinite alternate; }
.noel .nx-g3 { animation: nx-scint 3.7s ease-in-out -2.2s infinite alternate; }
.noel .nx-g4 { animation: nx-scint 2.9s ease-in-out -.8s infinite alternate; }
.noel .nx-g5 { animation: nx-scint 4.3s ease-in-out -3.1s infinite alternate; }
@keyframes nx-scint { 0% { opacity: .34; } 55% { opacity: .88; } 100% { opacity: 1; } }
.noel .nx-etoile-halo { transform-box: fill-box; transform-origin: center; animation: nx-etoile 3.4s ease-in-out infinite alternate; }
@keyframes nx-etoile { from { opacity: .68; transform: scale(.86); } to { opacity: 1; transform: scale(1.14); } }
.noel .nx-etoile-rayons { transform-box: fill-box; transform-origin: center; animation: nx-rayons 28s linear infinite; }
@keyframes nx-rayons { to { transform: rotate(360deg); } }

/* ---------- 4. ChristmasLights : guirlande de sapin ---------- */
.noel .nx-guirlande { position: absolute; left: 0; right: 0; top: 0; z-index: 4; pointer-events: none; aspect-ratio: 1600 / 130; }
.noel .nx-guirlande svg { display: block; width: 100%; height: 100%; overflow: visible; }
.noel .nx-guirlande--haut { position: fixed; z-index: 3; }

/* fil d'ampoules du splash (lié à la progression) */
.noel .nx-progression { position: relative; height: 34px; margin: 0 6px; }
.noel .nx-progression svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.noel .nx-progression path { fill: none; stroke: rgba(154, 111, 38, .5); stroke-width: 1.2; }
.noel .nx-ampoule {
  position: absolute; width: 9px; height: 13px; margin-left: -4.5px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 38% 32%, #fff 0 16%, var(--c) 52%, var(--c2) 100%);
}
.noel .nx-ampoule::before { content: ''; position: absolute; top: -3px; left: 2.5px; width: 4px; height: 4px; border-radius: 1px; background: #7d6030; }
.noel .nx-ampoule::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, transparent 68%);
  animation: nx-brille var(--t, 2.8s) ease-in-out var(--d, 0s) infinite alternate;
}
.noel .nx-a1 { --c: #fff3d4; --c2: #efc27f; --halo: rgba(255, 222, 150, .8); }
.noel .nx-a2 { --c: #f6d37f; --c2: #c38a2c; --halo: rgba(246, 196, 90, .72); }
.noel .nx-a3 { --c: #ffa2b0; --c2: #c2344f; --halo: rgba(255, 112, 138, .6); }
@keyframes nx-brille { from { opacity: .3; transform: scale(.75); } to { opacity: 1; transform: scale(1.12); } }
.noel .nx-progression .nx-ampoule { opacity: .32; filter: saturate(.25) brightness(1.05); transition: opacity .45s ease, filter .45s ease, box-shadow .45s ease; }
.noel .nx-progression .nx-ampoule::after { opacity: 0; animation: none; }
.noel .nx-progression .nx-ampoule.on { opacity: 1; filter: none; box-shadow: 0 0 10px 2px var(--halo); }
.noel .nx-progression .nx-ampoule.on::after { animation: nx-brille var(--t, 2.6s) ease-in-out var(--d, 0s) infinite alternate; }

/* ---------- 5. SantaAnimation ---------- */
.noel .nx-ciel-vol { position: absolute; left: 0; right: 0; top: 0; height: 64%; z-index: 2; overflow: hidden; pointer-events: none; }
.noel .nx-traineau {
  position: absolute; left: 0; top: 0; width: 340px; height: auto; overflow: visible;
  transform-origin: 0 0; transform: translate3d(-200vw, 0, 0); will-change: transform;
  filter: drop-shadow(0 0 9px rgba(255, 228, 175, .28));
}
.noel .nx-traineau.nx-en-vol .nx-renne-corps { transform-box: fill-box; transform-origin: center; animation: nx-galop .62s ease-in-out infinite alternate; }
.noel .nx-traineau.nx-en-vol .nx-renne-2 .nx-renne-corps { animation-delay: -.21s; }
.noel .nx-traineau.nx-en-vol .nx-renne-3 .nx-renne-corps { animation-delay: -.42s; }
@keyframes nx-galop { from { transform: translateY(-2.6px) rotate(-2deg); } to { transform: translateY(2.6px) rotate(2deg); } }
.noel .nx-nez-halo { transform-box: fill-box; transform-origin: center; animation: nx-nez 1.6s ease-in-out infinite alternate; }
@keyframes nx-nez { from { opacity: .5; transform: scale(.8); } to { opacity: 1; transform: scale(1.18); } }
.noel .nx-poussiere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* mouvement réduit : le traîneau reste posé devant la lune */
.noel .nx-traineau.nx-traineau--pose { left: auto; right: max(3vw, calc(50% - 700px)); top: 41%; transform: scale(.5); transform-origin: 100% 0; opacity: .95; }

/* ---------- 6. Petits éléments partagés ---------- */
/* boules de verre suspendues */
.noel .nx-boules { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 3; pointer-events: none; }
.noel .nx-boule { position: absolute; top: 0; width: var(--taille); margin-left: calc(var(--taille) / -2); transform-origin: 50% 0; animation: nx-balance 6.5s ease-in-out var(--d, 0s) infinite; }
.noel .nx-boule::before { content: ''; display: block; width: 1px; height: var(--fil); margin: 0 auto; background: linear-gradient(to bottom, rgba(247, 231, 189, 0), rgba(247, 231, 189, .8)); }
.noel .nx-boule b { position: relative; display: block; width: var(--taille); height: var(--taille); margin-top: 4px; border-radius: 50%; }
.noel .nx-boule b::before { content: ''; position: absolute; top: -5px; left: 50%; width: 30%; height: 7px; transform: translateX(-50%); border-radius: 2px 2px 1px 1px; background: linear-gradient(90deg, #8a6528, #f5e0a3 50%, #8a6528); }
.noel .nx-boule b::after { content: ''; position: absolute; top: 13%; left: 19%; width: 36%; height: 25%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .9), transparent 70%); transform: rotate(-28deg); }
.noel .nx-boule--or b { background: radial-gradient(circle at 34% 30%, #fff5d2 0%, #ecc874 26%, #b7842d 63%, #6a4813 100%); box-shadow: 0 10px 24px rgba(232, 180, 80, .32), inset -4px -6px 12px rgba(80, 50, 10, .35); }
.noel .nx-boule--indigo b { background: radial-gradient(circle at 34% 30%, #e2e6ff 0%, #919cff 24%, #5a4fd0 60%, #221a68 100%); box-shadow: 0 10px 24px rgba(102, 126, 234, .4), inset -4px -6px 12px rgba(20, 10, 70, .45); }
.noel .nx-boule--rubis b { background: radial-gradient(circle at 34% 30%, #ffdde3 0%, #ef7d90 24%, #b5304a 60%, #5a0f22 100%); box-shadow: 0 10px 24px rgba(210, 74, 98, .32), inset -4px -6px 12px rgba(60, 5, 20, .45); }
@keyframes nx-balance { 0%, 100% { transform: rotate(2.4deg); } 50% { transform: rotate(-2.4deg); } }

/* étincelle (accent du logo) */
.noel .nx-etincelle { position: absolute; width: 18px; height: 18px; fill: #fff7de; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 214, 128, .95)); animation: nx-etincelle 3.4s ease-in-out infinite; }
@keyframes nx-etincelle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  45%, 55% { opacity: 1; transform: scale(1) rotate(45deg); }
  80% { opacity: 0; transform: scale(.4) rotate(80deg); }
}

/* neige posée sur le bord d'une carte */
.noel .nx-neige-posee {
  position: absolute; top: -10px; left: 26px; right: 26px; height: 22px; z-index: 6; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23e3e7fb'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0,12 C10,6 22,4 34,7 C48,2 66,2 80,6 C96,1 118,3 130,7 C146,2 170,2 184,6 C200,1 224,2 238,6 C252,2 276,3 290,7 C306,2 330,2 344,6 C360,2 382,3 400,10 L400,13 C394,13 391,15 389,18 C387,15 382,13 374,13 L302,13 C297,13 294,16 293,20 C291,16 287,13 281,13 L172,13 C167,13 164,15 163,17 C162,15 158,13 153,13 L62,13 C57,13 55,16 54,19 C52,16 49,13 45,13 L0,13 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(20, 20, 70, .18));
}

/* pastille saisonnière, police d'accent, devise */
.noel .nx-pastille {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 40px;
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #f6e2a8; background: rgba(232, 198, 117, .1); border: 1px solid rgba(232, 198, 117, .4);
}
.noel .nx-pastille i { color: var(--nx-or); animation: nx-tourne 12s linear infinite; }
@keyframes nx-tourne { to { transform: rotate(360deg); } }
.noel .nx-pastille--claire { color: var(--nx-or-fonce); background: rgba(232, 198, 117, .14); border-color: rgba(176, 130, 50, .35); margin-bottom: 14px; }
.noel .nx-pastille--claire i { color: #b88934; }
.noel .nx-script { font-family: var(--nx-script); font-style: italic; font-weight: 600; letter-spacing: 0; text-transform: none; }
.noel .nx-devise { display: flex; justify-content: center; gap: .5em; margin-top: 6px; font-family: var(--nx-script); font-style: italic; font-weight: 600; font-size: 21px; color: var(--nx-or-fonce); }
.noel .nx-devise span { display: inline-block; }

/* reflet doré qui traverse un bouton au survol */
.noel .nx-reflet { position: relative; overflow: hidden; }
.noel .nx-reflet::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 241, 205, .5), transparent);
  transform: skewX(-20deg); transition: left .75s ease;
}
.noel .nx-reflet:hover::after, .noel .nx-reflet:focus-visible::after { left: 125%; }

/* les décors arrêtent leurs animations hors écran (noel.js) */
.noel .nx-pause, .noel .nx-pause * { animation-play-state: paused !important; }

/* ==========================================================================
   7. CONNEXION : la nuit d'hiver, deux sapins, une carte en verre
   ========================================================================== */
.noel.nx-connexion, .noel.nx-splash { background: var(--nx-nuit); --muted: #5d5a84; }
.noel.nx-connexion .bg, .noel.nx-splash .bg { display: none; }
.noel.nx-connexion .nx-pos--gauche, .noel.nx-splash .nx-pos--gauche { left: max(1vw, calc(50% - 790px)); bottom: 2.5vh; height: min(62vh, 560px); }
.noel.nx-connexion .nx-pos--droite, .noel.nx-splash .nx-pos--droite { right: max(1.5vw, calc(50% - 770px)); bottom: 3.5vh; height: min(40vh, 360px); }

.noel.nx-connexion .login-container { max-width: 980px; }
.noel.nx-connexion .nx-lune-pos { right: auto; left: 7vw; top: 15%; }
.noel .nx-sapin-carte { display: none; }
@media (min-width: 861px) {
  .noel.nx-connexion { padding-top: 112px; }   /* la carte ne recouvre pas la guirlande */
}
.noel.nx-connexion .login-card {
  background: var(--nx-verre);
  border: 1px solid var(--nx-verre-bord);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 44px 120px rgba(2, 3, 22, .62), 0 0 0 1px rgba(247, 231, 189, .14), inset 0 1px 0 rgba(255, 255, 255, .42);
}
/* panneau de marque : verre teinté, de l'indigo au vert sapin */
.noel.nx-connexion .brand-panel { background: linear-gradient(160deg, rgba(102, 118, 234, .86) 0%, rgba(104, 74, 172, .82) 46%, rgba(22, 70, 52, .86) 100%); }
.noel.nx-connexion .brand-panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.2px 1.2px at 14% 70%, #fff, transparent 70%), radial-gradient(1px 1px at 34% 86%, #fff, transparent 70%),
    radial-gradient(1.4px 1.4px at 66% 64%, #fff6d8, transparent 70%), radial-gradient(1px 1px at 82% 80%, #fff, transparent 70%),
    radial-gradient(1px 1px at 48% 52%, #fff, transparent 70%), radial-gradient(1.2px 1.2px at 90% 46%, #fff, transparent 70%);
}
.noel.nx-connexion .brand-panel .nx-pastille { margin-bottom: 18px; }
.noel .nx-signature { position: relative; z-index: 2; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(247, 231, 189, .25); font-size: 13px; color: rgba(255, 255, 255, .82); }
.noel .nx-signature .nx-script { font-size: 22px; color: var(--nx-or-clair); margin-right: 6px; }
/* panneau du formulaire : verre clair, très lisible */
.noel.nx-connexion .form-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .965), rgba(250, 250, 255, .93));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .6);
}
.noel.nx-connexion .logo-wrapper, .noel.nx-splash .logo-disc { position: relative; background: var(--nx-grad-or); box-shadow: 0 14px 34px rgba(190, 140, 55, .38), 0 0 46px rgba(246, 210, 130, .3); }
.noel.nx-connexion .logo-wrapper .nx-etincelle { top: -7px; right: -9px; }
.noel.nx-connexion .btn-submit {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), var(--grad);
  box-shadow: 0 14px 34px rgba(102, 126, 234, .42), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(247, 231, 189, .3);
}
.noel.nx-connexion .btn-submit .spinner { border-top-color: var(--nx-or-clair); }
.noel.nx-connexion .form-input { background: rgba(255, 255, 255, .85); border-color: #e3e1f1; }
.noel.nx-connexion .form-input:focus { background: #fff; }
.noel.nx-connexion .language-btn { background: rgba(255, 255, 255, .88); }
.noel.nx-connexion .login-header .nx-pastille--claire { display: none; }

/* ==========================================================================
   8. SPLASH (ChristmasSplash) : une ouverture en sept temps, en CSS seulement
      0,0 s fond · 0,3 s neige (montée douce) · 0,6 s guirlande qui s'allume · 0,85 s logo · 1,55 s lueur
      · 1,6 s nom · 1,95 s « Learn. Manage. Care. » — la progression et la redirection ne changent pas.
   ========================================================================== */
.noel.nx-splash .splash-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .965), rgba(250, 250, 255, .93));
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 44px 120px rgba(2, 3, 22, .62), 0 0 0 1px rgba(247, 231, 189, .2), inset 0 1px 0 #fff;
  animation: nx-carte 1s cubic-bezier(.2, .75, .25, 1) .45s both;
}
@keyframes nx-carte { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.noel.nx-splash .nx-ciel { animation: nx-fondu 1.1s ease both; }
.noel.nx-splash .nx-pos { animation: nx-sapin-monte 1.3s cubic-bezier(.2, .7, .2, 1) .2s both; }
.noel.nx-splash .nx-sapin .nx-lums { animation: nx-fondu 1.4s ease .95s both; }
.noel.nx-splash .nx-sapin .nx-etoile { animation: nx-fondu 1s ease 1.45s both; }
.noel.nx-splash .nx-guirlande { animation: nx-fondu .8s ease .25s both; }
.noel.nx-splash .nx-guirlande .nx-ampoule-h { animation: nx-fondu .5s ease calc(.6s + var(--i, 0) * 36ms) both; }
.noel.nx-splash .nx-guirlande .nx-ampoule-v { animation: nx-verre .5s ease calc(.6s + var(--i, 0) * 36ms) both; }
@keyframes nx-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-verre { from { opacity: .3; } to { opacity: 1; } }
@keyframes nx-sapin-monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.noel.nx-splash .logo-stage { animation: nx-fondu .35s ease .8s both; }
.noel.nx-splash .halo-ring { border-color: rgba(222, 182, 96, .7); }
.noel.nx-splash .logo-disc { overflow: hidden; animation: nx-logo 1.1s cubic-bezier(.2, .8, .2, 1) .85s both, logoFloat 4.8s ease-in-out 2.3s infinite; }
@keyframes nx-logo { from { opacity: 0; transform: scale(.62) rotate(-8deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.noel.nx-splash .logo-disc::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: skewX(-18deg) translateX(0); opacity: 0;
  animation: nx-lueur-logo 1.2s ease 1.55s both;
}
@keyframes nx-lueur-logo { 0% { opacity: 0; transform: skewX(-18deg) translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: skewX(-18deg) translateX(420%); } }
.noel.nx-splash .logo-stage .nx-etincelle { top: 6px; right: 6px; }
.noel.nx-splash .logo-stage .nx-etincelle + .nx-etincelle { top: auto; right: auto; bottom: 12px; left: 4px; width: 12px; height: 12px; animation-delay: -1.7s; }
.noel.nx-splash .brand-name { animation: nx-nom 1s cubic-bezier(.2, .7, .2, 1) 1.6s both; }
@keyframes nx-nom { from { opacity: 0; letter-spacing: .16em; } to { opacity: 1; letter-spacing: 0; } }
.noel.nx-splash .brand-tag { display: none; }
.noel.nx-splash .nx-devise span { animation: nx-mot .7s ease both; }
.noel.nx-splash .nx-devise span:nth-child(1) { animation-delay: 1.95s; }
.noel.nx-splash .nx-devise span:nth-child(2) { animation-delay: 2.12s; }
.noel.nx-splash .nx-devise span:nth-child(3) { animation-delay: 2.29s; }
@keyframes nx-mot { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.noel .nx-edition { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #a9803a; }
.noel.nx-splash .nx-edition, .noel.nx-splash .user-greeting { animation: nx-mot .7s ease 2.3s both; }
.noel.nx-splash .progress-section { animation: nx-mot .6s ease 1.15s both; }
.noel.nx-splash .status-card:nth-child(1) { animation-delay: 2.2s; }
.noel.nx-splash .status-card:nth-child(2) { animation-delay: 2.32s; }
.noel.nx-splash .status-card:nth-child(3) { animation-delay: 2.44s; }
.noel.nx-splash .secure-note { animation: nx-mot .6s ease 2.55s both; }
.noel.nx-splash .progress-bar { display: none; }
.noel.nx-splash .status-icon { box-shadow: 0 8px 20px rgba(102, 126, 234, .35), 0 0 0 2px rgba(232, 198, 117, .35); }
.noel .nx-voeux { margin-top: 6px; font-size: 13px; color: var(--muted); }
/* passage vers l'application */
.noel.nx-splash .success-overlay { background: rgba(8, 10, 38, .62); }
.noel.nx-splash .success-circle { position: relative; background: var(--nx-grad-or); box-shadow: 0 20px 55px rgba(190, 140, 55, .5), 0 0 90px rgba(246, 210, 130, .45); }
.noel .nx-eclats { position: absolute; inset: 0; pointer-events: none; }
.noel .nx-eclats i { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff2c9; box-shadow: 0 0 10px 2px rgba(255, 214, 128, .9); opacity: 0; }
.noel .success-overlay.show .nx-eclats i { animation: nx-eclat 1.1s cubic-bezier(.2, .7, .3, 1) .25s forwards; }
.noel .nx-eclats i:nth-child(1) { --x: 0px; --y: -86px; }   .noel .nx-eclats i:nth-child(2) { --x: 61px; --y: -61px; }
.noel .nx-eclats i:nth-child(3) { --x: 86px; --y: 0px; }    .noel .nx-eclats i:nth-child(4) { --x: 61px; --y: 61px; }
.noel .nx-eclats i:nth-child(5) { --x: 0px; --y: 86px; }    .noel .nx-eclats i:nth-child(6) { --x: -61px; --y: 61px; }
.noel .nx-eclats i:nth-child(7) { --x: -86px; --y: 0px; }   .noel .nx-eclats i:nth-child(8) { --x: -61px; --y: -61px; }
@keyframes nx-eclat { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
.noel .nx-salut { margin-top: 12px; font-size: 26px; color: var(--nx-or-clair); }

/* ==========================================================================
   9. ACCUEIL : une vitrine de nuit d'hiver, des sections claires de matin de neige
   ========================================================================== */
.noel.nx-accueil { background: linear-gradient(180deg, #f3f5ff 0%, #eef1fc 45%, #f6f2ea 100%); }
.noel.nx-accueil .blob.b1 { background: radial-gradient(circle, rgba(124, 134, 255, .5), transparent 70%); }
.noel.nx-accueil .blob.b2 { background: radial-gradient(circle, rgba(236, 202, 120, .42), transparent 70%); }
.noel.nx-accueil .blob.b3 { background: radial-gradient(circle, rgba(120, 200, 165, .28), transparent 70%); }

/* --- hero --- */
.noel.nx-accueil .hero {
  z-index: 2; margin: 12px; min-height: calc(100vh - 24px); padding-bottom: 150px;
  border-radius: 32px; overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 100px rgba(20, 18, 70, .32);
}
.noel.nx-accueil .hero .nx-guirlande { top: 66px; }
.noel.nx-accueil .hero .nx-pos--principal { right: max(1.2vw, calc(50% - 800px)); bottom: 10px; height: min(54vh, 480px); }
.noel.nx-accueil .hero .nx-pos--loin { left: max(.4vw, calc(50% - 810px)); bottom: 30px; height: min(31vh, 280px); opacity: .9; }
.noel.nx-accueil .hero-visual { justify-content: flex-start; }
.noel.nx-accueil .preview { max-width: 410px; }
.noel.nx-accueil .hero-title { color: #fff; text-shadow: 0 2px 30px rgba(8, 10, 40, .45); }
.noel.nx-accueil .hero .highlight,
.noel.nx-accueil .cta-inner h2 .highlight { background: var(--nx-grad-or); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.noel.nx-accueil .hero-description { color: var(--nx-texte-nuit-2); }
.noel.nx-accueil .hero-badge { color: #f6e2a8; background: rgba(232, 198, 117, .1); border-color: rgba(232, 198, 117, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.noel.nx-accueil .hero-badge i { color: var(--nx-or); animation: nx-tourne 12s linear infinite; }
.noel.nx-accueil .hero-chip { background: var(--nx-verre); border-color: rgba(255, 255, 255, .18); color: rgba(235, 237, 255, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.noel.nx-accueil .hero-chip i { color: var(--nx-or); }
.noel.nx-accueil .hero-chip:hover { border-color: rgba(232, 198, 117, .65); color: #fff; }
.noel.nx-accueil .stat-card { background: var(--nx-verre); border-color: rgba(255, 255, 255, .17); box-shadow: 0 16px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .22); }
.noel.nx-accueil .stat-number { background: var(--nx-grad-or); -webkit-background-clip: text; background-clip: text; color: transparent; }
.noel.nx-accueil .stat-label { color: rgba(228, 231, 255, .8); }
/* boutons en verre liquide */
.noel.nx-accueil .btn-primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 55%), var(--grad);
  box-shadow: 0 12px 30px rgba(102, 126, 234, .42), inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 0 0 1px rgba(247, 231, 189, .3);
}
.noel.nx-accueil .hero .btn-secondary,
.noel.nx-accueil .navbar:not(.scrolled) .nav-actions .btn-secondary {
  background: var(--nx-verre); color: #fff; border-color: var(--nx-verre-bord);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(0, 0, 0, .22);
}
.noel.nx-accueil .hero .btn-secondary:hover { border-color: var(--nx-or); color: var(--nx-or-clair); box-shadow: 0 8px 24px rgba(232, 198, 117, .22), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* aperçu du tableau de bord : opaque sur la nuit, avec sa neige posée */
.noel.nx-accueil .preview { background: rgba(255, 255, 255, .92); overflow: visible; box-shadow: 0 50px 110px rgba(0, 0, 0, .45), 0 0 0 1px rgba(247, 231, 189, .22), inset 0 1px 0 #fff; }
.noel.nx-accueil .preview-bar { border-radius: 24px 24px 0 0; }
.noel.nx-accueil .preview .nx-neige-posee { left: 30px; right: 30px; }

/* barre de navigation posée sur la nuit (avant défilement) */
.noel.nx-accueil .navbar:not(.scrolled) .logo-text { color: #fff; }
.noel.nx-accueil .navbar:not(.scrolled) .nav-link { color: rgba(230, 233, 255, .86); }
.noel.nx-accueil .navbar:not(.scrolled) .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.noel.nx-accueil .navbar:not(.scrolled) .menu-toggle span { background: #fff; }
.noel.nx-accueil .navbar.scrolled { border-bottom-color: rgba(214, 178, 100, .35); }
.noel.nx-accueil .logo-img { position: relative; }
.noel.nx-accueil .logo-img .nx-etincelle { top: -6px; right: -7px; width: 15px; height: 15px; }

/* --- sections claires : l'identité MoJo Care, des accents dorés, de la neige posée --- */
.noel.nx-accueil .section-badge { color: #8a5d14; background: rgba(232, 198, 117, .15); border-color: rgba(196, 154, 74, .4); }
.noel.nx-accueil .section-badge i { color: #b88934; }
.noel.nx-accueil .section-header::after {
  content: ''; display: block; width: 150px; height: 16px; margin: 24px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cpath d='M2 8h56M92 8h56' stroke='%23c49a4a' stroke-width='1' stroke-linecap='round' opacity='.75'/%3E%3Ccircle cx='62' cy='8' r='2.2' fill='%23b4233c'/%3E%3Ccircle cx='88' cy='8' r='2.2' fill='%23b4233c'/%3E%3Cpath d='M75 0c.7 4.8 3.2 7.3 8 8-4.8.7-7.3 3.2-8 8-.7-4.8-3.2-7.3-8-8 4.8-.7 7.3-3.2 8-8z' fill='%23c49a4a'/%3E%3C/svg%3E") center / contain no-repeat;
}
.noel.nx-accueil .role-icon { position: relative; }
.noel.nx-accueil .role-icon::before {
  content: ''; position: absolute; top: -6px; left: 4px; right: 4px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,9C4,3 10,2 16,5C22,0 31,0 37,4C43,1 52,2 60,8L60,10C57,10 56,12 55,14C54,12 51,10 47,10L22,10C19,10 18,12 17,13C16,11 14,10 11,10L0,10Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(30, 30, 90, .22));
}
.noel.nx-accueil .role-chip:hover { border-color: rgba(196, 154, 74, .7); box-shadow: 0 22px 44px rgba(102, 126, 234, .2), 0 0 0 4px rgba(232, 198, 117, .14); }
.noel.nx-accueil .service-card::before { background: var(--nx-grad-or); }
.noel.nx-accueil .service-card::after {
  content: ''; position: absolute; top: -20px; right: -20px; width: 116px; height: 116px; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg stroke='%234f46e5' stroke-width='3' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 0V-44M0-16l-9-9M0-16l9-9M0-30l-7-7M0-30l7-7'/%3E%3Cpath transform='rotate(60)' d='M0 0V-44M0-16l-9-9M0-16l9-9M0-30l-7-7M0-30l7-7'/%3E%3Cpath transform='rotate(120)' d='M0 0V-44M0-16l-9-9M0-16l9-9M0-30l-7-7M0-30l7-7'/%3E%3Cpath transform='rotate(180)' d='M0 0V-44M0-16l-9-9M0-16l9-9M0-30l-7-7M0-30l7-7'/%3E%3Cpath transform='rotate(240)' d='M0 0V-44M0-16l-9-9M0-16l9-9M0-30l-7-7M0-30l7-7'/%3E%3Cpath transform='rotate(300)' d='M0 0V-44M0-16l-9-9M0-16l9-9M0-30l-7-7M0-30l7-7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .5s ease, transform .9s ease;
}
.noel.nx-accueil .service-card:hover::after { opacity: .16; transform: rotate(30deg); }
.noel.nx-accueil .service-card:hover { border-color: rgba(196, 154, 74, .6); }
.noel.nx-accueil .faq-item.open { border-color: rgba(196, 154, 74, .7); }
.noel.nx-accueil .scroll-top { box-shadow: 0 12px 30px rgba(102, 126, 234, .45), 0 0 0 2px rgba(232, 198, 117, .55); }

/* --- bandeau final : la même nuit, sa guirlande et deux sapins --- */
.noel.nx-accueil .cta-inner { background: transparent; isolation: isolate; padding: 112px 40px 132px; box-shadow: 0 40px 100px rgba(20, 18, 70, .4), 0 0 0 1px rgba(247, 231, 189, .16); }
.noel.nx-accueil .cta-inner::before { z-index: 1; opacity: .35; }
.noel.nx-accueil .cta-inner > h2, .noel.nx-accueil .cta-inner > p, .noel.nx-accueil .cta-inner > .btn { z-index: 5; }
.noel.nx-accueil .cta-inner .btn { color: #4338ca; }
.noel.nx-accueil .cta-inner .nx-paysage-pos { height: 120px; }
.noel.nx-accueil .cta-inner .nx-pos--gauche { left: 3%; bottom: 6px; height: 230px; }
.noel.nx-accueil .cta-inner .nx-pos--droite { right: 3%; bottom: 10px; height: 180px; }
.noel .nx-cta-salut { position: relative; z-index: 5; font-size: clamp(26px, 3vw, 34px); color: var(--nx-or-clair); margin-bottom: 6px; }

/* --- pied de page de nuit, ouvert par une crête enneigée --- */
.noel.nx-accueil .nx-crete { position: relative; z-index: 5; height: 96px; margin-bottom: -1px; pointer-events: none; }
.noel.nx-accueil .nx-crete svg { display: block; width: 100%; height: 100%; }
.noel.nx-accueil .footer {
  overflow: hidden; border-top: 0; color: rgba(222, 226, 255, .72);
  background: linear-gradient(180deg, #0b0e2c 0%, #0a0c26 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.noel.nx-accueil .footer .nx-neige { z-index: 0; }
.noel.nx-accueil .footer-content, .noel.nx-accueil .footer-bottom { position: relative; z-index: 1; }
.noel.nx-accueil .footer .logo-text, .noel.nx-accueil .footer-column h4 { color: #fff; }
.noel.nx-accueil .footer-brand p, .noel.nx-accueil .footer-links a, .noel.nx-accueil .footer-links li { color: rgba(222, 226, 255, .72); }
.noel.nx-accueil .footer-links a:hover, .noel.nx-accueil .footer-bottom-links a:hover { color: var(--nx-or-clair); }
.noel.nx-accueil .footer-links i { color: var(--nx-or) !important; }
.noel.nx-accueil .social-link, .noel.nx-accueil .lang-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(235, 237, 255, .82); }
.noel.nx-accueil .lang-chip:hover { background: rgba(232, 198, 117, .14); border-color: rgba(232, 198, 117, .5); color: var(--nx-or-clair); }
.noel.nx-accueil .footer-bottom { border-top-color: rgba(255, 255, 255, .12); color: rgba(222, 226, 255, .6); }
.noel .nx-pied-salut { color: var(--nx-or-clair); font-size: 18px; }

/* ==========================================================================
   10. Adaptations : tablette, téléphone, mouvement réduit
   ========================================================================== */
@media (max-width: 1180px) {
  .noel.nx-connexion .nx-pos--gauche { left: -3vw; height: min(50vh, 440px); }
}
@media (max-width: 980px) {
  .noel.nx-accueil .navbar .nav-menu.active .nav-link { color: var(--muted); }
  .noel.nx-accueil .navbar .nav-menu.active .nav-link:hover { background: rgba(102, 126, 234, .12); color: var(--indigo-600); }
  .noel.nx-accueil .hero { padding-bottom: 260px; }
  .noel.nx-accueil .hero-visual { justify-content: center; }
  .noel.nx-accueil .hero .nx-pos--principal { right: 2vw; height: 250px; }
  .noel.nx-accueil .hero .nx-pos--loin { left: 2vw; height: 170px; }
  .noel.nx-accueil .cta-inner .nx-pos--gauche { height: 170px; left: 1%; }
  .noel.nx-accueil .cta-inner .nx-pos--droite { height: 130px; right: 1%; }
  .noel.nx-connexion .nx-pos--gauche, .noel.nx-splash .nx-pos--gauche { display: none; }
}
@media (max-width: 860px) {
  .noel.nx-connexion .login-container { max-width: 440px; }
  .noel.nx-connexion .login-header .nx-pastille--claire { display: inline-flex; }
  .noel.nx-connexion .login-card { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .noel.nx-connexion .form-panel { border-radius: 28px; }
  .noel.nx-connexion .nx-pos--droite, .noel.nx-splash .nx-pos--droite { right: -3vw; bottom: 0; height: 24vh; }
  .noel.nx-connexion .nx-lune-pos { display: none; }
}
@media (max-width: 760px) {
  .noel .nx-guirlande { aspect-ratio: auto; height: 74px; }
  .noel.nx-accueil .hero .nx-guirlande { top: 62px; }
  .noel .nx-traineau { filter: none; }
  .noel .nx-lune-pos { right: 9%; top: 9%; }
}
@media (max-width: 600px) {
  .noel.nx-accueil .hero { margin: 8px; border-radius: 24px; min-height: calc(100vh - 16px); padding-bottom: 210px; }
  .noel.nx-accueil .hero .nx-pos--loin { display: none; }
  .noel.nx-accueil .hero .nx-lune-pos { top: 112px; right: 4vw; }
  .noel.nx-accueil .hero .nx-lune { width: 40px; height: 40px; }
  .noel.nx-accueil .hero .nx-pos--principal { right: 50%; margin-right: -84px; height: 186px; bottom: 8px; }
  .noel.nx-accueil .cta-inner { padding: 96px 22px 150px; }
  .noel.nx-accueil .cta-inner .nx-pos--gauche { left: 50%; margin-left: -150px; height: 128px; }
  .noel.nx-accueil .cta-inner .nx-pos--droite { right: 50%; margin-right: -150px; height: 104px; }
  .noel.nx-accueil .nx-crete { height: 64px; }
  .noel.nx-connexion .nx-guirlande--haut { opacity: .9; }
  /* téléphone : le décor fixe serait caché par la carte ; un petit sapin se pose sur son bord */
  .noel.nx-connexion .nx-pos--droite { display: none; }
  .noel.nx-connexion .nx-sapin-carte { display: block; position: absolute; z-index: 7; top: -66px; left: 14px; height: 76px; pointer-events: none; }
  .noel .nx-bokeh:nth-child(2n) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* les pages ramènent déjà chaque animation à son état final ; ici, plus aucune attente non plus */
  .noel *, .noel *::before, .noel *::after { animation-delay: 0s !important; }
}
