/* Gîtes de Nohèdes — site.css — v1.0.1
   Style « A+E » : pierre sur fond de carte. Toutes les couleurs et polices sont ici. */

@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ground: #EEF0E6;        /* fond sauge */
  --ground-deep: #E3E7D8;   /* sauge plus soutenu */
  --band: #E9ECE8;          /* bandeau réservation */
  --paper: #FFFFFF;
  --ink: #22301F;           /* texte principal, vert très sombre */
  --ink-soft: #4A5A45;      /* texte secondaire */
  --ink-mid: #3D4B39;
  --line: #C3CBB6;          /* lignes de niveau, filets */
  --line-soft: #D3D9C8;
  --line-strong: #9DA894;
  --ochre: #D9A441;         /* boutons */
  --ochre-light: #F0C46B;   /* accents sur photo */
  --ochre-text: #7A5410;    /* accents en texte sur fond clair */
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ochre-text); }
:focus-visible { outline: 3px solid var(--ochre-text); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 8px; }
.ph { background: #FFF3C4; color: var(--ink); padding: 0 3px; }

/* Bandeau version de travail */
.draft { background: #FFF3C4; color: var(--ink); font-size: 14px; text-align: center; padding: 8px var(--gutter); }

/* En-tête */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--serif); font-size: 44px; line-height: 1; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.nav a { text-decoration: none; padding: 10px 0; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 4px; font-size: 14px; letter-spacing: 0.06em; }
.langs a, .langs span { padding: 8px 6px; text-decoration: none; }
.langs [aria-current="true"] { font-weight: 600; text-decoration: underline; }
.langs span[aria-disabled] { color: var(--ink-soft); opacity: 0.6; cursor: default; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: #E4B358; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #33452E; color: var(--ground); }

/* Diaporama en fondu */
.fader { position: relative; overflow: hidden; background: var(--ink); }
.fader .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--fade, 1.5s) ease-in-out; }
.fader .slide.is-active { opacity: 1; }
.fader .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to bottom, rgba(22, 30, 20, 0) 0%, rgba(22, 30, 20, 0.74) 100%); pointer-events: none; }
.fader-controls { display: flex; align-items: center; gap: 2px; }
.fader-controls button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #FFFFFF; }
.fader-controls .dot { display: block; width: 10px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.75); transition: width 0.3s ease, background 0.3s ease; }
.fader-controls [aria-current="true"] .dot { width: 28px; background: var(--ochre-light); }
.fader-caption { position: relative; height: 1.6em; }
.fader-caption span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity var(--fade, 1.5s) ease-in-out; }
.fader-caption span.is-active { opacity: 1; }

