/* ==========================================================================
   Airyod — système visuel
   Identité marocaine : palette de la médina, zellige, arcs mauresques.
   Aucun build, aucune dépendance : ce fichier est servi tel quel.
   ========================================================================== */

:root {
  /* Terres et parchemins */
  --sable:      #f7f3ea;
  --sable-2:    #efe7d7;
  --sable-3:    #e6dbc6;
  --parchemin:  #fffcf6;
  --encre:      #17140f;
  --encre-2:    #5c5347;
  --encre-3:    #8a8073;
  --ligne:      #e3d9c7;
  --ligne-2:    #d3c6ae;

  /* Couleurs de la médina */
  --terre:      #9c3d28;   /* tadelakt, pisé de Marrakech */
  --terre-2:    #bf5734;
  --terre-3:    #f3e3dc;
  --majorelle:  #2e4a9e;   /* bleu Majorelle */
  --majorelle-2:#e7ebf7;
  --safran:     #cf9724;
  --safran-2:   #fbf1d7;
  --menthe:     #1f6b54;   /* thé à la menthe */
  --menthe-2:   #e3efe9;
  --turquoise:  #1c7c7a;
  --or:         #b8892b;

  --rayon:   12px;
  --rayon-s: 8px;
  --rayon-l: 20px;

  --ombre:   0 1px 2px rgba(23,20,15,.04), 0 8px 28px rgba(23,20,15,.07);
  --ombre-s: 0 1px 2px rgba(23,20,15,.05), 0 3px 10px rgba(23,20,15,.05);
  --ombre-l: 0 2px 6px rgba(23,20,15,.06), 0 24px 60px rgba(23,20,15,.12);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --entete-h: 68px;
  --large: 1180px;
}

/* Motifs — tous en SVG, aucun fichier image à charger ---------------------- */
:root {
  /* Khatem : l'étoile à huit branches du zellige */
  --motif-zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%239c3d28' stroke-width='1.1'%3E%3Crect x='13' y='13' width='38' height='38'/%3E%3Crect x='13' y='13' width='38' height='38' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  /* Moucharabieh : entrelacs de cercles */
  --motif-mouch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='17'/%3E%3Ccircle cx='48' cy='0' r='17'/%3E%3Ccircle cx='0' cy='48' r='17'/%3E%3Ccircle cx='48' cy='48' r='17'/%3E%3Ccircle cx='24' cy='24' r='17'/%3E%3C/g%3E%3C/svg%3E");
  /* Frise de zellige : dents de scie */
  --motif-frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 12 L6 0 L12 12 L18 0 L24 12' fill='none' stroke='%23cf9724' stroke-width='2'/%3E%3C/svg%3E");
}

/* Arc mauresque — masque réutilisable */
.arc {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140 L0 78 C0 42 14 18 34 7 C41 3 46 0 50 0 C54 0 59 3 66 7 C86 18 100 42 100 78 L100 140 Z' fill='%23000'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140 L0 78 C0 42 14 18 34 7 C41 3 46 0 50 0 C54 0 59 3 66 7 C86 18 100 42 100 78 L100 140 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* Base --------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); }

body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: var(--terre); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0; }
:focus-visible { outline: 2px solid var(--majorelle); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--large); margin: 0 auto; padding: 0 22px; }
.wrap--etroit { max-width: 860px; }
.wrap--moyen { max-width: 1020px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Lien d'évitement : masqué sans sortir du cadre, sinon il crée une zone
   défilable — visible en lecture de droite à gauche. */
.saut {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 16px;
  transform: translateY(-200%);
}
.saut:focus { transform: translateY(0); }

/* Titres de section --------------------------------------------------------- */
.section { padding: 72px 0; }
.section--sable { background: var(--sable-2); }
.section--encre { background: var(--encre); color: var(--sable); }
.section--encre h2, .section--encre h3 { color: var(--parchemin); }

.surtitre {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terre);
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
}
.surtitre::before { content: ""; width: 26px; height: 8px; background: var(--motif-frise); background-size: 12px 6px; }
.section--encre .surtitre { color: var(--safran); }

.titre-section { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 14px; }
.chapo { font-size: 17.5px; color: var(--encre-2); max-width: 66ch; margin: 0; }
.section--encre .chapo { color: #cfc7b8; }
.tete-section { margin-bottom: 36px; }
.tete-section--flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* En-tête ------------------------------------------------------------------- */
.tete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,252,246,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.tete__in { display: flex; align-items: center; gap: 18px; height: var(--entete-h); }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo__image { display: block; width: auto; height: 56px; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  font-size: 14.5px; text-decoration: none; color: var(--encre-2);
  padding: 8px 12px; border-radius: var(--rayon-s); white-space: nowrap;
}
.nav a:hover { color: var(--terre); background: var(--terre-3); }
.nav a[aria-current="page"] { color: var(--terre); font-weight: 600; }

.tete__outils { display: flex; align-items: center; gap: 8px; }

.select-mini {
  font: inherit; font-size: 13px; color: var(--encre-2);
  background: transparent; border: 1px solid var(--ligne-2);
  border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.select-mini:hover { border-color: var(--terre); color: var(--terre); }

.puce-fav {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--ligne-2);
  color: var(--encre-2); text-decoration: none; background: transparent;
}
.puce-fav:hover { border-color: var(--terre); color: var(--terre); }
.puce-fav b {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px;
  background: var(--terre); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; padding: 0 5px;
}
.puce-fav b.on { display: flex; }

.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--ligne-2);
  background: transparent; border-radius: var(--rayon-s); cursor: pointer;
  align-items: center; justify-content: center; color: var(--encre);
}

