:root {
  color-scheme: light;
  --pine: #17392d;
  --paper: #f5f2e8;
  --linen-veil: rgb(247 244 230 / 91%);
  --forest-veil: rgb(23 57 45 / 74%);
  --forest-light-veil: rgb(23 57 45 / 46%);
  --sage-light: #becbb9;
  --section-fade: clamp(7rem, 13vw, 12rem);
  --services-fade-lead: calc(var(--section-fade) * .30);
  --cream: #f7ebd2;
  --muted: #46554a;
  --terracotta: #a03927;
  --terracotta-dark: #832a1c;
  --gold: #f2bd75;
  --gold-light: #ffe6b4;
  --line: #b9b6a1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font: 17px/1.58 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--pine); color: var(--pine); }
main {
  background:
    radial-gradient(ellipse at 12% 36%, rgb(133 158 114 / 65%), transparent 57%),
    radial-gradient(ellipse at 92% 70%, rgb(144 162 125 / 63%), transparent 55%),
    #29493c;
}
img { display: block; width: 100%; }
figure { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, :is(input, select, textarea, button):focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}
section { scroll-margin-top: 1rem; }
.shell { width: min(100% - clamp(2rem, 6vw, 6rem), 86rem); margin-inline: auto; }
.skip-link { position: absolute; inset: 0 auto auto 0; z-index: 5; padding: .65rem 1rem; background: var(--gold); translate: 0 -130%; }
.skip-link:focus { translate: 0; }

.eyebrow { margin: 0 0 .9rem; color: var(--terracotta); font-size: .84rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font: 500 2rem/1.02 var(--serif); letter-spacing: -.047em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.6vw, 7.4rem); }
h1 em { position: relative; display: block; color: var(--terracotta); font-weight: 400; }
h2 { font-size: clamp(2.65rem, 5.8vw, 5.7rem); }
h3 { font-size: clamp(1.45rem, 2.8vw, 2.25rem); }
.hero {
  color: #fffaf1;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--forest-veil), rgb(23 57 45 / 22%) 20%, transparent 40%);
}
.hero-inner {
  min-height: clamp(36rem, 75svh, 52rem);
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .5fr);
  grid-template-rows: 1fr auto auto;
  grid-template-areas: "copy brand" "actions actions" "controls controls";
  gap: .6rem 1.25rem;
  padding-block: clamp(1.65rem, 4vw, 3.6rem) 1.05rem;
}
.hero-copy { grid-area: copy; place-self: center; width: min(100%, 49rem); text-align: center; }
.hero-brand { grid-area: brand; place-self: center end; width: min(100%, clamp(16rem, 31vw, 28rem)); }
.logo-filter { position: absolute; pointer-events: none; }
.hero-brand img {
  height: auto;
  opacity: .94;
  filter: url("#logo-sans-fond") drop-shadow(0 .08rem .2rem rgb(18 27 22 / 80%)) drop-shadow(0 1rem 1.4rem rgb(18 27 22 / 60%));
}
.hero-brand > a { position: relative; display: block; container-type: inline-size; }
.hero-brand img { clip-path: inset(0 0 19.5%); }
.hero-brand-tagline {
  position: absolute;
  inset: 81% 0 auto;
  color: #fff5e5;
  font: 600 clamp(.5rem, 4.7cqi, 1.3rem)/1.3 system-ui, sans-serif;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 .08rem .2rem rgb(18 27 22 / 90%);
}
.hero h1 em { color: #b5ccab; }
.hero h1 { text-wrap: balance; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: #ffd38d; }
.hero .primary { background: #ffd38d; color: var(--pine); }
.hero .primary:hover { background: var(--gold-light); }
.hero-actions { grid-area: actions; display: grid; justify-items: center; padding-block: .15rem; }
.hero-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: .55rem;
  padding-block: clamp(2rem, 4vw, 3.65rem) .3rem;
  padding-inline: clamp(.35rem, 2.5vw, 2.25rem);
}
.hero-nav > :first-child { justify-self: start; }
.hero-nav > :nth-child(2) { justify-self: center; }
.hero-nav > :last-child { justify-self: end; }
.hero-nav a {
  display: inline-block;
  padding: .45rem clamp(.24rem, .75vw, .55rem);
  color: #ffd38d;
  font: 500 clamp(1.5rem, 2.8vw, 2.35rem)/1.14 var(--serif);
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
}
.hero .hero-cta {
  width: min(100%, 23rem);
  min-height: clamp(3.15rem, 5vw, 4.15rem);
  justify-content: center;
  padding: .72rem clamp(.9rem, 2.5vw, 1.8rem);
  font-size: clamp(1.1rem, 2.15vw, 1.55rem);
  box-shadow: 0 .4rem 1.3rem rgb(10 27 18 / 32%);
}
.hero-message-stack { display: grid; }
.hero-message { grid-area: 1 / 1; opacity: 0; }
.hero-message.is-current { opacity: 1; }
.hero-descriptions { max-width: 34rem; margin: 1.35rem auto 1.6rem; font-size: clamp(1.08rem, 1.75vw, 1.32rem); }
.hero-descriptions > p { margin: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.15rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  min-height: 2.85rem;
  padding: .7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 3rem;
  font: 720 .98rem/1.35 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--terracotta); color: #fff8eb; }
.primary:hover { background: var(--terracotta-dark); }
.secondary { color: var(--pine); border-color: var(--pine); }
.secondary:hover { background: var(--pine); color: var(--paper); }
.text-link:hover, .hero-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.text-link { font-size: .97rem; font-weight: 690; text-underline-offset: .18em; }
.photo { overflow: hidden; background: #756b4f; }
.photo img { object-fit: cover; }
.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 58%, rgb(0 0 0 / 65%) 81%, transparent);
  mask-image: linear-gradient(#000 58%, rgb(0 0 0 / 65%) 81%, transparent);
}
.hero-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(19 32 24 / 90%) 0%, rgb(19 32 24 / 79%) 38%, rgb(19 32 24 / 32%) 73%, rgb(19 32 24 / 12%) 100%);
}
.hero-image { position: absolute; inset: 0; background: var(--pine); }
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: 52% center;
  opacity: 0;
}
.hero-image .is-current { opacity: 1; }
.gallery-controls { grid-area: controls; display: flex; justify-content: flex-end; align-items: center; gap: .4rem; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .3rem .8rem;
  border: 1px solid rgb(255 250 241 / 56%);
  border-radius: 3rem;
  color: #fffaf1;
  background: rgb(19 32 24 / 86%);
  font: 650 .76rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.gallery-controls button:hover { background: var(--pine); }
.gallery-controls [data-slide-step] { font-size: 1.25rem; }

.owners, .estimate, .contact {
  --fade-from: var(--forest-light-veil);
  --fade-to: var(--linen-veil);
  --fade-stops:
    var(--fade-from) var(--fade-start),
    color-mix(in oklab, var(--fade-from), var(--fade-to) 7%) calc(var(--fade-start) + var(--section-fade) * .16),
    color-mix(in oklab, var(--fade-from), var(--fade-to) 25%) calc(var(--fade-start) + var(--section-fade) * .33),
    color-mix(in oklab, var(--fade-from), var(--fade-to) 52%) calc(var(--fade-start) + var(--section-fade) * .52),
    color-mix(in oklab, var(--fade-from), var(--fade-to) 81%) calc(var(--fade-start) + var(--section-fade) * .72),
    color-mix(in oklab, var(--fade-from), var(--fade-to) 97%) calc(var(--fade-start) + var(--section-fade) * .91),
    var(--fade-to) calc(var(--fade-start) + var(--section-fade));
}
.owners {
  /* La même transition commence ici et se poursuit en haut de l’estimation. */
  --fade-start: calc(100% - var(--services-fade-lead));
  padding-block: clamp(2rem, 4.55vw, 4.8rem) calc(var(--services-fade-lead) + .55rem);
  background: linear-gradient(to bottom, var(--forest-veil), var(--fade-stops));
  color: var(--paper);
}
.owners .eyebrow, .owners .services summary::after { color: var(--sage-light); }
.owners summary:focus-visible { outline-color: var(--gold); }
.owners-grid, .sale-grid, .estimate-grid, .contact-grid { display: grid; gap: clamp(1.7rem, 6vw, 7.2rem); }
.owners-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.owners-intro, .services p { color: #dce3d5; }
.sale-copy > p:not(.eyebrow), .estimate-intro > p:not(.eyebrow) { color: var(--muted); }
.owners-intro { max-width: 34rem; margin: 1.2rem 0 0; }
.services { min-width: 0; }
.services details { border-top: 1px solid var(--gold-light); }
.services details:last-of-type { border-bottom: 1px solid var(--gold-light); }
.services summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
  font: 500 clamp(1.5rem, 2.8vw, 2.35rem)/1.14 var(--serif);
  letter-spacing: -.03em;
  list-style: none;
  cursor: pointer;
}
.services summary::-webkit-details-marker { display: none; }
.services summary::before { content: ""; position: absolute; inset: .55rem 0 .55rem auto; width: 1.9rem; aspect-ratio: 1; border-radius: 100%; background: rgb(245 242 232 / 10%); margin-block: auto; }
.services summary::after { content: "+" / ""; flex: 0 0 1.9rem; text-align: center; font: 500 1.15rem/1 system-ui, sans-serif; color: var(--terracotta); }
.services details[open] > summary::after { content: "−" / ""; }
.services details > p { margin: 0 0 .95rem; max-width: 36rem; padding-right: .9rem; }
.owner-access { margin-top: 1.45rem; padding-left: 1rem; border-left: 3px solid var(--terracotta); }
.owner-access p { margin: .4rem 0 0; max-width: 32rem; }
.owners .owner-access { border-color: var(--sage-light); }

.sale {
  padding-block: clamp(2.75rem, 6vw, 6rem);
  background: var(--linen-veil);
}
.sale-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.coast-photo { border-radius: 20% 9% 30% 10% / 30% 14% 39% 20%; }
.coast-photo img { height: clamp(17rem, 34vw, 39rem); object-position: 39% 54%; }
.sale-copy > p:not(.eyebrow) { margin: 1rem 0 0; max-width: 34rem; }
.sale-copy h3 { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.sale-copy .button { margin-top: 1.3rem; }

.estimate {
  --fade-start: calc(0px - var(--services-fade-lead));
  padding-block: calc(var(--section-fade) - var(--services-fade-lead) + .7rem) clamp(3rem, 7vw, 6.5rem);
  background: linear-gradient(to bottom, var(--fade-stops));
}
.estimate-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  row-gap: clamp(1.35rem, 2.5vw, 2.65rem);
}
.estimate-grid > .owner-access { margin-top: 0; }
.estimate-intro h2 { max-width: 19ch; font-size: clamp(2.65rem, 5.1vw, 5.2rem); }
.estimate-intro > p:not(.eyebrow) { max-width: 34rem; margin-bottom: 0; }
.estimate-form {
  scroll-margin-top: 1rem;
  min-width: 0;
  width: 100%;
  max-width: 60rem;
  padding: clamp(1rem, 3.6vw, 2.4rem);
  background: var(--paper);
  border: 1px solid rgb(23 57 45 / 14%);
  border-radius: clamp(1.1rem, 4vw, 2.6rem);
}
.estimate-form .primary { background: var(--pine); color: var(--paper); }
.estimate-form .primary:hover { background: #254d3d; }
.estimate-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.estimate-form legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.estimate-form [hidden] { display: none; }
.estimate-form fieldset:last-child { margin-bottom: 0; }
.estimate-form [data-estimate-continue] { margin-top: 1rem; }
.estimate-progress { margin-bottom: 1.05rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.estimate-progress::after {
  content: "";
  display: block;
  height: .24rem;
  margin-top: .4rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--pine) 50%, #cdd5c9 50%);
}
.estimate-progress[data-step="2"]::after { background: var(--pine); }
.form-grid { display: grid; gap: .8rem; }
.form-grid label { font-size: .96rem; font-weight: 650; }
.form-grid input, .form-grid select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: .2rem;
  padding: .52rem .65rem;
  border: 1px solid #817e6c;
  border-radius: .65rem;
  background: var(--paper);
  color: var(--pine);
  font: 400 1rem/1.4 system-ui, sans-serif;
}
.form-note { color: var(--muted); font-size: .79rem; margin-block: .7rem; }
#contact-choice { margin-top: 0; }
@media (min-width: 980px) {
  [data-estimate-step="contact"] .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-estimate-step="contact"] .form-grid > :first-child { grid-column: 1 / -1; }
}

