/**
 * Simulateur Net Vendeur (/simulateur-net-vendeur-geneve) — porté tel
 * quel d'index.html (#/simulateur-net-vendeur-geneve), logique validée
 * par Gary le 18/08 : barème IBGI genevois par durée de détention,
 * frais notariaux d'achat préremplis à 4 %, commission préremplie à
 * 3.231 %, décomposition complète, tranche du barème surlignée en
 * direct. Sections : nh hero · ns simulateur (carte nv) · barème ·
 * nb bande courtier. Pas de FAQ (décision Gary) — on va droit au
 * footer.
 */

.k-nv { font-size: 10px; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 14px; font-family: var(--font-sans); }

/* ═══ 1. HERO compact ═══ */
.nh { background: var(--green); padding: calc(var(--r5-header-h, 96px) + 44px) 80px 56px; text-align: center; }
.nh .k-nv { color: var(--gold-light); }
.nh h1 { font-family: var(--font); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); color: white; line-height: 1.15; max-width: 24ch; margin: 0 auto; }
.nh h1 em { font-style: italic; color: var(--gold-light); }
.nh p { margin: 16px auto 0; font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; max-width: 56ch; }

/* ═══ 2. LE SIMULATEUR ═══ */
.ns { background: var(--cream); padding: 56px 80px 40px; }
.ns-inner { max-width: 920px; margin: 0 auto; }

.nv-card { background: white; border: 1px solid var(--border); padding: 40px 44px; border-radius: 30px;
  box-shadow: 0 18px 44px rgba(8,25,56,0.08); overflow: hidden; }

.nv-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
  margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid rgba(8,25,56,0.08); flex-wrap: wrap; }
.nv-intro-copy { max-width: 560px; }
.nv-kicker { display: inline-block; margin-bottom: 10px; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); font-family: var(--font-sans); }
.nv-intro-copy strong { display: block; margin-bottom: 8px; font-family: var(--font); font-size: 24px;
  line-height: 1.08; color: var(--green); font-weight: 500; }
.nv-intro-copy p { margin: 0; font-size: 13px; line-height: 1.72; color: var(--text-muted); }
.nv-intro-note { flex: 0 0 auto; max-width: 250px; padding: 12px 16px; border-radius: 18px;
  border: 1px solid rgba(139,111,71,0.14); background: linear-gradient(180deg, rgba(248,245,240,0.95), rgba(248,245,240,0.7));
  font-size: 10.5px; line-height: 1.6; color: var(--text-muted); font-family: var(--font-sans); }
.nv-intro-note strong { color: var(--green); font-weight: 600; }

/* Grille des champs */
.nv-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.nv-section-label { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1;
  padding: 6px 0 12px; font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); font-family: var(--font-sans); }
.nv-section-label::after { content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(139,111,71,0.26), rgba(139,111,71,0)); }
.nv-full { grid-column: 1 / -1; }

.nv-field { padding: 16px 16px 14px; border: 1px solid rgba(8,25,56,0.08); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,245,240,0.9)); }
.nv-field-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.nv-field label { display: block; font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-family: var(--font-sans); }
.nv-field input { width: 100%; padding: 13px 14px; border: 1px solid var(--border); font-size: 15px;
  color: var(--text); font-family: var(--font-sans); background: white; border-radius: 18px; }
.nv-field input:focus { outline: none; border-color: var(--gold); }
.nv-auto { display: inline-flex; align-items: center; font-size: 9.5px; color: var(--gold);
  letter-spacing: 0.05em; white-space: nowrap; font-family: var(--font-sans); }

.nv-help-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 10.5px;
  line-height: 1.5; color: var(--gold); text-decoration: none; font-family: var(--font-sans); letter-spacing: 0.03em; }
.nv-help-link img { width: 28px; height: 28px; object-fit: contain; padding: 4px; border-radius: 10px;
  background: white; border: 1px solid rgba(8,25,56,0.08); box-shadow: 0 6px 16px rgba(8,25,56,0.06); flex: 0 0 auto; }
