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

:root {
  --bg: #0c0c0c;
  --nav-bg: #131313;
  --nav-border: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.54);
  --text-sub: #d6d6d6;
  --grad-a: #0d5272;
  --grad-b: #087666;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", sans-serif;
  height: 100%;
  overflow: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  animation: fadeDown 0.8s ease both;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 28px;
  padding: 5px 5px 5px 20px;
}

.nav-logo {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-grad {
  background: linear-gradient(to bottom, var(--grad-a), var(--grad-b));
  border: 1px solid rgba(36, 36, 36, 0.12);
  border-radius: 30px;
  padding: 0 20px;
  height: 46px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  display: inline-flex;
  align-items: center;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 700px;
}

/* floating photos */
.photo {
  position: absolute;
  overflow: hidden;
  opacity: 0;
  animation-play-state: paused;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
     * Photo grid — mirroring Figma (1440×1024 canvas):
     * Left zone  : X < 27vw  — photos never enter the title area
     * Right zone : X > 70vw  — same
     * Vertical   : all start below 10vh (nav clearance)
     */

/* ── left column ── */
.p-dannie {
  width: 127px;
  height: 158px;
  top: 10vh;
  left: 20%;
  border-radius: 8px;
  animation: ph-dannie-full 5s 0s 1 both;
}
.p-dining {
  width: 196px;
  height: 196px;
  top: 25vh;
  left: 2%;
  border-radius: 17px;
  animation: ph-dining-full 6.5s 0.15s 1 both;
}
.p-small-l {
  width: 90px;
  height: 90px;
  top: 41vh;
  left: 17%;
  border-radius: 9px;
  animation: ph-small-l-full 4.8s 0.1s 1 both;
}
.p-garden {
  width: 280px;
  height: 215px;
  top: 60vh;
  left: 12%;
  border-radius: 16px;
  animation: ph-garden-full 8s 0.2s 1 both;
}

/* ── right column ── */
.p-hallway {
  width: 187px;
  height: 326px;
  top: 19vh;
  right: 11%;
  border-radius: 15px;
  animation: ph-hallway-full 5.5s 0.08s 1 both;
}
.p-small-r {
  width: 76px;
  height: 76px;
  top: 42vh;
  right: 2%;
  border-radius: 8px;
  animation: ph-small-r-full 7s 0.18s 1 both;
}
.p-living {
  width: 120px;
  height: 120px;
  top: 56vh;
  right: 7%;
  border-radius: 9px;
  animation: ph-living-full 6s 0.12s 1 both;
}
.p-bedroom {
  width: 150px;
  height: 186px;
  top: 63vh;
  right: 19%;
  border-radius: 9px;
  animation: ph-bedroom-full 7.5s 0.25s 1 both;
}

/* edge fades */
.fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
.fade-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
.fade-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 110px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

/* ── hero text block — vertically centred in the area between nav and phone ── */
.hero-body {
  position: absolute;
  top: 86px; /* start exactly below the fixed nav */
  bottom: 295px; /* leave room for the phone (415px - 120px hidden = 295px visible) */
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* true vertical centre */
  text-align: center;
  z-index: 10;
}

.hero-title {
  font-size: clamp(52px, 5.8vw, 82px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1;
  animation: fadeUp 1s 0.3s both;
}

.hero-sub {
  font-family: "Playfair Display", serif;
  font-weight: 300;
  font-size: 20px;
  margin-top: 30px;
  animation: fadeUp 1s 0.5s both;
}
.hero-sub .muted {
  color: var(--muted);
}
.hero-sub .accent {
  color: var(--white);
  font-style: italic;
}

/* ── phone wrap — full-width strip anchored to the bottom of #hero ── */
.hero-phone-wrap {
  position: absolute;
  bottom: -120px;
  left: 0;
  right: 0;
  z-index: 10;
  animation: fadeUp 1s 0.7s both;
  will-change: transform, opacity;
}

/* ── phone outline — centred horizontally inside the wrap ── */
.phone-outline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 265px;
  height: 415px;
  border: 1.2px solid #fff5f5;
  border-radius: 36px;
  box-shadow: 0 0 22px 5px rgba(255, 255, 255, 0.21);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 38px;
  gap: 14px;
}

.scroll-label {
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
  color: var(--white);
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  animation: bounce 2s infinite;
}

/* ─── PRODUCT SECTION — layout géré par .section-1 ─── */

.phone-mockup {
  position: relative;
  width: 265px;
  height: 508px;
}
.phone-bezel {
  position: absolute;
  inset: 0;
  border: 1.2px solid #fff5f5;
  border-radius: 40px;
  box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.21);
}
.phone-container {
  position: relative;
  display: inline-block;
}
.phone-camera {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}
.phone-pill {
  width: 62px;
  height: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}
.phone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  position: absolute;
  right: 4px;
}
.phone-screen {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 34px;
  overflow: hidden;
}
.phone-screen img,
.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-home {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 61px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.feat-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 32px;
}
.feat-body {
  color: var(--text-sub);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ─── FADE-IN — animation scroll générique ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PRICING ─── */
#pricing {
  text-align: center;
  position: relative;
  backdrop-filter: blur(5px);
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 664px;
  margin: 0 auto;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 40px;
}

