/* =========================================================
   RÉGLAGES DU SITE — changez ici les couleurs et les polices
   ========================================================= */
:root {
  --encre: #161514;       /* titres (noir chaud, plus doux qu'un noir pur) */
  --texte: #625D56;       /* texte courant */
  --pale: #CFC9BE;        /* texte pas encore « encré » (effet d'écriture) */
  --beige: #F1EEE6;       /* fonds (couleur du logo) */
  --sable: #E2DCD0;       /* filets et séparations */
  --fond: #FBFAF7;        /* fond général (blanc cassé) */
  --blanc: #FFFFFF;
  --cuivre: #8B5A43;      /* accent discret (couleur du coup de pinceau Insta) */

  --police: "EB Garamond", Garamond, "Times New Roman", serif;  /* texte */
  --police-titres: var(--police);                                /* titres */

  --largeur-max: 1240px;
  --ease: cubic-bezier(.22, .61, .21, 1);  /* courbe de mouvement commune à tout le site */
  --hauteur-entete: 84px;
}


/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 19px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--police-titres);
  color: var(--encre);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }   /* un élément masqué reste masqué, quel que soit son style */
em, i, cite { font-style: normal; }   /* pas d'italique sur le site */
a { color: inherit; }
::selection { background: var(--beige); color: var(--encre); }

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 40px;
}
.etroit { max-width: 860px; }
.centre { text-align: center; }

/* Petit texte en capitales espacées (au-dessus des titres) */
.surtitre {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 22px;
}

/* =========================================================
   EN-TÊTE : barre flottante (reprise du skill « Site Immersif »)
   ========================================================= */
.entete {
  position: fixed;
  top: 14px; left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 8px 8px 8px 10px;
  background: var(--fond);
  color: var(--encre);
  box-shadow: 0 12px 34px -22px rgba(22, 21, 20, 0.45);
  width: max-content;               /* la barre prend la largeur de son contenu */
  max-width: calc(100vw - 28px);
  white-space: nowrap;
  transform: translate(-50%, 0);
  transition: transform 0.8s var(--ease), opacity 0.32s var(--ease);
}
.entete.cache { transform: translate(-50%, calc(-100% - 44px)); }   /* cachée à l'arrivée et quand on descend (commun.js) */

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 50%; }  /* ne garde que le cercle du logo */
.dock-wordmark { font-size: 20px; letter-spacing: 0.01em; color: var(--encre); }

.menu { display: flex; gap: 22px; }
.menu a,
.lien-trait {
  position: relative;
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
}
/* trait qui se dessine sous le lien au survol */
.menu a::after,
.lien-trait::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.menu a:hover::after,
.menu a.actif::after,
.lien-trait:hover::after { transform: scaleX(1); transform-origin: left; }

/* bouton Contact, en noir */
.entete-cta {
  background: var(--encre);
  color: var(--beige);
  padding: 11px 18px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.4s var(--ease);
}
.entete-cta:hover { background: var(--cuivre); }

