/* Le Manoir de Bareit — feuille de style
   Palette tirée de la maison : pierre blonde, volets sang-de-bœuf,
   tuiles de terre cuite, vert du parc. */

:root {
  --paper: #f7f1e5;
  --paper-2: #efe5d2;
  --paper-3: #e6d9c0;
  --ink: #2a211b;
  --muted: #6e5f51;
  --red: #8b2a22;
  --red-dark: #6e1f19;
  --terracotta: #b4603b;
  --green: #4a5638;
  --line: #d8cab0;
  --white: #fffdf8;

  --serif-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --serif-text: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: clamp(17px, 1.05vw + 12px, 19.5px);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.6rem); }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }
h3 { font-size: clamp(1.45rem, 1vw + 1rem, 1.8rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: block;
  font-family: var(--serif-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.18em; color: var(--ink); }
.muted { color: var(--muted); }

/* Ornement : petit filet avec losange */
.ornament {
  display: flex; align-items: center; gap: 14px;
  color: var(--terracotta);
  margin: 0 0 1.4rem;
  max-width: 220px;
}
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: 0.55; }
.ornament span { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.center .ornament { margin-left: auto; margin-right: auto; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 229, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 40px; flex: none; color: var(--red); }
.brand-name { font-family: var(--serif-display); font-size: 1.55rem; font-weight: 600; line-height: 1; display: block; }
.brand-place {
  display: block; margin-top: 4px;
  font-family: var(--serif-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.brand:hover { color: var(--ink); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 12px;
  font-family: var(--serif-display); font-size: 1.08rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.nav .nav-cta a {
  margin-left: 8px; padding: 8px 18px;
  border: 1px solid var(--red); color: var(--red); border-radius: var(--radius);
}
.nav .nav-cta a:hover { background: var(--red); color: var(--white); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 42px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { padding: 12px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .nav-cta a { margin: 16px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--serif-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 12px 26px; border-radius: var(--radius);
  border: 1px solid var(--red); background: var(--red); color: var(--white);
  text-decoration: none; transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: var(--white); }
.btn-light { background: transparent; border-color: rgba(255,253,248,.8); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Accueil : grande image ---------- */

.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: #3a3027;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,16,0) 30%, rgba(30,22,16,.55) 68%, rgba(30,22,16,.82) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(40px, 7vh, 80px); }
.hero .eyebrow { color: #f0c9a6; }
.hero h1 { color: var(--white); margin-bottom: 0.3em; max-width: 14ch; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero p { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem); max-width: 40ch; margin-bottom: 1.6em; color: #f6ecdc; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Photos encadrées, façon passe-partout */
.frame { background: var(--white); padding: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(60,40,20,.45); }
.frame img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 0.92rem; font-style: italic; color: var(--muted); padding: 10px 2px 0; }

/* Deux photos qui se chevauchent : la grande à droite, la petite posée devant */
.photo-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.photo-pair .frame:first-child { grid-column: 3 / 13; grid-row: 1; align-self: start; }
.photo-pair .frame:last-child { grid-column: 1 / 6; grid-row: 1; margin-top: var(--drop, 72%); position: relative; z-index: 1; }

/* ---------- Les logis ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 32px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(60,40,20,.55); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.2em; }
.card-meta {
  font-family: var(--serif-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.8em;
}
.card-body p { color: var(--muted); font-size: 0.98em; }
.card-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.card-price { font-size: 0.95em; color: var(--muted); }
.card-price strong { font-family: var(--serif-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.card-link { font-family: var(--serif-display); font-weight: 600; font-size: 1.05rem; color: var(--red); white-space: nowrap; }

/* ---------- Atouts du domaine ---------- */

.features { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.features li { display: flex; gap: 12px; align-items: baseline; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--terracotta); transform: rotate(45deg) translateY(-2px); }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* ---------- Bandeau citation ---------- */

.quote-band { background: var(--green); color: #f2ecdd; text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.quote-band blockquote {
  margin: 0 auto; max-width: 820px;
  font-family: var(--serif-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.5rem); line-height: 1.3;
}
.quote-band cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: #d9c9a3; }

/* ---------- En-tête de page intérieure ---------- */

.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { margin-bottom: 0.15em; }
.page-head .sub { font-family: var(--serif-display); font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); font-style: italic; color: var(--muted); margin: 0; }

.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Fiche d'un logis ---------- */

.stay { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .stay { grid-template-columns: 1fr; } }

.stay-text h2 { font-size: clamp(1.7rem, 1.4vw + 1rem, 2.2rem); margin-top: 1.6em; }
.stay-text h2:first-child { margin-top: 0; }

.facts { list-style: none; padding: 0; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; }

.price-card {
  position: sticky; top: 100px;
  background: var(--white); border: 1px solid var(--line);
  padding: 30px 28px 28px;
  box-shadow: 0 18px 40px -30px rgba(60,40,20,.5);
}
.price-card::before { content: ""; display: block; height: 3px; background: var(--red); margin: -30px -28px 26px; }
.price-card h2 { font-size: 1.7rem; margin-bottom: 0.1em; }
.price-card .muted { font-size: 0.95rem; margin-bottom: 1.2em; }
.prices { margin: 0 0 1.4em; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dotted var(--line); }
.prices dt { color: var(--ink); }
.prices dd { margin: 0; font-family: var(--serif-display); font-size: 1.55rem; font-weight: 600; white-space: nowrap; }
.price-card .btn { display: block; text-align: center; }
.price-card .small { font-size: 0.9rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
@media (max-width: 900px) { .price-card { position: static; } }

/* ---------- Galerie ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh;
}
.lightbox::backdrop { background: rgba(24, 18, 13, 0.88); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; margin: 0 auto; background: var(--white); padding: 8px; }
.lightbox p { color: #efe5d2; text-align: center; font-style: italic; margin: 12px 0 0; }
.lightbox button {
  position: fixed; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 16px; right: auto; }
.lightbox .lb-next { right: 16px; }

/* ---------- Autres logis ---------- */

.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .others { grid-template-columns: 1fr; } }
.other { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.other:hover { color: var(--ink); border-color: var(--terracotta); }
.other img { width: 140px; height: 110px; object-fit: cover; }
.other h3 { font-size: 1.45rem; margin: 0; }
.other span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Bonnes adresses ---------- */

.addresses { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 820px) { .addresses { grid-template-columns: 1fr; } }
.address-list { list-style: none; padding: 0; margin: 0; }
.address-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.address-list li:first-child { border-top: 1px solid var(--line); }
.address-list strong { font-family: var(--serif-display); font-size: 1.35rem; font-weight: 600; display: block; line-height: 1.2; }
.address-list .detail { color: var(--muted); display: block; }
.address-list a[href^="tel"] { white-space: nowrap; }

/* ---------- Pied de page / contact ---------- */

.site-footer { background: #2b221c; color: #e7dcc7; padding: clamp(56px, 8vw, 96px) 0 28px; }
.site-footer a { color: #f0c9a6; }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: clamp(2rem, 2vw + 1rem, 2.7rem); }
.site-footer .eyebrow { color: #d9a27c; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #d9a27c; margin: 0 0 1rem;
}
.footer-grid address { font-style: normal; }
.phones { list-style: none; margin: 0; padding: 0; }
.phones li { padding: 4px 0; }
.phones a { font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.phones small { color: #b7a78e; display: block; font-size: 0.85rem; letter-spacing: 0.04em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 3px 0; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(231,220,199,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: #a8987f;
}

/* ---------- Lien d'évitement ---------- */

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Tableau des tarifs ---------- */

.rates { margin-top: clamp(40px, 6vw, 72px); background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.rates h3 { margin-bottom: 0.8em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rates table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rates th, .rates td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.rates thead th {
  font-family: var(--serif-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink);
}
.rates tbody th { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; }
.rates tbody th a { color: var(--ink); text-decoration: none; }
.rates tbody th a:hover { color: var(--red); }
.rates td { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.rates td:nth-child(2) { font-family: var(--serif-text); font-size: 1rem; font-weight: 400; color: var(--muted); }
.rates tbody tr:last-child > * { border-bottom: 0; }
.small-note { font-size: 0.95rem; margin: 1.2em 0 0; }

/* ---------- Accès ---------- */

.access-address { font-style: normal; margin: 0 0 1.6em; padding-left: 18px; border-left: 2px solid var(--terracotta); }
.map { padding: 10px; }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--paper-3); }

.info-box { background: var(--paper-2); border-left: 3px solid var(--terracotta); padding: 14px 18px; font-size: 0.98rem; }

/* ---------- Barre d'appel sur mobile ---------- */

.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(40,25,15,.5);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    display: block; text-align: center; padding: 14px 6px;
    font-family: var(--serif-display); font-size: 1.1rem; font-weight: 600;
    color: var(--ink); text-decoration: none;
  }
  .callbar a + a { border-left: 1px solid var(--line); }
  .callbar a:first-child { background: var(--red); color: var(--white); }
  body { padding-bottom: 56px; }
}

/* ---------- Apparitions douces ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero > img { animation: hero-zoom 14s ease-out both; }
  @keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
}
