@charset "UTF-8";
/* ==========================================================================
   Les Terrasses de Tromborn — feuille de style unique
   Système de design « Samara » : plan d'architecte sur papier chaud.
   ========================================================================== */

/* --- Polices auto-hébergées (aucun appel à Google, conforme RGPD) --------- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons -------------------------------------------------------------- */

:root {
  --bleu: #0096f7;
  --bleu-fonce: #007ad0;
  --orange: #ff4000;
  --encre: #000;
  --blanc: #fff;
  --parchemin: #fdfdf7;
  --sable: #f5f2de;
  --carte: #f7f7f0;
  --bois: #e7e3e1;
  --cendre: #d3d3d3;
  --pierre: #999;
  --graphite: #666;
  --sapin: #375033;

  --trait: rgba(0, 0, 0, .1);
  --trait-fin: rgba(0, 0, 0, .06);

  --police: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --om-douce: rgba(0, 0, 0, .12) 0 .5px 2px 0;
  --om-carte: rgba(0, 0, 0, .2) 0 2px 4px 0;
  --om-survol: rgba(0, 0, 0, .08) 0 2px 10px 0;

  --r: 12px;
  --r-lg: 18px;
  --r-pill: 24px;

  --large: 1280px;
  --gouttiere: clamp(20px, 5vw, 54px);
  --section: clamp(72px, 11vw, 132px);
}

/* --- Réinitialisation --------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--parchemin);
  color: var(--encre);
  font-family: var(--police);
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: -.18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--bois); }

h1, h2, h3, h4 { margin: 0; font-weight: 200; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 14px 20px; background: var(--encre); color: var(--blanc);
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* --- Échelle typographique --------------------------------------------- */

.t-display {
  font-size: clamp(44px, 9.2vw, 96px);
  line-height: .9;
  letter-spacing: -.047em;
  font-weight: 200;
}
.t-h1 {
  font-size: clamp(36px, 6.4vw, 60px);
  line-height: .96;
  letter-spacing: -.041em;
  font-weight: 200;
}
.t-h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1;
  letter-spacing: -.027em;
  font-weight: 200;
}
.t-h3 {
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -.014em;
  font-weight: 200;
}
.t-h4 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.14;
  letter-spacing: -.03em;
  font-weight: 300;
}
.t-lead {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 300;
  color: #1a1a1a;
}
.t-petit { font-size: 16px; line-height: 1.49; letter-spacing: -.22px; }

/* Sur-titre : le repère de section, façon numéro de planche d'architecte. */
.surtitre {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 24px;
}
.surtitre::before {
  content: ''; width: 30px; height: 1px;
  background: var(--encre); flex: none;
}

.gris { color: var(--graphite); }
.mesure { max-width: 62ch; }
.mesure-courte { max-width: 46ch; }