.nv-help-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Tuiles de résultats */
.nv-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); margin-bottom: 24px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(8,25,56,0.06); }
.nv-tile { background: var(--cream); padding: 24px 18px; text-align: center; }
.nv-tile .v { font-family: var(--font); font-size: 28px; line-height: 1.05; color: var(--green); margin-bottom: 4px; }
.nv-tile .l { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.09em; line-height: 1.5; font-family: var(--font-sans); }
.nv-tile-primary { background: linear-gradient(135deg, var(--green), #0e254b); }
.nv-tile-primary .v { color: var(--gold-light); }
.nv-tile-primary .l { color: rgba(255,255,255,0.6); }

/* Décomposition */
.nv-details { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 12px; }
.nv-details summary { font-size: 12px; color: var(--text-muted); cursor: pointer; font-family: var(--font-sans); }
.nv-dtable { width: 100%; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); border-collapse: collapse; font-family: var(--font-sans); }
.nv-dtable td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
.nv-dtable td:last-child { text-align: right; color: var(--text); font-weight: 500; white-space: nowrap; }
.nv-dtable td.h { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding: 10px 0 6px; text-align: left; font-weight: 400; }
.nv-dtable tr.subtotal td { color: var(--green); font-weight: 600; }
.nv-dtable tr.total td { color: var(--green); font-weight: 600; border-bottom: none; font-size: 13.5px; }

/* Verdict */
.nv-verdict { margin-top: 18px; padding: 14px 18px; font-size: 13px; line-height: 1.6; font-family: var(--font-sans);
  border-left: 3px solid var(--green); background: rgba(8,25,56,0.05); color: var(--green); border-radius: 20px; }
.nv-verdict.warn { border-color: var(--gold); background: rgba(139,111,71,0.07); color: var(--gold); }

/* CTA + note */
.nv-cta-row { display: flex; gap: 14px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.nv-btn-primary, .nv-btn-secondary { display: inline-flex; align-items: center; border-radius: 999px; padding: 14px 26px;
  font-size: 12px; letter-spacing: 0.05em; cursor: pointer; font-family: var(--font-sans); text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.nv-btn-primary { background: var(--gold); color: white; border: 1px solid var(--gold); }
.nv-btn-secondary { background: transparent; color: var(--green); border: 1px solid var(--border); }
.nv-btn-primary:hover, .nv-btn-secondary:hover { transform: translateY(-1px); }
.nv-btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.nv-note { margin-top: 14px; font-size: 10.5px; color: var(--text-light); line-height: 1.6; font-family: var(--font-sans); }

/* ═══ 3. BARÈME IBGI ═══ */
.nba { background: var(--cream); padding: 0 80px 72px; }
.nba-inner { max-width: 920px; margin: 0 auto; }
.nba-head { text-align: center; margin-bottom: 22px; }
.nba-head span { font-size: 10px; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-sans); }
.nv-bareme-wrap { border: 1px solid var(--border); border-radius: 28px; overflow: hidden; background: var(--border);
  box-shadow: 0 12px 30px rgba(8,25,56,0.06); }
.nv-bareme-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.nv-b { background: white; padding: 16px 8px; text-align: center; transition: background 0.2s ease; }
.nv-b > div:first-child { font-family: var(--font); font-size: 19px; color: var(--green); }
.nv-b > div:nth-child(2) { font-size: 9.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-sans); }
.nv-b > div:nth-child(3) { font-size: 8px; color: var(--gold); letter-spacing: 0.03em; margin-top: 3px; font-family: var(--font-sans); }
.nv-b.on { background: var(--green); }
.nv-b.on > div:first-child { color: var(--gold-light); }
.nv-b.on > div:nth-child(2), .nv-b.on > div:nth-child(3) { color: rgba(255,255,255,0.6); }
.nba-note { margin-top: 12px; font-size: 11px; color: var(--text-light); text-align: center; font-family: var(--font-sans); }

/* ═══ 4. Bande courtier ═══ */
.nb { background: var(--green); padding: 72px 80px; text-align: center; }
.nb h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 38px); color: white; line-height: 1.2; }
.nb h2 em { font-style: italic; color: var(--gold-light); }
.nb p { margin: 14px auto 0; font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 56ch; }
.nb button { margin-top: 26px; display: inline-flex; align-items: center; min-height: 52px; background: var(--gold);
  color: white; border: 0; padding: 15px 38px; border-radius: 50px; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; font-family: var(--font-sans); transition: background .3s, transform .3s; }