/* Bouton menu mobile (deux traits) */
.burger {
  display: none;
  width: 44px; height: 40px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.menu-ouvert .burger span:first-child { top: 19px; transform: rotate(45deg); }
.menu-ouvert .burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* Menu plein écran (mobile) */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 40px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu-ouvert .menu-mobile { visibility: visible; opacity: 1; }
.menu-mobile nav a {
  display: block;
  font-size: 40px;
  line-height: 1.35;
  color: var(--encre);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu-ouvert .menu-mobile nav a { opacity: 1; transform: none; }

/* =========================================================
   BANDEAU PHOTO (haut de page)
   ========================================================= */
.bandeau {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--blanc);
  background: var(--encre);
}
.bandeau.petit { height: 76vh; min-height: 480px; }
.bandeau-photo {
  position: absolute;
  inset: -8% 0;                 /* marge pour l'effet de profondeur */
  background: center / cover no-repeat;
  transform: translate3d(0, var(--decal, 0px), 0);
  will-change: transform;
}
/* dégradé sombre en bas, pour que le texte reste lisible */
.bandeau::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.32) 0%, rgba(0,0,0,0) 65%),
    linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.58) 100%);
}
.bandeau-texte {
  position: absolute;
  left: 0; right: 0;
  bottom: 9vh;
  z-index: 1;
  opacity: var(--fondu, 1);
}
.bandeau .surtitre { color: rgba(255, 255, 255, 0.85); }
.bandeau h1 {
  color: var(--blanc);
  font-size: clamp(56px, 10.5vw, 164px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.bandeau.petit h1 { font-size: clamp(52px, 8vw, 118px); }
.bandeau-sous {
  margin: 22px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  font-style: normal;
  color: rgba(255, 255, 255, 0.92);
}

/* En-tête simple des pages sans photo */
.intro-page { padding: 120px 0 90px; }
.intro-page h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1; }
.intro-page .chapeau { max-width: 640px; margin-top: 32px; font-size: 21px; }

/* =========================================================
   SECTIONS ET MISES EN PAGE
   ========================================================= */
.section { padding: 150px 0; }
.section.serre { padding: 90px 0; }
.section.beige { background: var(--beige); }
.section.sombre { background: var(--encre); color: #BDB7AD; }
.section.sombre h2, .section.sombre h3 { color: var(--fond); }
.section.sombre .surtitre { color: #B58A72; }  /* cuivre plus clair sur fond sombre */

/* Deux colonnes : petite étiquette à gauche, contenu à droite */
.colonnes {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 48px;
}
.colonnes > .surtitre { padding-top: 12px; }

.titre-section { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 40px; }
.grand-texte {
  font-family: var(--police-titres);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.28;
  color: var(--encre);
  margin: 0;
}
.chapeau { font-size: 21px; max-width: 620px; }

/* ---------- Lignes Acheter / Vendre / Louer (accueil) ---------- */
.lignes-services { border-bottom: 1px solid var(--sable); }
.ligne-service {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 46px 0;
  border-top: 1px solid var(--sable);
  text-decoration: none;
  color: var(--texte);
}
.ligne-service .numero { font-size: 14px; letter-spacing: 0.16em; color: var(--cuivre); }
.ligne-service h3 {
  font-size: clamp(38px, 5vw, 72px);
  transition: transform 0.7s var(--ease);
}
.ligne-service p { margin: 0; font-style: normal; font-size: 21px; }
.ligne-service .fleche { font-size: 26px; color: var(--encre); transition: transform 0.6s var(--ease); }
.ligne-service:hover h3 { transform: translateX(14px); }
.ligne-service:hover .fleche { transform: translateX(8px); }

/* ---------- Images avec effet de profondeur (parallaxe) ---------- */
.image-parallaxe {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  background: var(--beige);
}
.image-parallaxe img {
  position: absolute;
  left: 0; top: -9%;
  width: 100%; height: 118%;
  object-fit: cover;
  transform: translate3d(0, var(--p, 0px), 0);
  will-change: transform;
}
.legende { font-size: 14px; letter-spacing: 0.08em; margin-top: 14px; font-style: normal; }

/* Image + texte côte à côte */
.image-texte {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  align-items: center;
}
.image-texte > :first-child { grid-column: 1; }
.image-texte > :last-child { grid-column: 3; }
.image-texte.inverse > :first-child { grid-column: 3; grid-row: 1; }
.image-texte.inverse > :last-child { grid-column: 1; grid-row: 1; }

/* ---------- Étapes (Acheter / Vendre) ---------- */
.etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.etape { border-top: 1px solid var(--encre); padding-top: 28px; }
.etape .numero {
  display: block;
  font-family: var(--police-titres);
  font-size: 54px;
  line-height: 1;
  color: var(--cuivre);
  margin-bottom: 26px;
}
.etape h3 { font-size: 27px; margin-bottom: 14px; }
.etape p { font-size: 18px; }

/* Bandeau de phrase mise en avant */
.phrase-forte {
  font-family: var(--police-titres);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
  color: var(--encre);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Page Vendre ---------- */
.phrase-forte.grande { font-size: clamp(32px, 4vw, 56px); line-height: 1.22; margin-top: 10px; }
.chapeau-centre { max-width: 640px; margin: 44px auto 0; font-size: 20px; }

/* méthode à la verticale : titre qui reste en place à gauche, étapes à droite */
.parcours-vertical { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.parcours-titre { position: sticky; top: 130px; }
.parcours-titre .titre-section { margin: 0; }


/* ---------- Page Acheter ---------- */
.intro-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.intro-deux h2 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.08; }
.intro-deux p { margin: 0; font-size: 20px; }

/* parcours horizontal : 4 points reliés par une ligne */
.parcours-horizontal { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.parcours-horizontal::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px;
  height: 1px; background: var(--encre);
}
.point { position: relative; padding-top: 38px; }
.point::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--beige); border: 1px solid var(--encre);
}
.point h3 { font-size: 26px; margin-bottom: 12px; }
.point p { margin: 0; font-size: 17.5px; }

/* ---------- Cartes de biens ---------- */
.cartes-biens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 32px;
}
.cartes-accueil .carte-bien:nth-child(2) { margin-top: 110px; }  /* décalage éditorial */
.carte-bien { display: block; text-decoration: none; color: var(--texte); }
.carte-bien .cadre { overflow: hidden; background: var(--beige); }
.carte-bien img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.carte-bien:hover img { transform: scale(1.045); }
.carte-bien h3 { font-size: 26px; margin-top: 22px; }
.carte-bien p {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 8px 0 0;
}
/* petit trait qui s'allonge au survol */
.carte-bien h3::after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin-top: 14px;
  background: var(--encre);
  transition: width 0.7s var(--ease);
}
.carte-bien:hover h3::after { width: 72px; }
/* version compacte (page Location) : photos en paysage, moins hautes */
.cartes-compactes .carte-bien img { aspect-ratio: 3 / 2; }
.cartes-compactes .carte-bien h3 { font-size: 22px; margin-top: 16px; }

/* ---------- Valeurs (3 colonnes) ---------- */
.valeurs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.valeurs > div { border-top: 1px solid var(--encre); padding-top: 28px; }
.valeurs .numero { font-size: 14px; letter-spacing: 0.16em; color: var(--cuivre); display: block; margin-bottom: 20px; }
.valeurs h3 { font-size: 27px; margin-bottom: 16px; }
.valeurs p { font-size: 18px; }

/* ---------- Fiche d'un bien ---------- */
.fiche-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fiche-photos .cadre { overflow: hidden; background: var(--beige); }
.fiche-photos .cadre:first-child { grid-column: span 2; grid-row: span 2; }
.fiche-photos img {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.fiche-photos .cadre:hover img { transform: scale(1.04); }
.fiche-infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.fiche-infos h1 { font-size: clamp(44px, 5.5vw, 76px); line-height: 1; }
.fiche-quartier { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin: 22px 0 0; }
/* Descriptif du bien : tableau sobre, un pictogramme noir par ligne (dessins dans pictos.js) */
.liste-details { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--encre); }
.liste-details li {
  display: grid;
  grid-template-columns: 22px 1fr;   /* pictogramme | texte */
  align-items: center;
  column-gap: 20px;
  border-bottom: 1px solid var(--sable);
  padding: 15px 0;
  color: var(--encre);
}
/* libellé à gauche, précision à droite ; ligne trop longue (téléphone) : la précision passe dessous, à droite */
.liste-details .ligne { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 20px; }
.liste-details .precision { margin-left: auto; color: var(--texte); text-align: right; }
.liste-details .precision::first-letter { text-transform: uppercase; }
.picto {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;          /* épaisseur du trait des pictogrammes */
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Passer d'un bien à l'autre (flèches du clavier, glissement du doigt) : la page glisse,
   rien ne dépasse sur le côté, et le bien voisin entre en douceur du côté d'où il vient */
.cadre-glisse { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  [data-arrivee="suivant"] .glisse { animation: arrivee-droite .6s var(--ease) backwards; }
  [data-arrivee="precedent"] .glisse { animation: arrivee-gauche .6s var(--ease) backwards; }
}
@keyframes arrivee-droite { from { transform: translateX(60px); opacity: 0; } }
@keyframes arrivee-gauche { from { transform: translateX(-60px); opacity: 0; } }
/* Petites flèches ‹ › (téléphone et tablette seulement) : on peut glisser vers le bien voisin.
   Visibles à l'arrivée, elles s'effacent seules et reviennent pendant le glissement (bien.html) */
.fleches-biens { display: none; }
@media (hover: none) {
  .fleches-biens {
    display: flex;
    justify-content: space-between;
    position: fixed;
    left: 10px; right: 10px; top: 50%;
    transform: translateY(-50%);
    z-index: 30;                /* sous l'en-tête, le menu et la photo en grand */
    pointer-events: none;       /* simple indication, on ne clique pas dessus */
    color: var(--encre);
    opacity: 0;
    transition: opacity .8s var(--ease);
  }
  .fleches-biens.visibles { opacity: 1; transition-duration: .3s; }
  .fleches-biens .picto { width: 26px; height: 26px; filter: drop-shadow(0 0 2px var(--fond)); }   /* halo clair : lisibles sur les photos */
}
.fiche-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--encre);
  padding-top: 28px;
}
.fiche-nav a { text-decoration: none; color: var(--encre); font-size: 24px; font-family: var(--police-titres); }
.fiche-nav span { display: block; font-family: var(--police); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cuivre); margin-bottom: 6px; }
.retour { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }

