:root {
  --noir: #0f0f0f;
  --noir-doux: #1b1b1b;
  --beige-fonce: #ae9d7d;
  --beige-clair: #c9bba3;
  --beige-bg: #f5f0e8;
  --blanc: #ffffff;
  --gris: #66615a;
  --gris-clair: #ebebeb;
  --ligne: rgba(174, 157, 125, 0.38);
  --ease-cinema: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

body {
  overflow-x: hidden;
  color: var(--noir);
  background: var(--blanc);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: Caudex, Georgia, serif; font-weight: 400; overflow-wrap: anywhere; }
p, li, a, span, strong, div { overflow-wrap: anywhere; }
p { color: var(--gris); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.top-bar {
  padding: 28px 16px 24px;
  text-align: center;
  background: var(--beige-bg);
  animation: fade-in 1.2s var(--ease-out) 0.1s both;
}

.top-bar .logo {
  display: inline-block;
  color: var(--noir-doux);
  font-family: Caudex, Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.4em;
  animation: letter-spacing-in 1.6s var(--ease-cinema) 0.4s both;
}

.top-bar .sub {
  margin-top: 4px;
  color: var(--noir-doux);
  font-size: 11px;
  letter-spacing: 0.4em;
  animation: fade-in 1.6s var(--ease-out) 0.9s both;
}

.hero {
  position: relative;
  height: calc(100dvh - 105px);
  min-height: 600px;
  overflow: hidden;
  background: var(--noir);
}

.hero-img-layer { position: absolute; inset: 0; overflow: hidden; }
.hero-img-layer img { animation: ken-burns-zoom-out 22s var(--ease-soft) forwards; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 15, 15, 0.1) 0%, rgba(15, 15, 15, 0.05) 30%, rgba(15, 15, 15, 0.45) 60%, rgba(15, 15, 15, 0.85) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 64px 24px;
  color: var(--blanc);
}

.hero-content-inner { max-width: 1100px; margin: 0 auto; }

.hero-tag-exclu {
  display: inline-block;
  margin-bottom: 32px;
  padding: 9px 22px;
  color: var(--noir);
  background: rgba(174, 157, 125, 0.88);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1.6s var(--ease-out) 0.8s forwards;
}

.hero-titre {
  max-width: 920px;
  margin-bottom: 20px;
  color: var(--blanc);
  font-size: clamp(38px, 6vw, 74px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  opacity: 0;
  animation: fade-up 1.8s var(--ease-cinema) 1.2s forwards;
}

.hero-localisation {
  margin-bottom: 56px;
  color: var(--blanc);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-shadow: rgba(0, 0, 0, 0.5) 0 1px 12px;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1.6s var(--ease-out) 1.7s forwards;
}

.hero-prix-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0;
  animation: fade-up 1.6s var(--ease-out) 2.1s forwards;
}

.hero-prix-row .montant {
  color: var(--beige-clair);
  font-family: Caudex, Georgia, serif;
  font-size: clamp(30px, 4.8vw, 58px);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: rgba(0, 0, 0, 0.5) 0 2px 16px;
}

.hero-prix-row .mention {
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-shadow: rgba(0, 0, 0, 0.7) 0 1px 10px;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  animation: fade-up 1.6s var(--ease-out) 2.3s forwards;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.45s var(--ease-out),
    background-color 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button.filled {
  color: var(--noir);
  border-color: var(--beige-clair);
  background: var(--beige-clair);
}

.button.filled:hover {
  color: var(--blanc);
  border-color: var(--noir);
  background: var(--noir);
}

.hero .button:not(.filled):hover {
  color: var(--noir);
  border-color: var(--beige-clair);
  background: var(--beige-clair);
}

.button.dark {
  color: var(--blanc);
  border-color: var(--noir);
  background: var(--noir);
}

.meta-band {
  padding: 36px 24px;
  background: var(--beige-bg);
  text-align: center;
}

.meta-band-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  color: var(--noir-doux);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.meta-band-row .item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.meta-band-row .num { color: var(--beige-fonce); font-family: Caudex, Georgia, serif; font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.02em; line-height: 1.05; }
.meta-band-row .lab { max-width: 210px; font-size: 10px; letter-spacing: 0.26em; }
.meta-band-row .sep { width: 1px; height: 36px; background: var(--beige-fonce); }

.pad-xxl { padding: 170px 0; }
.pad-lg { padding: 140px 0; }

.description { max-width: 760px; margin: 0 auto; text-align: center; }
.description p { margin-bottom: 18px; color: var(--gris); font-size: 16px; line-height: 1.95; }
.description .tagline-quote { max-width: 720px; margin: 56px auto 0; color: var(--noir-doux); font-family: Caudex, Georgia, serif; font-size: clamp(24px, 2.8vw, 32px); font-style: italic; line-height: 1.45; }

.lines-title { padding: 40px 0 72px; background: var(--blanc); }

.section-eyebrow {
  margin-bottom: 8px;
  font-family: Caudex, Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.section-eyebrow.left { text-align: left; }
.section-eyebrow::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 28px auto 0;
  background: var(--beige-fonce);
  animation: line-grow 1.2s var(--ease-cinema) both;
}
.section-eyebrow.left::after { margin-left: 0; }

.section-intro {
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--noir-doux);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.85;
  text-align: center;
}

.bati-bloc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "photo text" "pano pano";
  align-items: stretch;
}

