/*
 * Résidence du Quai : feuille de style du site public.
 * Charte graphique V1 (septembre 2026) : Bleu Quai #133459, Greige Résidence #AB9F95, Bleu Profond #0D2D51,
 * Brume #F4F2EF et beaucoup de blanc ; Inter (titres en Light, textes en Regular, libellés en Semibold espacé) ;
 * le filet vertical greige, la numérotation fine, les alignements à gauche ; ni dégradé, ni ombre portée, ni 3D.
 * Mise en page : une grille éditoriale en deux colonnes (5/12 à gauche pour les titres, 7/12 à droite pour le
 * contenu), même largeur pour l'en-tête et le contenu. Idée directrice conservée : la symétrie de l'immeuble
 * (deux appartements en miroir par étage) autour d'un axe, dans la façade et dans la plaque du haut de page.
 */

/* ------------------------------------------------------------------- police */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }

/* ------------------------------------------------------------------- repères */
:root {
    --bleu: #133459;                 /* Bleu Quai : titres, boutons, fonds sombres */
    --bleu-profond: #0D2D51;         /* Bleu Profond : pied de page, résumé de la fiche, survols */
    --greige: #AB9F95;               /* Greige Résidence : filets, numéros, accents (jamais un texte courant) */
    --greige-fonce: #6E635B;         /* dérivé du greige, lisible en petit sur fond clair (contraste AA) */
    --brume: #F4F2EF;                /* Brume : sections alternées, fonds de cadres */
    --filet: #DED8D2;                /* dérivé du greige : traits fins, bordures */
    --blanc: #FFFFFF;
    --encre: #0D2D51;
    --encre-douce: #55627A;          /* textes secondaires (AA sur blanc et sur brume) */
    --vert: #2F7D5B;
    --ambre: #B7791F;

    --titre: 'Inter', 'Segoe UI', Arial, sans-serif;
    --texte: 'Inter', 'Segoe UI', Arial, sans-serif;

    --wrap: 1320px;                              /* largeur du contenu, la même pour l'en-tête et la plaque du haut de page */
    --gutter: clamp(20px, 4vw, 48px);
    --col-gap: clamp(32px, 4vw, 72px);           /* espace entre les deux colonnes de la grille */
    --header-h: 72px;
    --radius: 2px;
    --ease: cubic-bezier(.22, .7, .2, 1);
}
@media (min-width: 1100px) { :root { --header-h: 96px; } }

/* ---------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0; background: var(--blanc); color: var(--encre);
    font-family: var(--texte); font-weight: 400; font-size: 1rem; line-height: 1.7;
    font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    padding-top: var(--header-h); counter-reset: section;
}
img, svg { max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* hiérarchie de la charte : H1 Light, H2 Regular, H3 Medium ; jamais d'italique */
h1, h2, h3, h4 { margin: 0; font-family: var(--titre); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: lining-nums; color: var(--bleu); text-wrap: pretty; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: 500; color: inherit; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2, .h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.02em; }
h2 em { font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
strong { font-weight: 600; }
small { font-size: .8em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--bleu); color: #fff; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--bleu); color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius); font-size: .85rem; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.cta-line { margin: clamp(28px, 4vw, 44px) 0 0; }
.note { font-size: .78rem; color: var(--encre-douce); letter-spacing: .01em; margin: 1.6rem 0 0; }

/* le libellé : capitales espacées en Semibold, précédées du filet vertical de la charte */
.label {
    display: flex; align-items: center; gap: .9em; margin: 0 0 1.2rem; font-family: var(--texte); font-weight: 600; font-size: .66rem; line-height: 1.4;
    letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce);
}
.label::before { content: ''; flex: none; width: 1px; height: 1.6em; background: var(--greige); }
.label--small { margin-bottom: .6rem; font-size: .62rem; }

.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.65; font-weight: 300; color: var(--encre); }
.link {
    display: inline-flex; align-items: center; gap: .7em; font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; color: var(--bleu); padding-bottom: .35em; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size .35s var(--ease), color .2s;
}
.link svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link:hover { background-size: 40% 1px; }
.link:hover svg { transform: translateX(5px); }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--brume, .section--gris { background: var(--brume); }
/* tête de section : libellé et titre ; sur grand écran, titre à gauche et texte d'introduction à droite (grille 5/7) */
.head { margin: 0 0 clamp(32px, 4vw, 52px); }
.head h2 { text-wrap: balance; }
.head__lead { margin: 1rem 0 0; max-width: 58ch; color: var(--encre-douce); font-size: 1.04rem; }
.head__aside { margin: 1rem 0 0; font-size: .8rem; letter-spacing: .04em; color: var(--encre-douce); }
.head__aside strong { font-weight: 300; font-size: 1.6rem; color: var(--bleu); margin-right: .1em; letter-spacing: -.02em; }
/* numérotation fine des sections (accueil et page du projet seulement) : 01, 02… en greige au-dessus du libellé */
.page-home .head::before, .page-project .head::before,
.page-home .constructeur__id::before, .page-home .situation__text::before, .page-home .contact__intro::before,
.page-project .constructeur__id::before, .page-project .situation__text::before, .page-project .contact__intro::before {
    content: counter(section, decimal-leading-zero); content: counter(section, decimal-leading-zero) / ''; counter-increment: section;
    display: block; margin: 0 0 .9rem; font-weight: 200; font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: .9; letter-spacing: -.03em; color: var(--greige); font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 1100px) {
    .head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: end; }
    .head > * { grid-column: 1; }
    .head > .head__lead, .head > .head__aside { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0 0 .4em; }
}

