/* ==========================================================
   LANDING PAGE
   ========================================================== */
body.landing { overflow-x: hidden; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Navigation ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
  color: #fff;
}
#nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#nav .wordmark { display: block; height: 52px; }
#nav .wordmark img { height: 100%; width: auto; }
#nav .wordmark .dark { display: none; }
#nav.scrolled .wordmark .light { display: none; }
#nav.scrolled .wordmark .dark { display: block; }
#nav.menu-open .wordmark .light { display: none; }
#nav.menu-open .wordmark .dark { display: block; }
#nav .links { display: flex; gap: 28px; font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
#nav .links a { position: relative; opacity: .85; transition: opacity .2s; }
#nav .links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
#nav .links a:hover { opacity: 1; }
#nav .links a:hover::after { transform: scaleX(1); }
#nav.scrolled { background: rgba(245,242,236,.86); backdrop-filter: blur(16px) saturate(140%); color: var(--ink); padding: 12px 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
#nav .burger { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.14); }
#nav .burger svg { width: 20px; height: 20px; }

/* ---------- Hero vidéo ---------- */
#hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; }
#hero .media { position: absolute; inset: 0; background: #0f1311; }
#hero video, #hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero .poster { background-size: cover; background-position: center; transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
#hero .media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,19,17,.45) 0%, rgba(15,19,17,.05) 35%, rgba(15,19,17,.15) 60%, rgba(15,19,17,.85) 100%);
}
#hero .content { position: relative; padding: 160px 0 72px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
#hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: .9; }
#hero .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--wood); }
#hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 7.5vw, 6.4rem); line-height: .98; margin: 18px 0 12px; font-weight: 400; letter-spacing: -.02em; }
#hero h1 em { font-style: italic; font-weight: 300; color: var(--gold-2); }
#hero .city { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; opacity: .9; }
#hero .city span { font-family: var(--font-ui); font-size: .7em; font-weight: 700; letter-spacing: .16em; margin-left: 10px; opacity: .8; }
#hero .aside { display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
#hero .aside p { font-size: 1.02rem; line-height: 1.6; max-width: 40ch; opacity: .92; }
#hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
#hero .scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .7; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#hero .scroll i { width: 1px; height: 36px; background: #fff; display: block; transform-origin: top; animation: scroll-line 1.8s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0);} 50% { transform: scaleY(1);} 100% { transform: scaleY(0); transform-origin: bottom;} }
#hero .sound { position: absolute; right: 24px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }
#hero .sound svg { width: 18px; height: 18px; }
#hero .sound[hidden] { display: none; }

/* Animation d'apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: end; margin-bottom: 56px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; font-weight: 400; letter-spacing: -.015em; margin-top: 14px; }
.section-head p { color: var(--ink-2); max-width: 48ch; font-size: 1.05rem; }

/* La résidence */
#residence { background: var(--paper); }
#residence .cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
#residence .text { display: flex; flex-direction: column; gap: 20px; font-size: 1.08rem; line-height: 1.7; color: var(--ink-2); }
#residence .text p:first-child { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: var(--ink); font-weight: 400; }
#residence .figures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#residence .figure { padding: 26px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }
#residence .figure b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; line-height: 1; color: var(--moss); }
#residence .figure span { display: block; margin-top: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
#residence .photo { margin-top: 64px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; box-shadow: var(--shadow-1); }
#residence .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
#residence .photo:hover img { transform: scale(1.06); }

/* Maquette teaser */
#maquette-teaser { padding: 0; }
#maquette-teaser .card {
  position: relative; border-radius: 32px; overflow: hidden; min-height: 560px; display: grid; align-items: center; color: #fff;
  background: #0f1311; box-shadow: var(--shadow-2);
}
#maquette-teaser .frames { position: absolute; inset: 0; }
#maquette-teaser .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
#maquette-teaser .frames img.on { opacity: 1; }
#maquette-teaser .card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,19,17,.9) 0%, rgba(15,19,17,.55) 45%, rgba(15,19,17,.05) 100%); }
#maquette-teaser .inner { position: relative; z-index: 1; padding: 64px; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
#maquette-teaser h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; font-weight: 400; }
#maquette-teaser p { font-size: 1.05rem; opacity: .9; line-height: 1.6; }
#maquette-teaser ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#maquette-teaser li { padding: 7px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
#maquette-teaser .drag { position: absolute; right: 32px; bottom: 28px; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
#maquette-teaser .drag svg { width: 20px; height: 20px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateX(-4px);} 50% { transform: translateX(4px);} }

