/* ==========================================================================
   PierreMalin — magnet 1 (DPE). Direction : « gestion d'actif », instrument
   financier de confiance. Scène sombre, outil clair. 2 familles de police.
   ========================================================================== */

:root {
  --ink: #101a2e; /* chinois-bleu profond : hero + chiffres clés */
  --ink-soft: #1c2a44; /* champs sur fond sombre */
  --paper: #fafbfc; /* fond des sections claires (froid, pas crème) */
  --steel: #64748b; /* texte secondaire, légendes */
  --steel-d: #475569;
  --green: #0e9f6e; /* action : boutons, accents positifs */
  --green-bright: #2fd08f; /* mot surligné sur fond sombre */
  --green-bg: #f2faf7; /* fond bloc « ne te menace pas » */
  --green-line: #bfe5d6;
  --risk: #c4315e; /* risques et dates : framboise profond */
  --risk-bg: #fbf0f4;
  --line: #e5e9f0; /* filets et bordures */
  --sub-dark: #b7c3d4; /* sous-titre sur hero sombre */

  --font-display: "Bricolage Grotesque", "Georgia", serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow-lift: 0 18px 50px rgba(16, 26, 46, 0.18);
  --shadow-card: 0 1px 3px rgba(16, 26, 46, 0.05);
  --maxw: 820px;

  /* Échelle DPE — couleurs officielles françaises */
  --dpe-A: #008040;
  --dpe-B: #52b153;
  --dpe-C: #a5c74e;
  --dpe-D: #f4e70f;
  --dpe-E: #f0a500;
  --dpe-F: #eb6909;
  --dpe-G: #e2001a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ic {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

/* -------------------- Logo & eyebrow -------------------- */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.logo__dot {
  color: var(--green-bright);
}
.logo--sm {
  font-size: 1.05rem;
  color: var(--ink);
}
.logo--sm .logo__dot {
  color: var(--green);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.eyebrow--on-dark {
  color: var(--green-bright);
}
.eyebrow--green {
  color: var(--green);
}

/* -------------------- HERO (sombre) -------------------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 16px 0 26px;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero__ajour {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-bright);
}
.hero__ajour .ic {
  width: 15px;
  height: 15px;
}

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.hero__h1 em {
  font-style: normal;
  color: var(--green-bright);
}

.hero__sub {
  color: var(--sub-dark);
  font-size: 0.98rem;
  margin: 0 0 16px;
}

/* -------------------- Madlib (carte blanche) -------------------- */
.tool-card {
  background: #fff;
  color: var(--ink); /* le hero est en color:#fff ; on remet du texte sombre dans la carte */
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 18px 18px 16px;
}
.panel[hidden] {
  display: none;
}

/* La question devient une phrase à trous : « Mon bien [classé G], [chauffé
   à l'électricité], [loué nu]… » Les menus sont insérés dans le texte, pas
   empilés en colonne. Largeur auto = chaque menu se cale sur son option. */
.madlib__phrase {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 2.05;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 2px 0 16px;
}
.madlib__phrase select {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92em;
  color: var(--green);
  max-width: 100%;
  margin: 0 1px;
  padding: 2px 27px 3px 10px;
  background-color: rgba(14, 159, 110, 0.09);
  border: none;
  border-bottom: 2px solid var(--green);
  border-radius: 7px 7px 2px 2px;
  appearance: none;
  cursor: pointer;
  vertical-align: baseline;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9F6E' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 15px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.madlib__phrase select:hover {
  background-color: rgba(14, 159, 110, 0.15);
}
.madlib__phrase select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.2);
}
/* Tant que le placeholder (value="") est là : trou en pointillé grisé */
.madlib__phrase select:invalid {
  color: var(--steel);
  font-weight: 500;
  background-color: rgba(100, 116, 139, 0.1);
  border-bottom: 2px dashed #b6c0cf;
}
.madlib__phrase select option {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.madlib__phrase select option[disabled] {
  color: var(--steel);
}

/* -------------------- Boutons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 11px;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
}
.btn .ic {
  width: 18px;
  height: 18px;
}
.btn--green {
  background: var(--green);
  color: #fff;
}
.btn--green:hover {
  background: #0c8c60;
}
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: #1b2a45;
}
.btn--lg {
  font-size: 1.05rem;
  padding: 13px 22px;
  margin-top: 2px;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  color: var(--risk);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

/* Bouton + message de réassurance (résultat immédiat, sans email) */
.form-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  flex: 1 1 240px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--steel);
}
.form-note .ic {
  width: 15px;
  height: 15px;
  color: var(--green);
  flex: 0 0 auto;
  margin-top: 2px;
}

