@import url('../fonts/fonts.css');

/* =========================================================
   Cœur de vie — feuille de style unique
   Palette dérivée du logo (or #B88840) — aucune dépendance externe
   ========================================================= */

:root {
  --gold: #b88840;
  --gold-deep: #9c7134;
  --gold-soft: #c9a165;
  --gold-wash: #f5efe4;

  --ink: #1b1815;
  --charcoal: #2e2a25;
  --body: #4a443c;
  --muted: #7d756a;
  --line: #e7e0d5;
  --cream: #fbf8f3;
  --white: #ffffff;

  --max: 1180px;
  --gutter: 20px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(27, 24, 21, .06), 0 4px 12px rgba(27, 24, 21, .05);
  --shadow-md: 0 2px 4px rgba(27, 24, 21, .06), 0 12px 32px rgba(27, 24, 21, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: .18em; }
a:hover { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; font-size: .9rem;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- mise en page ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
section { padding-block: clamp(56px, 9vw, 104px); }
.bg-cream { background: var(--cream); }
.bg-wash { background: var(--gold-wash); }

.eyebrow {
  font-family: var(--sans);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.lead { font-size: 1.1rem; color: var(--body); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-deep); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-wash); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold-wash); color: var(--gold-deep); }
.btn--block { width: 100%; }

/* Lien de réservation non encore configuré — visible pour la recette, à remplacer */
.btn--todo { background: #8d8d8d; color: #fff; cursor: not-allowed; position: relative; }
.btn--todo:hover { background: #7a7a7a; color: #fff; }
.todo-note {
  display: block; margin-top: 10px; font-size: .78rem; line-height: 1.5;
  color: #b1441f; background: #fff4ef; border: 1px dashed #e0a58c;
  border-radius: var(--radius); padding: 8px 12px;
}

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max); margin-inline: auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 3px; }
.brand__name {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 600;
  color: var(--ink); line-height: 1.05; display: block;
}
.brand__sub {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--charcoal);
  text-decoration: none; padding: 9px 14px; border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--gold-deep); background: var(--gold-wash); }
.nav a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 11px 20px; font-size: .8rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 65px 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100dvh - 65px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav .btn { margin: 16px 0 0; padding: 15px; font-size: .88rem; border-bottom: 0; }
}

/* ---------- héros ---------- */
.hero { position: relative; isolation: isolate; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 14, .58) 0%, rgba(20, 17, 14, .40) 42%, rgba(20, 17, 14, .72) 100%);
}
.hero__inner {
  max-width: var(--max); margin-inline: auto; padding: clamp(96px, 17vw, 190px) var(--gutter);
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.hero .eyebrow { color: #e3c893; text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }
.hero__tagline {
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.85rem);
  color: rgba(255, 255, 255, .93); max-width: 40ch; margin: 0 auto;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* héros de page intérieure */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero .wrap { padding-block: clamp(48px, 8vw, 84px); }

/* ---------- cartes logement ---------- */
.lodging {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.lodging + .lodging { margin-top: clamp(56px, 9vw, 104px); }
.lodging--flip .lodging__media { order: 2; }
.lodging__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.lodging__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.lodging__media:hover img { transform: scale(1.035); }
@media (max-width: 800px) {
  .lodging { grid-template-columns: 1fr; }
  .lodging--flip .lodging__media { order: 0; }
}

/* ---------- puces de caractéristiques ---------- */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 500; color: var(--charcoal);
  background: var(--gold-wash); border: 1px solid #ece2d0;
  border-radius: 999px; padding: 7px 15px;
}
.facts svg { width: 16px; height: 16px; flex: none; color: var(--gold-deep); }
.hero .facts { justify-content: center; }
.hero .facts li { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }
.hero .facts svg { color: var(--gold-soft); }

/* ---------- galerie ---------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.gallery button {
  padding: 0; border: 0; background: var(--cream); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; display: block; width: 100%;
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.gallery button:hover img { transform: scale(1.05); opacity: .93; }

/* visionneuse */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 13, 11, .95);
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: calc(100dvh - 130px);
  width: auto; object-fit: contain; border-radius: var(--radius);
}
.lightbox__bar {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .85); font-size: .85rem; font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: max(12px, 2vw); }
.lightbox__nav--next { right: max(12px, 2vw); }

/* ---------- équipements ---------- */
.amenities { display: grid; gap: 30px 40px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.amenities h3 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.amenities ul { list-style: none; margin: 0; padding: 0; }
.amenities li { position: relative; padding-left: 20px; font-size: .95rem; margin-bottom: 7px; }
.amenities li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft);
}

/* ---------- blocs d'information ---------- */
.info-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.info-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.info-card h3 { font-size: 1.22rem; margin-bottom: .45em; }
.info-card p { font-size: .95rem; margin-bottom: .7em; }
.info-card ul { margin: 0; padding-left: 1.15em; font-size: .95rem; }
.info-card li { margin-bottom: 6px; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > *:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

/* ---------- encart réservation ---------- */
.booking {
  background: var(--ink); color: rgba(255, 255, 255, .82);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr; align-items: center;
}
.booking h2, .booking h3 { color: #fff; }
.booking p { font-size: .96rem; }
.booking p:last-of-type { margin-bottom: 0; }
@media (max-width: 720px) { .booking { grid-template-columns: 1fr; } }

/* ---------- cartes article ---------- */
.posts { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9cfbe; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 22px 22px 26px; }
.post-card h3 { font-size: 1.28rem; margin-bottom: .35em; color: var(--ink); }
.post-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.post-card__meta { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--gold-deep); margin-top: 3px; }
.contact-list strong { display: block; color: var(--ink); font-size: .96rem; font-weight: 600; }
.contact-list span, .contact-list a { font-size: .95rem; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding-block: clamp(48px, 7vw, 76px) 0; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer .footer-head {
  color: #fff; font-family: var(--sans); font-size: .76rem; font-weight: 600;
  line-height: 1.4; letter-spacing: .15em; text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer-brand img { width: 52px; height: 52px; border-radius: 3px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255, 255, 255, .5); }
.footer-bottom {
  margin-top: 44px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: .84rem;
}

/* ---------- fil d'ariane ---------- */
.crumbs { font-size: .82rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs span { margin-inline: 7px; opacity: .55; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- questions fréquentes ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 0; font-weight: 500; color: var(--ink); font-size: 1.02rem;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::after {
  content: ''; flex: none; width: 11px; height: 11px; margin-top: .45em;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .25s var(--ease);
}
.faq details[open] summary { color: var(--gold-deep); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: .75em; }
.faq details p { margin: -4px 0 22px; padding-right: 34px; color: var(--body); font-size: .97rem; }

/* ---------- adresse du logement ---------- */
.address-line {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 28px; padding: 16px 18px;
  background: var(--gold-wash); border: 1px solid #ece2d0;
  border-radius: var(--radius);
  font-size: .95rem; line-height: 1.55;
}
.address-line svg { width: 19px; height: 19px; flex: none; color: var(--gold-deep); margin-top: 2px; }
.address-line strong { color: var(--ink); font-weight: 600; }
.address-line a { display: block; margin-top: 2px; font-size: .86rem; }