/* --- Structure ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.section { padding-block: var(--section); }
.section--sable { background: var(--sable); }
.section--encre { background: var(--encre); color: var(--parchemin); }
.section--encre .gris { color: #a0a0a0; }
.section--encre .surtitre { color: #a0a0a0; }
.section--encre .surtitre::before { background: var(--parchemin); }

/* Calque de fond « papier millimétré », très discret. */
.section--grille {
  background-image:
    linear-gradient(var(--trait-fin) 1px, transparent 1px),
    linear-gradient(90deg, var(--trait-fin) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  text-align: center;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }

.btn--primaire { background: var(--bleu); color: var(--blanc); }
.btn--primaire:hover { background: var(--bleu-fonce); box-shadow: var(--om-survol); }

.btn--urgent { background: var(--orange); color: var(--blanc); }
.btn--urgent:hover { background: #e03800; box-shadow: var(--om-survol); }

.btn--encre { background: var(--encre); color: var(--blanc); }
.btn--encre:hover { background: #1f1f1f; box-shadow: var(--om-survol); }

.btn--fantome {
  background: rgba(0, 0, 0, .04);
  color: var(--encre);
  border-radius: var(--r-pill);
}
.btn--fantome:hover { background: rgba(0, 0, 0, .08); }

.btn--fantome-clair {
  background: transparent; color: var(--parchemin);
  border-color: rgba(255, 255, 255, .35);
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}
.btn--fantome-clair:hover { background: rgba(255, 255, 255, .1); border-color: var(--parchemin); }

.btn--bloc { width: 100%; }

.lien-nu {
  background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--cendre);
}
.lien-nu:hover { text-decoration-color: currentColor; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--bleu); font-weight: 500; font-size: 16px;
}
.lien-fleche::after {
  content: '→';
  transition: transform .25s cubic-bezier(.2, .8, .3, 1);
}
.lien-fleche:hover::after { transform: translateX(5px); }

/* --- En-tête ------------------------------------------------------------ */

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 253, 247, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.entete.est-colle { border-bottom-color: var(--trait); }

.entete__in {
  max-width: var(--large);
  margin-inline: auto;
  padding: 14px var(--gouttiere);
  display: flex; align-items: center; gap: 32px;
}

.marque { display: flex; align-items: center; gap: 12px; flex: none; }
.marque__logo { width: 30px; height: 22px; color: var(--encre); }
.marque__txt { display: flex; flex-direction: column; line-height: 1.05; }
.marque__nom { font-size: 16px; font-weight: 500; letter-spacing: -.03em; }
.marque__lieu { font-size: 12px; color: var(--graphite); letter-spacing: .02em; }

.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a {
  font-size: 15px; color: #2a2a2a;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--encre); border-bottom-color: var(--cendre); }
.nav a[aria-current] { color: var(--encre); border-bottom-color: var(--encre); }

.entete__cta { display: flex; align-items: center; gap: 18px; flex: none; }
.entete__cta .btn { padding: 11px 20px; font-size: 14px; }

.dispo-pastille {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--graphite);
  white-space: nowrap;
}
.dispo-pastille i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22a95b; flex: none;
  box-shadow: 0 0 0 3px rgba(34, 169, 91, .16);
  animation: pouls 2.6s ease-in-out infinite;
}
@keyframes pouls {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 169, 91, .16); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 169, 91, .05); }
}

.burger {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 0; padding: 12px;
  flex-direction: column; justify-content: space-between;
}
.burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--encre);
  transition: transform .3s, opacity .3s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* L'attribut hidden doit l'emporter sur la mise en page. */
[hidden] { display: none !important; }

.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gouttiere) 28px;
  border-top: 1px solid var(--trait);
  background: var(--parchemin);
}
.nav-mobile a {
  padding: 15px 0; font-size: 20px; font-weight: 300; letter-spacing: -.02em;
  border-bottom: 1px solid var(--trait-fin);
}
.nav-mobile .btn { margin-top: 20px; border-bottom: 0; font-size: 15px; }

@media (max-width: 1040px) {
  .nav, .entete__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
}
@media (min-width: 1041px) {
  .nav-mobile { display: none !important; }
}

/* --- Héros -------------------------------------------------------------- */

.heros { position: relative; background: var(--encre); color: var(--parchemin); overflow: hidden; }
.heros__media { position: absolute; inset: 0; }
.heros__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .74;
  animation: heros-zoom 22s ease-out forwards;
}
@keyframes heros-zoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
.heros__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 46%, rgba(0,0,0,.2) 100%),
    linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 45%);
}

.heros__in {
  position: relative;
  max-width: var(--large);
  margin-inline: auto;
  padding: clamp(88px, 15vw, 176px) var(--gouttiere) clamp(48px, 7vw, 76px);
  min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
}

.heros__credit {
  position: absolute; right: var(--gouttiere); bottom: 12px;
  font-size: 11px; letter-spacing: .04em;
  color: rgba(253, 253, 247, .45);
  z-index: 2;
}
@media (max-width: 700px) { .heros__credit { display: none; } }

.heros__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-pill);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.heros__titre { max-width: 20ch; margin-bottom: 24px; }
/* Soulignement qui suit proprement les retours à la ligne. */
.heros__titre em {
  font-style: normal;
  color: var(--parchemin);
  text-decoration: underline;
  text-decoration-color: var(--bleu);
  text-decoration-thickness: 2px;
  text-underline-offset: .12em;
  text-decoration-skip-ink: none;
}
.heros__txt { max-width: 48ch; color: rgba(253, 253, 247, .8); margin-bottom: 40px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 6vw, 64px); }