/* ------------------------------------------------------------------- boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 1em; min-height: 52px; padding: .85em 1.7em;
    border: 1px solid var(--bleu); border-radius: var(--radius); background: var(--bleu); color: #fff; cursor: pointer;
    font-family: var(--texte); font-weight: 600; font-size: .72rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
    transition: background .25s, color .25s, border-color .25s;
}
.btn svg { flex: none; width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn small { letter-spacing: .08em; opacity: .7; margin-left: .3em; }
.btn:hover { background: var(--bleu-profond); border-color: var(--bleu-profond); }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--bleu); }
.btn--outline { background: transparent; color: var(--bleu); }
.btn--outline:hover { background: var(--bleu); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--small { min-height: 44px; padding: .6em 1.3em; font-size: .68rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* statut, badge, prix */
.status { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bleu); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(47, 125, 91, .18); }
.status--option::before { background: var(--ambre); box-shadow: 0 0 0 3px rgba(183, 121, 31, .2); }
.status--vendu::before { background: #8C939B; box-shadow: 0 0 0 3px rgba(140, 147, 155, .22); }
.badge { display: inline-block; padding: .4em .85em; border-radius: var(--radius); background: var(--badge, var(--bleu)); color: #fff; font-weight: 600; font-size: .62rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.price { margin: 0; font-family: var(--texte); font-weight: 500; font-size: 1.22rem; line-height: 1.2; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; color: var(--bleu); }
.price small { font-weight: 400; font-size: .68rem; letter-spacing: .04em; color: var(--encre-douce); }
.unit .price small { display: block; margin-top: .3em; }
.price--ask, .price--muted { font-weight: 400; font-size: .9rem; letter-spacing: .02em; color: var(--encre-douce); }
.price--large { font-size: clamp(1.7rem, 2.4vw, 2.15rem); }
.price--large.price--ask, .price--large.price--muted { font-size: 1.3rem; }

/* -------------------------------------------------------------------- en-tête */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--filet); transition: height .35s var(--ease), background .35s, border-color .35s; }
/* même largeur que le contenu : le logo et le bouton Contact s'alignent sur les bords des sections */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* la signature horizontale, à gauche ; 53 px de haut, soit ses 220 px de large minimum (charte, page 07) */
.brand { position: relative; z-index: 2; display: block; flex: none; line-height: 0; }
.brand__logo { display: block; width: auto; height: 53px; }
.brand__logo--clair { display: none; }
.brand img { max-width: none; }
@media (max-width: 359px) { .brand__logo { height: 44px; } }        /* très petits écrans : place pour le bouton Menu */

.burger { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .8rem; padding: .6rem 0 .6rem .6rem; border: 0; background: none; color: var(--bleu); cursor: pointer; font: 600 .66rem/1 var(--texte); letter-spacing: .2em; text-transform: uppercase; }
.burger__icon { position: relative; width: 26px; height: 12px; }
.burger__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger__icon i:first-child { top: 0; }
.burger__icon i:last-child { top: 10px; }
.burger[aria-expanded="true"] .burger__icon i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--bleu); color: #fff; text-align: left; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; overflow-y: auto; }
/* le monogramme en filigrane, très discret, derrière les liens du menu mobile */
.menu::after { content: ''; position: absolute; z-index: -1; right: -6%; bottom: 0; width: min(80vw, 420px); aspect-ratio: 400 / 392; background: url('../img/symbole-blanc.png') no-repeat 50% 100% / contain; opacity: .05; pointer-events: none; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .35s, visibility 0s; }
.menu__list a { display: block; padding: .45rem 0; font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; text-decoration: none; color: #fff; }
.menu__list a[aria-current="page"] { font-weight: 500; color: var(--greige); }
.menu__list a.menu__cta { display: inline-flex; margin-top: 1.6rem; padding: .95em 2em; border: 1px solid var(--greige); border-radius: var(--radius); font: 600 .74rem/1.3 var(--texte); letter-spacing: .18em; text-transform: uppercase; color: var(--greige); }
.menu__foot { margin: 2.4rem 0 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.site-header.is-menu { background: transparent; border-color: transparent; backdrop-filter: none; }
.site-header.is-menu .burger { color: #fff; }
.site-header.is-menu .brand__logo--clair { display: block; }
.site-header.is-menu .brand__logo--fonce { display: none; }

@media (min-width: 1100px) {
    .burger { display: none; }
    .menu { position: static; inset: auto; z-index: auto; flex-direction: row; justify-content: flex-end; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); width: auto; padding: 0; background: none; color: inherit; visibility: visible; opacity: 1; overflow: visible; }
    .menu__list { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
    .menu__list a { position: relative; padding: .5rem 0; font: 600 .68rem/1.2 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--bleu); }
    .menu__list a:not(.menu__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
    .menu__list a:not(.menu__cta):hover::after, .menu__list a[aria-current="page"]::after { transform: scaleX(1); }
    .menu__list a[aria-current="page"] { font-weight: 600; color: var(--bleu); }
    .menu__list a.menu__cta { margin: 0; padding: .95em 1.7em; font-size: .68rem; border-color: var(--bleu); color: var(--bleu); transition: background .25s, color .25s, border-color .25s; }
    .menu__list a.menu__cta:hover, .menu__list a.menu__cta[aria-current="page"] { background: var(--bleu); color: #fff; }
    .menu__foot, .menu::after { display: none; }

    .site-header.is-stuck { height: 80px; }
}

/* --------------------------------------------------------------- haut de page */
/* Le rendu 3D est montré intact, sur toute la largeur (ni voile, ni texte posé dessus). Le titre, l'accroche et les
   boutons sont sur une plaque blanche à cheval sur le bas de l'image, en deux volets séparés par le filet vertical. */
.hero { position: relative; background: var(--blanc); }
.hero__img { position: relative; height: clamp(260px, 64vw, 540px); overflow: hidden; background: var(--brume); }
.hero__img picture, .hero__img img { display: block; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 50% 45%; }     /* rendu côté rue : l'immeuble au centre, un peu de ciel */

.hero__plaque { position: relative; z-index: 2; width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: -56px auto 0; background: var(--blanc); border: 1px solid var(--filet); }
.hero__seal { position: absolute; left: 50%; top: 0; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; transform: translate(-50%, -50%); border: 1px solid var(--filet); border-radius: 50%; background: var(--blanc); }
.hero__seal img { width: 36px; height: auto; }
.hero__plaque-inner { display: grid; gap: 22px; padding: 54px 26px 34px; text-align: left; }
.hero h1 { font-size: inherit; }
.hero__kicker { display: block; margin-bottom: 1rem; font: 600 .66rem/1.4 var(--texte); letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce); }
.hero__tagline { display: block; font-weight: 300; font-size: clamp(2.3rem, 8.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; color: var(--bleu); }
.hero__tagline em { font-style: normal; font-weight: 500; }
.hero__lead { max-width: 46ch; margin: 0 0 1.5rem; font-weight: 400; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.65; color: var(--encre); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* sous la plaque : les chiffres clés, séparés par des filets, et « Un projet signé Maisons Baijot » */
.hero__below { padding-block: 40px 0; }
.hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 0; }
.hero__facts li { position: relative; padding: 0 22px; }
.hero__facts li:nth-child(odd) { padding-left: 0; }
.hero__facts li:nth-child(even)::before { content: ''; position: absolute; left: 0; top: 4%; bottom: 4%; width: 1px; background: var(--greige); }
.hero__facts strong { display: block; font-weight: 200; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.03em; color: var(--bleu); white-space: nowrap; }
.hero__facts span { display: block; margin-top: .5rem; font-weight: 600; font-size: .64rem; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--greige-fonce); }
.hero__signed { display: inline-flex; align-items: center; gap: 1.1rem; margin-top: 40px; text-decoration: none; color: var(--greige-fonce); font-weight: 600; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; transition: color .2s; }
.hero__signed img { width: 150px; height: auto; }
.hero__signed:hover { color: var(--bleu); }

@media (min-width: 700px) {
    .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero__facts li { padding: 0 22px; }
    .hero__facts li::before { content: ''; position: absolute; left: 0; top: 4%; bottom: 4%; width: 1px; background: var(--greige); }
    .hero__facts li:first-child { padding-left: 0; }
    .hero__facts li:first-child::before { display: none; }
}
@media (max-width: 480px) {
    /* téléphone : le sur-titre et le bouton principal tiennent chacun sur une ligne */
    .hero__plaque-inner { padding-inline: 18px; }
    .hero__kicker { font-size: .62rem; letter-spacing: .16em; }
    .hero__actions .btn { padding-inline: 1.2em; gap: .7em; font-size: .68rem; letter-spacing: .1em; white-space: nowrap; }
}
@media (min-width: 700px) and (max-width: 1099.98px) {
    /* tablette : l'image s'adapte à la hauteur de l'écran pour que la plaque (titre, accroche, boutons) reste visible */
    .hero__img { height: clamp(300px, min(50vw, calc(100svh - var(--header-h) - 290px)), 560px); }
    .hero__plaque-inner { padding: 46px 40px 34px; gap: 16px; }
}
@media (min-width: 1100px) {
    /* l'image occupe tout l'écran sous l'en-tête ; la plaque, en deux volets séparés par le filet vertical, reste
       entièrement visible sans défiler (elle dépasse de l'image d'une centaine de pixels) */
    .hero__img { height: clamp(420px, min(52.1vw, calc(100svh - var(--header-h) - 132px)), 1000px); }
    .hero__plaque { margin-top: -104px; }
    .hero__plaque-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; align-items: center; }
    .hero__head, .hero__body { padding: 44px clamp(32px, 3.4vw, 56px) 40px; }
    .hero__head { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--greige); }
    .hero__kicker { margin-bottom: .9rem; }
    .hero__tagline { font-size: clamp(2.6rem, 3.4vw, 3.6rem); text-wrap: balance; }
    .hero__lead { margin: 0 0 1.4rem; max-width: 48ch; }
    .hero__actions { flex-wrap: nowrap; }
    .hero__actions .btn { padding-inline: 1.5em; white-space: nowrap; }
    /* une seule bande : les quatre chiffres à gauche, le constructeur à droite, derrière un filet */
    .hero__below { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; column-gap: var(--col-gap); padding-top: 56px; }
    .hero__signed { margin: 0; padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--greige); }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
    .hero__actions { flex-wrap: wrap; }
}