/* Tiroir mobile */
.tiroir {
  position: fixed; inset: 0; z-index: 70; background: rgba(23,20,15,.45);
  opacity: 0; pointer-events: none; overflow: hidden; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.tiroir.on { opacity: 1; pointer-events: auto; visibility: visible; }
.tiroir__panneau {
  position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: min(340px, 88vw);
  background: var(--parchemin); padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.tiroir.on .tiroir__panneau { transform: translateX(0); }
.tiroir__panneau a { padding: 13px 10px; text-decoration: none; color: var(--encre); border-bottom: 1px solid var(--ligne); font-size: 16px; }
.tiroir__haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* Langue et devise dans le tiroir : l'en-tete les masque sous 1000 px. */
.tiroir__reglages { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px 4px; }
.tiroir__reglage { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tiroir__reglage > span {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2);
}
.tiroir__reglage .select-mini { flex: 0 0 auto; min-width: 132px; font-size: 14px; padding: 8px 12px; }

/* Boutons ------------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--rayon-s);
  background: var(--terre); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; font-family: inherit;
  border: 1px solid var(--terre); cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.bouton:hover { background: var(--terre-2); border-color: var(--terre-2); }
.bouton:active { transform: translateY(1px); }
.bouton--fantome { background: transparent; color: var(--terre); }
.bouton--fantome:hover { background: var(--terre-3); }
.bouton--encre { background: var(--encre); border-color: var(--encre); }
.bouton--encre:hover { background: #322c23; border-color: #322c23; }
.bouton--clair { background: var(--parchemin); color: var(--encre); border-color: var(--parchemin); }
.bouton--clair:hover { background: #fff; border-color: #fff; }
.bouton--vert { background: var(--menthe); border-color: var(--menthe); }
.bouton--vert:hover { background: #24805f; border-color: #24805f; }
.bouton--petit { padding: 9px 15px; font-size: 13.5px; }
.bouton--bloc { width: 100%; }

/* Accroche ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--encre); color: var(--sable); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--motif-zellige); background-size: 92px 92px; opacity: .14;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, rgba(156,61,40,.55), transparent 62%),
              radial-gradient(90% 80% at 100% 100%, rgba(46,74,158,.42), transparent 60%);
}
.hero__in { position: relative; z-index: 2; padding-block: 84px 76px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); color: var(--parchemin); margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--safran); }
.hero__texte { font-size: 18.5px; color: #d8d0c2; max-width: 58ch; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__marque { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(247,243,234,.16); }
.hero__marque div b { display: block; font-family: var(--serif); font-size: 26px; color: var(--safran); }
.hero__marque div span { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #b8b0a2; }

.hero__visuel { position: relative; aspect-ratio: 3/4; max-height: 460px; }
.hero__arc {
  position: absolute; inset: 0;
  background: url("../photos/mockriadhome.png") center/cover no-repeat;
  border: 0;
}
.hero__legende {
  position: absolute; inset-inline-start: -18px; bottom: 26px; z-index: 3;
  background: var(--parchemin); color: var(--encre); border-radius: var(--rayon);
  padding: 14px 18px; box-shadow: var(--ombre-l); font-size: 13.5px; max-width: 230px;
}
.hero__legende b { display: block; font-family: var(--serif); font-size: 19px; }

/* Barre de recherche --------------------------------------------------------- */
.recherche {
  position: relative; z-index: 3; background: var(--parchemin);
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  box-shadow: var(--ombre-l); padding: 14px; margin: -34px auto 0; max-width: var(--large);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px;
}
.champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.champ > label, .champ > span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); }
.champ select, .champ input, .champ textarea {
  font: inherit; font-size: 15px; color: var(--encre);
  border: 1px solid var(--ligne); border-radius: var(--rayon-s);
  background: var(--parchemin); padding: 10px 12px; width: 100%;
}
.champ select:focus, .champ input:focus, .champ textarea:focus { border-color: var(--terre); outline: none; box-shadow: 0 0 0 3px var(--terre-3); }
.champ textarea { min-height: 130px; resize: vertical; }
/* Cartes de biens ------------------------------------------------------------ */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.grille--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.carte {
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--ligne-2); }
.carte__lien { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.carte__img { aspect-ratio: 4/3; background: var(--sable-2); position: relative; overflow: hidden; }
.carte__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte__vide {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--encre-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sable-2) var(--motif-zellige); background-size: 56px 56px;
}
.carte__vide span { background: var(--sable-2); padding: 3px 10px; }
.carte__corps { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.carte__nom { font-size: 21px; margin: 0; }
.carte__lieu { font-size: 13.5px; color: var(--encre-2); margin: 0; display: flex; align-items: center; gap: 6px; }
.carte__tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--encre-2); }
.carte__tags span { background: var(--sable-2); border-radius: 999px; padding: 3px 10px; }
.carte__chiffres { display: flex; gap: 22px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ligne); }
.carte__chiffre b { display: block; font-size: 18px; font-weight: 700; }
.carte__chiffre span { font-size: 11.5px; color: var(--encre-3); text-transform: uppercase; letter-spacing: .06em; }
.carte__chiffre--vedette b { color: var(--terre); }

