/* =========================================================
   Mayhana — feuille de style du site public
   Palette : ébène + or champagne, inspirée du logo brodé
   ========================================================= */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ebene: #1c1612;
  --ebene-2: #261e18;
  --ebene-3: #3d3127;
  --or: #c8a45d;
  --or-clair: #e8d5a0;
  --or-pale: #f2e7c9;
  --or-texte: #85662c;
  --bronze: #a68d5f;
  --lin: #fcfaf6;
  --sable: #f4ede1;
  --sable-2: #e6d9c2;
  --encre: #2b241e;
  --gris: #6c6156;
  --sur-sombre: #efe4cc;
  --sur-sombre-2: #bdac8b;
  --danger: #9e3a2b;
  --succes: #4d6a37;

  --degrade-or: linear-gradient(135deg, #ecdcaa 0%, #cba85f 48%, #a9853f 100%);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-texte: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: 1.6875rem;
  --t-2xl: 2.125rem;
  --t-3xl: clamp(2.25rem, 4.2vw, 3.25rem);
  --t-hero: clamp(2.6rem, 6.4vw, 5.25rem);

  --gouttiere: clamp(1rem, 4vw, 3rem);
  --largeur: 72rem;
  --rythme: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lin);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  font-weight: 350;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: currentColor; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 28;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.wrap--etroit { width: min(100% - 2 * var(--gouttiere), 44rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--or); color: var(--ebene); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--degrade-or);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--ebene);
  font: 500 var(--t-s)/1.2 var(--f-texte); letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 22px -12px rgba(150, 110, 40, 0.65);
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn--contour {
  background: transparent; color: var(--or-clair);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 93, 0.7);
}
.btn--contour:hover { background: rgba(200, 164, 93, 0.12); filter: none; }
.sur-clair .btn--contour, .btn--contour.sur-clair { color: var(--or-texte); box-shadow: inset 0 0 0 1px var(--or); }
.btn--petit { min-height: 2.4rem; padding: 0.45rem 1.1rem; font-size: var(--t-xs); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }

.lien-or { color: var(--or-texte); font-weight: 450; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 0.3em; }
.sombre .lien-or { color: var(--or-clair); }

/* ---------- En-tête ---------- */
.site-header { background: var(--ebene); color: var(--sur-sombre); position: relative; z-index: 20; border-bottom: 1px solid var(--ebene-3); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5.25rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 2.75rem; height: 2.75rem; }
.brand__word { width: 7.25rem; height: auto; margin-top: 0.35rem; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.5rem 0.85rem; color: var(--sur-sombre); text-decoration: none; font-size: var(--t-s); letter-spacing: 0.02em; border-radius: 999px; }
.nav a:hover { color: var(--or-clair); }
.nav a[aria-current="page"] { color: var(--or-clair); box-shadow: inset 0 -1px 0 var(--or); border-radius: 0; }
.nav-toggle { display: none; }
.site-header .btn { min-height: 2.6rem; padding: 0.5rem 1.25rem; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; order: 3;
    background: none; border: 1px solid var(--ebene-3); color: var(--sur-sombre);
    padding: 0.5rem 0.9rem; border-radius: 999px; font: inherit; font-size: var(--t-s); cursor: pointer;
  }
  .nav-toggle__bars { width: 16px; height: 10px; position: relative; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; transform: translateY(-50%); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ebene); border-bottom: 1px solid var(--ebene-3); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gouttiere) 1.25rem; }
  .nav a { padding: 0.85rem 0; font-size: var(--t-l); font-family: var(--f-display); border-bottom: 1px solid var(--ebene-3); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .site-header .btn { order: 2; }
}
@media (max-width: 520px) {
  .brand__mark { width: 2.25rem; height: 2.25rem; }
  .brand__word { width: 5.25rem; margin-top: 0.25rem; }
  .brand { gap: 0.4rem; }
  .site-header__inner { gap: 0.6rem; min-height: 4.5rem; }
  .site-header .btn { padding: 0.45rem 1rem; }
  .nav-toggle { padding: 0.5rem 0.75rem; }
}
@media (max-width: 370px) { .brand__word { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--rythme); }
.sombre { background: var(--ebene); color: var(--sur-sombre); }
.sombre h1, .sombre h2, .sombre h3 { color: var(--or-pale); }
.sable { background: var(--sable); }

