/* =========================================================
   MILLENIUM — feuille de style
   Palette « vert olive ». Toutes les couleurs se règlent
   dans le bloc :root ci-dessous.
   ========================================================= */

/* Police Jost, hébergée avec le site (aucun appel à Google Fonts) */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --blanc: #FAFAF8;         /* panneaux de façade */
  --brume: #EFEEE8;         /* fonds de section */
  --zinc: #63665B;          /* textes secondaires */
  --graphite: #272A22;      /* texte principal */
  --accent: #4A5530;        /* vert olive : boutons, section contact */
  --accent-fonce: #3A4325;  /* survol des boutons */
  --accent-clair: #DCDDB0;  /* niveaux disponibles, survols sur fond sombre */
  --accent-bord: #B9BB80;   /* bordure des niveaux disponibles */
  --ligne: rgba(35, 41, 44, 0.14);
  --ligne-forte: rgba(35, 41, 44, 0.32);

  --police: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --entete-h: 76px;
  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --largeur: 1320px;
}

/* ---------- Bases ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--entete-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--graphite);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; max-width: 18ch; }
h3 { font-size: 1.375rem; font-weight: 400; line-height: 1.3; }
p { margin: 0 0 1em; }
dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.evitement {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--graphite); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.evitement:focus { top: 1rem; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.section { padding: var(--section) 0; }

/* Repère visuel des contenus à compléter avant mise en ligne.
   Une fois tout rempli, ces balises <span class="a-completer"> peuvent rester : supprimez simplement ce bloc. */
