/* ==========================================================================
   Domaine des Blaques
   Pierre calcaire, olive sombre, laiton du logo.
   Titres : Cormorant Garamond · Texte : DM Sans
   ========================================================================== */

/* Polices hébergées sur le site (aucun appel à Google Fonts) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/CormorantGaramond-normal-400.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 500; font-display: swap; src: url(../fonts/CormorantGaramond-italic-400.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/DMSans-normal-400.woff2) format("woff2"); }

:root {
  --ink: #1d1a16;
  --ink-soft: #4a443c;
  --muted: #665e54;
  --stone: #f6f1e9;
  --paper: #fbf8f3;
  --sand: #ebe3d5;
  --line: rgba(29, 26, 22, .13);
  --line-strong: rgba(29, 26, 22, .28);
  --olive: #2b3126;
  --olive-2: #394030;
  --on-dark: #e6e0d4;
  --on-dark-soft: #b9b2a3;
  --line-dark: rgba(255, 255, 255, .14);
  --brass: #7a5b2b;
  --brass-deep: #5f4520;
  --field-border: #8a8176;
  --brass-light: #d3b07a;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 152px);
  --radius: 2px;
  --header-h: 76px;
  --fast: 160ms;
  --dur: 200ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass-light); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 3px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); font-weight: 400; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 400; }
h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); }
h1 em, h2 em { font-style: italic; color: var(--brass); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow .num { font-family: var(--serif); font-size: 1.05rem; font-style: italic; letter-spacing: 0; text-transform: none; order: -1; }

.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--olive); color: var(--on-dark); }
.section--dark .eyebrow, .section--dark h2 em { color: var(--brass-light); }
.section--dark .lead { color: var(--on-dark-soft); }

.section-head { display: grid; gap: 24px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lead { margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 72px; }
  .section-head--split .lead { padding-bottom: 8px; }
}

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--fast) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--brass-deep); }
.btn--brass { background: var(--brass); color: var(--paper); }
.btn--brass:hover { background: var(--brass-deep); }
.btn--ghost { border-color: var(--line-strong); color: inherit; background: transparent; }
.btn--ghost:hover { border-color: currentColor; background: rgba(29, 26, 22, .04); }
.btn--light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 6px;
  transition: color var(--dur) var(--ease-out), background-size var(--dur) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--brass); }
.link-arrow:hover svg { transform: translateX(3px); }

.text-link { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: text-decoration-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.text-link:hover { color: var(--brass); text-decoration-color: currentColor; }

/* ---------- Chargement des images (squelette) ---------- */
@keyframes shimmer { to { background-position: -200% 0; } }
img.sk:not(.is-loaded) {
  background: linear-gradient(100deg, rgba(0,0,0,0) 30%, rgba(255,255,255,.45) 50%, rgba(0,0,0,0) 70%) 0 0 / 200% 100%, var(--sand);
  animation: shimmer 1.5s linear infinite;
}
.section--dark img.sk:not(.is-loaded) { background-color: var(--olive-2); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.header.is-solid { background: rgba(246, 241, 233, .94); color: var(--ink); border-bottom-color: var(--line); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; transition: transform 400ms var(--ease-out); }
.brand:hover img { transform: rotate(-12deg); }
.brand .logo-dark { display: none; }
.header.is-solid .brand .logo-dark { display: block; }
.header.is-solid .brand .logo-light { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.38rem; font-weight: 500; }
.brand__place { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; opacity: .72; margin-top: 3px; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  font-size: .86rem; text-decoration: none; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.nav .btn { min-height: 42px; padding: 0 20px; }
.header:not(.is-solid) .nav .btn--primary { background: #fff; color: var(--ink); }
.header:not(.is-solid) .nav .btn--primary:hover { background: var(--brass-light); }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.burger span:last-child { width: 70%; margin-left: auto; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 100%; transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav { display: block; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--stone); color: var(--ink);
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { border-bottom: 1px solid var(--line); counter-increment: m; }
.mobile-menu ul a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-family: var(--serif); font-size: 1.85rem; line-height: 1.2; text-decoration: none; }
.mobile-menu ul a::before { content: "0" counter(m); font-size: .95rem; font-style: italic; color: var(--brass); }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 32px; font-size: .95rem; }
.mobile-menu__foot a:not(.btn) { text-decoration: none; color: var(--ink-soft); overflow-wrap: anywhere; }
body.menu-open { overflow: hidden; }
body.menu-open .header { background: var(--stone); color: var(--ink); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .brand .logo-dark { display: block; }
body.menu-open .brand .logo-light { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; overflow: hidden; background: var(--olive);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 13, .5) 0%, rgba(18, 16, 13, 0) 24%),
    linear-gradient(90deg, rgba(18, 16, 13, .74) 0%, rgba(18, 16, 13, .56) 45%, rgba(18, 16, 13, .3) 80%, rgba(18, 16, 13, .18) 100%),
    linear-gradient(0deg, rgba(18, 16, 13, .8) 0%, rgba(18, 16, 13, .25) 46%, rgba(18, 16, 13, 0) 72%);
}
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(28px, 4.5vw, 52px); width: 100%; }
.hero .eyebrow { color: var(--brass-light); }
.hero h1 em { color: #e6c993; }
.hero h1 { max-width: 12em; text-shadow: 0 2px 28px rgba(12, 10, 8, .45); }
.hero__sub { text-shadow: 0 1px 16px rgba(12, 10, 8, .5); }
.hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 50ch; color: rgba(255, 255, 255, .86); margin: 26px 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; list-style: none; padding: 0;
  margin: clamp(44px, 7vw, 96px) 0 0; border-top: 1px solid rgba(255, 255, 255, .24);
}
.hero__facts li { padding: 16px 0 0; }
.hero__facts strong { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; line-height: 1.1; }
.hero__facts span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
@media (min-width: 760px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } .hero__facts li + li { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); } }
@media (max-width: 480px) { .hero__ctas .btn { flex: 1 1 100%; } }