/* ----------------------------------------------------- le projet, chiffres clés */
.projet__text { max-width: 66ch; font-size: 1.04rem; color: var(--encre-douce); text-wrap: pretty; }
.projet__text p:first-child { font-size: clamp(1.12rem, 1.5vw, 1.38rem); line-height: 1.6; font-weight: 300; color: var(--encre); }
.projet__text.prose h2, .projet__text.prose h3 { color: var(--bleu); }
.delivery { margin: 1.4rem 0 0; font-weight: 500; letter-spacing: .01em; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 0; margin: clamp(44px, 6vw, 72px) 0 0; }
.figures li { position: relative; padding: 0 22px; }
.figures li:nth-child(odd) { padding-left: 0; }
.figures li:nth-child(even)::before { content: ''; position: absolute; left: 0; top: 4%; bottom: 4%; width: 1px; background: var(--greige); }
.figures strong { display: block; font-weight: 200; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--bleu); white-space: nowrap; }
.figures span { display: block; max-width: 22ch; margin: .7rem 0 0; font-weight: 600; font-size: .64rem; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--greige-fonce); }
@media (min-width: 800px) {
    .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .figures li { padding: 0 22px; }
    .figures li::before { content: ''; position: absolute; left: 0; top: 4%; bottom: 4%; width: 1px; background: var(--greige); }
    .figures li:first-child { padding-left: 0; }
    .figures li:first-child::before { display: none; }
}
@media (min-width: 1100px) {
    /* la section : numéro, libellé et titre dans la colonne de gauche, le texte en face dans la colonne de droite */
    .projet .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: start; }
    .projet .head { display: block; grid-column: 1; margin: 0; }
    .projet__text, .projet .delivery, .projet .cta-line { grid-column: 2; }
    .projet .figures { grid-column: 1 / -1; }
}

