:root{--sand:#f3ebdc;--field:#fffaf1;--warm-border:#d9cbb6}
body > aside .menu-toggle,
dialog.drawer:has(.drawer-brand) > button:first-child,
dialog:has(.rivaya-auth)[open],
.company-section .contact-location > span,
.company-section .contact-form,
.about-zones .about-zones-note{background:var(--sand)}
.company-section .contact-form,
.about-zones button,
.rivaya-auth .team-form,
main .land-form :is(input,textarea,select),
dialog .land-form :is(input,textarea,select),
.rivaya-auth .team-form input{border-color:var(--warm-border)}
.about-zones button,
.rivaya-auth .team-form,
main .land-form :is(input,textarea,select),
dialog .land-form :is(input,textarea,select),
.rivaya-auth .team-form input{background:var(--field);color:#342b23}
.about-zones button:hover,.about-zones button:focus-visible{background:var(--sand)}
.land-form label,.rivaya-auth .team-form label,.rivaya-auth>p{color:#615344}
.land-form :is(input,textarea)::placeholder,.rivaya-auth input::placeholder{color:#786a5c}
dialog:not(.photo-viewer)[open]{background-color:#fffaf1}

/* Palette grise, blanche et verte de la référence. */
:root {
  --rivaya-page: #f5f5f7;
  --rivaya-white: #fff;
  --rivaya-ink: #1c1c1e;
  --rivaya-muted: #68686e;
  --rivaya-rule: #e4e4e8;
  --rivaya-tint: #f0f0f2;
  --rivaya-green: #54b982;
  --rivaya-accent: #ba641b;
  --ashford-cream: var(--rivaya-page);
  --ashford-paper: var(--rivaya-white);
  --ashford-edge: var(--rivaya-rule);
  --ashford-olive-soft: var(--rivaya-tint);
  --sheet-page: var(--rivaya-page);
  --sheet-paper: var(--rivaya-white);
  --sheet-line: var(--rivaya-rule);
  --muted: var(--rivaya-muted);
  color: var(--rivaya-ink);
}
body > aside, body:has(.demo-sheet) > aside {
  background: #f7f7f8ed;
  border-color: var(--rivaya-rule);
}
body > aside .menu-toggle {
  background: var(--rivaya-tint);
  color: var(--rivaya-ink);
}
.demo-sheet .sheet-bar { background: #fffffff2; }
.demo-sheet .sheet-contact {
  background: var(--rivaya-green);
  color: #122819;
}
.demo-sheet .sheet-call {
  color: var(--rivaya-ink);
  border-color: var(--rivaya-ink);
}
.demo-sheet .sheet-location,
.demo-sheet .sheet-report,
.demo-sheet .sheet-amount small,
.demo-sheet .sheet-facts small,
.demo-sheet .price-period { color: var(--rivaya-muted); }
.demo-sheet .sheet-notice,
.company-section .contact-form,
.company-section .contact-location > span,
.about-zones .about-zones-note {
  background: var(--rivaya-tint);
  color: var(--rivaya-ink);
}
.company-section .contact-form,
.about-zones button,
.rivaya-auth .team-form,
main .land-form :is(input, textarea, select),
dialog .land-form :is(input, textarea, select),
.rivaya-auth .team-form input {
  border-color: var(--rivaya-rule);
}
.about-zones button,
.rivaya-auth .team-form,
main .land-form :is(input, textarea, select),
dialog .land-form :is(input, textarea, select),
.rivaya-auth .team-form input {
  background: var(--rivaya-white);
  color: var(--rivaya-ink);
}
.about-zones button:hover, .about-zones button:focus-visible,
dialog.drawer:has(.drawer-brand) > button:first-child,
dialog:has(.rivaya-auth)[open] { background: var(--rivaya-tint); }
dialog:not(.photo-viewer)[open] { background-color: var(--rivaya-white); }

/* La hauteur maximale reste stable quand Safari masque ses barres au défilement. */
@media (max-width: 760px) {
  main > .hero {
    box-sizing: border-box;
    min-height: 100svh;
    min-height: 100lvh;
  }
  main > .hero .hero-copy {
    padding-bottom: max(72px, env(safe-area-inset-bottom, 0px));
  }
}


@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (prefers-reduced-motion: no-preference) {
    main > .hero h1 i {
      background-image: linear-gradient(105deg, #eddbb7 37%, #f9d16c 46%, #fff1b6 50%, #f9d16c 54%, #eddbb7 63%);
      background-size: 260% 100%;
      background-position: 100% 50%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      animation: rivaya-reflet-dore 3s ease-in-out 80ms infinite !important;
    }
  }
}

@keyframes rivaya-reflet-dore {
  0% { background-position: 100% 50%; }
  72%, 100% { background-position: 0% 50%; }
}

main > .hero .hero-slides { background-image: url("/hero-villa.webp"); }
