/* Areguling Oasis — feuille de style */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/golos-text-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f1e7;
  --sand: #ece5d6;
  --ink: #23221f;
  --muted: #6b675e;
  --line: #d8d0c0;
  --green: #1f4a43;
  --cream: #f6f1e7;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18ch; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.kicker { display: block; margin-bottom: 1.25rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lead { max-width: 34rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; padding: 0.75rem 1rem; background: var(--bg); }
.skip:focus { left: 0; }

/* Liens et boutons */
.link { display: inline-block; padding-bottom: 0.2rem; border-bottom: 1px solid currentColor; font-size: 0.9375rem; text-decoration: none; }
.link:hover { opacity: 0.65; }
.btn { display: inline-block; padding: 0.95rem 1.75rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--green); }
.btn--solid { background: var(--cream); border-color: var(--cream); color: var(--green); }
.btn--solid:hover { background: transparent; color: var(--cream); }

/* En-tête */
.header { position: absolute; inset: 0 0 auto 0; z-index: 5; color: #fff; }
.header .wrap { max-width: none; padding: 0 clamp(1.25rem, 2.5vw, 2.5rem); }
.header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.5rem; }
.brand { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand span { display: block; margin-top: 0.45rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.nav ul { display: flex; gap: clamp(1.1rem, 2.5vw, 2.25rem); }
.nav a, .langs a { font-size: 0.875rem; text-decoration: none; }
.nav a:hover, .langs a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.langs { display: flex; gap: 0.85rem; }
.langs a { letter-spacing: 0.08em; opacity: 0.75; }
.langs a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; }

/* Accueil */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; color: #fff; background: #1b2a33; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 24, 0.5) 0%, rgba(10, 18, 24, 0) 28%), linear-gradient(0deg, rgba(10, 18, 24, 0.8) 0%, rgba(10, 18, 24, 0.45) 40%, rgba(10, 18, 24, 0) 75%), linear-gradient(90deg, rgba(10, 18, 24, 0.35) 0%, rgba(10, 18, 24, 0) 60%); }
.hero__in { position: relative; z-index: 1; width: 100%; padding-top: 9rem; padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.hero .kicker { color: #fff; }
.hero h1 { max-width: 14ch; margin-bottom: 2.25rem; font-size: clamp(2.7rem, 7vw, 5.6rem); }

/* À propos */
.about__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about h2 { margin-bottom: 2rem; }
.about p { max-width: 33rem; }
.about p + p { margin-top: 1.1rem; color: var(--muted); }
.about img, .contact img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* Villas */
.villas { background: var(--sand); }
.villas__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.villas__head h2 { margin-bottom: 1.5rem; }
.villa + .villa { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.villa__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: 1.5rem; }
.villa__head h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

/* Slider de photos (seul effet du site) */
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slider__bar { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.slider__count { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider__btns { display: flex; gap: 0.6rem; }
.slider__btn { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.slider__btn:hover { background: var(--ink); color: var(--bg); }
.slider__btn[disabled] { opacity: 0.3; cursor: default; background: transparent; color: var(--ink); }
.slider__btn svg { width: 1.1rem; height: 1.1rem; }

.features { margin-top: clamp(4rem, 8vw, 7rem); }
.features h3 { margin-bottom: 2rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.features ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
.features li { padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: 0.9688rem; }

/* Détails */
.details h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 20ch; }
.details__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.5vw, 1.25rem); }
.details__grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* Situation */
.location { padding-top: 0; }
.location__photo img { width: 100%; max-height: 82vh; object-fit: cover; }
.location__photo figcaption { margin-top: 0.85rem; font-size: 0.875rem; color: var(--muted); }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); }
.location__text p { max-width: 33rem; }
.location__text p + p { margin-top: 1.1rem; color: var(--muted); }
/* Carte : fond Google Maps centré sur les villas, repère dessiné par le site, clic = ouverture de Google Maps */
.location__map { position: relative; display: block; height: 28rem; margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; background: var(--sand); color: var(--ink); text-decoration: none; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.location__pin { position: absolute; left: 50%; top: 50%; width: 0; }
.location__pin svg { position: absolute; left: -15px; bottom: 0; width: 30px; height: 42px; }
.location__pin b { position: absolute; left: 22px; bottom: 14px; padding: 0.3rem 0.65rem; background: var(--cream); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.location__open { position: absolute; left: 1rem; top: 1rem; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--green); color: var(--cream); font-size: 0.875rem; font-weight: 500; }
.location__map:hover .location__open { background: var(--ink); }

/* Contact */
.contact { background: var(--green); color: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.contact .kicker { color: inherit; opacity: 0.75; }
.contact h2 { margin-bottom: 1.75rem; }
.contact p { max-width: 30rem; }
.contact .btn { margin-top: 2.25rem; }
.contact__list { margin-top: 2.5rem; font-size: 0.9688rem; }
.contact__list li + li { margin-top: 0.4rem; }
.contact__list span { display: inline-block; min-width: 7.5rem; opacity: 0.7; }
.contact__list a { text-underline-offset: 0.3em; }

/* Pied de page */
.footer { padding: 3rem 0; font-size: 0.875rem; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer .brand { color: var(--ink); font-size: 1.6rem; }
.footer .langs a { opacity: 1; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer__links a { color: var(--ink); font-size: 0.9375rem; text-underline-offset: 0.3em; }
.footer__links a:hover { opacity: 0.65; }
.footer__copy { flex-basis: 100%; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Page 404 */
.error { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.error h1 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 7vw, 5rem); }
.error p { margin-bottom: 2.5rem; color: var(--muted); }
.error .btn:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.error .langs { margin-top: 3rem; }

@media (max-width: 900px) {
  .features ul { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .contact__grid, .location__grid { grid-template-columns: 1fr; }
  .about img, .contact img { max-width: 26rem; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header__in { padding-top: 1.1rem; }
  .brand { font-size: 2rem; }
  .location__map { height: 20rem; }
  .nav { order: 3; flex-basis: 100%; }
  .nav ul { justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.35); }
  .langs { gap: 0.7rem; }
  .langs a { font-size: 0.8125rem; }
  .details__grid { grid-template-columns: repeat(2, 1fr); }
  .slide img { aspect-ratio: 4 / 3; }
  .features ul { grid-template-columns: 1fr; }
  .contact__list span { display: block; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .slider__track { scroll-behavior: auto; }
}
