/* ───── Les Hauts de la Cavée — styles front ───── */
:root {
    --navy: #13293a;
    --navy-2: #1b3547;
    --teal: #0f8a8d;
    --teal-light: #2ab3b1;
    --teal-dark: #0c7578;
    --peach: #fdeee3;
    --peach-2: #fbe3d2;
    --orange: #e8893a;
    --ink: #1d2833;
    --muted: #5d6874;
    --line: #e6e9ee;
    --soft: #f6f8f9;
    --white: #fff;
    --radius: 12px;
    --serif: 'Lora', Georgia, serif;
    --sans: 'Montserrat', system-ui, sans-serif;
    --container: 1180px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Typo */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }
.eyebrow--light { color: var(--teal-light); }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; color: var(--white); margin-bottom: 20px; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.18; color: var(--navy); margin-bottom: 22px; }
.h2 em { font-style: normal; color: var(--teal); }
.h2--light { color: var(--white); }
.h2--xl { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin-bottom: 0; }
.h2--accent em { color: var(--orange); }
.prose p + p { margin-top: 12px; }
.prose { color: var(--muted); margin-bottom: 26px; }
.prose--light { color: #c7d2db; }
.note { font-size: 12px; color: var(--muted); font-style: italic; }
.note--light { color: #9fb0bd; margin-top: 18px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 14px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--accent { background: var(--orange); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link--light { color: var(--teal-light); }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: rgba(19, 41, 58, .96); backdrop-filter: blur(6px); transition: box-shadow .25s; }
.site-header.is-scrolled, .site-header.is-open { background: var(--navy); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--white); line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.brand__name span { font-size: 1.25em; color: var(--teal-light); }
.brand__sub { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.brand--small .brand__name { font-size: 20px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--white); text-decoration: none; font-size: 13px; font-weight: 500; opacity: .9; }
.main-nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(760px, 100svh); background: var(--navy); }
.hero__content { padding: calc(var(--header-h) + 40px) clamp(24px, 5vw, 72px) 56px max(16px, calc((100vw - var(--container)) / 2)); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.hero__logo { display: flex; flex-direction: column; font-family: var(--serif); color: var(--teal-light); line-height: .9; margin-bottom: 34px; }
.hero__logo-les { font-size: 18px; font-style: italic; margin-left: 4px; }
.hero__logo-hauts, .hero__logo-cavee { font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -.01em; }
.hero__logo-row { display: flex; align-items: center; gap: 8px; }
.hero__logo-dela { font-size: 14px; font-style: italic; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero__text { color: #c7d2db; max-width: 440px; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__price { font-size: 14px; color: #c7d2db; }
.hero__price strong { font-family: var(--serif); font-size: 26px; color: var(--orange); margin: 0 4px; }
.hero__price small { font-size: 11px; opacity: .7; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.offer-badge { position: absolute; left: 28px; bottom: 28px; max-width: 280px; padding: 14px 18px; background: var(--peach); border-left: 4px solid var(--orange); border-radius: 8px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.offer-badge__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.offer-badge__text { font-size: 13px; font-weight: 500; }

/* Chiffres clés */
.stats { background: var(--teal); color: var(--white); padding: 34px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat__value { display: block; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; }
.stat__label { font-size: 12px; opacity: .85; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: var(--white); }
/* Le programme : en-tête deux colonnes + mosaïque d'atouts */
.programme-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; margin-bottom: 56px; }
.programme-head .prose { margin-bottom: 24px; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--teal-dark); }
.bento__lead { position: relative; grid-column: span 2; grid-row: span 2; min-height: 512px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.bento__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__lead--photo::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(to top, rgba(19, 41, 58, .94), rgba(19, 41, 58, 0)); }
.bento__lead-body { position: relative; z-index: 1; max-width: 440px; padding: 32px; }
.bento__lead .bento__icon, .bento__banner .bento__icon { background: rgba(255, 255, 255, .16); color: var(--white); }
.bento__lead .bento__icon { margin-bottom: 20px; }
.bento__lead-title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 8px; }
.bento__lead-text { font-size: 16px; color: rgba(255, 255, 255, .9); }
.bento__tile { display: flex; flex-direction: column; min-height: 248px; padding: 28px; border-radius: var(--radius); background: var(--peach); }
.bento__tile .bento__icon { margin-bottom: 20px; }
.bento__title { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--navy); margin-bottom: 8px; }
.bento__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.bento__tile:nth-last-child(2) { background: var(--navy); }
.bento__tile:nth-last-child(2) .bento__icon { background: rgba(255, 255, 255, .1); color: var(--teal-light); }
.bento__tile:nth-last-child(2) .bento__title { color: var(--white); }
.bento__tile:nth-last-child(2) .bento__text { color: #c7d2db; }
.bento__banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 24px 32px; border-radius: var(--radius); background: var(--teal-dark); color: var(--white); }
.bento__banner-body { flex: 1; }
.bento__banner .btn { min-height: 44px; }
.bento__banner-title { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.3; }
.bento__banner-text { font-size: 15px; color: rgba(255, 255, 255, .92); }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.section-head__aside { margin-bottom: 22px; }

/* Galeries */
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.zoomable img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.zoomable:hover img { transform: scale(1.03); }
figure { margin: 0; }
figcaption { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-top: 10px; }
.gallery-main .zoomable { aspect-ratio: 21 / 9; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.gallery-grid .zoomable { aspect-ratio: 4 / 3; }
.interiors { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.interiors__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.interiors__img--1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.interiors__img:not(.interiors__img--1) { aspect-ratio: 4 / 3; }

/* Plan + grille des prix */
.plan { background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 32px; }
.plan .zoomable { border-radius: 6px; }
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.prices { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.prices thead th { background: var(--teal); color: var(--white); text-align: left; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 14px 16px; }
.prices td, .prices tbody th { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.prices tbody th { font-weight: 700; color: var(--navy); }
.prices tbody tr:hover { background: var(--soft); }
.prices .num { text-align: right; white-space: nowrap; }
.prices strong { color: var(--teal); }
.prices tr.is-sold { color: #9aa3ad; }
.prices tr.is-sold th { color: #9aa3ad; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-right: 6px; }
.tag--sold { background: #fde2e1; color: #b3261e; }
.tag--option { background: var(--peach-2); color: #b5651d; }
.row-cta { font-size: 12px; font-weight: 600; color: var(--orange); text-decoration: none; white-space: nowrap; }
.row-cta:hover { text-decoration: underline; }

/* Offre */
.offer { background: var(--peach); padding: 52px 0; }
.offer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.offer .eyebrow { color: var(--orange); }
.offer__title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--navy); line-height: 1.25; margin-bottom: 10px; }
.offer__title strong { color: var(--orange); }
.offer__text { font-size: 13px; color: var(--muted); }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.partner__logo { height: 64px; width: auto; object-fit: contain; margin-bottom: 18px; }
.partner__title { font-family: var(--serif); font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.partner p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.agency { font-style: normal; font-size: 13px; color: #c7d2db; margin-bottom: 10px; }
.agency strong { color: var(--white); }
.contact__phone { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--white); text-decoration: none; }
.contact__phone--sm { font-size: 18px; opacity: .8; }
.contact__text .btn { margin-top: 18px; }
.contact__card { background: var(--white); color: var(--ink); border-radius: 16px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfd6dd; border-radius: 8px; font: 14px var(--sans); color: var(--ink); background: var(--white); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,138,141,.15); }
.form__check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.form__check label { font-weight: 400; font-size: 12px; color: var(--muted); margin: 0; }
.form__check ul { grid-column: 1 / -1; }
.form ul { list-style: none; margin: 6px 0 0; padding: 0; color: #b3261e; font-size: 12px; }
.form__legal { font-size: 11px; color: var(--muted); text-align: center; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success h3 { font-family: var(--serif); color: var(--teal); font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }
turbo-frame[busy] .btn[type=submit] { opacity: .6; pointer-events: none; }

/* Pied de page */
.site-footer { background: #0d1d29; color: #9fb0bd; padding: 28px 0; font-size: 12px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer__tag { letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.site-footer a { color: inherit; }
.legal { max-width: 760px; padding-top: 40px; }
.legal .prose { color: var(--ink); }

/* Lightbox */
.lightbox { border: 0; padding: 0 64px; background: transparent; max-width: min(1300px, 100vw); max-height: 92vh; overflow: visible; }
.lightbox[open] { display: flex; align-items: center; gap: 12px; }
.lightbox::backdrop { background: rgba(8, 18, 26, .9); }
.lightbox__figure { margin: 0; flex: 1; min-width: 0; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 8px; user-select: none; }
.lightbox__caption { display: flex; justify-content: center; gap: 16px; color: #dbe3e9; font-size: 13px; letter-spacing: normal; text-transform: none; font-weight: 400; margin-top: 10px; }
.lightbox__counter { opacity: .7; font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; top: -44px; right: 64px; background: none; border: 0; color: var(--white); cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 4px; }
.lightbox__nav--next { right: 4px; }
.lightbox__nav[hidden] { display: none; }
.icon.is-flipped { transform: scaleX(-1); }
@media (max-width: 560px) {
    .lightbox { padding: 0 8px; }
    .lightbox__close { right: 8px; }
    .lightbox__nav { top: auto; bottom: -60px; transform: none; }
    .lightbox__nav--prev { left: calc(50% - 56px); }
    .lightbox__nav--next { right: calc(50% - 56px); }
}

/* Apparition */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 16px 20px; display: none; }
    .site-header.is-open .main-nav { display: flex; }
    .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
    .main-nav .btn { margin-top: 16px; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero__content { padding: calc(var(--header-h) + 40px) 16px 48px; align-items: center; text-align: center; }
    .hero__logo { text-align: left; }
    .hero__text { margin-inline: auto; }
    .hero__ctas { justify-content: center; }
    .hero__media { aspect-ratio: 4 / 3; }
    .section-head, .interiors, .contact__grid { grid-template-columns: 1fr; }
    .programme-head { grid-template-columns: 1fr; align-items: start; gap: 24px; margin-bottom: 40px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__lead { grid-row: auto; min-height: 400px; }
    .bento__tile { min-height: 0; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .offer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .partners, .form__row { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento__lead { grid-column: auto; min-height: 360px; }
    .bento__lead-body { padding: 24px; }
    .bento__tile { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-content: start; padding: 24px; }
    .bento__tile .bento__icon { grid-row: span 2; margin-bottom: 0; }
    .bento__banner { flex-wrap: wrap; gap: 16px; padding: 24px; }
    .bento__banner-body { flex-basis: calc(100% - 64px); }
    .offer-badge { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .gallery-main .zoomable { aspect-ratio: 4 / 3; }
}

.install { max-width: 560px; padding-top: 24px; }
.form .help-text, .form small { font-size: 11px; color: var(--muted); }
