/* ==========================================================================
   Valeur de ma propriété — feuille de style
   Palette et typographie : guide de normes graphiques Équipe Déry
   (rouge #d0103a, noir, gris, police Archivo Semi Bold pour les titres)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de la marque */
  --rouge: #d0103a;
  --rouge-fonce: #a80d2f;
  --rouge-pale: #fbe9ed;
  --noir: #000000;
  --anthracite: #1e1e1e;
  --gris-fonce: #707070;
  --texte-doux: #595959;
  --gris-acier: #a2a2a2;
  --gris-argent: #dedede;
  --perle: #f9f9f9;
  --ivoire: #f6f3ee;
  --blanc: #ffffff;

  --erreur: #a80d2f;
  --rouge-sur-noir: #f2506f;      /* rouge éclairci pour le petit texte sur fond noir (contraste AA) */
  --bordure-champ: #949494;       /* bordure des champs : contraste 3:1 sur fond blanc */

  --police-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --rayon: 16px;
  --rayon-sm: 12px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .10);
  --ease: cubic-bezier(.22, .8, .26, 1);

  --hauteur-entete: 76px;
  --marge: clamp(16px, 4vw, 40px);

  /* Thème variable selon l'écran (clair par défaut) */
  --fond: var(--ivoire);
  --texte: var(--noir);
  --texte-secondaire: var(--texte-doux);
  --anneau-focus: var(--rouge);
}