/* Visionneuse (photo en grand) */
.visionneuse {
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 20, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.visionneuse.ouverte { opacity: 1; visibility: visible; }
.visionneuse img { max-height: 88vh; width: auto; }
.visionneuse button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--fond);
  font: inherit;
  font-size: 36px;
  cursor: pointer;
  padding: 12px 20px;
}
.visionneuse .fermer { top: 12px; right: 12px; }
.visionneuse .prec { left: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- À propos ---------- */
.apropos {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  align-items: start;
}
.apropos > :first-child { grid-column: 1; position: sticky; top: 120px; }
.apropos > :last-child { grid-column: 3; }
.apropos h2 { font-size: clamp(32px, 3.6vw, 48px); }
.apropos h3 { font-size: 30px; margin: 56px 0 18px; }
.fonction { font-style: normal; font-size: 21px; margin: 8px 0 40px; }

/* Portrait ovale (page À propos) */
.portrait { margin: 0; text-align: center; }
.portrait-ovale {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}
.portrait-ovale img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;      /* visage dans le haut du cadre, épaules visibles */
  border-radius: 50%;            /* découpe ovale */
}
.portrait figcaption {
  margin-top: 34px;
  font-size: 22px;
  color: var(--encre);
}
.portrait figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cuivre);
}

/* ---------- Honoraires ---------- */
.bloc-tarif {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  border-top: 1px solid var(--encre);
  padding: 48px 0 56px;
}
.bloc-tarif h2 { font-size: 34px; }
.bloc-tarif h3 { font-size: 21px; margin: 32px 0 12px; }
.bloc-tarif h3:first-child { margin-top: 0; }
.tarifs { list-style: none; padding: 0; margin: 0 0 22px; }
.tarifs li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--sable);
  padding: 14px 0;
}
.tarifs strong { color: var(--encre); font-weight: 400; white-space: nowrap; }
.petit-texte { font-size: 16.5px; }

/* ---------- Honoraires + simulateur (pages Acheter et Vendre) ---------- */
.honoraires-simu {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  align-items: start;
  border-top: 1px solid var(--encre);
  padding-top: 48px;
}
.honoraires-simu > :first-child { grid-column: 1; }
.honoraires-simu > :last-child { grid-column: 3; }
.honoraires-simu h2 { font-size: 34px; margin-bottom: 28px; }

.simulateur {
  background: var(--beige);
  padding: 28px 32px 24px;
  font-variant-numeric: lining-nums tabular-nums;   /* chiffres alignés */
}
.simu-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.simu-tete .surtitre { margin: 0; }

/* Ancien / Neuf : deux mots, celui choisi est souligné */
.simu-choix { display: flex; gap: 18px; }
.simu-choix label { position: relative; cursor: pointer; }
.simu-choix input { position: absolute; opacity: 0; pointer-events: none; }
.simu-choix span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte);
  padding-bottom: 3px;
  background: linear-gradient(var(--encre), var(--encre)) left bottom / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.5s var(--ease);
}
.simu-choix input:checked + span { color: var(--encre); background-size: 100% 1px; }
.simu-choix input:focus-visible + span { outline: 1px dotted var(--encre); outline-offset: 4px; }

/* Prix + curseur */
.simu-prix { display: block; margin: 22px 0 14px; }
.simu-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.simu-ligne > span { font-size: 16px; }
.simu-ligne output { font-size: 26px; color: var(--encre); }
.simu-prix input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 6px 0 0;
  background: transparent;
  cursor: pointer;
}
/* la ligne : pleine jusqu'au curseur, pâle après */
.simu-prix input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(to right, var(--encre) var(--rempli, 15%), var(--sable) var(--rempli, 15%));
}
.simu-prix input[type="range"]::-moz-range-track { height: 1px; background: var(--sable); }
.simu-prix input[type="range"]::-moz-range-progress { height: 1px; background: var(--encre); }
/* la poignée : un petit rond */
.simu-prix input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--encre);
  border: 3px solid var(--beige);
  box-shadow: 0 0 0 1px var(--encre);
  transition: transform 0.3s var(--ease);
}
.simu-prix input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--encre);
  border: 3px solid var(--beige);
  box-shadow: 0 0 0 1px var(--encre);
}
.simu-prix input[type="range"]:hover::-webkit-slider-thumb,
.simu-prix input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.25); }
.simu-prix input[type="range"]:focus { outline: none; }

.simulateur dl { margin: 0; }
.simulateur dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sable);
}
.simulateur dt { font-size: 16px; }
.simulateur dt small { font-size: 13px; font-style: normal; margin-left: 4px; }
.simulateur dd { margin: 0; color: var(--encre); white-space: nowrap; }
.simu-resultats .simu-total { border-bottom: 0; padding-top: 12px; }
.simu-total dt { color: var(--encre); }
.simu-total dt small { display: block; margin: 0; }
.simu-total dd { font-size: 24px; }
.simu-note { font-size: 13px; font-style: normal; line-height: 1.45; margin: 12px 0 0; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.formulaire .large { grid-column: 1 / -1; }
.formulaire label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: 4px;
}
.formulaire input,
.formulaire select,
.formulaire textarea {
  width: 100%;
  font: inherit;
  font-size: 19px;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sable);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