/* -------------------------------------------- les appartements : la façade */
.facade { position: relative; }
.facade__roof, .facade__ground { display: none; }
.facade__floors { display: flex; flex-direction: column; gap: 44px; }
.floor__label { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.floor__code { flex: none; font-weight: 200; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; color: var(--greige); font-variant-numeric: lining-nums; }
.floor__name { padding-left: 1rem; border-left: 1px solid var(--greige); font-weight: 600; font-size: .64rem; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce); }
.floor__units, .units-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 680px) { .floor__units, .units-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .units-grid { grid-template-columns: repeat(4, 1fr); } }

.unit { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--filet); transition: border-color .3s; }
.unit:hover { border-color: var(--greige); }
/* l'image remplit un cadre positionné : une photo le couvre, un plan s'y inscrit en entier (jamais recadré) */
.unit__media { position: relative; aspect-ratio: 4 / 3; background: var(--blanc); overflow: hidden; }
.unit__media picture { position: absolute; inset: 0; display: block; }
.unit__media--plan picture { inset: 18px; }
.unit__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.unit__media--plan img { object-fit: contain; }
.unit:hover .unit__media img { transform: scale(1.03); }
.unit__empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--brume); }
.unit__empty img { width: 96px; height: auto; opacity: .3; }
.unit__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; border-top: 1px solid var(--filet); }
.unit__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 1rem; min-height: 24px; }
.unit__title { font-size: inherit; line-height: 1; }
.unit__title a { display: flex; align-items: baseline; gap: .7rem; text-decoration: none; color: var(--bleu); }
.unit__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }      /* toute la carte est cliquable */
.unit__title a:focus-visible { outline: none; }
.unit__title a:focus-visible::after { outline: 2px solid var(--bleu); outline-offset: 3px; }
.unit__name { font-family: var(--texte); font-weight: 600; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce); }
.unit__name--long { font-weight: 400; font-size: 1.35rem; letter-spacing: -.01em; text-transform: none; line-height: 1.2; color: var(--bleu); }
.unit__n { font-weight: 200; font-size: 3.4rem; line-height: .85; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.unit__facts { display: grid; gap: 1px; margin: 1rem 0 1.3rem; font-size: .9rem; line-height: 1.6; color: var(--encre-douce); }
.unit__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; padding-top: 18px; border-top: 1px solid var(--filet); }
.unit__foot .btn { position: relative; }
.unit:hover .btn--small { background: var(--bleu-profond); border-color: var(--bleu-profond); }
.unit:hover .btn--small svg { transform: translateX(5px); }
.unit--vendu .unit__media img { filter: grayscale(1); opacity: .45; }
.unit--vendu .unit__n, .unit--vendu .unit__name { color: #7C8794; }

@media (min-width: 1100px) {
    /* la façade : un étage par ligne, dernier étage en haut, deux appartements en miroir autour de l'axe */
    .facade { padding-top: 66px; }
    .facade__roof { display: block; position: absolute; left: -22px; right: -22px; top: 0; height: 66px; color: var(--greige); }
    .facade__roof svg { display: block; width: 100%; height: 100%; }
    .facade__floors { position: relative; flex-direction: column-reverse; gap: 0; }
    .facade__floors::before { content: ''; position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--greige); }
    .floor { position: relative; border: 1px solid var(--filet); border-top-width: 0; background: var(--blanc); }
    .floor:last-child { border-top-width: 1px; }
    .floor__label { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); flex-direction: column; gap: .4rem; width: 150px; margin: 0; text-align: center; pointer-events: none; }
    .floor__code { padding: 8px 0 2px; font-size: 2.6rem; background: var(--blanc); }
    .floor__name { padding: .2rem 0 .4rem; border-left: 0; font-size: .6rem; letter-spacing: .22em; background: var(--blanc); }
    .floor__units { grid-template-columns: 1fr 1fr; gap: 0; }
    .floor:not(.floor--pair) .floor__label { position: static; transform: none; flex-direction: row; width: auto; padding: 22px 28px 0; text-align: left; }
    .floor:not(.floor--pair) .floor__name { padding-left: 1rem; border-left: 1px solid var(--greige); }

    .floor .unit { flex-direction: row; border: 0; background: none; transition: background .3s; }
    .floor .unit:hover { background: var(--brume); }
    .floor .unit__media { flex: 0 0 43%; aspect-ratio: auto; min-height: 300px; background: none; }
    .floor .unit__media--plan picture { inset: 22px 8px 22px 26px; }
    .floor .unit__body { border-top: 0; padding: 34px 96px 32px 18px; align-items: flex-end; text-align: right; }
    .floor .unit__top { justify-content: flex-end; }
    .floor .unit__title a { flex-direction: row; }
    .floor .unit__facts { justify-items: end; }
    .floor .unit__foot { flex-direction: column; align-items: flex-end; gap: 14px; width: 100%; max-width: 250px; }
    /* l'appartement de droite est le miroir de celui de gauche */
    .floor .unit:nth-child(even) { flex-direction: row-reverse; }
    .floor .unit:nth-child(even) .unit__media--plan picture { inset: 22px 26px 22px 8px; }
    .floor .unit:nth-child(even) .unit__body { padding: 34px 18px 32px 96px; align-items: flex-start; text-align: left; }
    .floor .unit:nth-child(even) .unit__top { justify-content: flex-start; }
    .floor .unit:nth-child(even) .unit__facts { justify-items: start; }
    .floor .unit:nth-child(even) .unit__title a { flex-direction: row; }
    .floor .unit:nth-child(even) .unit__foot { align-items: flex-start; }

    .facade__ground { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding-top: 18px; font-weight: 600; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--greige-fonce); }
    .facade__ground::before, .facade__ground::after { content: ''; flex: 1; height: 1px; background: var(--greige); }
}

/* -------------------------------------------------------------------- galerie */
.gallery { display: grid; grid-template-columns: 1fr; gap: 28px; }
.gallery figure { margin: 0; }
.gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--brume); }
.gallery picture, .gallery img { display: block; width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-weight: 600; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce); }
.gallery figcaption::before { content: ''; flex: none; width: 1px; height: 18px; background: var(--greige); }
@media (min-width: 800px) {
    .gallery { grid-template-columns: 1fr 1fr; gap: 34px; }
    /* plus de deux images : les deux premières restent en diptyque, les suivantes vont par trois */
    .gallery--grid { grid-template-columns: repeat(6, 1fr); gap: 24px; }
    .gallery--grid .gallery__item { grid-column: span 2; }
    .gallery--grid .gallery__item:nth-child(-n+2) { grid-column: span 3; }
}

