/* ==========================================================================
   Mi'Beauté — feuille de style
   ========================================================================== */

:root {
  --ivory: #FAF6F0;
  --cream: #F3ECE2;
  --sand: #E6D9C7;
  --line: #EAE0D3;
  --ink: #2A221D;
  --ink-deep: #221B17;
  --text: #4A3F37;
  --muted: #76675B;
  --gold: #B8894C;
  --gold-deep: #93672E;
  --gold-soft: #EEE1CB;
  --green: #4E8A62;
  --closed: #B5644A;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 24px;
  --shadow: 0 30px 60px -30px rgba(42, 34, 29, .35);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1 em, h2 em { font-style: italic; color: var(--gold-deep); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  margin: 0;
  font: 500 .75rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section { padding-block: clamp(72px, 10vw, 128px); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); margin: 18px 0; }
.section-head p { color: var(--muted); margin: 0; }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 16px; height: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 .95rem/1.1 var(--sans);
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--gold-deep);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(147, 103, 46, .8);
}
.btn--primary:hover { background: #7C5624; }

.btn--ghost { border-color: rgba(42, 34, 29, .22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(42, 34, 29, .04); }

.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--sm { min-height: 44px; padding: 0 22px; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  color: var(--gold-deep);
  transition: gap .25s var(--ease), color .25s;
}
.link-arrow .icon { width: 16px; height: 16px; }
.link-arrow:hover { gap: 12px; color: #7C5624; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(250, 246, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; }
.brand-name {
  font: 600 1.4rem/1 var(--serif);
  letter-spacing: .02em;
  color: var(--ink);
}

.nav { display: flex; gap: clamp(20px, 3vw, 36px); }
.nav a {
  position: relative;
  padding-block: 6px;
  font-size: .925rem;
  color: var(--text);
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(42, 34, 29, .15);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto;
}
.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.menu-open body { overflow: hidden; }

.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 2rem/1.2 var(--serif);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 32px; }
.mobile-menu-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: auto;
  padding-top: 32px;
  font-size: .95rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header .nav, .site-header .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .brand img { width: 42px; height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 225, 203, .9), rgba(238, 225, 203, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  margin: 22px 0 26px;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  line-height: 1;
}
.hero-lead { max-width: 33em; font-size: 1.125rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust strong { color: var(--ink); font-weight: 500; }
.hero-trust .icon { color: var(--gold-deep); }

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px;
  background: var(--cream);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px;
  opacity: .55;
  pointer-events: none;
}

.hero-card {
  position: absolute;
  left: -36px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .875rem;
  line-height: 1.4;
}
.hero-card strong { display: block; color: var(--ink); font-weight: 500; font-size: .95rem; }
.hero-card span { color: var(--muted); }

.status-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(78, 138, 98, .18);
}
.status-dot.is-closed { background: var(--closed); box-shadow: 0 0 0 4px rgba(181, 100, 74, .18); }

.hero-badge {
  position: absolute;
  top: 36px;
  right: -20px;
  display: grid;
  place-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow);
}
.hero-badge b { font: 500 2.1rem/1 var(--serif); }
.hero-badge .stars { justify-content: center; margin: 6px 0 4px; }
.hero-badge .stars .icon { width: 10px; height: 10px; }
.hero-badge small { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: #CDBFAE; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; max-width: 400px; margin-top: 12px; }
  .hero-card { left: -6px; bottom: 28px; }
  .hero-badge { right: -6px; top: 20px; width: 96px; height: 96px; }
  .hero-badge b { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  background: var(--ink);
  color: var(--gold-soft);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  margin: 0;
  list-style: none;
  font: italic 500 1.5rem/1 var(--serif);
  white-space: nowrap;
}
.marquee-group li { display: flex; align-items: center; gap: 40px; }
.marquee-group li::after { content: "✦"; font-style: normal; font-size: .9rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Soins ---------- */
.services { display: grid; gap: clamp(72px, 10vw, 128px); }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.service:nth-child(even) .service-media { order: 2; }

.service-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-num { font: italic 500 1.2rem/1 var(--serif); color: var(--gold-deep); }
.service h3 { margin: 10px 0 14px; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.service-desc { max-width: 30em; color: var(--muted); }

.menu { margin: 28px 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--sand); }
.menu li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.menu .price {
  font: 600 1.4rem/1 var(--serif);
  white-space: nowrap;
  color: var(--ink);
}
.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  vertical-align: 2px;
}

@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media img { aspect-ratio: 4 / 3; }
}

/* ---------- L'institut ---------- */
.institut { background: var(--cream); }
.institut-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.institut-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.institut h2 { margin: 18px 0 24px; font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.signature { margin: 8px 0 0; font: italic 500 1.75rem/1 var(--serif); color: var(--gold-deep); }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--sand);
}
.value .icon { width: 28px; height: 28px; margin-bottom: 14px; color: var(--gold-deep); }
.value h3 { margin-bottom: 6px; font: 500 1rem/1.3 var(--sans); letter-spacing: 0; }
.value p { margin: 0; font-size: .925rem; color: var(--muted); }

