:root {
  --stone: #f6f1e9;
  --stone-2: #ece4d6;
  --ink: #2b2620;
  --muted: #6f655a;
  --red: #9b2335;        /* les volets */
  --red-dark: #7c1b2a;
  --forest: #2f3d2e;
  --forest-2: #3d4f3b;
  --gold: #d9a441;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8rem;
}
.link { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--red-dark); }

/* Buttons */
.btn {
  display: inline-block; padding: .9em 1.6em; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { display: block; text-align: center; margin-top: 1.2rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1140px) / 2));
  color: #fff; transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(246, 241, 233, .94); backdrop-filter: blur(10px);
  color: var(--ink); padding-block: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav__brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.nav__links { display: flex; gap: 1.6rem; align-items: center; }
.nav__links a { text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .9; }
.nav__links a:hover { opacity: 1; }
.nav__cta { background: var(--red); color: #fff !important; padding: .5em 1.1em; border-radius: 999px; opacity: 1 !important; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor; transition: transform .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle { color: inherit; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; background: var(--stone); color: var(--ink);
    flex-direction: column; justify-content: center; gap: 1.8rem;
    font-size: 1.3rem; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav__links a { font-size: 1.3rem; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav__toggle, .nav__brand { z-index: 1; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden; padding: 120px 16px 80px;
}
.hero__bg {
  position: absolute; inset: -20px;
  background: url("../img/header.jpg") center 40% / cover no-repeat;
  filter: contrast(1.25) saturate(1.3) brightness(1.02);
  animation: slowzoom 24s ease-out forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(30,25,18,.38), rgba(30,25,18,0) 75%), linear-gradient(180deg, rgba(30,25,18,.25) 0%, rgba(30,25,18,0) 25%, rgba(30,25,18,0) 75%, rgba(30,25,18,.3) 100%);
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__kicker { letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 600; opacity: .9; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 7rem); font-weight: 400; margin-bottom: .2em; letter-spacing: -.02em; }
.hero__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.4rem); opacity: .95; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; z-index: 1; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.7); border-radius: 20px; transform: translateX(-50%);
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Facts */
.facts {
  position: relative; z-index: 2; width: min(960px, 100% - 32px); margin: -56px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(43,38,32,.12);
}
.facts__item { padding: 1.6rem 1rem; text-align: center; }
.facts__item + .facts__item { border-left: 1px solid var(--stone-2); }
.facts__item strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--red); }
.facts__item span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--stone-2); }
}

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tint { background: var(--stone-2); }
.section--dark { background: #e3e8d8; color: var(--ink); }
.section--dark .eyebrow { color: var(--red); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse { margin-bottom: 4rem; }
.split__media { position: relative; padding-bottom: 60px; }
.split__media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(43,38,32,.15); }
.split__media-small {
  position: absolute; width: 55%; right: -20px; bottom: 0;
  border: 6px solid var(--stone);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media-small { right: 0; }
}

.poem {
  margin: 2rem 0 0; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 3px solid var(--red);
  font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.02rem;
}

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.room { background: var(--stone); border-radius: var(--radius); padding: 2rem; }
.room h3 { color: var(--red); }
.room ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.room li { margin-bottom: .5rem; }
.beds { list-style: none; padding: 0 !important; }
.beds li { display: flex; flex-direction: column; padding: .7rem 0; border-bottom: 1px dashed var(--stone-2); margin: 0 !important; }
.beds span { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 860px) { .rooms { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; }
.gallery__item {
  padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 10px; background: var(--stone-2);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: auto; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff;
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1rem;
}
.feature p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* Distances */
.distances { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 30px rgba(43,38,32,.07); }
.distances ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--stone-2); }
.distances b { color: var(--red); white-space: nowrap; }

.subhead { text-align: center; margin-bottom: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--stone-2); border-radius: var(--radius); padding: 1.8rem; }
.card h4 { font-size: 1.2rem; color: var(--red); }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: .4rem 0; }
.card small { color: var(--muted); margin-left: .3rem; }
.card a { text-decoration-color: rgba(155,35,53,.4); text-underline-offset: 3px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Access */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tabs button {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: .55em 1.1em; border-radius: 999px; border: 1px solid #d3c8b5; background: transparent; color: var(--ink);
}
.tabs button[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.route { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5rem; }
.route li {
  counter-increment: step; position: relative; padding: 0 0 1rem 2.4rem; font-size: .96rem;
}
.route li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: #fff; color: var(--red); font-size: .8rem; font-weight: 600;
  display: grid; place-items: center;
}
.route li:not(:last-child)::after {
  content: ""; position: absolute; left: .8rem; top: 1.7rem; bottom: .2rem; width: 1px; background: #cfc3ae;
}
.route small { color: var(--muted); white-space: nowrap; }
.route__end { font-weight: 600; }
.route__end::before { content: "★" !important; background: var(--red) !important; color: #fff !important; }
.access__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #ddd; }
.access__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* Contact */
.contact { position: relative; padding: clamp(80px, 12vw, 140px) 0; color: var(--ink); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background: url("../img/3.jpg") center / cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(246,241,233,.95) 0%, rgba(246,241,233,.85) 55%, rgba(246,241,233,.55) 100%); }
.contact__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.contact .eyebrow { color: var(--red); }
.contact__inner > div > p:last-child { opacity: .9; font-size: 1.05rem; }
.contact__card { background: var(--stone); color: var(--ink); border-radius: var(--radius); padding: 2rem; }
.contact__line {
  display: flex; flex-direction: column; text-decoration: none; padding: .8rem 0;
  border-bottom: 1px solid var(--stone-2); font-family: var(--serif); font-size: 1.3rem;
}
.contact__line span { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__line:hover { color: var(--red); }
.contact__ref { text-align: center; font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--stone-2); color: var(--muted); padding: 2.5rem 0; font-size: .92rem; }
.footer strong { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--red); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,13,10,.94);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #e8e1d4; font-family: var(--serif); font-style: italic; margin-top: 1rem; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; padding: 12px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { position: absolute; top: 12px; right: 16px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* Lisibilité du texte sur la photo d'en-tête */
.hero__content { text-shadow: 0 2px 18px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35); }
.btn { text-shadow: none; }
.contact__card { box-shadow: 0 20px 50px rgba(43,38,32,.15); background: #fff; }
.feature svg { box-shadow: 0 4px 14px rgba(43,38,32,.08); }
.nav:not(.is-scrolled):not(.is-open) { background: linear-gradient(180deg, rgba(30,25,18,.4), rgba(30,25,18,0)); }
.nav:not(.is-scrolled):not(.is-open) .nav__brand,
.nav:not(.is-scrolled):not(.is-open) .nav__links a:not(.nav__cta) { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