.formulaire textarea { min-height: 150px; resize: vertical; }
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus { outline: none; border-color: var(--encre); }
.formulaire button { justify-self: start; margin-top: 8px; }

/* ---------- Page Contact : coordonnées + formulaire en 3 temps ---------- */
.contact-zone { background: var(--beige); padding: 100px 0 130px; }
.contact-grille {
  display: grid;
  gap: 72px;
  max-width: 980px;
  margin: 0 auto;
}
/* coordonnées sous le formulaire, sur 3 colonnes */
.contact-infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--encre);
}
.contact-infos .surtitre { margin-bottom: 10px; }
.contact-infos p { margin: 0; color: var(--encre); font-size: 18px; }
.contact-mail { font-size: 21px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--encre); }

/* la carte du formulaire */
.formulaire-contact {
  background: var(--fond);
  padding: 56px 60px 48px;
  box-shadow: 0 30px 60px -45px rgba(22, 21, 20, 0.35);
}
.formulaire-contact fieldset { border: 0; margin: 0 0 44px; padding: 0; }
.formulaire-contact legend {
  display: flex; align-items: baseline; gap: 14px;
  width: 100%;
  padding: 0 0 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--encre);
  font-size: 26px;
  color: var(--encre);
}
.formulaire-contact legend span { font-size: 12.5px; letter-spacing: 0.18em; color: var(--cuivre); }

/* 01 · le projet : des puces à choisir */
.puces { display: flex; flex-wrap: wrap; gap: 10px; }
.question { margin: 30px 0 12px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte); }   /* petite question au-dessus de puces */
.puces label { position: relative; cursor: pointer; }
.puces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puces span {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--sable);
  font-size: 17px;
  color: var(--texte);
  transition: border-color .3s, background .35s var(--ease), color .35s;
}
.puces label:hover span { border-color: var(--encre); color: var(--encre); }
.puces input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--beige); }
.puces input:focus-visible + span { outline: 1px dotted var(--encre); outline-offset: 3px; }

/* 02 et 03 · champs : le nom du champ monte quand on écrit */
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.champ { position: relative; }
.champ input,
.champ textarea {
  width: 100%;
  font: inherit;
  font-size: 19px;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sable);
  border-radius: 0;
  padding: 22px 0 8px;
  transition: border-color .4s var(--ease);
}
.champ textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.champ label {
  position: absolute;
  left: 0; top: 22px;
  font-size: 18px;
  color: var(--texte);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .35s, letter-spacing .35s;
}
.champ label em { font-size: 13px; color: var(--cuivre); margin-left: 6px; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--encre); }
.champ input:focus + label,
.champ input:not(:placeholder-shown) + label,
.champ textarea:focus + label,
.champ textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre);
}

/* envoi */
.envoi { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-top: 8px; }
.envoi .bouton { white-space: nowrap; flex-shrink: 0; }   /* le bouton garde sa largeur, le texte de consentement s'adapte */
.confirmation { margin: 18px 0 0; font-style: normal; color: var(--encre); min-height: 1em; }

/* piège à robots : invisible pour les humains */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* messages d'erreur, en cuivre, discrets */
.message-erreur { margin: 10px 0 0; font-size: 15px; font-style: normal; color: var(--cuivre); }
.message-erreur:empty { margin: 0; }
.champ.en-erreur input, .champ.en-erreur textarea { border-color: var(--cuivre); }
.champ.en-erreur label { color: var(--cuivre); }
.puces.en-erreur span { border-color: var(--cuivre); }

/* case de consentement : un petit carré qui se remplit */
.consentement { display: flex; gap: 14px; align-items: flex-start; max-width: 460px; cursor: pointer; font-size: 14.5px; line-height: 1.5; }
.consentement a { color: var(--encre); }
.consentement input {
  -webkit-appearance: none; appearance: none;
  flex: 0 0 18px; width: 18px; height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--encre);
  background: transparent;
  display: grid; place-content: center;
  cursor: pointer;
  transition: border-color .3s;
}
.consentement input::before {
  content: ""; width: 10px; height: 10px;
  background: var(--encre);
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.consentement input:checked::before { transform: scale(1); }
.consentement input:focus-visible { outline: 1px dotted var(--encre); outline-offset: 3px; }
.consentement.en-erreur input { border-color: var(--cuivre); }

/* bouton pendant l'envoi : il respire doucement */
.bouton.en-cours { cursor: wait; animation: respire 1.2s ease-in-out infinite; }
@keyframes respire { 50% { opacity: 0.6; } }

/* écran de confirmation après l'envoi */
.formulaire-contact.envoye .etapes-formulaire { display: none; }
.etat-envoye { outline: none; animation: apparition-fin 0.9s var(--ease) both; }
@keyframes apparition-fin { from { opacity: 0; transform: translateY(18px); } }
.etat-titre { font-size: clamp(40px, 4.4vw, 60px); margin: 4px 0 18px; }
.etat-texte { font-size: 19px; max-width: 560px; }
.etat-recap { margin: 30px 0 0; max-width: 640px; border-top: 1px solid var(--encre); }
.etat-recap > div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sable); }
.etat-recap dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 3px; }
.etat-recap dd { margin: 0; color: var(--encre); }

/* ---------- Pages légales : présentation « document officiel » ---------- */
.legal-ref {
  margin: 26px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.document-legal-zone { padding-top: 40px; }
.document-legal {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 64px;
  align-items: start;
}
/* sommaire qui reste visible pendant la lecture */
.sommaire { position: sticky; top: 110px; }
.sommaire ol { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--encre); }
.sommaire li { border-bottom: 1px solid var(--sable); }
.sommaire a {
  display: flex; gap: 14px;
  padding: 11px 0;
  font-size: 15.5px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--texte);
  transition: color .3s, padding .4s var(--ease);
}
.sommaire a span { font-size: 12px; letter-spacing: 0.12em; color: var(--cuivre); padding-top: 2px; }
.sommaire a:hover { color: var(--encre); padding-left: 6px; }
/* en-tête et pied du document, visibles seulement si le visiteur imprime la page */
.seulement-pdf { display: none; }

