/* =========================================================
   Résidence La Romanée — feuille de style
   ========================================================= */

@font-face { font-family: "League Gothic"; src: url("../fonts/league-gothic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bordeaux: #661414;
  --bordeaux-dark: #3F0B0B;
  --ink: #222222;
  --muted: #4A4542;
  --muted-2: #6B6661;
  --paper: #F6F5F1;
  --sand: #EAE9E0;
  --line: #E2E0DA;
  --charcoal: #2B2422;
  --blush: #E7B9A6;
  --sage-bg: #EEF1EA;
  --sage: #4E6B4A;
  --sage-dark: #3D5A3A;
  --sage-soft: #E1E8DA;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(64px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Figtree", system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--bordeaux); }
a:hover { color: var(--bordeaux-dark); }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }

.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase; margin: 0; }
.h2 { margin: 0; font-family: "League Gothic", sans-serif; font-weight: 400; font-size: clamp(48px, 5vw, 76px); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bordeaux); }
.lead { margin: 0; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }

.btn { display: inline-block; text-decoration: none; padding: 15px 26px; border-radius: 2px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--bordeaux); color: #fff; }
.btn--primary:hover { background: var(--bordeaux-dark); color: #fff; }
.btn--light { background: #fff; color: var(--bordeaux); }
.btn--light:hover { background: var(--sand); color: var(--bordeaux-dark); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,0.7); font-weight: 600; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--outline { color: var(--bordeaux); border-color: var(--bordeaux); font-weight: 600; font-size: 15px; padding: 12px 19px; background: transparent; }
.btn--outline:hover { background: var(--bordeaux); color: #fff; }
.btn--small { font-size: 15px; padding: 13px 20px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: min(100svh, 900px); min-height: 780px; display: flex; flex-direction: column; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,20,0.55) 0%, rgba(30,22,20,0.1) 40%, rgba(30,22,20,0.85) 100%); }
.topbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px var(--gutter); }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: "League Gothic", sans-serif; font-size: 32px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { color: #fff; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a.nav__cta { background: var(--bordeaux); padding: 12px 22px; border-radius: 2px; font-weight: 600; text-decoration: none; }
.nav a.nav__cta:hover { background: var(--bordeaux-dark); }
.hero__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding-top: 40px; padding-bottom: 64px; width: 100%; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 14px; font-size: 14px; font-weight: 600; }
.tag--solid { background: var(--bordeaux); }
.tag--glass { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4); font-weight: 500; padding: 6px 14px; }
.hero__kicker { font-weight: 700; font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "League Gothic", sans-serif; font-weight: 400; font-size: clamp(76px, 12vw, 176px); line-height: 0.88; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__text { margin: 0; max-width: 600px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #EEEAE6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Chiffres ---------------- */
.figures { background: var(--sand); }
.figures .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; }
.figure { flex: 1 1 180px; }
.figure__value { font-family: "League Gothic", sans-serif; font-size: 54px; line-height: 1; color: var(--bordeaux); }
.figure__label { color: var(--muted); font-size: 15px; }

/* ---------------- Projet ---------------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.split > .stack { flex: 1 1 420px; min-width: 0; gap: 20px; }
.ticks { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: "—"; color: var(--bordeaux); }
.gallery { flex: 1.3 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery img:first-child { grid-column: span 2; height: 400px; }

/* ---------------- Énergie ---------------- */
.energy { background: var(--sage-bg); }
.energy .wrap { display: flex; flex-direction: column; gap: 44px; }
.energy__top { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.energy__img { flex: 1.15 1 520px; min-width: 0; }
.energy__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.energy__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.energy .eyebrow { color: var(--sage); }
.energy .h2 { color: var(--sage-dark); font-size: clamp(48px, 5vw, 72px); }
.labels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.label { background: #fff; border-radius: 6px; padding: 14px 20px; display: flex; flex-direction: column; gap: 2px; }
.label small { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.label strong { font-family: "League Gothic", sans-serif; font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0.04em; color: var(--sage-dark); }
.cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.card { background: #fff; border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------------- Prix et plans ---------------- */
.lots { background: var(--sand); }
.lots .wrap { display: flex; flex-direction: column; gap: 32px; }
.lots__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.lots__head .stack { max-width: 640px; gap: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 500; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border: 1px solid #fff; outline: 1px solid #C9C4BA; }
.swatch--dispo { background: rgba(47,125,85,0.6); }
.swatch--reserve { background: rgba(184,137,58,0.6); }
.swatch--vendu { background: rgba(43,36,34,0.6); }
.swatch--sel { background: transparent; border: 3px solid var(--bordeaux); outline: none; }

.lots__grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.facade { flex: 1 1 100%; min-width: 0; background: var(--charcoal); overflow-x: auto; }
.facade svg { width: 100%; min-width: 720px; height: auto; display: block; }
.facade .lot { cursor: pointer; stroke: #fff; stroke-width: 2; transition: fill-opacity .15s; }
.facade .lot:hover { fill-opacity: 0.6; }
.facade .lot:focus { outline: none; }
.facade .lot:focus-visible { outline: none; stroke: var(--bordeaux); stroke-width: 6; }
.facade .lot--dispo { fill: #2F7D55; fill-opacity: 0.4; }
.facade .lot--reserve { fill: #B8893A; fill-opacity: 0.42; }
.facade .lot--vendu { fill: #2B2422; fill-opacity: 0.45; }
.facade .lot.is-selected { stroke: var(--bordeaux); stroke-width: 9; }
.facade text { pointer-events: none; fill: #fff; stroke: rgba(0,0,0,0.45); stroke-width: 4; paint-order: stroke; font-family: "League Gothic", sans-serif; }
.facade .facade__note { font-family: "Figtree", sans-serif; font-weight: 600; }

.sheet { flex: 1 1 340px; min-width: 0; background: #fff; display: flex; flex-direction: column; }
.sheet__img { width: 100%; height: 190px; object-fit: cover; }
.sheet__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet__where { font-size: 14px; color: var(--muted-2); }
.sheet h3 { margin: 2px 0 0; font-family: "League Gothic", sans-serif; font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bordeaux); }
.badge { flex-shrink: 0; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.badge--dispo { background: #2F6B4F; color: #fff; }
.badge--reserve { background: #F1E4CB; color: #5C4318; }
.badge--vendu { background: #E2E0DA; color: #3A3633; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 15px; }
.specs dt { color: var(--muted-2); font-size: 13px; }
.specs dd { margin: 0; font-weight: 700; }
.sheet__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.sheet__plan { display: block; border: 1px solid var(--line); background: #fff; }
.sheet__plan img { width: 100%; height: 220px; object-fit: contain; }
.price { font-family: "League Gothic", sans-serif; font-size: 40px; line-height: 1; letter-spacing: 0.02em; }
.sheet__note { margin: 0; color: var(--muted); font-size: 15px; }
[hidden] { display: none !important; }

.table { flex: 2 1 560px; min-width: 0; background: #fff; overflow-x: auto; align-self: flex-start; }
.facade-hint { display: none; flex: 1 1 100%; margin: -12px 0 0; font-size: 14px; color: var(--muted-2); }
@media (max-width: 760px) { .facade-hint { display: block; } }
.table table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table td { padding: 0; border-bottom: 1px solid #EEECE7; }
.table td button, .table td span.cell { display: block; width: 100%; text-align: left; padding: 14px 12px; background: none; border: 0; color: var(--ink); cursor: pointer; min-height: 48px; }
.table tr:hover td { background: #FAF8F5; }
.table tr.is-selected td { background: #F3E6E3; }
.table tr.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--bordeaux); }
.st--dispo { color: #1F6B45; font-weight: 600; }
.st--reserve { color: #7A5718; font-weight: 600; }
.st--vendu { color: #5A5551; font-weight: 600; }

/* ---------------- Attique ---------------- */
.attic { background: var(--charcoal); color: #fff; overflow: hidden; }
.attic .wrap { padding: 0; display: flex; flex-wrap: wrap; }
.attic img { flex: 1.2 1 520px; min-width: 0; width: 100%; height: 560px; object-fit: cover; }
.attic__text { flex: 1 1 400px; min-width: 0; padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.attic .eyebrow { color: var(--blush); }
.attic .h2 { color: #fff; }
.attic p { margin: 0; color: #D8D2CC; }
.attic__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 8px; }
.attic .price { font-size: 44px; }

/* ---------------- Chantier ---------------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.step { border-top: 4px solid #C9C4BA; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.step--now { border-top-color: var(--bordeaux); }
.step__date { font-size: 14px; color: var(--muted); font-weight: 700; }
.step--now .step__date { color: var(--bordeaux); }
.step__title { font-family: "League Gothic", sans-serif; font-size: 32px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.04em; }
.step__text { color: var(--muted-2); font-size: 15px; }

/* ---------------- Situation ---------------- */
.place { background: var(--sand); }
.place .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: stretch; }
.place__text { flex: 1 1 380px; min-width: 0; }
.address { background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--bordeaux); font-style: normal; }
.address small { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.address span { font-family: "League Gothic", sans-serif; font-size: 34px; line-height: 1.1; letter-spacing: 0.03em; }
.map { flex: 1.5 1 520px; min-width: 0; min-height: 460px; background: #DCD9CF; }

/* ---------------- Contact ---------------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.contact > .stack { flex: 1 1 360px; min-width: 0; }
.person { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 20px; background: var(--sand); }
.person img { width: 56px; height: 56px; flex-shrink: 0; }
.person div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.person strong { font-size: 17px; }
.person span { color: var(--muted-2); }
.form-wrap { flex: 1.2 1 440px; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 50px; padding: 0 14px; border: 1px solid #BDB8AF; border-radius: 2px; background: #fff; color: var(--ink); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bordeaux); outline-offset: 0; border-color: var(--bordeaux); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted-2); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__actions button[disabled] { opacity: .6; cursor: progress; }
.form__error { grid-column: 1 / -1; margin: 0; padding: 12px 16px; background: #FBEDEA; color: #7A1D14; font-size: 15px; }
.form__done { background: #fff; border-top: 4px solid #2F6B4F; padding: 40px 32px; display: flex; flex-direction: column; gap: 10px; }
.form__done h3 { margin: 0; font-family: "League Gothic", sans-serif; font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; color: #2F6B4F; }
.form__done p { margin: 0; color: var(--muted); }

/* ---------------- Footer ---------------- */
.footer { background: var(--charcoal); color: #D8D2CC; font-size: 14px; }
.footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.footer .brand img { width: 40px; height: 40px; }
.footer .brand span { font-size: 26px; }
.footer a { color: #D8D2CC; }
.footer a:hover { color: #fff; }

/* ---------------- Petits écrans ---------------- */
@media (max-width: 640px) {
  .hero { min-height: 680px; }
  .nav { gap: 6px 18px; font-size: 14px; }
  .gallery img:first-child { height: 260px; }
  .gallery img { height: 160px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .attic img { height: 340px; }
  .map { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