.nb button:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Maillage interne — 3 cartes en fin de bande courtier */
.nl { max-width: 980px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.nl-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px; overflow: hidden; text-decoration: none; transition: transform .3s, border-color .3s, background .3s; }
.nl-card:hover { transform: translateY(-4px); border-color: var(--gold-light); background: rgba(255,255,255,0.07); }
.nl-media { aspect-ratio: 16 / 10; overflow: hidden; }
.nl-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.nl-card:hover .nl-media img { transform: scale(1.05); }
.nl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 20px; }
.nl-kicker { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); font-family: var(--font-sans); }
.nl-body strong { font-family: var(--font); font-weight: 400; font-size: 19px; color: white; line-height: 1.25; }
.nl-arrow { margin-top: 2px; color: var(--gold-light); font-size: 15px; transition: transform .3s; }
.nl-card:hover .nl-arrow { transform: translateX(6px); }

/* ═══ 5. FAQ — IBGI & remploi ═══ */
.nq { background: var(--cream); padding: 84px 80px; }
.nq-inner { max-width: 820px; margin: 0 auto; }
.nq h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 36px); color: var(--green); line-height: 1.2; margin-bottom: 28px; }
.nq-item { border-top: 1px solid rgba(8,25,56,0.12); }
.nq-item:last-of-type { border-bottom: 1px solid rgba(8,25,56,0.12); }
.nq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; color: var(--green); font-size: 16.5px; line-height: 1.4; font-family: var(--font-sans); }
.nq-item summary::-webkit-details-marker { display: none; }
.nq-item summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 999px; border: 1px solid rgba(139,111,71,0.28); color: var(--gold); font-size: 18px;
  line-height: 1; transition: transform .3s; }
.nq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.nq-item p { margin: 0; padding: 0 0 24px; font-size: 13.5px; color: var(--text-muted); line-height: 1.85; max-width: 68ch; font-family: var(--font-sans); }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .nh { padding-left: 24px; padding-right: 24px; }
  .ns { padding: 40px 16px 32px; }
  .nba { padding: 0 16px 56px; }
  .nb { padding: 56px 24px; }
  .nq { padding: 64px 24px; }
  .nl { grid-template-columns: 1fr; max-width: 440px; }
  .nv-intro { flex-direction: column; align-items: flex-start; }
  .nv-intro-note { max-width: none; width: 100%; }
  .nv-results { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nv-card { padding: 24px 18px; }
  .nv-form-grid { grid-template-columns: 1fr; }
  .nv-section-label { padding-bottom: 10px; }
  .nv-auto { font-size: 9px; }
  .nv-field { padding: 14px 14px 12px; }
  .nv-tile .v { font-size: 24px; }
  .nv-bareme-wrap { overflow-x: auto; }
  .nv-bareme-grid { grid-template-columns: repeat(7, 116px); }
}
@media (max-width: 480px) {
  /* base.css aplatit tout <section> à 36px de padding vertical sur
     téléphone (règle filet !important) — le hero doit garder son
     dégagement sous le menu flottant. */
  .nh { padding-top: calc(var(--r5-header-h, 96px) + 34px) !important; }
}

/* ═════════════════════════════════════════════════════════════════════
   Verrou du net cash — 31/08/2026, demande de Gary : « on ne doit pas
   pouvoir donner une réponse sans avoir un lead ».

   Les deux premières tuiles restent lisibles : elles montrent que le
   calcul a tourné et que le chiffre existe. Seule la troisième — celle
   pour laquelle le vendeur est venu — est floutée. La tuile entière est
   le bouton : pas de lien à chercher à côté.

   Le flou porte sur le MONTANT seul, jamais sur le libellé : le vendeur
   doit lire « Net cash disponible » pour savoir ce qu'il débloque.
   ═════════════════════════════════════════════════════════════════════ */

.nv-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* La tuile est un <button> : on lui retire l'habit de bouton, sauf ce qui
   dit qu'elle est cliquable. r5-forme-libre écarte l'arrondi global. */
button.nv-tile-lock {
  /* Un <button> n'hérite ni de la police ni de la couleur : sans ces deux
     lignes la tuile passait en -apple-system, seule de son rang.
     « r5-forme-libre » dans le gabarit écarte l'arrondi global de 100 px
     qui l'aurait transformée en pastille entre deux tuiles carrées. */
  font-family: var(--font-sans); color: inherit;
  border: 0; width: 100%; display: block;
  cursor: default; position: relative; overflow: hidden;
  text-align: center; -webkit-appearance: none; appearance: none;
}
.nv-tile-cta { display: none; }