/* un article = une section numérotée, séparée par un filet */
.article-legal { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--sable); scroll-margin-top: 110px; }
.article-legal:last-of-type { border-bottom: 0; }
.article-num {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 12px;
}
.article-legal h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 22px; }
.article-legal p { font-size: 18px; line-height: 1.75; max-width: 720px; }
.article-legal a { color: var(--encre); }

/* fiche d'identité (éditeur, hébergeur, responsable du traitement) */
.fiche-identite {
  margin: 8px 0 28px;
  padding: 10px 32px;
  background: var(--beige);
  max-width: 760px;
}
.fiche-identite > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sable);
}
.fiche-identite > div:last-child { border-bottom: 0; }
.fiche-identite dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte); padding-top: 3px; }
.fiche-identite dd { margin: 0; font-size: 17px; color: var(--encre); }

/* barème des honoraires : préambule, sous-titres et tableaux sobres */
.bareme-preambule { margin: 0 0 56px; padding-bottom: 44px; border-bottom: 1px solid var(--sable); font-size: 19px; line-height: 1.75; max-width: 720px; color: var(--encre); }
.bareme-preambule a { color: var(--encre); }
.article-legal h3 { font-size: 23px; margin: 44px 0 12px; }
.article-legal .bareme-note { font-size: 16px; line-height: 1.65; margin: 0 0 10px; }
.article-legal .bareme-sources { font-size: 14px; line-height: 1.6; margin-top: 22px; }
.bareme-table {
  width: 100%; max-width: 760px;
  border-collapse: collapse;
  margin: 10px 0 24px;
  font-variant-numeric: lining-nums tabular-nums;
}
.bareme-table caption { caption-side: top; text-align: left; padding: 0 0 14px; font-size: 20px; color: var(--encre); }
.bareme-table thead th {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--encre);
  font-weight: 400; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--texte); text-align: left; vertical-align: bottom;
}
.bareme-table tbody th, .bareme-table td { padding: 14px 0; border-bottom: 1px solid var(--sable); font-size: 17.5px; vertical-align: baseline; }
.bareme-table tbody th { font-weight: 400; text-align: left; color: var(--texte); }
.bareme-table td { padding-left: 28px; text-align: right; color: var(--encre); }
.bareme-table thead th + th { padding-left: 28px; text-align: right; }
.bareme-table.empilable tbody th { white-space: nowrap; }   /* nom de la zone sur une ligne */

/* pages « document » (Honoraires et les 3 pages légales, <body class="page-document">) :
   titre plus petit, page plus resserrée
   (à l'écran seulement : l'impression garde sa propre mise en page, plus bas) */
@media screen {
  .page-document .intro-page { padding-bottom: 0; }
  .page-document .intro-page .colonnes { gap: 64px; }   /* titre aligné sur le texte en dessous */
  .page-document .intro-page h1 { font-size: clamp(38px, 4.6vw, 64px); }
  .page-document .document-legal-zone { padding: 56px 0 110px; }
  .page-document .bareme-preambule { margin-bottom: 40px; padding-bottom: 36px; }
  .page-document .article-legal { padding-bottom: 36px; margin-bottom: 36px; }
  .page-document .article-legal:last-of-type { padding-bottom: 0; margin-bottom: 0; }
  .page-document .article-legal h3 { margin-top: 36px; }
}
@media screen and (max-width: 960px) {
  .page-document .intro-page .colonnes { gap: 0; }
  .page-document .document-legal-zone { padding: 40px 0 72px; }
  .page-document .sommaire ol { margin-bottom: 0; }
}

/* liste des droits (politique de confidentialité) */
.liste-droits { list-style: none; margin: 0 0 20px; padding: 0; max-width: 720px; }
.liste-droits li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--sable); font-size: 17.5px; }
.liste-droits li::before { content: "—"; position: absolute; left: 0; color: var(--cuivre); }

/* impression : seulement le document */
/* PDF (et impression) : seulement le document, au format A4 */
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  .entete, .menu-mobile, .pied, .sommaire, .curseur { display: none !important; }
  body, .fiche-identite { background: #fff; }
  .document-legal { display: block; }
  .anime .apparait, .anime .revele .m > span { opacity: 1 !important; transform: none !important; }
  /* pas d'animation : le document apparaît tout de suite, en pleine encre */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, body, .anime body { opacity: 1 !important; }
  /* mise en page plus serrée qu'à l'écran */
  .intro-page { padding: 0 0 22px !important; }
  .intro-page .surtitre { margin-bottom: 10px; }
  .intro-page h1 { font-size: 40px; }
  .legal-ref { margin-top: 14px; }
  .section.document-legal-zone { padding: 0 !important; }
  .bareme-preambule { font-size: 14.5px; margin-bottom: 26px; padding-bottom: 22px; }
  .article-legal { padding-bottom: 20px; margin-bottom: 22px; }
  .article-legal h2 { font-size: 26px; margin-bottom: 12px; }
  .article-legal h3 { font-size: 18px; margin: 22px 0 8px; }
  .article-legal p, .fiche-identite dd, .liste-droits li { font-size: 13.5px; line-height: 1.6; }
  .article-legal .bareme-note { font-size: 12.5px; }
  .article-legal .bareme-sources { font-size: 11.5px; }
  .article-num { margin-bottom: 6px; font-size: 10.5px; }
  .bareme-table { margin: 4px 0 12px; }
  .bareme-table caption { font-size: 15px; padding-bottom: 8px; }
  .bareme-table thead th { font-size: 9.5px; padding-bottom: 6px; }
  .bareme-table tbody th, .bareme-table td { font-size: 13.5px; padding: 7px 0; }
  .bareme-table td, .bareme-table thead th + th { padding-left: 20px; }
  /* un titre ne reste jamais seul en bas de page */
  .article-num, .article-legal h2, .article-legal h3, .bareme-table caption { break-after: avoid; }
  .bareme-table, .fiche-identite > div, .insecable-pdf { break-inside: avoid; }
  .fiche-identite { padding: 2px 22px; }
  .fiche-identite > div { padding: 7px 0; }
  .fiche-identite dt { font-size: 9.5px; }
  .seulement-pdf { display: flex; }
  .pdf-tete {
    align-items: center; gap: 12px;
    padding-bottom: 12px; margin-bottom: 30px;
    border-bottom: 1px solid var(--encre);
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre);
  }
  .pdf-tete img { width: 40px; height: 40px; }
  .pdf-pied { justify-content: center; margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--sable); font-size: 11px; color: var(--texte); }
}