@media (max-width: 900px) {
  .institut-grid { grid-template-columns: 1fr; }
  .institut-media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .values { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Avis ---------- */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.reviews-head .section-head { margin-bottom: 0; }
.rating { display: flex; align-items: center; gap: 20px; }
.rating-score { font: 500 4.75rem/1 var(--serif); color: var(--ink); }
.rating p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.review::before {
  content: "\201C";
  height: 34px;
  font: 500 4.5rem/.9 var(--serif);
  color: var(--gold);
}
.review blockquote {
  flex: 1;
  margin: 0 0 28px;
  font: italic 400 1.3rem/1.5 var(--serif);
  color: var(--ink);
}
.review-author { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.review-author strong { display: block; color: var(--ink); font-weight: 500; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font: 600 1.15rem/1 var(--serif);
}
.reviews-more { margin-top: 40px; text-align: center; }

@media (max-width: 900px) {
  .reviews {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 380px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}

/* ---------- Réservation (bandeau) ---------- */
.booking {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #D9CCBB;
}
.booking::before {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -60%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 137, 76, .22), rgba(184, 137, 76, 0));
  pointer-events: none;
}
.booking-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.booking .eyebrow { color: var(--gold); }
.booking h2 { margin: 18px 0 20px; font-size: clamp(2.25rem, 4.6vw, 3.5rem); color: var(--ivory); }
.booking h2 em { color: var(--gold); }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.booking-actions a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); }
.booking-actions a:not(.btn):hover { color: var(--gold-soft); }
.booking-note { margin: 20px 0 0; font-size: .85rem; color: #A99A88; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(250, 246, 240, .14);
}
.step:last-child { border-bottom: 1px solid rgba(250, 246, 240, .14); }
.step-num { grid-row: span 2; font: italic 500 2.5rem/1 var(--serif); color: var(--gold); }
.step h3 { font: 500 1.125rem/1.3 var(--sans); letter-spacing: 0; color: var(--ivory); }
.step p { margin: 0; font-size: .95rem; color: #BFB09E; }

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

/* ---------- Infos pratiques ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-col { display: grid; gap: 24px; align-content: start; }

.card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.card-title h3 { font-size: 1.75rem; }

.contact-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.contact-item { display: flex; gap: 16px; }
.icon-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-deep);
}
.contact-item h3 {
  margin: 2px 0 6px;
  font: 500 .72rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item p { margin: 0; color: var(--ink); }
.contact-item .contact-warning { margin-top: 4px; color: var(--gold-deep); font-weight: 500; }
.contact-item a:not(.link-arrow) { color: var(--ink); border-bottom: 1px solid var(--sand); transition: border-color .25s; }
.contact-item a:not(.link-arrow):hover { border-color: var(--gold-deep); }
.contact-item .link-arrow { margin-top: 8px; font-size: .9rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cream);
  font-size: .85rem;
  color: var(--ink);
}

.hours { width: 100%; border-collapse: collapse; font-size: .975rem; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; color: var(--text); }
.hours td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--muted); font-style: italic; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold-deep); font-weight: 500; }
.hours tr.is-today th::after { content: " · aujourd'hui"; font-size: .8rem; font-weight: 400; }
/* Changements ponctuels d'horaires (vacances…) réglés dans l'admin */
.hours-note { display: grid; gap: 6px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); font-size: .9rem; line-height: 1.5; }
.hours-note p { margin: 0; }
.hours-note strong { color: var(--gold-deep); font-weight: 500; }
.hours-note--hero { max-width: 560px; margin: 16px auto 0; text-align: center; }

.map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(184, 137, 76, .12) 46px 48px),
    repeating-linear-gradient(-62deg, transparent 0 70px, rgba(184, 137, 76, .10) 70px 72px);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 32px;
  background: var(--ink-deep);
  color: #B9AB9A;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { max-width: 22em; margin: 18px 0 0; }
.footer-brand .brand-name { color: var(--ivory); }
.footer-title {
  margin: 0 0 18px;
  font: 500 .75rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory);
}
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--ivory); }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250, 246, 240, .18);
  border-radius: 50%;
  transition: background-color .25s, border-color .25s, color .25s;
}
.socials a:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.socials .icon { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 240, .1);
  font-size: .825rem;
  color: #9A8C7B;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.site-footer--slim { padding: 32px 0; }
.site-footer--slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

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

/* ---------- Barre de réservation mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(42, 34, 29, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 24px));
  transition: transform .4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 48px; }
.sticky-cta .wa {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: rgba(250, 246, 240, .1);
  color: var(--ivory);
}
@media (max-width: 900px) { .sticky-cta { display: flex; } }

/* ---------- Pages intérieures ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 225, 203, .9), rgba(238, 225, 203, 0));
  transform: translateX(-50%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin: 18px 0 16px; font-size: clamp(2.5rem, 5.5vw, 4rem); }
.page-hero p { max-width: 36em; margin: 0 auto; color: var(--muted); }

.mini-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--ink);
}
.mini-steps li { display: flex; align-items: center; gap: 10px; }
.mini-steps b { font: italic 500 1.3rem/1 var(--serif); color: var(--gold-deep); }

.widget-card {
  max-width: 880px;
  min-height: 520px;
  margin-inline: auto;
  padding: clamp(10px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--gold-deep); width: 18px; height: 18px; }

.help-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 880px;
  margin: 40px auto 0;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--cream);
}
.help-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.help-card p { margin: 0; color: var(--muted); }
.help-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin: 48px 0 14px; font-size: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { margin-top: 48px; font-size: .85rem; font-style: italic; color: var(--muted); }

/* ---------- Animations d'apparition ---------- */
/* Le haut de page s'affiche immédiatement ; le reste apparaît au défilement */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s !important; }
.reveal-delay-2 { transition-delay: .2s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Réservation en ligne
   ========================================================================== */
[hidden] { display: none !important; }
.page-hero--compact { padding-bottom: clamp(20px, 3vw, 32px); }
.booking-section { padding-bottom: clamp(72px, 10vw, 120px); }

.upcoming {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: .95rem;
}
.upcoming strong { font-weight: 500; }

.stepper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}
.stepper li { display: flex; align-items: center; gap: 10px; }
.stepper span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  font-size: .8rem;
}
.stepper .is-active { color: var(--ink); font-weight: 500; }
.stepper .is-active span { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.stepper .is-done span { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--gold-deep); }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
}
.booking-main {
  min-height: 420px;
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}
.is-complete .booking-layout { grid-template-columns: 1fr; max-width: 760px; }
.is-complete .summary, .is-complete .stepper { display: none; }

.step-title { margin: 0 0 20px; font-size: 1.75rem; }
.loading-text { margin: 0; color: var(--muted); }