/* Galerie */
#galerie .grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 240px; gap: 14px; }
#galerie figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: var(--stone); }
#galerie figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
#galerie figure:hover img { transform: scale(1.05); }
#galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-size: .82rem; font-weight: 600; background: linear-gradient(0deg, rgba(15,19,17,.75), transparent); opacity: 0; transition: opacity .3s; }
#galerie figure:hover figcaption { opacity: 1; }
#galerie figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
#galerie figure:nth-child(2) { grid-column: span 5; }
#galerie figure:nth-child(3) { grid-column: span 5; }
#galerie figure:nth-child(4) { grid-column: span 4; }
#galerie figure:nth-child(5) { grid-column: span 8; }

/* Plans */
#plans { background: var(--paper-2); }
#plans .cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
#plans figure { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow-1); cursor: zoom-in; }
#plans figure img { width: 100%; height: auto; }
#plans figcaption { padding: 14px 18px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--stone); }
#plans .coupes { display: flex; flex-direction: column; gap: 14px; }
#plans .coupes figure { aspect-ratio: 3/2; }
#plans .coupes figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#plans .dl { margin-top: 6px; }

/* Situation */
#situation .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
#situation .list { display: grid; gap: 12px; }
#situation .item { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-1); }
#situation .item svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold); }
#situation .item b { display: block; font-weight: 700; }
#situation .item span { font-size: .88rem; color: var(--ink-2); }
#situation .map { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: var(--shadow-1); background: var(--stone); }
#situation .map img { width: 100%; height: 100%; object-fit: cover; }
#situation .map a { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }

/* Contact */
#contact { background: var(--moss-2); color: #fff; }
#contact .eyebrow { color: var(--wood); }
#contact .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
#contact h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.05; margin-top: 14px; }
#contact .lead { margin-top: 18px; opacity: .85; max-width: 42ch; line-height: 1.65; }
#contact .info { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
#contact .info a { display: inline-flex; align-items: center; gap: 12px; font-size: 1.05rem; }
#contact .info svg { width: 18px; height: 18px; color: var(--wood); }
#contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#contact label { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
#contact label.full { grid-column: 1 / -1; }
#contact input, #contact textarea, #contact select {
  font: inherit; color: #fff; padding: 13px 14px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .2s, background .2s;
}
#contact input:focus, #contact textarea:focus, #contact select:focus { outline: none; border-color: var(--wood); background: rgba(255,255,255,.12); }
#contact textarea { min-height: 110px; resize: vertical; }
#contact select option { color: var(--ink); }
#contact .submit { grid-column: 1 / -1; justify-self: start; }
#contact .rgpd { grid-column: 1 / -1; font-size: .72rem; opacity: .6; }

footer { padding: 28px 0; background: #0f1311; color: rgba(255,255,255,.6); font-size: .78rem; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10,12,11,.92); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#lightbox img { max-width: min(94vw, calc(100vw - 160px)); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-2); animation: lb-in .3s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
#lightbox figcaption { color: rgba(255,255,255,.75); font-size: .85rem; text-align: center; min-height: 1.2em; }
#lightbox figcaption:empty { display: none; }
#lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
#lightbox .nav:hover { background: rgba(255,255,255,.24); }
#lightbox .nav:active { transform: translateY(-50%) scale(.94); }
#lightbox .nav svg { width: 22px; height: 22px; }
#lightbox .nav.prev { left: 24px; }
#lightbox .nav.next { right: 24px; }
#lightbox .nav[hidden] { display: none; }
#lightbox .count { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
@media (max-width: 700px) {
  #lightbox img { max-width: 100vw; max-height: 78vh; border-radius: 0; }
  #lightbox .nav { width: 44px; height: 44px; top: auto; bottom: 24px; transform: none; }
  #lightbox .nav:active { transform: scale(.94); }
  #lightbox .nav.prev { left: calc(50% - 60px); }
  #lightbox .nav.next { right: calc(50% - 60px); }
}
#lightbox .close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
#lightbox .close svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  #nav .links { display: none; }
  #nav .burger { display: grid; }
  #nav.menu-open .links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); padding: 10px 24px 20px; box-shadow: var(--shadow-1); }
  #nav.menu-open .links a { padding: 12px 0; border-bottom: 1px solid var(--stone); }
  #hero .content { grid-template-columns: 1fr; padding: 130px 0 90px; gap: 28px; }
  #residence .cols, #plans .cols, #situation .cols, #contact .cols { grid-template-columns: 1fr; gap: 36px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  section { padding: 72px 0; }
  #maquette-teaser .inner { padding: 36px 24px; }
  #maquette-teaser .card { min-height: 480px; }
  #galerie .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  #galerie figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  #galerie figure:nth-child(1) { grid-column: span 2; }
  #contact form { grid-template-columns: 1fr; }
}