.bati-bloc.img-right { grid-template-areas: "text photo" "pano pano"; }
.bati-photo { grid-area: photo; }
.bati-pano { grid-area: pano; }
.pano { height: clamp(280px, 42vw, 520px); }

.split-img-wrap { position: relative; overflow: hidden; background: var(--noir); }
.split-img-wrap img { min-height: 500px; transition: transform 1.6s var(--ease-out); }
.split-img-wrap:hover img { transform: scale(1.03); }

.split-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--blanc);
}

.split-text.beige-bg { background: var(--beige-bg); }
.split-text .eyebrow { margin-bottom: 16px; color: var(--beige-fonce); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; }
.split-text h2 { margin-bottom: 24px; font-size: clamp(30px, 3.5vw, 46px); letter-spacing: 0.04em; line-height: 1.2; }
.split-text p { margin-bottom: 16px; color: var(--gris); font-size: 15px; line-height: 1.95; }
.split-text ul { margin-top: 16px; list-style: none; }
.split-text li { position: relative; margin-bottom: 10px; padding-left: 22px; font-family: Caudex, Georgia, serif; font-size: 15px; line-height: 1.9; letter-spacing: 0.06em; }
.split-text li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border: 1px solid var(--beige-fonce); transform: rotate(45deg); }

.spacer-md { height: 32px; background: var(--blanc); }

.pieces-section { padding: 140px 0; background: var(--beige-bg); }
.pieces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; background: var(--ligne); border: 1px solid var(--ligne); }
.piece-group { padding: 34px 30px; background: var(--blanc); }
.piece-group h3 { margin-bottom: 22px; color: var(--beige-fonce); font-size: 25px; }
.piece-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dotted var(--beige-clair); color: var(--gris); font-size: 14px; }
.piece-row:last-child { border-bottom: 0; }
.piece-row strong { color: var(--noir-doux); font-weight: 500; text-align: right; }

.prix-section { padding: 120px 0; color: var(--blanc); background: var(--noir); text-align: center; }
.prix-eyebrow { margin-bottom: 20px; color: var(--beige-clair); font-size: 11px; letter-spacing: 0.45em; text-transform: uppercase; }
.prix-montant { margin-bottom: 28px; color: var(--blanc); font-family: Caudex, Georgia, serif; font-size: clamp(46px, 7vw, 82px); letter-spacing: 0.05em; line-height: 1; }
.prix-section p { max-width: 760px; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.72); font-size: 13px; line-height: 1.9; }

