/* =========================================================================
   Tervuren — Brusselsesteenweg 165
   Palette : forêt de Soignes (encre), papier vert pâle, ocre de signalisation.
   Type    : Archivo (signalétique, chiffres) + Newsreader (lecture).
   ========================================================================= */

:root {
    --ink:      #14261E;
    --ink-2:    #4B5A51;
    --paper:    #F0F2EC;
    --paper-2:  #E5E9DE;
    --line:     #CBD2C4;
    --moss:     #3E6B50;
    --signal:   #E3A32B;

    --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --util:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --body:    'Newsreader', Georgia, 'Times New Roman', serif;

    --wrap: 1080px;
    --pad:  clamp(1.25rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: var(--signal); color: var(--ink); }

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

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: .75rem 1rem;
    font-family: var(--util);
    z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- éléments partagés ---------- */

.h2 {
    font-family: var(--display);
    font-variation-settings: 'wdth' 112;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 .75rem;
    max-width: 20ch;
}
.h2--light { color: var(--paper); }

.lead {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: var(--ink-2);
    margin: 0;
    max-width: 52ch;
}
.lead--light { color: #C4CFC1; }

.p { margin: 0 0 1.1rem; max-width: 62ch; }

.eyebrow {
    font-family: var(--util);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--moss);
    margin: 0 0 1.5rem;
}

.link {
    color: var(--ink);
    text-decoration-color: var(--signal);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.link:hover { color: var(--moss); }

.btn {
    display: inline-block;
    font-family: var(--util);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid   { background: var(--ink); color: var(--paper); }
.btn--ghost   { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--signal  { background: var(--signal); color: var(--ink); }
.btn--outline { border-color: var(--paper); color: var(--paper); }
.btn--outline:hover { background: var(--paper); color: var(--ink); }

/* ---------- barre du haut ---------- */

.topbar {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.25rem var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar__addr {
    margin: 0;
    font-family: var(--util);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.langs { display: flex; gap: .25rem; }
.langs__a {
    font-family: var(--util);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink-2);
    text-decoration: none;
    padding: .35rem .6rem;
    border-radius: 999px;
}
.langs__a:hover { color: var(--ink); background: var(--paper-2); }
.langs__a.is-on { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */

.hero { position: relative; }
.hero__in {
    position: relative;
    z-index: 2;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(2.5rem, 5vw, 3.5rem);
}

/* Avec la vue 3D : l'image occupe toute la bande, un voile de papier passe
   par-dessus pour que le titre reste lisible et se fonde dans la page. */
.hero--shot { overflow: hidden; isolation: isolate; }
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero--shot::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(240, 242, 236, .90) 0%,
        rgba(240, 242, 236, .82) 52%,
        var(--paper) 100%);
}
.hero__credit {
    position: absolute;
    z-index: 3;
    right: var(--pad);
    bottom: .8rem;
    margin: 0;
    font-family: var(--util);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--ink-2);
    background: rgba(240, 242, 236, .72);
    padding: .3rem .7rem;
    border-radius: 999px;
}

@media (min-width: 860px) {
    .hero--shot {
        display: flex;
        align-items: center;
        min-height: clamp(28rem, 44vw, 38rem);
    }
    .hero--shot .hero__in { flex: 1; }
    .hero--shot .eyebrow,
    .hero--shot .hero__h1,
    .hero--shot .hero__lead,
    .hero--shot .hero__cta { max-width: 33rem; }
    .hero--shot::after {
        background:
            linear-gradient(96deg,
                var(--paper) 0%,
                var(--paper) 33%,
                rgba(240, 242, 236, .84) 47%,
                rgba(240, 242, 236, .28) 71%,
                rgba(240, 242, 236, 0) 92%),
            linear-gradient(to bottom,
                rgba(240, 242, 236, 0) 55%,
                rgba(240, 242, 236, .55) 84%,
                var(--paper) 100%);
    }
}

.hero__h1 {
    font-family: var(--display);
    font-variation-settings: 'wdth' 118;
    font-weight: 800;
    font-size: clamp(2.5rem, 7.4vw, 5.1rem);
    line-height: .97;
    letter-spacing: -.035em;
    margin: 0 0 1.5rem;
}
.hero__lead {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.5;
    max-width: 40ch;
    margin: 0 0 2rem;
    color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* ---------- bandeau des chiffres ---------- */

.facts {
    background: var(--signal);
    color: var(--ink);
    list-style: none;
    margin: 0;
    padding: 1rem var(--pad);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 2.25rem;
    font-family: var(--util);
    font-size: .92rem;
    font-weight: 600;
    text-align: center;
}
.facts__i { white-space: nowrap; }
.facts__i--star {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ---------- signature : le schéma des lignes ---------- */

.lines {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) var(--pad) clamp(2rem, 4vw, 3rem);
}
.lines__head { margin-bottom: 2.5rem; }

.diagram { display: none; width: 100%; height: auto; overflow: visible; }

.dg__line { fill: none; stroke-width: 6; stroke-linecap: round; }
.dg__line--tram { stroke: var(--signal); }
.dg__line--bus  { stroke: var(--moss); }
.dg__stem   { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.dg__origin { fill: var(--ink); }
.dg__node   { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }

.dg__dest {
    font-family: var(--util);
    font-size: 17px;
    font-weight: 600;
    fill: var(--ink);
}
.dg__label {
    font-family: var(--util);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    fill: var(--ink-2);
}
.dg__label--origin { fill: var(--ink); font-weight: 700; }

.dg__pill--tram rect { fill: var(--signal); }
.dg__pill--bus  rect { fill: var(--moss); }
.dg__min {
    font-family: var(--util);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dg__pill--tram .dg__min { fill: var(--ink); }
.dg__pill--bus  .dg__min { fill: var(--paper); }

/* tableau des départs (écrans étroits) */
.board {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.board__stop {
    font-family: var(--util);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: .9rem 0 .6rem;
}
.board__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .9rem 0;
    border-top: 1px solid var(--line);
}
.board__badge {
    font-family: var(--util);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .3rem .55rem;
    border-radius: 4px;
    white-space: nowrap;
}
.board__badge--tram { background: var(--signal); color: var(--ink); }
.board__badge--bus  { background: var(--moss);   color: var(--paper); }
.board__dest { font-family: var(--util); font-weight: 500; font-size: .95rem; }
.board__min  { font-family: var(--util); font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.board__min b { font-size: 1.35rem; font-weight: 700; color: var(--ink); }

.walk { margin-top: clamp(2rem, 4vw, 3rem); }
.walk__label {
    font-family: var(--util);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 .75rem;
}
.walk__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: 0;
}
.walk__i {
    font-family: var(--util);
    font-size: .85rem;
    background: var(--paper-2);
    border-radius: 999px;
    padding: .4rem .9rem;
}
.walk__i b { font-weight: 700; }
.walk__note { margin: 0; font-size: .95rem; color: var(--ink-2); }

@media (min-width: 860px) {
    .diagram { display: block; }
    .board   { display: none; }
}

/* ---------- le quartier ---------- */

.place {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
    display: grid;
    gap: 1rem 3rem;
}
@media (min-width: 860px) {
    .place { grid-template-columns: 1fr 1.4fr; }
    .place .h2 { position: sticky; top: 2rem; }
}

/* ---------- niveau par niveau ---------- */

.floors {
    background: var(--paper-2);
    padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.floors__head, .floors__list { max-width: var(--wrap); margin-inline: auto; }
.floors__head { margin-bottom: 2.5rem; }
.floors__list { list-style: none; padding: 0; }

.floor {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}
.floor:last-child { border-bottom: 1px solid var(--line); }
.floor__num {
    font-family: var(--display);
    font-variation-settings: 'wdth' 125;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--signal);
    font-variant-numeric: tabular-nums;
}
.floor__name {
    font-family: var(--util);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    letter-spacing: -.01em;
}
.floor__body { margin: 0; color: var(--ink-2); max-width: 58ch; }

/* ---------- confort (bande sombre) ---------- */

.comfort {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.comfort__head, .specs { max-width: var(--wrap); margin-inline: auto; }
.comfort__head { margin-bottom: 2.25rem; }
.specs { display: grid; gap: 0; }
@media (min-width: 720px) {
    .specs { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}
.specs__row {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(240, 242, 236, .18);
}
.specs__t {
    font-family: var(--util);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--signal);
    padding-top: .2rem;
}
.specs__d { margin: 0; font-size: 1rem; color: #D9E0D5; }

/* ---------- loyer ---------- */

.rent {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.rent__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) {
    .rent__grid { grid-template-columns: auto auto 1fr; gap: 3.5rem; }
}
.rent__fig { margin: 0; }
.rent__n {
    display: block;
    font-family: var(--display);
    font-variation-settings: 'wdth' 118;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}
.rent__sub {
    display: block;
    font-family: var(--util);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--ink-2);
    margin-top: .5rem;
    max-width: 14ch;
}
.rent__inc { border-left: 3px solid var(--signal); padding-left: 1.5rem; }
.rent__inc-t {
    font-family: var(--util);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 .6rem;
}
.rent__ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.rent__ul li { margin-bottom: .25rem; }
.rent__note { margin: 0 0 .35rem; font-size: .95rem; color: var(--ink-2); }

/* ---------- photos ---------- */

.gallery {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad) clamp(3rem, 6vw, 5rem);
}
.gallery__head { margin-bottom: 2rem; }
.grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.shot {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--paper-2);
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}
.shot__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.shot:hover .shot__img { transform: scale(1.04); }
.shot__cap {
    position: absolute;
    left: .7rem;
    bottom: .6rem;
    font-family: var(--util);
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper);
    padding: .25rem .6rem;
    border-radius: 4px;
}
.shot--soon {
    cursor: default;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
}
.shot__soon {
    font-family: var(--util);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    opacity: .7;
}

/* ---------- contact + pied de page (bloc sombre) ---------- */

.contact {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) clamp(2.5rem, 4vw, 3rem);
    text-align: center;
}
.contact__lead {
    margin: 0 auto 2rem;
    max-width: 40ch;
    color: #C9D2C6;
    font-size: 1.15rem;
}
.contact .h2 { margin-inline: auto; max-width: 18ch; }
.contact__btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 0 0 1.75rem; }
.contact__raw {
    font-family: var(--util);
    font-size: .9rem;
    color: #A9B5A6;
    margin: 0;
}
.contact__a { color: var(--signal); text-decoration: none; }
.contact__a:hover { text-decoration: underline; }
.contact__name { display: block; margin-top: .4rem; }

.foot {
    background: var(--ink);
    color: #8E9B8C;
    padding: 1rem var(--pad) 3rem;
    text-align: center;
    font-family: var(--util);
    font-size: .78rem;
    line-height: 1.6;
}
.foot__epc {
    margin: 0 auto 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(240, 242, 236, .14);
    max-width: var(--wrap);
    color: var(--paper);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .75rem;
}
.foot__privacy { margin: 0 auto .75rem; max-width: 68ch; }
.foot__addr { margin: 0; }

/* ---------- visionneuse ---------- */

.lb {
    position: fixed;
    inset: 0;
    background: rgba(20, 38, 30, .96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 1.5rem;
}
.lb.is-open { display: flex; }
.lb__fig { margin: 0; max-width: 90vw; max-height: 88vh; }
.lb__img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lb__cap {
    font-family: var(--util);
    font-size: .85rem;
    color: var(--paper);
    text-align: center;
    padding-top: .9rem;
}
.lb__x, .lb__nav {
    position: absolute;
    background: transparent;
    border: 0;
    color: var(--paper);
    cursor: pointer;
    font-family: var(--util);
    line-height: 1;
    padding: .5rem .8rem;
    border-radius: 999px;
}
.lb__x { top: 1rem; right: 1rem; font-size: 1.4rem; }
.lb__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb__nav--prev { left: .5rem; }
.lb__nav--next { right: .5rem; }
.lb__x:hover, .lb__nav:hover { background: rgba(240, 242, 236, .14); }

/* ---------- animation d'arrivée du schéma ---------- */

@media (prefers-reduced-motion: no-preference) {
    .dg__line {
        stroke-dasharray: 1200;
        stroke-dashoffset: 1200;
        animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) forwards;
        animation-delay: var(--d, 0s);
    }
    .dg__stem {
        stroke-dasharray: 200;
        stroke-dashoffset: 200;
        animation: draw .5s ease-out forwards;
    }
    .dg__pill, .dg__dest {
        opacity: 0;
        animation: fade .5s ease-out forwards;
        animation-delay: var(--d, 1s);
    }
    .dg__dest { animation-delay: 1.1s; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    @keyframes fade { to { opacity: 1; } }
}
