/* ============================================================
   Le Comptoir du Toilettage — l'app clientes
   DA : héritée du site — blanc cassé, blush, vert sauge, Jost
   (capitales espacées) + Sacramento (script). Vars --rose = sauge.
   Mobile-first absolu ; desktop cappé à 460px centré.
   ============================================================ */

:root {
  --bg: #faf6f3;
  --surface: #ffffff;
  --ink: #3a423c;
  --ink-soft: #6f7a72;
  --ink-faint: #a3aca5;
  --line: #eae2da;

  --rose: #8ba393;          /* le rose poudré de la fiole */
  --rose-deep: #5f7566;
  --rose-soft: #f3dedd;
  --rose-ghost: #f7f0ec;

  --grad-rose: linear-gradient(135deg, #8ba393, #6d8776);
  --grad-hero: linear-gradient(165deg, #fbf6f3 0%, #f6e5e3 55%, #f0d9d7 100%);

  --font-head: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(58, 66, 60, 0.04), 0 8px 24px rgba(58, 66, 60, 0.07);
  --shadow-rose: 0 10px 28px rgba(95, 117, 102, 0.3);
  --ease-spring: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tabbar-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; } /* clip, pas hidden : tabbar fixed OK (gotcha iOS) */

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 30px);
}

/* Halo rosé très doux */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(540px 380px at 90% -8%, rgba(139, 163, 147, 0.16), transparent 65%),
    radial-gradient(460px 320px at -14% 30%, rgba(139, 163, 147, 0.09), transparent 60%),
    var(--bg);
}

a { color: var(--rose-deep); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

@media (min-width: 600px) {
  body {
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--line), 0 18px 60px rgba(58, 66, 60, 0.14);
    min-height: 100vh;
  }
  body::before { max-width: 460px; left: 50%; transform: translateX(-50%); }
  /* .brand est sticky DANS le body cappé → rien à faire (surtout pas de translateX,
     qui le décalerait d'une demi-largeur). La tabbar est fixed (relative au viewport) :
     max-width la cape sans être écrasée par sa règle de base plus bas dans le fichier. */
  .tabbar { max-width: 432px; }
}

/* ── Header ──────────────────────────────────────────────────── */
.brand {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: calc(12px + env(safe-area-inset-top)) 18px 10px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand-logo { height: 40px; width: auto; }

/* ── Routes ──────────────────────────────────────────────────── */
.route { display: none; }
.route.active { display: block; }

.section { padding: 18px 18px 8px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 12px; }
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ink);
}
.section-count { font-size: 0.9rem; font-weight: 500; color: var(--rose-deep); }
.section > .muted.small { margin: -6px 0 14px; }

/* ── Cascade d'entrée ────────────────────────────────────────── */
.route.active .hero,
.route.active .quick-grid,
.route.active .signature-card,
.route.active .section-head,
.route.active .univers-grid,
.route.active .avis-wrap,
.route.active .avis-cta,
.route.active .apropos,
.route.active .partenaire,
.route.active .group,
.route.active .resa-card,
.route.active .infos-card {
  animation: rise 0.55s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.route.active .quick-grid { --i: 1; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 12px 14px 0;
  padding: 30px 24px 30px;
  border-radius: 28px;
  background: var(--grad-hero);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 190px at 88% -14%, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 2.15rem;
  line-height: 1.08;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--rose-deep); }