.intro-section { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro-section p { color: var(--gris); font-size: var(--t-l); line-height: 1.55; font-weight: 300; }
.sombre .intro-section p { color: var(--sur-sombre-2); }
.centre { text-align: center; margin-inline: auto; }

.filet {
  display: flex; align-items: center; gap: 1rem; color: var(--or);
  margin: 0 0 1.25rem;
}
.filet::before, .filet::after { content: ""; height: 0; flex: 1; border-top: 3px double rgba(200, 164, 93, 0.75); }
.filet img { width: 1.75rem; height: 1.75rem; }

/* ---------- Arche (motif tiré des lobes du logo) ---------- */
.arche { position: relative; aspect-ratio: 5 / 7; width: 100%; }
.arche__cadre { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arche__cadre path { fill: none; stroke: var(--or); vector-effect: non-scaling-stroke; }
.arche__cadre .l1 { stroke-width: 1.25; }
.arche__cadre .l2 { stroke-width: 0.75; opacity: 0.7; }
.arche__media {
  position: absolute; inset: 4.2% 4.2% 0;
  -webkit-mask: url("../img/arch-mask.svg") center / 100% 100% no-repeat;
  mask: url("../img/arch-mask.svg") center / 100% 100% no-repeat;
  overflow: hidden; background: var(--ebene-2);
}
.arche__media img { width: 100%; height: 100%; object-fit: cover; }
.arche__lumiere {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(246, 226, 170, 0.75), rgba(246, 226, 170, 0) 70%),
    radial-gradient(80% 55% at 20% 85%, rgba(166, 120, 58, 0.55), rgba(166, 120, 58, 0) 70%),
    radial-gradient(70% 50% at 85% 70%, rgba(208, 168, 92, 0.45), rgba(208, 168, 92, 0) 70%),
    linear-gradient(180deg, #8a6532 0%, #5a3f22 55%, #2c2016 100%);
}
.arche__lumiere::after {
  content: ""; position: absolute; inset: 22% 18% auto; aspect-ratio: 1;
  background: url("../img/emblem-dark.svg") center / contain no-repeat;
  opacity: 0.22; filter: blur(0.3px);
}
.arche__lumiere--douce {
  background:
    radial-gradient(70% 50% at 50% 25%, rgba(255, 246, 222, 0.95), rgba(255, 246, 222, 0) 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(200, 164, 93, 0.5), rgba(200, 164, 93, 0) 70%),
    linear-gradient(180deg, #efdfba 0%, #d8bd85 60%, #b8955a 100%);
}
.arche__lumiere--douce::after { background-image: url("../img/emblem-mono.svg"); opacity: 0.18; }
.arche__legende { position: absolute; left: 8%; right: 8%; bottom: 6%; text-align: center; color: var(--or-pale); font-size: var(--t-xs); letter-spacing: 0.04em; }

/* ---------- Accueil : hero ---------- */
.hero { background: var(--ebene); color: var(--sur-sombre); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 30%; height: 80%;
  background: radial-gradient(closest-side, rgba(200, 164, 93, 0.18), rgba(200, 164, 93, 0));
  pointer-events: none;
}
.hero__grille {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: end;
  padding-block: clamp(3rem, 7vw, 6rem) 0;
}
.hero__texte { padding-bottom: clamp(3rem, 7vw, 6rem); position: relative; }
.hero__lieu { color: var(--or); font-size: var(--t-s); letter-spacing: 0.04em; margin-bottom: 1.5rem; }
.hero h1 {
  font-size: var(--t-hero); line-height: 1.02; color: var(--or-pale);
  font-variation-settings: "opsz" 96; letter-spacing: -0.015em; margin-bottom: 0.45em;
  max-width: 11ch;
}
.hero__chapo { font-size: var(--t-l); font-weight: 300; color: var(--sur-sombre-2); max-width: 32rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__horaire { margin-top: 2.25rem; display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-s); color: var(--sur-sombre-2); }
.point { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sur-sombre-2); flex: none; }
.point--ouvert { background: #9fbf6b; box-shadow: 0 0 0 4px rgba(159, 191, 107, 0.18); }
.hero__visuel { align-self: end; max-width: 26rem; justify-self: end; width: 100%; }
.hero .arche__media { inset: 4.2% 4.2% 0; }

.hero-anim .hero__visuel .arche__cadre .l1, .hero-anim .hero__visuel .arche__cadre .l2 { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: trace 2.4s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-anim .hero__visuel .arche__cadre .l2 { animation-delay: 0.35s; }
.hero-anim .hero__visuel .arche__media { opacity: 0; animation: apparait 1.4s 0.9s ease forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparait { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-anim .hero__visuel .arche__cadre .l1, .hero-anim .hero__visuel .arche__cadre .l2 { animation: none; stroke-dashoffset: 0; }
  .hero-anim .hero__visuel .arche__media { animation: none; opacity: 1; }
}

@media (max-width: 860px) {
  .hero__grille { grid-template-columns: 1fr; gap: 0; }
  .hero__visuel { order: -1; justify-self: center; max-width: 15rem; margin-bottom: 2.25rem; }
  .hero__texte { padding-bottom: 3.5rem; }
}

/* ---------- Accueil : engagements ---------- */
.deux-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; } }
.declaration { font-family: var(--f-display); font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.18; font-variation-settings: "opsz" 48; color: var(--ebene); margin: 0; }
.engagements { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.engagements li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }
.engagements img { width: 1.6rem; height: 1.6rem; margin-top: 0.3rem; }
.engagements h3 { font-size: var(--t-l); margin: 0 0 0.25rem; }
.engagements p { margin: 0; color: var(--gris); }

/* ---------- Carte des soins (style menu imprimé) ---------- */
.menu-cadre { border-top: 3px double var(--or); border-bottom: 3px double var(--or); padding: clamp(1.5rem, 4vw, 3rem) 0; }
.menu-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 760px) { .menu-grille { grid-template-columns: 1fr; } }
.soin { padding: 1.1rem 0; border-bottom: 1px solid var(--sable-2); }
.soin:last-child { border-bottom: 0; }
.soin__ligne { display: flex; align-items: baseline; gap: 0.6rem; }
.soin__nom { font-family: var(--f-display); font-size: var(--t-l); line-height: 1.25; font-variation-settings: "opsz" 20; margin: 0; }
.soin__pointilles { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted var(--bronze); transform: translateY(-0.3em); }
.soin__prix { font-family: var(--f-display); font-size: var(--t-l); white-space: nowrap; color: var(--or-texte); font-variant-numeric: lining-nums; }
.soin__desc { color: var(--gris); font-size: var(--t-s); margin: 0.3rem 0 0; max-width: 34rem; }
.soin__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; margin-top: 0.45rem; font-size: var(--t-xs); color: var(--gris); }
.soin__meta a { color: var(--or-texte); font-weight: 500; letter-spacing: 0.02em; }
.menu-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.menu-pied p { margin: 0; color: var(--gris); font-size: var(--t-s); }

/* ---------- Rituel (séquence) ---------- */
.rituel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: etape; position: relative; }
.rituel::before { content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; border-top: 1px solid var(--ebene-3); }
.rituel li { position: relative; counter-increment: etape; }
.rituel__num {
  position: relative; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--ebene); border: 1px solid var(--or); color: var(--or-clair);
  font-family: var(--f-display); font-size: var(--t-l); margin-bottom: 1.25rem;
}
.rituel h3 { font-size: var(--t-l); margin-bottom: 0.4rem; }
.rituel p { color: var(--sur-sombre-2); font-size: var(--t-s); margin: 0; }
@media (max-width: 900px) {
  .rituel { grid-template-columns: 1fr; gap: 0; }
  .rituel::before { left: 1.4rem; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--ebene-3); }
  .rituel li { display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1.25rem; padding-bottom: 1.75rem; }
  .rituel__num { grid-row: span 2; margin: 0; }
}