/* Bandeau de chiffres clés, aligné sur une règle graduée. */
.heros__chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  position: relative;
}
.heros__chiffres::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 64px; height: 3px; background: var(--bleu);
}
.chiffre { padding-top: 6px; }
.chiffre__v {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 200; letter-spacing: -.04em; line-height: 1;
  display: block; margin-bottom: 8px;
}
.chiffre__l { font-size: 13px; color: rgba(253, 253, 247, .62); letter-spacing: 0; }

/* --- Grilles génériques ------------------------------------------------- */

.grille { display: grid; gap: clamp(24px, 3vw, 42px); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.duo {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5.5vw, 84px);
  align-items: center;
}
.duo--haut { align-items: start; }
.duo--inverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo--inverse > :first-child { order: 0; }
}

.entete-section { margin-bottom: clamp(40px, 5vw, 64px); }
.entete-section--split {
  display: flex; flex-wrap: wrap; gap: 32px;
  align-items: flex-end; justify-content: space-between;
}

/* --- Cartes ------------------------------------------------------------- */

.carte {
  background: var(--carte);
  border-radius: var(--r);
  box-shadow: var(--om-douce);
  padding: clamp(24px, 3vw, 36px);
}
.carte--sable { background: var(--sable); border-radius: var(--r-lg); }
.carte--vide { background: transparent; box-shadow: none; border: 1px solid var(--trait); padding: 30px; }

/* Carte « atout » : le numéro en fond, façon repère de plan. */
.atout { position: relative; overflow: hidden; }
.atout__num {
  position: absolute; top: -8px; right: 14px;
  font-size: 88px; font-weight: 200; line-height: 1;
  color: rgba(0, 0, 0, .045);
  letter-spacing: -.05em;
  pointer-events: none;
}
.atout h3 { margin-bottom: 12px; position: relative; }
.atout p { color: var(--graphite); font-size: 16px; line-height: 1.5; position: relative; }
.atout__ico { width: 26px; height: 26px; color: var(--bleu); margin-bottom: 20px; }

/* --- Carte lot ---------------------------------------------------------- */

