/* Gîte Les Érables — feuille de style
   Palette : badigeon clair (fond), chêne (texte), grès rose des Vosges (accent), vert vigne, or riesling.
   Polices : Vollkorn (titres et texte), Source Sans 3 (navigation, boutons, tableaux). */

@font-face { font-family: "Vollkorn"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/vollkorn-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Vollkorn"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/vollkorn-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Vollkorn"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/vollkorn-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Vollkorn"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/vollkorn-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --chaux: #F3F4EB;
  --chaux-2: #E6EAD8;
  --poutre: #2F2419;
  --poutre-2: #5C4C3C;
  --gres: #9C4F42;
  --gres-dark: #7E3E33;
  --vigne: #5B6B2F;
  --riesling: #D9A94A;
  --line: #CFD3BC;
  --white: #FFFFFF;
  --serif: "Vollkorn", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --radius: 4px;
  --beams: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='16' viewBox='0 0 80 16'%3E%3Cpath fill='%232F2419' d='M0 12.5h80V16H0zM4 0h3.5v12.5H4zM44 0h3.5v12.5H44zM8.5 12.5 42.5 0l1.4 3L12.5 12.5z'/%3E%3C/svg%3E");
}

*, *::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 { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--chaux);
  color: var(--poutre);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gres); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--gres-dark); }
:focus-visible { outline: 3px solid var(--riesling); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; max-width: 60ch; color: var(--poutre-2); }
.small { font-family: var(--sans); font-size: 0.9rem; color: var(--poutre-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--poutre); color: var(--chaux); padding: 0.5rem 1rem; font-family: var(--sans); z-index: 100; }
.skip:focus { top: 1rem; }

/* --- Boutons --- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.8em 1.3em; border-radius: var(--radius); border: 2px solid var(--poutre);
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--poutre); color: var(--chaux); }
.btn-primary:hover { background: var(--gres); border-color: var(--gres); color: var(--white); }
.btn-ghost { background: transparent; color: var(--poutre); }
.btn-ghost:hover { background: var(--poutre); color: var(--chaux); }
.btn-lg { font-size: 1.1rem; padding: 0.95em 1.6em; }
.arrow-link { font-family: var(--sans); font-weight: 600; }

/* --- En-tête --- */
.site-header { background: var(--chaux); border-bottom: 1px solid var(--line); position: relative; }
.beams { height: 16px; background: var(--beams) repeat-x left bottom; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--poutre); display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; }
.brand-sub { font-family: var(--sans); font-size: 0.85rem; color: var(--poutre-2); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav-list, .lang-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; font-family: var(--sans); }
.nav-list a { color: var(--poutre); text-decoration: none; font-weight: 600; padding: 0.3em 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--gres); }
.lang-list { gap: 0.2rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.lang-list a { color: var(--poutre-2); text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 0.25em 0.45em; border-radius: var(--radius); }
.lang-list a[aria-current="true"] { background: var(--poutre); color: var(--chaux); }
.lang-list a:hover { color: var(--poutre); }
.menu-btn { display: none; }

@media (max-width: 56em) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 2px solid var(--poutre);
    border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: 0.5em 0.8em; color: var(--poutre); cursor: pointer;
  }
  .menu-icon { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 0.5rem; }
  .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; gap: 0.5rem; }
  .lang-list { border-left: 0; padding-left: 0; }
}

/* --- Accueil : hero --- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); } }
.hero-text h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.rating { font-family: var(--sans); font-size: 0.95rem; color: var(--poutre); text-decoration: none; display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.rating:hover span:last-of-type { text-decoration: underline; }
.stars { color: var(--riesling); letter-spacing: 0.05em; font-size: 1.05em; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border: 7px solid var(--poutre); outline: 2px solid var(--chaux); outline-offset: -11px; background: var(--poutre); }
.facts { list-style: none; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; padding: 0.9rem 1.5rem 0.9rem 0; margin-right: 1.5rem; border-right: 1px solid var(--line); min-width: 8rem; }
.facts li:last-child { border-right: 0; }
.facts strong { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.1; }
.facts span { font-family: var(--sans); font-size: 0.9rem; color: var(--poutre-2); }

/* --- Sections --- */
.section { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.section-alt { background: var(--chaux-2); }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0.5rem; }
.page-head h1 { max-width: 20ch; }
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .split-reverse > :first-child { order: 2; }
}
.prose { max-width: 62ch; }
.prose-narrow { max-width: 70ch; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--poutre-2); margin-top: 0.5rem; }
.photo-trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.photo-trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-trio a { display: block; }
@media (max-width: 40em) { .photo-trio { grid-template-columns: 1fr; } .photo-trio li:nth-child(n+2) { display: none; } .facts li:nth-child(even) { border-right: 0; } }
@media (min-width: 56em) { .photo-trio-vertical { grid-template-columns: 1fr; } }

/* --- Tableaux --- */
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.98rem; }
caption { text-align: left; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; color: var(--poutre-2); font-size: 0.9rem; }
tbody th { font-weight: 600; }
.distances { margin-top: 1.5rem; }
.distances td:last-child, .distances th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.distances-wide { max-width: 40rem; }
.table-scroll { overflow-x: auto; }
.rooms th:first-child { white-space: nowrap; }
.plan-row { margin-top: 2.5rem; }
.plan img { background: var(--white); }

/* --- Avis --- */
.airbnb-score { font-family: var(--sans); }
.airbnb-score a { color: var(--poutre); text-decoration: none; }
.airbnb-score a:hover { text-decoration: underline; }
.reviews-intro { max-width: 62ch; color: var(--poutre-2); }
.reviews { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 56em) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.review blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--gres); font-style: italic; }
.review blockquote p { margin: 0; }
.review-meta { font-family: var(--sans); font-size: 0.9rem; color: var(--poutre-2); margin: 0.6rem 0 0 1rem; }