/* -------------------- Loader (analyse des textes) -------------------- */
.loader {
  padding: 4px 2px 8px;
}
.loader__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.loader__spin {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  animation: spin 0.7s linear infinite;
}
.loader__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.loader__count {
  margin-left: auto;
  color: var(--steel);
  font-weight: 600;
  font-size: 0.9rem;
}
.loader__track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.loader__bar {
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  border-radius: 999px;
  transition: width 0.35s ease;
}
.loader__current {
  margin: 13px 0 12px;
  color: var(--ink);
  font-weight: 500;
  min-height: 1.4em;
}
.loader__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.loader__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--steel);
  animation: fadein 0.3s ease;
}
.loader__item .ic {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex: 0 0 auto;
}

/* -------------------- Bandeau du résultat + « Refaire » -------------------- */
.result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.result .report__label {
  margin: 0;
}
.redo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  color: var(--steel-d);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.redo .ic {
  width: 14px;
  height: 14px;
}
.redo:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Rappel des données saisies + bouton Modifier */
.recap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.recap__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}
.recap__item {
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.recap__k {
  color: var(--steel);
  font-weight: 600;
}
.recap__k::after {
  content: " :";
}
.recap__edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.recap__edit .ic {
  width: 15px;
  height: 15px;
}
.recap__edit:hover {
  background: var(--green-bg);
}

/* ======================================================================
   RÉSULTAT — « rapport sur ton actif »
   ====================================================================== */
.report {
  padding: 40px 22px 8px;
}
.report[hidden] {
  display: none;
}

.report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.report__label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--steel);
  margin: 0;
}

.badge-ajour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 4px 10px;
}
.badge-ajour .ic {
  width: 13px;
  height: 13px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--steel);
  margin: 30px 0 14px;
}

/* -------------------- Blocs statut -------------------- */
.status-blocks {
  display: grid;
  gap: 16px;
}

.status {
  border-radius: var(--radius);
  padding: 20px 20px;
}

/* Ce qui ne te menace PAS */
.status--safe {
  background: var(--green-bg);
  border: 1px solid var(--green-line);
}
.status--safe .status__label {
  color: var(--green);
}

/* Ce qui te menace VRAIMENT */
.status--risk {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--risk);
  border-radius: 4px var(--radius) var(--radius) 4px;
}
.status--risk .status__label {
  color: var(--risk);
}

.status__label {
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.status__label .ic {
  width: 15px;
  height: 15px;
}

.status__body {
  margin: 0;
  color: var(--ink);
}

/* Stats (dates / sommes en grand) */
.status__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 4px 0 14px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 8vw, 2.8rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--steel);
  max-width: 22ch;
}

.status__risk {
  margin: 0 0 6px;
  color: var(--risk);
  font-weight: 500;
}

.status__notes {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.status__notes li {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 6px;
  padding-left: 16px;
  position: relative;
}
.status__notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel);
  opacity: 0.5;
}

/* Micro-lien source */
.src {
  color: var(--steel-d);
  text-decoration: none;
  border-bottom: 1px dotted var(--steel);
  font-size: 0.9em;
  white-space: nowrap;
}
.src:hover {
  color: var(--ink);
  border-bottom-style: solid;
}