.lots-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(304px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.lot {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--carte);
  border-radius: var(--r);
  box-shadow: var(--om-douce);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.lot:hover { box-shadow: var(--om-carte); transform: translateY(-3px); }
.lot--indispo { opacity: .62; }
.lot--indispo:hover { transform: none; box-shadow: var(--om-douce); }

.lot__media { position: relative; aspect-ratio: 3 / 2; background: var(--bois); overflow: hidden; }
.lot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.lot:hover .lot__media img { transform: scale(1.04); }

.lot__num {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 7px 13px;
  background: rgba(253, 253, 247, .93);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
}
.lot__num b { font-weight: 600; }

.lot__corps { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 18px; }
.lot__haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.lot__typo { font-size: 23px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.lot__typo span { display: block; font-size: 13px; color: var(--graphite); letter-spacing: 0; margin-top: 5px; }

.lot__specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-block: 16px;
  border-top: 1px solid var(--trait-fin);
  border-bottom: 1px solid var(--trait-fin);
}
.lot__spec { font-size: 15px; font-weight: 500; }
.lot__spec span { display: block; font-size: 11.5px; font-weight: 400; color: var(--pierre); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }

.lot__pied { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.lot__prix { font-size: 27px; font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.lot__prix small { display: block; font-size: 12px; color: var(--pierre); letter-spacing: 0; margin-top: 6px; font-weight: 400; }
.lot__lien { position: absolute; inset: 0; z-index: 1; }
.lot__lien span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lot__cta { position: relative; z-index: 2; pointer-events: none; }

/* --- Étiquettes de statut ---------------------------------------------- */

.statut {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  white-space: nowrap;
  flex: none;
}
.statut::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.statut--dispo   { background: rgba(34, 169, 91, .12);  color: #157a41; }
.statut--option  { background: rgba(255, 149, 0, .14);  color: #9a5a00; }
.statut--reserve { background: rgba(255, 149, 0, .14);  color: #9a5a00; }
.statut--vendu   { background: rgba(0, 0, 0, .07);      color: var(--graphite); }

/* --- Plan de masse interactif ------------------------------------------ */

.plan {
  background: var(--sable);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--om-douce);
}
.plan__cadre {
  position: relative;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--r);
  background:
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 28px 100%,
    #fbfaf2;
  overflow: hidden;
}
.plan__svg { width: 100%; height: auto; display: block; }

/* Sous 720 px, un plan à pleine largeur rend les numéros illisibles :
   on lui donne une largeur minimale et on le fait défiler latéralement. */
@media (max-width: 720px) {
  .plan__cadre {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .plan__svg { min-width: 660px; }
  .plan__legende span:last-child,
  .plan__legende .plan__note { margin-left: 0; }
}
/* Mention de fin de légende, poussée à droite sur grand écran. */
.plan__note { margin-left: auto; }
.plan__glisser {
  display: none;
  font-size: 12px; color: var(--pierre);
  margin-top: 10px; text-align: center;
}
@media (max-width: 720px) { .plan__glisser { display: block; } }

.plan-lot { cursor: pointer; }
.plan-lot--statique { cursor: default; }
.plan-lot__forme {
  fill: #fff;
  stroke: var(--encre);
  stroke-width: 1.1;
  transition: fill .22s, stroke-width .22s;
}
.plan-lot__terrain {
  fill: rgba(55, 80, 51, .08);
  stroke: rgba(0, 0, 0, .16);
  stroke-width: .6;
  stroke-dasharray: 3 2.5;
  transition: fill .22s;
}
.plan-lot:hover .plan-lot__terrain,
.plan-lot:focus-visible .plan-lot__terrain,
.plan-lot[aria-current="true"] .plan-lot__terrain { fill: rgba(0, 150, 247, .1); }
.plan-lot__num {
  font-size: 11px; font-weight: 600; fill: var(--encre);
  text-anchor: middle; dominant-baseline: central;
  pointer-events: none; letter-spacing: 0;
}
.plan-lot[data-statut="disponible"] .plan-lot__forme { fill: rgba(34, 169, 91, .2); }
.plan-lot[data-statut="option"]     .plan-lot__forme,
.plan-lot[data-statut="reserve"]    .plan-lot__forme { fill: rgba(255, 149, 0, .26); }
.plan-lot[data-statut="vendu"]      .plan-lot__forme { fill: rgba(0, 0, 0, .16); }
.plan-lot[data-statut="vendu"]      .plan-lot__num   { fill: var(--graphite); }

.plan-lot:hover .plan-lot__forme,
.plan-lot:focus-visible .plan-lot__forme {
  fill: var(--bleu);
  stroke-width: 2;
}
.plan-lot:hover .plan-lot__num,
.plan-lot:focus-visible .plan-lot__num { fill: #fff; }
.plan-lot[aria-current="true"] .plan-lot__forme { fill: var(--bleu); stroke-width: 2.2; }
.plan-lot[aria-current="true"] .plan-lot__num { fill: #fff; }

.plan__voirie { fill: rgba(0, 0, 0, .055); stroke: rgba(0,0,0,.14); stroke-width: .8; }
.plan__vert { fill: rgba(55, 80, 51, .13); stroke: none; }
.plan__parking rect { fill: rgba(0, 150, 247, .12); stroke: rgba(0,0,0,.18); stroke-width: .5; }
.plan__terrain { fill: rgba(0, 0, 0, .022); stroke: rgba(0, 0, 0, .16); stroke-width: 1; stroke-dasharray: 5 4; }
.plan__legende-txt { font-size: 9.5px; fill: var(--graphite); letter-spacing: .1em; text-transform: uppercase; }
.plan__nord { fill: none; stroke: var(--graphite); stroke-width: 1; }
.plan__cote { stroke: var(--pierre); stroke-width: .7; }
.plan__cote-txt { font-size: 8.5px; fill: var(--pierre); text-anchor: middle; }

.plan__legende {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--trait);
  font-size: 13px; color: var(--graphite);
}
.plan__legende span { display: inline-flex; align-items: center; gap: 8px; }
.plan__legende i { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0,0,0,.28); flex: none; }
.plan__legende .i-dispo  { background: rgba(34, 169, 91, .2); }
.plan__legende .i-option { background: rgba(255, 149, 0, .26); }
.plan__legende .i-vendu  { background: rgba(0, 0, 0, .16); }

/* Infobulle du plan */
.plan__bulle {
  position: absolute; z-index: 5;
  min-width: 176px;
  padding: 13px 16px;
  background: var(--encre); color: var(--parchemin);
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .26);
  font-size: 13px; line-height: 1.4;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -112%) scale(.96);
  transition: opacity .16s, transform .16s;
}
.plan__bulle.est-visible { opacity: 1; transform: translate(-50%, -118%) scale(1); }
.plan__bulle b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.plan__bulle em { font-style: normal; color: #9fd8ff; }
.plan__bulle::after {
  content: ''; position: absolute; bottom: -5px; left: 50%;
  width: 10px; height: 10px; background: var(--encre);
  transform: translateX(-50%) rotate(45deg);
}

/* Quand la maison est trop haut dans le cadre, l'infobulle bascule dessous
   pour ne pas être coupée par le bord. */
.plan__bulle.est-dessous { transform: translate(-50%, 12%) scale(.96); }
.plan__bulle.est-dessous.est-visible { transform: translate(-50%, 18%) scale(1); }
.plan__bulle.est-dessous::after { bottom: auto; top: -5px; }

/* --- Filtres ----------------------------------------------------------- */

.filtres {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 36px;
}
.filtres__l { font-size: 13px; color: var(--graphite); margin-right: 6px; }
.filtre {
  padding: 9px 17px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  transition: background-color .2s, border-color .2s;
}
.filtre:hover { background: rgba(0, 0, 0, .08); }
.filtre[aria-current="true"] { background: var(--encre); color: var(--blanc); }
.filtre b { font-weight: 400; opacity: .55; margin-left: 3px; }

/* --- Page lot ---------------------------------------------------------- */

.fil { padding-block: 22px 0; font-size: 13px; color: var(--graphite); }
.fil ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fil li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--cendre); }
.fil a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }

.lot-tete { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.lot-tete__haut { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 22px; }
.lot-tete__ref {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
}

.prix-bloc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; margin-block: 32px; }
.prix-bloc__v { font-size: clamp(40px, 6vw, 60px); font-weight: 200; letter-spacing: -.045em; line-height: .95; }
.prix-bloc__d { font-size: 14px; color: var(--graphite); line-height: 1.5; }

.fiche {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  background: var(--trait-fin);
  border: 1px solid var(--trait-fin);
  border-radius: var(--r);
  overflow: hidden;
}
.fiche__c { background: var(--parchemin); padding: 22px 20px; }
.fiche__l {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pierre); margin-bottom: 9px;
}
.fiche__v { font-size: 20px; font-weight: 300; letter-spacing: -.02em; line-height: 1.2; }
.fiche__v small { font-size: 13px; color: var(--graphite); font-weight: 400; letter-spacing: 0; }