.hero--page { min-height: 84vh; min-height: 84svh; }
.hero--page h1 { max-width: 11em; }

/* ---------- Intro ---------- */
.intro { display: grid; gap: clamp(44px, 6vw, 96px); align-items: center; }
.intro__media { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; align-items: end; }
.intro__media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.intro__media img:first-child { aspect-ratio: 3 / 4.3; }
.intro__media img:last-child { aspect-ratio: 3 / 4; margin-bottom: 64px; }
.intro__text p { color: var(--ink-soft); }
.intro__text h2 { margin-bottom: 28px; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.signature img { width: 40px; height: 40px; }
@media (min-width: 960px) { .intro { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Chiffres clés ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.fact { padding: clamp(22px, 3vw, 36px) clamp(12px, 2vw, 28px) clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.fact span { display: block; margin-top: 12px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; max-width: 28ch; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact:not(:nth-child(3n+1)) { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
}

/* ---------- Cartes ---------- */
.cards { display: grid; gap: clamp(36px, 3vw, 48px) 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--stagger > :nth-child(3n+2) { margin-top: 72px; }
  .cards--stagger > :nth-child(3n) { margin-top: 28px; }
}
.card { position: relative; }
.card__media { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.02); filter: brightness(1.04); }
.card__body { padding-top: 20px; }
.card__meta { font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; transition: color var(--dur) var(--ease-out); }
.card:hover h3 { color: var(--brass); }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.section--dark .card p { color: var(--on-dark-soft); }
.section--dark .card__meta { color: var(--brass-light); }
.section--dark .card:hover h3 { color: var(--brass-light); }
.section--dark .card__media { background: var(--olive-2); }

/* Mise en avant */
.feature { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.feature__media--wide img { aspect-ratio: 3 / 2; }
.feature__text h3 { margin-bottom: 16px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.feature__text h2 { margin-bottom: 26px; }
.feature__text p { color: var(--ink-soft); }
.section--dark .feature__text p { color: var(--on-dark-soft); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr .8fr; }
  .feature--reverse { grid-template-columns: .8fr 1.2fr; }
  .feature--reverse .feature__media { order: 2; }
  .feature--inset .feature__media { margin-left: calc(var(--gutter) * -1); }
  .feature--reverse.feature--inset .feature__media { margin-left: 0; margin-right: calc(var(--gutter) * -1); }
}
@media (min-width: 1340px) {
  .feature--inset .feature__media { margin-left: -64px; }
  .feature--reverse.feature--inset .feature__media { margin-right: -64px; }
}
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; }
.ticks li { position: relative; padding: 11px 0 11px 26px; font-size: .95rem; border-top: 1px solid var(--line); line-height: 1.5; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 12px; height: 1px; background: var(--brass); }
.section--dark .ticks li { border-color: var(--line-dark); }
.section--dark .ticks li::before { background: var(--brass-light); }

/* ---------- Chambres ---------- */
.rooms { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overscroll-behavior-x: contain; list-style: none; margin-block: 0; }
.rooms:focus-visible { outline-offset: -2px; }
.rooms > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rooms { grid-auto-columns: 45%; } }
@media (min-width: 1000px) {
  .rooms { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 48px 28px; }
  .rooms > :nth-child(3n+2) { margin-top: 64px; }
}
.room__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.room__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--dur) var(--ease-out); }
.room:hover .room__media img { transform: scale(1.02); }
.room__tag { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); }
.room__body { padding-top: 20px; }
.room__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.room__index { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1rem; }
.room p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 14px; }
.room__specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.room__specs li { display: inline-flex; align-items: center; gap: 6px; }
.room__specs svg { width: 15px; height: 15px; color: var(--brass); }
.swipe-hint { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.swipe-hint svg { width: 16px; height: 16px; }
@media (min-width: 1000px) { .swipe-hint { display: none; } }
.note { margin-top: 48px; padding: 22px 0 0; border-top: 1px solid var(--line-strong); font-size: .96rem; color: var(--ink-soft); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; max-width: 780px; }
.note svg { width: 20px; height: 20px; color: var(--brass); margin-top: 3px; }
.note p { margin: 0; }
.note strong { color: var(--ink); font-weight: 500; }
.section--dark .note { border-color: var(--line-dark); color: var(--on-dark-soft); }
.section--dark .note strong { color: var(--on-dark); }
.section--dark .note svg { color: var(--brass-light); }

/* ---------- Équipements ---------- */
.amenities { display: grid; gap: 44px 40px; }
@media (min-width: 700px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .amenities { grid-template-columns: repeat(4, 1fr); } .amenities--2 { grid-template-columns: 1fr 1fr; gap: 44px 72px; } }
.amenities h3 { font-size: 1.4rem; margin-bottom: 8px; }
.amenities ul { list-style: none; margin: 0; padding: 0; font-size: .94rem; color: var(--ink-soft); }
.amenities li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }

/* ---------- Domaine ---------- */
.terroir { display: grid; gap: 12px; grid-template-columns: 1.1fr .9fr; }
.terroir img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.terroir img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.terroir img:nth-child(2) { aspect-ratio: 1; }
.terroir img:nth-child(3) { aspect-ratio: 4 / 5; margin-top: -48px; }

/* ---------- Galerie ---------- */
.gallery { columns: 2; column-gap: 10px; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 16px; } }
.gallery button { position: relative; display: block; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); break-inside: avoid; }
@media (min-width: 900px) { .gallery button { margin-bottom: 16px; } }
.gallery img { width: 100%; transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out); }
.gallery button::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0); transition: border-color var(--dur) var(--ease-out), inset var(--dur) var(--ease-out); pointer-events: none; }
.gallery button:hover img { transform: scale(1.02); filter: brightness(1.05); }
.gallery button:hover::after { inset: 10px; border-color: rgba(255, 255, 255, .7); }

.lightbox { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: rgba(16, 14, 11, .97); color: #fff; }
.lightbox::backdrop { background: rgba(16, 14, 11, .97); }
.lightbox__stage { position: absolute; inset: 68px 12px 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100% - 36px); object-fit: contain; border-radius: var(--radius); }
.lightbox__stage figcaption { font-size: .85rem; color: rgba(255, 255, 255, .7); text-align: center; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out); }
.lightbox__btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 16px; bottom: 18px; }
.lightbox__next { right: 16px; bottom: 18px; }
.lightbox__count { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-size: .78rem; letter-spacing: .16em; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .lightbox__stage { inset: 48px 104px 64px; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: 28px; } .lightbox__next { right: 28px; }
  .lightbox__close { top: 20px; right: 28px; }
  .lightbox__count { bottom: 24px; }
}