.nv-tile-lock.is-locked { cursor: pointer; }
.nv-tile-lock.is-locked .v {
  /* Le flou doit rendre le montant illisible SANS l'effacer : à 9 px sur
     un chiffre de 28, il ne restait qu'une tache, et la tuile semblait
     vide. À 6 px la silhouette du nombre reste lisible — on voit qu'un
     montant est là, on ne peut pas le lire. C'est l'appât. L'or clair
     tient mieux le flou sur le bleu nuit que l'or sourd. */
  filter: blur(6px);
  color: var(--gold-light);
  user-select: none;
  transition: filter .6s ease, color .6s ease;
}

/* L'appel à l'action.
   Première version : 9,5 px, or pâle, un simple soulignement. « On le
   devine, c'est trop discret » (Gary, 31/08). Il devient une pastille
   dorée pleine, à la même échelle que les boutons du site : on ne
   devine plus, on voit un bouton.

   L'animation attire sans clignoter — un site d'immobilier de prestige
   ne clignote pas. Deux gestes lents et distincts :
     · la pastille respire, quatre secondes par cycle ;
     · un reflet balaie le chiffre flouté toutes les cinq secondes,
       comme si la réponse affleurait sans se donner.
   Les deux s'arrêtent au survol : le visiteur a compris, on se tait. */
.nv-tile-lock.is-locked .nv-tile-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--gold);
  border-radius: 50px; border: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.34);
  animation: nv-respire 4s ease-in-out infinite;
}
.nv-cta-oeil { flex: none; }

.nv-tile-lock.is-locked:hover .nv-tile-cta,
.nv-tile-lock.is-locked:focus-visible .nv-tile-cta {
  background: var(--gold-light); animation: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.42);
}
.nv-tile-lock:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@keyframes nv-respire {
  0%, 100% { transform: scale(1);     box-shadow: 0 10px 26px rgba(0,0,0,0.34); }
  50%      { transform: scale(1.045); box-shadow: 0 14px 34px rgba(198,169,124,0.42); }
}

/* Le reflet : une bande claire qui traverse la tuile verrouillée. Elle
   passe SOUS le texte (z-index), sinon elle blanchirait l'intitulé. */
.nv-tile-lock.is-locked::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.16) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: nv-reflet 5s ease-in-out infinite;
}
.nv-tile-lock.is-locked:hover::after { animation: none; opacity: 0; }
.nv-tile-lock .v, .nv-tile-lock .l, .nv-tile-lock .nv-tile-cta { position: relative; z-index: 1; }

@keyframes nv-reflet {
  0%, 62%  { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}

/* Écran qui ne veut pas d'animation : la pastille reste, entière et
   lisible. C'est la forme qui vend, pas le mouvement. */
@media (prefers-reduced-motion: reduce) {
  .nv-tile-lock.is-locked .nv-tile-cta { animation: none; }
  .nv-tile-lock.is-locked::after { display: none; }
}

/* Le montant dévoilé : le flou se retire, il ne disparaît pas d'un coup. */
.nv-tile-lock .v { transition: filter .5s ease; }

/* ── Le formulaire, sous les tuiles ──────────────────────────────── */
.nv-gate {
  margin-top: 18px; padding: 24px 26px;
  background: var(--cream); border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
}
.nv-gate-title { font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--green); line-height: 1.3; }
.nv-gate-sub { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.nv-gate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.nv-gate-form input {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 50px;
  font-size: 13px; font-family: var(--font-sans); background: var(--white); color: var(--text);
}
.nv-gate-form input:focus { outline: none; border-color: var(--gold); }
.nv-gate-form .w { grid-column: 1 / -1; }
.nv-gate-form button {
  grid-column: 1 / -1; min-height: 48px; background: var(--gold); color: #fff; border: 0;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  font-family: var(--font-sans); transition: background .3s;
}
.nv-gate-form button:hover { background: var(--gold-light); }
.nv-gate-form button[disabled] { opacity: 0.6; cursor: wait; }
.nv-gate-status { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.nv-gate-status.is-error { color: #a3342b; }
.nv-gate-conf { margin-top: 10px; font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 560px) {
  .nv-gate-form { grid-template-columns: 1fr; }
  .nv-gate { padding: 20px 18px; }
}

/* Champ obligatoire laissé vide : il se montre. */
.nv-gate-form input.is-missing {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}
