/* Theme "spa" — guide-spa-maroc.com
   Sable, vert et or du logo ; titres serif, texte sans-serif.
   Aucune police externe : polices du systeme (rapide, sans service tiers). */

:root {
  --sand: #f4eee6;
  --paper: #fffdf9;
  --ink: #26302b;
  --muted: #5f6a63;
  /* Vert et or repris du logo */
  --sage: #1f5640;
  --sage-dark: #0b3a2a;
  --sage-soft: #e1ebe5;
  --clay: #a8664a;
  --clay-soft: #f3e4da;
  --gold: #a47e35;
  --gold-ink: #86662a; /* or lisible sur fond clair (petits textes) */
  --forest: #0d2a1f; /* pied de page */
  --line: #e5dccf;
  --shadow: 0 1px 2px rgb(38 48 43 / .05), 0 8px 24px -12px rgb(38 48 43 / .18);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header: 72px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--sage); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 800px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

.eyebrow { display: inline-block; margin: 0; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border: 1px solid var(--sage); border-radius: 99px;
  background: var(--sage); color: #fff;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--sage); }
.btn.ghost:hover { background: var(--sage-soft); color: var(--sage-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--sans); color: var(--sage); text-decoration: none; }
.link-arrow:hover { gap: 10px; color: var(--sage-dark); }
.link-arrow, .btn, .card { transition-timing-function: ease; }

/* ── En-tete ──────────────────────────────────────────────────────────── */
/* Vert fonce du pied de page, sur toutes les pages ; reste visible au defilement */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: var(--forest); color: #fff;
  box-shadow: 0 6px 20px -14px rgb(0 0 0 / .6);
}
.masthead-inner { height: var(--header); display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
/* Logo normal (vert) sur fond sombre : pastille claire. La version claire (is-light) s'affiche telle quelle */
.masthead .brand-logo:not(.is-light), .brand-footer .brand-logo:not(.is-light) { padding: 5px 12px; background: var(--paper); border-radius: 12px; }
.masthead .brand-logo { height: 48px; }
.masthead .brand-mark { background: rgb(255 255 255 / .12); color: var(--gold); }
.masthead .brand-name { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--sage); color: var(--sand); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font: 500 1.3rem/1 var(--serif); white-space: nowrap; }

.nav { display: flex; gap: 28px; flex: 1; font: 500 15px var(--sans); }
.nav a { text-decoration: none; color: rgb(255 255 255 / .82); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s ease; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }

.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 99px; background: transparent; color: var(--ink);
  font: 600 13px var(--sans); letter-spacing: .06em; text-decoration: none; cursor: pointer;
}
.tool:hover { background: var(--sage-soft); color: var(--sage-dark); }
.masthead .tool { color: #fff; }
.masthead .tool:hover { background: rgb(255 255 255 / .12); color: #fff; }
.tool .icon { width: 22px; height: 22px; }
.burger { display: none; }

@media (max-width: 900px) {
  :root { --header: 64px; }
  .nav { display: none; }
  .burger { display: inline-grid; }
}

/* ── Menu mobile (popover + scroll-snap) ──────────────────────────────── */
.drawer {
  --drawer-width: min(22em, 86dvw);
  --drawer-backdrop: 0;
  width: auto; height: auto; inset: 0; margin: 0; padding: 0;
  background: transparent; border: 0; overflow: visible;
}
.drawer::backdrop { background: #1d2420; opacity: calc(var(--drawer-backdrop) / 2); }
.drawer-scroller {
  position: relative; display: grid; grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll; overscroll-behavior: none; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.drawer-scroller::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer-scroller { scroll-behavior: smooth; }
}
.drawer-scroller::after { content: ''; scroll-snap-align: end; scroll-initial-target: nearest; }
.drawer-sheet {
  display: flex; flex-direction: column; gap: 20px;
  height: 100svh; padding: 14px 20px 28px;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; scroll-snap-align: start; scrollbar-width: none;
  box-shadow: 8px 0 32px rgb(0 0 0 / .12);
}
.drawer-sheet:focus { outline: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-search input { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--sand); }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-links a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font: 500 1.35rem var(--serif); text-decoration: none; }
.drawer-links a[aria-current] { color: var(--sage); }
.drawer-foot { margin-top: auto; display: grid; gap: 18px; font-size: 15px; }

@supports (animation-timeline: scroll()) {
  .drawer { timeline-scope: --drawer-fade; animation: drawer-fade linear both; animation-timeline: --drawer-fade; }
  .drawer-scroller { scroll-timeline: --drawer-fade x; }
  @property --drawer-backdrop { syntax: '<number>'; inherits: true; initial-value: 0; }
  @keyframes drawer-fade {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

/* ── Accueil : hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: min(82svh, 760px); background: var(--ink); color: #fff; overflow: hidden;
}
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 28 24 / .15) 0%, rgb(20 28 24 / .35) 45%, rgb(20 28 24 / .82) 100%);
}
.hero-inner { padding-block: 120px 64px; }
.hero .eyebrow { color: #d6e6dc; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 14ch; margin: 10px 0 16px; }
.hero .lead { color: #eef3ef; max-width: 36rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }

.search-big {
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 580px; margin-top: 30px; padding: 6px 6px 6px 18px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow);
}
.search-big > .icon { color: var(--muted); }
.search-big input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; font-size: 16px; outline: none; }
.search-big:focus-within { outline: 2px solid var(--sage); outline-offset: 2px; }

/* Pastilles (soins) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--paper);
  font: 500 14px var(--sans); text-decoration: none; color: var(--ink);
}
.chips a span { color: var(--muted); font-size: 12px; }
.chips a:hover { border-color: var(--sage); color: var(--sage-dark); }
.chips a[aria-current] { background: var(--sage); border-color: var(--sage); color: #fff; }
.chips a[aria-current] span { color: #d6e6dc; }
.chips-light a { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .35); color: #fff; }
.chips-light a:hover { background: rgb(255 255 255 / .26); color: #fff; border-color: #fff; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.band { margin-top: 80px; }
.band-tight { margin-top: 32px; }
.band > h2, .band-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.band > h2 { margin-bottom: 28px; }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.band-head p { flex: 0 0 100%; margin: 0; color: var(--muted); order: 3; }
.more { text-align: center; margin-top: 36px; }
.empty { text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 56px 24px; margin: 0; }
main { padding-bottom: 96px; }

/* Grilles de cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 24px; overflow-x: auto; padding: 4px 4px 16px; margin-inline: -4px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (max-width: 700px) { .rail { grid-auto-columns: 82%; } }

/* Carte d'un lieu : toute la carte est cliquable (lien etire du titre) */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6cbbb; }
.card:focus-within { outline: 2px solid var(--sage); outline-offset: 3px; }
.card { border-radius: 14px; box-shadow: 0 1px 3px rgb(38 48 43 / .08); }
.card-media { position: relative; margin: 0; aspect-ratio: 8 / 5; background: var(--sage-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; flex: 1; }
.card-cat { margin: 0; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.card h3 { font: 600 1.05rem/1.3 var(--sans); letter-spacing: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card-text {
  margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; font: 13.5px var(--sans); }
.card-foot span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot strong { flex: none; font-weight: 600; color: var(--ink); }
.card-place { display: flex; gap: 6px; margin: 0; font: 13px/1.45 var(--sans); color: var(--sage); }
.card-text:empty { display: none; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 4px 0 0; }
.tags li { font: 500 12px/1 var(--sans); }
.tags li, .tags a { display: inline-block; padding: 6px 10px; border-radius: 99px; background: var(--sage-soft); color: var(--sage-dark); text-decoration: none; }
.tags li:has(a) { padding: 0; background: none; }
.tags a:hover { background: var(--sage); color: #fff; }

/* Soins (accueil) */
.treatments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.treatments a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.treatments a:hover { border-color: var(--sage); background: var(--sage-soft); color: var(--ink); }
.treatments strong { font: 500 1.2rem var(--serif); }
.treatments span { font-size: 14px; color: var(--muted); }

/* Engagements */
.promise { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.promise li > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--sage-soft); color: var(--sage); }
.promise h3 { font-size: 1.3rem; margin: 16px 0 6px; }
.promise p { margin: 0; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font: 500 1.12rem/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 300 1.6rem/1 var(--sans); color: var(--sage); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Bandeau contact */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius);
  background: var(--sage); color: #fff;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin: 8px 0 0; color: #d6e6dc; }
.cta .btn { background: var(--paper); border-color: var(--paper); color: var(--sage-dark); }
.cta .btn:hover { background: var(--sand); }

/* ── En-tete des pages internes ───────────────────────────────────────── */
.page-head { position: relative; isolation: isolate; padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 12px; }
.page-head .lead { max-width: 42rem; }
.page-head.has-image { display: grid; align-items: end; min-height: 380px; padding: 0; background: var(--ink); color: #fff; overflow: hidden; }
.page-head-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 28 24 / .2), rgb(20 28 24 / .78)); }
.page-head.has-image .page-head-inner { padding-block: 32px 40px; }
.page-head.has-image .eyebrow, .page-head.has-image .breadcrumb, .page-head.has-image .breadcrumb a { color: #e2ece5; }
.not-found { text-align: center; padding-block: 72px; }
.not-found .search-big { margin-inline: auto; }
.not-found .link-arrow { margin-top: 24px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font: 14px var(--sans); color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.filters { margin-top: 28px; }
.filters .chips { margin: 0; }

/* ── Fiche d'un spa ───────────────────────────────────────────────────── */
.spa .breadcrumb { padding-top: 28px; }
.spa-head { margin: 18px 0 24px; }
.spa-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.spa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font: 15px var(--sans); color: var(--muted); }
.spa-meta > span { display: inline-flex; gap: 6px; }
.badge { padding: 4px 12px; border-radius: 99px; background: var(--clay-soft); color: var(--clay); font-weight: 600; font-size: 13px; }
.spa-head .tags { margin-top: 16px; }

.spa-visual { display: grid; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.spa-visual.with-photos { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; height: clamp(320px, 52vw, 560px); }
.spa-cover { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.spa-visual.with-photos .spa-cover { grid-row: span 2; max-height: none; }
.spa-thumb { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--sage-soft); }
.spa-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.spa-thumb:hover img { transform: scale(1.04); }
.spa-thumb span { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(20 28 24 / .45); color: #fff; font: 600 1.4rem var(--sans); }
@media (max-width: 700px) {
  .spa-visual.with-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; height: auto; }
  .spa-visual.with-photos .spa-cover { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .spa-thumb { aspect-ratio: 4 / 3; }
}

.spa-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; margin-top: 48px; align-items: start; }
.spa-main > .lead { font: 400 1.3rem/1.55 var(--serif); color: var(--ink); margin-bottom: 8px; }

.prose { font-size: 17px; }
.prose h2, .prose h3 { margin: 36px 0 12px; color: var(--sage-dark); }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--sage); }
.prose a { color: var(--sage); }
.prose img { border-radius: var(--radius-sm); margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sage); font: italic 1.15rem var(--serif); color: var(--muted); }

.spa-facts {
  position: sticky; top: calc(var(--header) + 20px);
  display: grid; gap: 18px; padding: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font: 15px/1.5 var(--sans);
}
.fact span { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact strong { font: 500 1.25rem var(--serif); }
.fact-actions { display: grid; gap: 10px; }
.fact-actions .btn { width: 100%; }
.fact-links { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.fact-links a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); word-break: break-word; }
.fact-links a:hover { color: var(--sage); }

/* Soins & tarifs */
.menu-prices { margin-top: 48px; padding: clamp(22px, 4vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.menu-prices h2 { font-size: 1.8rem; margin-bottom: 8px; }
.menu-section h3 { margin: 26px 0 6px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.menu-section ul { list-style: none; margin: 0; padding: 0; }
.menu-section li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.menu-section li > div { flex: 1; }
.menu-section strong { font-weight: 500; }
.menu-section li p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.menu-price { flex: none; font: 600 15px var(--sans); color: var(--sage-dark); white-space: nowrap; }
.note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Galerie et visionneuse */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--sage-soft); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox { max-width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-sm); background: #111; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgb(12 16 14 / .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(1100px, 94vw); max-height: calc(92vh - 44px); width: auto; margin: auto; object-fit: contain; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.lightbox figcaption { padding: 10px 16px; font: 14px var(--sans); color: #cfd6d1; text-align: center; }
.lightbox .tool { position: absolute; background: rgb(255 255 255 / .92); color: var(--ink); }
.lightbox .tool:hover { background: #fff; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev, .lightbox-next { top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* Barre d'actions fixe (mobile) */
.action-bar { display: none; }
@media (max-width: 900px) {
  .spa-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .spa-facts { position: static; box-shadow: none; }
  .action-bar {
    position: fixed; inset: auto 0 0; z-index: 15;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 253 249 / .96); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .3);
  }
  .action-bar .btn { min-width: 0; }
  .action-bar .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .action-bar .btn.ghost { background: var(--paper); }
  .page-place main { padding-bottom: 140px; }
}

/* ── Journal ──────────────────────────────────────────────────────────── */
.post .breadcrumb { padding-top: 28px; }
.post-head { margin: 20px 0 32px; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 10px 0 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font: 14px var(--sans); color: var(--muted); }
.post-meta span + span::before { content: '·'; margin: 0 10px; }
.post-meta strong { color: var(--ink); font-weight: 600; }
/* Sommaire : les titres cibles ne passent pas sous l'en-tete fixe */
.prose h2[id] { scroll-margin-top: calc(var(--header) + 16px); }
.toc { margin: 0 0 40px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc h2 { margin: 0 0 10px; font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--sage-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-cover { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.contact form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field label { font: 600 14px var(--sans); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #d8cebf; border-radius: var(--radius-sm); background: #fff;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.field-error { display: none; margin: 0; font: 14px var(--sans); color: #a23b2a; }
/* Erreurs affichees seulement apres saisie ou tentative d'envoi */
.field input:user-invalid, .field textarea:user-invalid { border-color: #a23b2a; background: #fdf3f1; }
.field input:user-invalid + .field-error, .field textarea:user-invalid + .field-error { display: block; }
.contact form .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-card { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 20px; padding: 28px; background: var(--sage-soft); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card .contact-info a, .contact-card .socials a { color: var(--sage-dark); }
.notice { margin: 0 0 16px; padding: 14px 18px; border-radius: var(--radius-sm); font: 15px var(--sans); }
.notice.ok { background: var(--sage-soft); color: var(--sage-dark); }
.notice.error { background: #fbe9e5; color: #8a3324; }
@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-card { position: static; }
}

/* Coordonnees et reseaux */
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font: 15px/1.5 var(--sans); }
.contact-info li { display: flex; gap: 10px; }
.contact-info .icon { margin-top: 3px; opacity: .8; }
.contact-info a { text-decoration: none; word-break: break-word; }
.contact-info a:hover { text-decoration: underline; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 99px; opacity: .85; }
.socials a:hover { opacity: 1; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; font: 15px var(--sans); color: var(--muted); }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.colophon { background: var(--forest); color: #cfd8d2; padding: 64px 0 0; font: 15px/1.6 var(--sans); }
.colophon a { color: #e9efeb; text-decoration: none; }
.colophon a:hover { color: #fff; text-decoration: underline; }
.colophon-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.colophon h2 { margin-bottom: 16px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #93a39a; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon nav li + li { margin-top: 8px; }
.colophon-brand p { margin: 16px 0 20px; color: #a9b6ae; max-width: 30ch; }
.brand-footer, .brand-footer:hover { color: #fff; text-decoration: none; }
.brand-footer .brand-mark { background: var(--sand); color: var(--sage-dark); }
.brand-footer img { filter: none; }
.colophon-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-block: 22px; border-top: 1px solid #23463a; font-size: 14px; color: #93a39a; }
.colophon-bottom p { margin: 0; }
.colophon-bottom a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .colophon-grid { grid-template-columns: 1fr 1fr; } .colophon-brand { grid-column: span 2; } }
@media (max-width: 560px) { .colophon-grid { grid-template-columns: 1fr; } .colophon-brand { grid-column: auto; } }

/* Page de secours (backend indisponible) */
.unavailable { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.unavailable h1 { font-size: 2rem; margin-bottom: 12px; }

/* ── Petits ecrans ────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .band { margin-top: 56px; }
  .hero-inner { padding-block: 96px 40px; }
  .search-big { padding-left: 14px; }
  .search-big .btn { padding-inline: 16px; }
  .page-head.has-image { min-height: 300px; }
}

/* ── Transitions entre les pages ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
  /* En-tete et pied de page restent en place pendant la transition */
  .masthead { view-transition-name: site-header; }
  .colophon { view-transition-name: site-footer; }
  ::view-transition-group(site-header), ::view-transition-group(site-footer) { animation-duration: .25s; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Soins & tarifs : rubriques repliables au-dela de la premiere */
.menu-section summary { list-style: none; cursor: pointer; }
.menu-section summary::-webkit-details-marker { display: none; }
.menu-section summary h3 { display: flex; justify-content: space-between; align-items: center; }
.menu-section summary h3::after { content: '+'; font: 300 1.4rem/1 var(--sans); color: var(--clay); transition: transform .2s; }
.menu-section[open] summary h3::after { transform: rotate(45deg); }
.spa-head h1, .page-head h1, .post-head h1 { overflow-wrap: anywhere; }
.page-head.has-image .breadcrumb ol { color: #e2ece5; }
.contact-single { grid-template-columns: minmax(0, 760px); }
/* Logo du dashboard sur le fond sombre du pied de page : pastille claire */
.brand-footer img { height: 56px; }

/* ── Accueil et categories : grande image, titre centre, cartes qui chevauchent ── */
.showcase-hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(480px, 64vh, 660px);
  padding: 56px 0 170px;
  background: linear-gradient(150deg, var(--sage) 0%, var(--forest) 100%);
  color: #fff; text-align: center;
}
.showcase-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.showcase-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(10 14 12 / .8) 0%, rgb(10 14 12 / .45) 45%, rgb(10 14 12 / .3) 100%);
}
.showcase-text h1 { font: 600 clamp(2.3rem, 5.6vw, 4.3rem)/1.1 var(--sans); letter-spacing: -.02em; margin: 0 auto; max-width: 28ch; }
.showcase-text h1 span { display: block; margin-top: 8px; font-size: .45em; font-weight: 400; opacity: .8; }
.showcase-text p { max-width: 760px; margin: 22px auto 0; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.75; color: #f1f3f1; }
.showcase-text .chips { justify-content: center; margin-top: 26px; }
.showcase-crumb { position: absolute; left: 0; right: 0; bottom: 124px; text-align: left; }
.showcase-crumb .breadcrumb ol { color: #e9eeea; font-size: 14px; }
.showcase-crumb .breadcrumb a { color: #fff; }
.showcase-crumb [aria-current] { font-weight: 600; color: #fff; }
.showcase-grid { position: relative; z-index: 1; margin-top: -110px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }

/* Carte sans image : motif aux couleurs du logo */
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--paper), var(--sage-soft)); color: var(--gold); }
.card-placeholder .icon { width: 44px; height: 44px; opacity: .7; }

@media (max-width: 700px) {
  .showcase-hero { min-height: 0; padding: 32px 0 140px; }
  .showcase-crumb { bottom: 104px; }
  .showcase-grid { margin-top: -84px; }
  .showcase-hero .showcase-text .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .showcase-text h1 { font-size: 2.1rem; }
  .showcase-text p { margin-top: 14px; font-size: .95rem; line-height: 1.6; }
  /* Filtres : une seule ligne qui defile au doigt, au lieu de 4 lignes de boutons */
  .showcase-text .chips {
    flex-wrap: nowrap; justify-content: flex-start; gap: 6px;
    margin: 20px -18px 0; padding: 2px 18px 4px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scroll-padding-inline: 18px; scrollbar-width: none;
    /* Bords estompes : on voit qu'il y a d'autres filtres a droite */
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
  }
  .showcase-text .chips::-webkit-scrollbar { display: none; }
  .showcase-text .chips li { flex: none; scroll-snap-align: start; }
  .showcase-text .chips a { min-height: 36px; padding: 5px 14px; font-size: 13px; white-space: nowrap; }
}
.showcase-text .eyebrow { margin: 0 0 14px; font-size: 12px; line-height: 1.4; color: #e2ece5; }

/* Diaporama de la grande image (plusieurs images dans Reglages > Header) */
.showcase-image { opacity: 0; transition: opacity 1.2s ease; }
.showcase-image.is-active { opacity: 1; }
.slider-controls { position: absolute; right: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); bottom: 124px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.slider-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 99px; background: transparent; cursor: pointer; transition: width .3s, background-color .3s; }
.slider-dot[aria-current] { width: 26px; background: #fff; }
.slider-pause { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 99px; background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; }
.slider-pause:hover { background: rgb(255 255 255 / .3); }
.slider-pause .icon { width: 16px; height: 16px; }
.slider-pause .icon + .icon, .slider-pause.is-paused .icon:first-child { display: none; }
.slider-pause.is-paused .icon + .icon { display: block; }
@media (max-width: 700px) { .slider-controls { bottom: 112px; } }
