/* ==========================================================================
   Vennes 65 : feuille de style
   Charte v1.0 : charbon, vert sauge en accent mesuré, blanc et ivoire ; Lato ; filets fins ;
   ni dégradés, ni ombres, ni angles arrondis. Composition : deux blocs qui s'emboîtent
   (image à fond perdu à droite, aplat charbon à gauche) et une ligne de toits en gradins.
   ========================================================================== */

/* Lato auto-hébergée (licence OFL), sous-ensemble latin : aucun appel à un serveur tiers */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }

:root {
    /* Charte */
    --charbon: #2D2D2D;
    --sauge: #758270;
    --blanc: #FFFFFF;
    --ivoire: #F7F7F4;
    --mineral: #B8BAB5;
    /* Dérivés : le gris minéral et la sauge n'ont pas un contraste suffisant pour du petit texte */
    --encre: #2D2D2D;
    --encre-2: #5C5E5A;
    --filet: #DDDEDA;
    --bord-champ: #8A8C87;

    --font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --gutter: clamp(20px, 6.5vw, 120px);
    --max: 1360px;
    --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* l'attribut hidden l'emporte toujours, même sur un élément en grille ou en flex */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--blanc);
    color: var(--encre);
    font: 400 17px/1.65 var(--font);
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-weight: 300; line-height: 1.04; letter-spacing: -.008em; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.7vw, 56px); }
h3, .h3 { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }

a { color: inherit; }

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

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 12px 18px; background: var(--charbon); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

.wrap { padding-inline: var(--edge); }

/* ---------- Éléments récurrents ---------- */

.index {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
    font-size: 12.5px; font-weight: 700; line-height: 1;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--encre-2);
}
/* repère : la barre verticale verte du logo (jamais un trait horizontal, qui se lirait comme un tiret) */
.index::before { content: ""; flex: none; width: 4px; height: 18px; background: var(--sauge); }
.index__n { color: var(--encre); }
.index__n::after { content: "·"; margin-left: 12px; color: var(--mineral); }

.lead { font-size: clamp(19px, 1.55vw, 23px); font-weight: 300; line-height: 1.55; }
.lead + p { margin-top: 20px; }

.link {
    display: inline-flex; align-items: center; gap: 10px;
    padding-bottom: 4px;
    font-weight: 700; font-size: 15.5px; text-decoration: none;
    border-bottom: 1px solid var(--charbon);
    transition: gap .3s var(--ease), border-color .3s;
}
.link svg { color: var(--sauge); }
.link:hover { gap: 16px; border-color: var(--sauge); }
.link--light { border-color: rgba(255, 255, 255, .55); color: #fff; }

.btn {
    display: inline-flex; align-items: stretch;
    padding: 0; border: 0; background: none; cursor: pointer;
    font: 700 15.5px/1.2 var(--font); color: #fff; text-decoration: none; text-align: left;
}
.btn__label {
    display: flex; align-items: center;
    min-height: 56px; padding: 10px 26px;
    background: var(--charbon);
    transition: background .25s;
}
.btn__arrow {
    display: grid; place-items: center; flex: none;
    width: 56px; background: var(--sauge); color: #fff;
    transition: width .35s var(--ease);
}
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow,
.card__link:hover .btn__arrow { width: 70px; }
.btn--light .btn__label { background: #fff; color: var(--charbon); }
.btn--small { font-size: 14.5px; }
.btn--small .btn__label { min-height: 44px; padding: 8px 18px; }
.btn--small .btn__arrow { width: 44px; }
.btn--small:hover .btn__arrow { width: 54px; }
.btn--block { display: flex; }
.btn--block .btn__label { flex: 1; }
/* bouton secondaire : même forme en deux blocs, mais en contour */
.btn--outline { color: var(--charbon); }
.btn--outline .btn__label { background: #fff; box-shadow: inset 0 0 0 1px var(--charbon); justify-content: space-between; gap: 12px; }
.btn--outline .btn__label small { font-size: 11.5px; letter-spacing: .12em; color: var(--encre-2); }
.btn--outline .btn__arrow { background: var(--charbon); }

.tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 10px;
    background: #fff; border: 1px solid var(--filet);
    font-size: 11px; font-weight: 700; line-height: 1;
    letter-spacing: .12em; text-transform: uppercase; color: var(--encre);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sauge); }
.tag--option::before { background: none; box-shadow: inset 0 0 0 2px var(--sauge); }
.tag--vendu { background: var(--charbon); border-color: var(--charbon); color: #fff; }
.tag--vendu::before { display: none; }

.badge {
    align-self: flex-start;
    margin-top: 12px; padding: 3px 0 3px 10px;
    border-left: 3px solid var(--badge, var(--sauge));
    font-size: 12px; font-weight: 700; line-height: 1.35;
    letter-spacing: .06em; text-transform: uppercase; color: var(--encre);
}
.badge--large { margin: 22px 0 0; font-size: 13px; }

/* Prix : toujours en Lato, chiffres alignés et bien lisibles */
.price {
    font: 700 21px/1.15 var(--font);
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: 0; color: var(--encre);
}
.price small { font-size: 13px; font-weight: 400; color: var(--encre-2); }
.price--ask, .price--muted { font-size: 15px; font-weight: 400; color: var(--encre-2); line-height: 24px; }
.price--large { font-size: clamp(30px, 2.8vw, 40px); margin-top: 22px; }
.price--large small { font-size: 15px; }
.price--large.price--ask, .price--large.price--muted { font-size: 22px; font-weight: 300; line-height: 1.3; }

.legal-note { margin-top: 28px; font-size: 14px; color: var(--encre-2); }
.placeholder { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--filet); font-size: 15px; color: var(--encre-2); }

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

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--blanc);
    border-bottom: 1px solid var(--filet);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 72px; padding: 10px var(--edge);
}
.brand { flex: none; display: block; }
.brand img { width: auto; height: 42px; }

