/* STAYNEST — Landing propriétaires (Bordeaux) */
:root {
  --navy: #1C1F2A;
  --cream: #F5F0EB;
  --sand: #D8CAB8;
  --sand-soft: #EAE1D5;
  --gold: #C8B08E;
  --gold-hover: #B89A78;
  --slate: #5A5A5A;
  --white: #FFFFFF;
  --line: rgba(28, 31, 42, 0.12);
  --nav-h: 72px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover { background: #2C3142; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(28, 31, 42, 0.3);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 240, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-decoration: none;
}
.wordmark--light { color: var(--cream); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.8;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 4.5rem 0 8rem;
  overflow: hidden;
}

/* Sand plane behind the photo */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 38%;
  background: var(--sand-soft);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero-place::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero-sub {
  font-size: 1.1875rem;
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof {
  display: grid;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-proof li {
  position: relative;
  padding-left: 1.75rem;
}
.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.9rem;
  height: 2px;
  background: var(--gold);
}
.hero-proof strong {
  color: var(--navy);
  font-weight: 600;
}

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 85% 70%;
  border-radius: 6px;
  box-shadow: 0 40px 70px -40px rgba(28, 31, 42, 0.45);
}

/* ——— Critères ——— */
.criteria {
  position: relative;
  margin-top: -4rem;
}

.brief {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3.5rem;
  background: var(--white);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  padding: 2.75rem;
  box-shadow: 0 30px 60px -30px rgba(28, 31, 42, 0.3);
}

.brief h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 0.75rem;
}
.brief-intro { margin-bottom: 1.5rem; }

.brief-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
  align-content: start;
}
.brief-list li {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.brief-list svg,
.ticks li::before {
  flex-shrink: 0;
}

.brief-list svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brief-list strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
}
.brief-list span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.brief-link {
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* Single page-load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-photo {
    animation: rise 0.8s var(--ease) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-photo { animation-delay: 0.3s; }
}

/* Scroll reveals — only hidden when JS is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Criteria: checks draw one after another */
  .js .brief[data-reveal] li { opacity: 1; transform: none; }
  .js .brief-list svg path {
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    transition: stroke-dashoffset 0.5s var(--ease);
    transition-delay: calc(0.45s + var(--i, 0) * 0.14s);
  }
  .js .brief.is-in .brief-list svg path { stroke-dashoffset: 0; }

  /* Steps: numbers pop, connecting line draws */
  .js .step .step-num {
    transform: scale(0.6);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(var(--i, 0) * 180ms);
  }
  .js .step.is-in .step-num { transform: none; }
  .js .step::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s var(--ease);
    transition-delay: calc(0.25s + var(--i, 0) * 180ms);
  }
  .js .step.is-in::before { transform: none; }
  .js .step[data-reveal] { transition-delay: calc(var(--i, 0) * 180ms); }

  /* Gallery: gentle settle-in, zoom on hover */
  .js .gallery img {
    transform: scale(1.08);
    transition: transform 1.4s var(--ease);
  }
  .js .gallery figure.is-in img { transform: none; }
  .js .gallery figure.is-in:hover img {
    transform: scale(1.04);
    transition-duration: 0.8s;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
  .js .step::before {
    transform: scaleY(0);
    transform-origin: center top;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ——— Sections ——— */
.section { padding: 6rem 0; }

.section--sand { background: var(--sand-soft); }

.section--navy {
  background: var(--navy);
  color: rgba(245, 240, 235, 0.78);
}
.section--navy h2,
.section--navy h3 { color: var(--cream); }

.section-head {
  max-width: 40rem;
  margin-bottom: 3.25rem;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-head p { font-size: 1.125rem; }
.section-head a { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* ——— Qui fait quoi ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split-col { padding: 2.5rem; }
.split-col h3 {
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
}

.split-col--owner { background: var(--white); }
.split-col--us {
  background: var(--navy);
  color: rgba(245, 240, 235, 0.85);
}
.split-col--us h3 { color: var(--cream); }

.ticks { display: grid; gap: 1rem; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.9rem;
  height: 2px;
  background: var(--gold);
}

/* ——— Appartements ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15rem;
  gap: 1rem;
}
.gallery figure { overflow: hidden; border-radius: 6px; background: var(--sand-soft); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 4.5rem;
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
}
.stats dd {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stats dt {
  max-width: 17rem;
  font-size: 1rem;
}

/* ——— Déroulé ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: none;
}

.step {
  position: relative;
  padding-top: 3.75rem;
}

/* connecting line between the numbers */
.step::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 2.5rem;
  right: -2rem;
  height: 1px;
  background: rgba(28, 31, 42, 0.25);
}
.step:last-child::before { display: none; }

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.step p { font-size: 1rem; }

/* ——— Voisinage ——— */
.neighbours-quote {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.25;
  max-width: 24ch;
  margin-bottom: 3.5rem;
}

.neighbours-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(216, 202, 184, 0.25);
}
.neighbours-points h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ——— FAQ ——— */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.section-head--side { margin-bottom: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(15%) rotate(-135deg); }

.faq details p {
  padding: 0 2.5rem 1.5rem 0;
  max-width: 40rem;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
}
.contact-intro > p { font-size: 1.125rem; max-width: 30rem; }

.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0 1.75rem;
}
.person-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}
.person-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.3;
}
.person-role { font-size: 0.9375rem; }