/* --------------------------------------------------------------- constructeur */
.constructeur { background: var(--brume); }
.constructeur__grid { display: grid; gap: 40px; }
.constructeur__logo { display: block; width: min(300px, 78%); height: auto; margin: .4rem 0 1.6rem; }
.constructeur__since { margin: 0; font-weight: 300; font-size: 1.2rem; line-height: 1.5; color: var(--bleu); }
.constructeur__text h2 { margin-bottom: 1.6rem; }
.constructeur__text p:not(.lead) { color: var(--encre-douce); }
.constructeur__points { display: grid; gap: 22px 40px; margin: 2.4rem 0 2.6rem; }
.constructeur__points li { position: relative; padding-left: 22px; }
.constructeur__points li::before { content: ''; position: absolute; left: 0; top: .35em; width: 1px; height: 1.3em; background: var(--greige); }
.constructeur__points strong { display: block; font-weight: 600; font-size: .95rem; }
.constructeur__points span { display: block; font-size: .88rem; line-height: 1.6; color: var(--encre-douce); }
.constructeur__links { display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 0; }
@media (min-width: 900px) {
    .constructeur__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
    .constructeur__id { position: sticky; top: calc(var(--header-h) + 24px); padding-right: clamp(24px, 4vw, 64px); border-right: 1px solid var(--greige); min-height: 260px; }
    .constructeur__points { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ situation, carte */
.situation__grid { display: grid; gap: 40px; }
.situation__text h2, .situation__text .h2 { margin-bottom: 1.5rem; }
.situation__address { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--filet); font-size: 1.05rem; line-height: 1.6; }
@media (min-width: 960px) {
    /* le texte à gauche, la carte à droite : même colonne de titres que le reste de la page */
    .situation__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: center; }
    .situation__text { order: -1; }
}
.map { position: relative; height: clamp(480px, 46vw, 600px); overflow: hidden; background: var(--brume); border: 1px solid var(--filet); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(1.04); transition: filter .5s; }
.map::after { content: ''; position: absolute; inset: 0; background: rgba(19, 52, 89, .1); mix-blend-mode: multiply; pointer-events: none; transition: opacity .5s; }
.map__pin { position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none; }
.map__halo { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; background: rgba(19, 52, 89, .14); border: 1px solid rgba(19, 52, 89, .4); animation: halo 3.2s ease-out infinite; }
.map__dot { position: absolute; left: -29px; top: -29px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bleu); border: 2px solid #fff; }
.map__dot img { width: 30px; height: auto; }
.map__label { position: absolute; left: 0; top: 40px; transform: translateX(-50%); margin: 0; padding: .7rem 1.1rem; background: #fff; border: 1px solid var(--filet); text-align: center; white-space: nowrap; line-height: 1.35; }
.map__label strong { display: block; font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.map__label span { display: block; font-weight: 600; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--greige-fonce); }
.map__ref { position: absolute; z-index: 2; transform: translate(-50%, -50%); margin: 0; padding: .45rem .8rem; background: rgba(255, 255, 255, .92); border: 1px solid var(--bleu); font-size: .7rem; line-height: 1.3; text-align: center; pointer-events: none; }
.map__ref strong, .map__ref span { display: block; }
.map__cover { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 22px; border: 0; background: none; cursor: pointer; }
.map__cover span { padding: .85em 1.6em; border-radius: var(--radius); background: var(--bleu); color: #fff; font: 600 .68rem/1.3 var(--texte); letter-spacing: .16em; text-transform: uppercase; transition: background .25s; }
.map__cover:hover span { background: var(--bleu-profond); }
.map.is-live iframe { filter: none; }
.map.is-live::after { opacity: 0; }
.map.is-live .map__pin, .map.is-live .map__ref, .map.is-live .map__cover { display: none; }
.map__links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 1.4rem 0 0; }
@keyframes halo { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* -------------------------------------------------------------------- chantier */
.chantier__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.chantier__item a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blanc); }
.chantier__item picture, .chantier__item img { display: block; width: 100%; height: 100%; }
.chantier__item img { object-fit: cover; transition: transform .9s var(--ease); }
.chantier__item a:hover img { transform: scale(1.05); }
.chantier__date { margin: .9rem 0 0; font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--greige-fonce); }
.chantier__caption { margin: .25rem 0 0; font-size: .9rem; line-height: 1.5; }
@media (min-width: 900px) { .chantier__list { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------- contact */
.contact__grid { display: grid; gap: 44px; }
.contact__intro .h2, .contact__intro h1 { margin-bottom: 1.5rem; font-size: clamp(2rem, 3.6vw, 3rem); }
.contact__address { margin: 2.2rem 0 0; font-size: .95rem; line-height: 1.6; }
.contact__address dt { font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--greige-fonce); margin-bottom: .4rem; }
.contact__address dd { margin: 0; }
@media (min-width: 960px) {
    .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
    .contact__intro { position: sticky; top: calc(var(--header-h) + 24px); }
}

.seller { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 20px; margin-top: 2.4rem; padding: 24px; background: var(--blanc); border: 1px solid var(--filet); }
.seller__photo { display: block; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 1px solid var(--greige); padding: 4px; background: var(--blanc); }
.seller__photo picture, .seller__photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.seller__photo--empty { display: grid; place-items: center; font-weight: 300; font-size: 1.6rem; color: var(--bleu); background: var(--brume); }
.seller__text p { margin: 0; }
.seller__label { font-weight: 600; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce); margin-bottom: .35rem !important; }
.seller__name { font-weight: 400; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.01em; color: var(--bleu); }
.seller__line { font-size: .86rem; line-height: 1.5; color: var(--encre-douce); }
.seller__reach { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 18px; border-top: 1px solid var(--filet); }
.btn--call { letter-spacing: .04em; font-size: .95rem; font-weight: 500; text-transform: none; font-variant-numeric: lining-nums tabular-nums; }
.btn--call:hover svg { transform: none; }
.seller__mail { font-size: .9rem; color: var(--bleu); text-underline-offset: 4px; word-break: break-word; }