/* ---------- Horaires & accès ---------- */
.horaires { width: 100%; border-collapse: collapse; font-size: var(--t-m); }
.horaires th, .horaires td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--sable-2); font-weight: 350; }
.horaires td { text-align: right; font-variant-numeric: tabular-nums; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--or-texte); font-weight: 500; }
.horaires tr.ferme td { color: var(--gris); }
.sombre .horaires th, .sombre .horaires td { border-color: var(--ebene-3); }
.sombre .horaires tr.aujourdhui th, .sombre .horaires tr.aujourdhui td { color: var(--or-clair); }

.coordonnees { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.coordonnees li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.coordonnees span:first-child { color: var(--gris); font-size: var(--t-s); }
.sombre .coordonnees span:first-child { color: var(--sur-sombre-2); }
.carte-plan { aspect-ratio: 4 / 3; width: 100%; border: 0; display: block; background: var(--sable); filter: sepia(0.25) saturate(0.85); }
.plan-vide { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--sable); border: 1px solid var(--sable-2); color: var(--gris); font-size: var(--t-s); }
.plan-vide img { width: 3rem; margin: 0 auto 0.75rem; opacity: 0.8; }

/* ---------- En-tête de page intérieure ---------- */
.entete-page { background: var(--ebene); color: var(--sur-sombre); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.entete-page::after {
  content: ""; position: absolute; right: -6rem; top: 50%; width: 22rem; aspect-ratio: 1; transform: translateY(-50%);
  background: url("../img/emblem-dark.svg") center / contain no-repeat; opacity: 0.09; pointer-events: none;
}
.entete-page h1 { color: var(--or-pale); font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-variation-settings: "opsz" 96; margin-bottom: 0.3em; max-width: 16ch; }
.entete-page p { color: var(--sur-sombre-2); font-size: var(--t-l); font-weight: 300; max-width: 36rem; margin: 0; }
.fil-ariane { font-size: var(--t-xs); color: var(--sur-sombre-2); margin-bottom: 1.5rem; }
.fil-ariane a { color: var(--or-clair); }

/* ---------- Page carte des soins ---------- */
.categories-nav { position: sticky; top: 0; z-index: 10; background: rgba(252, 250, 246, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sable-2); }
.categories-nav ul { display: flex; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0.9rem 0; overflow-x: auto; scrollbar-width: none; }
.categories-nav a { white-space: nowrap; font-size: var(--t-s); text-decoration: none; color: var(--gris); }
.categories-nav a:hover { color: var(--or-texte); }
.categorie { padding-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 4rem; }
.categorie__tete { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); }
.categorie__tete h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.categorie__tete p { color: var(--gris); }
@media (max-width: 760px) { .categorie__tete { grid-template-columns: 1fr; gap: 0; } }
.note-tarifs { color: var(--gris); font-size: var(--t-s); margin-top: 3rem; }