.burger {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 0 10px 10px; border: 0; background: none; cursor: pointer;
    font: 700 13px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--encre);
}
.burger__icon { position: relative; width: 26px; height: 12px; }
.burger__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--charbon); 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: 73px 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 36px;
    padding: 36px var(--gutter) 40px;
    background: var(--ivoire);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
.menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
.menu__list { display: grid; border-top: 1px solid var(--charbon); }
.menu__list a {
    display: flex; align-items: baseline; gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--filet);
    font-size: 28px; font-weight: 300; line-height: 1.1; text-decoration: none;
}
.menu__n { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--encre-2); }
.menu .btn { align-self: flex-start; }

@media (min-width: 1100px) {
    .burger { display: none; }
    .menu {
        position: static; flex-direction: row; align-items: center; gap: 34px;
        padding: 0; background: none; overflow: visible;
        visibility: visible; opacity: 1; transform: none; transition: none;
    }
    .menu__list { display: flex; gap: 30px; border: 0; }
    .menu__list a {
        position: relative; padding: 10px 0; border: 0;
        font-size: 15.5px; font-weight: 400;
    }
    .menu__list a::after {
        content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
        background: var(--charbon); transition: right .35s var(--ease);
    }
    .menu__list a:hover::after, .menu__list a:focus-visible::after { right: 0; }
    .menu__n { display: none; }
}

/* ---------- Haut de page ---------- */

.hero { position: relative; padding-bottom: 8px; }
.hero__side { display: none; }

.hero__stage { position: relative; margin: 20px 0 0 var(--gutter); }
.hero__media {
    position: relative;
    height: clamp(300px, 88vw, 540px);
    /* ligne de toits en gradins : seuls le ciel et les arbres sont entamés */
    clip-path: polygon(0 12%, 25% 12%, 25% 0, 75% 0, 75% 9%, 100% 9%, 100% 100%, 0 100%);
}
.hero__picture, .hero__picture img { width: 100%; height: 100%; }
.hero__picture img { object-fit: cover; object-position: 46% 0; }
.hero__slats {
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 2px), #fff calc(25% - 2px), #fff 25%);
}
.hero__bar {
    position: absolute; left: calc(75% + 5px); top: 1.2%;
    width: 4.2%; height: 7.8%;
    background: var(--sauge);
    clip-path: polygon(0 0, 100% 26%, 100% 100%, 0 100%);
}