.brand-strip {
  padding-block: clamp(1.15rem, 3.5vw, 2.7rem) clamp(1.5rem, 4vw, 3.2rem);
  background: var(--linen-veil);
}
.brand-strip .shell { width: calc(100% - clamp(1.5rem, 5vw, 5.5rem)); }
.brand-strip h2 {
  margin: 0 0 1.2rem;
  text-align: center;
  font: 700 .82rem/1.4 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.brand-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  gap: .9rem clamp(.6rem, 2.5vw, 2rem);
  align-items: center;
  justify-items: center;
}
.brand-logos li { width: 100%; display: grid; place-items: center; }
.brand-logos img { width: min(100%, 13rem); height: clamp(2.9rem, 4.4vw, 4.1rem); object-fit: contain; }

.contact {
  --section-fade: clamp(5rem, 10vw, 9rem);
  --fade-start: 0px;
  --fade-from: var(--linen-veil);
  --fade-to: var(--forest-veil);
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--section-fade) + .7rem) clamp(1.4rem, 3vw, 3rem);
  color: var(--paper);
  background: linear-gradient(to bottom, var(--fade-stops), var(--forest-veil) 78%, var(--pine));
}
.contact::before {
  content: "";
  position: absolute;
  inset: calc(var(--section-fade) * .65) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 48%, rgb(147 164 110 / 26%), transparent 49%),
    radial-gradient(ellipse at 74% 52%, rgb(34 91 76 / 36%), transparent 56%);
  background-size: 146% 110%;
  background-position: 18% 50%;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.contact-grid {
  width: min(calc(100% - 2rem), 53rem);
  grid-template-columns: clamp(9.5rem, 17vw, 15rem) minmax(0, 1fr);
  grid-template-areas: "portrait contact";
  align-items: center;
  gap: clamp(1.15rem, 4vw, 3.5rem);
}
.contact-grid > div { grid-area: contact; }
.contact h2 { font-size: clamp(2.15rem, 4.15vw, 3.7rem); }
.contact-grid > div > p { margin: .65rem 0 .85rem; }
.contact a:focus-visible { outline-color: var(--gold); }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-links > :first-child { flex-basis: 100%; min-width: 0; }
.contact-links > :first-child a {
  color: #ffd38d;
  font-size: clamp(.91rem, 2.3vw, 1.2rem);
  overflow-wrap: anywhere;
}
.contact-photo {
  grid-area: portrait;
  width: min(100%, clamp(9.5rem, 17vw, 15rem));
  justify-self: center;
  border-radius: 49% 51% 17% 14% / 42% 44% 13% 12%;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 53% 53% at 50% 49%, #000 64%, rgb(0 0 0 / 90%) 77%, transparent 94%);
  mask-image: radial-gradient(ellipse 53% 53% at 50% 49%, #000 64%, rgb(0 0 0 / 90%) 77%, transparent 94%);
}
.contact-photo img { height: auto; aspect-ratio: .86; object-position: center 34%; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.3rem; padding-block: 1.05rem; border-top: 1px solid rgb(245 242 232 / 22%); color: #dce3d5; font-size: .78rem; }
.footer p { margin: 0; }

.wave-section { position: relative; isolation: isolate; }
.wave-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-nav a:hover { scale: 1.12; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-nav a { transition: scale .22s ease-out; }
  .hero-nav a:focus-visible { scale: 1.12; }
  .button { transition: background-color .2s ease, color .2s ease; }
  .contact::before { animation: contact-color-drift 34s ease-in-out infinite alternate paused; }
  body:has(.hero.is-playing) .contact::before { animation-play-state: running; }
  @keyframes contact-color-drift {
    from { background-position: 18% 50%; }
    to { background-position: 82% 50%; }
  }
  .hero.is-playing .hero-image img { transition: opacity .9s ease; }
  .hero.is-playing .hero-message { transition: opacity .9s ease-in-out; }
  .hero.is-playing .hero-message.is-current { transition: opacity 1.2s ease-in-out .75s; }
  .hero.is-playing .hero-image .is-current { animation: gallery-pan 5.7s ease-out both; }
  @keyframes gallery-pan {
    from { transform: scale(1.015) translateX(-.25%); }
    to { transform: scale(1.072) translateX(.65%); }
  }
}
@media (min-width: 761px) {
  .hero-inner, .hero-nav, .owners-grid, .sale-grid, .estimate-grid {
    width: min(93%, max(95rem, 83vw));
  }
  .hero-nav, .owners-grid, .estimate-grid { margin-inline: 3% auto; }
  .hero-copy { translate: 0 clamp(-2.2rem, -2.8vw, -.8rem); }
  .hero-brand { translate: clamp(.65rem, 2.4vw, 2rem) clamp(-2.2rem, -2.8vw, -.8rem); }
  .sale-grid { width: min(87%, max(88rem, 80vw)); margin-inline: auto 3%; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner, .owners-grid, .sale-grid, .estimate-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-descriptions { margin-block: .75rem .9rem; }
  .brand-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-logos img { height: clamp(2.2rem, 8vw, 3rem); }
  .hero-inner {
    min-height: 36rem;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "brand" "copy" "actions" "controls";
    align-content: center;
    gap: .8rem;
    padding-block: 1.4rem 1.2rem;
  }
  .hero-copy { translate: 0 -.55rem; }
  .hero-brand { justify-self: start; width: clamp(10rem, 35vw, 13rem); margin: -.7rem 0 -.6rem -.9rem; translate: .65rem -.55rem; }
  .hero-gallery::after { background: linear-gradient(90deg, rgb(19 32 24 / 85%), rgb(19 32 24 / 48%)); }
  .gallery-controls { justify-content: flex-start; }
  .coast-photo { width: min(100%, 34rem); }
  .coast-photo img { aspect-ratio: 1.55; height: auto; }
  .sale-copy { grid-row: 1; }
  .contact-grid { grid-template-areas: "contact" "portrait"; }
  .contact-photo { justify-self: start; }
}

@media (max-width: 520px) {
  .hero-nav { display: flex; justify-content: space-between; gap: .2rem; padding-inline: .2rem; }
  .hero-nav a { padding-inline: .15rem; font-size: clamp(.91rem, 4.35vw, 1.12rem); }
}