/* =========================================================
   BOUTONS
   ========================================================= */
.boutons { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 44px; }
.boutons.centre { justify-content: center; }
.bouton {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 19px 36px;
  border: 1px solid var(--encre);
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  z-index: 0;
  transition: color 0.5s var(--ease), translate 0.5s var(--ease);
}
/* le fond se remplit de gauche à droite au survol */
.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--encre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.bouton:hover { color: var(--fond); }
.bouton:hover::before { transform: scaleX(1); transform-origin: left; }

.bouton.plein { background: var(--encre); color: var(--fond); }
.bouton.plein::before { background: var(--cuivre); }
.bouton.plein:hover { border-color: var(--cuivre); }

/* bouton sur fond sombre */
.sombre .bouton { border-color: var(--fond); color: var(--fond); }
.sombre .bouton::before { background: var(--fond); }
.sombre .bouton:hover { color: var(--encre); }

/* =========================================================
   PIED DE PAGE (repris du skill : appel, grand nom, mentions)
   ========================================================= */
.pied {
  background: var(--beige);
  color: var(--texte);
  font-size: 16px;
  padding: 13vh 0 36px;
  overflow: hidden;
}
.pied a { color: var(--encre); text-decoration: none; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }

.pied-appel { text-align: center; margin-bottom: 11vh; }
.pied-appel .surtitre { margin-bottom: 18px; }
.pied-mail {
  display: inline-block;
  font-size: clamp(22px, 2.1vw, 28px);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.pied-mail span { position: relative; }
.pied-mail span::after {          /* trait qui se dessine au survol */
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--encre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.pied-mail:hover span::after { transform: scaleX(1); transform-origin: left; }
.pied-rassurance {
  margin: 18px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Vendre : bloc final « Faites estimer votre bien » et haut du pied de page, 30 % plus serrés (29/09) */
.section.appel-final { padding: 105px 0; }                          /* au lieu de 150px */
.appel-final + .pied { padding-top: 9.1vh; }                         /* au lieu de 13vh */
@media (max-width: 960px) { .section.appel-final { padding: 67px 0; } }  /* au lieu de 96px */
@media (max-width: 600px) { .appel-final + .pied { padding-top: 7vh; } } /* au lieu de 10vh */

.pied-grille {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--encre);
}
.pied-grille .lien-trait { font-size: 16px; letter-spacing: 0; text-transform: none; }
.pied-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--sable);
  padding-top: 32px;
  font-size: 13.5px;
  line-height: 1.75;
}
.pied-legal h3 { font-family: var(--police); color: var(--encre); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges img { height: 64px; width: auto; max-width: 100%; object-fit: contain; background: var(--blanc); padding: 6px; }
.pied-bas {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* =========================================================
   ANIMATIONS (déclenchées par effets.js)
   ========================================================= */

/* Transition douce entre les pages */
.anime body { animation: entree-page 0.3s ease-out both; }   /* 01/10 : 0,8 s → 0,3 s, le site paraît plus rapide */
@keyframes entree-page { from { opacity: 0; } }

/* Apparition douce (texte) */
.anime .apparait {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.anime .apparait.visible { opacity: 1; transform: none; }

/* Titre révélé mot à mot (chaque mot monte derrière un cache) */
.revele .m {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.anime .revele .m > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.anime .revele.visible .m > span { transform: none; }

/* Image dévoilée comme un rideau qui monte */
.anime .revele-image {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s var(--ease);
}
.anime .revele-image.visible { clip-path: inset(0 0 0 0); }

/* Texte qui s'encre lettre par lettre au défilement */
.encre .mot { white-space: nowrap; }
.anime .encre .car { color: var(--pale); transition: color 0.3s; }
.encre .car.encree { color: var(--encre); }

/* Curseur : anneau discret qui suit la souris (ordinateur uniquement) */
.curseur {
  position: fixed;
  left: 0; top: 0;
  z-index: 90;
  pointer-events: none;
}
.curseur span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(22, 21, 20, 0.35);
  border-radius: 50%;
  color: var(--encre);
  font-size: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
              background 0.45s, border-color 0.45s, opacity 0.3s, font-size 0.2s;
}
.curseur.clair span { border-color: rgba(255, 255, 255, 0.6); }
.curseur.lien span { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(22, 21, 20, 0.6); }
.curseur.clair.lien span { border-color: rgba(255, 255, 255, 0.9); }
.curseur.label span {
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  background: rgba(241, 238, 230, 0.94);
  border-color: transparent;
  font-size: 11px;
}
.curseur.masque span { opacity: 0; }

/* =========================================================
   TABLETTE ET MOBILE
   ========================================================= */
/* en-tête : la barre garde tous ses liens, à toutes les tailles (29/09).
   Jusqu'à 1100 px : la même barre, centrée sans transform (le bouton menu n'est plus utilisé). */
@media (max-width: 1100px) {
  .entete { left: 10px; right: 10px; top: 10px; margin: 0 auto; width: max-content; max-width: calc(100vw - 20px); transform: none; padding: 6px 6px 6px 10px; }
  .entete.cache { transform: translateY(calc(-100% - 36px)); }
}
/* fenêtre étroite : les liens se resserrent un peu */
@media (max-width: 820px) {
  .entete { gap: 16px; }
  .menu { gap: 14px; }
  .menu a { letter-spacing: 0.1em; }
  .entete-cta { padding: 10px 13px; letter-spacing: 0.1em; }
}
/* téléphone : deux lignes, le logo et Contact en haut, les 5 liens en dessous */
@media (max-width: 680px) {
  .entete { width: auto; flex-wrap: wrap; row-gap: 2px; justify-content: space-between; }
  .entete-cta { margin-left: auto; }
  .menu { order: 3; flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--sable); padding: 5px 4px 0; }
  .menu a { font-size: 11px; letter-spacing: 0.06em; }
  /* la barre est plus haute : les pages sans grande photo en haut descendent d'autant */
  body:not(.accueil):not(:has(.bandeau, .page-404)) { padding-top: 40px; }
}
/* petits téléphones : liens un peu plus petits pour tenir sur la ligne */
@media (max-width: 380px) {
  .menu { padding: 5px 0 0; }
  .menu a { font-size: 10px; letter-spacing: 0.03em; }
}

@media (max-width: 1080px) {
  .etapes { grid-template-columns: 1fr 1fr; gap: 56px 40px; }
}

@media (max-width: 960px) {
  .conteneur { padding: 0 24px; }

  .section { padding: 96px 0; }
  .section.serre { padding: 64px 0; }
  .colonnes, .fiche-infos, .bloc-tarif, .pied-legal, .document-legal, .parcours-vertical, .intro-deux { grid-template-columns: 1fr; gap: 28px; }
  .parcours-titre { position: static; }
  .parcours-horizontal { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .parcours-horizontal::before { display: none; }
  .point { border-top: 1px solid var(--encre); padding-top: 30px; }
  .point::before { top: -7px; }
  .sommaire { position: static; }
  .image-texte, .apropos, .honoraires-simu, .contact-grille { grid-template-columns: 1fr; gap: 48px; }
  .image-texte > *, .image-texte.inverse > *, .apropos > *, .honoraires-simu > * { grid-column: 1 !important; grid-row: auto !important; }
  .formulaire-contact { padding: 40px 32px 36px; }
  .apropos > :first-child { position: static; }
  .apropos h2, .apropos .fonction { text-align: center; }   /* nom et fonction centrés sous la photo */
  .cartes-biens { grid-template-columns: 1fr 1fr; gap: 48px 18px; }
  .cartes-accueil .carte-bien:nth-child(2) { margin-top: 0; }
  .cartes-accueil .carte-bien:nth-child(3) { display: none; }
  .valeurs { grid-template-columns: 1fr; gap: 40px; }
  .fiche-photos { grid-template-columns: 1fr 1fr; }
  .ligne-service { grid-template-columns: 1fr 30px; padding: 34px 0; }
  .ligne-service p { grid-column: 1; grid-row: 2; font-size: 18px; }
  .ligne-service .fleche { grid-column: 2; grid-row: 1; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .bareme-preambule { font-size: 17.5px; }
  .bareme-table td, .bareme-table thead th + th { padding-left: 16px; }
  /* tableau à 3 colonnes : une ligne par zone, empilée */
  .bareme-table.empilable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bareme-table.empilable caption { border-bottom: 1px solid var(--encre); }
  .bareme-table.empilable tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--sable); }
  .bareme-table.empilable tbody th, .bareme-table.empilable td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; }
  .bareme-table.empilable tbody th { color: var(--encre); white-space: normal; }
  .bareme-table.empilable td::before { content: attr(data-label); color: var(--texte); font-size: 15.5px; text-align: left; }
  body { font-size: 18px; }
  .bandeau.petit { height: 64vh; min-height: 420px; }
  .intro-page { padding: 72px 0 56px; }
  .etapes { grid-template-columns: 1fr; gap: 40px; }
  .parcours-horizontal { grid-template-columns: 1fr; }
  .cartes-biens { grid-template-columns: 1fr; }
  .cartes-accueil .carte-bien:nth-child(3) { display: block; }
  .formulaire { grid-template-columns: 1fr; }
  .tarifs li { flex-direction: column; gap: 2px; }
  .tarifs strong { white-space: normal; }
  .champs { grid-template-columns: 1fr; }
  .contact-infos { grid-template-columns: 1fr; }
  .formulaire-contact { padding: 32px 20px 28px; margin: 0 -8px; }
  .envoi { flex-direction: column; align-items: stretch; }
  .envoi .bouton { white-space: normal; padding-left: 16px; padding-right: 16px; }
  .etat-recap > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-zone { padding: 64px 0 90px; }
  .fiche-identite { padding: 6px 18px; margin-left: -6px; margin-right: -6px; }
  .fiche-identite > div { grid-template-columns: 1fr; gap: 4px; }
  .bouton { width: 100%; text-align: center; }
  .formulaire button { justify-self: stretch; }
  .pied-grille { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .pied { padding-top: 10vh; }
  .simulateur { padding: 24px 20px 20px; margin: 0 -8px; }
}

/* =========================================================
   PAGE VENDRE : tableau comparatif des deux mandats
   Deux groupes : « Ce qui ne change pas » et « Ce qui change ».
   Coche = compris, croix = non compris, « Offert » en petit dessous.
   La colonne « exclusif » ressort en beige.
   ========================================================= */
.mandats-tete { max-width: 720px; margin-bottom: 64px; }
.mandats-tete .titre-section { margin: 0; }
.mandats-tete p { margin: 20px 0 0; font-size: 21px; }

.comparatif {
  width: 100%;
  max-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}
.comparatif th,
.comparatif td {
  padding: 17px 24px;
  border-bottom: 1px solid var(--sable);
  font-weight: 400;
  text-align: center;          /* coches et croix au centre de leur colonne */
  vertical-align: middle;
}
/* première colonne : le nom de la prestation, à gauche */
.comparatif tbody th {
  padding-left: 0;
  text-align: left;
  color: var(--encre);
  font-size: 19px;
  line-height: 1.35;
}

/* en-tête : le nom des deux mandats (même taille que leur rappel dans « Ce qui change ») */
.comparatif thead td { width: 40%; }
.comparatif thead th {
  width: 30%;
  padding-top: 40px;
  padding-bottom: 26px;
  vertical-align: bottom;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.15;
  color: var(--encre);
}

/* nom du groupe (« Ce qui ne change pas », « Ce qui change »), à gauche */
.comparatif .groupe-nom {
  padding-left: 0;
  text-align: left;
  vertical-align: bottom;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;          /* lignes de longueur égale (pas un mot seul en bas) */
  color: var(--cuivre);
}
.comparatif thead .groupe-nom { padding-bottom: 28px; }

/* rappel des deux mandats en tête du groupe « Ce qui change » */
.comparatif .rappel th,
.comparatif .rappel td { padding-top: 56px; padding-bottom: 16px; vertical-align: bottom; }
.comparatif .rappel td {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.15;
  color: var(--encre);
}

/* la colonne « exclusif », en beige, comme une carte posée sur la page */
.comparatif .exclusif { background: var(--beige); }
.comparatif thead .exclusif { padding-top: 52px; }
.comparatif tbody:last-child tr:last-child .exclusif { padding-bottom: 30px; border-bottom-color: transparent; }

/* coche (compris) et croix (non compris), dessinées en CSS */
.coche,
.croix { display: inline-block; position: relative; vertical-align: middle; }
.coche {
  width: 8px;
  height: 15px;
  border: solid var(--cuivre);
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg) translate(-2px, -2px);
}
.croix { width: 13px; height: 13px; }
.croix::before,
.croix::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--texte);
  transform: rotate(45deg);
}
.croix::after { transform: rotate(-45deg); }

