/* Brings Immo Nice : funnel d'estimation, de lead et de présentation.
   Palette approximative (codes officiels du réseau à remplacer quand fournis).
   Layout : une colonne, largeur de lecture 680 px, bandes pleine largeur uniquement pour le hero et le pied. */

:root {
  --bg: #0b1026;          /* bleu nuit, fond principal */
  --bg-2: #141b3a;        /* surfaces, cartes, champs */
  --bg-3: #1d2650;        /* survol, états */
  --fg: #f4f5f8;          /* texte principal sur fond sombre */
  --fg-2: #b9bed0;        /* texte secondaire : 9,8:1 sur --bg */
  --or: #c9a24b;          /* accent premium : titres en exergue, filets */
  --or-clair: #e2c27a;
  --cta-1: #f7931e;       /* dégradé CTA */
  --cta-2: #e8264f;
  --violet: #a62c8f;      /* accent secondaire : bandeaux de section */
  --ligne: rgba(244, 245, 248, 0.14);
  --danger: #ff8a8a;
  --succes: #8fe3b0;
  --focus: #ffd166;
  --texte-cta: #0b1026;   /* sur dégradé : 3,9:1 ; réservé aux textes 19 px gras (seuil grand texte 3:1) */
  --rayon: 14px;
  --police-titre: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--police-texte);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-family: var(--police-titre); font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-family: var(--police-titre); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--or-clair); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.lien-evitement {
  position: absolute; left: 16px; top: -100px; background: var(--fg); color: var(--bg);
  padding: 10px 14px; border-radius: 8px; z-index: 50; font-weight: 600;
}
.lien-evitement:focus { top: 12px; }

.entete {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px; border-bottom: 1px solid var(--ligne);
}
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: 0.04em; }
.marque__pastille {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-1), var(--cta-2));
  display: grid; place-items: center; color: var(--bg); font-family: var(--police-titre); font-weight: 700;
}
.marque__texte { font-size: 0.95rem; }
.marque__texte small { display: block; font-weight: 400; color: var(--fg-2); font-size: 0.78rem; letter-spacing: 0.02em; }
.entete__tel { color: var(--fg); font-weight: 600; text-decoration: none; white-space: nowrap; }

main { display: block; padding-block: 32px 56px; max-width: 680px; margin-inline: auto; }
main.large { max-width: 980px; }

.kicker { color: var(--or); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--fg); margin-bottom: 1.2em; }
.texte-discret { color: var(--fg-2); font-size: 0.9rem; }
.bloc { margin-block: 40px; }
.bloc + .bloc { border-top: 1px solid var(--ligne); padding-top: 40px; }

.liste { padding: 0; margin: 0 0 1em; list-style: none; display: grid; gap: 10px; }
.liste li { position: relative; padding-left: 26px; }
.liste li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 2px; background: var(--or); }
.liste--non li::before { background: var(--danger); }
ol.liste { list-style: decimal; padding-left: 1.6em; }
ol.liste li { padding-left: 4px; }
ol.liste li::before { display: none; }

.placeholder {
  display: inline-block; padding: 0 6px; border-radius: 4px;
  background: rgba(201, 162, 75, 0.16); color: var(--or-clair);
  font-size: 0.92em; font-weight: 600; border: 1px dashed rgba(201, 162, 75, 0.6);
}

.bandeau-gabarit {
  background: rgba(255, 138, 138, 0.1); border: 1px solid var(--danger); color: var(--fg);
  padding: 14px 16px; border-radius: var(--rayon); margin-bottom: 24px; font-size: 0.95rem;
}