.hero__panel {
    position: relative; z-index: 2;
    margin: -72px var(--gutter) 0 0;
    padding: 34px 28px 34px var(--gutter);
    background: var(--charbon); color: #fff;
}
.hero__panel h1 { font-size: clamp(42px, 11.5vw, 64px); }
.hero__kicker {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
    font-size: 12.5px; font-weight: 700; line-height: 1.3;
    letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.hero__kicker::before { content: ""; flex: none; width: 4px; height: 18px; background: var(--sauge); }
.hero__lead { margin-top: 20px; max-width: 30em; font-size: 18px; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.hero__signed {
    display: flex; align-items: center; gap: 16px;
    margin-top: 34px; padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .82); text-decoration: none;
}
.hero__signed img { width: 138px; height: auto; }
.hero__panel :focus-visible { outline-color: #fff; }

.hero__facts {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: 0 var(--gutter); padding: 28px 0 8px;
}
.hero__facts li { padding: 0 12px 0 16px; border-left: 1px solid var(--filet); }
.hero__facts li:first-child { padding-left: 0; border: 0; }
.hero__facts strong { display: block; font-size: clamp(32px, 9vw, 52px); font-weight: 300; line-height: 1; white-space: nowrap; }
.hero__facts span { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }

@media (min-width: 1024px) {
    .hero {
        display: grid;
        grid-template-columns: calc(var(--edge) + min(560px, 40vw)) minmax(0, 1fr);
        grid-template-rows: auto auto;
        padding: 0;
    }
    .hero__side {
        display: block;
        position: absolute; left: calc(var(--edge) + 4.5vw - 9px); top: 36px;
        writing-mode: vertical-rl; transform: rotate(180deg);
        font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
        color: var(--encre-2);
    }
    .hero__side span { color: var(--sauge); }
    .hero__stage { grid-column: 1 / -1; grid-row: 1; margin: 28px 0 0 calc(var(--edge) + 9vw); }
    .hero__media {
        height: clamp(460px, 74vh, 800px);
        clip-path: polygon(0 24%, 16.667% 24%, 16.667% 0, 50% 0, 50% 10%, 66.667% 10%, 66.667% 17%, 83.333% 17%, 83.333% 26%, 100% 26%, 100% 100%, 0 100%);
    }
    /* ancrée en haut : sur un écran très large, c'est la pelouse qui est rognée, jamais le toit */
    .hero__picture img { object-position: 50% 0; }
    .hero__slats { background: repeating-linear-gradient(90deg, transparent 0, transparent calc(16.667% - 2px), #fff calc(16.667% - 2px), #fff 16.667%); }
    .hero__bar { left: calc(50% + 6px); top: 1.5%; width: 2.6%; height: 9.5%; }

    .hero__panel {
        grid-column: 1; grid-row: 1 / 3; align-self: end;
        margin: 0; padding: 56px 60px 48px var(--edge);
    }
    .hero__panel h1 { font-size: clamp(52px, 5.4vw, 88px); }
    .hero__lead { font-size: 19px; }
    .hero__facts {
        grid-column: 2; grid-row: 2; align-self: center;
        display: flex; gap: 0; margin: 0;
        padding: 34px var(--edge) 34px 60px;
    }
    .hero__facts li { flex: 1; padding: 0 20px 0 28px; }
    .hero__facts strong { font-size: clamp(40px, 3.6vw, 58px); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 9vw, 148px); }
.building, .constructeur, .contact { background: var(--ivoire); }

.section__head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 60px);
}
.section__head h2 { max-width: 16em; }
.section__aside { font-size: 15px; color: var(--encre-2); }
.section__aside strong { font-size: 30px; font-weight: 300; line-height: 1; color: var(--encre); margin-right: 4px; font-variant-numeric: lining-nums tabular-nums; }

.split { display: grid; gap: 36px; }
@media (min-width: 1024px) {
    .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8%; }
}

.figures {
    display: grid; grid-template-columns: repeat(2, 1fr);
    margin-top: clamp(40px, 5vw, 72px);
    border-top: 1px solid var(--charbon);
}
.figures li { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--filet); }
.figures strong { display: block; font-size: clamp(44px, 4.4vw, 68px); font-weight: 300; line-height: 1; }
.figures span { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 700; line-height: 1.45; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
@media (min-width: 700px) {
    .figures { grid-template-columns: repeat(4, 1fr); }
    .figures li { border-bottom: 0; padding-right: 20px; }
    .figures li + li { padding-left: 24px; border-left: 1px solid var(--filet); }
}

/* ---------- Les appartements : la liste reprend l'élévation de l'immeuble ---------- */

.levels { border-top: 1px solid var(--charbon); }
.level { display: grid; gap: 18px; padding: 28px 0 34px; border-bottom: 1px solid var(--filet); }
.level__head { display: flex; align-items: baseline; gap: 14px; }
.level__code { font-size: 40px; font-weight: 300; line-height: 1; min-width: 1.9em; }
.level__label { font-size: 16px; }
.level__count { margin-left: auto; font-size: 14px; color: var(--encre-2); }

.level__cards { display: grid; gap: 12px; }

.card { display: flex; min-width: 0; }
.card__link {
    position: relative;
    display: flex; flex: 1; min-width: 0;
    background: #fff; border: 1px solid var(--filet);
    text-decoration: none; color: inherit;
    transition: border-color .3s;
}
.card__link:hover, .card__link:focus-visible { border-color: var(--charbon); }
.card__plan { position: relative; flex: 0 0 118px; min-height: 148px; background: var(--ivoire); overflow: hidden; }
.card__plan picture { position: absolute; inset: 36px 8px 8px; }
.card__plan img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card__link:hover .card__plan img { transform: scale(1.04); }
.card__n { position: absolute; top: 9px; left: 11px; font-size: 21px; font-weight: 300; line-height: 1; }
.card .tag { position: absolute; top: 10px; right: 10px; z-index: 1; }
.card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 44px 14px 14px 16px; }
.card__title { font-size: 18px; }
.card__meta { margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--encre-2); }
.card__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.btn--card { display: flex; font-size: 14.5px; }
.btn--card .btn__label { flex: 1; min-height: 42px; padding: 6px 14px; }
.btn--card .btn__arrow { width: 42px; }
.card__link:hover .btn--card .btn__arrow { width: 52px; }