.direct { display: grid; gap: 0.75rem; }
.direct li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-weight: 500;
}
.direct a { text-decoration: none; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.direct svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form {
  display: grid;
  gap: 1.1rem;
  background: var(--white);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  padding: 2.25rem;
  box-shadow: 0 30px 60px -35px rgba(28, 31, 42, 0.35);
}
.form h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label { display: grid; gap: 0.35rem; }
.form label span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}
.form label em { font-style: normal; font-weight: 400; color: var(--slate); }

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.form input::placeholder,
.form textarea::placeholder { color: #8C8A86; }
.form input:focus,
.form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy);
}
.form textarea { resize: vertical; min-height: 6rem; }

.form-error {
  color: #9A3B2E;
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-note { font-size: 0.875rem; text-align: center; }

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(245, 240, 235, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(216, 202, 184, 0.18);
}
.footer-desc {
  margin-top: 0.75rem;
  max-width: 26rem;
  font-size: 0.9375rem;
}
.footer-founder {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 27rem;
  font-size: 0.9375rem;
}
.footer-founder img {
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.footer-founder-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
}

.footer-founder > div { display: grid; gap: 0.25rem; justify-items: start; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 4px rgba(37, 211, 102, 0.14), 0 12px 30px -12px rgba(37, 211, 102, 0.45);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.contact-actions .btn-whatsapp { margin-top: 0; }

.btn-whatsapp--light {
  background: var(--white);
  border-color: rgba(28, 31, 42, 0.1);
  box-shadow: 0 1px 2px rgba(28, 31, 42, 0.06), 0 10px 28px -14px rgba(28, 31, 42, 0.35);
  color: var(--navy);
}
.btn-whatsapp--light:hover {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.16), 0 12px 30px -14px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn-call .btn-whatsapp-icon { background: var(--navy); }
.btn-call .btn-whatsapp-icon svg {
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 1rem;
  height: 1rem;
}
.btn-call:hover {
  border-color: rgba(28, 31, 42, 0.45);
  box-shadow: 0 0 0 4px rgba(28, 31, 42, 0.08), 0 12px 30px -14px rgba(28, 31, 42, 0.45);
}

.btn-whatsapp-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--white);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.footer-links a {
  text-decoration: none;
  color: var(--cream);
}
.footer-links a:hover { color: var(--gold); }

.site-footer :focus-visible { outline-color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero { padding: 3rem 0 6rem; }
  .hero::before { width: 100%; top: auto; height: 42%; }
  .brief { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 12rem; }
  .hero-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { max-width: 20ch; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .step:nth-child(2)::before { display: none; }
  .neighbours-points { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .wordmark { font-size: 1.3rem; }
  .section { padding: 4.5rem 0; }
  .split { grid-template-columns: 1fr; }
  .split-col { padding: 2rem 1.5rem; }
  .hero-ctas .btn { width: 100%; }
  .brief,
  .form { padding: 1.75rem 1.35rem; }
  .brief-list { grid-template-columns: 1fr; }
  .criteria { margin-top: -2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* vertical timeline */
  .steps { grid-template-columns: 1fr; row-gap: 2rem; }
  .step { padding: 0 0 0 3.75rem; }
  .step::before,
  .step:nth-child(2)::before {
    display: block;
    top: 2.75rem;
    left: 1.25rem;
    right: auto;
    bottom: -1.75rem;
    width: 1px;
    height: auto;
  }
  .step:last-child::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