/* Écran d'accueil : fond noir (logo blanc, accent rouge) */
body[data-ecran="accueil"] {
  --fond: var(--noir);
  --texte: var(--blanc);
  --texte-secondaire: #cfcfcf;
  --anneau-focus: var(--blanc);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2 { margin: 0; font-family: var(--police-titre); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--anneau-focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

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

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blanc); color: var(--noir); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.lien-evitement:focus { top: 12px; }

/* Champs à compléter (identifiants du courtier) — bien visibles volontairement */
.a-remplir {
  background: #ffe14d; color: #000; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- En-tête ---------- */
.entete {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--hauteur-entete);
  padding: 14px var(--marge);
}
.entete__logo { display: block; line-height: 0; }
.logo { height: 46px; width: auto; }
.logo--blanc { display: none; }
body[data-ecran="accueil"] .logo--noir { display: none; }
body[data-ecran="accueil"] .logo--blanc { display: block; }

.entete__tel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid currentColor; text-decoration: none;
  font-family: var(--police-titre); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.entete__tel:hover { background: var(--texte); color: var(--fond); }
.entete__tel-texte { display: none; }

/* ---------- Barre de progression ---------- */
.progression {
  padding: 0 var(--marge) 22px;
  max-width: 680px; width: 100%; margin: 0 auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
body:not([data-progression="off"]) .progression {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.progression__texte {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.progression__piste { height: 6px; border-radius: 999px; background: var(--gris-argent); overflow: hidden; }
.progression__barre {
  height: 100%; width: 0; border-radius: 999px; background: var(--rouge);
  transition: width .6s var(--ease);
}

/* ---------- Scène et étapes ---------- */
.scene {
  position: relative; flex: 1 0 auto;
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--hauteur-entete));
}
.scene:focus { outline: none; }
#demande { position: relative; flex: 1; display: flex; flex-direction: column; }

.etape {
  display: none; position: relative;
  flex: 1; flex-direction: column; justify-content: center;
  width: 100%; padding: 8px 0 56px;
}
.etape.est-actif { display: flex; }
.etape.est-sortant { position: absolute; inset: 0; pointer-events: none; }

.etape__contenu {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: 0 var(--marge);
}
.etape__contenu--large { max-width: 1120px; }
.etape__contenu--centre { text-align: center; }

/* Transitions entre étapes (avant / retour) */
@keyframes entree-avant { from { opacity: 0; transform: translate3d(36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sortie-avant { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(-36px, 0, 0); } }
@keyframes entree-retour { from { opacity: 0; transform: translate3d(-36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sortie-retour { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(36px, 0, 0); } }

.scene[data-sens="avant"] .est-entrant { animation: entree-avant .5s var(--ease) both; }
.scene[data-sens="avant"] .est-sortant { animation: sortie-avant .3s ease both; }
.scene[data-sens="retour"] .est-entrant { animation: entree-retour .5s var(--ease) both; }
.scene[data-sens="retour"] .est-sortant { animation: sortie-retour .3s ease both; }

/* ---------- Typographie des étapes ---------- */
.surtitre {
  margin: 0 0 14px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rouge);
}
.titre { font-size: clamp(1.75rem, 5.2vw, 2.4rem); margin-bottom: 28px; }
.titre-hero { font-size: clamp(2.5rem, 8.4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 22px; max-width: 12em; }
.accent { color: var(--rouge); }
body[data-ecran="accueil"] .surtitre { color: var(--rouge-sur-noir); }
.intro { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--texte-secondaire); max-width: 34em; margin-bottom: 32px; }
.intro--grand { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--texte); margin-bottom: 18px; }
.facultatif {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--texte-secondaire); margin-left: .4em; white-space: nowrap;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 30px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--police-titre); font-weight: 600; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primaire { background: var(--rouge); color: var(--blanc); box-shadow: 0 6px 18px rgba(208, 16, 58, .28); }
.btn--primaire:hover { background: var(--rouge-fonce); }
.btn--secondaire { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn--secondaire:hover { background: var(--noir); color: var(--blanc); }
.btn--lien { background: none; color: var(--texte-secondaire); padding: 0 12px; min-height: 48px; font-weight: 600; }
.btn--lien:hover { color: var(--noir); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }
.btn.est-chargement .icone { display: none; }
.btn.est-chargement .btn__texte::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .7em; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: rotation .7s linear infinite;
}
@keyframes rotation { to { transform: rotate(360deg); } }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.actions--pile { flex-direction: column; align-items: stretch; }
.actions--centre { justify-content: center; }
.actions .btn--primaire { flex: 0 1 auto; }

/* ---------- Écran d'accueil ---------- */
.etape--accueil { overflow: hidden; }
.etape--accueil .etape__contenu { padding-top: 8px; }

.maisons {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(-40px, -3vw); bottom: -10px;
  width: min(52vw, 560px); height: auto;
  fill: none; stroke: var(--rouge); stroke-width: .55; stroke-linejoin: miter;
  opacity: .55;
}
.maisons path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 2.4s var(--ease) .3s forwards; }
.maisons path:nth-child(2) { animation-delay: .8s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

.recherche { position: relative; max-width: 720px; }
.recherche__rangee {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.recherche__zone { position: relative; }
.recherche__champ {
  width: 100%; min-height: 60px;
  padding: 0 20px 0 52px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--blanc); color: var(--noir);
  font-size: 1.0625rem; font-weight: 500;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
  transition: border-color .2s, box-shadow .2s;
}
.recherche__champ::placeholder { color: var(--gris-fonce); font-weight: 400; }
.recherche__champ:focus-visible { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(208, 16, 58, .35), 0 10px 34px rgba(0, 0, 0, .35); }
.recherche__pin { position: absolute; left: 20px; top: 20px; width: 20px; height: 20px; color: var(--rouge); pointer-events: none; z-index: 1; }
.recherche__bouton { min-height: 60px; }

.note-champ { font-size: .8125rem; color: var(--texte-secondaire); margin: 14px 4px 0; }
.note-champ a { text-decoration: underline; }
.note-champ.est-probleme { color: #ffb3c1; font-size: .875rem; }

.assurances {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: .98rem; color: var(--texte-secondaire);
}
.assurances li { display: flex; align-items: center; gap: 12px; }
.assurances .icone { color: var(--rouge); width: 1.4em; height: 1.4em; }

/* Suggestions d'adresses */
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  list-style: none; margin: 0; padding: 6px;
  background: var(--blanc); color: var(--noir);
  border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  text-align: left; overflow: hidden;
}
.suggestions__option {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 16px 12px 48px; border-radius: 16px; cursor: pointer; position: relative;
}
.suggestions__option::before {
  content: ""; position: absolute; left: 18px; top: 17px; width: 16px; height: 16px;
  background: currentColor; opacity: .4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 1 1 14 0c0 4.9-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 1 1 14 0c0 4.9-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.suggestions__option[aria-selected="true"], .suggestions__option:hover { background: var(--perle); }
.suggestions__option[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--rouge); }
.suggestions__principal { font-weight: 500; }
.suggestions__principal strong { font-weight: 700; }
.suggestions__secondaire { font-size: .875rem; color: var(--texte-doux); }
.suggestions__vide { padding: 14px 16px; font-size: .95rem; color: var(--texte-doux); }
/* Attribution Google : exigée par les conditions d'utilisation de Places API (New) */
.suggestions__attribution {
  display: flex; justify-content: flex-end; padding: 6px 14px 4px;
  font-size: .75rem; color: var(--gris-fonce);
}

/* ---------- Carte d'adresse (confirmation) ---------- */
.carte-adresse {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--blanc); border: 2px solid var(--gris-argent); border-radius: var(--rayon);
  padding: 22px 22px; margin-bottom: 28px; box-shadow: var(--ombre);
}
.carte-adresse__pin { color: var(--rouge); width: 30px; height: 30px; margin-top: 2px; }
.carte-adresse__principal { font-family: var(--police-titre); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin: 0 0 4px; }
.carte-adresse__secondaire { color: var(--texte-doux); margin: 0; }
.carte-adresse__manuelle { margin: 8px 0 0; font-size: .85rem; color: var(--texte-doux); }

/* ---------- Champs ---------- */
.champ { margin-bottom: 22px; }
.champ > label, .groupe > legend, .champ--inline > label {
  display: block; margin-bottom: 8px;
  font-family: var(--police-titre); font-weight: 600; font-size: 1rem; color: var(--noir);
}
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  background: var(--blanc); color: var(--noir);
  border: 2px solid var(--bordure-champ); border-radius: var(--rayon-sm);
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.champ input:hover, .champ textarea:hover { border-color: var(--gris-fonce); }
.champ input:focus-visible, .champ textarea:focus-visible {
  outline: none; border-color: var(--noir); box-shadow: 0 0 0 4px rgba(208, 16, 58, .25);
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris-fonce); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ__unite { position: relative; max-width: 220px; }
.champ__unite input { padding-right: 52px; }
.champ__unite span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--texte-doux); font-weight: 600; }
.champ--inline { margin: 22px 0 0; }
.champ--inline > label { font-weight: 500; font-family: var(--police-texte); color: var(--texte-doux); font-size: .95rem; }