/* ---------- Univers ---------- */
.recit { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.recit__visuel { max-width: 24rem; width: 100%; }
.recit__texte p { font-size: var(--t-l); font-weight: 300; line-height: 1.6; }
.recit--inverse .recit__visuel { order: 2; justify-self: end; }
@media (max-width: 860px) {
  .recit { grid-template-columns: 1fr; }
  .recit__visuel, .recit--inverse .recit__visuel { order: -1; max-width: 16rem; justify-self: center; }
}
.trois-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .trois-col { grid-template-columns: 1fr; } }
.valeur { border-top: 1px solid var(--or); padding-top: 1.5rem; }
.valeur h3 { font-size: var(--t-xl); }
.valeur p { color: var(--gris); margin: 0; }
.sombre .valeur p { color: var(--sur-sombre-2); }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); }
.galerie figure { margin: 0; }
.galerie figure:nth-child(3n + 2) { margin-top: clamp(1.5rem, 6vw, 4rem); }
.galerie figcaption { text-align: center; font-size: var(--t-s); color: var(--gris); margin-top: 0.85rem; }
.galerie .arche__media img { cursor: zoom-in; }
@media (max-width: 760px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } .galerie figure:nth-child(3n + 2) { margin-top: 0; } .galerie figure:nth-child(2n) { margin-top: 2rem; } }
.visionneuse { position: fixed; inset: 0; z-index: 50; background: rgba(20, 15, 11, 0.94); display: none; place-items: center; padding: 2rem; }
.visionneuse.is-open { display: grid; }
.visionneuse img { max-height: 86vh; width: auto; max-width: 100%; }
.visionneuse button { position: absolute; top: 1rem; right: 1rem; background: none; border: 1px solid var(--or); color: var(--or-clair); border-radius: 999px; padding: 0.5rem 1rem; font: inherit; cursor: pointer; }

/* ---------- Formulaires ---------- */
.champ { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.champ label, .champ .label { font-size: var(--t-s); font-weight: 450; color: var(--encre); }
.champ .facultatif { color: var(--gris); font-weight: 350; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  background: #fff; border: 1px solid var(--sable-2); border-radius: 4px;
  padding: 0.8rem 0.9rem; min-height: 3rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.25); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--danger); }
.erreur-champ { color: var(--danger); font-size: var(--t-xs); margin: 0; }
.case { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-s); color: var(--gris); }
.case input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--or-texte); flex: none; }
.grille-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
@media (max-width: 640px) { .grille-champs { grid-template-columns: 1fr; } }