/* ---------- Avis ---------- */
.reviews { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1.35fr 1fr; gap: 20px; } .review--main { grid-row: span 2; } }
.review { margin: 0; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; background: rgba(251, 248, 243, .5); }
.review__stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: 20px; }
.review__stars svg { width: 14px; height: 14px; }
.review blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.32rem; line-height: 1.38; flex: 1; }
.review figcaption { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.review figcaption span { display: block; margin-top: 4px; letter-spacing: .04em; text-transform: none; font-size: .85rem; }
.review--main { background: var(--olive); border-color: var(--olive); color: var(--on-dark); justify-content: space-between; }
.review--main .review__stars { color: var(--brass-light); }
.review--main blockquote { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.22; font-style: italic; flex: 0; }
.review--main figcaption { color: var(--on-dark-soft); }

/* ---------- Accès ---------- */
.access { display: grid; gap: clamp(44px, 5vw, 80px); }
@media (min-width: 960px) { .access { grid-template-columns: .85fr 1.15fr; align-items: stretch; } }
.distances { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.distances span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--sand); }
.map.is-loading { background: linear-gradient(100deg, rgba(0,0,0,0) 30%, rgba(255,255,255,.45) 50%, rgba(0,0,0,0) 70%) 0 0 / 200% 100%, var(--sand); animation: shimmer 1.5s linear infinite; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; background: radial-gradient(circle at 50% 40%, var(--paper) 0%, var(--sand) 70%); }
.map__consent svg { width: 30px; height: 30px; color: var(--brass); }
.map__consent p { max-width: 42ch; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.08); }
@media (min-width: 960px) { .map { aspect-ratio: auto; height: 100%; min-height: 540px; } }
.address-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; font-size: .95rem; }
.address-card svg { flex: none; width: 20px; height: 20px; color: var(--brass); margin-top: 3px; }
.small-muted { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Contact / formulaire ---------- */
.contact { display: grid; gap: clamp(44px, 6vw, 96px); }
@media (min-width: 960px) { .contact { grid-template-columns: .8fr 1.2fr; } .contact__info { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.contact__info h2 { margin-bottom: 24px; }
.contact__info p { color: var(--on-dark-soft); }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.contact-list li { border-bottom: 1px solid var(--line-dark); }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; text-decoration: none; color: var(--on-dark); font-size: 1rem; line-height: 1.5; transition: color var(--dur) var(--ease-out); }
.contact-list a:hover { color: var(--brass-light); }
.contact-list svg { flex: none; width: 19px; height: 19px; color: var(--brass-light); margin-top: 2px; }
.contact-list small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 2px; }

.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 52px); border-radius: var(--radius); }
.form h3 { margin-bottom: 6px; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.form > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 28px; }
.form__grid { display: grid; gap: 20px 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field > label, .field > legend { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 0; }
.field .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  background: #fff; border: 1px solid var(--field-border); border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out); appearance: none; -webkit-appearance: none;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(29, 26, 22, .45); }
.field input[type="date"] { line-height: 1.2; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a443c' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.field [aria-invalid="true"] { border-color: #a4402b; box-shadow: 0 0 0 1px #a4402b; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.field .chip { position: relative; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--field-border); border-radius: 999px; background: #fff; cursor: pointer; transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out); user-select: none; -webkit-user-select: none; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 1.5px solid var(--brass); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 1.5px solid #a4402b; outline-offset: 2px; }
.form__note { font-size: .82rem; color: var(--muted); margin: -12px 0 24px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form__foot p { margin: 0; font-size: .8rem; color: var(--muted); max-width: 40ch; line-height: 1.5; }
@media (max-width: 520px) { .form__foot .btn { width: 100%; } }
.form__status { margin: 16px 0 0; font-size: .92rem; color: var(--olive-2); }
.form__status:empty { display: none; }
.form__status.is-error { color: #a4402b; }

/* ---------- Bandeau ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--olive); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 15, .78) 0%, rgba(20, 18, 15, .35) 100%); z-index: -1; }
.cta-band .container { padding-block: clamp(96px, 13vw, 176px); display: grid; justify-items: start; gap: 22px; }
.cta-band .eyebrow, .cta-band h2 em { color: var(--brass-light); }
.cta-band .eyebrow { margin: 0; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { max-width: 48ch; color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band .hero__ctas { margin-top: 10px; }

/* ---------- Séminaires ---------- */
.keybar { background: var(--olive); color: var(--on-dark); }
.keybar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.keybar li { padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.keybar li:last-child { grid-column: 1 / -1; border-bottom: 0; }
.keybar strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 400; line-height: 1.05; color: #fff; }
.keybar span { font-size: .8rem; color: var(--on-dark-soft); line-height: 1.4; display: block; margin-top: 6px; }
@media (min-width: 900px) { .keybar ul { grid-template-columns: repeat(5, 1fr); gap: 0; } .keybar li, .keybar li:last-child { grid-column: auto; border-bottom: 0; padding: 34px 16px 34px 0; } .keybar li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); } }

.reasons { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reasons { grid-template-columns: repeat(4, 1fr); } .reason:nth-child(even) { padding-top: 64px; } }
.reason { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .reason:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); } }
@media (min-width: 1100px) { .reason + .reason { padding-left: 28px; border-left: 1px solid var(--line); } .reason { border-bottom: 0; } }
.reason__num { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--brass); margin-bottom: 26px; display: block; }
.reason h3 { font-size: 1.55rem; margin-bottom: 10px; }
.reason p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.subhead { margin: clamp(72px, 9vw, 120px) 0 22px; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.spec-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .94rem; }
.spec-table caption { text-align: left; }
.spec-table th, .spec-table td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); padding-block: 12px; }
.spec-table tbody th { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.spec-table tbody th small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
.spec-table td { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.spec-table td strong { font-weight: 500; color: var(--ink); }
.spec-table tbody tr { transition: background-color var(--fast) var(--ease-out); }
.spec-table tbody tr:hover { background: rgba(255, 255, 255, .35); }
.table-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.equip { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
@media (min-width: 600px) { .equip { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1000px) { .equip { grid-template-columns: repeat(4, 1fr); } }
.equip li { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.4; }
.equip svg { flex: none; width: 21px; height: 21px; color: var(--brass); }

.formulas { display: grid; gap: 16px; }
@media (min-width: 960px) { .formulas { grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; } .formula--featured { margin-top: -24px; } }
.formula { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; transition: border-color var(--dur) var(--ease-out); }
.formula:hover { border-color: var(--line-strong); }
.formula--featured { background: var(--ink); color: #ebe5da; border-color: var(--ink); }
.formula--featured .ticks li { border-color: rgba(255, 255, 255, .12); }
.formula--featured .ticks li::before { background: var(--brass-light); }
.formula__label { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.formula--featured .formula__label { color: var(--brass-light); }
.formula h3 { margin: 14px 0 10px; font-size: 2rem; }
.formula__desc { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.formula--featured .formula__desc { color: #bdb6a8; }
.formula .ticks { flex: 1; margin-bottom: 28px; }
.formula .btn { width: 100%; }

.timeline { display: grid; gap: 44px; }
@media (min-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; gap: 64px; } .day:last-child { margin-top: 56px; } }
.day h3 { font-size: 1.7rem; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .24); margin-bottom: 2px; }
.day ol { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .95rem; line-height: 1.5; }
.day time, .day .when { font-variant-numeric: tabular-nums; color: var(--brass-light); font-weight: 500; font-size: .88rem; padding-top: 1px; }
.timeline--retro .day li { grid-template-columns: 96px 1fr; }

.faq { max-width: 860px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.3; transition: color var(--fast) var(--ease-out); }
.faq summary:hover { color: var(--brass); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--brass), var(--brass)) center / 100% 1.5px no-repeat, linear-gradient(var(--brass), var(--brass)) center / 1.5px 100% no-repeat; transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--ink-soft); max-width: 66ch; }
@media (min-width: 1000px) { .faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); } }

/* ---------- Footer ---------- */
.footer { background: #171512; color: #a39c8e; font-size: .9rem; padding: 80px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer p { max-width: 34ch; }
.footer__title { font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #e8e2d6; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color var(--fast) var(--ease-out); }
.footer a:hover { color: var(--brass-light); }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: #e8e2d6; transition: border-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out); }
.socials a:hover { border-color: var(--brass-light); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Barre d'action mobile ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 241, 233, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(110%); transition: transform var(--dur) var(--ease-out); }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 48px; padding: 0 12px; font-size: .72rem; letter-spacing: .1em; }
@media (min-width: 1080px) { .mobile-cta { display: none; } }
@media (max-width: 1079px) { .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- Pages simples ---------- */
.page-plain { padding: calc(var(--header-h) + 72px) 0 var(--section); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin-bottom: 36px; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 8px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--ink); }
.prose th, .prose td { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: 100%; }
  .prose tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .prose th, .prose td { border: 0; padding: 2px 0; }
  .prose tr:has(> th[scope="col"]) { display: none; }
  .prose td:first-child { font-weight: 500; color: var(--ink); }
  .prose td[data-th]::before { content: attr(data-th) " : "; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
}
.prose .updated { font-size: .85rem; color: var(--muted); }
.prose .toc { list-style: none; padding: 18px 0; margin: 0 0 12px; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
mark.todo { background: #fbe7a1; color: #3a2e10; padding: 1px 6px; border-radius: 2px; font-weight: 500; }
.review-note { font-size: .82rem; color: var(--muted); margin-top: 20px; max-width: 70ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