.tech-section { padding: 140px 0; background: var(--blanc); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }
.tech-card { padding: 34px; border: 1px solid var(--ligne); background: var(--beige-bg); }
.tech-card h3 { margin-bottom: 24px; color: var(--beige-fonce); font-size: 28px; }
.tech-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px dotted var(--beige-clair); color: var(--gris); font-size: 14px; }
.tech-row:last-child { border-bottom: 0; }
.tech-row strong { color: var(--noir-doux); font-weight: 500; text-align: right; }

.galerie-section { background: var(--beige-bg); }
.photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin-top: 60px; }
.photo-grid img { min-height: 250px; }
.photo-grid img:nth-child(1), .photo-grid img:nth-child(2) { grid-column: span 6; min-height: 520px; }
.photo-grid img:nth-child(n + 3) { grid-column: span 4; }

.localisation-section { padding: 130px 0; background: var(--blanc); }
.localisation-card { max-width: 620px; margin: 56px auto 0; padding: 34px; border: 1px solid var(--beige-fonce); text-align: center; }
.localisation-card h3 { margin-bottom: 10px; color: var(--beige-fonce); font-size: 28px; }

.dpe-section { padding: 140px 0; background: var(--beige-bg); }
.dpe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.dpe-card { min-height: 240px; display: grid; align-content: center; padding: 34px; color: var(--blanc); background: var(--noir); text-align: center; }
.dpe-card span { color: var(--beige-clair); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.dpe-card strong { display: block; margin: 16px 0; font-family: Caudex, Georgia, serif; font-size: 78px; font-weight: 400; line-height: 1; }
.dpe-card p { color: rgba(255, 255, 255, 0.72); }

.conseillere-section { padding: 140px 0; background: var(--blanc); }
.conseillere-grid { display: grid; grid-template-columns: 0.62fr 1fr; gap: 64px; align-items: center; }
.conseillere-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--noir); }
.conseillere-photo img { object-position: center top; }
.conseillere-text h2 { margin: 40px 0 8px; color: var(--noir-doux); font-size: clamp(34px, 4vw, 54px); }
.conseillere-text .role { margin-bottom: 24px; color: var(--beige-fonce); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; }
.conseillere-text p { max-width: 650px; font-size: 15px; line-height: 1.9; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.legal { padding: 28px 24px; color: #665f58; background: var(--beige-bg); font-size: 11px; line-height: 1.7; }
.legal p { max-width: 1100px; margin: 0 auto; }
.footer { padding: 34px 18px; color: #8c867c; background: var(--noir); font-size: 9px; letter-spacing: 0.18em; line-height: 1.6; text-align: center; text-transform: uppercase; }

@keyframes ken-burns-zoom-out {
  from { transform: scale(1.18) translate(2%, -1.5%); }
  to { transform: scale(1.02) translate(0, 0); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes letter-spacing-in {
  from {
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    letter-spacing: 0.4em;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (max-width: 920px) {
  .hero { height: auto; min-height: 760px; }
  .hero-content { padding: 52px 24px; }
  .hero-localisation { margin-bottom: 38px; }
  .meta-band-row { gap: 22px; }
  .meta-band-row .sep { display: none; }
  .pad-xxl { padding: 96px 0; }
  .bati-bloc, .bati-bloc.img-right { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "pano"; }
  .split-text { padding: 58px 28px; }
  .split-img-wrap img { min-height: 330px; }
  .pieces-grid, .tech-grid, .dpe-grid, .conseillere-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img, .photo-grid img:nth-child(1), .photo-grid img:nth-child(2), .photo-grid img:nth-child(n + 3) { grid-column: auto; min-height: 300px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .top-bar .logo { font-size: 18px; letter-spacing: 0.28em; }
  .top-bar .sub { font-size: 9px; letter-spacing: 0.28em; }
  .hero-titre { font-size: clamp(34px, 14vw, 56px); }
  .hero-prix-row .montant { font-size: 34px; }
  .button { width: 100%; min-height: 54px; }
  .meta-band-row { flex-direction: column; }
  .section-eyebrow { letter-spacing: 0.16em; }
  .prix-montant { font-size: 44px; }
}