.text-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-stack p {
  color: var(--text-sub);
  font-size: 20px;
  line-height: 1.6;
}

/* ─── CTA ─── */
#cta {
  position: relative;
  overflow: hidden;
}

/* ─── MODAL ─── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 24px;
  width: min(810px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s ease;
  position: relative;
}
.overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  gap: 14px;
  position: relative;
}
#requestAccessModal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
}
#requestAccessModalSuccess .modal-header {
  justify-content: flex-end;
}
.modal-h {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  flex: 1;
  margin: 0;
}
.modal-badge {
  border: 1px solid #0d5272;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 14px;
  color: #d9d9d9;
  white-space: nowrap;
}
.modal-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px;
  position: static;
}
.modal-close:hover {
  opacity: 1;
}
.modal-close svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.modal-body {
  padding: 0 32px 40px;
}

.modal-desc {
  padding: 16px 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}
.form-row label {
  font-size: 14px;
  margin-bottom: 10px;
}
.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--white);
  font-family: "Inter", sans-serif;
  width: 100%;
}
.form-input::placeholder {
  color: var(--muted);
}
.form-input:focus {
  outline: none;
  border-color: rgba(8, 118, 102, 0.5);
}

.modal-submit {
  margin-top: 24px;
  width: 100%;
  background: linear-gradient(to bottom, #04473d, #087666);
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 30px;
  height: 46px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.modal-submit:hover {
  filter: brightness(1.1);
}

/* success */
.success-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px 32px 80px 32px;
  text-align: center;
}
#requestAccessModal.hide,
#requestAccessModalSuccess.hide {
  display: none;
}
.success-icon {
  width: 60px;
  height: 60px;
}
.success-h {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  max-width: 560px;
}
.success-p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
  color: var(--white);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}