.card--vendu .card__plan img { filter: grayscale(1); opacity: .4; }
.card--vendu .card__title, .card--vendu .card__n { color: var(--encre-2); }
.card--vendu .btn__label { background: #6A6C68; }
.card--vendu .btn__arrow { background: var(--mineral); color: var(--charbon); }

@media (min-width: 700px) {
    .level__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .card__link { flex-direction: column; }
    .card__plan { flex: none; aspect-ratio: 4 / 5; min-height: 0; }
    .card__plan picture { inset: 52px 20px 20px; }
    .card__n { top: 14px; left: 16px; font-size: 30px; }
    .card .tag { top: 14px; right: 14px; }
    .card__body { padding: 18px 18px 18px; }
    .card__title { font-size: 19px; }
    .card__foot { padding-top: 20px; }
    .card--wide .card__plan { aspect-ratio: 4 / 5; }
}
@media (min-width: 1100px) {
    .level { grid-template-columns: 168px minmax(0, 1fr); gap: 28px; padding: 36px 0 40px; }
    .level__head { display: block; }
    .level__code { font-size: clamp(44px, 4vw, 62px); }
    .level__label { margin-top: 14px; }
    .level__count { margin: 2px 0 0; }
    .level__cards { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
    .card--wide .card__plan { aspect-ratio: auto; height: 0; padding-bottom: calc((125% - 16px * 1.25) / 2); }
}

/* ---------- L'immeuble : galerie ---------- */

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery__item { min-width: 0; }
.gallery__item a { display: block; height: 100%; overflow: hidden; background: var(--ivoire); }
.gallery__item picture, .gallery__item img { width: 100%; height: 100%; }
.gallery__item img { aspect-ratio: 2 / 1; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item a:hover img { transform: scale(1.035); }
.gallery__item--1 { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
    .gallery__item--1 { grid-column: 1 / 9; grid-row: 1 / 3; }
    .gallery__item--1 img { aspect-ratio: auto; }
    .gallery__item--2 { grid-column: 9 / 13; }
    .gallery__item--3 { grid-column: 9 / 13; }
    .gallery__item--4 { grid-column: 1 / 7; }
    .gallery__item--5 { grid-column: 7 / 13; }
}

/* ---------- Le constructeur ---------- */

.constructeur__grid { display: grid; gap: 36px; }
.constructeur__logo {
    display: grid; place-items: center;
    padding: 40px 12%;
    background: #fff; border: 1px solid var(--filet);
}
.constructeur__logo img { width: min(100%, 380px); }
.constructeur__text .lead { margin-top: 24px; max-width: 34em; }
.proofs { display: grid; margin: 36px 0 32px; border-top: 1px solid var(--charbon); }
.proofs li { padding: 18px 0; border-bottom: 1px solid var(--filet); }
.proofs strong { display: block; font-size: 17px; }
.proofs span { display: block; margin-top: 2px; font-size: 15px; color: var(--encre-2); }
@media (min-width: 700px) {
    .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
@media (min-width: 1024px) {
    .constructeur__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8%; align-items: start; }
    .constructeur__logo { aspect-ratio: 1 / 1; padding: 12%; position: sticky; top: 110px; }
}

/* ---------- La situation ---------- */

.situation__grid { display: grid; gap: 36px; }
.situation__text .lead { margin-top: 24px; }
.situation__text .link { margin-top: 28px; }
.contact__address { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--filet); }
.contact__address dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-2); }
.contact__address dd { margin-top: 6px; font-size: 18px; line-height: 1.45; }
/* Carte : au repos, fond OpenStreetMap en gris et grand repère aux couleurs du projet ; un clic la rend interactive
   (cela évite aussi que la carte « avale » le défilement de la page sur mobile). */
.map { position: relative; overflow: hidden; height: clamp(340px, 42vw, 580px); border: 1px solid var(--filet); background: var(--ivoire); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(1.04); transition: filter .4s; }
.map__pin {
    position: absolute; left: 50%; top: 50%; z-index: 2;
    display: flex; align-items: flex-end; gap: 12px;
    transform: translate(-27px, -100%); pointer-events: none;
    transition: opacity .3s;
}
.map__pin::before {                       /* zone mise en évidence autour de l'adresse */
    content: ""; position: absolute; left: 27px; bottom: 0; width: 132px; height: 132px;
    transform: translate(-50%, 50%); border-radius: 50%;
    background: rgba(117, 130, 112, .24); box-shadow: inset 0 0 0 1.5px rgba(117, 130, 112, .75);
}
.map__pin svg { position: relative; flex: none; width: 54px; height: 70px; }
.map__label { position: relative; margin-bottom: 26px; padding: 10px 14px; background: var(--charbon); color: #fff; line-height: 1.3; white-space: nowrap; }
.map__label strong { display: block; font-size: 16px; }
.map__label span { font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.map__cover {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 0; border: 0; background: transparent; cursor: pointer;
}
.map__cover span { margin: 14px; padding: 9px 13px; background: #fff; border: 1px solid var(--filet); font: 700 13.5px/1 var(--font); color: var(--encre); }
.map__cover:hover span, .map__cover:focus-visible span { border-color: var(--charbon); }
.map.is-live iframe { filter: none; }
.map.is-live .map__pin, .map.is-live .map__cover { display: none; }
/* petit écran : l'étiquette passe au-dessus du repère, centrée, pour ne jamais déborder de la carte */
@media (max-width: 700px) {
    .map__pin { flex-direction: column-reverse; align-items: center; gap: 6px; transform: translate(-50%, -100%); }
    .map__pin::before { left: 50%; width: 110px; height: 110px; }
    .map__label { margin-bottom: 0; text-align: center; }
}
.map__links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; }
.situation__map-note { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--filet); font-size: 13.5px; color: var(--encre-2); }
@media (min-width: 1024px) {
    .situation__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8%; align-items: center; }
}