.contact__form { background: var(--blanc); border: 1px solid var(--filet); padding: clamp(24px, 3.4vw, 48px); }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.steps__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.steps__bar { display: flex; align-items: center; }
.steps__bar li { display: flex; align-items: center; }
.steps__bar li + li::before { content: ''; width: 34px; height: 1px; background: var(--filet); transition: background .3s; }
.steps__bar span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--filet); border-radius: 50%; font-weight: 400; font-size: .9rem; line-height: 1; color: var(--encre-douce); font-variant-numeric: tabular-nums; transition: all .3s; }
.steps__bar li.is-current span { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.steps__bar li.is-done span { border-color: var(--greige-fonce); color: var(--greige-fonce); }
.steps__bar li.is-done + li::before, .steps__bar li.is-current::before { background: var(--greige); }
.steps__count { margin: 0; display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-size: .62rem; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.steps__now { color: var(--bleu); }
.step { margin-bottom: 28px !important; }
.step__title { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; letter-spacing: -.015em; color: var(--bleu); }
.js .form.is-stepped .step { display: none; margin-bottom: 0 !important; }
.js .form.is-stepped .step.is-active { display: block; animation: etape .45s var(--ease); }
html:not(.js) .steps__head { display: none; }
@keyframes etape { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.choice { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 12px; border: 1px solid var(--filet); cursor: pointer; transition: border-color .25s, background .25s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body { flex: 1; display: block; }
.choice__body strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.choice__body span { display: block; margin-top: .25rem; font-size: .86rem; line-height: 1.55; color: var(--encre-douce); }
.choice__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--filet); border-radius: var(--radius); color: var(--bleu); transition: all .25s; }
.choice:hover, .choice:has(input:checked) { border-color: var(--bleu); background: var(--brume); }
.choice:hover .choice__arrow, .choice:has(input:checked) .choice__arrow { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 3px; }

.form__row { display: grid; gap: 0 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin: 0 0 20px; }
.field > label:not(.choice), .field__label { display: block; margin: 0 0 .5rem; font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bleu); }
.field small { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--encre-douce); margin-left: .4em; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
    width: 100%; padding: 15px 16px; border: 1px solid #CDC6C0; border-radius: var(--radius); background: var(--blanc); color: var(--bleu);
    font: 400 1rem/1.4 var(--texte); font-variant-numeric: lining-nums; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(19, 52, 89, .14); }
.field--zip { max-width: 220px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #A12B2B; }
.field__error { display: block; margin-top: .45rem; font-size: .8rem; color: #A12B2B; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: .65em 1.1em; border: 1px solid #CDC6C0; border-radius: var(--radius); font-size: .84rem; line-height: 1.3; transition: all .2s; }
.chip:hover span { border-color: var(--bleu); }
.chip input:checked + span { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--bleu); outline-offset: 3px; }
.form__more { margin: 0 0 20px; }
.form__more-btn { padding: 0; border: 0; background: none; color: var(--bleu); cursor: pointer; font: 500 .86rem/1.4 var(--texte); text-decoration: underline; text-underline-offset: 4px; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bleu); }
.field.field--check > label { margin: 0; font-weight: 400; font-size: .84rem; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--encre-douce); }
@media (max-width: 560px) { .steps__count { align-items: flex-start; } }
.field--check .field__error { grid-column: 1 / -1; margin-top: 0; }
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 22px; margin: 8px 0 0; }
.js .form.is-stepped .step[data-step="1"].is-active ~ .form__actions .btn { display: none; }     /* étape 1 : un clic sur un choix suffit */
.js .form.is-stepped .step[data-step="1"].is-active ~ .form__actions::before { content: 'Un clic sur votre choix suffit pour continuer.'; font-size: .8rem; color: var(--encre-douce); margin-right: auto; }
.steps__back { margin-right: auto; padding: .6rem 0; border: 0; background: none; color: var(--encre-douce); cursor: pointer; font: 600 .68rem/1 var(--texte); letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.steps__back:hover { color: var(--bleu); }
.form.is-sending { opacity: .6; pointer-events: none; }
.form__success { padding: 28px 0 8px; }
.form__success img { width: 64px; height: auto; margin-bottom: 1.2rem; }
.form__success-title { font-weight: 300; font-size: 1.7rem; line-height: 1.25; letter-spacing: -.015em; margin-bottom: .6rem; }
.form__success:focus { outline: none; }
.contact__builder { display: flex; align-items: center; gap: 20px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--filet); font-size: .8rem; line-height: 1.6; color: var(--encre-douce); }
.contact__builder img { flex: none; width: 124px; height: auto; }

/* ------------------------------------------------- têtes de page, fil d'Ariane */
.crumbs { padding-top: 26px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3em .9em; }
.crumbs li + li::before { content: '·'; margin-right: .9em; color: var(--greige); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--bleu); font-weight: 600; }
/* tête de page : titre à gauche, introduction à droite sur grand écran (même grille que les sections) */
.pagehead { padding-block: clamp(40px, 5vw, 72px) clamp(44px, 5vw, 76px); }
.pagehead h1 { max-width: 20ch; text-wrap: balance; }
.pagehead .lead { max-width: 60ch; margin: 1.6rem 0 0; }
.pagehead__more { max-width: 60ch; margin: 1rem 0 0; color: var(--encre-douce); }
.pagehead__count { display: inline-flex; align-items: center; gap: .9em; margin: 1.6rem 0 0; font-weight: 600; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--greige-fonce); }
.pagehead__count::before { content: ''; flex: none; width: 1px; height: 1.6em; background: var(--greige); }
.pagehead--narrow { padding-inline: 0; }
@media (min-width: 1100px) {
    .pagehead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: end; }
    .pagehead > * { grid-column: 2; }
    .pagehead > .label, .pagehead > h1 { grid-column: 1; }
    .pagehead > h1 { max-width: none; }
    .pagehead > .lead { grid-row: 1 / span 2; align-self: end; margin: 0 0 .4em; }
    .pagehead__more { margin-top: 1rem; }
    .pagehead__count { margin-top: 1.4rem; }
}
.pagehero { padding-inline: var(--gutter); }
.pagehero__frame { position: relative; max-width: var(--wrap); margin-inline: auto; aspect-ratio: 1.92 / 1; overflow: hidden; background: var(--brume); }
.pagehero__frame picture, .pagehero__frame img { display: block; width: 100%; height: 100%; }
.pagehero__frame img { object-fit: cover; }
.facade-section--page { padding-top: clamp(56px, 6vw, 90px); }