@keyframes floatA {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(-12px);
  }
  75% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes floatB {
  0% {
    transform: translateY(-6px);
  }
  25% {
    transform: translateY(2px);
  }
  50% {
    transform: translateY(8px);
  }
  75% {
    transform: translateY(1px);
  }
  100% {
    transform: translateY(-6px);
  }
}
/* continuous float used after the one-shot entry animation ends */
@keyframes ph-float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes ph-float-b {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes ph-float-c {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── hero photo intro — phase 1: appear at center, phase 2: slide to final position ── */
@keyframes ph-dannie-full {
  0% {
    opacity: 0;
    transform: translate(141px, 123px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 0.69;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 0.69;
    transform: translate(0, -10px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0.69;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-dining-full {
  0% {
    opacity: 0;
    transform: translate(342px, -169px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 0.85;
    transform: translate(0, -8px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-small-l-full {
  0% {
    opacity: 0;
    transform: translate(365px, 37px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 0.85;
    transform: translate(0, -12px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-garden-full {
  0% {
    opacity: 0;
    transform: translate(197px, 12px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 1;
    transform: translate(0, -9px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-hallway-full {
  0% {
    opacity: 0;
    transform: translate(-324px, -29px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 0.69;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 0.69;
    transform: translate(0, -14px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0.69;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-small-r-full {
  0% {
    opacity: 0;
    transform: translate(-341px, -44px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 0.75;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 0.75;
    transform: translate(0, -11px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0.75;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-living-full {
  0% {
    opacity: 0;
    transform: translate(-308px, -109px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 1;
    transform: translate(0, -8px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ph-bedroom-full {
  0% {
    opacity: 0;
    transform: translate(-245px, -147px) scale(0.92);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  28% {
    opacity: 0.69;
    transform: translate(0, 0) scale(1);
    animation-timing-function: ease-in-out;
  }
  64% {
    opacity: 0.69;
    transform: translate(0, -10px) scale(1);
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0.69;
    transform: translate(0, 0) scale(1);
  }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.from-left {
  transform: translateX(-40px);
}
.reveal.from-right {
  transform: translateX(40px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}
.reveal.delay-1 {
  transition-delay: 0.15s;
}
.reveal.delay-2 {
  transition-delay: 0.3s;
}
.reveal.delay-3 {
  transition-delay: 0.45s;
}

/* ─── SCROLL CONTAINER & PANELS ─── */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.panel {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ─── SECTION 1 — deux colonnes côte à côte ─── */
.section-1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20vw;
  width: 100%;
  height: 100vh;
  padding: 0;
  background: #0a0a0a;
  overflow: visible;
  clip-path: none;
}

/* desktop — wrapper invisible, enfants directs dans le flex parent */
.mobile-overlay-wrap {
  display: contents;
}

.section1-text {
  max-width: 380px;
  opacity: 0;
  transform: translateX(-30px);
  transition: none;
  will-change: transform, opacity;
}

.section1-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── PHONE REVEAL — JS-driven opacity/transform ─── */
.phone-reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: none;
  will-change: transform, opacity;
}

/* ─── SECTION 2 — phone gauche, texte droite ─── */
.section-2 {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 20vw;
  width: 100%;
  height: 100vh;
  padding: 0;
  background: #0a0a0a;
  overflow: visible;
  clip-path: none;
}

.section2-text {
  max-width: 380px;
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.section2-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.section2-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-reveal-2 {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.phone-reveal-2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* pricing panel */
#pricing.panel {
  padding: 60px 20px;
}

/* Section 4 — CTA + footer container */
.section-4 {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 0 40px;
  background: linear-gradient(
    to bottom,
    rgba(13, 82, 114, 0.3),
    rgba(8, 118, 102, 0.3)
  );
  scroll-snap-align: start;
}

.section-4 .cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 664px;
  gap: 40px;
}

/* ─── FOOTER ─── */
.footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 80px;
  box-sizing: border-box;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  color: white;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.footer-right {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  padding-top: 4px;
}

.footer-right a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
       RESPONSIVE — breakpoints tested at:
       1920, 1440, 1470, 1280, 1024, 768, 390, 375
    ═══════════════════════════════════════════════════════════════ */

/* ── 1920px — large desktop: scale up nicely ── */
@media (min-width: 1600px) {
  .p-dannie {
    left: 22%;
    width: 140px;
    height: 174px;
  }
  .p-hallway {
    right: 13%;
    width: 210px;
    height: 360px;
  }
  .p-dining {
    width: 220px;
    height: 220px;
  }
  .p-garden {
    width: 310px;
    height: 240px;
  }
  .p-living {
    width: 140px;
    height: 140px;
  }
  .p-bedroom {
    width: 170px;
    height: 210px;
  }
  .fade-left {
    width: 260px;
  }
  .fade-right {
    width: 260px;
  }
}

/* ── 1280px — compact desktop ── */
@media (max-width: 1280px) {
  /* nudge photos inward so they don't get clipped */
  .p-dannie {
    left: 17%;
  }
  .p-dining {
    left: 1%;
  }
  .p-garden {
    left: 1%;
    width: 250px;
    height: 190px;
  }
  .p-hallway {
    right: 8%;
  }
  .p-bedroom {
    right: 14%;
  }
  .p-living {
    right: 5%;
  }
  .fade-left {
    width: 160px;
  }
  .fade-right {
    width: 160px;
  }
}

/* ── 1024px — laptop / iPad landscape ── */
@media (max-width: 1024px) {
  /* nav */
  .nav-pill {
    gap: 16px;
  }

  /* hero — hide the two small accent photos to reduce clutter */
  .p-small-l {
    display: none;
  }
  .p-small-r {
    display: none;
  }
  .p-garden {
    width: 210px;
    height: 165px;
    top: 63vh;
  }
  .p-bedroom {
    right: 8%;
    width: 125px;
    height: 155px;
  }
  .p-dannie {
    left: 14%;
  }
  .p-hallway {
    right: 6%;
  }
  .fade-left {
    width: 120px;
  }
  .fade-right {
    width: 120px;
  }

  /* hero geometry:
         phone 380 × 380px, hidden 100px → visible 280px
         hero-body bottom = 280px + 10px gap = 290px            */
  #hero {
    min-height: 620px;
  }
  .hero-body {
    bottom: 290px;
  }
  .hero-phone-wrap {
    bottom: -100px;
  }
  .phone-outline {
    width: 230px;
    height: 380px;
    border-radius: 32px;
    padding-top: 34px;
  }

  /* feature sections — still side-by-side, tighter margins */
  .feat-title {
    font-size: 28px;
  }
  .feat-body {
    font-size: 16px;
  }
}

/* ── 768px — iPad portrait ── */
@media (max-width: 768px) {
  /* ── nav ── */
  nav {
    top: 20px;
    padding: 8px 12px;
  }
  .nav-pill {
    gap: 12px;
    padding: 4px 4px 4px 14px;
  }
  .nav-link {
    font-size: 14px;
  }
  .btn-grad {
    height: 38px;
    font-size: 13px;
    padding: 0 14px;
  }

  /* ── hero title / sub ── */
  .hero-title {
    font-size: 56px;
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: none;
    white-space: nowrap;
  }
  .hero-sub {
    position: absolute;
    top: calc(25% + 72px);
    left: 0;
    width: 100%;
    text-align: center;
    transform: none;
    font-size: 14px;
    padding: 0 20px;
    white-space: normal;
  }

  /* ── hero photos — 4 visible, repositionnées d'après Figma ── */
  /* haut gauche — dannie portrait */
  .p-dannie {
    width: 50px;
    height: 62px;
    top: 13%;
    left: 5%;
  }
  /* haut droite — hallway vertical */
  .p-hallway {
    width: 74px;
    height: 128px;
    top: 13%;
    right: 3%;
  }
  /* bas gauche — dining carré */
  .p-dining {
    width: 77px;
    height: 77px;
    top: 40%;
    left: 4%;
  }
  /* bas droite — small-r portrait */
  .p-small-r {
    width: 59px;
    height: 74px;
    top: 39%;
    right: 4%;
  }
  /* cacher tout le reste */
  .p-small-l {
    display: none;
  }
  .p-garden {
    display: none;
  }
  .p-living {
    display: none;
  }
  .p-bedroom {
    display: none;
  }
  .fade-left {
    width: 60px;
  }
  .fade-right {
    width: 60px;
  }

  /* ── hero phone — centré, agrandi ── */
  .phone-outline {
    width: 75vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 52px !important;
  }

  /* ── sections produit — phone + texte en colonne ── */
  .section-1,
  .section-2 {
    display: grid !important;
    grid-template-rows: 1fr auto auto 1fr !important;
    align-items: start !important;
    justify-items: center !important;
    height: 100dvh !important;
    padding: 0 24px !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .section-1::before,
  .section-2::before {
    content: "" !important;
    display: block !important;
  }

  .section-1::after,
  .section-2::after {
    content: "" !important;
    display: block !important;
  }

  .mobile-overlay-wrap {
    display: block !important;
    position: relative !important;
    grid-row: 2 !important;
    width: 65vw !important;
    height: calc(65vw * 19.5 / 9) !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 11% / 5.5% !important;
    margin: 0 !important;
  }

  .mobile-overlay-wrap::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60% !important;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
    z-index: 5 !important;
    pointer-events: none !important;
  }

  .section1-phone,
  .section2-phone {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 !important;
    opacity: 1 !important;
  }

  .section1-phone .phone-container,
  .section1-phone .phone-mockup,
  .section2-phone .phone-container,
  .section2-phone .phone-mockup {
    width: 100% !important;
    height: 100% !important;
    border-radius: 11% / 5.5% !important;
  }

  .section1-text,
  .section2-text {
    grid-row: 3 !important;
    margin-top: -360px !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    z-index: 10 !important;
  }

  /* ── sections 1 & 2 — font sizes alignés avec sections 3 & 4 ── */
  .section1-text .feat-title,
  .section2-text .feat-title {
    font-size: 40px;
  }
  .section1-text .feat-body,
  .section2-text .feat-body {
    font-size: 20px;
  }

  /* ── section 3 (pricing) ── */
  #pricing {
    padding: 60px 22px;
    text-align: center;
  }
  #pricing .section-title {
    font-size: 40px;
  }

  /* ── section 4 (CTA) ── */
  .section-4 {
    padding: 60px 22px 0 22px;
    text-align: center;
  }
  .section-4 .section-title {
    font-size: 40px;
  }

  /* ── footer — deux colonnes ── */
  .footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: start !important;
    padding: 40px 24px !important;
    gap: 0 !important;
  }
  .footer-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .footer-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 16px !important;
  }

  /* ── modal ── */
  .modal-h {
    font-size: 20px;
  }
  .modal-body {
    padding: 0 20px 28px;
  }
}

/* ── 480px — large mobile ── */
@media (max-width: 480px) {
  /* nav: hide text links on small screens, keep Product */
  .nav-link {
    display: none;
  }
  .nav-link.nav-product {
    display: block;
  }
  .nav-pill {
    gap: 10px;
    padding: 4px 4px 4px 10px;
  }
  .btn-grad {
    height: 36px;
    font-size: 12px;
    padding: 0 12px;
    border-radius: 20px;
  }

  /* hero photos — 4 visibles comme sur Figma mobile */
  .photo {
    display: none;
  } /* cache tout par défaut */
  /* haut gauche — dannie portrait */
  .p-dannie {
    display: block;
    width: 50px;
    height: 62px;
    top: 13%;
    left: 5%;
    opacity: 0.69;
  }
  /* haut droite — hallway vertical */
  .p-hallway {
    display: block;
    width: 74px;
    height: 128px;
    top: 13%;
    right: 3%;
    opacity: 0.69;
  }
  /* bas gauche — dining carré */
  .p-dining {
    display: block;
    width: 77px;
    height: 77px;
    top: 40%;
    left: 4%;
    opacity: 0.69;
  }
  /* bas droite — small-r portrait */
  .p-small-r {
    display: block;
    width: 59px;
    height: 74px;
    top: 39%;
    right: 4%;
    opacity: 0.69;
  }
  .fade-left {
    display: none;
  }
  .fade-right {
    display: none;
  }

  /* hero geometry:
         phone 330 × 330px, hidden 80px → visible 250px
         hero-body bottom = 250px + 10px gap = 260px            */
  #hero {
    min-height: 560px;
  }
  .hero-body {
    top: 68px;
    bottom: 260px;
  }
  .hero-phone-wrap {
    bottom: -80px;
  }
  .phone-outline {
    width: 182px;
    height: 330px;
    border-radius: 28px;
    padding-top: 30px;
    gap: 10px;
  }
  .hero-title {
    font-size: 52px;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 15px;
    margin-top: 14px;
  }
  .scroll-label {
    font-size: 13px;
  }

  /* product */
  .section-1 {
    padding: 0 40px !important;
    gap: 40px;
  }
  .phone-mockup {
    width: 190px;
    height: 365px;
  }

  /* features */
  .feat-title {
    font-size: 22px;
  }
  .feat-body {
    font-size: 15px;
  }

  /* pricing / cta */
  #pricing,
  #cta {
    padding: 64px 20px;
  }
  .section-title {
    font-size: 24px;
  }
  .section-inner {
    padding: 0;
  }
  #cta .section-inner > p {
    font-size: 15px !important;
    margin-bottom: 36px !important;
  }

  /* footer */
  footer {
    padding: 40px 20px 36px;
  }
  .brand-name {
    font-size: 22px;
  }

  /* modal */
  .modal-header {
    padding: 16px 14px;
    gap: 10px;
  }
  .modal-h {
    font-size: 17px;
    padding-left: 0;
  }
  .modal-badge {
    display: none;
  }
  .modal-body {
    padding: 0 14px 24px;
  }
  .modal-desc {
    font-size: 13px;
  }
  .form-row label {
    font-size: 13px;
  }
  .form-input {
    height: 42px;
    font-size: 13px;
  }
  .modal-submit {
    height: 42px;
    font-size: 13px;
  }
}

/* ── 390px / 375px — small mobile (iPhone 14 / iPhone X) ── */
@media (max-width: 390px) {
  /* hero geometry:
         phone 308 × 308px, hidden 70px → visible 238px
         hero-body bottom = 238px + 10px gap = 248px            */
  .hero-body {
    top: 64px;
    bottom: 248px;
  }
  .hero-phone-wrap {
    bottom: -70px;
  }
  .phone-outline {
    width: 168px;
    height: 308px;
    border-radius: 26px;
    padding-top: 26px;
  }
  .hero-title {
    font-size: 46px;
  }
  .hero-sub {
    font-size: 14px;
    margin-top: 12px;
  }

  /* product */
  .phone-mockup {
    width: 175px;
    height: 336px;
  }

  .feat-title {
    font-size: 20px;
  }

  /* sections */
  #pricing,
  #cta {
    padding: 56px 16px;
  }
  .section-title {
    font-size: 22px;
  }

  /* footer */
  footer {
    padding: 36px 16px 32px;
  }
}