/* boutons : libellé = action */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1.1875rem/1.2 var(--police-texte); text-decoration: none; text-align: center;
  background: linear-gradient(90deg, var(--cta-1), var(--cta-2)); color: var(--texte-cta);
  box-shadow: 0 10px 30px -12px rgba(232, 38, 79, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.bouton:hover { filter: brightness(1.06); color: var(--texte-cta); }
.bouton:active { transform: translateY(1px); }
.bouton--secondaire {
  background: transparent; color: var(--fg); border: 1px solid var(--ligne); box-shadow: none; font-size: 1rem; font-weight: 600;
}
.bouton--secondaire:hover { color: var(--fg); border-color: var(--or); }
.bouton[disabled] { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }

/* Hero */
.hero { padding-block: 40px 16px; }
.hero__cta { margin-top: 8px; }
.hero__preuves { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 0.92rem; color: var(--fg-2); }
.hero__preuves span::before { content: "— "; color: var(--or); }

/* Formulaire multi-étapes */
.progression { margin: 8px 0 28px; }
.progression__piste { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.progression__barre { height: 100%; width: 0; background: linear-gradient(90deg, var(--cta-1), var(--cta-2)); transition: width 0.3s ease; }
.progression__texte { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--fg-2); margin-top: 8px; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; font-size: 1.02rem; }
.aide { display: block; color: var(--fg-2); font-size: 0.9rem; margin-top: 4px; }

.champ { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.champ label, .champ .libelle { font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--ligne); font: inherit;
}
input, select, textarea { min-width: 0; max-width: 100%; }  /* largeur intrinsèque des champs : jamais plus large que leur colonne */
.champ > * { min-width: 0; }
input::placeholder, textarea::placeholder { color: #8d94ad; }
input:focus, select:focus, textarea:focus { border-color: var(--or); outline: 3px solid var(--focus); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.erreur { color: var(--danger); font-size: 0.92rem; font-weight: 600; }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border: 1px solid var(--ligne); border-radius: 999px; background: var(--bg-2); cursor: pointer; font-weight: 500;
}
.options label:has(input:checked) { border-color: var(--or); background: var(--bg-3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--or); }
.options input { width: 18px; height: 18px; accent-color: var(--or); margin: 0; }

.case { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.case input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--or); }
.case span { color: var(--fg); font-size: 0.97rem; }

.grille-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grille-2 { grid-template-columns: 1fr 1fr; } }

.bloc-resultat {
  background: var(--bg-2); border: 1px solid var(--ligne); border-radius: 18px; padding: 24px;
}
.chiffre { font-family: var(--police-titre); font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); color: var(--or-clair); font-variant-numeric: tabular-nums; line-height: 1.1; margin: 4px 0; }
.chiffre-plage { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 600; }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.94rem; display: block; overflow-x: auto; }
.tableau th, .tableau td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { color: var(--fg-2); font-weight: 600; }
.tableau td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.drapeau {
  display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 138, 138, 0.14); color: var(--danger); border: 1px solid rgba(255, 138, 138, 0.5);
}
.drapeau--info { background: rgba(201, 162, 75, 0.12); color: var(--or-clair); border-color: rgba(201, 162, 75, 0.5); }
.note-legale {
  font-size: 0.88rem; color: var(--fg-2); border-left: 3px solid var(--or); padding: 6px 0 6px 14px; margin-top: 18px;
}

/* Pied de page */
.pied {
  margin-top: 48px; padding-block: 28px 36px; border-top: 1px solid var(--ligne);
  font-size: 0.86rem; color: var(--fg-2);
}
.pied p { max-width: none; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }

/* Visibilité des étapes */
.etape[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 900px) {
  main { padding-block: 56px 80px; }
  .hero { padding-block: 72px 24px; }
}

/* Logos officiels : pastille en en-tête, wordmark blanc en pied (fond sombre uniquement, un seul logo par zone) */
.marque__pastille { object-fit: cover; }
.pied__logo { display: block; width: 160px; height: auto; margin-bottom: 14px; }
#res-drapeaux { margin-top: 16px; }
.titre-resultat { font-size: 1.1rem; font-family: var(--police-texte); }
.titre-resultat--grand { font-size: 1.2rem; }

/* Champ piège anti-robot (honeypot) : hors écran, jamais rempli par un humain */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Page de présentation d'un bien (parcours C) */
.galerie { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .galerie { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.galerie__case {
  min-width: 0; aspect-ratio: 4 / 3; border-radius: 14px; border: 1px dashed rgba(201, 162, 75, 0.6);
  display: grid; place-items: center; text-align: center; padding: 12px; color: var(--or-clair); background: var(--bg-2);
  font-size: 0.9rem; max-width: 100%; overflow-wrap: anywhere;
}
.fiche { width: 100%; border-collapse: collapse; }
.fiche th, .fiche td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.fiche th { color: var(--fg-2); font-weight: 600; width: 45%; }
.prix { font-family: var(--police-titre); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-variant-numeric: tabular-nums; color: var(--or-clair); margin: 0; }