/* Étape 1 */
.cat-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--text);
  font: 500 .875rem/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cat-tab:hover { border-color: var(--sand); }
.cat-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.cat-tab .count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-size: .72rem;
}
.cat-desc { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.cat-hint { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }

.svc-list { display: grid; gap: 10px; }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.svc:hover { border-color: var(--sand); }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--sand);
  border-radius: 7px;
  transition: background-color .2s, border-color .2s;
}
.svc-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}
.svc.is-checked { border-color: var(--gold-deep); background: #FBF6EE; }
.svc.is-checked .svc-check { background: var(--gold-deep); border-color: var(--gold-deep); }
.svc.is-checked .svc-check::after { opacity: 1; }
.svc:focus-within { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.svc-name { color: var(--ink); line-height: 1.35; }
.svc-name small { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.svc-price { font: 600 1.25rem/1 var(--serif); color: var(--ink); white-space: nowrap; }

/* Étape 2 */
.days { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.days-list { display: grid; flex: 1; min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.days-list[aria-busy="true"] { opacity: .5; }
.day {
  display: grid;
  gap: 2px;
  padding: 10px 2px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ivory);
  color: var(--muted);
  font: 400 .78rem/1.2 var(--sans);
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.day:hover:not(:disabled) { border-color: var(--gold-deep); }
.day b { font: 500 1.5rem/1.1 var(--serif); color: var(--ink); }
.day small { font-size: .7rem; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #D9CCBB; }
.day[aria-pressed="true"] b { color: var(--ivory); }
.day:disabled { background: transparent; opacity: .45; cursor: not-allowed; }
.days-nav {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.days-nav:disabled { opacity: .35; cursor: not-allowed; }

.slots-day { margin: 0 0 16px; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.slot-group { margin-bottom: 18px; }
.slot-group h3 {
  margin: 0 0 10px;
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.slot {
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 500 .95rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.slot:hover { border-color: var(--gold-deep); }
.slot[aria-pressed="true"] { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.slots-empty {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--text);
  text-align: center;
}
.slots-empty a { color: var(--gold-deep); text-decoration: underline; }

/* Étape 3 */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { color: var(--ink); font-size: .95rem; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--sand);
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.field small { color: var(--muted); font-size: .82rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--closed); background: #FDF5F2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.form-legal a { color: var(--gold-deep); text-decoration: underline; }
.form-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FBEDE8;
  color: #8A3B26;
  font-size: .92rem;
}
.slots .form-error { margin: 0 0 16px; }

/* Étape 4 */
.step-done { padding: 16px 0; text-align: center; }
.done-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.done-icon .icon { width: 36px; height: 36px; }
.step-done h2 { margin-bottom: 8px; font-size: clamp(2.25rem, 5vw, 3rem); }
.done-when { margin-bottom: 20px; font: italic 500 1.5rem/1.3 var(--serif); color: var(--gold-deep); }
.done-items { display: grid; gap: 6px; margin: 0 auto 10px; padding: 0; list-style: none; color: var(--ink); }
.done-total { color: var(--muted); }
.done-pay { margin-top: -4px; color: var(--muted); font-size: .85rem; }
.turnstile:not(:empty) { margin: 4px 0 14px; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; }
.done-note { max-width: 34em; margin: 0 auto; color: var(--muted); font-size: .9rem; }
.done-note a { color: var(--gold-deep); text-decoration: underline; }

/* Récapitulatif */
.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 28px;
  border-radius: 28px;
  background: var(--ink);
  color: #D9CCBB;
}
.summary-title { margin-bottom: 16px; font-size: 1.6rem; color: var(--ivory); }
.summary-items { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .92rem; }
.summary-items li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; color: var(--ivory); }
.summary-items button {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #A99A88;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.summary-items button:hover { color: var(--ivory); }
.summary-empty { color: #A99A88; font-style: italic; }
.summary-when { margin: 0 0 14px; padding-top: 14px; border-top: 1px solid rgba(250, 246, 240, .14); color: var(--gold-soft); }
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 246, 240, .14);
}
.summary-total strong { font: 500 2rem/1 var(--serif); color: var(--ivory); }
.summary-next { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.summary-back {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: none;
  color: #D9CCBB;
  font-size: .9rem;
  cursor: pointer;
}
.summary-back:hover { color: var(--ivory); }
.summary-note { margin: 14px 0 0; color: #A99A88; font-size: .8rem; text-align: center; }

@media (max-width: 900px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .summary {
    position: sticky;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 14px 16px;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .summary-title, .summary-items, .summary-note { display: none; }
  .summary-when { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; font-size: .85rem; }
  .summary-total { flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 0; border: 0; font-size: .8rem; }
  .summary-total strong { font-size: 1.5rem; }
  .summary-next { width: auto; min-height: 46px; padding: 0 18px; }
  .summary-back { grid-column: 1 / -1; margin: 0; padding: 2px; }
}
@media (max-width: 600px) {
  .stepper { gap: 8px 16px; font-size: .82rem; }
  .days-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .days-list::-webkit-scrollbar { display: none; }
  .day { flex: 0 0 64px; scroll-snap-align: start; }
  .days-nav { width: 34px; height: 34px; }
  .svc { gap: 12px; padding: 13px 14px; }
}

/* ==========================================================================
   Gestion d'un rendez-vous (page d'annulation)
   ========================================================================== */
.manage-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  text-align: center;
}
.manage-card h2 { margin: 14px 0 16px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.manage-status {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.manage-status.is-cancelled { background: #FBEDE8; color: #8A3B26; }
.manage-flash { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #EEF5EF; color: #2F5E3E; }

/* ==========================================================================
   Espace admin
   ========================================================================== */
.admin { background: var(--cream); }
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 240, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.admin-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.admin-header .brand img { width: 40px; height: 40px; }
.admin-header [data-logout] { margin-left: auto; }
.admin-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-main { padding-top: 28px; padding-bottom: 72px; }

.admin-login { display: grid; place-items: center; min-height: 60vh; }
.login-card { width: 100%; max-width: 420px; }
.login-card h1 { margin-bottom: 8px; font-size: 2rem; }
.login-card p { color: var(--muted); }
.login-card .btn { width: 100%; margin-top: 8px; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.admin-week { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-week h1 { min-width: 12ch; font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .btn { background-color: #fff; }
.admin-actions .btn--primary { background-color: var(--gold-deep); }
.admin-stats { margin: 4px 0 10px; color: var(--muted); font-size: .92rem; }
.admin-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--text); font-size: .9rem; cursor: pointer; }
.admin-toggle input { width: 18px; height: 18px; accent-color: var(--gold-deep); }

.admin-days { display: grid; gap: 14px; }
.admin-days[aria-busy="true"] { opacity: .55; }
.admin-day { padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.admin-day.is-today { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 76, .12); }
.admin-day.is-past { opacity: .72; }
.admin-day header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.admin-day h2 { font-size: 1.45rem; }
.today-badge {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font: 500 .7rem/1.4 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.admin-hours { color: var(--muted); font-size: .85rem; }
.admin-empty { margin: 0; color: var(--muted); font-size: .9rem; font-style: italic; }

.appt {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.appt:first-of-type { border-top: 0; }
.appt-time { font: 600 1.15rem/1.1 var(--serif); color: var(--ink); }
.appt-time span { display: block; margin-top: 4px; color: var(--muted); font: 400 .8rem/1 var(--sans); }
.appt-body p { margin: 0 0 4px; }
.appt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); }
.appt-name strong { font-weight: 500; }
.appt-badge { padding: 2px 9px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: .72rem; }
.appt-services { color: var(--text); font-size: .92rem; }
.appt-contact { font-size: .9rem; }
.appt-contact a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.appt-note { color: var(--muted); font-size: .88rem; font-style: italic; }
.appt-action {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: 500 .8rem/1.2 var(--sans);
  cursor: pointer;
}
.appt-action:hover { border-color: var(--closed); color: var(--closed); }
.appt.is-cancelled { opacity: .55; }
.appt.is-cancelled .appt-name strong { text-decoration: line-through; }
.appt--block .appt-time { color: var(--muted); font-size: 1rem; }
.appt--block { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(184, 137, 76, .06) 8px 16px); border-radius: 12px; padding-inline: 10px; }

.admin-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: var(--ivory);
  color: var(--text);
  box-shadow: var(--shadow);
}
.admin-dialog::backdrop { background: rgba(34, 27, 23, .45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 1.75rem; }
.dialog-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.dialog-intro { color: var(--muted); font-size: .92rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { color: var(--ink); font-size: .95rem; font-weight: 500; }
.admin-services { max-height: 260px; overflow-y: auto; padding: 6px 12px; border: 1px solid var(--sand); border-radius: 14px; background: #fff; }
.admin-services details { border-bottom: 1px solid var(--line); }
.admin-services details:last-child { border-bottom: 0; }
.admin-services summary { padding: 10px 0; color: var(--ink); font-weight: 500; cursor: pointer; }
.admin-svc { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 6px 0 6px 4px; font-size: .9rem; cursor: pointer; }
.admin-svc input { grid-row: span 2; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-deep); }
.admin-svc small { color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--sand); border-radius: 12px; background: #fff; font: .85rem var(--sans); }
.calendar-help { display: grid; gap: 10px; padding-left: 18px; font-size: .9rem; }

@media (max-width: 600px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-week { justify-content: space-between; }
  .admin-week h1 { flex: 1; min-width: 0; font-size: 1.35rem; }
  .admin-actions .btn { flex: 1; }
  .admin-day { padding: 14px; }
  .appt { grid-template-columns: 54px 1fr; }
  .appt-action { grid-column: 2; justify-self: start; }
  .field-row { grid-template-columns: 1fr; }
  .admin-badge { display: none; }
}

/* Notifications (emails et SMS) */
.done-notice { margin: 4px auto 0; color: var(--gold-deep); font-size: .92rem; }
.appt-reminder { font-size: .8rem; margin-top: 2px; }
.appt-reminder.is-ok { color: var(--green); }
.appt-reminder.is-ok::before { content: "✓ "; }
.appt-reminder.is-ko { color: var(--closed); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.hero-note { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0 !important; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep) !important; font-size: .85rem; }
.hero-note .icon { width: 16px; height: 16px; }

/* Réservation : explications des soins, spray tan seul, compléments */
.svc { grid-template-columns: auto 1fr auto auto; }
.svc-row { display: grid; gap: 0; }
.svc-info-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  background: #fff;
  color: var(--gold-deep);
  font: italic 600 1rem/1 var(--serif);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.svc-info-btn:hover, .svc-info-btn[aria-expanded="true"] { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.svc-info {
  margin: -4px 0 4px;
  padding: 14px 16px 12px 52px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--ivory);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
}
.cat-notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: .9rem;
}
.addons {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--sand);
  border-radius: 18px;
  background: #FBF6EE;
}
.addons-title { margin: 0 0 12px; font-size: 1.35rem; }
.addon-list { display: grid; gap: 10px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.addon-name { color: var(--ink); line-height: 1.3; }
.addon-name small { display: block; color: var(--muted); font-size: .82rem; }
.addon .btn { flex: none; background: #fff; }
@media (max-width: 600px) {
  .svc-info { padding-left: 16px; }
}

/* Admin : onglets, fichier clientes, temps supplémentaire */
.admin-tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.admin-tab { padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 500 .9rem/1 var(--sans); cursor: pointer; }
.admin-tab[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.admin-toolbar h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.client-search-bar { max-width: 520px; margin: 4px 0 6px; }
.client-search-bar input { background: #fff; }
.client-list { display: grid; gap: 8px; }
.client-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s;
}
.client-row:hover { border-color: var(--gold); }
.client-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.client-meta { font-size: .88rem; color: var(--text); }
.client-figures { font-size: .82rem; color: var(--muted); }
.appt-badge--extra { background: var(--gold-soft); color: var(--gold-deep); }
.appt-client { padding: 0; border: 0; background: none; color: var(--ink); font: 500 1rem/1.3 var(--sans); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; cursor: pointer; }
.appt-client:hover { text-decoration-color: var(--gold-deep); }
.appt-actions { display: flex; flex-direction: column; gap: 6px; }
.admin-dialog--wide { width: min(680px, calc(100vw - 24px)); }
.dialog-actions--spread { justify-content: space-between; flex-wrap: wrap; }
.dialog-actions--spread > .dialog-actions { margin-top: 0; margin-left: auto; }
.btn--danger { color: var(--closed); border-color: rgba(181, 100, 74, .35); }
.btn--danger:hover { background: #FBEDE8; border-color: var(--closed); }
.client-stats { margin: -6px 0 16px; color: var(--muted); font-size: .88rem; }
.extra-field { border: 0; padding: 0; margin: 0 0 18px; }
.extra-field select { max-width: 180px; }
.extra-scope { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 4px; }
.extra-scope .admin-toggle { margin: 0; font-size: .86rem; }
.field select { appearance: auto; }
.history-title { margin: 26px 0 10px; font-size: 1.3rem; }
.client-history { display: grid; gap: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.history-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .86rem; }
.history-row:first-child { border-top: 0; }
.history-row.is-cancelled { opacity: .55; }
.history-date { color: var(--ink); }
.history-status { color: var(--muted); white-space: nowrap; }
.client-picker { position: relative; }
.client-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; display: grid; max-height: 240px; overflow-y: auto; border: 1px solid var(--sand); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.client-results button { display: grid; gap: 2px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.client-results button:first-child { border-top: 0; }
.client-results button:hover { background: var(--ivory); }
.client-results span { font-size: .82rem; color: var(--muted); }
.client-results .admin-empty { padding: 10px 14px; }
@media (max-width: 600px) {
  .history-row { grid-template-columns: 1fr; gap: 2px; }
  .appt-actions { grid-column: 2; flex-direction: row; }
}

/* Admin : agenda jour / semaine / mois, état des rendez-vous, encaissement */
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.segmented button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 500 .85rem/1 var(--sans); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-deep); }
.agenda-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 4px 0 8px; }
.agenda-bar .admin-stats, .agenda-bar .admin-toggle { margin: 0; }
.status-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; }
.status-legend li { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.status-dot.st-upcoming, .appt.st-upcoming::before { background: var(--gold); }
.status-dot.st-done, .appt.st-done::before { background: var(--green); }
.status-dot.st-noshow, .appt.st-noshow::before { background: var(--closed); }
.status-dot.st-cancelled, .appt.st-cancelled::before { background: var(--sand); }

.admin-day.is-past { opacity: 1; }
.admin-day.is-past h2 { color: var(--muted); }
.status-legend[hidden], .admin-toggle[hidden] { display: none; }
.appt { grid-template-columns: 64px minmax(0, 1fr); }
.appt:not(.appt--block) { position: relative; padding-left: 14px; }
.appt:not(.appt--block)::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; }
.appt-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.appt-action:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.appt-action[data-cancel-booking]:hover, .appt-action[data-delete-block]:hover, .appt-action[data-void]:hover { border-color: var(--closed); color: var(--closed); }
.appt-action--main { border-color: var(--gold-deep); background: var(--gold-deep); color: #fff; }
.appt-action--main:hover { border-color: #7A5524; background: #7A5524; color: #fff; }
.appt-action:disabled { opacity: .5; cursor: wait; }
.appt-badge--ok, .appt-badge--done { background: #E7F1EA; color: #2F5E3E; }
.appt-badge--warn { background: #FBEFD9; color: #6E4A10; }
.appt-badge--noshow { background: #FBEDE8; color: #8A3B26; }
.appt-services s { color: var(--muted); }
.appt-gap { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 6px 0; padding: 10px 14px; border: 1px dashed var(--sand); border-radius: 12px; background: transparent; color: var(--muted); font: .88rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.appt-gap:hover, .appt-gap:focus-visible { border-color: var(--gold); background: var(--ivory); color: var(--ink); }
.appt-gap small { color: var(--muted); font-size: .8rem; }
.appt-gap-add { color: var(--gold-deep); font-weight: 500; white-space: nowrap; }

.admin-days.is-month { display: block; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-head { padding: 4px 0; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.month-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 84px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.month-cell:hover, .month-cell:focus-visible { border-color: var(--gold); }
.month-cell.is-out { opacity: .45; }
.month-cell.is-closed { background: var(--cream); }
.month-cell.is-off { background: repeating-linear-gradient(-45deg, #fff 0 8px, rgba(184, 137, 76, .1) 8px 16px); }
.month-cell.is-today { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 76, .14); }
.month-num { font: 600 1.05rem/1 var(--serif); }
.month-count { color: var(--text); font-size: .82rem; }
.month-off { color: var(--muted); font-size: .75rem; }
.month-fill { width: 100%; height: 4px; margin-top: auto; border-radius: 4px; background: var(--cream); }
.month-fill span { display: block; height: 100%; border-radius: 4px; background: #B5822F; }
.month-help { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--ivory); font-size: .92rem; box-shadow: var(--shadow); transform: translateX(-50%); }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow-y: auto; padding: 2px; }
.slot-chip { min-width: 64px; padding: 9px 10px; border: 1px solid var(--sand); border-radius: 10px; background: #fff; color: var(--ink); font: 500 .88rem/1 var(--sans); cursor: pointer; }
.slot-chip:hover { border-color: var(--gold); }
.slot-chip[aria-pressed="true"] { border-color: var(--gold-deep); background: var(--gold-deep); color: #fff; }
.method-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.method-chip { position: relative; cursor: pointer; }
.method-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.method-chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--sand); border-radius: 999px; background: #fff; color: var(--text); font-size: .88rem; }
.method-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.method-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay-lines { display: grid; gap: 12px; margin: 4px 0 6px; }
.pay-line { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: end; gap: 10px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pay-line .field { margin: 0; }
.pay-line .link-btn { grid-column: 1 / -1; justify-self: start; }
.pay-already { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--ink); font-size: .9rem; }
.pay-total { margin: 6px 0 14px; color: var(--ink); font-size: .9rem; }
.pay-edit-services { display: block; margin: -6px 0 14px; }
.pay-edit-services[hidden] { display: none; }
.link-btn { padding: 4px 0; border: 0; background: none; color: var(--gold-deep); font: 500 .88rem/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.quick-actions .btn { background: #fff; }
.client-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.client-filters .field { margin: 4px 0 6px; }
.client-filters .client-search-bar { flex: 1 1 300px; }
.client-filter select { background: #fff; }
.history-row.is-noshow .history-status { color: var(--closed); }

/* Admin : comptabilité */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 14px; }
.kpis[aria-busy="true"], [data-compta-list-body][aria-busy="true"] { opacity: .55; }
.kpi { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.kpi-label { color: var(--muted); font-size: .82rem; }
.kpi-value { color: var(--ink); font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: .8rem; }
.kpi--warn { border-color: #EBCF9B; }
.kpi--neg .kpi-value { color: #8A3B26; }
.compta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.panel--wide { grid-column: 1 / -1; }
.panel h2 { margin: 0 0 12px; font-size: 1.3rem; }
.panel-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.bar-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .88rem; }
.bar-label { color: var(--text); overflow-wrap: anywhere; }
.bar { display: block; height: 12px; border-radius: 0 4px 4px 0; background: #B5822F; }
.bar-value { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity { display: grid; gap: 8px; margin: 0; }
.activity div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.activity div:last-child { padding-bottom: 0; border-bottom: 0; }
.activity dt { color: var(--muted); }
.activity dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.collect-list { display: grid; margin: 0; padding: 0; list-style: none; }
.collect-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.collect-list li:first-child { border-top: 0; }
.collect-who { color: var(--ink); }
.collect-who small, .collect-amount small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.collect-amount { color: var(--ink); font-weight: 500; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evo-legend { display: flex; gap: 16px; margin-bottom: 10px; color: var(--text); font-size: .85rem; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.swatch--in, .evo-bar--in { background: #B5822F; }
.swatch--out, .evo-bar--out { background: #5B6FB0; }
.evo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.evo-axis { display: flex; flex-direction: column; justify-content: space-between; height: 180px; color: var(--muted); font-size: .72rem; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.evo-plot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2px;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 90px / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 179px / 100% 1px no-repeat;
}
.evo-month { position: relative; display: grid; grid-template-rows: 180px auto; outline: none; cursor: default; }
.evo-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 180px; border-radius: 6px; }
.evo-bar { width: min(12px, 40%); border-radius: 4px 4px 0 0; }
.evo-label { padding-top: 6px; color: var(--muted); font-size: .72rem; text-align: center; }
.evo-month:hover .evo-bars, .evo-month:focus-visible .evo-bars { background: rgba(184, 137, 76, .1); }
.evo-month:hover::after, .evo-month:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% - 16px);
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ivory);
  font-size: .78rem;
  line-height: 1.35;
  pointer-events: none;
  transform: translateX(-50%);
}
.evo-month:nth-child(-n+2)::after { left: 0; transform: none; }
.evo-month:nth-last-child(-n+2)::after { left: auto; right: 0; transform: none; }
.evo-table { margin-top: 12px; font-size: .85rem; }
.evo-table summary { color: var(--gold-deep); cursor: pointer; }
.evo-table table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.evo-table th, .evo-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.evo-table th { color: var(--muted); font-weight: 500; }
.evo-table th:first-child, .evo-table td:first-child { text-align: left; }
.compta-lists { margin-top: 22px; }
.compta-lists-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.compta-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--muted); font-size: .85rem; }
.compta-exports a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.compta-exports .icon { width: 16px; height: 16px; }
.ledger { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.ledger-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 120px 90px 232px; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.ledger-row:first-child { border-top: 0; }
.ledger-date { color: var(--text); }
.ledger-label { color: var(--ink); }
.ledger-label small { display: block; color: var(--muted); font-size: .8rem; }
.ledger-label em { display: block; color: #8A3B26; font-style: normal; }
.ledger-method { color: var(--text); }
.ledger-amount { color: var(--ink); font-weight: 500; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ledger-row.is-voided { opacity: .6; }
.ledger-row.is-voided .ledger-amount { text-decoration: line-through; }
.ledger-row.is-refund .ledger-amount { color: #8A3B26; }
.compta-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 800px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date amount" "label label" "method method" "actions actions"; gap: 2px 12px; }
  .ledger-date { grid-area: date; color: var(--muted); font-size: .82rem; }
  .ledger-amount { grid-area: amount; }
  .ledger-label { grid-area: label; }
  .ledger-method { grid-area: method; color: var(--muted); font-size: .82rem; }
  .ledger-actions { grid-area: actions; justify-content: flex-start; margin-top: 6px; }
}
@media (max-width: 600px) {
  .appt { grid-template-columns: 54px minmax(0, 1fr); }
  .appt-action { padding: 9px 14px; font-size: .85rem; }
  .month-grid { gap: 4px; }
  .month-cell { min-height: 58px; padding: 6px 5px; border-radius: 10px; }
  .month-count span, .month-off { display: none; }
  .pay-line { grid-template-columns: 1fr; }
  .collect-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .collect-when { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
  .collect-list .appt-action { grid-column: 1 / -1; justify-self: start; }
  .kpi { padding: 12px 14px; }
  .admin-tabs { display: flex; }
  .admin-tab { flex: 1; padding-inline: 10px; }
}

/* Admin : accueil, fichier clientes (cartes, corbeille, import), répétition, mises en avant */
.admin-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.admin-tab { flex: none; white-space: nowrap; }
.tab-short { display: none; }
.home-head { margin-bottom: 4px; }
.home-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.home-head p { margin: 2px 0 0; color: var(--muted); }
.today-list, .task-list, .todo-list, .bday-list { display: grid; margin: 0; padding: 0; list-style: none; }
.today-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.today-list li:first-child { border-top: 0; }
.today-time { font: 600 1.1rem/1.1 var(--serif); color: var(--ink); }
.today-time small, .today-who small { display: block; color: var(--muted); font: 400 .8rem/1.3 var(--sans); }
.panel-link { margin: 10px 0 0; }
.task { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; font-size: .92rem; }
.task:first-child { border-top: 0; }
.task::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.task--ok::before { background: var(--green); }
.task--bday::before { background: var(--closed); }
.task .link-btn { text-align: left; }
.todo-form { display: flex; gap: 8px; margin: 14px 0 8px; }
.todo-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--sand); border-radius: 12px; background: #fff; font: .9rem var(--sans); }
.todo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.todo label { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.todo input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.todo.is-done span { color: var(--muted); text-decoration: line-through; }
.todo-delete { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.todo-delete:hover { background: var(--cream); color: var(--closed); }
.todo-delete .icon { width: 14px; height: 14px; }
.bday-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.bday-list li:first-child { border-top: 0; }
.bday-list li.is-today .bday-when { color: var(--gold-deep); font-weight: 500; }
.bday-when { color: var(--text); }
.bday-who small { margin-left: 6px; color: var(--muted); }
.bday-actions { display: flex; gap: 10px; }
.bday-actions a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.appt-badge--bday { background: #F6E6EA; color: #8A3B52; }

.client-tabs { display: flex; gap: 4px; max-width: 100%; margin: 4px 0 12px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.client-tabs button { flex: none; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text); font: 500 .9rem/1 var(--sans); white-space: nowrap; cursor: pointer; }
.client-tabs button[aria-pressed="true"] { border-bottom-color: var(--gold-deep); color: var(--gold-deep); }
.client-tabs span { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: .75rem; }
.client-tabs span:empty { display: none; }
.client-filters .field { margin: 0 0 8px; }
.client-filter { display: flex; align-items: center; gap: 8px; }
.client-filter label { color: var(--muted); font-size: .85rem; font-weight: 400; white-space: nowrap; }
.client-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.client-card.is-open { border-color: var(--sand); box-shadow: 0 18px 40px -28px rgba(42, 34, 29, .35); }
.client-card.is-trash { background: var(--ivory); }
.client-card-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4px 14px; width: 100%; padding: 14px 18px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); font: 600 1rem/1 var(--sans); letter-spacing: .04em; }
.client-card-id strong { display: block; color: var(--ink); font-weight: 500; }
.client-card-id small, .client-card-contact { color: var(--muted); font-size: .82rem; }
.client-card-contact { display: grid; gap: 2px; overflow-wrap: anywhere; }
.client-card-badges { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.client-card-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.essentials-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 12px 0 10px; color: var(--ink); font-weight: 500; }
.essentials-head span:last-child { color: var(--muted); font-weight: 400; font-size: .88rem; }
.essentials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.essential { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--ivory); }
.essential-label { color: var(--muted); font-size: .78rem; }
.essential strong { color: var(--ink); font-weight: 500; font-size: .95rem; }
.essential small { color: var(--text); font-size: .8rem; }
.client-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.client-card-actions .btn--ghost { background: #fff; }
.trash-banner { margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: .9rem; }
.check-list { margin: -6px 0 14px; padding: 10px 14px 10px 32px; border-radius: 12px; background: #FBEFD9; color: #6E4A10; font-size: .88rem; }
.merge-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--sand); border-radius: 14px; }
.merge-box .field { margin-bottom: 6px; }
.merge-box small { color: var(--muted); font-size: .82rem; }
.bday--admin { grid-template-columns: 76px minmax(0, 1fr) 80px; max-width: none; }

.repeat-field { margin: 0 0 6px; padding: 0; border: 0; }
.repeat-field .admin-toggle { margin-bottom: 10px; }
.repeat-box { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.repeat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink); font-size: .95rem; }
.repeat-row input, .repeat-row select { padding: 9px 10px; border: 1px solid var(--sand); border-radius: 10px; background: #fff; font: inherit; }
.repeat-row input { width: 64px; }
.repeat-preview { margin: 0; color: var(--text); font-size: .88rem; }
.repeat-preview .is-ko { color: #8A3B26; }
.cancel-scope { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.cancel-scope .admin-toggle { display: flex; margin: 6px 0 0; }

[data-import-step] > .field-label { display: block; margin: 4px 0 6px; }
.import-mapping { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 8px 0 14px; }
.import-field { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.import-field select { padding: 8px 10px; border: 1px solid var(--sand); border-radius: 10px; background: #fff; font: .9rem var(--sans); color: var(--ink); }
.import-preview { margin: 8px 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.import-preview table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.import-preview th, .import-preview td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.import-preview th { color: var(--muted); font-weight: 500; }
.import-hint { display: block; margin: -6px 0 12px; color: var(--muted); font-size: .82rem; }
.import-summary { margin: 8px 0 0; color: var(--ink); font-size: .9rem; }

.admin-dialog--promo { width: min(980px, calc(100vw - 24px)); }
.promo-switch { display: flex; align-items: flex-start; margin: -4px 0 16px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.promo-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.promo-editor .field-label { display: block; margin: 6px 0 10px; }
.promo-kind { margin-bottom: 14px; }
.promo-preview-wrap { position: sticky; top: 0; }
.promo-preview { padding: 18px; border-radius: 18px; background: repeating-linear-gradient(-45deg, var(--cream) 0 10px, #F7F1E8 10px 20px); }
.promo-preview .promo { position: relative; width: auto; opacity: 1; transform: none; box-shadow: 0 20px 40px -30px rgba(42, 34, 29, .5); }
.promo-preview .promo-close { cursor: default; }
.promo-list { display: grid; gap: 10px; }
.promo-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.promo-card p { margin: 0 0 4px; }

@media (max-width: 860px) {
  .promo-editor { grid-template-columns: 1fr; }
  .promo-preview-wrap { position: static; }
  .essentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .admin-tab { flex: 1 0 auto; padding-inline: 8px; font-size: .84rem; }
  .admin-actions .btn { flex: 1 1 auto; white-space: nowrap; }
  .client-tabs { flex-wrap: wrap; overflow: visible; }
  .client-card-head { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
  .avatar { width: 40px; height: 40px; }
  .client-card-contact { grid-column: 2; }
  .client-card-body { padding: 4px 14px 14px; }
  .essentials { grid-template-columns: 1fr; }
  .import-mapping { grid-template-columns: 1fr; }
  .bday-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .bday-when { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
  .today-list li { grid-template-columns: 54px minmax(0, 1fr); }
  .today-list .appt-badge { grid-column: 2; justify-self: start; }
  .promo-card { grid-template-columns: 1fr; }
  .client-filter { flex-wrap: wrap; }
}

/* Site : offre du moment (mise en avant), anniversaire, prix promo */
.bday { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; max-width: 380px; }
.field.has-error select { border-color: var(--closed); background: #FDF5F2; }
.svc-price.is-promo { color: var(--gold-deep); }
.svc-price s, .summary-price s, .addon-name s { margin-right: 4px; color: var(--muted); font-size: .8em; font-weight: 400; }
.promo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: min(360px, calc(100vw - 24px));
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ivory);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.promo.is-visible { opacity: 1; transform: none; }
.promo-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.promo-close .icon { width: 16px; height: 16px; }
.promo-eyebrow { margin: 0 0 6px; color: var(--gold-deep); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.promo-title { margin: 0 0 10px; padding: 0 28px; font-size: 1.9rem; line-height: 1.1; }
.promo-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 10px; margin: 0 0 10px; }
.promo-price strong { color: var(--gold-deep); font: 600 2.1rem/1 var(--serif); }
.promo-price s { color: var(--muted); }
.promo-chip { padding: 3px 10px; border: 1px solid var(--sand); border-radius: 999px; color: var(--text); font-size: .78rem; }
.promo-message { margin: 0 0 12px; color: var(--text); font-size: .92rem; }
.promo-countdown { margin: 4px 0 16px; }
.promo-countdown-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .8rem; }
.promo-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.promo-units span { display: grid; gap: 3px; padding: 8px 2px; border-radius: 12px; background: var(--cream); color: var(--muted); font-size: .66rem; }
.promo-units b { color: var(--ink); font: 600 1.35rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.promo-cta { width: 100%; }
@media (max-width: 900px) {
  .promo { right: 12px; left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; }
}
@media (prefers-reduced-motion: reduce) { .promo { transition: none; } }

/* Admin : horaires d'ouverture (planning récurrent, changements ponctuels) */
.settings-list { display: grid; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.settings-row:first-child { border-top: 0; }
.settings-row:hover, .settings-row:focus-visible { background: var(--ivory); }
.settings-row strong { display: block; font-weight: 500; }
.settings-row small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.settings-row .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.hours-changes { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.hours-change { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hours-change p { margin: 0; }
.hours-change-when { color: var(--text); font-size: .88rem; }
.hours-change-text { color: var(--muted); font-size: .84rem; }
.week-editor { display: grid; margin: 4px 0 6px; }
.week-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.week-row:first-child { border-top: 0; }
.week-day { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-weight: 500; cursor: pointer; }
.week-day input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.week-ranges { display: grid; gap: 6px; justify-items: start; }
.week-range { display: flex; align-items: center; gap: 6px; }
.week-range input { width: 108px; padding: 8px 10px; border: 1px solid var(--sand); border-radius: 12px; background: var(--ivory); color: var(--ink); font: 400 .95rem/1.3 var(--sans); }
.week-range input:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.range-remove { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.range-remove:hover { background: var(--cream); color: var(--ink); }
.range-remove .icon { width: 14px; height: 14px; }
.week-closed { display: flex; align-items: center; min-height: 40px; color: var(--muted); font-style: italic; }
.hours-warning { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #FBEDE8; color: #8A3B26; font-size: .88rem; }
.hours-warning p { margin: 0 0 6px; }
.hours-warning ul { margin: 0; padding-left: 18px; }
.hours-tag { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-size: .75rem; }
.month-cell.is-change { border-top: 3px solid var(--gold); }
@media (max-width: 560px) {
  .week-row { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .hours-change { flex-direction: column; align-items: stretch; }
}

/* Admin : soins et règles de la réservation en ligne */
.rules-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rules-panel h2 { margin-bottom: 4px; }
.rules-summary { margin: 0; color: var(--text); font-size: .9rem; }
.svc-groups { display: grid; gap: 14px; }
.svc-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.svc-group-head h2 { margin: 0; }
.svc-group-note { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.svc-rows { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; align-items: center; gap: 12px; width: 100%; padding: 11px 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.svc-rows li:first-child .svc-row { border-top: 0; }
.svc-row:hover, .svc-row:focus-visible { background: var(--ivory); }
.svc-row.is-off .svc-row-name, .svc-row.is-off .svc-row-price { color: var(--muted); }
.svc-row-name .appt-badge { margin-left: 4px; white-space: nowrap; }
.svc-row-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.svc-row-price { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.field-note { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) {
  .rules-panel { flex-direction: column; align-items: stretch; }
  .svc-group-head { flex-direction: column; gap: 4px; }
  .svc-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .svc-row-meta { grid-row: 2; }
  .svc-row-price { grid-row: 1 / span 2; grid-column: 2; }
}