/* Tableau des surfaces */
.surfaces { width: 100%; border-collapse: collapse; font-size: 16px; }
.surfaces caption { text-align: left; font-size: 13px; color: var(--graphite); padding-bottom: 14px; }
.surfaces th, .surfaces td { padding: 14px 4px; text-align: left; border-bottom: 1px solid var(--trait-fin); }
.surfaces th { font-weight: 400; }
.surfaces td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.surfaces tfoot th, .surfaces tfoot td { font-weight: 500; border-bottom: 0; border-top: 1px solid var(--encre); }

/* Panneau contact latéral, collant */
.aside-contact {
  position: sticky; top: 100px;
  background: var(--sable);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--om-douce);
}
.aside-contact h2 { margin-bottom: 10px; }
.aside-contact p { font-size: 15px; color: var(--graphite); line-height: 1.5; margin-bottom: 24px; }
.aside-contact .btn { margin-bottom: 10px; }
.aside-contact__tel {
  display: block; text-align: center; font-size: 15px; padding-top: 14px;
  border-top: 1px solid var(--trait); margin-top: 18px; color: var(--graphite);
}
.aside-contact__tel b { display: block; font-size: 21px; font-weight: 400; color: var(--encre); margin-top: 6px; letter-spacing: -.02em; }

/* --- Galerie ----------------------------------------------------------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.galerie__c {
  position: relative; overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 3 / 2;
  background: var(--bois);
  cursor: zoom-in;
  border: 0; padding: 0;
}
.galerie__c img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.galerie__c:hover img { transform: scale(1.05); }
/* Tuile vedette : occupe un bloc 2×2 qui reste au ratio 3/2 et cale
   parfaitement sur les tuiles voisines, sans laisser de trou dans la grille. */