/* ------------------------------------------------------------ fiche d'un bien */
.fiche__head { padding-block: clamp(34px, 4vw, 56px) clamp(34px, 4vw, 52px); }
.fiche__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 1.4rem; }
.fiche__lot { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.fiche__head h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.fiche__sub { margin: 1.1rem 0 0; font-weight: 600; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--greige-fonce); }
.fiche__top, .fiche__body { display: grid; gap: 28px; }
.fiche__media { display: flex; flex-direction: column; min-width: 0; }
.viewer { position: relative; flex: 1; display: grid; place-items: center; min-height: 340px; padding: clamp(18px, 3vw, 40px); background: var(--blanc); border: 1px solid var(--filet); overflow: hidden; text-decoration: none; }
.viewer picture { display: grid; place-items: center; width: 100%; height: 100%; }
.viewer img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(560px, 66vh); object-fit: contain; transition: transform .8s var(--ease); }
.viewer--photo { padding: 0; }
.viewer--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.viewer:hover img { transform: scale(1.025); }
.viewer__zoom { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .7em; padding: .7em 1.1em; border-radius: var(--radius); background: var(--bleu); color: #fff; font-weight: 600; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.viewer--empty { color: var(--encre-douce); text-align: center; }
@media (max-width: 640px) {
    /* petit écran : le bouton d'agrandissement se réduit à son icône pour ne pas masquer le plan */
    .viewer__zoom { right: 10px; bottom: 10px; padding: .75em; }
    .viewer__zoom-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .crumbs { font-size: .62rem; letter-spacing: .08em; }
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blanc); border: 1px solid var(--filet); text-decoration: none; transition: border-color .25s; }
.thumbs a:hover { border-color: var(--bleu); }
.thumbs picture, .thumbs img { display: block; width: 100%; height: 100%; }
.thumbs img { object-fit: cover; }
.thumbs .is-plan img { object-fit: contain; padding: 6px; }
.thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: .45em .4em; background: rgba(19, 52, 89, .9); color: #fff; font-weight: 600; font-size: .54rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.fiche__media .note { margin-top: .9rem; }

.summary { display: flex; flex-direction: column; height: 100%; padding: clamp(26px, 3vw, 40px); background: var(--bleu-profond); color: #fff; }
.summary :focus-visible { outline-color: #fff; }
.summary__label { margin: 0 0 .5rem; font-weight: 600; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--greige); }
.summary .price { color: #fff; }
.summary .price small { color: rgba(255, 255, 255, .7); }
.summary .price--ask, .summary .price--muted { color: #fff; font-weight: 300; font-size: 1.6rem; letter-spacing: -.01em; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 1.8rem 0 2rem; border-top: 1px solid rgba(171, 159, 149, .35); }
.keys div { padding: 1rem 0; border-bottom: 1px solid rgba(171, 159, 149, .35); }
.keys dt { font-weight: 600; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--greige); }
.keys dd { margin: .25rem 0 0; font-weight: 300; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.summary__actions { display: grid; gap: 12px; margin-top: auto; }
.summary .btn { background: #fff; border-color: #fff; color: var(--bleu); }
.summary .btn:hover { background: var(--greige); border-color: var(--greige); color: var(--bleu); }
.summary .btn--outline { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.summary .btn--outline:hover { background: #fff; border-color: #fff; color: var(--bleu); }
.summary .btn--outline:hover svg { transform: translateY(3px); }
.builder-line { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(171, 159, 149, .35); text-decoration: none; font-weight: 600; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.builder-line img { width: 132px; height: auto; }
.builder-line:hover { color: #fff; }

.fiche__body { padding-block: clamp(56px, 7vw, 104px); }
.fiche__text h2 { margin-bottom: 1.6rem; }
.fiche__text p:not(.lead):not(.label) { color: var(--encre-douce); }
.fiche__cta { margin: 2.4rem 0 0; }
.fiche__h3 { display: flex; align-items: center; gap: .9em; margin: 2.6rem 0 1.3rem; font-family: var(--texte); font-weight: 600; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--greige-fonce); }
.fiche__h3::before { content: ''; flex: none; width: 1px; height: 1.6em; background: var(--greige); }
.fiche__brief .fiche__h3 { margin-top: 0; }
/* repère de liste : le filet vertical de la charte (jamais une puce ronde ni un tiret) */
.ticks { display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 22px; line-height: 1.55; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 1px; height: 1.3em; background: var(--greige); }
.summary .ticks { margin: 0 0 2rem; font-size: .92rem; gap: .65rem; }
.summary__position { margin: 0 0 1.8rem; font-size: .8rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.brief { margin: 0; border-top: 1px solid var(--bleu); }
.brief div { display: flex; justify-content: space-between; gap: 20px; padding: .95rem 0; border-bottom: 1px solid var(--filet); }
.brief dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }
.brief dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: lining-nums; }
.fiche__builder-note { display: flex; align-items: center; gap: 18px; margin: 1.8rem 0 0; font-size: .82rem; line-height: 1.6; color: var(--encre-douce); }
.fiche__builder-note img { flex: none; width: 118px; height: auto; }
@media (min-width: 1000px) {
    .fiche__top, .fiche__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 56px); align-items: stretch; }
    .fiche__body { align-items: start; }
    .viewer { min-height: 480px; }
    .fiche__brief { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(24px, 2.6vw, 36px); background: var(--blanc); border: 1px solid var(--filet); }
}
.fiche__plans { padding-bottom: clamp(56px, 7vw, 104px); }
.plans { display: grid; gap: 24px; }
.plans a { display: block; padding: 20px; background: var(--blanc); border: 1px solid var(--filet); }
.plans img { display: block; width: 100%; height: auto; }
.plans p { margin: .7rem 0 0; font-size: .86rem; color: var(--encre-douce); }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }
.levelplan { max-width: 1040px; margin: 0; }
.levelplan__img { display: block; padding: clamp(14px, 2.4vw, 34px); background: var(--blanc); border: 1px solid var(--filet); }
.levelplan__img img { display: block; width: 100%; height: auto; }
.levelplan figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; margin-top: 1.2rem; font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.levelplan figcaption small { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--encre-douce); font-size: .8rem; }
.levelplan__key { width: 22px; height: 14px; border: 3px solid var(--bleu); }

/* ------------------------------------------------ l'immeuble, niveau par niveau */
.niveaux__stack { position: relative; display: grid; gap: 0; margin: 0; }
.niveaux__item { display: grid; gap: 14px; padding: 26px 0; border-top: 1px solid var(--filet); }
.niveaux__item:last-child { border-bottom: 1px solid var(--filet); }
.niveaux__caption { margin: 0; }
.niveaux__caption strong { display: block; font-weight: 300; font-size: 1.7rem; line-height: 1.2; letter-spacing: -.02em; color: var(--bleu); }
.niveaux__caption span { display: block; margin-top: .5rem; font-weight: 600; font-size: .62rem; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--greige-fonce); }
.niveaux__item a { display: block; padding: 14px; background: var(--blanc); border: 1px solid var(--filet); transition: border-color .25s; }
.niveaux__item a:hover { border-color: var(--bleu); }
.niveaux__item img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
@media (min-width: 900px) {
    .niveaux__item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: center; padding: 34px 0; }
}