/* --- Saisons --- */
.seasons { display: grid; gap: 1.5rem; margin: 0; }
@media (min-width: 40em) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .seasons { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.seasons dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.3rem; }
.seasons dd { margin: 0; color: var(--poutre-2); }

/* --- Bande d'appel --- */
.cta-band { background: var(--poutre); color: var(--chaux); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: var(--chaux); }
.cta-band p { max-width: 55ch; margin: 0; color: #E8E2D4; }
.cta-row { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56em) { .cta-row { grid-template-columns: 1.3fr 1fr; } .cta-actions { justify-self: end; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-primary { background: var(--chaux); color: var(--poutre); border-color: var(--chaux); }
.cta-band .btn-primary:hover { background: var(--riesling); border-color: var(--riesling); }
.cta-band .btn-ghost { color: var(--chaux); border-color: var(--chaux); }
.cta-band .btn-ghost:hover { background: var(--chaux); color: var(--poutre); }

/* --- Pied de page --- */
.site-footer { background: var(--chaux-2); border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; font-family: var(--sans); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-title { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer-address { font-style: normal; }
.footer-links { list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { color: var(--poutre); }
.footer-links-small a { color: var(--poutre-2); font-size: 0.9rem; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }

/* --- Le gîte --- */
.amenities { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 40em) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .amenities { grid-template-columns: repeat(4, 1fr); } }
.amenity-group ul { margin: 0; padding-left: 1.1rem; }
.amenity-group li { margin-bottom: 0.3rem; }
.amenity-group li::marker { color: var(--vigne); }
.options { margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.options div { display: grid; grid-template-columns: minmax(9rem, 0.6fr) 1fr; gap: 0.5rem 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.options dt { font-family: var(--sans); font-weight: 600; }
.options dd { margin: 0; }

/* --- Photos --- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40em) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.gallery a { display: block; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(28, 20, 14, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--chaux); font-family: var(--sans); margin-top: 0.75rem; }
.lightbox button { position: fixed; background: rgba(243, 244, 235, 0.12); color: var(--chaux); border: 0; font-size: 2.2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(243, 244, 235, 0.3); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }

/* --- Réserver --- */
.booking-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56em) { .booking-grid { grid-template-columns: 1.25fr 0.85fr; gap: 3rem; } }
.booking-form, .airbnb-card, .contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); }
.booking-form h2 { font-size: 1.5rem; }
.field-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-family: var(--sans); }
.field span { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 0.6em 0.7em; border: 1px solid #A9AD98; border-radius: var(--radius); background: var(--white); color: var(--poutre); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--riesling); outline-offset: 1px; border-color: var(--poutre); }
.form-error { font-family: var(--sans); color: var(--gres-dark); font-weight: 600; margin: 0 0 1rem; }
.form-status { font-family: var(--sans); font-weight: 600; margin: 0 0 1rem; }
.booking-form .btn { width: 100%; text-align: center; margin-bottom: 0.75rem; }
.airbnb-score-big { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--sans); margin-bottom: 1rem; }
.airbnb-score-big strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.airbnb-score-big .of5 { font-size: 1.2rem; color: var(--poutre-2); font-weight: 400; }
.airbnb-facts { margin: 0 0 1.25rem; padding-left: 1.1rem; font-family: var(--sans); }
.airbnb-facts li { margin-bottom: 0.4rem; }
.airbnb-facts li::marker { color: var(--vigne); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; padding-top: 0.5rem; border-top: 3px solid var(--poutre); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 700; font-size: 2.2rem; color: var(--gres); line-height: 1; margin-bottom: 0.5rem; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--poutre-2); }

/* --- Calendrier --- */
.calendar { display: grid; gap: 1.5rem; font-family: var(--sans); }
@media (min-width: 48em) { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .calendar { grid-template-columns: repeat(3, 1fr); } }
.cal-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cal-nav button { background: none; border: 2px solid var(--poutre); border-radius: var(--radius); font: inherit; font-weight: 600; padding: 0.4em 0.9em; cursor: pointer; color: var(--poutre); }
.cal-nav button:disabled { opacity: 0.4; cursor: default; }
.cal-month table { table-layout: fixed; }
.cal-month caption { font-family: var(--serif); font-size: 1.1rem; }
.cal-month th { text-align: center; font-size: 0.8rem; color: var(--poutre-2); border: 0; padding: 0.3rem 0; }
.cal-month td { text-align: center; padding: 0; border: 0; }
.cal-month td span { display: block; padding: 0.4rem 0; margin: 2px; border-radius: var(--radius); font-size: 0.95rem; }
.cal-month td.booked span { background: #D8D5C8; color: #7A7266; text-decoration: line-through; }
.cal-month td.past span { color: #B3B0A5; }
.cal-legend { grid-column: 1 / -1; display: flex; gap: 1.5rem; font-size: 0.9rem; }
.cal-legend span::before { content: ""; display: inline-block; width: 0.9em; height: 0.9em; border-radius: 2px; margin-right: 0.4em; vertical-align: -0.1em; border: 1px solid var(--line); background: var(--white); }
.cal-legend .is-booked::before { background: #D8D5C8; }

/* --- Contact --- */
.contact-list { margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list dt { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--poutre-2); }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list address { font-style: normal; }
.map { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--chaux-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-form { max-width: 44rem; }
.contact-form .field { margin-bottom: 1rem; }

/* --- 404 --- */
.page-404 main { min-height: 60vh; }

/* --- Impression --- */
@media print {
  .site-header, .cta-band, .site-footer .footer-links, .menu-btn, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