.alerte { padding: 1rem 1.25rem; border-left: 3px solid var(--or); background: var(--sable); margin-bottom: 1.5rem; font-size: var(--t-s); }
.alerte--erreur { border-color: var(--danger); background: #f8ebe6; color: #5e2117; }
.alerte--succes { border-color: var(--succes); background: #eef2e6; color: #2f4221; }
.alerte p:last-child { margin: 0; }

/* ---------- Réservation ---------- */
.resa { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .resa { grid-template-columns: 1fr; } }
.etape { border-top: 1px solid var(--sable-2); padding: 2rem 0; }
.etape:first-child { border-top: 0; padding-top: 0; }
.etape__titre { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.25rem; }
.etape__titre h2 { font-size: var(--t-xl); margin: 0; }
.etape__num { font-family: var(--f-display); color: var(--or-texte); font-size: var(--t-l); min-width: 1.4rem; }
.etape[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.etape[aria-disabled="true"] .etape__titre h2::after { content: ""; }

.choix-soins fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.choix-soins legend { font-family: var(--f-display); font-size: var(--t-l); padding: 0; margin-bottom: 0.5rem; color: var(--or-texte); }
.choix-soin { display: grid; grid-template-columns: 1.25rem 1fr auto; gap: 0.85rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--sable-2); background: #fff; border-radius: 4px; margin-bottom: 0.5rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choix-soin:hover { border-color: var(--or); }
.choix-soin input { accent-color: var(--or-texte); width: 1.1rem; height: 1.1rem; margin: 0; }
.choix-soin:has(input:checked) { border-color: var(--or); background: #fffbf1; box-shadow: inset 3px 0 0 var(--or); }
.choix-soin__nom { font-weight: 450; display: block; line-height: 1.3; }
.choix-soin__duree { color: var(--gris); font-size: var(--t-xs); }
.choix-soin__prix { font-family: var(--f-display); color: var(--or-texte); white-space: nowrap; }

.calendrier { max-width: 26rem; }
.calendrier__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.calendrier__mois { font-family: var(--f-display); font-size: var(--t-l); text-transform: capitalize; }
.calendrier__nav { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--sable-2); background: #fff; cursor: pointer; font: inherit; color: var(--encre); display: grid; place-items: center; }
.calendrier__nav:disabled { opacity: 0.35; cursor: default; }
.calendrier__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.calendrier__jsem { text-align: center; font-size: var(--t-xs); color: var(--gris); padding-bottom: 0.25rem; }
.jour { aspect-ratio: 1; border: 1px solid transparent; border-radius: 50%; background: none; font: inherit; font-size: var(--t-s); color: var(--encre); cursor: pointer; font-variant-numeric: tabular-nums; }
.jour--open { background: #fff; border-color: var(--sable-2); }
.jour--open:hover { border-color: var(--or); }
.jour--full, .jour--closed, .jour--off { color: #b5aa9b; cursor: default; }
.jour--full { text-decoration: line-through; }
.jour[aria-pressed="true"] { background: var(--ebene); color: var(--or-pale); border-color: var(--ebene); }
.legende-cal { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--t-xs); color: var(--gris); margin-top: 0.75rem; }

.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.5rem; margin-top: 1.5rem; }
.creneau { min-height: 2.75rem; border: 1px solid var(--sable-2); background: #fff; border-radius: 999px; font: inherit; font-size: var(--t-s); cursor: pointer; font-variant-numeric: tabular-nums; color: var(--encre); }
.creneau:hover { border-color: var(--or); }
.creneau[aria-pressed="true"] { background: var(--ebene); color: var(--or-pale); border-color: var(--ebene); }
.creneau:disabled { color: #b5aa9b; text-decoration: line-through; cursor: default; background: transparent; }
.creneaux-info { color: var(--gris); font-size: var(--t-s); margin-top: 1rem; }

.recap { position: sticky; top: 1.5rem; background: var(--ebene); color: var(--sur-sombre); padding: 1.75rem; border-radius: 2px; }
.recap h2 { font-size: var(--t-xl); color: var(--or-pale); }
.recap dl { margin: 0 0 1.5rem; display: grid; gap: 0.85rem; }
.recap dt { font-size: var(--t-xs); color: var(--sur-sombre-2); }
.recap dd { margin: 0; font-size: var(--t-m); }
.recap__vide { color: var(--sur-sombre-2); }
.recap .btn { width: 100%; }
.recap__note { font-size: var(--t-xs); color: var(--sur-sombre-2); margin: 1rem 0 0; }

.confirmation { text-align: center; }
.confirmation .emblem-grand { width: 5rem; margin: 0 auto 1.5rem; }
.ref { display: inline-block; font-family: var(--f-display); font-size: var(--t-2xl); letter-spacing: 0.06em; color: var(--or-texte); border-top: 3px double var(--or); border-bottom: 3px double var(--or); padding: 0.4rem 1.5rem; margin: 0.5rem 0 1.5rem; }
.fiche { text-align: left; border: 1px solid var(--sable-2); background: #fff; padding: 1.5rem; margin: 2rem 0; }
.fiche dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.6rem 1rem; margin: 0; }
.fiche dt { color: var(--gris); font-size: var(--t-s); }
.fiche dd { margin: 0; }
.statut { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: var(--t-xs); font-weight: 500; }
.statut--pending { background: #f6ecd2; color: #6d5115; }
.statut--confirmed { background: #e3ecd6; color: #34491f; }
.statut--cancelled, .statut--no_show { background: #f1e0da; color: #6b2a1e; }
.statut--completed { background: #e7e2db; color: #4a4036; }

/* ---------- Pages légales ---------- */
.texte-long h2 { font-size: var(--t-xl); margin-top: 2.5rem; }
.texte-long p, .texte-long li { color: var(--encre); }
.texte-long .a-completer { background: #fbf1d7; padding: 0 0.25rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ebene); color: var(--sur-sombre-2); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: var(--t-s); }
.site-footer__grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__logo { width: 9.5rem; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--f-texte); font-size: var(--t-s); font-weight: 500; color: var(--or-clair); letter-spacing: 0.04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--sur-sombre); text-decoration: none; }
.site-footer a:hover { color: var(--or-clair); }
.site-footer .horaires th, .site-footer .horaires td { padding: 0.3rem 0; font-size: var(--t-s); color: var(--sur-sombre-2); border-color: var(--ebene-3); }
.site-footer .horaires tr.aujourdhui th, .site-footer .horaires tr.aujourdhui td { color: var(--or-clair); }
.site-footer__bas { border-top: 1px solid var(--ebene-3); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); }
.site-footer__bas ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 900px) { .site-footer__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grille { grid-template-columns: 1fr; } }

.whatsapp-flottant {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ebene); color: var(--or-pale); text-decoration: none;
  border: 1px solid var(--or); border-radius: 999px; padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  font-size: var(--t-s); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.whatsapp-flottant svg { width: 1.3rem; height: 1.3rem; fill: var(--or-clair); }
.whatsapp-flottant { padding: 0.85rem; }
.whatsapp-flottant span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 404 ---------- */
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--rythme); }
.page-404 img { width: 5rem; margin: 0 auto 1.5rem; }

/* Choix du soin : catégories repliables */
.categorie-choix { border-bottom: 1px solid var(--sable-2); }
.categorie-choix summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.95rem 0; font-family: var(--f-display); font-size: var(--t-l);
}
.categorie-choix summary::-webkit-details-marker { display: none; }
.categorie-choix summary::after { content: "+"; margin-left: auto; color: var(--or-texte); font-family: var(--f-texte); font-size: var(--t-l); line-height: 1; }
.categorie-choix[open] summary::after { content: "–"; }
.categorie-choix .compte { color: var(--gris); font-family: var(--f-texte); font-size: var(--t-xs); }
.categorie-choix fieldset { padding-bottom: 1rem; margin: 0; }
.alerte ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.alerte:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.annulation { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sable-2); }
.actions-resa { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Page Carte des soins : scène 3D ---------- */
.carte-scene {
  background:
    radial-gradient(60% 55% at 50% 55%, rgba(200, 164, 93, 0.14), rgba(200, 164, 93, 0) 70%),
    var(--ebene);
  color: var(--sur-sombre);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}
.carte-scene__tete { text-align: center; max-width: 40rem; margin-bottom: clamp(0.5rem, 2vw, 1.5rem); }
.carte-scene__tete h1 { color: var(--or-pale); font-size: clamp(2.4rem, 5.6vw, 4rem); font-variation-settings: "opsz" 96; margin-bottom: 0.3em; }
.carte-scene__tete p { color: var(--sur-sombre-2); font-size: var(--t-l); font-weight: 300; margin: 0; }
.carte-scene__suite { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 2rem 0 0; }
.categories-nav { scroll-margin-top: 0; }

/* Accueil : carte des soins avec aperçu 3D */
.accueil-carte { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.accueil-carte .intro-section { margin-bottom: 1.75rem; }
.menu-cadre--une-colonne { padding: 0.5rem 0; }
@media (max-width: 860px) { .accueil-carte { grid-template-columns: 1fr; } .accueil-carte .carte-apercu { margin-bottom: 1rem; } }