/* ------------------------------------------------------- pages légales, 404 */
.legal { max-width: calc(820px + 2 * var(--gutter)); padding-bottom: clamp(72px, 9vw, 130px); }
.prose h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.prose h3, .prose h4 { margin: 2rem 0 .8rem; font-size: 1.2rem; }
.prose ul { margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.prose li::before { content: ''; position: absolute; left: 0; top: .35em; width: 1px; height: 1.2em; background: var(--greige); }
.prose a { text-underline-offset: 4px; }
.legal__body { color: var(--encre-douce); }
.legal__body strong, .legal__body h2 { color: var(--bleu); }
.legal__updated { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--filet); font-size: .82rem; }
.notfound { padding-block: clamp(56px, 8vw, 120px) clamp(80px, 10vw, 150px); }
.notfound__code { margin: 0 0 1.2rem; font-weight: 200; font-size: clamp(5rem, 16vw, 11rem); line-height: 1; letter-spacing: -.04em; color: var(--greige); font-variant-numeric: lining-nums tabular-nums; }
.notfound h1 { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.notfound .lead { max-width: 52ch; margin: 1.6rem 0 0; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin: 2.4rem 0 0; }

/* --------------------------------------------------------------- pied de page */
.site-footer { background: var(--bleu-profond); color: rgba(255, 255, 255, .82); font-size: .9rem; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer a { text-decoration: none; }
.site-footer__grid { display: grid; gap: 44px; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.site-footer__brand { display: block; order: -1; }
.site-footer__brand img { display: block; width: 230px; height: auto; }
.site-footer__label { display: block; margin: 0 0 .9rem; font-weight: 600; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--greige); }
.site-footer__col p { margin-bottom: 1.4rem; }
.site-footer__nav { display: grid; gap: .5rem; }
.site-footer__nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 2px; }
.site-footer__nav a:hover { color: #fff; background-size: 100% 1px; }
.site-footer__builder { display: block; }
.site-footer__builder img { display: block; width: 200px; height: auto; transition: opacity .2s; }
.site-footer__builder:hover img { opacity: .8; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 22px 30px; border-top: 1px solid rgba(171, 159, 149, .3); font-size: .74rem; color: rgba(255, 255, 255, .6); }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
    .site-footer__grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: clamp(48px, 6vw, 96px); }
    .site-footer__brand { padding-right: clamp(24px, 4vw, 64px); border-right: 1px solid rgba(171, 159, 149, .3); }
    .site-footer__builder { justify-self: end; }
    .site-footer__legal { justify-content: space-between; }
}

/* ---------------------------------------------------------------- visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: clamp(12px, 2.4vw, 32px); background: rgba(13, 45, 81, .97); }
.lightbox[hidden] { display: none; }
.lightbox__figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-width: 0; margin: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); object-fit: contain; background: #fff; }
.lightbox__caption { margin-top: 14px; font-size: .78rem; letter-spacing: .04em; color: rgba(255, 255, 255, .8); text-align: center; white-space: pre-wrap; }
.lightbox button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.lightbox button:hover { background: #fff; color: var(--bleu); }
.lightbox button:focus-visible { outline-color: var(--greige); }
.lightbox__close { position: absolute; right: clamp(12px, 2.4vw, 32px); top: clamp(12px, 2.4vw, 32px); z-index: 2; }
.lightbox__nav--prev { grid-column: 1; transform: rotate(180deg); }
.lightbox__nav--next { grid-column: 3; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr 1fr; } .lightbox__figure { grid-column: 1 / -1; } .lightbox__nav--prev { grid-column: 1; justify-self: end; } .lightbox__nav--next { grid-column: 2; } }

/* ------------------------------------------------------------------ mouvements */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.js .hero__plaque { animation: monte 1s var(--ease) .15s both; }
.js .hero__below > * { animation: monte 1s var(--ease) .35s both; }
.js .hero__img img { animation: approche 2.2s var(--ease) both; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes approche { from { transform: scale(1.06); } to { transform: none; } }
.is-still *, .is-still *::before, .is-still *::after { animation: none !important; transition: none !important; }
.is-still [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
