@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Inter:wght@400;500;600&display=swap");

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #f6ecd9;
  --panel: #efdfc0;
  --ink: #372a1c;
  --ink-soft: #7a6650;
  --line: rgba(87, 62, 33, 0.18);
  --accent: #c17a34;
  --accent-deep: #a35f22;
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select, input[type="date"] { cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 6vw;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.6);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 150ms ease, opacity 150ms ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 36px);
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 140ms ease;
}

.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }

.nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 140ms ease, background-color 140ms ease;
}

.nav-cta:hover, .nav-cta:focus-visible { opacity: 0.8; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: clamp(50px, 7vw, 90px) 6vw clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.12;
  color: var(--ink);
}

.hero__text {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.68;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.button--primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.button--primary:hover, .button--primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
}

.button--ghost:hover, .button--ghost:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.button--light {
  color: var(--ink);
  background: #fff;
  border: 1px solid #fff;
}

.button--light:hover, .button--light:focus-visible { opacity: 0.85; }

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* =========================================================
   SECTIONS GÉNÉRALES
   ========================================================= */

.section { padding: clamp(64px, 8vw, 110px) 6vw; }
.section--tight { padding-top: clamp(0px, 2vw, 20px); }

.section-heading { max-width: 600px; margin: 0 0 44px; }

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* =========================================================
   INTRO / LA MAISON
   ========================================================= */

.intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.intro__photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
}

.intro__content h2 {
  max-width: 560px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.16;
}

.intro__content > p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.tag-list {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.tag-list span {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.tag-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* =========================================================
   INTÉRIEUR — DUO PHOTOS
   ========================================================= */

.duo { background: var(--panel); }

.duo__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.duo__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.duo__photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.duo__text {
  align-self: center;
  padding-left: clamp(10px, 3vw, 40px);
}

.duo__text h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.16;
}

.duo__text > p {
  margin: 18px 0 0;
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

/* =========================================================
   CHAMBRES
   ========================================================= */

.rooms { background: var(--bg); }

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
}

.room-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.room-card img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--radius);
}

.room-card__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.room-card__meta h3 {
  font-size: 1.08rem;
  font-weight: 500;
}

.room-card__meta p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.55;
}

/* =========================================================
   ENVIRONS — PLEIN ÉCRAN
   ========================================================= */

.experience {
  position: relative;
  min-height: 480px;
  padding: 7vw 6vw;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.experience__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(30, 29, 25, 0.72), rgba(30, 29, 25, 0.18) 65%);
}

.experience__content { max-width: 580px; }

.experience h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.15;
}

.experience .eyebrow { color: rgba(255, 255, 255, 0.78); }

.experience__content > p:not(.eyebrow) {
  margin: 18px 0 28px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.68;
}

/* =========================================================
   AVIS
   ========================================================= */

.testimonial { background: var(--bg); }

.testimonial__note {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  border-left: 3px solid var(--accent);
  padding-left: 26px;
}

.testimonial__note blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
}

.testimonial__note cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* =========================================================
   RÉSERVATION
   ========================================================= */

.booking { background: var(--panel); }

.booking__intro { max-width: 540px; margin: 0 0 44px; }

.booking__intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.16;
}

.booking__intro p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.68;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 34px;
}

.booking-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.booking-field span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font-size: 0.96rem;
  transition: border-color 140ms ease;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--accent);
}

.booking-field textarea {
  min-height: 90px;
  line-height: 1.5;
  resize: vertical;
}

.booking-field--message,
.booking-field--submit { grid-column: 1 / -1; }

.search-button {
  min-height: 50px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  transition: background-color 140ms ease;
}

.search-button:hover, .search-button:focus-visible { background: var(--accent-deep); }
.search-button:disabled { cursor: wait; opacity: 0.6; }

.search-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* =========================================================
   PAGE — ACTIVITÉS
   ========================================================= */

.page-hero {
  padding: clamp(50px, 7vw, 80px) 6vw clamp(40px, 5vw, 60px);
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.page-hero p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 600px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.activity-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.activity-card__kind {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  background: var(--panel);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-card h3 {
  font-size: 1.18rem;
  font-weight: 500;
}

.activity-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.activity-card p a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.activity-note {
  margin-top: 46px;
  padding: 22px 26px;
  background: var(--panel);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   PAGE — AVIS
   ========================================================= */

.reviews-list {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.review-card {
  padding: 30px 32px;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.review-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink);
}

.review-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* =========================================================
   GALERIE PLEIN ÉCRAN
   ========================================================= */

.gallery-trigger {
  cursor: zoom-in;
  display: block;
}

.gallery-trigger-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-trigger-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background-color 200ms ease;
  pointer-events: none;
}

.gallery-trigger-wrap:hover::after,
.gallery-trigger-wrap:focus-within::after {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 17, 10, 0.88);
  opacity: 0;
  transition: opacity 200ms ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox__image {
  max-width: min(88vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__close {
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 36px 6vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer__links { display: flex; gap: 24px; justify-self: center; }

.footer__links a, .footer__contact a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer__links a:hover, .footer__contact a:hover { color: var(--ink); }

.footer__contact {
  justify-self: end;
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer__contact span { font-size: 0.8rem; }

/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 26px;
  max-width: min(560px, calc(100% - 30px));
  padding: 14px 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 1080px) {
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }

  .intro { grid-template-columns: 1fr; }
  .intro__photo { order: -1; }

  .duo__grid { grid-template-columns: 1fr; }
  .duo__text { padding-left: 0; margin-top: 24px; }

  .room-grid, .room-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .booking-form { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .navbar { padding: 16px 6vw; }

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    z-index: 39;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 6vw 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 2px; font-size: 0.95rem; }

  .nav-cta { display: none; }

  .hero__actions { flex-direction: column; }
  .hero__actions .button { width: 100%; }

  .duo__photos { grid-template-columns: 1fr; }

  .activity-grid { grid-template-columns: 1fr; }

  .room-grid, .room-grid--3 { grid-template-columns: 1fr; }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer__contact { justify-self: center; text-align: center; }
}

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