/* « Offert », en petit sous la coche */
.offert {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cuivre);
}

/* au survol d'une ligne (souris uniquement) : la coche grossit un peu avec un léger rebond,
   la croix fait un quart de tour. Rien ne bouge si le visiteur a demandé « moins d'animations ». */
@media (hover: hover) and (pointer: fine) {
  .anime .comparatif .coche,
  .anime .comparatif .croix { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .anime .comparatif tbody tr:hover .coche { transform: rotate(45deg) translate(-2px, -2px) scale(1.22); }
  .anime .comparatif tbody tr:hover .croix { transform: rotate(90deg) scale(1.12); }
}

/* texte lu par les lecteurs d'écran, invisible à l'œil */
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .mandats-tete { margin-bottom: 40px; }
  .mandats-tete p { font-size: 19px; }
  .comparatif th, .comparatif td { padding: 14px 8px; }
  .comparatif tbody th { padding-left: 0; font-size: 16px; overflow-wrap: break-word; }   /* mots entiers ; coupés seulement s'ils ne tiennent pas */
  .comparatif thead td { width: 36%; }
  .comparatif thead th { width: 32%; padding-top: 26px; padding-bottom: 18px; font-size: 17px; }
  .comparatif thead .exclusif { padding-top: 34px; }
  .comparatif .groupe-nom { padding-left: 0; font-size: 11px; letter-spacing: 0.16em; }
  .comparatif thead .groupe-nom { padding-bottom: 20px; }
  .comparatif .rappel th, .comparatif .rappel td { padding-top: 40px; padding-bottom: 12px; }
  .comparatif .rappel td { font-size: 17px; }
  .comparatif tbody:last-child tr:last-child .exclusif { padding-bottom: 22px; }
  .offert { font-size: 10.5px; letter-spacing: 0.14em; }
}

