/* ==========================================================
   Le 1821 — Refonte
   Deux directions esthétiques contrôlées par data-theme
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 90px;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- DIRECTION A — Chaleureux artisanal ---------- */
[data-theme="A"] {
  --bg: #f1e7d6;
  --surface: #f9f2e3;
  --surface-2: #ece1cc;
  --ink: #2a1f15;
  --ink-soft: #5a4a3a;
  --line: #d4c5a8;
  --accent: #b75a3c;      /* terre cuite */
  --accent-soft: #d99879;
  --accent-2: #6f6b3f;    /* olive sourde */
  --gold: #a8814a;
  --font-display: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-card: 4px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 0 rgba(60,40,20,0.06);
  --shadow-md: 0 16px 40px -22px rgba(60,40,20,0.35);
}
[data-theme="A"] .display { font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
[data-theme="A"] .display em { font-style: normal; }

/* ---------- DIRECTION B — Élégant raffiné ---------- */
[data-theme="B"] {
  --bg: #f6f1e7;
  --surface: #ffffff;
  --surface-2: #ebe2cf;
  --ink: #16201b;
  --ink-soft: #4d5c52;
  --line: #d8d1bf;
  --accent: #2f4a3a;      /* vert forêt */
  --accent-soft: #6b8275;
  --accent-2: #a98648;    /* laiton */
  --gold: #a98648;
  --font-display: "Cormorant Garamond", "Newsreader", Georgia, serif;
  --font-body: "Albert Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-card: 2px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 0 rgba(20,30,25,0.06);
  --shadow-md: 0 20px 50px -25px rgba(20,30,25,0.35);
}
[data-theme="B"] .display { font-weight: 500; font-style: italic; letter-spacing: -0.005em; }

/* ---------- Palette overrides (Tweaks) ---------- */
[data-palette="forest"][data-theme="B"] { --accent: #2f4a3a; --accent-2: #a98648; }
[data-palette="navy"][data-theme="B"]   { --accent: #1f3346; --accent-2: #a98648; }
[data-palette="bordeaux"][data-theme="B"]{ --accent: #5e2a2a; --accent-2: #a98648; }

[data-palette="terracotta"][data-theme="A"] { --accent: #b75a3c; --accent-2: #6f6b3f; }
[data-palette="ochre"][data-theme="A"]      { --accent: #c08530; --accent-2: #6f6b3f; }
[data-palette="clay"][data-theme="A"]       { --accent: #a44a3a; --accent-2: #7a5a3a; }

/* ===================== LAYOUT ===================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  gap: 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand .mark {
  font-variant-numeric: oldstyle-nums;
  font-size: 28px;
  color: var(--accent);
}
[data-theme="B"] .brand { font-style: italic; }
.brand .mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.brand-meta {
  display: flex; flex-direction: column; gap: 3px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.brand-meta .mono {
  border-left: 0;
  padding-left: 0;
}
.brand-rating {
  color: var(--accent);
  letter-spacing: 0.16em;
}
[data-theme="B"] .brand-rating { color: var(--accent-2); }
.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links button.linklike {
  background: transparent; border: 0; padding: 10px 14px;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s;
  position: relative;
}
.nav-links button.linklike:hover { color: var(--ink); }
.nav-links button.linklike.is-active { color: var(--ink); }
.nav-links button.linklike.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--accent);
}
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.cta:hover { transform: translateY(-1px); }
.cta.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cta.ghost:hover { border-color: var(--ink); }

.burger { display: none; background: transparent; border: 0; color: var(--ink); font-size: 22px; padding: 6px 10px; }

@media (max-width: 1024px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .burger { display: block; }
}
@media (max-width: 860px) {
  .brand .mono { display: none; }
  .brand-meta { display: none; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 64px 28px 0;
}
.hero-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: end;
}
.hero-copy { padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.95;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 .num { color: var(--accent); }
.hero p.lede {
  font-size: 19px; max-width: 46ch;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.hero-meta dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; }

.hero-img {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .stars-tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-img .stars-tag .stars { color: var(--gold); margin-right: 6px; letter-spacing: 0; }
.hero-cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { padding: 32px 20px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(48px, 14vw, 80px); }
}

/* ---- SECTIONS ---- */
section.block {
  padding: 120px 28px;
  position: relative;
}
section.block.tight { padding: 80px 28px; }
section.block.alt { background: var(--surface-2); }
.block-inner { max-width: 1320px; margin: 0 auto; }
.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
  align-items: start;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.section-head .label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.section-head .label .idx { color: var(--accent); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
[data-theme="B"] .section-head h2 { font-style: italic; }
[data-theme="B"] .section-head h2 em { font-style: normal; color: var(--accent-2); }

@media (max-width: 860px) {
  section.block { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
}

/* ---- LE GÎTE — features grid ---- */
.gite-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: start;
}
.gite-text p { font-size: 17px; color: var(--ink-soft); max-width: 56ch; }
.gite-text p + p { margin-top: 18px; }
.gite-text .pull {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
  max-width: 32ch;
}
[data-theme="B"] .gite-text .pull { font-style: italic; }
.features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--surface);
  padding: 24px;
}
.feature .ico {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 18px;
}
.feature h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; margin: 0 0 6px;
}
.feature p { font-size: 13.5px; margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .gite-grid { grid-template-columns: 1fr; } }

/* ---- PHOTOS / GALLERY ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
}
.gallery .cell {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery .cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.gallery .cell:hover img { transform: scale(1.04); }
.gallery .cell.c-hero    { grid-column: span 7; grid-row: span 4; }
.gallery .cell.c-tall    { grid-column: span 5; grid-row: span 4; }
.gallery .cell.c-wide    { grid-column: span 8; grid-row: span 3; }
.gallery .cell.c-sq      { grid-column: span 4; grid-row: span 3; }
.gallery .cell.c-small   { grid-column: span 4; grid-row: span 3; }
.gallery .cell.c-mid     { grid-column: span 4; grid-row: span 3; }
.gallery .cell.c-l       { grid-column: span 4; grid-row: span 3; }
.gallery .cell .cap {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.35);
  padding: 4px 8px;
  opacity: 0; transition: opacity .25s;
}
.gallery .cell:hover .cap { opacity: 1; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .gallery .cell { grid-column: span 1 !important; grid-row: span 2 !important; }
  .gallery .cell.c-hero { grid-column: span 2 !important; grid-row: span 3 !important; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,15,10,0.93);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox .close {
  position: absolute; top: 24px; right: 24px;
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px;
}
.lightbox .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; width: 52px; height: 52px; border-radius: 50%;
  font-size: 22px;
}
.lightbox .arrow.prev { left: 24px; }
.lightbox .arrow.next { right: 24px; }
.lightbox .counter {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: #fff;
  text-transform: uppercase;
}

/* ---- REGION ---- */
.region-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.region-card {
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
  text-align: center;
}
.region-card .img {
  aspect-ratio: 1; width: 78%; max-width: 260px;
  background: var(--surface-2);
  border-radius: 50%; overflow: hidden;
  position: relative;
}
.region-card .img img {
  width:100%; height:100%; object-fit: cover;
  transition: transform .8s ease, filter .5s ease;
  filter: grayscale(1) contrast(0.95);
}
.region-card:hover .img img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}
.region-card .img .km {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20,15,10,0.18);
}
.region-card:hover .img .km { opacity: 1; }
.region-card h4 {
  font-family: var(--font-display);
  font-size: 24px; margin: 0; font-weight: 500;
}
[data-theme="B"] .region-card h4 { font-style: italic; }
.region-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; max-width: 32ch; }

@media (max-width: 860px) { .region-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .region-grid { grid-template-columns: 1fr; } }

/* ---- ACTIVITES ---- */
.acts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.act {
  background: var(--surface); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; min-height: 320px;
  transition: background .25s;
}
.act:hover { background: var(--surface-2); }
.act .price-tag {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--accent);
}
.act .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-soft); text-transform: uppercase;
}
.act h4 { font-family: var(--font-display); font-size: 28px; margin: 0; font-weight: 500; line-height: 1.1; }
[data-theme="B"] .act h4 { font-style: italic; }
.act .meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.act p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.act .book {
  margin-top: auto;
  display: inline-flex; gap: 8px; align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--ink); background: transparent; border-top: 0; border-left: 0; border-right: 0;
}
.act .book:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) { .acts { grid-template-columns: 1fr; } }