.galerie__c--large { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .galerie__c--large { grid-row: span 1; aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .galerie { grid-template-columns: 1fr; }
  .galerie__c--large { grid-column: span 1; }
}

/* Un plan doit se lire en entier : pas de recadrage, fond clair. */
.plan-typo {
  width: 100%;
  aspect-ratio: auto;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r);
  padding: 12px;
  cursor: zoom-in;
}
.plan-typo img { object-fit: contain; height: auto; }

/* Visionneuse plein écran */
.visionneuse {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, .94);
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.visionneuse.est-ouverte { opacity: 1; pointer-events: auto; }
.visionneuse img { max-width: 100%; max-height: 82vh; border-radius: 6px; object-fit: contain; }
.visionneuse__leg {
  color: rgba(255, 255, 255, .72); font-size: 14px; text-align: center;
  margin-top: 20px; max-width: 68ch;
}
.visionneuse__x, .visionneuse__prec, .visionneuse__suiv {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 0; border-radius: 50%;
  color: #fff; font-size: 22px; line-height: 1;
  transition: background-color .2s;
}
.visionneuse__x:hover, .visionneuse__prec:hover, .visionneuse__suiv:hover { background: rgba(255, 255, 255, .22); }
.visionneuse__x { top: 20px; right: 20px; }
.visionneuse__prec { left: 20px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .visionneuse__prec { left: 10px; }
  .visionneuse__suiv { right: 10px; }
}

/* --- Liste de prestations --------------------------------------------- */

.presta { display: grid; gap: 0; }
.presta__l {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--trait-fin);
  font-size: 16px; line-height: 1.5;
}
.presta__l::before {
  content: ''; flex: none;
  width: 16px; height: 16px; margin-top: 4px;
  border-radius: 50%;
  background: var(--bleu);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.presta__l b { font-weight: 500; }

/* --- Accordéon (FAQ) -------------------------------------------------- */

.faq { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-size: clamp(18px, 2vw, 21px); font-weight: 300; letter-spacing: -.02em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none;
  width: 20px; height: 20px; margin-top: 4px;
  background: var(--encre);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__r { padding-bottom: 28px; max-width: 72ch; color: var(--graphite); line-height: 1.6; font-size: 16.5px; }
.faq__r p + p { margin-top: 14px; }
.faq__r a { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }

/* --- Formulaire ------------------------------------------------------- */

.form { display: grid; gap: 20px; }
.form__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__duo { grid-template-columns: 1fr; } }

.champ { display: grid; gap: 8px; }
.champ label { font-size: 14px; font-weight: 500; }
.champ label .opt { font-weight: 400; color: var(--pierre); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 16px;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, .03);
  border: 1px solid var(--trait);
  border-radius: var(--r);
  color: var(--encre);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 128px; resize: vertical; }
.champ select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 42px;
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: rgba(0,0,0,.2); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 0;
  border-color: var(--bleu);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(0, 150, 247, .13);
}
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--orange); }
.champ__err { font-size: 13px; color: #d63200; }
.champ__aide { font-size: 13px; color: var(--pierre); }

.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.case input { width: 19px; height: 19px; flex: none; margin-top: 2px; accent-color: var(--bleu); }
.case a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }

.leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alerte {
  padding: 18px 20px; border-radius: var(--r);
  font-size: 15px; line-height: 1.5;
  border: 1px solid;
}
.alerte--ok  { background: rgba(34, 169, 91, .09); border-color: rgba(34, 169, 91, .3); color: #12622f; }
.alerte--err { background: rgba(255, 64, 0, .07); border-color: rgba(255, 64, 0, .3); color: #a82a00; }

/* --- Bandeau d'appel final ------------------------------------------- */

.bandeau-cta {
  background: var(--encre); color: var(--parchemin);
  padding-block: clamp(64px, 9vw, 112px);
  text-align: center;
  position: relative; overflow: hidden;
}
.bandeau-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
}
.bandeau-cta .wrap { position: relative; }
.bandeau-cta__sur { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 22px; }
.bandeau-cta__titre { font-size: clamp(34px, 5.6vw, 60px); font-weight: 200; letter-spacing: -.042em; line-height: .98; margin-bottom: 22px; }
.bandeau-cta__txt { max-width: 52ch; margin: 0 auto 40px; color: rgba(253,253,247,.72); font-size: 18px; line-height: 1.45; }
.bandeau-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- Pied de page ---------------------------------------------------- */

.pied { background: var(--parchemin); border-top: 1px solid var(--trait); padding-top: clamp(56px, 7vw, 88px); }
.pied__grille {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied__grille { grid-template-columns: 1fr; } }

.pied__marque .marque__logo { width: 34px; height: 24px; margin-bottom: 18px; }
.pied__nom { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.pied__bl { font-size: 14px; color: var(--graphite); margin-top: 4px; }
.pied__adr { font-size: 14px; color: var(--graphite); line-height: 1.6; margin-top: 22px; }

.pied__col { display: flex; flex-direction: column; gap: 12px; }
.pied__col h2 { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pierre); margin-bottom: 6px; }
.pied__col a { font-size: 15px; color: #2a2a2a; }
.pied__col a:hover { color: var(--bleu); }
.pied__tel { font-size: 21px !important; font-weight: 300; letter-spacing: -.02em; }
.pied__vendeur { font-size: 13px; color: var(--pierre); margin-top: 10px; line-height: 1.6; }

.reseaux { display: flex; gap: 10px; margin-top: 18px; }
.reseaux a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .05);
  color: var(--graphite);
  transition: background-color .2s, color .2s;
}
.reseaux a:hover { background: var(--encre); color: var(--parchemin); }
.reseaux svg { width: 17px; height: 17px; fill: currentColor; }

.pied__bas {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid var(--trait);
  font-size: 13px; color: var(--graphite);
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 24px; }
.pied__bas a:hover, .pied__bas button:hover { color: var(--encre); }
.pied__bas button { font-size: 13px; color: var(--graphite); }

.pied__avert {
  font-size: 12px; line-height: 1.6; color: var(--pierre);
  padding-bottom: 40px; max-width: 100ch;
}

/* --- Bandeau de consentement ---------------------------------------- */

.consent {
  position: fixed; z-index: 250;
  left: 50%; bottom: clamp(12px, 3vw, 28px);
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 720px);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  animation: consent-entree .45s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes consent-entree {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.consent__in {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  padding: 22px 24px;
}
.consent__t { font-size: 16px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.consent__p { font-size: 13.5px; line-height: 1.5; color: var(--graphite); max-width: 46ch; }
.consent__p a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; flex: none; }
.consent__actions .btn { padding: 12px 22px; font-size: 14px; }
@media (max-width: 560px) {
  .consent__in { flex-direction: column; align-items: stretch; }
  .consent__actions .btn { flex: 1; }
}

/* --- Apparition au défilement --------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); }
  .reveal.est-vu {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1);
  }
  .reveal.est-vu:nth-child(2) { transition-delay: .07s; }
  .reveal.est-vu:nth-child(3) { transition-delay: .14s; }
  .reveal.est-vu:nth-child(4) { transition-delay: .21s; }
}

/* --- Utilitaires ----------------------------------------------------- */

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.centre { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-s { margin-bottom: 16px; } .mb-m { margin-bottom: 32px; } .mb-l { margin-bottom: 56px; }
.pleine-largeur-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--om-douce); }

@media print {
  .entete, .bandeau-cta, .consent, .visionneuse, .burger, .nav-mobile { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
}