/* ---------- Contact ---------- */

.contact__grid { display: grid; gap: 40px; }
.contact__intro .lead { margin-top: 24px; max-width: 28em; }

.contact__builder {
    display: flex; align-items: center; gap: 22px;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--filet);
    font-size: 15px; line-height: 1.5; color: var(--encre-2);
}
.contact__builder img { flex: none; width: 136px; }

/* Le vendeur : une carte bien visible à côté de chaque formulaire (masquée tant que ses coordonnées valent « Inconnu ») */
.seller {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 22px;
    margin-top: 36px; padding: clamp(20px, 2.2vw, 30px);
    background: #fff; border: 1px solid var(--filet); border-top: 3px solid var(--charbon);
}
.seller__label { grid-column: 1 / -1; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-2); }
.seller__photo { display: block; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; }
.seller__photo picture, .seller__photo img { width: 100%; height: 100%; }
.seller__photo img { object-fit: cover; }
.seller__photo--empty { display: grid; place-items: center; background: var(--charbon); color: #fff; font-size: 30px; font-weight: 300; letter-spacing: .04em; }
.seller__name { font-size: 22px; font-weight: 700; line-height: 1.2; }
/* tant que le nom n'est pas renseigné, la première ligne connue (la société) tient lieu de titre */
.seller__text > :first-child { margin-top: 0; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--encre); }
.seller__company { margin-top: 2px; font-size: 16px; line-height: 1.45; }
.seller__hours { font-size: 15px; color: var(--encre-2); line-height: 1.45; }
.seller .btn--call { grid-column: 1 / -1; margin-top: 18px; font-size: clamp(15px, 4.6vw, 20px); font-variant-numeric: lining-nums tabular-nums; }
/* le numéro tient toujours sur une ligne, même sur un petit téléphone */
.seller .btn--call .btn__label { flex: 1; min-width: 0; padding-inline: clamp(14px, 4vw, 26px); white-space: nowrap; }
.seller__mail { grid-column: 1 / -1; margin-top: 8px; font-size: 16.5px; justify-self: start; text-underline-offset: 4px; overflow-wrap: anywhere; }
.others + .contact .seller { background: var(--ivoire); border-color: var(--ivoire); border-top-color: var(--charbon); }

