/* Site Numerologie : la magie de Frequence financiere, version emeraude et or
   (couleur de la sphere numerologie). Plus mystique : des nombres qui flottent. */
body.ff-magie {
  --ff-nuit: #0b2e22;      /* nuit verte */
  --ff-nuit-2: #072018;
  --ff-nuit-3: #03120c;
  --ff-or: #e2b04a;        /* or miel */
  --ff-or-clair: #f6e3b4;
  --ff-texte: #d9f0e3;     /* emeraude pale */
  --ff-voile-rgb: 181, 226, 201; /* vert d'eau */
  --ff-a1: #1f8f5f;        /* emeraude */
  --ff-a2: #2f8f8a;        /* sarcelle */
  --ff-a3: #e2b04a;
  --ff-accent: #7cc9a2;    /* menthe */
  --color-lilac: #b5e2c9;
  --color-primary: #1f8f5f;
}
.ff-magie .twinkle { color: var(--ff-or-clair); }
.ff-magie .twinkle-p { color: #7cc9a2; }
.ff-magie .twinkle-e { color: #b5e2c9; }

/* Le curseur : une baguette doree (le point actif est l'etoile du bout),
   et les etincelles de magie.js en sortent. */
body.ff-magie { cursor: url("../images/curseur-baguette.png") 6 6, auto; }
body.ff-magie a, body.ff-magie button, body.ff-magie [role="button"], body.ff-magie label, body.ff-magie select { cursor: url("../images/curseur-baguette.png") 6 6, pointer; }
body.ff-magie input, body.ff-magie textarea { cursor: text; }

/* ---------- Douceur (2026-11-27, demande de Jessica : moins agressif, plus de magie) ----------
   Nuit verte plus claire et veloutee, or champagne au lieu d'or vif, lueurs plus floues,
   bordures a peine visibles, titres plus legers. Les animations restent, plus lentes. */
body.ff-magie {
  --ff-nuit: #153d30;
  --ff-nuit-2: #10342a;
  --ff-nuit-3: #0c2a21;
  --ff-or: #e9cf95;        /* or champagne */
  --ff-or-clair: #f8ecd2;
  --ff-texte: #e3f1e8;
  --ff-voile-rgb: 200, 232, 214;
  --ff-a1: #2a9a6c;
  --ff-a2: #5fb7a0;
  --ff-a3: #f1d9a4;
}
.ff-magie .ff-aurore span { filter: blur(110px); opacity: 0.38; animation-duration: 40s !important; }
.ff-magie .ff-aurore span:nth-child(3) { opacity: 0.14; }
.ff-magie h1, .ff-magie h2 { font-weight: 400; letter-spacing: -0.005em; }
.ff-magie .site-header { background: rgba(21, 61, 48, 0.55); border-bottom-color: rgba(200, 232, 214, 0.08); }
.ff-magie .gradient-text { filter: drop-shadow(0 0 10px rgba(248, 236, 210, 0.25)); animation-duration: 7s; }

/* Boutons : champagne doux, ombre legere, eclat plus lent */
.ff-magie .btn-primary { background: linear-gradient(100deg, #ecd6a2, #faf1dc); color: #1d4a3a; box-shadow: 0 8px 24px rgba(233, 207, 149, 0.22); }
.ff-magie .btn-primary:hover { box-shadow: 0 10px 30px rgba(248, 236, 210, 0.35); color: #1d4a3a; }
.ff-magie .btn-primary::after { animation-duration: 6s; opacity: 0.6; }
.ff-magie .btn-outline { border-color: rgba(200, 232, 214, 0.3); }

/* Cartes : plus rondes, plus aeriennes */
.nm-carte, .nm-type-groupe, .cv-carte, .nm-jessica, .nm-cinq li {
  border-radius: 28px !important;
  border-color: rgba(200, 232, 214, 0.1) !important;
  box-shadow: 0 20px 50px rgba(5, 25, 18, 0.25) !important;
}
.nm-carte { background: linear-gradient(170deg, rgba(95, 183, 160, 0.12), rgba(255, 255, 255, 0.025)) !important; }
.nm-carte:hover { transform: translateY(-4px); border-color: rgba(233, 207, 149, 0.4) !important; box-shadow: 0 24px 56px rgba(5, 25, 18, 0.3), 0 0 34px rgba(233, 207, 149, 0.15) !important; }
.cv-carte { border-color: rgba(233, 207, 149, 0.22) !important; }
.nm-pastille, .cv-nombre, .nm-bientot { box-shadow: 0 0 22px rgba(233, 207, 149, 0.3) !important; }
.nm-rond { background: radial-gradient(circle at 35% 30%, #a7dcc0, #3d9c76 65%, #236b50) !important; box-shadow: 0 0 0 6px rgba(167, 220, 192, 0.1), 0 0 24px rgba(95, 183, 160, 0.35) !important; }
.nm-type-titre { letter-spacing: 0.14em; font-weight: 500; }
.nm-trait-or { stroke: rgba(233, 207, 149, 0.65); }
.nm-cercle { stroke: rgba(200, 232, 214, 0.3); }

/* Les cartes flottent doucement, chacune a son rythme */
@keyframes nm-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.nm-type-groupe { animation: nm-flotte 7s ease-in-out infinite; }
.nm-type-business { animation-delay: -2.3s; }
.nm-type-compat { animation-delay: -4.6s; }

/* Lucioles : petites lumieres qui montent lentement (creees par douceur.js) */
.nm-lucioles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.nm-lucioles i {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: radial-gradient(circle, #fffaf0, rgba(248, 236, 210, 0.6) 40%, transparent 70%);
  animation: nm-monte linear infinite, nm-scintille ease-in-out infinite;
}
@keyframes nm-monte {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--derive), -55vh); }
  90% { opacity: 0.9; }
  100% { transform: translate(calc(var(--derive) * -0.5), -110vh); opacity: 0; }
}
@keyframes nm-scintille { 0%, 100% { filter: brightness(0.7); } 50% { filter: brightness(1.4); } }

/* Un voile d'etoiles fines qui respire derriere le haut de page */
.nm-hero { position: relative; }
.nm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(248, 236, 210, 0.9), transparent),
    radial-gradient(1px 1px at 28% 70%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 46% 14%, rgba(248, 236, 210, 0.8), transparent),
    radial-gradient(1px 1px at 63% 58%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 82% 30%, rgba(248, 236, 210, 0.9), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 6% 86%, rgba(248, 236, 210, 0.7), transparent);
  animation: nm-respire 6s ease-in-out infinite;
}
@keyframes nm-respire { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .nm-lucioles { display: none; }
}
