/* Résidence Premium Bonoumin — charte : Vert #1F3B33 · Doré #C9A86A · Ivoire #FBF8F1 · Anthracite #1E2623
   Secondaires : Doré foncé #7F6130 · Doré clair #E6D3A8 · Sable #F5F0E4 · Gris texte #3A4440
   Typos : Cormorant Garamond (titres, signature, chiffres) · Montserrat (textes, petits titres en majuscules) */
/* Polices hébergées avec le site (licence SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
:root {
  --green: #1F3B33; --gold: #C9A86A; --ivory: #FBF8F1; --anthracite: #1E2623;
  --gold-dark: #7F6130; --gold-light: #E6D3A8; --sand: #F5F0E4; --text: #3A4440;
  --ph: #ECE6DA; --line: #E4DCCB;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px; --pad: clamp(20px, 5vw, 48px);
  --head: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
sup { font-size: .5em; line-height: 0; vertical-align: .9em; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 15px 30px; font: 600 15px/1.2 var(--sans);
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #2a4d43; }
.btn--gold { background: var(--gold); color: var(--anthracite); }
.btn--gold:hover { background: #d4b67d; }
.btn--ghost { background: transparent; color: #fff; border-color: var(--gold-light); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--gold); }
.btn--wa { background: #1E8551; color: #fff; margin-top: 30px; }
.btn--wa:hover { background: #18703f; }

/* Petits titres et titres */
.kicker { font: 600 13px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.kicker--light { color: var(--gold-light); }
.h2 { font: 600 clamp(32px, 4.2vw, 46px)/1.12 var(--serif); color: var(--green); letter-spacing: -.005em; margin-bottom: 36px; }
#residence .h2 { max-width: 22ch; }
.h2--light { color: var(--ivory); max-width: none; }
.body { font-size: 17px; line-height: 1.85; max-width: 60ch; }
.body + .body { margin-top: 22px; }
.gold { color: var(--gold-dark); font-weight: 600; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(31,59,51,.06); }
.header__in { height: var(--head); display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) { font: 500 15px/1 var(--sans); color: var(--anthracite); text-decoration: none; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .3s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { right: 0; }
.nav__cta { padding: 13px 26px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--green); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Emplacements de médias (en attendant les photos et vidéos) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ph); text-align: center; padding: 20px; }
.ph span { font: 400 14px/1.6 var(--sans); color: #6f6a5f; text-transform: none; }
.ph--hero { align-items: end; padding-bottom: 48px; }
.ph--hero span { border: 2px dashed #b5a888; padding: 14px 28px; font-size: 14px; }
.media-img { width: 100%; height: 100%; object-fit: cover; }

/* Accueil */
.hero__media { height: clamp(320px, 56vh, 620px); background: var(--ph); position: relative; overflow: hidden; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__band { background: var(--green); color: var(--ivory); padding: clamp(40px, 6vw, 64px) 0; }
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__title { font: 600 clamp(44px, 6.4vw, 76px)/1.02 var(--serif); color: var(--ivory); margin: 4px 0 22px; letter-spacing: -.01em; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: #e9e4d8; max-width: 52ch; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--green { background: var(--green); color: var(--ivory); }
.section--ivory { background: var(--ivory); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; }
.stat { background: var(--sand); padding: 30px 30px 26px; }
.stat__n { display: block; font: 600 clamp(36px, 3.6vw, 44px)/1 var(--serif); color: var(--green); font-variant-numeric: oldstyle-nums; }
.stat__l { display: block; margin-top: 10px; font-size: 14px; line-height: 1.4; }

/* Vidéo */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ph); overflow: hidden; }
.player__btn { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: #5e584d; }
.player__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player.has-poster .player__btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(30,38,35,.45)); z-index: 1; }
.play { position: relative; z-index: 2; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--gold-dark); display: grid; place-items: center; background: rgba(251,248,241,.6); transition: transform .3s, background .3s; }
.play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--gold-dark); }
.player__btn:hover .play { transform: scale(1.06); background: var(--ivory); }
.player__cap { position: relative; z-index: 2; font: 500 15px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.player__cap small { font-size: 14px; text-transform: none; letter-spacing: 0; }
.player.has-poster .player__cap { color: var(--ivory); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.capsules { --g: clamp(16px, 4vw, 56px); display: flex; justify-content: center; gap: var(--g); margin-top: 28px; }
.capsule { flex: 0 0 calc((100% - 3 * var(--g)) / 4); aspect-ratio: 9 / 16; background: var(--ph); position: relative; overflow: hidden; }
.capsule button { position: absolute; inset: 0; width: 100%; border: 0; padding: 14px; background: none; cursor: pointer; display: grid; place-items: center; text-align: center; color: #5e584d; font: 400 13px/1.5 var(--sans); }
.capsule img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.capsule button:hover img { transform: scale(1.04); }
.capsule .capsule__t { position: relative; z-index: 2; }
.capsule .capsule__t b { display: block; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.capsule.has-poster .capsule__t { align-self: end; color: #fff; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.capsule.has-poster button::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(30,38,35,.7)); }

/* Appartements */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.card { border: 1px solid #ddd3bf; background: #fff; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { transition: transform .7s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__body { padding: 32px 32px 36px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card__title { font: 600 34px/1 var(--serif); color: var(--green); }
.card__meta { font: 600 15px/1.2 var(--sans); color: var(--gold-dark); white-space: nowrap; }
.card__text { font-size: 15px; line-height: 1.85; }
.lease { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--sand); padding: 22px 32px; margin-top: 44px; font-size: 16px; }
.lease strong { color: var(--anthracite); font-weight: 600; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery li { aspect-ratio: 4 / 3; }
.gallery button { width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; display: block; }
.gallery button img { transition: transform .7s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .ph { border: 2px dashed #b5a888; }

/* Cadre de vie */
.amen { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 38px; }
.amen li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--anthracite); }

/* Localisation */
.split--loc { grid-template-columns: 1fr 1.08fr; align-items: center; }
.split--loc .h2 { max-width: none; }
.dist li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--anthracite); }
.dist b { font-weight: 600; color: var(--green); white-space: nowrap; }
.map { aspect-ratio: 11 / 7; background: var(--ph); }
.map > .ph { border: 2px dashed #b5a888; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* Contact */
.split--contact { grid-template-columns: .9fr 1.1fr; }
.coords { margin-top: 26px; font-size: 17px; line-height: 1.9; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field span { font: 500 15px/1.2 var(--sans); color: var(--anthracite); }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--sans); color: var(--anthracite); background: #fff; border: 1px solid #a99c7b; border-radius: 0; padding: 14px 16px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E2623' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(201,168,106,.3); }
.field.is-error input { border-color: #a33a2a; }
.form__msg { margin-top: 16px; font-size: 15px; min-height: 1.5em; color: var(--green); }
.form__msg.is-error { color: #a33a2a; }

/* Pied de page */
.footer { background: var(--green); color: var(--ivory); padding: 54px 0; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__sig { font: 600 32px/1.1 var(--serif); }
.footer__sub { font-size: 14px; color: #d9d3c4; margin-top: 10px; }
.footer__legal { font-size: 14px; color: var(--gold-light); }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* Lecteur plein écran */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20,28,25,.94); display: grid; place-items: center; padding: 64px 4vw 4vw; }
.lb[hidden] { display: none; }
.lb__stage { width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }
.lb__stage img { max-height: calc(100vh - 110px); width: auto; }
.lb__stage .lb__frame { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); }
.lb__stage iframe, .lb__stage video { width: 100%; height: 100%; border: 0; background: #000; max-height: calc(100vh - 110px); }
.lb__lang { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.lb__lang button { font: 600 14px/1 var(--sans); padding: 11px 18px; border: 1px solid var(--gold-light); background: transparent; color: var(--ivory); cursor: pointer; }
.lb__lang button.is-on { background: var(--gold); border-color: var(--gold); color: var(--anthracite); }
.lb__stage { gap: 0; }
.vbtn { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.2 var(--sans); color: var(--green); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.vbtn:hover { color: var(--gold-dark); }
.vbtn__i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold-dark); display: grid; place-items: center; flex: none; }
.vbtn__i::after { content: ""; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--gold-dark); }
.card__videos { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__body { flex: 1; display: flex; flex-direction: column; }
.card__videos { margin-top: auto; }
.card__text { margin-bottom: 18px; }
.lease { align-items: center; }
.loc__video { margin-top: 22px; }
.loc__video .vbtn { font-size: 15px; }
.capsules[hidden] { display: none; }
.lease > span { margin-left: auto; }
.vbtn--lease { padding: 0; }
.lb__close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; background: none; color: var(--ivory); font: 300 42px/1 var(--sans); cursor: pointer; }

/* Apparition douce au défilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Tablette */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery, .amen { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile */
@media (max-width: 860px) {
  :root { --head: 66px; }
  .brand img { height: 46px; }
  .burger { display: block; }
  .nav { position: fixed; top: var(--head); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    padding: 8px var(--pad) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(31,59,51,.1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__grid, .split, .split--loc, .split--contact { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 200px; }
  .stats { margin-top: 0; }
  .capsules { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; --g: 14px; }
  .capsule { flex-basis: 62%; }
  .capsule { scroll-snap-align: start; }
  .cards { grid-template-columns: 1fr; }
  .lease { padding: 20px 22px; }
}
@media (max-width: 520px) {
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; }
  .gallery { gap: 10px; }
  .amen { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .card__body { padding: 26px 22px 30px; }
  .footer__sig { font-size: 28px; }
}

/* Icône lecture sur les capsules */
.capsule.has-poster .capsule__t::before { content: ""; display: block; width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); background: rgba(31,59,51,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M1 1l14 8-14 8z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 55% 50%; transition: background-color .3s, transform .3s; }
.capsule button:hover .capsule__t::before { background-color: rgba(201,168,106,.85); transform: scale(1.06); }

/* Légendes de la galerie */
.gallery button { position: relative; }
.gal__l { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; text-align: left; font: 500 13px/1.3 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(30,38,35,.65)); opacity: .95; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lb__fig figcaption { color: var(--ivory); font: 500 14px/1.3 var(--sans); }