.aide { font-size: .875rem; color: var(--texte-doux); margin: 8px 0 0; }
.groupe > .aide { margin: -2px 0 10px; }
.grille-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }

.erreur { color: var(--erreur); font-size: .9rem; font-weight: 600; margin: 8px 0 0; }
.erreur::before { content: "⚠ "; }
.recherche .erreur { color: #ffb3c1; margin: 12px 8px 0; }
.erreur--envoi { margin-top: 18px; padding: 14px 16px; background: var(--rouge-pale); border-radius: var(--rayon-sm); }

.groupe { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.groupe > legend { padding: 0; }

/* ---------- Boutons à choix (radios et cases) ---------- */
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choix--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choix--liste { grid-template-columns: 1fr; }
.choix label { position: relative; display: block; min-width: 0; }
.choix input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.choix span {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  min-height: 56px; padding: 12px 16px;
  background: var(--blanc); border: 2px solid var(--gris-argent); border-radius: var(--rayon-sm);
  font-weight: 500; line-height: 1.25; color: var(--noir);
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .12s;
}
.choix span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--bordure-champ); background: var(--blanc);
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.choix--cases span::before { border-radius: 6px; }
.choix input:hover + span { border-color: var(--gris-acier); }
.choix input:checked + span { border-color: var(--rouge); background: var(--rouge-pale); box-shadow: inset 0 0 0 1px var(--rouge); }
.choix input:checked + span::before { border-color: var(--rouge); background: var(--rouge); box-shadow: inset 0 0 0 3.5px var(--rouge-pale); }
.choix--cases input:checked + span::before {
  box-shadow: none; background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.choix input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.choix input:active + span { transform: scale(.985); }

/* ---------- Consentement ---------- */
.consentement { margin: 8px 0 18px; }
.case { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.case input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.case__boite {
  flex: none; width: 24px; height: 24px; margin-top: 2px;
  border: 2px solid var(--gris-fonce); border-radius: 6px; background: var(--blanc);
  transition: border-color .18s, background-color .18s;
}
.case input:checked ~ .case__boite {
  border-color: var(--rouge); background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.case input:focus-visible ~ .case__boite { outline: 3px solid var(--rouge); outline-offset: 3px; }
.case input[aria-invalid="true"] ~ .case__boite { border-color: var(--erreur); }
.case__texte { font-size: .95rem; line-height: 1.45; color: var(--noir); }
.case__texte a { color: var(--rouge-fonce); font-weight: 600; }

.avis-eval { font-size: .875rem; color: var(--texte-doux); border-left: 3px solid var(--rouge); padding: 2px 0 2px 14px; margin: 18px 0 0; text-align: left; }

/* Champ piège : hors écran, jamais display:none (certains robots l'ignorent alors) */
.piege { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Écran de confirmation ---------- */
.merci__coche {
  width: 84px; height: 84px; margin: 0 auto 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--rouge); color: var(--blanc);
  box-shadow: 0 10px 30px rgba(208, 16, 58, .35);
}
.merci__coche .icone { width: 46px; height: 46px; stroke-width: 2.4; }
.est-actif .merci__coche { animation: pop .6s var(--ease) .15s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.merci__detail { color: var(--texte-doux); max-width: 32em; margin: 0 auto 8px; }
#etape-merci .titre { margin-bottom: 14px; }
#etape-merci .avis-eval { max-width: 36em; margin: 24px auto 0; }

.avis-noscript { margin: 16px var(--marge); padding: 16px; background: var(--rouge-pale); color: var(--noir); border-radius: var(--rayon-sm); }

/* ---------- Pied de page ---------- */
.pied { background: var(--anthracite); color: #d9d9d9; padding: 48px var(--marge) 40px; font-size: .95rem; position: relative; z-index: 2; }
.pied__contenu { max-width: 1120px; margin: 0 auto; }
.pied a { color: #fff; }
.pied__marques { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; margin-bottom: 32px; }
.pied__marques img:first-child { height: 52px; width: auto; }
.pied__marques img:last-child { height: 34px; width: auto; }
.pied__colonnes { display: grid; grid-template-columns: 1fr; gap: 8px 48px; }
.pied__titre { font-family: var(--police-titre); font-weight: 600; color: #fff; font-size: 1.05rem; margin-bottom: .4em; }
.pied__avis { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid #3a3a3a; font-size: .875rem; color: #bdbdbd; max-width: 60em; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 8px; font-size: .9rem; }
.pied__copy { margin: 0; font-size: .8125rem; color: #9a9a9a; }
.lien-bouton { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: inherit; }
.pied :focus-visible { outline-color: #fff; }

/* ---------- Bannière de témoins (injectée par consent.js) ---------- */
.temoins {
  position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-left: auto; margin-right: auto;
  background: var(--blanc); color: var(--noir);
  border-radius: var(--rayon); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border: 1px solid var(--gris-argent);
  padding: 22px; max-height: calc(100svh - 24px); overflow: auto;
  --texte: var(--noir); --texte-secondaire: var(--texte-doux); --anneau-focus: var(--rouge);
  animation: entree-bas .5s var(--ease) both;
}
@keyframes entree-bas { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.temoins__titre { font-family: var(--police-titre); font-weight: 600; font-size: 1.15rem; margin: 0 0 8px; }
.temoins p { font-size: .925rem; color: var(--texte-doux); margin: 0 0 14px; }
.temoins a { color: var(--rouge-fonce); font-weight: 600; }
.temoins__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.temoins__actions .btn { min-height: 46px; padding: 0 20px; font-size: .95rem; flex: 1 1 140px; }
.temoins .btn--secondaire { color: var(--noir); }
.temoins__perso { margin: 4px 0 16px; border-top: 1px solid var(--gris-argent); }
.temoins__option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gris-argent); }
.temoins__option input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--rouge); flex: none; }
.temoins__option strong { display: block; font-size: .95rem; }
.temoins__option span { font-size: .85rem; color: var(--texte-doux); }
.temoins :focus-visible { outline-color: var(--rouge); }

/* ---------- Pages de texte (politique de confidentialité, 404) ---------- */
.page-texte { background: var(--ivoire); }
.page-texte .entete { color: var(--noir); }
.document { max-width: 780px; margin: 0 auto; padding: 24px var(--marge) 72px; }
.document h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 10px; }
.document h2 { font-size: 1.4rem; margin: 2.2em 0 .6em; }
.document h3 { font-family: var(--police-titre); font-weight: 600; font-size: 1.1rem; margin: 1.6em 0 .4em; }
.document p, .document li { color: #222; }
.document ul { padding-left: 1.2em; }
.document li { margin-bottom: .4em; }
.document a { color: var(--rouge-fonce); font-weight: 600; }
.document .maj { color: var(--texte-doux); font-size: .95rem; margin-bottom: 2em; }
.document .encadre { background: var(--blanc); border: 1px solid var(--gris-argent); border-left: 4px solid var(--rouge); border-radius: var(--rayon-sm); padding: 16px 20px; margin: 1.4em 0; }
.document .encadre p:last-child { margin-bottom: 0; }
.document table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; background: var(--blanc); }
.document th, .document td { text-align: left; padding: 10px 12px; border: 1px solid var(--gris-argent); vertical-align: top; }
.document th { background: var(--perle); font-family: var(--police-titre); font-weight: 600; }
.document .table-defilement { overflow-x: auto; }
.retour-accueil { display: inline-flex; align-items: center; gap: .5em; margin-bottom: 1.4em; font-weight: 600; text-decoration: none; }
.retour-accueil:hover { text-decoration: underline; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
  .entete__tel-texte { display: inline; }
  .logo { height: 54px; }
  .grille-2 { grid-template-columns: 1fr 1fr; }
  .choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choix--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choix--rang5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .choix--rang5 span { padding: 12px; gap: 10px; }
  .choix--liste { grid-template-columns: 1fr; }
  .recherche__rangee { display: flex; align-items: center; gap: 0; background: var(--blanc); border-radius: 999px; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
  .recherche__zone { position: static; flex: 1; display: flex; }
  .recherche__champ { flex: 1; box-shadow: none; background: transparent; border-color: transparent; padding-right: 12px; }
  .recherche__champ:focus-visible { box-shadow: none; border-color: transparent; }
  .recherche__rangee:focus-within { box-shadow: 0 0 0 4px rgba(208, 16, 58, .4), 0 10px 34px rgba(0, 0, 0, .35); }
  .recherche__bouton { margin: 4px; flex: none; min-height: 52px; box-shadow: none; }
  .recherche__pin { top: 20px; }
  .actions--pile { flex-direction: row; align-items: center; }
  .assurances { flex-direction: row; flex-wrap: wrap; gap: 14px 32px; }
  .pied__colonnes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .temoins { left: 20px; right: auto; bottom: 20px; margin: 0; max-width: 470px; }
  .etape--accueil .etape__contenu { padding-bottom: 24px; }
  .maisons { opacity: .75; width: min(40vw, 560px); right: 2vw; bottom: 0; }
  .titre-hero { max-width: 10.5em; }
}

/* Petits écrans : la décoration s'efface derrière le contenu */
@media (max-width: 639px) {
  .maisons { opacity: .28; width: 78vw; right: -14vw; bottom: 0; }
  .assurances { margin-top: 32px; }
  .actions { margin-top: 30px; }
  .actions .btn--primaire { flex: 1 1 auto; }
  .temoins { left: 8px; right: 8px; bottom: 8px; padding: 18px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .maisons path { stroke-dashoffset: 0; }
}

@media print {
  .entete__tel, .progression, .temoins, .maisons { display: none !important; }
}

/* Vue satellite : les crédits Google restent dégagés au bas de la scène. */
.fond-satellite { position: absolute; inset: 0; display: none; overflow: hidden; }
.fond-satellite__carte { position: absolute; inset: 0; }
.fond-satellite__voile { position: absolute; inset: 0 0 28px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.83), rgba(0,0,0,.42)); }
body[data-ecran="accueil"] .fond-satellite,
body[data-carte="confirmation"] .fond-satellite { display: block; }
body[data-ecran="accueil"] .scene,
body[data-carte="confirmation"] .scene { padding-bottom: 32px; }
body[data-ecran="accueil"] .maisons { display: none; }
body[data-ecran="accueil"] .titre-hero .accent { color: #f2506f; }
body[data-ecran="accueil"] .etape__contenu { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
body[data-ecran="accueil"] .recherche { text-shadow: none; }
body[data-carte="confirmation"] #etape-confirmation .etape__contenu {
  background: #fff; border-radius: 20px; padding: 32px; width: calc(100% - 40px);
  box-shadow: 0 16px 64px rgba(0,0,0,.25); }
@media (max-width: 600px) {
  .fond-satellite__voile { background: rgba(0,0,0,.65); }
  body[data-carte="confirmation"] #etape-confirmation .etape__contenu { padding: 24px; }
}

/* Photos de clients après la confirmation d'envoi. */
#etape-merci { justify-content: flex-start; padding-bottom: 0; }
.merci__confirmation { min-height: calc(100svh - var(--hauteur-entete)); display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding-top: 48px; padding-bottom: 64px; }
.souvenirs { width: 100%; background: #161310; color: #fff; padding: 48px clamp(20px, 3.2vw, 64px); }
.souvenirs__entete { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.souvenirs__entete h3 { margin: 0; font-family: var(--police-titre); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.3; }
.souvenirs__entete em { font-weight: inherit; }
.souvenirs__avis { flex-shrink: 0; display: inline-flex; align-items: center; gap: 20px; min-height: 44px; text-decoration: none;
  border-bottom: 1px solid #a2a2a2; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.souvenirs__avis:hover { color: #f2506f; border-color: currentColor; }
.souvenirs__defilement { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: #a2a2a2 #161310; }
.souvenirs__photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.souvenirs__photo { scroll-snap-align: start; min-width: 0; }
.souvenirs__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 1000px) { .souvenirs__photos { grid-template-columns: repeat(6, minmax(210px, 1fr)); } }
@media (max-width: 600px) {
  .souvenirs { padding-top: 32px; padding-bottom: 24px; }
  .souvenirs__entete { align-items: flex-start; flex-direction: column; gap: 14px; }
  .souvenirs__photos { grid-template-columns: repeat(6, minmax(72vw, 1fr)); gap: 12px; }
}