.coeur {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,252,246,.94); color: var(--encre-2);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre-s);
}
.coeur:hover { color: var(--terre); }
.coeur[aria-pressed="true"] { color: var(--terre); }
.coeur[aria-pressed="true"] svg { fill: var(--terre); }

/* Liste (vue alternative) */
.grille--liste { grid-template-columns: 1fr; }
.grille--liste .carte__lien { flex-direction: row; }
.grille--liste .carte__img { width: 300px; aspect-ratio: auto; flex: none; }
.grille--liste .carte__corps { padding: 22px 24px; }
@media (max-width: 720px) {
  .grille--liste .carte__lien { flex-direction: column; }
  .grille--liste .carte__img { width: 100%; aspect-ratio: 4/3; }
}

/* Pastilles ------------------------------------------------------------------ */
.pastille {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; width: fit-content;
}
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.pastille--disponible { background: var(--menthe-2); color: var(--menthe); border-color: #c6ded4; }
.pastille--offre      { background: var(--safran-2); color: #9a710f; border-color: #ecdcb2; }
.pastille--reserve    { background: var(--sable-2); color: var(--encre-2); border-color: var(--ligne); }
.carte__img .pastille { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--parchemin); box-shadow: var(--ombre-s); }

/* Filtres -------------------------------------------------------------------- */
.filtres {
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 18px; margin-bottom: 26px;
}
.filtres__entete {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 0; font: inherit; color: var(--encre); cursor: pointer;
}
.filtres__entete b { font-size: 15px; }
.filtres__entete svg { transition: transform .15s ease; }
.filtres__entete[aria-expanded="true"] svg { transform: rotate(90deg); }
.filtres__corps { margin-top: 18px; }
.filtres__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.filtres__pied { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.compteur { font-size: 14.5px; color: var(--encre-2); }
.compteur b { color: var(--encre); font-weight: 700; }
.vues { display: flex; gap: 4px; }
.vues button {
  border: 1px solid var(--ligne-2); background: transparent; border-radius: var(--rayon-s);
  width: 36px; height: 36px; cursor: pointer; color: var(--encre-2);
  display: flex; align-items: center; justify-content: center;
}
.vues button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--parchemin); }
.lien-nu { background: none; border: 0; padding: 0; font: inherit; color: var(--terre); cursor: pointer; text-decoration: underline; }

/* Blocs ---------------------------------------------------------------------- */
.bloc {
  background: var(--parchemin); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 26px 28px; margin-bottom: 22px;
}
.bloc > h2 { font-size: 21px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.bloc > h2::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.bloc p { margin: 0 0 12px; color: var(--encre-2); }
.bloc p:last-child { margin-bottom: 0; }
.bloc--accent { border-color: var(--terre); box-shadow: 0 0 0 3px var(--terre-3); }

.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 24px; }
.fait b { display: block; font-size: 19px; font-weight: 700; }
.fait span { font-size: 12px; color: var(--encre-3); text-transform: uppercase; letter-spacing: .06em; }

.lignes { width: 100%; border-collapse: collapse; font-size: 15px; }
.lignes td { padding: 11px 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.lignes tr:last-child td { border-bottom: 0; }
.lignes td:first-child { color: var(--encre-2); width: 52%; padding-inline-end: 16px; }
.lignes td:last-child { text-align: end; font-weight: 600; }
.lignes tr.total td { font-weight: 700; font-size: 17px; border-top: 2px solid var(--encre); border-bottom: 0; padding-top: 14px; }

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deux .bloc { margin-bottom: 0; }
.trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

/* Fiche ---------------------------------------------------------------------- */
.fil { font-size: 13px; color: var(--encre-3); padding: 18px 0 0; }
.fil a { color: var(--encre-2); text-decoration: none; }
.fil a:hover { color: var(--terre); }

.fiche__tete { padding: 22px 0 24px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.fiche__ref { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); }
.fiche h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 8px 0 12px; }
.fiche__prix { text-align: end; }
.fiche__prix b { display: block; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); color: var(--terre); }
.fiche__prix span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-3); }

.galerie { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 32px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); display: block; cursor: zoom-in; }
.galerie__principale { aspect-ratio: 3/2; }
.galerie__col { display: grid; gap: 10px; grid-template-rows: 1fr 1fr; }
.galerie__col > * { aspect-ratio: 3/2; }
.galerie__plus { position: relative; }
.galerie__plus b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(23,20,15,.55); color: #fff; border-radius: var(--rayon); font-size: 18px; cursor: zoom-in;
}
.galerie__aucune {
  aspect-ratio: 16/7; border-radius: var(--rayon); background: var(--sable-2) var(--motif-zellige);
  background-size: 64px 64px; display: flex; align-items: center; justify-content: center;
  color: var(--encre-3); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 32px;
}
.galerie__aucune span { background: var(--sable-2); padding: 6px 14px; }