.hero-rating { margin-top: 12px; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
/* Deux distinctions sur une ligne trop courte : sans ça la coupure tombe au
   milieu (« … or dans / 5 pays »). Chaque moitié reste d'un bloc, la ligne se
   casse au séparateur. */
.hero-rating span { white-space: nowrap; }
.hero-rating .stars { color: #cf9236; letter-spacing: 0.1em; }
.hero-status { margin-top: 4px; font-size: 0.84rem; font-weight: 500; }
.hero-status .open { color: #3f7d4e; }
.hero-status .closed { color: var(--rose-deep); }
.hero-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s var(--ease-spring);
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--grad-rose); color: #fff; box-shadow: var(--shadow-rose); }
.btn-ghost { background: var(--surface); color: var(--rose-deep); box-shadow: var(--shadow); }
.btn-wide { width: 100%; margin-top: 12px; }

/* ── Accès rapides ───────────────────────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 20px;
}
.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 4px 11px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s var(--ease-spring);
}
.quick:active { transform: scale(0.93); }
.quick-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--rose-soft);
  color: var(--rose-deep);
}
.quick-label { font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); }

/* ── Carte signature (LPG) ───────────────────────────────────── */
.signature-card {
  display: block;
  position: relative;
  margin: 4px 0 8px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--grad-rose);
  box-shadow: var(--shadow-rose);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s var(--ease-spring);
}
.signature-card:active { transform: scale(0.985); }
.signature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 160px at 90% -10%, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.sig-kicker {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 7px;
}
.sig-title { font-family: var(--font-head); font-weight: 500; font-size: 1.75rem; line-height: 1.05; }
.sig-title sup { font-size: 0.85rem; }
.sig-text { margin-top: 7px; font-size: 0.9rem; opacity: 0.94; }
.sig-cta { margin-top: 12px; font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; }

/* ── Univers (grille catégories) ─────────────────────────────── */
.univers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 6px;
}
.univers {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 15px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s var(--ease-spring);
}
.univers:active { transform: scale(0.96); }
.univers-icon { font-size: 1.35rem; margin-bottom: 5px; }
.univers-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.15; }
.univers-count { font-size: 0.76rem; color: var(--ink-faint); }

/* ── Avis ────────────────────────────────────────────────────── */
.avis-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.avis-wrap::-webkit-scrollbar { display: none; }
.avis-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  padding: 18px 18px 15px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.avis-stars { color: #cf9236; letter-spacing: 0.12em; font-size: 0.85rem; }
.avis-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 8px 0 10px;
}
.avis-auteure { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.avis-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 2px 8px;
  padding: 17px 18px;
  background: var(--grad-rose);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rose);
  color: #fff;
  text-decoration: none;
}
.avis-cta-text { flex: 1; font-size: 0.88rem; line-height: 1.45; }
.avis-cta-text strong { display: block; font-size: 0.97rem; font-weight: 600; margin-bottom: 2px; }
.avis-cta-btn { background: #fff; color: var(--rose-deep); flex: 0 0 auto; padding: 11px 16px; font-size: 0.86rem; }

/* ── À propos ────────────────────────────────────────────────── */
.apropos {
  padding: 20px 19px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.apropos h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; margin-bottom: 7px; }
.apropos p { font-size: 0.93rem; color: var(--ink-soft); }
.apropos ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.apropos li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.apropos li::before { content: "✦"; position: absolute; left: 2px; color: var(--rose); font-size: 0.75rem; top: 2px; }

/* ── Partenariat ARTERO (Accueil) ────────────────────────────
   Le nom de la marque en capitales espacées, comme les titres de l'app :
   pas de logo importé — une marque tierce en image se périme et se négocie. */
.partenaire {
  padding: 18px 19px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  text-align: center;
}
.partenaire-photo {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 2px auto 16px;
  border-radius: 14px;
}
.partenaire-kicker {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.partenaire-mark {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 500;
  letter-spacing: 0.3em; color: var(--rose-deep);
  margin: 8px 0 10px; padding-left: 0.3em; /* compense l'interlettre finale, centré */
}
.partenaire-text { font-size: 0.88rem; color: var(--ink-soft); }
.partenaire-mark a { color: inherit; text-decoration: none; }
.partenaire-arrow { display: inline-block; font-size: 0.5em; letter-spacing: 0; margin-left: -0.16em; vertical-align: 0.55em; }
.partenaire-mark a:hover,
.partenaire-mark a:focus-visible { text-decoration: underline; text-underline-offset: 7px; }

/* ── Groupes accordéon (Soins) ───────────────────────────────── */
.groups { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
.group {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: calc(74px + env(safe-area-inset-top));
}
.group-head { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 16px; text-align: left; }
.group-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 1.2rem;
  background: var(--rose-ghost);
  border-radius: 14px;
}
.group-titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.group-title { font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; line-height: 1.15; }
.group-sub { font-size: 0.78rem; color: var(--ink-faint); }
.group-caret { font-size: 1.3rem; color: var(--ink-faint); transform: rotate(90deg); transition: transform 0.3s var(--ease-spring); }
.group.open .group-caret { transform: rotate(-90deg); }

.group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.34s var(--ease-spring); }
.group.open .group-body { grid-template-rows: 1fr; }
.group-body-in { overflow: hidden; min-height: 0; border-top: 1px solid var(--line); }

.soin-highlight {
  margin: 12px 16px 2px;
  padding: 10px 14px;
  background: var(--rose-ghost);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rose-deep);
}
.soin-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.soin-row:last-of-type { border-bottom: 0; }
.soin-nom { flex: 1; font-size: 0.94rem; font-weight: 500; }
.soin-duree { font-size: 0.78rem; color: var(--ink-faint); white-space: nowrap; }
.soin-prix { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--rose-deep); white-space: nowrap; }
.soin-note { padding: 4px 16px 12px; font-size: 0.82rem; color: var(--ink-faint); }
.soin-book { padding: 4px 16px 16px; }

