/* Accueil du site Numerologie (classes nm-) : l'etoile des neuf nombres,
   les quatre Signatures, les 5 nombres cles. Couleurs dans theme.css. */

.nm-hero { padding: 140px 0 70px; }
.nm-hero-grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.nm-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.08; margin: 14px 0 22px; }
.nm-hero .lead { color: var(--ff-texte); max-width: 48ch; font-size: 1.15rem; }
.nm-actions { justify-content: flex-start; margin-top: 30px; }

/* L'etoile : neuf nombres sur un cercle, relies par un fil d'or, qui tournent lentement */
.nm-etoile { width: min(100%, 440px); margin: 0 auto; filter: drop-shadow(0 0 30px rgba(63, 174, 127, 0.35)); }
.nm-etoile svg { width: 100%; height: auto; overflow: visible; }
.nm-cercle { fill: none; stroke: rgba(181, 226, 201, 0.45); stroke-width: 0.8; }
.nm-cercle-fin { stroke-dasharray: 2 4; stroke: rgba(246, 227, 180, 0.4); }
.nm-trait { fill: none; stroke: rgba(124, 201, 162, 0.55); stroke-width: 0.7; }
.nm-trait-or { stroke: rgba(226, 176, 74, 0.8); stroke-width: 1; }
.nm-chiffres text { font-family: var(--font-heading); font-size: 15px; fill: #f6e3b4; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #0b2e22; stroke-width: 6px; }
.nm-369 { font-family: var(--font-heading); font-size: 17px; fill: #fff; text-anchor: middle; letter-spacing: 1px; }
.nm-tourne { animation: nm-tourne 90s linear infinite; transform-origin: 0 0; }
.nm-chiffres text { animation: nm-tourne 90s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
.nm-coeur { animation: ff-pulse 5s ease-in-out infinite; transform-origin: 0 0; }
@keyframes nm-tourne { to { transform: rotate(360deg); } }

.nm-bloc { padding: 90px 0; position: relative; }
.nm-entete { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.nm-entete p { color: var(--ff-texte); }
.nm-grand { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.25; color: #fff; margin-bottom: 20px; }
.nm-manifeste { text-align: center; max-width: 720px; }
.nm-manifeste p:not(.nm-grand) { font-size: 1.1rem; }

.nm-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nm-carte {
  position: relative; padding: 30px 24px 26px; border-radius: 20px; display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(31, 143, 95, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(var(--ff-voile-rgb), 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nm-carte:hover { transform: translateY(-6px); border-color: var(--ff-or); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(226, 176, 74, 0.25); }
.nm-pastille {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  color: var(--ff-nuit); background: radial-gradient(circle at 35% 30%, #fff, var(--ff-or-clair) 45%, var(--ff-or));
  box-shadow: 0 0 22px rgba(226, 176, 74, 0.45);
}
.nm-carte h3 { font-size: 1.35rem; margin: 18px 0 10px; }
.nm-carte p { flex: 1; font-size: 0.95rem; }
.nm-lien { font-weight: 600; color: var(--ff-or-clair); }

.nm-cinq { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.nm-cinq li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(var(--ff-voile-rgb), 0.14); }
.nm-rond {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  font-family: var(--font-heading); font-size: 1.5rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #7cc9a2, #1f8f5f 60%, #0f4f36);
  box-shadow: 0 0 0 5px rgba(124, 201, 162, 0.12), 0 0 26px rgba(63, 174, 127, 0.5);
  animation: ff-pulse 4s ease-in-out infinite;
}
.nm-cinq li:nth-child(2) .nm-rond { animation-delay: 0.5s; }
.nm-cinq li:nth-child(3) .nm-rond { animation-delay: 1s; }
.nm-cinq li:nth-child(4) .nm-rond { animation-delay: 1.5s; }
.nm-cinq li:nth-child(5) .nm-rond { animation-delay: 2s; }
.nm-cinq strong { color: #fff; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; }
.nm-cinq li span:last-child { color: var(--ff-texte); font-size: 0.88rem; }

.nm-jessica { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; padding: 40px; border-radius: 24px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(var(--ff-voile-rgb), 0.14); }
.nm-jessica-photo { position: relative; }
.nm-jessica-photo::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, #1f8f5f, #f6e3b4, #2f8f8a, #1f8f5f); filter: blur(8px); opacity: 0.85; animation: nm-tourne 10s linear infinite; }
.nm-jessica-photo img { position: relative; display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.nm-fin { text-align: center; padding-bottom: 130px; }

@media (max-width: 1000px) {
  .nm-grille { grid-template-columns: repeat(2, 1fr); }
  .nm-cinq { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nm-hero { padding: 110px 0 40px; }
  .nm-hero-grille, .nm-jessica { grid-template-columns: 1fr; gap: 28px; }
  .nm-hero-texte { text-align: center; }
  .nm-hero .lead { margin: 0 auto; }
  .nm-actions { justify-content: center; }
  .nm-etoile { order: -1; width: min(80%, 320px); }
  .nm-grille { grid-template-columns: 1fr; }
  .nm-cinq { grid-template-columns: repeat(2, 1fr); }
  .nm-bloc { padding: 64px 0; }
  .nm-jessica { padding: 26px; }
  .nm-jessica-photo { max-width: 220px; margin: 0 auto; }
}

/* ---------- Calculateur de chemin de vie (classes cv-) ---------- */
.cv-section { padding-top: 20px; }
.cv-carte {
  max-width: 760px; margin: 0 auto; padding: 44px 40px; border-radius: 28px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(226, 176, 74, 0.14), transparent 60%), linear-gradient(170deg, rgba(31, 143, 95, 0.22), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(226, 176, 74, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 40px rgba(63, 174, 127, 0.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cv-entete p { color: var(--ff-texte); }
.cv-form { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 26px; }
.cv-champ { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.cv-champ span { font-size: 0.85rem; font-weight: 600; color: #fff; }
.cv-champ input {
  font: inherit; color: #fff; padding: 13px 16px; border-radius: 14px; min-width: 220px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(var(--ff-voile-rgb), 0.3); color-scheme: dark;
}
.cv-champ input:focus { outline: none; border-color: var(--ff-or); box-shadow: 0 0 0 3px rgba(226, 176, 74, 0.25); }
.cv-erreur { color: #ffd4c4; margin-top: 12px; }

.cv-resultat { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(var(--ff-voile-rgb), 0.2); }
.cv-apparait { animation: cv-entree 0.7s ease both; }
@keyframes cv-entree { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.cv-nombre-zone { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; display: grid; place-items: center; }
.cv-aura span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(246, 227, 180, 0.6); animation: ff-respire 3s ease-out infinite; }
.cv-aura span:nth-child(2) { animation-delay: 1.5s; border-color: rgba(124, 201, 162, 0.6); }
.cv-nombre {
  position: relative; font-family: var(--font-heading); font-size: 2.6rem; color: var(--ff-nuit);
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ff-or-clair) 45%, var(--ff-or));
  box-shadow: 0 0 40px rgba(226, 176, 74, 0.6);
}
@keyframes ff-respire { 0% { transform: scale(0.7); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.cv-resultat h3 { font-size: 1.7rem; margin: 6px 0 4px; }
.cv-sous { color: var(--ff-or-clair); font-size: 0.9rem; letter-spacing: 0.04em; }
.cv-texte { text-align: left; max-width: 600px; margin: 18px auto 0; }
.cv-texte p { margin-bottom: 0.7em; }
.cv-porte { margin-top: 30px; padding: 28px; border-radius: 20px; background: rgba(0, 0, 0, 0.18); border: 1px dashed rgba(226, 176, 74, 0.5); }
.cv-porte-titre { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 18px; }
.cv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cv-duo input { min-width: 0; width: 100%; }
.cv-accord { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 0.85rem; color: var(--ff-texte); margin-bottom: 18px; }
.cv-accord input { margin-top: 3px; accent-color: #e2b04a; width: 18px; height: 18px; flex: none; }
.cv-suite h4 { color: var(--ff-or-clair); font-family: var(--font-heading); font-size: 1.25rem; margin-top: 28px; }
.cv-merci { color: #fff; font-weight: 600; margin-top: 24px; }
.cv-message p { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: #fff; }
.cv-plus { margin-top: 26px; font-size: 0.92rem; }

@media (max-width: 760px) {
  .cv-carte { padding: 30px 20px; }
  .cv-duo { grid-template-columns: 1fr; }
  .cv-champ input { min-width: 0; width: 100%; }
  .cv-form { flex-direction: column; align-items: stretch; }
}

/* Rapports numeriques et liste d'attente */
.nm-type { display: inline-block; margin-top: 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-or-clair); border: 1px solid rgba(226, 176, 74, 0.45); padding: 3px 10px; border-radius: 50px; align-self: flex-start; }
.nm-carte .nm-type + h3 { margin-top: 10px; }
.la-carte p { color: var(--ff-texte); }
.la-form { margin-top: 26px; text-align: left; }
.la-choix { border: 0; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.la-choix legend { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.la-choix label { position: relative; }
.la-choix input { position: absolute; opacity: 0; }
.la-choix span { display: inline-block; padding: 9px 16px; border-radius: 50px; border: 1px solid rgba(var(--ff-voile-rgb), 0.35); color: var(--ff-texte); font-size: 0.9rem; transition: all 0.2s ease; }
.la-choix input:checked + span { background: linear-gradient(100deg, var(--ff-or), var(--ff-or-clair)); color: var(--ff-nuit); border-color: transparent; box-shadow: 0 0 18px rgba(226, 176, 74, 0.45); }
.la-choix input:focus-visible + span { outline: 2px solid var(--ff-or-clair); outline-offset: 2px; }
.la-form .btn { display: block; margin: 0 auto; }
.la-merci { color: #fff; font-family: var(--font-heading); font-size: 1.3rem; margin-top: 24px; }

/* Rapports classes par type : Personnel, Business, Compatibilite */
.nm-types { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.nm-type-groupe { padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(var(--ff-voile-rgb), 0.12); }
.nm-type-titre { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-or-clair); margin: 0 0 18px; }
.nm-type-titre span { color: var(--ff-or); }
.nm-type-cartes { display: grid; gap: 18px; grid-template-columns: 1fr; }
.nm-type-perso .nm-type-cartes { grid-template-columns: 1fr 1fr; }
.nm-carte h4 { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin: 16px 0 10px; font-weight: 500; }
.nm-bientot { align-self: flex-start; margin-top: 14px; font-size: 0.78rem; font-weight: 600; color: var(--ff-nuit); background: linear-gradient(100deg, var(--ff-or), var(--ff-or-clair)); padding: 5px 12px; border-radius: 50px; }
@media (max-width: 1000px) {
  .nm-types { grid-template-columns: 1fr 1fr; }
  .nm-type-perso { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nm-types, .nm-type-perso .nm-type-cartes { grid-template-columns: 1fr; }
}

/* ---------- Punch (2026-11-28) : arcanes de Jessica, cartes qui se retournent, bandeau ---------- */

/* Haut de page : eventail de cinq arcanes devant l'etoile des nombres */
.nm-scene { position: relative; display: grid; place-items: center; min-height: 460px; }
.nm-scene .nm-etoile { position: absolute; inset: 0; margin: auto; width: min(100%, 460px); opacity: 0.55; }
.nm-eventail { position: relative; width: 100%; height: 400px; display: grid; place-items: end center; perspective: 1200px; }
.nm-arcane {
  position: absolute; bottom: 10px; width: 150px; margin: 0; border-radius: 12px; overflow: hidden;
  border: 3px solid #faf6ee; outline: 1px solid rgba(201, 154, 62, 0.6);
  box-shadow: 0 18px 40px rgba(60, 45, 20, 0.25);
  transform-origin: 50% 140%;
  transform: rotate(calc(var(--i) * 13deg)) translateY(calc(var(--i) * var(--i) * 6px));
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s ease;
  animation: nm-respire-carte 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
.nm-arcane img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.nm-arcane figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; text-align: center;
  font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.06em; color: #faf6ee;
  background: linear-gradient(transparent, rgba(29, 20, 50, 0.75));
}
.nm-scene:hover .nm-arcane { transform: rotate(calc(var(--i) * 17deg)) translateY(calc(var(--i) * var(--i) * 9px - 12px)); }
.nm-arcane:hover { z-index: 5; box-shadow: 0 26px 54px rgba(201, 154, 62, 0.45); }
@keyframes nm-respire-carte { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 10px; } }

/* Bandeau des mots qui defile, or sur emeraude */
.nm-bandeau { overflow: hidden; background: linear-gradient(90deg, #176b47, #1f8f5f, #176b47); padding: 14px 0; transform: rotate(-1.2deg); margin: 10px -20px 0; box-shadow: 0 10px 30px rgba(23, 107, 71, 0.25); }
.nm-bandeau-piste { display: flex; gap: 26px; width: max-content; animation: nm-defile 38s linear infinite; }
.nm-bandeau span { font-family: var(--font-heading); font-size: 1.25rem; color: #faf6ee; white-space: nowrap; }
.nm-bandeau i { color: #f6e3b4; font-style: normal; }
@keyframes nm-defile { to { transform: translateX(-50%); } }

/* Le calculateur sur une bande emeraude */
.nm-clair .nm-bande {
  padding: 90px 0 100px; margin-top: -8px;
  background:
    radial-gradient(circle at 15% 20%, rgba(246, 227, 180, 0.25), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(124, 201, 162, 0.35), transparent 40%),
    linear-gradient(160deg, #1f8f5f, #176b47 60%, #0f4f36);
}

/* Les rapports : cartes de tarot qui se retournent */
.nm-tarot { perspective: 1400px; cursor: pointer; outline: none; }
.nm-tarot-int { position: relative; width: 100%; aspect-ratio: 2 / 3.1; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.nm-tarot:hover .nm-tarot-int, .nm-tarot:focus-visible .nm-tarot-int, .nm-tarot.retournee .nm-tarot-int { transform: rotateY(180deg); }
.nm-tarot-face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 4px solid #fffdf7; outline: 1px solid rgba(201, 154, 62, 0.55);
  box-shadow: 0 18px 40px rgba(60, 45, 20, 0.18);
}
.nm-tarot-avant img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease; }
.nm-tarot:hover .nm-tarot-avant img { transform: scale(1.06); }
.nm-tarot-plaque {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 8px 8px; border-radius: 10px; text-align: center;
  background: rgba(250, 246, 238, 0.92); border: 1px solid rgba(201, 154, 62, 0.5);
}
.nm-tarot-plaque b { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 1.05rem; color: #1d3d31; }
.nm-tarot-plaque small { display: block; font-size: 0.7rem; letter-spacing: 0.05em; color: #9a6f1f; margin-top: 2px; }
.nm-tarot-dos {
  transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 22px 18px; text-align: center;
  background: radial-gradient(circle at 50% 0%, #fff8e6, #faf6ee 55%, #eff8f2);
}
.nm-tarot-dos::before { content: ""; position: absolute; inset: 8px; border-radius: 10px; border: 1px solid rgba(201, 154, 62, 0.4); pointer-events: none; }
.nm-tarot-dos h4 { color: #1d3d31 !important; margin: 10px 0 4px; font-family: var(--font-heading); font-weight: 500; font-size: 1.2rem; }
.nm-tarot-dos p { font-size: 0.88rem; color: #3f5a4e !important; margin: 0; }
.nm-tarot-dos .nm-bientot { align-self: center; margin-top: 12px; }
.nm-type-cartes { align-items: start; }
.nm-type-groupe { animation: none !important; }

@media (max-width: 1000px) {
  .nm-eventail { height: 340px; }
  .nm-arcane { width: 120px; }
}
@media (max-width: 760px) {
  .nm-scene { min-height: 330px; }
  .nm-eventail { height: 300px; }
  .nm-arcane { width: 96px; }
  .nm-bandeau span { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-tarot-int { transition: none; }
}

/* Le haut de page retrouve son etoile seule (2026-11-28 : l'eventail faisait trop) */
.nm-scene .nm-etoile { position: static; opacity: 1; }
.nm-scene { min-height: 0; }

/* Le tirage : cinq dos de cartes se brassent pendant le calcul, puis le nombre apparait */
.cv-brassage { position: relative; height: 230px; margin-top: 30px; display: grid; place-items: center; }
.cv-brassage p { position: absolute; bottom: -6px; left: 0; right: 0; font-family: var(--font-heading); font-style: italic; color: #1d3d31; opacity: 0.9; }
.cv-dos {
  position: absolute; top: 10px; width: 112px; aspect-ratio: 2 / 3; border-radius: 12px;
  border: 3px solid #faf6ee; outline: 1px solid rgba(246, 227, 180, 0.7);
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 227, 180, 0.95) 0 6%, transparent 7%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(246, 227, 180, 0.35) 0 4deg, transparent 4deg 30deg),
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(246, 227, 180, 0.5) 31% 32%, transparent 33%),
    linear-gradient(160deg, #1f8f5f, #0f4f36);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.cv-brassage.en-cours .cv-dos { animation: cv-brasse 2.2s cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(var(--n) * 0.06s); }
@keyframes cv-brasse {
  0%   { transform: translateX(0) rotate(0); }
  20%  { transform: translateX(calc((var(--n) - 2) * 70px)) rotate(calc((var(--n) - 2) * 9deg)); }
  40%  { transform: translateX(calc((2 - var(--n)) * 40px)) rotate(calc((2 - var(--n)) * 6deg)) translateY(-10px); }
  60%  { transform: translateX(calc((var(--n) - 2) * 55px)) rotate(calc((var(--n) - 2) * 7deg)); }
  85%  { transform: translateX(0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translateX(0) rotate(0) scale(1.15); opacity: 0; }
}
@media (max-width: 760px) {
  .cv-dos { width: 86px; }
}

/* ---------- Le carnet qui s'ouvre (haut de page, 2026-11-30) ---------- */
.nm-carnet { position: relative; width: min(100%, 500px); margin: 0 auto; padding: 20px 0 40px; perspective: 1800px; }
.cn-livre {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1.45; transform-style: preserve-3d;
  transform: rotateX(14deg) rotateZ(-2deg); filter: drop-shadow(0 28px 34px rgba(60, 45, 20, 0.22));
  animation: cn-flotte 7s ease-in-out infinite;
}
@keyframes cn-flotte { 0%, 100% { transform: rotateX(14deg) rotateZ(-2deg) translateY(0); } 50% { transform: rotateX(12deg) rotateZ(-1deg) translateY(-8px); } }
.cn-page {
  position: relative; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(transparent 0 25px, rgba(31, 143, 95, 0.09) 25px 26px),
    linear-gradient(90deg, #fbf7ee, #fffdf8);
  border: 1px solid rgba(201, 154, 62, 0.25);
}
.cn-gauche { border-radius: 10px 2px 2px 10px; box-shadow: inset -14px 0 20px -12px rgba(60, 45, 20, 0.25); }
.cn-droite { border-radius: 2px 10px 10px 2px; box-shadow: inset 14px 0 20px -12px rgba(60, 45, 20, 0.25); background: repeating-linear-gradient(transparent 0 25px, rgba(31, 143, 95, 0.09) 25px 26px), linear-gradient(270deg, #fbf7ee, #fffdf8); }
.cn-entete { position: absolute; top: 12px; left: 16px; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a6f1f; }
.cn-type { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #2f8f6c; }
.cn-nom {
  font-family: var(--font-script); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #1d3d31; line-height: 1.1; text-align: center;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.6s steps(24, end);
}
.cn-ecrit .cn-nom { clip-path: inset(0 0 0 0); }
.cn-fleuron { color: #c99a3e; font-size: 0.9rem; opacity: 0.7; }
.cn-lettres { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.cn-lettre { display: flex; flex-direction: column; align-items: center; min-width: 16px; }
.cn-lettre b { font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: #1d3d31; }
.cn-lettre i { font-style: normal; font-family: var(--font-heading); font-size: 1.05rem; color: #c99a3e; opacity: 0; transform: translateY(-6px) scale(0.6); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.cn-lettre.vu i { opacity: 1; transform: none; text-shadow: 0 0 8px rgba(226, 176, 74, 0.45); }
.cn-espace { width: 10px; }
.cn-somme { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 40px; }
.cn-somme span { font-size: 0.72rem; color: #3f5a4e; opacity: 0; transform: translateY(4px); transition: all 0.5s ease; text-align: center; }
.cn-somme span.vu { opacity: 1; transform: none; }
.cn-resultat { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(0.6); transition: all 0.7s cubic-bezier(.3, 1.5, .5, 1); }
.cn-resultat span {
  font-family: var(--font-heading); font-size: 1.7rem; color: #1d3d31; padding: 6px 16px; border-radius: 50px;
  background: radial-gradient(circle at 35% 30%, #fff, #f6e3b4 60%, #e2b04a); box-shadow: 0 0 22px rgba(226, 176, 74, 0.5);
}
.cn-resultat small { margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9a6f1f; }
.cn-fini .cn-resultat { opacity: 1; transform: none; }

/* La couverture : fermee au chargement, s'ouvre vers la gauche */
.cn-couverture {
  position: absolute; top: -4px; bottom: -4px; right: -4px; width: calc(50% + 4px); transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); z-index: 5;
}
.cn-ouvert .cn-couverture { transform: rotateY(-178deg); }
.cn-couv-avant, .cn-couv-dos { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cn-couv-avant {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #f6e3b4;
  background: radial-gradient(circle at 50% 40%, rgba(246, 227, 180, 0.2), transparent 55%), linear-gradient(160deg, #1f8f5f, #0f4f36);
  border: 2px solid #c99a3e; box-shadow: inset 0 0 0 6px #176b47, inset 0 0 0 7px rgba(246, 227, 180, 0.6);
}
.cn-couv-avant span { font-size: 1.6rem; }
.cn-couv-avant b { font-family: var(--font-script); font-size: 1.9rem; font-weight: 700; }
.cn-couv-avant small { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cn-couv-dos { transform: rotateY(180deg); background: linear-gradient(160deg, #176b47, #0f4f36); border: 2px solid #c99a3e; }

/* La feuille qui se tourne entre deux lectures */
.cn-feuille { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; transform-origin: left center; transform-style: preserve-3d; opacity: 0; z-index: 4; }
.cn-feuille-recto, .cn-feuille-verso { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: repeating-linear-gradient(transparent 0 25px, rgba(31, 143, 95, 0.09) 25px 26px), #fdfaf3; border: 1px solid rgba(201, 154, 62, 0.25); border-radius: 2px 10px 10px 2px; }
.cn-feuille-verso { transform: rotateY(180deg); border-radius: 10px 2px 2px 10px; }
.cn-tourne .cn-feuille { animation: cn-feuille 1.1s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes cn-feuille { 0% { opacity: 1; transform: rotateY(0); } 100% { opacity: 1; transform: rotateY(-180deg); } }

/* La plume qui suit l'ecriture */
.cn-plume { position: absolute; left: 30%; top: 40%; font-size: 2rem; opacity: 0; transform: rotate(-20deg); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.cn-ecrit:not(.cn-chiffre) .cn-plume { animation: cn-plume 1.7s ease-in-out both; }
@keyframes cn-plume { 0% { opacity: 0; left: 12%; } 15% { opacity: 1; } 85% { opacity: 1; left: 40%; } 100% { opacity: 0; left: 42%; } }

@media (max-width: 760px) {
  .nm-carnet { width: min(100%, 360px); order: -1; }
  .cn-page { padding: 16px 10px; }
  .cn-lettre b { font-size: 0.8rem; } .cn-lettre i { font-size: 0.9rem; }
  .cn-resultat span { font-size: 1.3rem; }
}
/* Une fois ouverte, la couverture glisse sous la page de gauche (on la fait disparaitre) */
.cn-couverture { transition: transform 1.4s cubic-bezier(.6, 0, .2, 1), opacity 0.5s ease 1.25s; }
.cn-ouvert .cn-couverture { opacity: 0; }

/* Mots entiers dans le carnet */
.cn-lettres { gap: 6px 14px; }
.cn-mot { display: inline-flex; gap: 2px 6px; white-space: nowrap; }

/* La magie derriere le carnet : halo, etincelles dorees et vertes, petits nombres */
.cn-magie { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.cn-magie::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1.4; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(246, 227, 180, 0.7), rgba(181, 226, 201, 0.45) 35%, transparent 65%);
  filter: blur(10px); animation: cn-halo 5s ease-in-out infinite;
}
@keyframes cn-halo { 0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.95); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.cn-etincelle {
  position: absolute; left: 50%; top: 50%; color: #d8a94a; text-shadow: 0 0 8px rgba(226, 176, 74, 0.8);
  opacity: 0; animation: cn-jaillit ease-out forwards;
}
.cn-etincelle.cn-verte { color: #2f9f73; text-shadow: 0 0 8px rgba(124, 201, 162, 0.9); }
.cn-chiffre-volant { font-family: var(--font-heading); font-weight: 500; }
@keyframes cn-jaillit {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  15% { opacity: 1; }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(40deg); }
}
@media (prefers-reduced-motion: reduce) { .cn-etincelle { display: none; } }
.nm-carnet { isolation: isolate; }
/* L'ecriture manuscrite deborde de sa boite : on lui donne de l'air pour que la derniere lettre ne soit pas coupee */
.cn-nom { padding: 0.1em 0.35em 0.15em 0.2em; clip-path: inset(-0.2em 100% -0.2em -0.2em); }
.cn-ecrit .cn-nom { clip-path: inset(-0.2em -0.3em -0.2em -0.2em); }
/* Empilement explicite : la magie au fond, le carnet par-dessus */
.cn-magie { z-index: 0; }
.cn-livre { z-index: 1; }
.cn-plume { z-index: 2; }

/* ---------- Deux bandeaux qui se croisent (2026-11-30 : plus de punch) ---------- */
.nm-bandeaux { position: relative; height: 150px; margin: 10px 0 -20px; overflow: hidden; z-index: 2; }
.nm-bandeaux .nm-bandeau { position: absolute; left: -5%; right: -5%; top: 50%; margin: 0; padding: 16px 0; }
.nm-bandeaux .bd-vert { transform: translateY(-50%) rotate(-3deg); background: linear-gradient(90deg, #0f4f36, #1f8f5f 50%, #0f4f36); box-shadow: 0 14px 34px rgba(15, 79, 54, 0.35); z-index: 2; }
.nm-bandeaux .bd-or { transform: translateY(-50%) rotate(3deg); background: linear-gradient(90deg, #e2b04a, #f6e3b4 50%, #e2b04a); box-shadow: 0 10px 26px rgba(201, 154, 62, 0.35); z-index: 1; }
.nm-bandeaux .nm-bandeau-piste { gap: 30px; align-items: center; }
.nm-bandeaux .bd-vert .nm-bandeau-piste { animation: nm-defile3 40s linear infinite; }
.nm-bandeaux .bd-or .nm-bandeau-piste { animation: nm-defile3 46s linear infinite reverse; }
@keyframes nm-defile3 { to { transform: translateX(-33.333%); } }
.nm-bandeaux .nm-bandeau span { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.01em; }
.nm-bandeaux .nm-bandeau .bd-script { font-family: var(--font-script); font-size: 2.1rem; font-weight: 700; }
.nm-bandeaux .bd-vert span { color: #faf6ee; }
.nm-bandeaux .bd-vert .bd-script { color: #f6e3b4; }
.nm-bandeaux .bd-vert i { color: #f6e3b4; }
.nm-bandeaux .bd-or span { color: #0f4f36; }
.nm-bandeaux .bd-or .bd-script { color: #176b47; }
.nm-bandeaux .bd-or i { color: #fff; }
.nm-bandeaux .nm-bandeau i { font-style: normal; font-size: 1.3rem; display: inline-block; animation: bd-brille 2.4s ease-in-out infinite; }
@keyframes bd-brille { 0%, 100% { transform: scale(0.8) rotate(0); opacity: 0.7; } 50% { transform: scale(1.3) rotate(45deg); opacity: 1; } }
/* Un reflet de lumiere qui traverse chaque bandeau */
.nm-bandeaux .nm-bandeau::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 18%; left: -20%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: bd-reflet 5s ease-in-out infinite;
}
.nm-bandeaux .bd-or::after { animation-delay: 2.5s; }
@keyframes bd-reflet { 0%, 40% { left: -20%; } 100% { left: 110%; } }
.nm-bandeaux:hover .nm-bandeau-piste { animation-play-state: paused; }
@media (max-width: 760px) {
  .nm-bandeaux { height: 120px; }
  .nm-bandeaux .nm-bandeau span { font-size: 1.25rem; }
  .nm-bandeaux .nm-bandeau .bd-script { font-size: 1.55rem; }
}
.nm-bandeaux .nm-bandeau { left: -12%; right: -12%; }
@media (max-width: 760px) {
  .nm-bandeaux { height: 150px; }
  .nm-bandeaux .bd-vert { transform: translateY(-20%) rotate(-5deg); }
  .nm-bandeaux .bd-or { transform: translateY(-85%) rotate(5deg); }
}

/* ---------- Ouverture realiste du carnet (2026-11-30) ----------
   Ferme : on ne voit que la couverture, centree. A l'ouverture, le carnet glisse
   pour se centrer sur ses deux pages, la couverture tourne vers la gauche et son
   envers devient la page de gauche ; la page de droite apparait dessous. */
.cn-livre { left: -25%; transition: left 1.4s cubic-bezier(.6, 0, .2, 1); }
.cn-ouvert .cn-livre { left: 0; }
.nm-carnet:not(.cn-ouvert) .cn-gauche, .nm-carnet:not(.cn-ouvert) .cn-droite { visibility: hidden; }
.cn-gauche { transition: opacity 0.5s ease 1.2s; }
.nm-carnet:not(.cn-ouvert) .cn-gauche { opacity: 0; }
/* L'envers de la couverture ressemble a une page, pour que la page de gauche prenne le relais sans saut */
.cn-couv-dos {
  background: repeating-linear-gradient(transparent 0 25px, rgba(31, 143, 95, 0.09) 25px 26px), linear-gradient(90deg, #fbf7ee, #fffdf8);
  border: 1px solid rgba(201, 154, 62, 0.25); border-radius: 12px 4px 4px 12px;
}
/* La couverture reste visible le temps de tourner, puis cede la place a la page de gauche */
.cn-couverture { transition: transform 1.4s cubic-bezier(.6, 0, .2, 1), opacity 0.3s ease 1.6s; }
/* Un filtre sur le livre aplatit la 3D (on voyait la couverture en miroir) : l'ombre passe sur les pages */
.cn-livre { filter: none; }
.cn-page, .cn-couv-avant, .cn-couv-dos { box-shadow: 0 22px 30px -12px rgba(60, 45, 20, 0.28); }
.cn-gauche { box-shadow: inset -14px 0 20px -12px rgba(60, 45, 20, 0.25), 0 22px 30px -12px rgba(60, 45, 20, 0.28); }
.cn-droite { box-shadow: inset 14px 0 20px -12px rgba(60, 45, 20, 0.25), 0 22px 30px -12px rgba(60, 45, 20, 0.28); }
.cn-couv-avant { box-shadow: inset 0 0 0 6px #176b47, inset 0 0 0 7px rgba(246, 227, 180, 0.6), 0 22px 30px -12px rgba(60, 45, 20, 0.35); }

/* Bandeau du dessus legerement transparent : on voit le bandeau dore a travers (2026-11-30) */
.nm-bandeaux .bd-vert {
  background: linear-gradient(90deg, rgba(15, 79, 54, 0.78), rgba(31, 143, 95, 0.72) 50%, rgba(15, 79, 54, 0.78));
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 14px 34px rgba(15, 79, 54, 0.22);
}
.nm-bandeaux .bd-vert span, .nm-bandeaux .bd-vert i { text-shadow: 0 1px 6px rgba(10, 40, 28, 0.55); }
/* Un peu plus d'ecart entre les deux, pour que chacun se lise */
.nm-bandeaux { height: 170px; }
.nm-bandeaux .bd-vert { transform: translateY(-30%) rotate(-3.5deg); }
.nm-bandeaux .bd-or { transform: translateY(-75%) rotate(3.5deg); }
@media (max-width: 760px) {
  .nm-bandeaux { height: 160px; }
  .nm-bandeaux .bd-vert { transform: translateY(-15%) rotate(-5deg); }
  .nm-bandeaux .bd-or { transform: translateY(-90%) rotate(5deg); }
}

/* ---------- Page de titre « Mes calculs » (2026-11-30) ---------- */
.cn-feuille-recto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cn-titre-orne { color: #c99a3e; font-size: 1.1rem; }
.cn-titre-page { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: #1d3d31; }
.cn-titre-filet { width: 46%; height: 1px; background: linear-gradient(90deg, transparent, #c99a3e, transparent); }
.cn-titre-sous { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9a6f1f; }
/* Pendant la page de titre : la feuille couvre la page de droite, la page de gauche est vierge */
.cn-titre .cn-feuille { opacity: 1; transform: rotateY(0); }
.cn-titre .cn-gauche > *, .cn-titre .cn-droite > * { visibility: hidden; }
/* Puis elle se tourne vers la gauche */
.cn-premiere .cn-feuille { animation: cn-feuille 1.1s cubic-bezier(.5, 0, .3, 1) both; }
.nm-carnet:not(.cn-titre) .cn-feuille-recto > * { visibility: hidden; } /* le titre ne revient pas aux pages suivantes */

/* Les bandeaux chevauchent la jonction entre le haut de page et la bande emeraude,
   par-dessus les deux sections (plus d'effet de coupure) */
.nm-bandeaux { height: 0 !important; overflow: visible; margin: 0; position: relative; z-index: 6; }
.nm-bandeaux .nm-bandeau { top: 0; }
.nm-hero { padding-bottom: 110px; }
.nm-clair .nm-bande { padding-top: 130px; }
@media (max-width: 760px) {
  .nm-hero { padding-bottom: 90px; }
  .nm-clair .nm-bande { padding-top: 110px; }
}
.nm-bandeaux { overflow-x: clip; overflow-y: visible; } /* coupe les bouts a gauche et a droite seulement */
/* Plus d'air autour des bandeaux : inclines, ils montent et descendent davantage sur un grand ecran */
.nm-hero { padding-bottom: calc(110px + 6vw); }
.nm-clair .nm-bande { padding-top: calc(130px + 6vw); }
@media (max-width: 760px) {
  .nm-hero { padding-bottom: 130px; }
  .nm-clair .nm-bande { padding-top: 150px; }
}

/* La feuille qui tourne reste au-dessus des pages (sans ca, les mots dessous transparaissaient) */
@keyframes cn-feuille { 0% { opacity: 1; transform: translateZ(3px) rotateY(0); } 100% { opacity: 1; transform: translateZ(3px) rotateY(-180deg); } }
.cn-titre .cn-feuille { transform: translateZ(3px) rotateY(0); }
.cn-feuille-recto, .cn-feuille-verso { background-color: #fdfaf3; }
/* Pendant qu'elle tourne, les mots des pages en dessous s'effacent */
.cn-tourne .cn-gauche > *, .cn-tourne .cn-droite > *, .cn-premiere .cn-gauche > * { opacity: 0; transition: opacity 0.25s ease; }

/* La couverture reste toujours la plus haute : la feuille « Mes calculs » (soulevee de 3px)
   passait devant elle et se voyait avant l'ouverture */
.cn-couverture { transform: translateZ(6px) rotateY(0); }
.cn-ouvert .cn-couverture { transform: translateZ(6px) rotateY(-178deg); }

/* Ne pas compter sur backface-visibility (certains Chrome montraient le titre en miroir) :
   a mi-chemin de l'ouverture, l'endroit de la couverture disparait et l'envers (une page vierge) prend sa place */
.cn-couv-dos { visibility: hidden; }
.cn-ouvert .cn-couv-avant { visibility: hidden; transition: visibility 0s linear 0.6s; }
.cn-ouvert .cn-couv-dos { visibility: visible; transition: visibility 0s linear 0.6s; }

/* ---------- Le calcul anime (2026-11-30) : la date se pose, ses chiffres se rassemblent en leur somme ---------- */
.cv-brassage .cv-dos { display: none; }
.cv-chiffres { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 20px; }
.cv-chiffres span {
  font-family: var(--font-heading); font-size: 2.2rem; color: #1d3d31; width: 1.15em; text-align: center;
  opacity: 0; transform: translateY(-18px);
}
.cv-chiffres em { font-style: normal; color: #c99a3e; font-size: 1.6rem; opacity: 0; }
.cv-brassage.en-cours .cv-chiffres span { animation: cv-pose 0.35s ease forwards, cv-rassemble 0.7s cubic-bezier(.6, 0, .3, 1) forwards; animation-delay: calc(var(--i) * 0.09s), 1.15s; }
.cv-brassage.en-cours .cv-chiffres em { animation: cv-pose 0.35s ease 0.2s forwards, cv-efface 0.4s ease 1.1s forwards; }
@keyframes cv-pose { to { opacity: 1; transform: none; color: #9a6f1f; } }
@keyframes cv-rassemble { to { opacity: 0; transform: translateX(calc(var(--d) * -1.25em)) scale(0.4); } }
@keyframes cv-efface { to { opacity: 0; } }
.cv-total { margin-top: 10px; font-size: 0.85rem; color: #3f5a4e; opacity: 0; }
.cv-brassage.en-cours .cv-total { animation: cv-pose 0.5s ease 0.85s forwards, cv-efface 0.4s ease 1.9s forwards; }
/* Une lueur doree nait la ou les chiffres se rejoignent */
.cv-brassage::before {
  content: ""; position: absolute; left: 50%; top: 42px; width: 90px; height: 90px; margin-left: -45px; border-radius: 50%;
  background: radial-gradient(circle, #fff, #f6e3b4 40%, rgba(226, 176, 74, 0.4) 60%, transparent 70%); opacity: 0; transform: scale(0.2);
}
.cv-brassage.en-cours::before { animation: cv-lueur 1s ease 1.4s forwards; }
@keyframes cv-lueur { 50% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0.9; transform: scale(1); } }
.cv-brassage { height: 190px; }
@media (max-width: 760px) { .cv-chiffres span { font-size: 1.6rem; } }
.cv-brassage { height: auto; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-bottom: 6px; }
.cv-brassage p { position: static; margin: 16px 0 0; }
.cv-total { font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- Corrections du carnet (2026-11-30, captures de Jessica) ---------- */
/* 1. Les feuilles qui tournent : a mi-chemin, le recto disparait et le verso (vierge) prend le relais,
      sans compter sur backface-visibility (son Chrome montrait « Mes calculs » en miroir). */
@keyframes cn-recto-mi { 0%, 49% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes cn-verso-mi { 0%, 49% { visibility: hidden; } 50%, 100% { visibility: visible; } }
.cn-premiere .cn-feuille-recto, .cn-tourne .cn-feuille-recto { animation: cn-recto-mi 1.1s linear forwards; }
.cn-premiere .cn-feuille-verso, .cn-tourne .cn-feuille-verso { animation: cn-verso-mi 1.1s linear forwards; }

/* 2. La couverture reste : une fois ouverte, elle se pose sous la page de gauche
      et on voit son bord emeraude depasser, comme un vrai carnet. */
.cn-couverture { transition: transform 1.4s cubic-bezier(.6, 0, .2, 1) !important; }
.cn-ouvert .cn-couverture { opacity: 1 !important; transform: translateZ(-2px) rotateY(-179deg); }
.cn-couv-dos { background: linear-gradient(200deg, #1f8f5f, #0f4f36) !important; border: 2px solid #c99a3e !important; border-radius: 12px 4px 4px 12px; }
/* La page de gauche se pose par-dessus l'envers de la couverture */
.cn-gauche { transform: translateZ(1px); }
/* La couverture ouverte : exactement a plat (180deg) et nettement sous la page de gauche.
   A 179deg elle restait legerement inclinee et percait la page (bande verte sur « Amelie »). */
.cn-ouvert .cn-couverture { transform: translateZ(-6px) rotateY(-180deg) !important; }
.cn-gauche { transform: translateZ(2px); }
/* Ecriture plus fluide : un trace continu, un peu plus lent, comme une main qui ecrit */
.cn-nom { transition: clip-path 2s cubic-bezier(.45, .1, .55, .9); }
.cn-ecrit:not(.cn-chiffre) .cn-plume { animation-duration: 2s; }
/* Page de droite : chaque lettre n'apparait qu'apres l'ecriture du nom, puis son nombre juste apres */
.cn-lettre b { opacity: 0; transform: translateY(4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.cn-lettre.vu b { opacity: 1; transform: none; }
.cn-lettre.vu i { transition-delay: 0.18s; }

/* Le calcul anime reste cache tant qu'on n'a pas clique (display:flex ecrasait l'attribut hidden) */
.cv-brassage[hidden] { display: none !important; }

/* Fond de la section du calculateur : le vert sombre de la version sombre du site */
.nm-clair .nm-bande {
  background:
    radial-gradient(circle at 15% 20%, rgba(233, 207, 149, 0.16), transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(95, 183, 160, 0.22), transparent 42%),
    linear-gradient(170deg, #153d30, #10342a 55%, #0c2a21) !important;
}

/* Section du calculateur plus brillante : lueurs plus vives, voile de lumiere qui passe, poussiere d'or qui scintille */
.nm-clair .nm-bande {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(246, 227, 180, 0.32), transparent 40%),
    radial-gradient(ellipse at 80% 85%, rgba(124, 201, 162, 0.38), transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(63, 174, 127, 0.25), transparent 60%),
    linear-gradient(170deg, #1a4a3a, #13392d 55%, #0e2f24) !important;
}
.nm-clair .nm-bande::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 30%, #f6e3b4, transparent),
    radial-gradient(1.2px 1.2px at 18% 72%, #fff, transparent),
    radial-gradient(2px 2px at 27% 12%, #f6e3b4, transparent),
    radial-gradient(1.2px 1.2px at 38% 88%, #b5e2c9, transparent),
    radial-gradient(1.8px 1.8px at 62% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 72% 64%, #f6e3b4, transparent),
    radial-gradient(2px 2px at 86% 26%, #f6e3b4, transparent),
    radial-gradient(1.2px 1.2px at 93% 80%, #b5e2c9, transparent),
    radial-gradient(1.6px 1.6px at 5% 92%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 55% 95%, #f6e3b4, transparent);
  animation: bande-scintille 3.5s ease-in-out infinite;
}
@keyframes bande-scintille { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.nm-clair .nm-bande::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 35%; left: -40%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(246, 227, 180, 0.16), rgba(255, 255, 255, 0.22), rgba(246, 227, 180, 0.16), transparent);
  transform: skewX(-18deg); animation: bande-reflet 7s ease-in-out infinite;
}
@keyframes bande-reflet { 0%, 30% { left: -40%; } 100% { left: 120%; } }
.nm-clair .nm-bande > .container { position: relative; z-index: 1; }
.nm-clair .nm-bande .cv-carte { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 60px rgba(246, 227, 180, 0.25), inset 0 0 0 7px rgba(255, 255, 255, 0.6), inset 0 0 0 8px rgba(201, 154, 62, 0.3) !important; }
@media (prefers-reduced-motion: reduce) { .nm-clair .nm-bande::before, .nm-clair .nm-bande::after { animation: none; } }

/* Vert plus « shiny » (laque emeraude), sans aucune animation qui passe derriere (2026-11-30) */
.nm-clair .nm-bande::after { display: none; }
.nm-clair .nm-bande::before { animation: none; opacity: 0.55; }
.nm-clair .nm-bande {
  background:
    radial-gradient(ellipse 70% 38% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 35% at 18% 22%, rgba(246, 227, 180, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(124, 201, 162, 0.35), transparent 70%),
    linear-gradient(175deg, #2a9d70 0%, #1f8a5c 22%, #17734c 50%, #11603f 78%, #0d5034 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -40px 80px rgba(5, 30, 20, 0.35);
}

/* ---------- Les 5 nombres cles : cartes qui se retournent (2026-12-01) ---------- */
.nm-cinq li.nm-cle { padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; perspective: 1000px; cursor: pointer; outline: none; }
.nm-cle-int { position: relative; width: 100%; min-height: 230px; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.nm-cle:hover .nm-cle-int, .nm-cle:focus-visible .nm-cle-int, .nm-cle.retournee .nm-cle-int { transform: rotateY(180deg); }
.nm-cle-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 14px;
  border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(201, 154, 62, 0.35); box-shadow: 0 16px 36px rgba(80, 70, 40, 0.08);
}
.nm-cle-dos { transform: rotateY(180deg); background: linear-gradient(170deg, #1f8f5f, #176b47); border-color: rgba(246, 227, 180, 0.6); }
.nm-clair .nm-cle-dos b { color: #f6e3b4; font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; }
.nm-clair .nm-cle-dos p { color: #faf6ee; font-size: 0.86rem; line-height: 1.5; margin: 6px 0 0; }
.nm-cle-indice { margin-top: 6px; font-size: 0.72rem; color: #9a6f1f; letter-spacing: 0.04em; }
/* Elles se retournent toutes seules, une apres l'autre, pour montrer qu'on peut les toucher */
@keyframes nm-cle-invite { 0%, 80%, 100% { transform: rotateY(0); } 88% { transform: rotateY(18deg); } 94% { transform: rotateY(-8deg); } }
.nm-cle:not(:hover):not(.retournee) .nm-cle-int { animation: nm-cle-invite 6s ease-in-out infinite; }
.nm-cle:nth-child(2) .nm-cle-int { animation-delay: 1.2s; }
.nm-cle:nth-child(3) .nm-cle-int { animation-delay: 2.4s; }
.nm-cle:nth-child(4) .nm-cle-int { animation-delay: 3.6s; }
.nm-cle:nth-child(5) .nm-cle-int { animation-delay: 4.8s; }
@media (max-width: 760px) { .nm-cle-int { min-height: 210px; } }
@media (prefers-reduced-motion: reduce) { .nm-cle-int { animation: none !important; transition: none; } }
/* Sans compter sur backface-visibility : a mi-retournement, une face cede la place a l'autre */
.nm-cle-face { transition: visibility 0s linear 0.42s; }
.nm-cle-dos { visibility: hidden; }
.nm-cle:hover .nm-cle-dos, .nm-cle:focus-visible .nm-cle-dos, .nm-cle.retournee .nm-cle-dos { visibility: visible; }
.nm-cle:hover .nm-cle-avant, .nm-cle:focus-visible .nm-cle-avant, .nm-cle.retournee .nm-cle-avant { visibility: hidden; }
/* Plus de frémissement : les cinq cartes se retournent ensemble toutes les 3 secondes (douceur.js) */
.nm-cle .nm-cle-int, .nm-cle:not(:hover):not(.retournee) .nm-cle-int { animation: none !important; }
.nm-jessica-photo img { object-position: 50% 22%; } /* la photo 2 : visage dans le cercle */

/* ---------- Ta boussole interieure (2026-12-01) : section en vert laque, boussole magique ---------- */
.nm-clair .nm-boussole-section {
  position: relative; overflow: hidden; padding: 110px 0;
  background:
    radial-gradient(ellipse 70% 38% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 45% 40% at 20% 50%, rgba(246, 227, 180, 0.22), transparent 70%),
    linear-gradient(175deg, #2a9d70 0%, #1f8a5c 22%, #17734c 50%, #11603f 78%, #0d5034 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -40px 80px rgba(5, 30, 20, 0.35);
}
.nm-boussole-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.nm-boussole { width: min(100%, 380px); margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); animation: ff-flotte 7s ease-in-out infinite; }
.nm-boussole svg { width: 100%; height: auto; overflow: visible; }
.bs-cadran { animation: bs-tourne 120s linear infinite; transform-origin: 0 0; }
.bs-chiffres text { animation: bs-tourne 120s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
@keyframes bs-tourne { to { transform: rotate(360deg); } }
/* L'aiguille hesite, oscille, puis se pose sur son nord */
.bs-aiguille { transform-origin: 0 0; animation: bs-cherche 9s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes bs-cherche {
  0% { transform: rotate(-70deg); } 18% { transform: rotate(45deg); } 32% { transform: rotate(-25deg); }
  44% { transform: rotate(12deg); } 54% { transform: rotate(-5deg); } 62%, 88% { transform: rotate(0deg); } 100% { transform: rotate(-70deg); }
}
.bs-halo { animation: ff-pulse 5s ease-in-out infinite; transform-origin: 0 0; }
.bs-etincelles path { animation: bs-brille 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bs-etincelles path:nth-child(2) { animation-delay: .7s; } .bs-etincelles path:nth-child(3) { animation-delay: 1.4s; } .bs-etincelles path:nth-child(4) { animation-delay: 2.1s; }
@keyframes bs-brille { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }

.nm-clair .nm-boussole-texte .eyebrow { color: #f6e3b4; }
.nm-clair .nm-boussole-texte .eyebrow::before, .nm-clair .nm-boussole-texte .eyebrow::after { background: #f6e3b4; }
.nm-clair .nm-boussole-texte h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.15; margin: 12px 0 22px; }
.nm-clair .nm-boussole-texte p { color: rgba(250, 246, 238, 0.92); font-size: 1.05rem; }
.nm-clair .nm-boussole-texte .gradient-text { background-image: linear-gradient(100deg, #e9c46a, #fff4d6 50%, #e9c46a); }
.nm-clair .nm-boussole-fin { font-family: var(--font-heading); font-style: italic; font-size: 1.3rem !important; color: #f6e3b4 !important; margin-top: 20px; }

@media (max-width: 860px) {
  .nm-boussole-grille { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .nm-boussole { width: min(70%, 280px); }
  .nm-clair .nm-boussole-section { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) { .bs-aiguille, .bs-cadran, .bs-chiffres text, .nm-boussole { animation: none !important; } }

/* Les rapports : cartes en verre (2026-12-02, choix de Jessica) */
.nm-verre { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px 22px 24px; border-radius: 24px; background: linear-gradient(170deg, rgba(31, 143, 95, 0.1), rgba(255, 255, 255, 0.75)); border: 1px solid rgba(201, 154, 62, 0.35); box-shadow: 0 16px 36px rgba(80, 70, 40, 0.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 0.3s ease, box-shadow 0.3s ease; min-height: 300px; }
.nm-verre:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(201, 154, 62, 0.25); }
.nm-verre-chiffre { position: absolute; right: -6px; top: -26px; font-family: var(--font-heading); font-size: 8rem; line-height: 1; color: rgba(201, 154, 62, 0.16); pointer-events: none; }
.nm-verre-sym { position: relative; color: #c99a3e; font-size: 1.3rem; }
.nm-verre h4 { position: relative; font-family: var(--font-heading); font-weight: 500; font-size: 1.35rem; color: #1d3d31 !important; margin: 6px 0 14px; }
.nm-verre ul { position: relative; list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.nm-verre li { position: relative; padding: 5px 0 5px 22px; font-size: 0.92rem; color: #3f5a4e; }
.nm-verre li::before { content: "✦"; position: absolute; left: 0; color: #c99a3e; }
.nm-verre .nm-bientot { position: relative; align-self: flex-start; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .nm-verre { transition: none; } }

/* Bouton « Découvrir les rapports » entre les sections */
.nm-bouton-rapports { padding-top: 44px; padding-bottom: 8px; }
.nm-bouton-rapports .container { text-align: center; }

/* Dos des 5 nombres cles : titres et textes alignes en haut, carres de meme taille (2026-12-02) */
.nm-cle-dos { justify-content: flex-start; padding-top: 18px; padding-bottom: 12px; }
.nm-cle-dos p { font-size: 0.84rem !important; line-height: 1.45 !important; }
.nm-cle-int { min-height: 245px; }

/* Pages et prix speciaux des rapports (2026-12-02) */
.nm-pages { margin: 10px 0 0; font-size: 0.82rem; color: #6b5a2a; letter-spacing: 0.03em; font-style: italic; }
.nm-prix { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nm-prix-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #d4a23a, #b8862f); box-shadow: 0 4px 12px rgba(184, 134, 47, 0.35);
}
.nm-prix-ligne { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nm-prix-nouveau { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: #11603f; line-height: 1.1; }
.nm-prix-ancien { font-size: 1.05rem; color: #9a8f7a; text-decoration-thickness: 2px; text-decoration-color: #c0392b; }
.nm-prix-taxes { font-size: 0.78rem; color: #6b7a70; }

/* Magie sur les prix speciaux (2026-12-02) */
.nm-prix { position: relative; }
.nm-prix-badge { position: relative; overflow: hidden; }
.nm-prix-badge::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg); animation: nm-prix-eclat 3.2s ease-in-out infinite;
}
@keyframes nm-prix-eclat { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.nm-prix-nouveau {
  background: linear-gradient(100deg, #11603f 0%, #2a9d70 30%, #e9c46a 50%, #2a9d70 70%, #11603f 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: nm-prix-brille 4s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(233, 196, 106, 0.55));
}
@keyframes nm-prix-brille { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.nm-prix-ligne { position: relative; }
.nm-prix-ligne::before, .nm-prix-ligne::after, .nm-prix::before, .nm-prix::after {
  content: "✦"; position: absolute; color: #e0a92f; pointer-events: none; opacity: 0; text-shadow: 0 0 8px rgba(233, 196, 106, 0.9);
  animation: nm-prix-etincelle 3s ease-in-out infinite;
}
.nm-prix-ligne::before { font-size: 0.9rem; top: -10px; left: 58px; animation-delay: 0s; }
.nm-prix-ligne::after { font-size: 0.65rem; top: 2px; left: 112px; animation-delay: 1.1s; }
.nm-prix::before { font-size: 0.7rem; top: 18px; left: 6px; animation-delay: 0.6s; }
.nm-prix::after { font-size: 1rem; top: 6px; right: 6px; animation-delay: 1.8s; }
@keyframes nm-prix-etincelle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(0.5) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .nm-prix-badge::after, .nm-prix-nouveau, .nm-prix::before, .nm-prix::after, .nm-prix-ligne::before, .nm-prix-ligne::after { animation: none; }
  .nm-prix::before, .nm-prix::after, .nm-prix-ligne::before, .nm-prix-ligne::after { opacity: 0.6; }
}

/* Bouton vers la page Rapports (2026-12-02) */
.nm-voir-tout { text-align: center; margin-top: 44px; }
.pg-rapports { padding-top: 130px; }

/* Phrase « Souviens-toi » plus pres des cartes du dessus (2026-12-02) */
.nm-fin { padding-top: 0; margin-top: -30px; }