/* Visionneuse */
.visio { position: fixed; inset: 0; z-index: 90; background: rgba(15,13,10,.94); display: none; }
.visio.on { display: flex; align-items: center; justify-content: center; }
.visio img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: var(--rayon-s); }
.visio__fermer, .visio__prec, .visio__suiv {
  position: absolute; background: rgba(255,252,246,.14); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 999px; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.visio__fermer { top: 20px; inset-inline-end: 20px; }
.visio__prec { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.visio__suiv { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.visio__compte { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); color: #cfc7b8; font-size: 13px; }

.rendement { font-family: var(--serif); font-size: 34px; color: var(--terre); line-height: 1; }
.scenario--cible { border-color: var(--terre); }
.scenario > h2 { display: block; }
.scenario > h2::after { display: none; }
.scenario h2 small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--encre-3); margin-top: 5px; font-weight: 400; }

/* Simulateur */
.curseurs { display: grid; gap: 20px; }
.curseur label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.curseur label b { font-weight: 700; }
.curseur input[type="range"] { width: 100%; accent-color: var(--terre); }
.resultat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.resultat div b { display: block; font-family: var(--serif); font-size: 27px; color: var(--terre); line-height: 1.1; }
.resultat div span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); }

/* Plan de situation stylisé */
/* Plan de la médina ----------------------------------------------------------
   Un seul dessin sert deux usages : le grand plan des quartiers et le petit
   plan de situation des fiches. Tout est en SVG, dans le repère du viewBox. */
.plan {
  position: relative; margin: 0; border-radius: var(--rayon); overflow: hidden;
  background: var(--sable-2); border: 1px solid var(--ligne);
}
.plan svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.plan--grand { background: var(--parchemin); box-shadow: var(--ombre-s); }
.plan:not(.plan--grand) { max-width: 380px; margin-inline: auto; }