.form {
    display: grid; gap: 18px;
    padding: clamp(22px, 3vw, 48px);
    background: #fff; border: 1px solid var(--filet);
}
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field__label { font-size: 14px; font-weight: 700; }
.field label small, .field__label small, .form__more-btn small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--encre-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
    width: 100%; padding: 13px 14px;
    font: 400 16.5px/1.4 var(--font); color: var(--encre);
    background: #fff; border: 1px solid var(--bord-champ); border-radius: 0;
    transition: border-color .2s;
}
.field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232D2D2D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--charbon); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--sauge); outline-offset: 1px; border-color: var(--charbon); }
.field.is-invalid input, .field.is-invalid select { border-color: #9B2C2C; box-shadow: inset 3px 0 0 #9B2C2C; }
.field__error { font-size: 13.5px; color: #9B2C2C; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--charbon); }
.field--check label { font-size: 14.5px; font-weight: 400; line-height: 1.5; color: var(--encre-2); }
.field--check .field__error { grid-column: 2; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form__note { font-size: 13.5px; color: var(--encre-2); }
.form__status { padding: 16px 18px; border-left: 3px solid var(--sauge); background: var(--ivoire); font-size: 16px; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

/* Formulaire en trois étapes courtes. Sans JavaScript, les étapes s'affichent simplement à la suite. */
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.step + .step { margin-top: 14px; padding-top: 28px; border-top: 1px solid var(--filet); }
.step__title { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-size: clamp(24px, 2.2vw, 31px); font-weight: 300; line-height: 1.15; }
.step__body { clear: both; display: grid; gap: 18px; }
.steps__head, .form__more, .steps__back { display: none; }
.js .steps__head, .js .form__more { display: block; }
.js .steps__back { display: inline-block; }
.js .crm-form .step:not(.is-active) { display: none; }
.js .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.js .step.is-active { animation: step-in .35s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }

.steps__count { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--encre); }
.steps__time { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--encre-2); }
.steps__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.steps__bar li { height: 3px; background: var(--filet); transition: background .35s; }
.steps__bar li.is-done { background: var(--sauge); }
.steps__bar li.is-current { background: var(--charbon); }

/* Étape 1 : deux grands choix, un clic suffit */
.field--choices { gap: 12px; }
.field .choice {
    position: relative; display: flex; align-items: center; gap: 16px;
    padding: 18px 18px 18px 22px;
    border: 1px solid var(--bord-champ); background: #fff;
    font-size: inherit; font-weight: 400; cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice__body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.choice__body strong { font-size: 18px; line-height: 1.25; }
.choice__body span { font-size: 15px; line-height: 1.45; color: var(--encre-2); }
.choice__arrow { flex: none; display: grid; place-items: center; width: 46px; height: 46px; background: var(--ivoire); color: var(--charbon); transition: background .2s, color .2s; }
.choice:hover { border-color: var(--charbon); }
.choice:hover .choice__arrow, .choice:has(input:checked) .choice__arrow { background: var(--sauge); color: #fff; }
.choice:has(input:checked) { border-color: var(--charbon); box-shadow: inset 0 0 0 1px var(--charbon); }
.choice:has(input:focus-visible) { outline: 2px solid var(--sauge); outline-offset: 2px; }
.field--choices.is-invalid .choice { border-color: #9B2C2C; }
.others + .contact .choice__arrow { background: #fff; }

.field--zip { max-width: 240px; }

/* Étape 3 : moment de rappel en pastilles, message replié */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field .chip { position: relative; font-weight: 400; cursor: pointer; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span { display: block; padding: 10px 14px; border: 1px solid var(--bord-champ); background: #fff; font-size: 15px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: var(--charbon); }
.chip input:checked + span { background: var(--charbon); border-color: var(--charbon); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--sauge); outline-offset: 2px; }
.form__more-btn { padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--charbon); background: none; font: 700 15px/1.3 var(--font); color: var(--encre); cursor: pointer; }
.form__more-btn:hover { border-color: var(--sauge); }
.field--message textarea { min-height: 96px; }
.steps__back { padding: 8px 0; border: 0; background: none; font: 700 15px/1.2 var(--font); color: var(--encre-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.steps__back:hover { color: var(--encre); }

@media (min-width: 640px) {
    .form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8%; align-items: start; }
    /* le formulaire, désormais court, reste en vue pendant qu'on lit la colonne de gauche */
    .contact__form { position: sticky; top: 104px; }
}

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

.site-footer { background: var(--charbon); color: #fff; padding-top: clamp(56px, 6vw, 96px); }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: clamp(40px, 5vw, 72px); }
.site-footer__brand img { width: 210px; }
.site-footer__brand p { margin-top: 22px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.site-footer__nav ul { display: grid; gap: 10px; }
.site-footer__nav a { font-size: 16px; text-decoration: none; color: rgba(255, 255, 255, .9); }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__builder { display: grid; gap: 16px; align-content: start; justify-items: start; text-decoration: none; }
.site-footer__builder span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.site-footer__builder img { width: 190px; }
.site-footer__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
    padding-block: 22px; font-size: 14px; color: rgba(255, 255, 255, .78);
    border-top: 1px solid rgba(255, 255, 255, .2);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer__legal a { text-underline-offset: 4px; }
@media (min-width: 900px) {
    .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
    .site-footer__builder { justify-self: end; }
}

/* ---------- Fiche d'un appartement ---------- */

.crumbs { padding-block: 22px; font-size: 14px; color: var(--encre-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--mineral); }
.crumbs a { text-underline-offset: 4px; }

.fiche__top { display: grid; gap: 24px; }
.fiche__media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.viewer {
    position: relative; display: block; flex: 1;
    min-height: clamp(340px, 78vw, 560px);
    background: var(--ivoire); border: 1px solid var(--filet);
}
.viewer picture { position: absolute; inset: clamp(16px, 2.4vw, 36px); }
.viewer img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.viewer__zoom {
    position: absolute; left: 0; bottom: 0;
    padding: 10px 14px; background: var(--charbon); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumbs a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ivoire); border: 1px solid var(--filet); }
.thumbs picture, .thumbs img { width: 100%; height: 100%; }
.thumbs img { object-fit: cover; transition: transform .6s var(--ease); }
.thumbs a:hover img { transform: scale(1.05); }
.thumbs .thumbs__level img, .thumbs li.is-plan img { object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.thumbs span { display: none; position: absolute; left: 0; bottom: 0; padding: 4px 7px; background: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 700px) { .thumbs span { display: block; } }

.fiche__summary {
    display: flex; flex-direction: column;
    padding: clamp(22px, 2.6vw, 40px);
    border: 1px solid var(--filet);
}
.fiche__tags { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.fiche__lot { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-2); }
.fiche__summary h1 { font-size: clamp(40px, 4vw, 60px); }
.fiche__sub { margin-top: 10px; font-size: 19px; font-weight: 300; }
.keys {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px; border-top: 1px solid var(--charbon);
    /* filet du bas sur toute la largeur, même quand la dernière rangée est incomplète */
    background: linear-gradient(var(--filet), var(--filet)) bottom / 100% 1px no-repeat;
}
.keys div {
    display: flex; flex-direction: column; justify-content: space-between;   /* valeurs alignées même si un libellé passe sur deux lignes */
    padding: 14px 8px 14px 16px; border-bottom: 1px solid var(--filet); border-left: 1px solid var(--filet);
}
.keys div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.keys dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
.keys dd { margin-top: 2px; font-size: 26px; font-weight: 300; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.fiche__actions { display: grid; gap: 10px; margin-top: 28px; }
.builder-line {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: auto; padding-top: 24px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-2);
    text-decoration: none;
}
.fiche__actions + .builder-line { border-top: 0; }
.builder-line img { width: 150px; }

.fiche__body { display: grid; gap: 40px; padding-top: clamp(56px, 7vw, 112px); }
.fiche__text .lead { margin-top: 24px; max-width: 32em; }
.fiche__text h3 { margin-top: 36px; }
.ticks { display: grid; margin-top: 14px; border-top: 1px solid var(--filet); }
.ticks li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--filet); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--sauge); }
.fiche__brief { padding: clamp(22px, 2.6vw, 40px); background: var(--ivoire); align-self: start; }
.brief { margin-top: 16px; border-top: 1px solid var(--charbon); }
.brief div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.brief dt { color: var(--encre-2); }
.brief dd { font-weight: 700; text-align: right; }
.brief dd.num { font-variant-numeric: lining-nums tabular-nums; }

.fiche__level { padding-block: clamp(56px, 7vw, 112px) clamp(72px, 9vw, 148px); }
.levelplan { border: 1px solid var(--filet); padding: clamp(10px, 2vw, 32px); }
.levelplan__img { display: block; cursor: zoom-in; }
.levelplan__img img { width: 100%; }
.levelplan figcaption { display: flex; align-items: center; gap: 12px; margin-top: clamp(10px, 1.6vw, 22px); font-size: 14.5px; font-weight: 700; }
.levelplan__key { width: 22px; height: 14px; border: 2.5px solid var(--sauge); }

.others { background: var(--ivoire); }
.others + .contact { background: #fff; }
.others + .contact .form, .others + .contact .form__success { background: var(--ivoire); border-color: var(--ivoire); }

@media (min-width: 1024px) {
    .fiche__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: stretch; }
    .viewer { min-height: 0; }
    .fiche__media { min-height: clamp(520px, 41vw, 660px); }
    .fiche__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
    .fiche__text { padding-right: 8%; }
}

/* ---------- Compléments : photos (quand le vendeur en ajoute), états vides ---------- */

.h2 { font-size: clamp(32px, 3.7vw, 56px); font-weight: 300; line-height: 1.04; letter-spacing: -.008em; text-wrap: balance; }
.card__plan--photo picture { inset: 0; }
.card__plan--photo img { object-fit: cover; mix-blend-mode: normal; }
.card__plan--photo .card__n { z-index: 1; padding: 3px 7px 4px; background: #fff; top: 0; left: 0; }
.viewer--photo picture { inset: 0; }
.viewer--photo img { object-fit: cover; mix-blend-mode: normal; }
.viewer--empty { display: grid; place-items: center; padding: 40px; text-align: center; color: var(--encre-2); }
.levels__empty { padding: 40px 0; color: var(--encre-2); }
.fiche__spacer { height: clamp(72px, 9vw, 148px); }
.fiche--vendu .viewer img { filter: grayscale(1); opacity: .55; }

.menu__list a[aria-current="page"] { font-weight: 700; }
@media (min-width: 1100px) {
    .menu__list a[aria-current="page"]::after { right: 0; background: var(--sauge); height: 2px; }
}

.delivery { margin-top: 22px; padding-left: 14px; border-left: 4px solid var(--sauge); font-weight: 700; }
.split__more { margin-top: clamp(28px, 3vw, 44px); }
.split__body p + p { margin-top: 20px; }
.constructeur__links { display: flex; flex-wrap: wrap; gap: 14px 30px; }

/* Texte mis en forme par le vendeur (paragraphes, listes, intertitres) */
.prose { margin-top: 22px; max-width: 46em; }
.prose > * + * { margin-top: 18px; }
.prose h2, .prose h3 { margin-top: 38px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.prose h4 { margin: 28px 0 0; font-size: 17px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--sauge); }
.prose a { text-underline-offset: 4px; }
.prose--lead { margin-top: 0; }
.prose--lead > p:first-child { font-size: clamp(19px, 1.55vw, 23px); font-weight: 300; line-height: 1.55; }

/* ---------- En-tête des pages intérieures ---------- */

.pagehead { display: grid; gap: 28px; padding-block: clamp(20px, 3vw, 48px) clamp(40px, 5vw, 80px); }
.pagehead h1 { font-size: clamp(38px, 4.6vw, 72px); }
.pagehead__side .lead + p { margin-top: 18px; }
.pagehead__count { margin-top: 22px; padding-left: 14px; border-left: 4px solid var(--sauge); font-weight: 700; }
@media (min-width: 1024px) {
    .pagehead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8%; align-items: end; }
}
.pagehero { padding-bottom: 8px; }
.pagehero picture, .pagehero img { width: 100%; }
.pagehero img { aspect-ratio: 21 / 9; object-fit: cover; }
.building--page { padding-top: clamp(40px, 5vw, 72px); }
.building--page .level__label { font-weight: 700; letter-spacing: 0; }
.immeuble--tint { background: var(--ivoire); }
.immeuble--tint + .niveaux { background: #fff; }
.situation--contact .map { height: clamp(320px, 36vw, 520px); }

/* Galerie : moins de cinq images */
@media (min-width: 900px) {
    .gallery--1 .gallery__item--1 { grid-column: 1 / -1; grid-row: auto; }
    .gallery--1 .gallery__item--1 img { aspect-ratio: 21 / 9; }
    .gallery--2 .gallery__item--1, .gallery--2 .gallery__item--2 { grid-column: span 6; grid-row: auto; }
    .gallery--2 .gallery__item--1 img { aspect-ratio: 2 / 1; }
    .gallery--3 .gallery__item--2, .gallery--3 .gallery__item--3 { grid-column: 9 / 13; }
    .gallery--4 .gallery__item--4 { grid-column: 1 / -1; }
    .gallery--4 .gallery__item--4 img { aspect-ratio: 3 / 1; }
    .gallery .gallery__item:nth-child(n + 6) { grid-column: span 4; }
}

/* ---------- Plans : des niveaux (page projet) et d'un bien ---------- */

.niveaux__list, .plans { display: grid; gap: 16px; }
.niveaux__item a, .plans a { display: block; padding: clamp(12px, 2vw, 28px); background: #fff; border: 1px solid var(--filet); cursor: zoom-in; transition: border-color .3s; }
.niveaux__item a:hover, .plans a:hover { border-color: var(--charbon); }
.niveaux__item picture, .niveaux__item img, .plans picture, .plans img { width: 100%; }
.niveaux__item img { aspect-ratio: 2.2 / 1; object-fit: contain; }
.plans img { aspect-ratio: 16 / 9; object-fit: contain; }
.niveaux__caption, .plans p { margin-top: 12px; font-size: 15px; font-weight: 700; }
.fiche__plans { padding-top: clamp(56px, 7vw, 112px); }
@media (min-width: 900px) {
    .niveaux__list, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .niveaux__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .niveaux__item:last-child:nth-child(odd) img { aspect-ratio: 21 / 9; }
}

/* ---------- Chantier ---------- */

.chantier__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.chantier__item a { display: block; overflow: hidden; background: var(--ivoire); }
.chantier__item picture, .chantier__item img { width: 100%; }
.chantier__item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.chantier__item a:hover img { transform: scale(1.035); }
.chantier__date { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.chantier__caption { margin-top: 2px; font-size: 16px; }
.chantier__more { margin-top: 32px; }
@media (min-width: 900px) {
    .chantier__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
}

/* ---------- Fiche : mention du constructeur sous « En bref » ---------- */

.fiche__builder-note { display: flex; align-items: center; gap: 18px; margin-top: 24px; font-size: 14.5px; line-height: 1.5; color: var(--encre-2); }
.fiche__builder-note img { flex: none; width: 112px; }

/* ---------- Formulaire : confirmation ---------- */

.form__success { padding: clamp(28px, 4vw, 56px); background: #fff; border: 1px solid var(--filet); border-top: 3px solid var(--sauge); }
.form__success:focus { outline: none; }
.form__success-title { margin-bottom: 10px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; line-height: 1.15; }
.form[hidden], .form__success[hidden] { display: none; }

/* ---------- Pages légales et page 404 ---------- */

.legal { padding-bottom: clamp(72px, 9vw, 148px); }
.legal__head { padding-block: clamp(20px, 3vw, 48px) clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--charbon); }
.legal__head h1 { font-size: clamp(36px, 4.2vw, 64px); }
.legal__body { margin-top: clamp(28px, 4vw, 56px); }
.legal__updated { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--encre-2); }

.notfound { display: grid; gap: 24px; align-items: center; padding-block: clamp(56px, 8vw, 140px); }
.notfound__code { font-size: clamp(96px, 18vw, 260px); font-weight: 300; line-height: .85; color: var(--filet); }
.notfound h1 { font-size: clamp(32px, 3.6vw, 56px); }
.notfound .lead { margin-top: 22px; max-width: 30em; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 32px; }
@media (min-width: 900px) {
    .notfound { grid-template-columns: auto minmax(0, 1fr); gap: 8%; }
}

/* ---------- Visionneuse ---------- */

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    background: rgba(29, 29, 29, .97); color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { grid-column: 2; display: grid; justify-items: center; gap: 14px; padding: 60px 0 28px; max-height: 100vh; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; background: #fff; }
.lightbox__caption { font-size: 14.5px; text-align: center; color: rgba(255, 255, 255, .85); padding-inline: 12px; }
.lightbox button { display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: none; color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox :focus-visible { outline-color: #fff; }
.lightbox__close { position: absolute; top: 8px; right: 8px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav svg { width: 26px; height: 26px; }

/* ---------- Apparition au défilement (uniquement si JavaScript est actif) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero__media { animation: hero-rise 1.1s var(--ease) both; }
.js .hero__bar { animation: bar-rise .7s var(--ease) .75s both; transform-origin: bottom; }
.js .hero__panel > * { animation: fade-up .8s var(--ease) both; }
.js .hero__panel > *:nth-child(1) { animation-delay: .25s; }
.js .hero__panel > *:nth-child(2) { animation-delay: .35s; }
.js .hero__panel > *:nth-child(3) { animation-delay: .45s; }
.js .hero__panel > *:nth-child(4) { animation-delay: .55s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes bar-rise { from { transform: scaleY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
/* ?fixe : page figée pour les captures d'écran */
.is-still .hero__media, .is-still .hero__bar, .is-still .hero__panel > * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .contact, .lightbox, .hero__actions { display: none; }
}