/* Pastille de classe DPE */
.dpe-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  margin-left: 8px;
}
.dpe-chip--D {
  color: var(--ink);
}

/* -------------------- Pistes (cartes numérotées) -------------------- */
.pistes {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.piste {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 18px 18px 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.piste:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 26, 46, 0.08);
}
.piste--star {
  border-color: var(--green-line);
  box-shadow: 0 0 0 1px var(--green-line), var(--shadow-card);
}

.piste__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.piste--verify .piste__badge {
  color: var(--risk);
  background: var(--risk-bg);
  border-color: #efc9d5;
}

.piste__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.piste__num {
  color: var(--steel);
}

.piste__consiste {
  margin: 0 0 12px;
  color: var(--ink);
}

.piste__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px 0 12px;
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.piste__toggle .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.piste__toggle[aria-expanded="true"] .ic {
  transform: rotate(180deg);
}

.piste__detail {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 12px;
}
.piste__detail[hidden] {
  display: none;
}
.detail-block {
  margin-bottom: 12px;
}
.detail-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin: 0 0 5px;
}
.detail-list {
  margin: 0;
  padding-left: 18px;
}
.detail-list li {
  margin-bottom: 4px;
}

/* consiste en attente (phase 2) — indicateur sobre « on rédige » */
.piste__consiste--pending {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 3.1em;
  color: var(--steel);
  font-style: italic;
  font-size: 0.96rem;
}
.piste__consiste--pending .ic {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: 0 0 auto;
}
.writing::after {
  content: "";
  animation: dots 1.5s steps(1, end) infinite;
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
.consiste-text {
  animation: fadein 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .writing::after {
    content: "…";
    animation: none;
  }
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--steel);
  margin: 22px 0 4px;
}
.drom {
  font-size: 0.84rem;
  color: var(--steel);
  margin: 0;
}

/* -------------------- Capture -------------------- */
.capture {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.capture__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.capture__text {
  flex: 1 1 240px;
  font-weight: 600;
  margin: 0;
}
.capture__form {
  display: flex;
  gap: 10px;
  flex: 1 1 300px;
}
.capture__objform {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.capture input {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.capture input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16);
}
.capture__object {
  margin-top: 20px;
}
.capture__object .capture__text {
  margin-bottom: 10px;
}
.capture__thanks {
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: var(--green-bg);
  border-radius: 4px 10px 10px 4px;
}

/* ======================================================================
   NOS SOURCES — le registre
   ====================================================================== */
.sources {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 52px 0 60px;
  margin-top: 40px;
}
.sources__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.sources__sub {
  color: var(--steel);
  max-width: 54ch;
  margin: 0 0 26px;
}

.registry {
  border-top: 1px solid var(--line);
}
.reg-row {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 13px 2px;
  border-bottom: 0.5px solid var(--line);
}
.reg-row__name {
  flex: 1 1 auto;
  min-width: 0; /* autorise le retour à la ligne, évite le débordement */
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted #cbd3e0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.reg-row__name:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--green);
}
.reg-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.reg-row__date {
  color: var(--steel);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reg-row__status {
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 4px 10px;
}
.st--vigueur {
  color: var(--green);
  background: var(--green-bg);
}
.st--maj {
  color: var(--steel);
  background: #f1f5f9;
}
.st--surveille {
  color: var(--risk);
  background: var(--risk-bg);
}
.reg-row[hidden] {
  display: none;
}

.registry__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 14px 0;
}

/* Carte d'abonnement (sombre) */
.subscribe {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 22px 22px;
  margin-top: 14px;
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.subscribe__text {
  min-width: 0;
}
.subscribe__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.subscribe__sub {
  color: var(--sub-dark);
  font-size: 0.94rem;
  margin: 0;
}
.subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subscribe__form input {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #2b3a56;
  border-radius: 10px;
  background: var(--ink-soft);
  color: #fff;
}
.subscribe__form input::placeholder {
  color: #7f8ca6;
}
.subscribe__form input:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(47, 208, 143, 0.2);
}
.subscribe__msg {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--green-bright);
}