.a-completer {
  background: #FFF1A8;
  color: #4A3F00;
  outline: 1px dashed #B39A1B;
  padding: 0 .2em;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.6rem;
  border: 1px solid transparent; border-radius: 2px;
  font-size: .975rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton-clair { background: #fff; color: var(--graphite); }
.bouton-clair:hover { background: var(--accent-clair); }
.bouton-contour-clair { border-color: rgba(255,255,255,.8); color: #fff; }
.bouton-contour-clair:hover { background: rgba(255,255,255,.14); }
.bouton-plein { background: var(--accent); color: #fff; }
.bouton-plein:hover { background: var(--accent-fonce); }
.bouton-contour { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.bouton-contour:hover { background: var(--graphite); color: #fff; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--entete-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 var(--marge);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.entete.solide {
  background: rgba(250, 250, 248, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--graphite);
  box-shadow: 0 1px 0 var(--ligne);
}
.logo {
  font-size: 1.05rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity .3s;
}
/* Sur le héro, le grand titre tient lieu de logo */
.entete:not(.solide) .logo { opacity: 0; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .95rem; }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.nav .nav-contact {
  border: 1px solid currentColor; padding: .45rem 1.1rem; border-radius: 2px;
}
.nav .nav-contact:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.burger {
  display: none; align-items: center; gap: .6rem;
  background: none; border: 0; padding: .5rem 0; cursor: pointer;
  font-size: .95rem; letter-spacing: .04em;
}
.burger-trait, .burger-trait::before {
  display: block; width: 22px; height: 1px; background: currentColor; position: relative;
}
.burger-trait::before { content: ""; position: absolute; top: 6px; }
.burger-trait { transform: translateY(-3px); }

@media (max-width: 1080px) {
  .burger { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 1.4rem;
    background: var(--blanc); color: var(--graphite);
    font-size: 1.6rem; font-weight: 300;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav .nav-contact { font-size: 1.2rem; font-weight: 400; margin-top: .5rem; }
  body.menu-ouvert .nav { opacity: 1; visibility: visible; }
  body.menu-ouvert .entete {
    color: var(--graphite); background: var(--blanc);
    -webkit-backdrop-filter: none; backdrop-filter: none; /* sinon le menu plein écran reste enfermé dans l'en-tête */
  }
  body.menu-ouvert .entete .logo { opacity: 1; position: relative; z-index: 2; }
  body.menu-ouvert { overflow: hidden; }
}

/* ---------- Héro ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; color: #fff;
  background: #8EA7BC;
}
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0%;
}
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.hero::before { top: 0; height: 45%; background: linear-gradient(rgba(36, 56, 74, .38), rgba(36, 56, 74, 0)); }
.hero::after { bottom: 0; height: 42%; background: linear-gradient(rgba(20, 28, 24, 0), rgba(20, 28, 24, .62)); }

.hero-haut {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: calc(var(--entete-h) + 1vh);
  padding: 0 var(--marge);
}
.hero-titre {
  font-size: clamp(3.1rem, 13.6vw, 15.5rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1;
  margin-left: -.04em;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(30, 50, 70, .18);
  animation: titre-entree 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes titre-entree {
  from { opacity: 0; letter-spacing: .22em; }
  to   { opacity: 1; letter-spacing: .07em; }
}

.hero-bas {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 0 var(--marge) clamp(2rem, 6vh, 4rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  animation: fondu 1s .7s both;
}
.hero-lieu { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 300; max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

/* ---------- L'immeuble ---------- */
.immeuble-grille {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: center;
}
.immeuble-texte { grid-column: 1 / span 6; }
.immeuble-texte h2 { margin-bottom: 2rem; }
.immeuble-texte p { max-width: 58ch; }
.chapeau { font-size: 1.3rem; font-weight: 300; line-height: 1.5; color: var(--graphite); }
.immeuble-photo { grid-column: 8 / span 5; margin: 0; }
.immeuble-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.chiffres {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem; margin-top: 3rem;
}
.chiffre { border-top: 1px solid var(--ligne-forte); padding-top: 1rem; }
.chiffre dt { font-size: .9rem; color: var(--zinc); }
.chiffre dd { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 300; line-height: 1.2; margin-top: .25rem; }

/* ---------- Espaces ---------- */
.espaces { background: var(--brume); }
.espaces h2 { margin-bottom: 3rem; }
.espaces-grille {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.espaces-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne-forte); }
.espaces-liste li { border-bottom: 1px solid var(--ligne-forte); }
.espace {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 2px solid transparent;
  transition: border-color .25s;
}
.espace-titre { display: block; font-size: 1.375rem; font-weight: 400; line-height: 1.3; }
.espace-texte {
  display: block; color: var(--zinc); max-width: 46ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
}
.espace:hover .espace-titre { color: var(--accent); }
.espace.actif { border-left-color: var(--accent); }
.espace.actif .espace-texte { max-height: 10em; opacity: 1; margin-top: .5rem; }
.espace-image-mobile { display: none; }

.espaces-visuel { margin: 0; position: sticky; top: calc(var(--entete-h) + 2rem); }
.espaces-visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s; }
.espaces-visuel img.change { opacity: 0; }

/* ---------- Disponibilités ---------- */
.dispo-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; margin-bottom: 3.5rem; }
.dispo-entete p { margin: 0; max-width: 42ch; color: var(--zinc); }

.dispo-grille {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 4vw, 4rem); align-items: start;
}

/* La coupe reprend la silhouette de l'immeuble : attique en retrait sous sa toiture en zinc */
.coupe { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.coupe-toit {
  width: 78%; height: 46px;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.35) 22px 23px),
    linear-gradient(#8A9297, #6B7378);
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
}
.niveau {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem; align-items: center; gap: 1.5rem;
  min-height: 74px; padding: 0 1.4rem;
  text-align: left; cursor: pointer;
  border: 1px solid var(--ligne-forte); border-radius: 0;
  background: #fff;
  transition: background-color .2s, box-shadow .2s;
}
.niveau-attique { width: 72%; }
.niveau-nom { font-size: 1.15rem; }
.niveau-surface { color: var(--zinc); white-space: nowrap; }
.niveau-statut { font-size: .9rem; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.niveau-statut::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

.niveau[data-statut="disponible"] { background: var(--accent-clair); border-color: var(--accent-bord); }
.niveau[data-statut="disponible"] .niveau-statut { color: var(--accent); font-weight: 500; }
.niveau[data-statut="disponible"] .niveau-surface { color: var(--graphite); }
.niveau[data-statut="loue"] { background: var(--brume); color: var(--zinc); }
.niveau[data-statut="a-confirmer"] {
  background: repeating-linear-gradient(135deg, #fff 0 9px, #F1F2F0 9px 10px);
}
.niveau[data-statut="a-confirmer"] .niveau-statut { color: var(--zinc); }
.niveau[data-statut="parking"] {
  background: repeating-linear-gradient(135deg, #fff 0 9px, var(--brume) 9px 10px);
  border-style: dashed;
}
.niveau[data-statut="parking"] .niveau-statut,
.niveau[data-statut="loue"] .niveau-statut { color: var(--zinc); }
.niveau:hover { box-shadow: inset 0 0 0 1px var(--graphite); }
.niveau[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--graphite); }

.coupe-sol { width: 108%; height: 2px; background: var(--graphite); margin: 6px 0; }
.niveau-sous-sol { border-style: dashed; }

.legende {
  list-style: none; padding: 0; margin: 1.5rem 0 0; align-self: flex-start;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--zinc);
}
.legende li { display: inline-flex; align-items: center; gap: .5rem; }
.pastille { width: 14px; height: 14px; border: 1px solid var(--ligne-forte); }
.pastille-disponible { background: var(--accent-clair); }
.pastille-loue { background: var(--brume); }
.pastille-a-confirmer { background: repeating-linear-gradient(135deg, #fff 0 3px, #D9DCDA 3px 4px); }

.fiche {
  background: var(--brume);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.fiche-vide { color: var(--zinc); margin: 0; }
.fiche h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 300; margin-bottom: 1.5rem; }
.fiche dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--ligne); }
.fiche dl div:last-child { border-bottom: 1px solid var(--ligne); }
.fiche dt { color: var(--zinc); }
.fiche dd { text-align: right; }
.fiche-note { margin: 1.25rem 0 0; color: var(--zinc); font-size: .95rem; }
.fiche-texte { color: var(--zinc); margin: -.75rem 0 1.5rem; max-width: 46ch; }
.lot + .lot { margin-top: 2rem; }
.lot-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.lot h4 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.lot-surface { margin: 0; font-size: 1.5rem; font-weight: 300; white-space: nowrap; }

.recap { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.recap h3 { margin-bottom: 1.25rem; }
.recap-defilement { overflow-x: auto; }
.recap-table { width: 100%; border-collapse: collapse; font-size: .975rem; white-space: nowrap; }
.recap-table th { text-align: left; font-weight: 400; font-size: .875rem; color: var(--zinc); padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--ligne-forte); }
.recap-table td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--ligne); }
.recap-table .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.recap-note { margin: 1rem 0 0; font-size: .875rem; color: var(--zinc); max-width: 80ch; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Caractéristiques ---------- */
.caracteristiques { background: var(--brume); }
.caracteristiques h2 { margin-bottom: 3.5rem; }
.carac-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(2rem, 4vw, 4rem); }
.carac-groupe h3 { margin-bottom: 1.25rem; }
.carac-groupe dl div { padding: .8rem 0; border-top: 1px solid var(--ligne-forte); }
.carac-groupe dt { font-size: .9rem; color: var(--zinc); }
.carac-groupe dd { font-size: 1.05rem; }

/* ---------- Galerie ---------- */
.galerie h2 { margin-bottom: 3rem; }
.mosaique {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 270px); grid-auto-flow: dense; gap: 8px;
}
.mosaique li { min-width: 0; }
.mosaique .m-large { grid-column: span 2; }
.mosaique .m-haute { grid-row: span 2; }
.vignette { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--brume); cursor: zoom-in; overflow: hidden; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vignette:hover img { transform: scale(1.03); }