.plan__fond      { fill: var(--sable); }
.plan__remparts  { fill: var(--sable-3); stroke: var(--terre); stroke-width: 4; stroke-linejoin: round; }
.plan__axes      { fill: none; stroke: #c9b795; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }

.plan__porte circle { fill: #c3b393; }
.plan__porte text   { fill: var(--encre-3); font-size: 22px; }
.plan__repere circle, .plan__repere rect { fill: var(--safran); }
.plan__repere text  { fill: var(--encre-2); font-size: 24px; font-weight: 600; }
.plan__grain        { fill: #bda986; opacity: .5; }
.plan__tissu        { pointer-events: none; }

/* Repères de quartier : numérotés comme la liste, colorés par secteur. */
.plan__q            { cursor: pointer; }
/* transform-box : sans lui, l'échelle prendrait pour origine le viewBox entier. */
.plan__halo         { fill: currentColor; opacity: .18; transform: scale(.55); transform-box: fill-box; transform-origin: center; transition: transform .18s, opacity .18s; }
.plan__pastille     { fill: currentColor; stroke: var(--parchemin); stroke-width: 3; }
.plan__num          { fill: #fff; font-size: 24px; font-weight: 700; text-anchor: middle; }
.plan__q--nord      { color: var(--terre); }
.plan__q--sud       { color: var(--menthe); }
.plan__q:hover .plan__halo,
.plan__q:focus .plan__halo,
.plan__q.est-visee .plan__halo { transform: scale(1); opacity: .3; }
.plan__q.est-choisi .plan__halo { transform: scale(1); opacity: .36; }
.plan__q.est-choisi .plan__pastille { stroke: var(--encre); stroke-width: 4; }
.plan__q:focus      { outline: none; }
.plan__q:focus .plan__pastille { stroke: var(--encre); stroke-width: 4; }

.plan__bulle        { opacity: 0; transition: opacity .16s; pointer-events: none; }
.plan__bulle rect   { fill: var(--encre); }
.plan__bulle text   { fill: var(--parchemin); font-size: 24px; font-weight: 600; text-anchor: middle; }
.plan__q:hover .plan__bulle,
.plan__q:focus .plan__bulle,
.plan__q.est-visee .plan__bulle,
.plan__q.est-choisi .plan__bulle,
.plan__bien .plan__bulle { opacity: 1; }

/* Le bien sur sa fiche : un halo qui bat, pour dire l'approximation. */
.plan__bien-point   { fill: var(--terre); stroke: var(--parchemin); stroke-width: 2.5; }
.plan__bien-halo    { fill: var(--terre); opacity: .12; }
.plan__bien-halo--2 { opacity: .2; }

.plan__legende {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 12px 16px; border-top: 1px solid var(--ligne);
  background: var(--parchemin); font-size: 13px; color: var(--encre-2);
}
.plan__legende em { font-style: normal; color: var(--encre-3); }
.plan__cle { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.plan__cle::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--terre); }
.plan__cle--sud::before { background: var(--menthe); }
.plan__legende--fiche { justify-content: space-between; }
.plan__legende--fiche span { font-weight: 600; color: var(--encre); }

/* Page Quartiers : le plan à gauche, la liste à droite, le plan reste visible. */
.quartiers-page { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 34px; align-items: start; }
.quartiers-page__plan { position: sticky; top: calc(var(--entete-h) + 18px); }
.quartiers-groupe + .quartiers-groupe { margin-top: 40px; }
.quartiers-groupe__titre {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-size: 21px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ligne);
}
.quartiers-groupe__titre small { font-size: 13px; font-weight: 400; color: var(--encre-3); font-family: var(--sans); }

.vignette--quartier { padding: 22px; scroll-margin-top: calc(var(--entete-h) + 24px); transition: border-color .18s, box-shadow .18s; }
.vignette--quartier.est-visee { border-color: var(--terre); box-shadow: var(--ombre); }
.vignette--quartier.vignette--sud.est-visee { border-color: var(--menthe); }
.vignette--quartier.est-choisi {
  border-color: var(--terre); background: var(--parchemin);
  box-shadow: var(--ombre), inset 0 0 0 1px var(--terre);
}
.vignette--quartier.vignette--sud.est-choisi {
  border-color: var(--menthe); box-shadow: var(--ombre), inset 0 0 0 1px var(--menthe);
}
.vignette__tete { display: flex; align-items: flex-start; gap: 12px; }
.vignette__tete h3 { margin: 0 0 2px; }
.vignette__rang {
  flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--sans); color: #fff; background: var(--terre);
}
.vignette--sud .vignette__rang { background: var(--menthe); }

@media (max-width: 900px) {
  .quartiers-page { grid-template-columns: 1fr; gap: 26px; }
  .quartiers-page__plan { position: static; max-width: 420px; margin-inline: auto; width: 100%; }
}

/* Barre d'action collante : encadrée comme un bloc, plutôt qu'une bande
   plein-large, pour rester cohérente avec le reste de la fiche. */
.cta-collant {
  position: sticky; bottom: 12px; z-index: 40;
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon);
  box-shadow: var(--ombre-l); padding: 22px 28px; margin-top: 36px;
}
.cta-collant__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cta-collant__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Rappel du prix : il suit la lecture jusqu'au bas de la fiche. */
.cta-collant__bien { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.cta-collant__prix { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-collant__prix b { font-family: var(--serif); font-size: 21px; color: var(--encre); line-height: 1.2; }
.cta-collant__ref {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2);
}
.cta-collant__bien .note { margin: 0; font-size: 13px; color: var(--encre-2); }

/* La barre porte deja WhatsApp : le bouton flottant ferait doublon par-dessus. */
body:has(.cta-collant) .wa-flottant { display: none; }

@media (max-width: 760px) {
  .cta-collant { padding: 18px 20px; }
  .cta-collant__in { gap: 10px; }
  .cta-collant__bien .note { display: none; }
  .cta-collant__actions { width: 100%; flex-wrap: nowrap; }
  /* Le cœur passe en bouton rond, icône seule : le WhatsApp reste l'action
     principale et garde toute la largeur restante sur une seule ligne. */
  .cta-collant__actions .bouton--fantome {
    flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  }
  .cta-collant__actions .bouton--fantome span { display: none; }
  .cta-collant__actions .bouton--vert { flex: 1; }
}

/* Étapes --------------------------------------------------------------------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: e; }
.etape { position: relative; padding-top: 54px; }
.etape::before {
  counter-increment: e; content: counter(e);
  position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 40px;
  border-radius: 999px; background: var(--terre); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px;
}
.etape::after { content: ""; position: absolute; top: 20px; inset-inline-start: 50px; inset-inline-end: -12px; height: 1px; background: var(--ligne-2); }
.etape:last-child::after { display: none; }
.etape h3 { font-size: 18px; margin: 0 0 8px; }
.etape p { font-size: 14.5px; color: var(--encre-2); margin: 0; }
.section--encre .etape p { color: #b8b0a2; }
.section--encre .etape::after { background: rgba(247,243,234,.2); }
@media (max-width: 700px) { .etape::after { display: none; } }

/* Vignettes services / valeurs ------------------------------------------------ */
.vignette {
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.vignette__icone {
  width: 46px; height: 46px; border-radius: var(--rayon-s); background: var(--terre-3);
  color: var(--terre); display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.vignette h3 { font-size: 19px; margin: 0; }
.vignette p { font-size: 14.5px; color: var(--encre-2); margin: 0; }
.vignette ul { margin: 4px 0 0; padding-inline-start: 18px; font-size: 14.5px; color: var(--encre-2); }
.vignette li { margin-bottom: 5px; }

/* Quartiers ------------------------------------------------------------------- */
.quartiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.quartier {
  position: relative; border-radius: var(--rayon); overflow: hidden; text-decoration: none;
  color: var(--parchemin); min-height: 190px; display: flex; align-items: flex-end; padding: 20px;
  background: linear-gradient(165deg, var(--terre-2), #6d2a1b);
  border: 1px solid transparent;
}
.quartier:nth-child(2n)  { background: linear-gradient(165deg, #3f5cb5, var(--majorelle)); }
.quartier:nth-child(3n)  { background: linear-gradient(165deg, #2a8f74, var(--menthe)); }
.quartier:nth-child(4n)  { background: linear-gradient(165deg, #ddab3c, #a8760f); }
.quartier::before { content: ""; position: absolute; inset: 0; background: var(--motif-mouch); background-size: 48px 48px; opacity: .26; }
.quartier:hover::before { opacity: .4; }
.quartier > div { position: relative; z-index: 2; }
.quartier b { font-family: var(--serif); font-size: 22px; display: block; }
.quartier span { font-size: 13px; opacity: .88; }

/* Chiffres clés ---------------------------------------------------------------- */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px; }
.chiffre b { display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); color: var(--terre); line-height: 1; }
.section--encre .chiffre b { color: var(--safran); }
.chiffre span { font-size: 13.5px; color: var(--encre-2); }
.section--encre .chiffre span { color: #b8b0a2; }

/* Guides ----------------------------------------------------------------------- */
.guide-carte {
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.guide-carte__haut { height: 128px; position: relative; background: linear-gradient(150deg, var(--terre-2), #6d2a1b); }
.guide-carte:nth-child(3n+2) .guide-carte__haut { background: linear-gradient(150deg, #3f5cb5, var(--majorelle)); }
.guide-carte:nth-child(3n+3) .guide-carte__haut { background: linear-gradient(150deg, #2a8f74, var(--menthe)); }
.guide-carte__haut::before { content: ""; position: absolute; inset: 0; background: var(--motif-mouch); background-size: 44px 44px; opacity: .28; }
.guide-carte__corps { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-carte h3 { font-size: 19px; margin: 0; }
.guide-carte p { font-size: 14.5px; color: var(--encre-2); margin: 0; }
.meta { font-size: 12.5px; color: var(--encre-3); letter-spacing: .04em; }

.article { font-size: 17px; }
.article h2 { font-size: 25px; margin: 38px 0 14px; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p { color: var(--encre-2); margin: 0 0 16px; }
.article ul, .article ol { color: var(--encre-2); padding-inline-start: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  margin: 24px 0; padding: 18px 22px; border-inline-start: 3px solid var(--terre);
  background: var(--parchemin); border-radius: 0 var(--rayon-s) var(--rayon-s) 0; color: var(--encre);
  font-family: var(--serif); font-size: 19px;
}
.sommaire { background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px 24px; margin: 28px 0; }
.sommaire b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 10px; }
.sommaire ol { margin: 0; padding-inline-start: 20px; }
.sommaire a { color: var(--encre-2); text-decoration: none; }
.sommaire a:hover { color: var(--terre); }

/* Accordéon (FAQ) --------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  padding: 18px 0; cursor: pointer; font-family: var(--serif); font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--terre); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--encre-2); max-width: 74ch; }

/* Témoignages -------------------------------------------------------------------- */
.temoignage {
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.temoignage p { font-family: var(--serif); font-size: 18px; margin: 0; }
.temoignage footer { font-size: 13.5px; color: var(--encre-3); }
.temoignage footer b { color: var(--encre); display: block; font-weight: 700; }

/* Bandeau d'appel ----------------------------------------------------------------- */
.bandeau {
  position: relative; overflow: hidden; background: var(--terre); color: var(--parchemin);
  border-radius: var(--rayon-l); padding: 46px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.bandeau::before { content: ""; position: absolute; inset: 0; background: var(--motif-mouch); background-size: 52px 52px; opacity: .22; }
.bandeau > * { position: relative; z-index: 2; }
.bandeau h2 { font-size: clamp(24px, 3vw, 32px); color: var(--parchemin); margin: 0 0 8px; }
.bandeau p { margin: 0; color: rgba(255,252,246,.86); max-width: 56ch; }

/* Formulaires ---------------------------------------------------------------------- */
.formulaire { display: grid; gap: 16px; }
.formulaire__deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--encre-2); }
.consentement input { margin-top: 4px; }
.message-ok {
  background: var(--menthe-2); border: 1px solid #c6ded4; color: var(--menthe);
  border-radius: var(--rayon-s); padding: 14px 16px; font-size: 15px;
}

/* Mandat de vente (/mandat) ------------------------------------------------------------ */
.mandat { max-width: 760px; }
.mandat__titre { font-size: 19px; margin: 10px 0 -4px; }
.mandat__titre:first-of-type { margin-top: 0; }
.mandat__surface { max-width: 220px; }
.mandat__texte {
  background: var(--sable); border: 1px solid var(--ligne); border-radius: var(--rayon-s);
  padding: 16px 18px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--encre);
}
.mandat__texte p { margin: 0 0 10px; color: inherit; }
.mandat__texte p:last-child { margin-bottom: 0; }
.mandat__cadre { position: relative; }
/* touch-action: none, sinon le doigt fait défiler la page au lieu de signer. */
.mandat__signature {
  display: block; width: 100%; aspect-ratio: 5 / 2; touch-action: none; cursor: crosshair;
  background: #fff; border: 1px dashed var(--ligne-2); border-radius: var(--rayon-s);
}
.mandat__signature.est-signe { border-style: solid; }
.mandat__signature[aria-invalid="true"], .mandat .champ input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px #f7e0de; }
.mandat__effacer { position: absolute; top: 8px; right: 8px; }
.mandat__aide { font-size: 12.5px; color: var(--encre-3); }
.mandat__erreur { font-size: 13.5px; color: #b3261e; text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Questionnaire de qualification (/projet) --------------------------------------------
   Une question par écran, pensé pour le pouce : grandes cibles, champs à 17 px
   (sous 16 px, iOS zoome sur le champ), aucun menu déroulant. */
.page-questionnaire { background: var(--sable); }
.questionnaire { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.questionnaire__tete {
  position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top);
  background: rgba(247,243,234,.94); backdrop-filter: saturate(180%) blur(10px);
}
.questionnaire__barre {
  max-width: 560px; margin: 0 auto; padding: 0 16px; height: 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.questionnaire__retour {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px 0 8px; margin-inline-start: -8px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; color: var(--encre-2);
  -webkit-tap-highlight-color: transparent;
}
.questionnaire__retour:hover { color: var(--terre); background: var(--sable-2); }
.questionnaire__retour.est-cache { visibility: hidden; }
[dir="rtl"] .questionnaire__retour svg { transform: scaleX(-1); }
.questionnaire__logo img { display: block; height: 40px; width: auto; }
.questionnaire__compte {
  justify-self: end; font-size: 13.5px; color: var(--encre-3);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap;
}
.questionnaire__progression { height: 3px; background: var(--sable-3); }
.questionnaire__progression span {
  display: block; height: 100%; width: 0; background: var(--terre);
  border-radius: 0 3px 3px 0; transition: width .4s cubic-bezier(.2,.7,.2,1);
}

.questionnaire__corps {
  flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 34px 20px calc(44px + env(safe-area-inset-bottom));
}
.questionnaire__surtitre { margin-bottom: 14px; }
.questionnaire__question {
  font-size: clamp(27px, 7.2vw, 36px); line-height: 1.16; letter-spacing: -.005em;
  margin: 0 0 10px; outline: none;
}
.questionnaire__intro { margin: 0; font-size: 15.5px; color: var(--encre-2); }
.questionnaire__texte { margin: 0 0 14px; font-size: 16.5px; color: var(--encre-2); max-width: 42ch; }

.questionnaire__choix { display: grid; gap: 12px; margin-top: 28px; }
.choix {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  min-height: 62px; padding: 16px 18px 16px 20px;
  font: inherit; font-size: 17px; font-weight: 500; line-height: 1.3; text-align: start; color: var(--encre);
  background: var(--parchemin); border: 1px solid var(--ligne); border-radius: 14px;
  box-shadow: var(--ombre-s); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
@media (hover: hover) { .choix:hover { border-color: var(--ligne-2); box-shadow: var(--ombre); } }
.choix:active { transform: scale(.985); }
.choix__coche {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--ligne-2); color: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choix[aria-pressed="true"] { border-color: var(--terre); background: #fbf2ed; box-shadow: 0 0 0 1px var(--terre), var(--ombre-s); }
.choix[aria-pressed="true"] .choix__coche { background: var(--terre); border-color: var(--terre); color: #fff; }

.questionnaire__suite { margin-top: 18px; display: grid; gap: 14px; }
.questionnaire__suite:empty { display: none; }
.questionnaire__explication {
  margin: 0; padding: 16px 18px; font-size: 15.5px; line-height: 1.6; color: var(--encre-2);
  background: var(--parchemin); border: 1px solid var(--ligne); border-inline-start: 3px solid var(--safran);
  border-radius: 12px;
}
.questionnaire__continuer, .questionnaire__envoyer { min-height: 56px; font-size: 16.5px; border-radius: 14px; }
.questionnaire__envoyer.est-en-cours { opacity: .75; cursor: progress; }

.questionnaire__form { display: grid; gap: 22px; margin-top: 26px; }
.q-champ { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.q-champ__label { padding: 0; font-size: 15.5px; font-weight: 600; color: var(--encre); }
.q-champ__facultatif { font-size: 14px; font-weight: 400; color: var(--encre-3); }
.q-champ__aide { margin: -4px 0 0; font-size: 13.5px; color: var(--encre-3); }
.q-champ__saisie {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; font-size: 17px; line-height: 1.4; color: var(--encre);
  background: var(--parchemin); border: 1px solid var(--ligne-2); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  scroll-margin-block: 90px 160px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.q-champ__saisie { min-height: 104px; resize: vertical; }
.q-champ__saisie::placeholder { color: #b0a595; }
.q-champ__saisie:focus { outline: none; border-color: var(--terre); box-shadow: 0 0 0 3px var(--terre-3); }
.q-champ__saisie[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px #f7e0de; }
.q-champ__erreur { margin: 0; font-size: 14px; line-height: 1.45; color: #b3261e; }

.questionnaire__segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segment {
  min-height: 52px; padding: 10px 6px; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--encre);
  background: var(--parchemin); border: 1px solid var(--ligne-2); border-radius: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.segment[aria-pressed="true"] { background: var(--terre); border-color: var(--terre); color: #fff; }

.questionnaire__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.questionnaire__alerte {
  margin: 0; padding: 14px 16px; font-size: 15px; line-height: 1.5;
  background: #fbeceb; border: 1px solid #f0cfcc; border-radius: 12px; color: #8c1d18;
}
.questionnaire__alerte a { color: inherit; font-weight: 600; }
.questionnaire__mention { margin: -8px 0 0; font-size: 12.5px; line-height: 1.55; text-align: center; color: var(--encre-3); }
.questionnaire__mention a { color: var(--encre-2); }

.questionnaire__fin { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 7vh; text-align: center; }
.questionnaire__sceau {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 10px;
  background: var(--menthe-2); color: var(--menthe);
  display: flex; align-items: center; justify-content: center;
}

@keyframes q-avant   { from { opacity: 0; transform: translateY(12px); }  to { opacity: 1; transform: none; } }
@keyframes q-arriere { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.q-entree--avant   { animation: q-avant .32s cubic-bezier(.2,.7,.2,1) both; }
.q-entree--arriere { animation: q-arriere .32s cubic-bezier(.2,.7,.2,1) both; }
.q-apparait        { animation: q-avant .26s ease both; }

@media (min-width: 761px) {
  .questionnaire__barre { height: 72px; }
  .questionnaire__logo img { height: 48px; }
  .questionnaire__corps { padding-top: 8vh; }
}
@media (max-width: 360px) {
  .questionnaire__corps { padding: 24px 16px calc(36px + env(safe-area-inset-bottom)); }
  .questionnaire__choix { gap: 10px; margin-top: 22px; }
  .choix { min-height: 56px; padding: 14px 14px 14px 16px; font-size: 16px; }
  .segment { font-size: 14.5px; }
}

/* Fiche de contact latérale ---------------------------------------------------------- */
.contact-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-liste svg { flex: none; color: var(--terre); margin-top: 3px; }
.contact-liste b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); font-weight: 700; }
.contact-liste a { color: var(--encre); text-decoration: none; }
.contact-liste a:hover { color: var(--terre); }

/* Pied de page ----------------------------------------------------------------------- */
.pied { background: var(--encre); color: #b8b0a2; margin-top: 76px; position: relative; }
.pied::before { content: ""; display: block; height: 10px; background: var(--motif-frise); background-size: 24px 10px; opacity: .8; }
.pied__grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding: 52px 0 34px; }
.pied h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--safran); margin: 0 0 14px; font-weight: 700; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied a { color: #cfc7b8; text-decoration: none; font-size: 14.5px; }
.pied a:hover { color: var(--parchemin); }
.pied__logo {
  display: inline-block; text-decoration: none; margin-bottom: 16px;
  background: var(--parchemin); border-radius: var(--rayon-s); padding: 12px 16px;
}
.pied__logo .logo__image { height: 64px; }
.pied__texte { font-size: 14.5px; max-width: 40ch; margin: 0 0 18px; }
.pied__bas {
  border-top: 1px solid rgba(247,243,234,.13); padding: 20px 0 34px; font-size: 13px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.reseaux { display: flex; gap: 10px; }
.reseaux a {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(247,243,234,.2);
  display: flex; align-items: center; justify-content: center; color: #cfc7b8;
}
.reseaux a:hover { border-color: var(--safran); color: var(--safran); }

/* Bouton WhatsApp flottant ------------------------------------------------------------ */
.wa-flottant {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 50;
  width: 54px; height: 54px; border-radius: 999px; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre-l);
  text-decoration: none;
}
.wa-flottant:hover { transform: scale(1.05); }

/* États ---------------------------------------------------------------------------------- */
.etat-vide { padding: 64px 20px; text-align: center; color: var(--encre-2); grid-column: 1 / -1; }
.etat-vide b { display: block; font-family: var(--serif); font-size: 21px; color: var(--encre); margin-bottom: 8px; }
.squelette { background: var(--sable-2); border-radius: var(--rayon); height: 320px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Réactif --------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: flex; }
  .tete__outils { margin-inline-start: auto; }
  .tete__outils .select-mini { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-block: 58px 56px; }
  .hero__visuel { display: none; }
  .recherche { grid-template-columns: 1fr 1fr; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .logo__image { height: 46px; }
  .pied__logo .logo__image { height: 56px; }
  .section { padding: 52px 0; }
  .galerie { grid-template-columns: 1fr; }
  .galerie__col { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .deux, .formulaire__deux { grid-template-columns: 1fr; }
  .recherche { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; border-inline: 0; box-shadow: none; }
  .bandeau { padding: 32px 26px; }
  .pied__grille { grid-template-columns: 1fr; gap: 26px; }
  .fiche__prix { text-align: start; }
}

/* Impression -------------------------------------------------------------------------------- */
@media print {
  .tete, .cta-collant, .pied, .wa-flottant, .coeur, .fil, .visio, .recherche, .filtres { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .bloc { break-inside: avoid; border-color: #ccc; }
  .hero { background: #fff; color: #000; }
}

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