/* Page d'accueil — en-tête photo */
.hero { height: min(720px, 86vh); min-height: 520px; display: flex; align-items: flex-end; }
.hero-inner { position: relative; width: 100%; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; color: #FFFFFF; }
.kicker { color: var(--ochre-light); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.01em; max-width: 860px; }
.hero h1 em, .house-hero .en { color: var(--ochre-light); }
.hero .fader-caption { margin-top: 16px; font-size: 15px; color: #E3E8DC; }

/* Lignes de niveau */
.contours { position: relative; overflow: hidden; }
.contours > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours > .wrap { position: relative; }

/* Introduction et chiffres */
.intro .wrap { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.intro p { flex: 1 1 420px; font-size: 22px; line-height: 1.55; }
.stats { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; align-content: start; margin: 0; padding: 0; list-style: none; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 12px; text-decoration: none; display: block; }
.stat .v { font-family: var(--serif); font-size: 40px; line-height: 1; }
.stat .v .star { font-size: 28px; color: var(--ochre-text); }
.stat .l { color: var(--ink-soft); font-size: 15px; }
.stat .l u { text-decoration: underline; }

/* Titres de section */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2, .h2 { font-size: clamp(34px, 4vw, 48px); }
.section-head p { color: var(--ink-soft); max-width: 520px; }

/* Cartes des maisons */
.houses .wrap { padding-top: 24px; padding-bottom: 64px; }
.house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.house-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.house-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.house-card .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.house-card .name { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.house-card .meta, .house-card .text { color: var(--ink-soft); font-size: 16px; }
.house-card .meta { white-space: nowrap; font-size: 15px; }
.house-card:hover .name { color: var(--ochre-text); }

/* Saisons */
.seasons .wrap { padding-bottom: 88px; }
.seasons .fader { height: min(560px, 70vh); min-height: 360px; }
.season-text { position: absolute; left: 32px; right: 32px; bottom: 28px; height: 120px; color: #FFFFFF; }
.season-text div { position: absolute; left: 0; bottom: 0; opacity: 0; transition: opacity var(--fade, 5s) ease-in-out; }
.season-text div.is-active { opacity: 1; }
.season-text strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.season-text span { display: block; margin-top: 8px; font-size: 18px; color: #E3E8DC; max-width: 560px; }
.fader-pause { position: absolute; top: 12px; right: 12px; background: rgba(22, 30, 20, 0.45); border-radius: 22px; }
.season-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.season-tabs button { min-height: 64px; border: 0; border-top: 4px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--serif); font-size: 24px; transition: background 0.6s ease, border-color 0.6s ease; }
.season-tabs button[aria-current="true"] { border-top-color: var(--ochre); background: var(--ground-deep); }

/* Nous */
.us .wrap { padding-top: 24px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.us-photo { flex: 0 0 200px; height: 200px; border-radius: 50%; background: var(--ground-deep); border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); font-size: 15px; padding: 16px; }
.us-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }
.us-text p { color: var(--ink-mid); max-width: 760px; }

/* Bandeau réservation */
.band { background: var(--band); }
.band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.band h2 { flex: 1 1 520px; font-size: clamp(32px, 4vw, 44px); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); font-size: 16px; }
.site-footer .cols { padding-top: 48px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-footer h2 { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.site-footer .brand-s { font-family: var(--serif); font-size: 26px; }
.site-footer .soft { color: var(--ink-soft); }
.site-footer .base { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 14px; }

/* Page maison */
.house-hero { height: min(640px, 80vh); min-height: 480px; }
.house-hero .hero-inner { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 36px; }
.crumbs { font-size: 14px; color: #E3E8DC; margin-bottom: 12px; }
.crumbs a { color: #E3E8DC; }
.house-hero h1 { font-size: clamp(30px, 4vw, 54px); line-height: 1.06; }
.house-hero .sub { margin-top: 10px; font-size: 18px; color: #E3E8DC; }
.house-hero .en { font-family: var(--serif); font-style: italic; font-size: 22px; }
.facts { border-bottom: 1px solid var(--line); }
.facts .wrap { padding-top: 28px; padding-bottom: 28px; }
.facts ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.house-main { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.house-content { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.house-content section { display: flex; flex-direction: column; gap: 16px; }
.house-content h2 { font-size: clamp(32px, 3.5vw, 40px); }
.lead { font-size: 20px; }
.muted { color: var(--ink-mid); }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rooms figure, .around figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rooms img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rooms .missing { aspect-ratio: 4 / 3; background: var(--ground-deep); border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 15px; }
.rooms .rn { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.rooms .rb { color: var(--ink-soft); font-size: 16px; }
.equip { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.equip li { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.equip li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--ochre); transform: translateY(-2px); }
.around { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; }
.around img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.around figcaption, .caps { color: var(--ink-soft); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.review { background: var(--paper); border: 1px solid var(--line-soft); padding: 22px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.review.placeholder { background: #F6F7F2; border-style: dashed; border-color: var(--line-strong); color: var(--ink-soft); }
.review .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.review .top b { letter-spacing: 0.08em; text-transform: uppercase; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.review .who { margin-top: auto; font-size: 15px; color: var(--ink-soft); }
.review .who strong { color: var(--ink); }
.practical { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.practical div { border-top: 1px solid var(--line); padding-top: 10px; }
.practical dt { font-weight: 600; }
.practical dd { margin: 0; color: var(--ink-soft); }
.map { width: 100%; height: 360px; object-fit: cover; border: 1px solid var(--line); display: block; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.booking { flex: 1 1 340px; min-width: 0; background: var(--paper); border-top: 4px solid var(--ochre); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.booking h2 { font-size: 30px; }
.booking .price { color: var(--ink-soft); font-size: 16px; margin-top: 4px; }
.booking .price strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); }
.booking ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.booking .btn { width: 100%; }
.booking .small { font-size: 15px; color: var(--ink-soft); }
.others { border-top: 1px solid var(--line); }
.others .wrap { padding-top: 56px; padding-bottom: 72px; }
.others .house-card img { aspect-ratio: 3 / 2; }

/* Pages de texte (avis, contact, mentions) */
.page-hero { position: relative; }
.page-hero img { width: 100%; height: 340px; object-fit: cover; }
.page-hero .card { position: relative; margin-top: -120px; background: var(--ground); padding: 32px 32px 8px 0; max-width: 820px; }
.page-hero h1, .text-page h1 { font-size: clamp(38px, 5vw, 56px); }
.page-hero p { color: var(--ink-soft); margin-top: 10px; }
.text-page .wrap { padding-top: 56px; padding-bottom: 80px; }
.text-page .body { max-width: 820px; display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.text-page h2 { font-size: 28px; margin-bottom: 8px; }
.text-page p { color: var(--ink-mid); }
.table-box { overflow-x: auto; background: var(--paper); border: 1px solid var(--line-soft); }
.table-box table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 17px; }
.table-box th, .table-box td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.table-box thead th { color: var(--ink-soft); font-weight: 600; }
.table-box tbody th { font-weight: 600; }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.block { padding-top: 56px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.contact-grid div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.contact-grid dt { color: var(--ink-soft); font-size: 15px; }
.contact-grid dd { margin: 0; font-family: var(--serif); font-size: 26px; }

@media (max-width: 720px) {
  .brand { font-size: 34px; }
  .header-tools { width: 100%; justify-content: space-between; }
  .intro .wrap { padding-bottom: 64px; }
  .season-text { left: 20px; right: 20px; }
  .fader .shade { height: 90%; }
  .page-hero .card { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fader .slide, .fader-caption span, .season-text div { transition: none; }
}