.visionneuse {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(22, 26, 28, .96); color: #fff;
}
.visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.visionneuse::backdrop { background: rgba(22, 26, 28, .9); }
.vis-figure { margin: 0; max-width: calc(100vw - 9rem); }
.vis-figure img { max-height: 82vh; width: auto; margin: 0 auto; }
.vis-figure figcaption { text-align: center; margin-top: 1rem; color: rgba(255,255,255,.75); font-size: .95rem; }
.vis-fermer {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: 1px solid rgba(255,255,255,.5); color: #fff;
  padding: .5rem 1rem; cursor: pointer; border-radius: 2px;
}
.vis-nav {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 3rem; font-weight: 300; width: 4rem; height: 4rem; line-height: 1;
  flex: none;
}
.vis-nav:hover, .vis-fermer:hover { color: var(--accent-clair); border-color: var(--accent-clair); }

/* ---------- Localisation ---------- */
.loc-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.loc-texte h2 { margin-bottom: 2rem; }
.adresse { font-style: normal; font-size: 1.25rem; font-weight: 300; line-height: 1.5; margin-bottom: 2.5rem; }
.acces div { padding: .9rem 0; border-top: 1px solid var(--ligne-forte); }
.acces dt { font-size: .9rem; color: var(--zinc); }
.carte, .carte iframe, .carte-attente { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }
.carte-attente {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem;
  background: var(--brume); color: var(--zinc);
}
.carte-attente { flex-direction: column; gap: 1.25rem; }
.carte-attente p { margin: 0; max-width: 32ch; }
.carte-attente .carte-mention { font-size: .85rem; }
.carte-lien { margin: .9rem 0 0; font-size: .95rem; }
.proximite-titre { margin: 3rem 0 .75rem; }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: #fff; }
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-texte h2 { margin-bottom: 1.5rem; }
.contact-texte > p { max-width: 44ch; color: rgba(255,255,255,.82); }
.interlocuteurs { display: grid; gap: 2rem; margin-top: 2.5rem; }
.interlocuteur { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.1rem; }
.interlocuteur p { margin: 0 0 .2rem; }
.interlocuteur-nom { font-size: 1.25rem; }
.interlocuteur-role { color: rgba(255,255,255,.75); margin-bottom: .6rem !important; }
.interlocuteur a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.interlocuteur a:hover { border-bottom-color: #fff; }

.formulaire { display: grid; gap: 1.25rem; }
.champ-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.champ label { display: block; font-size: .9rem; margin-bottom: .4rem; color: rgba(255,255,255,.85); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.35); border-radius: 2px;
  padding: .8rem .9rem; min-height: 48px;
}
.champ select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.champ select option { color: var(--graphite); }
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--accent-clair); background: rgba(255,255,255,.1); }
.champ [aria-invalid="true"] { border-color: #F2B8A6; }
.champ-case { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.85); }
.champ-case input { width: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--accent-clair); }
.champ-case a { color: #fff; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton-plein { background: #fff; color: var(--accent); justify-self: start; }
.formulaire .bouton-plein:hover { background: var(--accent-clair); }
.erreur-formulaire { margin: 0; color: #F7CBBE; }
.message-envoi { padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.5); }
.message-envoi.ok { background: rgba(255, 255, 255, .1); border-color: var(--accent-clair); }
.message-envoi.erreur { background: rgba(242, 184, 166, .15); border-color: #F2B8A6; }

/* ---------- Pied de page ---------- */
.pied { background: var(--graphite); color: rgba(255,255,255,.7); padding: 3rem 0; font-size: .92rem; }
.pied-grille { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem 2.5rem; align-items: baseline; }
.pied p { margin: 0; }
.pied-logo { color: #fff; letter-spacing: .32em; text-transform: uppercase; font-size: 1rem; }
.pied-liens a { color: #fff; }
.pied-copyright { grid-column: 1 / -1; }

/* ---------- Page mentions légales ---------- */
.page-texte { padding-top: calc(var(--entete-h) + 4rem); padding-bottom: 6rem; }
.page-texte .conteneur { max-width: 860px; }
.page-texte h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 3rem; }
.page-texte h2 { font-size: 1.6rem; font-weight: 400; max-width: none; margin: 3rem 0 1rem; }
.page-texte p, .page-texte li { max-width: 68ch; }

/* ---------- Adaptations ---------- */
@media (max-width: 1080px) {
  .carac-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .immeuble-grille { grid-template-columns: 1fr; row-gap: 3rem; }
  .immeuble-texte, .immeuble-photo { grid-column: 1 / -1; }
  .immeuble-photo img { aspect-ratio: 4 / 5; }

  .espaces-grille { grid-template-columns: 1fr; }
  .espaces-visuel { display: none; }
  .espace { padding-left: 0; border-left: 0; cursor: default; }
  .espace .espace-texte { max-height: none; opacity: 1; margin-top: .5rem; }
  .espace-image-mobile { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.5rem; }

  .dispo-grille { grid-template-columns: 1fr; }
  .fiche { position: static; }

  .loc-grille, .contact-grille { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --entete-h: 64px; }
  body { font-size: 1rem; }
  .chiffres { gap: 1.5rem 1.25rem; }
  .carac-grille { grid-template-columns: 1fr; }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .champ-ligne { grid-template-columns: 1fr; }
  .niveau { grid-template-columns: 1fr auto; row-gap: .1rem; padding: .8rem 1rem; }
  .niveau-surface { grid-column: 1; grid-row: 2; font-size: .92rem; }
  .niveau-statut { grid-column: 2; grid-row: 1 / span 2; }
  .niveau-attique { width: 82%; }
  .coupe-toit { width: 88%; }
  .coupe-sol { width: 100%; }
  .hero-actions .bouton { flex: 1 1 auto; }
  .vis-figure { max-width: 100vw; }
  .fiche dl div { flex-direction: column; gap: .1rem; }
  .fiche dd { text-align: left; }
  .lot-entete { flex-direction: column; gap: .15rem; }
  .recap-table { font-size: .92rem; }
  .vis-nav { position: absolute; bottom: 1rem; }
  .vis-prec { left: 1rem; }
  .vis-suiv { right: 1rem; }
}

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

/* Page secondaire : lien de retour toujours visible */
@media (max-width: 1080px) {
  .nav.nav-page {
    position: static; opacity: 1; visibility: visible;
    flex-direction: row; background: none; font-size: .95rem;
  }
  .nav.nav-page .nav-contact { font-size: .95rem; margin-top: 0; }
}
.recap-table th:last-child, .recap-table td:last-child { padding-left: 2rem; }

/* ---------- Maquette 3D des étages ---------- */
.maquette { display: none; background: var(--brume); position: relative; }
.maquette.active {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  grid-template-areas: "niveaux scene" "legende legende";
}
.dispo.avec-maquette .coupe-repli { display: none; }

.maquette-niveaux {
  grid-area: niveaux;
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  padding: 1.25rem 0 1.25rem 1.25rem;
}
.maquette-bouton {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; text-align: left; cursor: pointer;
  padding: .55rem .8rem; border: 1px solid var(--ligne-forte); border-radius: 2px;
  background: rgba(255, 255, 255, .6);
  transition: background-color .2s, color .2s, border-color .2s;
}
.maquette-bouton:hover { background: #fff; border-color: var(--graphite); }
.maquette-bouton[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mb-nom { font-size: .95rem; line-height: 1.25; }
.mb-detail { font-size: .8rem; color: var(--zinc); line-height: 1.3; }
.maquette-bouton[aria-pressed="true"] .mb-detail { color: rgba(255, 255, 255, .8); }

.maquette-scene { grid-area: scene; position: relative; aspect-ratio: 4 / 3.3; min-height: 340px; overflow: hidden; }
.maquette-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.maquette-scene canvas:active { cursor: grabbing; }
.maquette-etiquettes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.maquette-etiquette {
  position: absolute; left: 0; top: 0;
  background: #fff; color: var(--graphite);
  border-left: 3px solid var(--accent);
  padding: .3rem .55rem; font-size: .8rem; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 1px 6px rgba(39, 42, 34, .14);
}
.maquette-etiquette strong { display: block; font-weight: 500; }
.maquette-etiquette.actif { background: var(--accent); color: #fff; }

.legende-maquette { grid-area: legende; margin: 0; padding: .9rem 1.25rem 1.1rem; border-top: 1px solid var(--ligne); }
.pastille-maquette-dispo { background: var(--accent); border-color: var(--accent); }
.pastille-maquette-loue { background: #EDECE6; }
.pastille-maquette-commun { background: #E1E0D8; }
.maquette-aide { margin-left: auto; }

/* Fiche : vue d'ensemble et lot sélectionné */
.fiche-retour {
  background: none; border: 0; padding: 0; margin-bottom: 1rem; cursor: pointer;
  font-size: .9rem; color: var(--zinc); text-decoration: underline; text-underline-offset: 3px;
}
.fiche-retour:hover { color: var(--graphite); }
.fiche-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.fiche-liste li { border-bottom: 1px solid var(--ligne); }
.fiche-lien {
  width: 100%; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .75rem; align-items: baseline;
  background: none; border: 0; padding: .8rem .25rem; text-align: left; cursor: pointer;
}
.fiche-lien:hover { background: rgba(255, 255, 255, .6); }
.fl-ref { font-weight: 500; }
.fl-lieu { color: var(--zinc); }
.fl-surface { white-space: nowrap; }
.lot { transition: box-shadow .3s; }
.lot.actif { outline: 2px solid var(--accent); outline-offset: .8rem; }
.lot.actif + .lot, .lot + .lot.actif { margin-top: 2.75rem; }

@media (max-width: 1080px) and (min-width: 901px) {
  .dispo-grille { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .maquette.active { grid-template-columns: 1fr; grid-template-areas: "niveaux" "scene" "legende"; }
  .maquette-niveaux {
    flex-direction: row; overflow-x: auto; justify-content: flex-start;
    padding: .9rem 1rem .25rem; scrollbar-width: none;
  }
  .maquette-bouton { width: auto; flex: none; }
  .maquette-scene { aspect-ratio: 1 / 1; min-height: 0; }
  .maquette-aide { margin-left: 0; }
  .fiche-lien { grid-template-columns: 4.2rem minmax(0, 1fr) auto; }
}

.contact-plaquette { margin: 1.75rem 0 0; }

.lot-photo { display: block; width: 100%; padding: 0; margin: .4rem 0 .9rem; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.lot-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lot-photo:hover img { transform: scale(1.03); }
.visionneuse.seule .vis-nav { visibility: hidden; }

/* Héro : mention de certification */
.hero-label { display: block; margin-top: .4rem; font-size: .95rem; font-weight: 400; letter-spacing: .02em; opacity: .9; }

/* Équipements d'un lot */
.lot-equipements-titre { margin: 1.1rem 0 .4rem; font-size: .95rem; }
.lot-equipements { margin: 0; padding-left: 1.1rem; color: var(--zinc); font-size: .95rem; }
.lot-equipements li { margin: .15rem 0; }

/* Maquette : légendes supplémentaires */
.pastille-maquette-semi { background: #D8BC84; }
.pastille-maquette-terrasse { background: #9C8566; }

/* Localisation : schémas de situation */
.carte { aspect-ratio: auto; }
.carte.interactive, .carte iframe { aspect-ratio: 4 / 3; }
.carte-schemas { margin: 0; display: grid; gap: 8px; }
.carte-schemas svg { width: 100%; height: auto; display: block; }
.carte-schemas figcaption { font-size: .85rem; color: var(--zinc); }
.sit-pays { font: 500 13px var(--police); letter-spacing: .3em; fill: #9EA095; }
.sit-route { font: 500 12px var(--police); fill: #fff; }
.sit-route-sombre { font: 500 13px var(--police); fill: #63665B; }
.sit-ville { font: 400 13px var(--police); fill: #63665B; }
.sit-majeur { font: 500 14px var(--police); fill: #272A22; }
.sit-temps { font: 400 12px var(--police); fill: #63665B; }
.sit-millenium { font: 500 13px var(--police); letter-spacing: .18em; fill: #4A5530; }
.sit-lieu { font: 400 13px var(--police); fill: #272A22; }
.sit-voie { font: 400 12px var(--police); fill: #63665B; }
.sit-legende text, .sit-legende-txt { font: 400 11px var(--police); fill: #63665B; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.carte-lien span { margin: 0 .4rem; color: var(--zinc); }
.carte-mention { margin: .3rem 0 0; font-size: .85rem; color: var(--zinc); }

.lot-photos-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: -.4rem 0 .9rem; }
.lot-photos-mini .lot-photo { margin: 0; }

.lot-photo-note { margin: -.4rem 0 .9rem; font-size: .85rem; color: var(--zinc); font-style: italic; }