/* =========================================================
   BLOCS DÉPLIANTS (page Vendre : « La méthode »)
   Même geste que sur l'accueil : le + tourne en ×, le texte se déplie.
   ========================================================= */
.depliant { border-top: 1px solid var(--encre); }
.depliant:last-child { border-bottom: 1px solid var(--encre); }
.depliant-titre { margin: 0; font-size: inherit; }
.depliant-bouton {
  display: grid;
  grid-template-columns: 1fr 26px;
  gap: 12px 24px;
  align-items: center;
  width: 100%;
  padding: 36px 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--encre);
  text-align: left;
  cursor: pointer;
}
.depliant-nom {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.05;
  transition: transform 0.8s var(--ease);
}
.depliant-bouton:hover .depliant-nom,
.depliant.ouvert .depliant-nom { transform: translateX(14px); }
.depliant-phrase { grid-column: 1; font-size: 19px; line-height: 1.5; color: var(--texte); }

/* le signe + qui devient × en tournant */
.depliant-icone {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 0.6s var(--ease);
}
.depliant-icone::before,
.depliant-icone::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--encre);
}
.depliant-icone::after { transform: rotate(90deg); }
.depliant.ouvert .depliant-icone { transform: rotate(135deg); }

/* le contenu se déplie en douceur (hauteur animée), le texte monte en fondu */
.depliant-contenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--ease); }
.depliant.ouvert .depliant-contenu { grid-template-rows: 1fr; }
.depliant-interieur { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s 0.8s; }
.depliant.ouvert .depliant-interieur { visibility: visible; transition-delay: 0s; }

/* les points de chaque étape : un intitulé, puis une phrase */
.depliant-points {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0 0 44px 14px;        /* décalé comme le titre ouvert */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.depliant.ouvert .depliant-points { opacity: 1; transform: none; transition-delay: 0.2s; }
.depliant-points dt { font-size: 20px; line-height: 1.3; color: var(--encre); }
.depliant-points dt::before {       /* petit trait cuivre devant chaque intitulé */
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 12px;
  vertical-align: 0.32em;
  background: var(--cuivre);
}
.depliant-points dd { max-width: 520px; margin: 6px 0 0 28px; font-size: 17.5px; line-height: 1.6; color: var(--texte); }

@media (prefers-reduced-motion: reduce) {
  .depliant-nom, .depliant-icone, .depliant-contenu, .depliant-points { transition: none; }
}
@media (max-width: 600px) {
  .depliant-bouton { padding: 28px 0; gap: 10px 16px; }
  .depliant-phrase { font-size: 17px; }
  .depliant-bouton:hover .depliant-nom, .depliant.ouvert .depliant-nom { transform: none; }
  .depliant-points { padding: 0 0 34px; gap: 20px; }
  .depliant-points dd { margin-left: 28px; font-size: 16.5px; }
}

/* =========================================================
   PAGE 404 (page introuvable) + mini-jeu discret en bas
   ========================================================= */
.page-404 {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 150px 0 26px;
}
.p404-message { margin: auto; }                     /* le message reste au centre de l'écran */
.p404-titre { font-size: clamp(40px, 6vw, 84px); line-height: 1.05; }
.p404-texte { max-width: 520px; margin: 26px auto 0; }
.p404-liens { display: flex; justify-content: center; gap: 28px; margin: 30px 0 0; font-size: 16px; }
.p404-jeu { display: flex; flex-direction: column; align-items: center; margin-top: 64px; padding: 0 20px; }
.p404-toile { width: min(520px, 100%); }
#jeu-maison { display: block; cursor: pointer; touch-action: manipulation; outline: none; }
#jeu-maison:focus-visible { outline: 1px dotted var(--sable); outline-offset: 6px; }
.p404-aide {
  min-height: 1.6em;
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texte);
  opacity: 0.6;
}
@media (max-width: 600px) {
  .page-404 { padding-top: 120px; }
  .p404-liens { gap: 22px; }
}