/* ---- TARIFS ---- */
.tarifs-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: start;
}
.tarifs-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px;
}
.tarifs-table thead th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.tarifs-table tbody td {
  padding: 22px 16px; border-bottom: 1px solid var(--line);
}
.tarifs-table tbody tr:hover td { background: var(--surface); }
.tarifs-table .period { font-family: var(--font-display); font-size: 19px; }
[data-theme="B"] .tarifs-table .period { font-style: italic; }
.tarifs-table .dates { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 4px; }
.tarifs-table .week  { font-family: var(--font-mono); font-size: 16px; color: var(--ink); }
.tarifs-table .night { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

.tarifs-card {
  background: var(--surface); padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.tarifs-card h4 {
  font-family: var(--font-display); font-size: 24px; margin: 0 0 18px; font-weight: 500;
}
[data-theme="B"] .tarifs-card h4 { font-style: italic; }
.tarifs-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.tarifs-card li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.tarifs-card li:last-child { border: 0; }
.tarifs-card li .v { font-family: var(--font-mono); color: var(--ink); }
.tarifs-card .note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 860px) { .tarifs-grid { grid-template-columns: 1fr; } }

/* ---- DISPONIBILITES (calendrier) ---- */
.calendar-wrap {
  background: var(--surface); border: 1px solid var(--line);
  padding: 24px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.cal-head h5 { font-family: var(--font-display); font-size: 22px; margin: 0; font-weight: 500; }
[data-theme="B"] .cal-head h5 { font-style: italic; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  background: transparent; border: 1px solid var(--line);
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink);
}
.cal-nav button:hover { border-color: var(--ink); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-family: var(--font-mono); font-size: 12px;
}
.cal-dow {
  text-align: center; padding: 8px 0; color: var(--ink-soft);
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 10px;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  position: relative;
}
.cal-day.muted { opacity: 0.3; }
.cal-day.booked { background: var(--ink-soft); color: var(--bg); }
.cal-day.option { background: var(--accent-soft); color: #fff; }
.cal-day.free { cursor: pointer; }
.cal-day.free:hover { background: var(--accent); color: #fff; }
.cal-legend {
  display: flex; gap: 18px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); flex-wrap: wrap;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; display: inline-block; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px;
  align-items: start;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0; font-size: 17px; color: var(--ink);
}
.contact-info dd a { border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.contact-info dd a:hover { color: var(--accent); }
.contact-info .map {
  margin-top: 32px; aspect-ratio: 4/3;
  background: var(--surface-2);
  border-radius: var(--r-card);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.contact-info .map svg { width: 100%; height: 100%; }

.contact-form { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field.error input, .field.error textarea, .field.error select { border-color: #c0392b; }
.field .err-msg { color: #c0392b; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.form-submit {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--accent); color: #fff; border: 0;
  padding: 14px 24px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--r-pill);
}
.form-submit:hover { background: color-mix(in oklab, var(--accent) 85%, black); }
.form-success {
  padding: 24px; border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
}
.form-success h4 {
  font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; font-weight: 500;
}
[data-theme="B"] .form-success h4 { font-style: italic; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- FOOTER ---- */
footer.foot {
  background: var(--ink); color: var(--bg);
  padding: 80px 28px 32px;
  margin-top: auto;
}
.foot-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand { font-family: var(--font-display); font-size: 42px; line-height: 1; }
[data-theme="B"] .foot-brand { font-style: italic; }
.foot-brand .num { color: var(--accent-soft); }
.foot-brand p { font-size: 13px; opacity: 0.7; margin-top: 14px; max-width: 28ch; font-family: var(--font-body); }
.foot h6 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; margin: 0 0 14px; opacity: 0.6;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { font-size: 14px; padding: 4px 0; opacity: 0.85; }
.foot li button { background: transparent; border: 0; color: inherit; padding: 0; font: inherit; }
.foot li button:hover, .foot a:hover { opacity: 1; color: var(--accent-soft); }
.foot-bottom {
  max-width: 1320px; margin: 32px auto 0;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.6;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* ---- BANNER STRIP ---- */
.strip {
  background: var(--ink); color: var(--bg);
  overflow: hidden; padding: 14px 0;
}
.strip-track {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap; width: max-content;
}
.strip-track span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.strip-track span::before { content: "✦"; margin-right: 56px; color: var(--accent-soft); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- TESTIMONIAL ---- */
.testimonial {
  text-align: center; max-width: 880px; margin: 0 auto;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 0; font-weight: 400;
}
[data-theme="B"] .testimonial blockquote { font-style: italic; }
.testimonial cite {
  display: block; font-style: normal; margin-top: 32px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.testimonial .dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.testimonial .dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: 0;
}
.testimonial .dots button.active { background: var(--accent); }

/* ---- REGION PAGE — éditorial long-form ---- */
.region-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 64px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.region-filter {
  background: transparent; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); transition: all .2s;
}
.region-filter:hover { color: var(--ink); border-color: var(--ink); }
.region-filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.region-long { display: flex; flex-direction: column; gap: 96px; }
.region-entry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.region-entry.rev .region-entry-media { order: 2; }
.region-entry-media {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--surface-2);
}
.region-entry-media img { width: 100%; height: 100%; object-fit: cover; }
.region-entry-km {
  position: absolute; top: 16px; left: 16px;
  background: var(--surface); padding: 6px 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
}
.region-entry-meta {
  display: flex; gap: 18px; align-items: baseline;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.region-entry-idx { color: var(--accent); }
.region-entry-type { color: var(--ink-soft); }
.region-entry-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
[data-theme="B"] .region-entry-copy h3 { font-style: italic; font-weight: 500; }
.region-entry-copy p {
  font-size: 16px; color: var(--ink-soft); margin: 0 0 14px;
  max-width: 50ch;
}
.region-entry-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.region-entry-tags span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 10px; border: 1px solid var(--line);
}

.region-footer {
  margin-top: 96px; padding-top: 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.region-footer h4 {
  font-family: var(--font-display); font-size: 32px; margin: 0 0 6px; font-weight: 400;
}
[data-theme="B"] .region-footer h4 { font-style: italic; }
.region-footer p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 50ch; }

@media (max-width: 860px) {
  .region-entry { grid-template-columns: 1fr; gap: 24px; }
  .region-entry.rev .region-entry-media { order: 0; }
  .region-long { gap: 64px; }
  .region-footer { flex-direction: column; align-items: flex-start; }
}

/* ---- CREDIT MODAL (footer easter egg) ---- */
.foot-legal-link {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  cursor: pointer; opacity: inherit;
  border-bottom: 1px dotted transparent;
  transition: opacity .2s, border-color .2s;
}
.foot-legal-link:hover { opacity: 1; border-bottom-color: var(--accent-soft); }

.credit-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,15,10,0.85);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.credit-card {
  background: var(--surface); color: var(--ink);
  max-width: 460px; width: 100%;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: popin .25s cubic-bezier(.4,1.4,.6,1);
}
@keyframes popin {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.credit-card img {
  width: 100%; aspect-ratio: 4/4.2; object-fit: cover; object-position: center 22%;
}
.credit-meta {
  padding: 28px 32px 32px;
}
.credit-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.credit-card h4 {
  font-family: var(--font-display);
  font-size: 38px;
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
[data-theme="B"] .credit-card h4 { font-style: italic; font-weight: 500; }
.credit-card p {
  font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.55;
}
.credit-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.credit-close:hover { border-color: var(--ink); }

/* ---- placeholder for missing image ---- */
.img-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in oklab, var(--ink) 10%, transparent) 11px 12px),
    var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- BOOK PANEL (sticky bottom) ---- */
.book-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill);
  display: flex; gap: 16px; align-items: center;
  z-index: 40;
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 40px);
}
.book-bar .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.8;
}
.book-bar button {
  background: var(--accent); color: #fff; border: 0;
  padding: 11px 18px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.book-bar button:hover { background: color-mix(in oklab, var(--accent) 85%, black); }
@media (max-width: 560px) {
  .book-bar .label { display: none; }
  .book-bar { padding: 6px; }
}

/* ---- LEGAL PAGE (Mentions légales) ---- */
.legal-page .legal-lede {
  max-width: 60ch;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: -20px 0 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-bottom: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal-toc a {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.legal-toc a:last-child { border-right: 0; }
.legal-toc a:hover { background: var(--surface); color: var(--accent); }
.legal-toc-n {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.legal-toc-l {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.2;
}
[data-theme="B"] .legal-toc-l { font-style: italic; }

.legal-stack {
  display: flex; flex-direction: column;
}
.legal-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-entry:last-child { border-bottom: 1px solid var(--line); }
.legal-entry-meta {
  position: sticky; top: 100px;
  align-self: start;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-entry-n {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.legal-entry-kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.legal-entry-body {
  max-width: 62ch;
}
.legal-entry-body h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
[data-theme="B"] .legal-entry-body h3 { font-style: italic; }
.legal-entry-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.legal-entry-body p strong { color: var(--ink); font-weight: 500; }
.legal-entry-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .2s, color .2s;
}
.legal-entry-body a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.legal-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0 8px;
  border-top: 1px solid var(--line);
}
.legal-dl > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  padding-right: 24px;
}
.legal-dl > div:nth-child(even) { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.legal-dl dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.legal-dl dd {
  margin: 0;
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
}

.legal-figure {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: end;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal-figure img {
  width: 100%;
  aspect-ratio: 4/4.2;
  object-fit: cover;
  object-position: center 22%;
}
.legal-figure figcaption {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 4px;
}
.legal-figure-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.legal-figure-name {
  font-family: var(--font-display);
  font-size: 28px; line-height: 1; font-weight: 500;
  color: var(--ink);
}
[data-theme="B"] .legal-figure-name { font-style: italic; }
.legal-figure-role {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.legal-fineprint {
  margin-top: 24px !important;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: 13.5px !important;
}

.legal-foot {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.legal-foot p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 50ch;
}
.linklike-inline {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  cursor: pointer;
}
.linklike-inline:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 860px) {
  .legal-entry {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 0;
  }
  .legal-entry-meta { position: static; flex-direction: row; gap: 16px; }
  .legal-dl { grid-template-columns: 1fr; }
  .legal-dl > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .legal-figure { grid-template-columns: 1fr; }
  .legal-figure img { max-width: 220px; }
}


/* ---- TESTIMONIAL CTA (laisser un avis) ---- */
.testimonial-cta {
  margin-top: 28px;
  text-align: center;
}
.testimonial-cta .linklike-inline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- REVIEW MODAL (formulaire public d'avis) ---- */
.review-modal {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(20, 15, 10, 0.78);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(20px, 6vh, 80px) 16px;
  animation: fadein 0.18s;
  overflow-y: auto;
}
.review-card {
  background: var(--surface);
  color: var(--ink);
  max-width: 560px;
  width: 100%;
  padding: 40px clamp(24px, 4vw, 48px);
  position: relative;
  border: 1px solid var(--line);
  animation: pop 0.22s;
}
.review-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.review-close:hover { border-color: var(--ink); }
.review-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.review-card h4 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
[data-theme="B"] .review-card h4 { font-style: italic; }
.review-intro {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 24px;
}
.review-card .form-row { margin-bottom: 0; }
.review-card .field {
  margin-bottom: 16px;
}
.review-error {
  margin: 4px 0 12px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
}
.review-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 8px;
}
.review-fineprint {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.review-success {
  text-align: left;
}
.review-success p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 24px;
}
