/*
 * apps/notaire_calculator/static/notaire.css
 * ------------------------------------------
 * Ce qui est PROPRE au calculateur de frais de notaire : la grille formulaire
 * et résultat, l'écran d'attente, le détail des frais. Rien d'autre.
 *
 * 🚨 BOOTSTRAP ET LA PALETTE BLEU NUIT ET OR ONT QUITTÉ L'OUTIL LE 12/10/2026
 * (lot 3 du cadre unique) : le chrome vient du cadre commun, aux couleurs du
 * Brief. Et depuis le lot 5 (même jour), bouton, champs, libellés, cartes,
 * alertes et indicateur de chargement sont ceux du jeu commun
 * (`apps/_shared/static/css/composants.css`, classes `m-*`). Les couleurs ci-
 * dessous se lisent dans les valeurs de la marque, aucune n'est en dur hors
 * des états (rien ici n'en porte).
 */

/* Les écrans et les champs conditionnels se cachent par l'attribut `hidden`.
   POURQUOI `!important` : `.nt-etat` pose un `display: flex`, qui l'emporte
   sur la règle du navigateur pour `[hidden]`. Limité à la grille de l'outil :
   rien hors de la page n'est touché. */
.nt-grille [hidden] { display: none !important; }

/* ── Titre de page ── */
.nt-intro { margin: 0 0 1.75rem; }
.nt-titre {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  line-height: 1.15; color: var(--marque-encre, #1a1a1a); margin: 0 0 0.35rem;
}
.nt-chapo { font-size: 1.1rem; color: #555; margin: 0; }

/* ── Grille : formulaire à gauche, résultat à droite ── */
.nt-grille { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 992px) {
  .nt-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 1200px) {
  .nt-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* ── Formulaire : l'espacement entre les champs, les choix sur une ligne ── */
.nt-ligne { margin-bottom: 1rem; }
.nt-ligne--serree { margin-bottom: 0.5rem; }
.nt-choix { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.nt-case--petite { font-size: 0.85rem; }
.nt-bouton { margin-top: 1.5rem; }

/* Les paramètres qui n'apparaissent que pour un cas (TVA, viager, démembrement). */
.nt-encadre {
  background: var(--color-primary-light); border: 1px solid var(--marque-filet, #e3e3e3);
  border-radius: 7px; padding: 1rem;
}
.nt-encadre__titre { font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 0.5rem; }

/* ── Écrans d'attente (vide, calcul en cours) ── */
.nt-etat { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 400px; }
.nt-etat__icone { font-size: 3rem; margin-bottom: 1rem; }
.nt-etat__texte { color: var(--marque-gris, #666); font-size: 0.95rem; margin: 0; }
.nt-sablier { margin-bottom: 1rem; }

/* ── Résultat ── */
.nt-avertissements .m-alerte { margin-bottom: 0.5rem; }
.nt-avertissements { margin-bottom: 1.5rem; }

.nt-total {
  background: var(--color-primary); color: var(--color-text-on-primary);
  border-radius: 10px; padding: 1.5rem; text-align: center; margin-bottom: 1.5rem;
}
.nt-total__libelle { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; margin-bottom: 0.5rem; }
.nt-total__montant { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.01em; }
.nt-total__pct { font-size: 1.1rem; font-weight: 600; margin-top: 0.25rem; }
.nt-total__infos { font-size: 0.75rem; opacity: 0.7; margin-top: 0.5rem; }

.nt-section {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary); border-left: 3px solid var(--color-primary);
  padding-left: 0.75rem; margin-bottom: 0.75rem;
}
.nt-separateur { border: none; border-top: 1px solid var(--marque-filet, #e3e3e3); margin: 1.25rem 0; }

.nt-poste {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--marque-filet, #e3e3e3);
}
.nt-poste__libelle { flex: 1; font-size: 0.875rem; color: var(--marque-encre, #1a1a1a); }
.nt-poste__note { font-size: 0.75rem; color: var(--marque-gris, #666); margin-top: 0.2rem; }
.nt-poste__montant { font-size: 0.9rem; font-weight: 600; white-space: nowrap; text-align: right; min-width: 90px; }
/* Une ligne déjà comprise dans le prix (la TVA du neuf) : affichée pour
   information, grisée, montant barré. */
.nt-poste--inclus { opacity: 0.55; font-style: italic; }
.nt-poste--inclus .nt-poste__montant { text-decoration: line-through; color: var(--marque-gris, #666); }
.nt-taux {
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
  background: var(--color-primary-light); color: var(--color-primary);
  border: 1px solid var(--marque-filet, #e3e3e3);
  padding: 0.1rem 0.45rem; border-radius: 3px;
}
.nt-base { font-size: 0.75rem; color: var(--marque-gris, #666); }

.nt-sous-total {
  display: flex; justify-content: space-between; gap: 1rem;
  background: var(--color-primary-light); border-radius: 4px; padding: 0.5rem 0.75rem; margin-top: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-primary);
}
.nt-sous-total__precision { font-size: 0.75rem; font-weight: 400; color: var(--marque-gris, #666); }

.nt-note { font-size: 0.75rem; color: var(--marque-gris, #666); margin: 1rem 0 0; }

/* La portée du calcul, sous la grille. */
.nt-mentions { font-size: 0.8rem; color: var(--marque-gris, #666); text-align: center; margin: 2.5rem 0 0; }

@media (max-width: 600px) {
  .nt-titre { font-size: 1.6rem; }
  .nt-total__montant { font-size: 2rem; }
}