/* ── Réserver ────────────────────────────────────────────────── */
.resa-card {
  padding: 20px 19px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.resa-title { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; margin-bottom: 5px; }
.resa-text { font-size: 0.9rem; color: var(--ink-soft); }

/* ── Horaires ────────────────────────────────────────────────── */
.horaires { margin-top: 8px; }
.horaire-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line);
}
.horaire-row:last-child { border-bottom: 0; }
.horaire-row.today { font-weight: 600; color: var(--rose-deep); }
.horaire-jour { flex: 0 0 auto; }
.horaire-plages { text-align: right; color: var(--ink-soft); }
.horaire-row.today .horaire-plages { color: var(--rose-deep); }

/* ── Infos ───────────────────────────────────────────────────── */
.infos-wrap { display: flex; flex-direction: column; gap: 12px; }
.infos-card {
  padding: 20px 19px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.infos-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; margin-bottom: 8px; }
.infos-card p { font-size: 0.92rem; color: var(--ink-soft); }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
}
.row:last-child { border-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.row-label { font-weight: 600; font-size: 0.94rem; }
.row-detail { font-size: 0.84rem; color: var(--ink-soft); }
.row-glyph { color: var(--rose-deep); flex: 0 0 auto; }

.app-footer { text-align: center; padding: 30px 10px 8px; }
.footer-logo { height: 34px; width: auto; opacity: 0.8; margin-bottom: 8px; }

/* ── Crédit Seiyar ───────────────────────────────────────────── */
.seiyar {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.seiyar a {
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.seiyar a:active { color: var(--rose-deep); }

/* ── Tab bar flottante ───────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 28px;
  box-shadow: 0 10px 34px rgba(58, 66, 60, 0.16);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 0.2s ease, background 0.25s var(--ease-spring), transform 0.15s var(--ease-spring);
}
.tab:active { transform: scale(0.94); }
.tab-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; }
.tab.active { color: var(--rose-deep); background: var(--rose-ghost); }

/* Le tab Réserver, toujours mis en avant */
.tab-cta { color: var(--rose-deep); }
.tab-cta .tab-cta-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -14px;
  border-radius: 15px;
  background: var(--grad-rose);
  color: #fff;
  box-shadow: var(--shadow-rose);
}
.tab-cta.active { background: transparent; }
.tab-cta.active .tab-label { color: var(--rose-deep); }

/* ── Bandeau annonce (édité depuis le BO) ────────────────────── */
/* Collant sous le header (top ajusté en JS = hauteur réelle du header),
   entrée en glissé + balayage lumineux périodique. Pas de clignotement :
   l'attention vient du mouvement doux, pas de l'agression. */
.annonce {
  position: sticky;
  z-index: 29;
  background: var(--grad-rose);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(95, 117, 102, 0.35);
  overflow: hidden;
  animation: annonce-in 0.5s var(--ease-spring) both;
}
.annonce::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  animation: annonce-shine 7s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes annonce-in {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes annonce-shine {
  0% { transform: translateX(-130%); }
  16% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

/* ── Back-office ─────────────────────────────────────────────── */
.admin-textarea {
  width: 100%;
  min-height: 84px;
  margin-top: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  resize: vertical;
}
.admin-textarea:focus { outline: 2px solid var(--rose-deep); outline-offset: -1px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-actions .btn { padding: 11px 18px; font-size: 0.88rem; }

.admin-horaires { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.admin-h-row { display: flex; align-items: center; gap: 10px; }
.admin-h-jour { flex: 0 0 82px; font-size: 0.88rem; font-weight: 600; }
.admin-input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.admin-input:focus { outline: 2px solid var(--rose-deep); outline-offset: -1px; }
.resa-card code { background: var(--rose-ghost); padding: 1px 6px; border-radius: 6px; font-size: 0.82em; }

.admin-fermetures { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.admin-fermeture { display: flex; gap: 7px; align-items: center; }
.admin-fermeture .af-du, .admin-fermeture .af-au { flex: 1.2; }
.admin-fermeture .af-motif { flex: 1.6; }

.fermeture-note {
  margin: 6px 0 8px;
  padding: 8px 12px;
  background: var(--rose-ghost);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-deep);
}

.admin-cat { margin-top: 16px; }
.admin-cat-title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; margin-bottom: 8px; }
.admin-items { display: flex; flex-direction: column; gap: 7px; }
.admin-item { display: flex; gap: 7px; align-items: center; }
.admin-item .ai-nom { flex: 3; }
.admin-item .ai-duree { flex: 1.1; }
.admin-item .ai-prix { flex: 1.1; }
.admin-del {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--rose-ghost);
  color: var(--rose-deep);
  font-size: 1.05rem;
  line-height: 1;
}
.admin-add {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rose-deep);
  padding: 6px 2px;
}

/* ── Accessibilité ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }

/* Le BO est une page d'administration, pas l'app cliente : la tabbar
   (Accueil/Soins/Réserver/Infos) n'y a pas sa place — quel que soit l'écran. */
body.route-admin .tabbar { display: none; }

/* Header du BO (posé par le shim /admin) : logo → site + badge, sur la base .brand */
.bo-header { justify-content: space-between; align-items: center; }
.bo-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-ghost);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ── BO desktop ──────────────────────────────────────────────────
   L'app reste cappée à 460px (format téléphone), MAIS le back-office
   s'élargit sur grand écran : Erika/Guillaume l'utilisent depuis un Mac/PC.
   body.route-admin est posé par le router (showRoute). Bloc en FIN de
   fichier — piège de la cascade documenté dans CLAUDE.md. */
@media (min-width: 900px) {
  body.route-admin { max-width: 1060px; }
  body.route-admin::before { max-width: 1060px; }
  body.route-admin #adminRoot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "annonce    horaires"
      "notifs     horaires"
      "fermetures horaires"
      "photos     photos"
      "soins      soins";
    gap: 16px;
    align-items: start;
  }
  body.route-admin #adminRoot > .resa-card { margin: 0; }
  /* ⚠️ Placement par NOM (`data-card`), jamais par `nth-child` : le mapping
     par rang s'est décalé d'un cran le jour où la carte Notifications s'est
     glissée en 2ᵉ position — Prestations s'était retrouvée sans zone du tout.
     Une carte ajoutée sans `data-card` tombe simplement à la fin de la grille. */
  body.route-admin #adminRoot > [data-card="annonce"] { grid-area: annonce; }
  body.route-admin #adminRoot > [data-card="notifs"] { grid-area: notifs; }
  body.route-admin #adminRoot > [data-card="horaires"] { grid-area: horaires; }
  body.route-admin #adminRoot > [data-card="fermetures"] { grid-area: fermetures; }
  body.route-admin #adminRoot > [data-card="photos"] { grid-area: photos; }
  body.route-admin #adminRoot > [data-card="soins"] { grid-area: soins; }
  body.route-admin .admin-photos-grid { grid-template-columns: repeat(6, 1fr); }
  /* Prestations sur deux colonnes dans la carte Soins élargie */
  body.route-admin .admin-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DA Comptoir — surcharges par-dessus le moule elixir.
   Jost en capitales espacées (écho du site) + Sacramento (script).
   ═══════════════════════════════════════════════════════════════ */
:root { --font-script: "Sacramento", cursive; }

/* Header : logo rond + nom en capitales (le logo elixir était un wordmark) */
.brand { gap: 11px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { height: 46px; }
.brand-name {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; line-height: 1.3; text-align: left;
}
.brand-name small {
  display: block; font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.34em; color: var(--ink-soft);
}

/* Hero : titre Jost espacé, « avant tout » en script */
.hero-title { font-size: 1.62rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.25; }
.hero-title em {
  display: block; font-family: var(--font-script); font-style: normal;
  /* Taille fluide, pas 2.1em fixe : « pour tous les chiens » tenait sur une ligne
     à 430 px et passait à DEUX sous 400 px — un titre de quatre lignes qui
     poussait le statut et les boutons vers le bas de l'écran. Le plafond garde
     la taille d'origine quand la colonne est à sa largeur maximale (460 px). */
  font-size: clamp(2.3rem, 11vw, 3.4rem); line-height: 1;
  color: var(--rose-deep); margin-top: 2px;
}
.hero-rating { letter-spacing: 0.06em; }

/* Titres : capitales espacées comme les p-title du site */
.section-title { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.univers-title { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.group-title { font-size: 0.98rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.resa-title { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.infos-card h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.apropos h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }

/* Carte signature : le script calligraphié du logo */
.sig-title { font-family: var(--font-script); font-weight: 400; font-size: 2.3rem; line-height: 1; }

/* Palmarès : chips médailles (écho de la bande sauge du site) */
.medals { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 4px; }
.medal {
  font-size: 0.76rem; font-weight: 500; padding: 6px 11px;
  border-radius: 999px; background: var(--rose-ghost);
  border: 1px solid var(--line); color: var(--rose-deep);
}

/* « Fermé » ne doit jamais se lire vert : terracotta (le sauge = ouvert-ish) */
.hero-status .closed { color: #a8695e; }

/* ── Galerie : chips de catégorie au-dessus de la bande (Accueil) ──
   Masquées s'il n'y a qu'une catégorie remplie : elles ne filtreraient rien. */
.galerie-cats {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -14px 12px;
  padding: 2px 14px;
}
.galerie-cats::-webkit-scrollbar { display: none; }
.galerie-cat {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background .15s, color .15s, border-color .15s;
}
.galerie-cat.is-active {
  background: var(--grad-rose);
  border-color: transparent;
  color: #fff;
}

/* ── Galerie (photos du BO) — bande horizontale sur l'Accueil ── */
.galerie-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px;
  padding: 4px 14px 14px;
  scrollbar-width: none;
}
.galerie-strip::-webkit-scrollbar { display: none; }
.galerie-strip figure {
  flex: 0 0 232px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.galerie-strip img { width: 232px; height: 232px; object-fit: cover; display: block; }
.galerie-strip figcaption { font-size: 0.78rem; color: var(--ink-soft); padding: 9px 12px; }

/* ── BO : carte Photos (un groupe par catégorie) ── */
.admin-photo-group + .admin-photo-group { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-photo-group .admin-cat-title { margin: 0; }
.admin-photo-group-vide { font-size: 0.8rem; color: var(--ink-faint); margin: 10px 0 2px; }
.admin-photo .ap-cat {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.78rem;
  background: var(--surface);
  color: var(--ink-soft);
}
/* Compteur de places par catégorie : le seul moyen de savoir, AVANT de choisir
   ses fichiers, combien il en reste. Discret tant qu'il reste de la place. */
.admin-cat-count {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.admin-cat-count.is-plein { color: #a8695e; }
.admin-add:disabled { opacity: 0.55; cursor: default; }

.admin-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}
.admin-photo { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.admin-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.admin-photo .admin-input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 0.78rem; }
.admin-photo-actions { display: flex; border-top: 1px solid var(--line); }
.admin-photo-actions button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-photo-actions button + button { border-left: 1px solid var(--line); }
/* Le × hérite du .admin-del générique (pastille 30 px des lignes de formule) :
   dans la barre d'actions d'une vignette il doit être une cellule comme les deux
   flèches, sinon il déborde du coin arrondi de la carte. */
.admin-photo-actions .admin-del {
  color: #a8695e;
  font-weight: 600;
  flex: 1;
  height: auto;
  border-radius: 0;
  background: none;
}

/* ── BO : case « notifier » de l'annonce ── */
.admin-notif {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 2px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-notif input { width: 17px; height: 17px; accent-color: var(--rose-deep); }

/* ── BO : carte « Notifications » (combien d'appareils abonnés) ── */
.admin-push-chiffre {
  font-family: var(--font-head);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--rose-deep);
  margin: 10px 0 4px;
}
.admin-push-liste {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.admin-push-liste li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.admin-push-liste strong { font-variant-numeric: tabular-nums; color: var(--ink); }