/* Abonnement dans le résultat : TACT 1 = email seul (champ plus grand).
   L'affinage du bien (ville/CP/surface) se fait dans la modale, pas ici. */
.subscribe--result {
  margin-top: 24px;
}
.subscribe--result .subscribe__form input {
  font-size: 1.05rem;
  padding: 14px 16px;
}
.subscribe__fine {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #8b97ad;
}
.subscribe__thanks {
  color: #fff;
  font-size: 0.95rem;
}
.subscribe__thanks strong {
  color: var(--green-bright);
}
/* -------------------- Compte à rebours (bloc « menace ») -------------------- */
.countdown {
  margin: 2px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--risk);
}
.countdown__num {
  font-size: clamp(1.9rem, 6.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 3px;
  vertical-align: -0.12em;
}
.countdown--inforce {
  font-size: 1rem;
  font-weight: 600;
}

/* -------------------- Modale d'affinage du bien (TACT 2) -------------------- */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  width: calc(100% - 32px);
  max-width: 460px;
  margin: auto; /* centrée en desktop (dialog::showModal) */
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(16, 26, 46, 0.55);
}
.modal__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 26px 24px 22px;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9px;
  background: #f1f4f9;
  color: var(--steel-d);
  cursor: pointer;
}
.modal__close:hover {
  background: #e6ebf3;
  color: var(--ink);
}
.modal__close .ic {
  width: 18px;
  height: 18px;
}
.modal__done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--green);
}
.modal__done .ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.modal__sub {
  margin: 0 0 16px;
  color: var(--steel-d);
  font-size: 0.95rem;
  line-height: 1.45;
}
.modal__form {
  display: grid;
  gap: 10px;
}
.modal__form input {
  width: 100%;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.modal__form input::placeholder {
  color: var(--steel);
}
.modal__form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16);
}
.modal__form .btn {
  width: 100%;
  margin-top: 2px;
}
.modal__later {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--steel);
  font-size: 0.92rem;
  text-decoration: underline;
  cursor: pointer;
}
.modal__later:hover {
  color: var(--ink);
}
#object-thanks .btn {
  width: 100%;
  margin-top: 8px;
}

/* Bottom-sheet sur mobile : la modale se colle en bas (compatible clavier) */
@media (max-width: 560px) {
  .modal {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .modal__card {
    border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
  }
}

.seal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.84rem;
  color: var(--steel);
}
.seal .ic {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* -------------------- Footer -------------------- */
.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--steel);
  font-size: 0.88rem;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

/* -------------------- Squelette / animations -------------------- */
.sk {
  background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}
.sk-line {
  height: 12px;
  margin-bottom: 9px;
}
.sk-line.short {
  width: 62%;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.reveal {
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sk,
  .reveal,
  .consiste-text,
  .piste,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------- Desktop -------------------- */
@media (min-width: 680px) {
  .hero {
    padding: 20px 0 36px;
  }
  .tool-card {
    padding: 22px 26px 20px;
  }
  .madlib__phrase {
    font-size: 1.34rem;
    line-height: 2.15;
  }
  .btn--lg {
    width: auto;
  }
  /* Les pistes restent en blocs verticaux pleine largeur (pas de colonnes). */

  /* Bloc d'abonnement bas de page : texte | formulaire */
  .subscribe--notify {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 24px 26px;
  }
  .subscribe--notify .subscribe__form {
    min-width: 320px;
  }
  .subscribe--notify .subscribe__msg {
    grid-column: 1 / -1;
  }
}

/* -------------------- Mobile : registre plus fluide -------------------- */
@media (max-width: 560px) {
  .reg-row {
    align-items: flex-start;
  }
  /* date + statut empilés verticalement, alignés à droite */
  .reg-row__meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding-top: 1px;
  }
}
