/* ================================================
   MASSOH THERAPIE — Charte Sauge végétale
   Hijama · Massages · Sophrologie
   ================================================ */

:root {
  --primary:    #3F5D4D;   /* Sauge profond  · titres, nav, CTA */
  --secondary:  #5C8374;   /* Sauge moyen    · accents, hover */
  --accent:     #C9A87C;   /* Doré chaud     · filets, détails */
  --paper:      #F7F8F4;   /* Papier         · fond principal */
  --paper-alt:  #E8EDE5;   /* Sauge très pâle · sections alt */
  --ink:        #2A3530;   /* Encre          · texte principal */
  --ink-soft:   #6B7770;   /* Texte secondaire */
  --ink-faint:  #B5BDB5;   /* Texte effacé */
  --warm-soft:  #E8DCC4;   /* Beige doux */
  --note:       #C97766;   /* Terracotta     · alertes anamnèse */

  /* Couleurs prestations */
  --hijama:     #5C8374;
  --massage:    #C9A87C;
  --sophro:     #8AA98D;

  /* Easing */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --speed-slow: 900ms;
  --speed-med:  600ms;
  --speed-fast: 300ms;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === Typographie === */
.serif { font-family: 'Cormorant Garamond', 'Times New Roman', serif; font-weight: 300; letter-spacing: -.005em; }
.mono  { font-family: 'JetBrains Mono', monospace; }
.hand  { font-family: 'Caveat', cursive; }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.05; margin: 0; }

.tag {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.tag.tag-light { color: rgba(247, 248, 244, .8); }

.rule { width: 60px; height: 1px; background: var(--accent); }

/* === Boutons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1.5px solid var(--primary);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--speed-fast) var(--ease-out),
              background var(--speed-fast),
              color var(--speed-fast),
              box-shadow var(--speed-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42, 53, 48, .12); }
.btn-dark  { background: var(--primary); color: var(--paper); }
.btn-dark:hover { background: var(--ink); }
.btn-gold  { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-gold:hover { background: #b89564; border-color: #b89564; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: rgba(247, 248, 244, .12); }
.btn-lg { padding: 18px 32px; font-size: 13px; }
.btn-sm { padding: 8px 14px; font-size: 11px; border-width: 1px; }

/* === Chips === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--ink-faint);
  border-radius: 3px;
  font-size: 12px;
  background: var(--paper);
}
.chip-warm  { background: var(--warm-soft); border-color: var(--accent); }
.chip-sage  { background: var(--paper-alt); border-color: var(--secondary); color: var(--primary); }
.chip-alert { background: rgba(201, 119, 102, .1); border-color: var(--note); color: var(--note); }

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 56px;
  background: rgba(247, 248, 244, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 93, 77, .12);
}
.nav-dark {
  background: rgba(63, 93, 77, .92);
  border-bottom-color: rgba(247, 248, 244, .12);
}
.nav-dark .nav-links a,
.nav-dark .logo,
.nav-dark .logo-tag { color: var(--paper); }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.logo-tag {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 13px;
}
.nav-links a {
  color: var(--ink);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color var(--speed-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--speed-med) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.on::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.on { font-weight: 500; }

.nav-burger { display: none; }

/* ================================================
   FOOTER
   ================================================ */
.ftr {
  background: var(--primary);
  color: var(--paper);
  padding: 70px 56px 40px;
}
.ftr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.ftr-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 28px;
  margin-bottom: 14px;
}
.ftr h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 18px;
}
.ftr ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  opacity: .85;
}
.ftr ul a:hover { color: var(--accent); }
.ftr-tag {
  font-size: 13px;
  line-height: 1.7;
  opacity: .75;
  max-width: 320px;
}
.ftr-bottom {
  max-width: 1280px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 248, 244, .15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  opacity: .65;
}

/* ================================================
   HERO ANIMÉ — Page d'accueil
   ================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--primary);
  color: var(--paper);
  overflow: hidden;
  padding: 100px 56px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Particules dérivantes */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.p1 { width: 14px; height: 14px; background: var(--accent);    left: 8%;  top: 30%; opacity: .6; animation: float1 8s ease-in-out infinite; }
.p2 { width: 6px;  height: 6px;  background: var(--paper);     left: 18%; top: 60%; opacity: .4; animation: float2 11s ease-in-out infinite; }
.p3 { width: 22px; height: 22px; background: var(--secondary); right: 14%; top: 22%; opacity: .4; animation: float3 9s ease-in-out infinite; }
.p4 { width: 9px;  height: 9px;  background: var(--accent);    right: 8%; top: 70%; opacity: .7; animation: float1 13s ease-in-out infinite reverse; }
.p5 { width: 4px;  height: 4px;  background: var(--paper);     left: 42%; top: 18%; opacity: .6; animation: float2 7s ease-in-out infinite; }
.p6 { width: 11px; height: 11px; background: var(--accent);    left: 56%; top: 78%; opacity: .5; animation: float3 12s ease-in-out infinite; }

@keyframes float1 { 0%, 100% { transform: translate(0, 0); }       50% { transform: translate(30px, -40px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, 30px) scale(1.4); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); }       50% { transform: translate(40px, 20px); } }

/* Blobs de fond */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.blob-a { width: 500px; height: 500px; background: var(--secondary); left: -100px; top: -100px; opacity: .5; animation: drift 22s ease-in-out infinite; }
.blob-b { width: 600px; height: 600px; background: var(--accent);    right: -200px; bottom: -200px; opacity: .18; animation: drift 28s ease-in-out infinite reverse; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, -60px) scale(1.15); } }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(56px, 11vw, 148px);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 40px 0 0;
}
.hero-title .word {
  display: inline-block;
  animation: revealUp .9s var(--ease-out) both;
}
.hero-title .w1 { animation-delay: .2s; }
.hero-title .w2 { animation-delay: .4s; }
.hero-title .w3 {
  animation-delay: .6s;
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.hero-title .w3::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1s 1.4s var(--ease-out) forwards;
}
@keyframes revealUp { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes underline { to { transform: scaleX(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 60px;
  animation: fadeIn 1s 1s both;
  flex-wrap: wrap;
}
.hero-meta .lead {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
  opacity: .9;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Marquee bas du hero */
.marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(247, 248, 244, .15);
  overflow: hidden;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 38s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  opacity: .6;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--accent);
  font-style: normal;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Indicateur de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
  z-index: 2;
}
.scroll-cue .line {
  width: 1px;
  height: 48px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 18px;
  background: var(--accent);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }

/* ================================================
   SECTION VIVANT — Approche
   ================================================ */
.vivant {
  padding: 120px 56px;
  background: var(--paper);
}
.vivant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.vivant-img {
  position: relative;
  height: 580px;
  background-color: #5C8374;
  background-image:
    linear-gradient(135deg, rgba(92,131,116,.5), rgba(63,93,77,.55)),
    url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?w=1400&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 4px;
}
.vivant-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 30% 40%, rgba(247,248,244,.08) 0, rgba(247,248,244,.08) 1px, transparent 1px, transparent 16px),
    repeating-radial-gradient(circle at 70% 60%, rgba(201,168,124,.12) 0, rgba(201,168,124,.12) 2px, transparent 2px, transparent 22px);
  animation: slowPulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes slowPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

.floating-leaf {
  position: absolute;
  font-size: 48px;
  color: var(--accent);
  opacity: .55;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .15);
}
.leaf-1 { top: 20%; left: 15%; animation: leafFloat 6s ease-in-out infinite; }
.leaf-2 { top: 60%; right: 18%; animation: leafFloat 8s ease-in-out infinite reverse; }
.leaf-3 { bottom: 15%; left: 35%; animation: leafFloat 7s ease-in-out infinite; }
@keyframes leafFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-25px) rotate(8deg); } }

.vivant-text h2 {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1;
  margin: 14px 0 22px;
}
.vivant-text h2 em { color: var(--secondary); font-style: italic; }
.vivant-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 18px 0;
}

/* ================================================
   PRESTATIONS — Cartes magnétiques
   ================================================ */
.section-prest {
  padding: 130px 56px;
  background: var(--paper-alt);
}
.section-prest-head { text-align: center; margin-bottom: 60px; }
.section-prest-head h2 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  margin: 18px 0 0;
}
.section-prest-head h2 em { color: var(--secondary); font-style: italic; }

.pres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.pres-card {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid rgba(63, 93, 77, .08);
  cursor: pointer;
  border-radius: 4px;
  transition: transform var(--speed-med) var(--ease-out),
              box-shadow var(--speed-med);
}
.pres-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(63, 93, 77, .18);
}
.pres-img {
  height: 340px;
  position: relative;
  overflow: hidden;
}
.pres-card .pres-img {
  background-color: #5C8374;
  background-size: cover;
  background-position: center;
}
.pres-card.hijama  .pres-img {
  background-image:
    linear-gradient(160deg, rgba(92,131,116,.55), rgba(63,93,77,.75)),
    url('https://images.unsplash.com/photo-1591343395082-e120087004b4?w=1000&q=80&auto=format&fit=crop');
}
.pres-card.massage .pres-img {
  background-image:
    linear-gradient(160deg, rgba(201,168,124,.45), rgba(168,134,86,.65)),
    url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?w=1000&q=80&auto=format&fit=crop');
}
.pres-card.sophro  .pres-img {
  background-image:
    linear-gradient(160deg, rgba(138,169,141,.55), rgba(92,131,116,.7)),
    url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=1000&q=80&auto=format&fit=crop');
}
.pres-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(247, 248, 244, .15), transparent 70%);
  transition: transform 1.2s var(--ease-out);
}
.pres-card:hover .pres-img::before { transform: scale(1.6); }

.pres-img-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: var(--paper);
}
.pres-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 80px;
  font-weight: 300;
  opacity: .4;
  line-height: .8;
}
.pres-icon-circle {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(247, 248, 244, .4);
  transform: translate(-50%, -50%);
  transition: transform 1s var(--ease-out), border-color var(--speed-med);
}
.pres-icon-circle::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(247, 248, 244, .3);
}
.pres-card:hover .pres-icon-circle {
  transform: translate(-50%, -50%) scale(1.5) rotate(45deg);
  border-color: var(--accent);
}

.pres-body { padding: 36px 32px 40px; }
.pres-tag {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.pres-card h3 {
  font-size: 38px;
  line-height: 1;
  margin: 0 0 14px;
}
.pres-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 24px;
}
.pres-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(63, 93, 77, .1);
}
.pres-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--secondary);
  font-weight: 500;
}
.pres-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s var(--ease-out);
}
.pres-card:hover .pres-arrow {
  background: var(--accent);
  transform: rotate(-45deg);
}

/* ================================================
   BLOC RÉSERVATION — Bandeau primaire
   ================================================ */
.cta-banner {
  background-color: var(--primary);
  background-image:
    linear-gradient(180deg, rgba(63,93,77,.85), rgba(42,53,48,.9)),
    url('https://images.unsplash.com/photo-1487412947147-5cebf100ffc2?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--paper);
  padding: 90px 56px;
  text-align: center;
  position: relative;
}
.cta-banner h2 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 18px 0 14px;
}
.cta-banner p {
  font-size: 14px;
  opacity: .75;
  max-width: 540px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.cta-slots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}
.cta-slot {
  border: 1px solid rgba(247, 248, 244, .4);
  padding: 12px 18px;
  background: rgba(247, 248, 244, .06);
  border-radius: 3px;
  text-align: left;
}
.cta-slot .day {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.cta-slot .hr {
  opacity: .7;
  font-size: 12px;
  margin-top: 2px;
}

/* ================================================
   SECTION PRESTATION DÉTAILLÉE — Page Prestations
   ================================================ */
.detail-section {
  padding: 100px 56px;
  border-bottom: 1px solid rgba(63, 93, 77, .12);
}
.detail-section:nth-of-type(even) { background: var(--paper-alt); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.detail-aside { position: sticky; top: 100px; }
.detail-aside h2 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: .98;
  margin: 14px 0 24px;
}
.detail-aside h2 em { color: var(--secondary); font-style: italic; }
.detail-aside .lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 28px;
}
.detail-aside .meta-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--accent);
  font-size: 13px;
}
.detail-aside .meta-row > div { flex: 1; }
.detail-aside .meta-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.detail-aside .meta-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-item {
  background: var(--paper);
  border: 1px solid rgba(63, 93, 77, .12);
  padding: 24px 28px;
  border-radius: 4px;
  transition: border-color var(--speed-fast), box-shadow var(--speed-fast), transform var(--speed-fast);
}
.detail-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 30px rgba(63, 93, 77, .08);
  transform: translateX(4px);
}
.detail-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}
.detail-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.detail-item .item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(63, 93, 77, .08);
  font-size: 12px;
  color: var(--ink-soft);
}

/* Avertissement / note */
.warn-box {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--note);
  background: rgba(201, 119, 102, .06);
  border-radius: 3px;
  font-size: 13px;
  color: var(--note);
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.warn-box::before {
  content: '⚠';
  font-size: 18px;
  flex-shrink: 0;
}

/* ================================================
   STEPPER ANIMÉ — Page Réservation
   ================================================ */
.stepper-section {
  padding: 130px 56px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.stepper-section::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(201, 168, 124, .2);
}
.stepper-section::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 3px;
  height: 120px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: rideLine 5s ease-in-out infinite;
}
@keyframes rideLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 120px); opacity: 0; }
}

.stepper-head {
  text-align: center;
  margin-bottom: 90px;
  position: relative;
  z-index: 2;
}
.stepper-head h2 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  margin: 18px 0 0;
}
.stepper-head h2 em { color: var(--accent); font-style: italic; }

.stepper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.step {
  position: relative;
  padding: 0 20px;
  text-align: center;
}
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  z-index: 3;
  border: 1px solid var(--paper);
  transition: all var(--speed-med) var(--ease-out);
}
.step.on .step-num {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(201, 168, 124, .2);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 8px rgba(201, 168, 124, .2); }
  50%      { box-shadow: 0 0 0 14px rgba(201, 168, 124, .08); }
}
.step.done .step-num {
  background: var(--secondary);
  color: var(--paper);
  border-color: var(--secondary);
}
.step h4 {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--paper);
}
.step.future h4 { opacity: .5; }
.step p {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.stepper-line {
  position: absolute;
  left: 0; right: 0; top: 30px;
  height: 1px;
  background: rgba(247, 248, 244, .15);
  z-index: 1;
}
.stepper-line::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--accent);
  animation: fillLine 2s ease-out forwards;
}
.stepper-line.s1::before { width: 0; }
.stepper-line.s2::before { width: 25%; }
.stepper-line.s3::before { width: 50%; }
.stepper-line.s4::before { width: 75%; }
@keyframes fillLine { from { width: 0; } }

/* ================================================
   PAGE INTRO — Hero secondaire
   ================================================ */
.page-intro {
  padding: 110px 56px 80px;
  background-color: var(--primary);
  background-image:
    linear-gradient(180deg, rgba(63,93,77,.72), rgba(63,93,77,.85)),
    url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-intro::before,
.page-intro::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.page-intro::before {
  width: 300px; height: 300px;
  background: var(--secondary);
  top: -80px; left: -80px;
  opacity: .35;
}
.page-intro::after {
  width: 350px; height: 350px;
  background: var(--accent);
  bottom: -100px; right: -100px;
  opacity: .15;
}
.page-intro > * { position: relative; z-index: 1; }
.page-intro h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  margin: 18px 0 14px;
}
.page-intro h1 em { color: var(--accent); font-style: italic; }
.page-intro .lead {
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
  opacity: .85;
  line-height: 1.7;
}

/* ================================================
   FORMULAIRE — Anamnèse / Réservation
   ================================================ */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.form-progress > div {
  flex: 1;
  height: 4px;
  background: var(--paper-alt);
  border-radius: 2px;
  transition: background var(--speed-med);
}
.form-progress > div.on { background: var(--accent); }

.form-step-label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 24px 0 6px;
}
.form-step-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin: 0 0 14px;
}
.form-step-title em { color: var(--secondary); font-style: italic; }
.form-step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.form-field {
  margin-bottom: 22px;
}
.form-field > label {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 400;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid rgba(63, 93, 77, .2);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  transition: border-color var(--speed-fast), box-shadow var(--speed-fast);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(92, 131, 116, .12);
}
.form-field textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Choix Oui / Non */
.yn-question {
  padding: 16px 0;
  border-bottom: 1px solid rgba(63, 93, 77, .1);
}
.yn-question .q {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.5;
}
.yn-options {
  display: flex;
  gap: 10px;
}
.yn-option {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(63, 93, 77, .15);
  border-radius: 3px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--speed-fast);
  background: var(--paper);
}
.yn-option:hover { border-color: var(--secondary); }
.yn-option.selected {
  border-color: var(--secondary);
  background: var(--paper-alt);
  color: var(--secondary);
  font-weight: 500;
}
.yn-option[data-val="oui"].selected {
  border-color: var(--note);
  background: rgba(201, 119, 102, .08);
  color: var(--note);
}
.yn-precise {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--note);
  background: rgba(201, 119, 102, .04);
  font-size: 12px;
  color: var(--note);
  border-radius: 3px;
  display: none;
}
.yn-precise.show { display: block; }
.yn-precise input,
.yn-precise textarea {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--note);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  border-radius: 2px;
  font-family: inherit;
}

/* Checkboxes liste de médicaments */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid rgba(63, 93, 77, .12);
  border-radius: 3px;
  cursor: pointer;
  background: var(--paper);
  transition: background var(--speed-fast), border-color var(--speed-fast);
  word-break: break-word;
}
.check-grid label:hover { background: var(--paper-alt); border-color: var(--secondary); }
.check-grid input[type="checkbox"] { accent-color: var(--secondary); }

.check-cat {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 18px 0 6px;
  font-weight: 500;
}

/* Sélecteur durée massage */
#massage-dur-picker {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--paper-alt);
  border: 1px solid rgba(63,93,77,.12);
  border-radius: 4px;
  animation: fadeIn .2s ease;
}
.soin-dur-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.soin-dur-options {
  display: flex;
  gap: 10px;
}
.soin-dur-btn {
  flex: 1;
  padding: 12px 0;
  border: 1px solid rgba(63,93,77,.2);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--speed-fast);
}
.soin-dur-btn:hover { border-color: var(--primary); color: var(--primary); }
.soin-dur-btn.on { background: var(--primary); border-color: var(--primary); color: var(--paper); font-weight: 600; }

/* Choix soins */
.soin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.soin-card {
  padding: 22px;
  border: 1.5px solid rgba(63, 93, 77, .15);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  transition: all var(--speed-fast);
  text-align: left;
}
.soin-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(63, 93, 77, .08);
}
.soin-card.selected {
  border-color: var(--secondary);
  background: var(--paper-alt);
  box-shadow: 0 0 0 3px rgba(92, 131, 116, .15);
}
.soin-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.soin-card .duree {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.soin-card p {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 10px 0 0;
  line-height: 1.6;
}

/* Créneaux */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.slot-item {
  padding: 12px 10px;
  border: 1px solid rgba(63, 93, 77, .15);
  border-radius: 3px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: all var(--speed-fast);
}
.slot-item:hover { border-color: var(--secondary); }
.slot-item.selected {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--paper);
}
.slot-item.disabled {
  background: var(--paper-alt);
  color: var(--ink-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}

.day-pick {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.day-pick .day-card {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 1px solid rgba(63, 93, 77, .15);
  border-radius: 3px;
  background: var(--paper);
  min-width: 84px;
  text-align: center;
  cursor: pointer;
  transition: all var(--speed-fast);
}
.day-pick .day-card .dow {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.day-pick .day-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  display: block;
  margin: 4px 0 0;
}
.day-pick .day-card.selected {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--paper);
}
.day-pick .day-card.selected .dow,
.day-pick .day-card.selected .num { color: var(--paper); }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(63, 93, 77, .12);
}
.form-nav .btn-spacer { flex: 1; }

/* Confirmation finale */
.confirm-panel {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 32px;
  margin-top: 24px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(63, 93, 77, .08);
  font-size: 14px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row .lbl {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.confirm-row .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}

.success-card {
  text-align: center;
  padding: 60px 32px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 4px;
  max-width: 640px;
  margin: 0 auto;
}
.success-card .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 32px;
}
.success-card h2 {
  font-size: 48px;
  line-height: 1;
  margin: 0 0 12px;
}
.success-card h2 em { color: var(--secondary); font-style: italic; }

/* ================================================
   ABOUT / CONTACT
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 56px;
  align-items: center;
}
.about-photo {
  height: 560px;
  background-color: #5C8374;
  background-image:
    linear-gradient(135deg, rgba(63, 93, 77, .25), rgba(42, 53, 48, .15)),
    url('https://images.unsplash.com/photo-1544161515-bcaca5d8d77e?w=1200&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
}
.about-photo::after {
  content: 'PORTRAIT · SORAYA';
  position: absolute;
  bottom: 18px; left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--paper);
  opacity: .85;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.about-text h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin: 14px 0 22px;
}
.about-text h2 em { color: var(--secondary); font-style: italic; }
.about-text p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 16px 0;
}

.contact-band {
  background: var(--paper-alt);
  padding: 80px 56px;
  border-top: 1px solid rgba(63, 93, 77, .12);
}
.contact-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.contact-band-inner h3 {
  font-size: 36px;
  line-height: 1;
  margin: 8px 0 14px;
}
.contact-band-inner h3 em { color: var(--secondary); font-style: italic; }
.contact-band-inner ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; line-height: 1.9; color: var(--ink); }
.contact-band-inner ul li { display: flex; gap: 10px; align-items: center; }
.contact-band-inner h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ================================================
   NAV BURGER — base styles (hidden on desktop)
   ================================================ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  border: 1px solid rgba(63,93,77,.15);
  border-radius: 3px;
  padding: 9px;
  background: transparent;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--speed-fast), opacity var(--speed-fast);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,53,48,.5);
  z-index: 49;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-overlay.open { display: block; }

/* ================================================
   RESPONSIVE — Tablette (max 1024px)
   ================================================ */
@media (max-width: 1024px) {
  .nav { padding: 16px 28px; }
  .ftr { padding: 56px 32px 32px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero { padding: 80px 32px 100px; }
  .vivant { padding: 80px 32px; }
  .vivant-grid { gap: 48px; }
  .section-prest { padding: 80px 32px; }
  .pres-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .detail-section { padding: 80px 32px; }
  .detail-grid { gap: 48px; }
  .contact-band { padding: 60px 32px; }
  .about-grid { padding: 80px 32px; gap: 48px; }
  .pre-section { padding: 72px 32px; }
  .pre-hero { padding: 72px 32px 48px; }
  .anchor-strip { padding: 14px 32px; }
}

/* ================================================
   RESPONSIVE — Mobile large (max 900px)
   ================================================ */
@media (max-width: 900px) {
  /* Nav */
  .nav { padding: 14px 20px; position: sticky; top: 0; }
  .nav-burger { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(80vw, 300px);
    background: var(--paper);
    padding: 72px 28px 40px;
    gap: 0;
    box-shadow: -12px 0 40px rgba(42,53,48,.15);
    z-index: 100;
    transform: translateX(110%);
    transition: transform var(--speed-med) var(--ease-out);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 14px 0;
    font-size: 20px;
    font-family: 'Cormorant Garamond', serif;
    border-bottom: 1px solid rgba(63,93,77,.08);
  }
  .nav-links a::after { display: none; }
  .nav-links .btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    font-size: 13px;
  }

  /* Typography */
  .hero-title { font-size: clamp(48px, 12vw, 80px); }

  /* Layouts */
  .hero { padding: 70px 20px 90px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-actions { flex-wrap: wrap; }

  .vivant { padding: 64px 20px; }
  .vivant-grid { grid-template-columns: 1fr; gap: 36px; }
  .vivant-img { height: 300px; }

  .section-prest { padding: 64px 20px; }
  .pres-grid { grid-template-columns: 1fr; gap: 16px; }

  .cta-banner { padding: 64px 20px; }
  .cta-slots { flex-direction: column; align-items: center; }

  .ftr { padding: 48px 20px 28px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .detail-section { padding: 64px 20px; }
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-aside { position: static; }

  .stepper-section { padding: 80px 20px; }
  .stepper-section::before, .stepper-section::after { display: none; }
  .stepper { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stepper-line { display: none; }

  .page-intro { padding: 80px 20px 60px; }

  .about-grid { grid-template-columns: 1fr; padding: 64px 20px; gap: 36px; }
  .about-photo { height: 300px; }

  .contact-band { padding: 56px 20px; }
  .contact-band-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Prestations page */
  .pre-hero { padding: 60px 20px 40px; }
  .anchor-strip { padding: 12px 20px; gap: 20px; font-size: 11px; }
  .pre-section { padding: 56px 20px; }

  /* Forms */
  .form-wrap { padding: 40px 20px 80px; }
  .form-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .soin-grid { grid-template-columns: 1fr; }

  /* Home page specifics */
  .home-hero { padding: 70px 20px 56px !important; }
  .home-hero .triptych { grid-template-columns: 1fr !important; gap: 10px !important; margin-top: 40px !important; }
  .home-hero .triptych .photo { height: 220px !important; }
  .home-prest { padding: 56px 20px !important; }
  .home-prest .grid { grid-template-columns: 1fr !important; }
  .home-resa { padding: 56px 20px !important; }
  .home-foot { padding: 28px 20px !important; flex-direction: column !important; }
}

/* ================================================
   RESPONSIVE — Mobile petit (max 600px)
   ================================================ */
@media (max-width: 600px) {
  .ftr-grid { grid-template-columns: 1fr; gap: 24px; }
  .stepper { grid-template-columns: 1fr; gap: 24px; }
  .pres-grid { grid-template-columns: 1fr; }

  .btn-lg { padding: 15px 24px; font-size: 12px; }
  .btn { font-size: 11px; padding: 13px 20px; }

  /* Réservation day chips — smaller */
  .day-card .num { font-size: 22px; }

  /* Prestations */
  .pre-hero h1 { font-size: clamp(40px, 12vw, 72px); }
  .anchor-strip .pack-link { margin-left: 0; }

  /* Touch-friendly minimum sizes */
  .btn, .soin-card, .day-card, .slot-item,
  .yn-option, .nav-links a { min-height: 44px; }
  .slot-item { padding: 14px 8px; font-size: 14px; }

  .home-resa .badges { flex-direction: column !important; align-items: center !important; }
}

/* ================================================
   ADMIN — Tableau de bord praticienne
   ================================================ */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--paper-alt);
}
.admin-side {
  background: var(--primary);
  color: var(--paper);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-side .logo { color: var(--paper); padding: 0 24px 8px; font-size: 22px; }
.admin-side .logo-tag { color: rgba(247, 248, 244, .65); padding: 0 24px; }
.admin-side hr {
  border: none;
  height: 1px;
  background: rgba(247, 248, 244, .12);
  margin: 18px 24px 12px;
}
.admin-side .item {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  opacity: .7;
  cursor: pointer;
  transition: opacity var(--speed-fast), background var(--speed-fast);
}
.admin-side .item:hover { opacity: 1; }
.admin-side .item.on {
  opacity: 1;
  background: rgba(247, 248, 244, .08);
  border-left: 3px solid var(--accent);
  padding-left: 21px;
  font-weight: 500;
}
.admin-side .badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--ink);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 500;
}
.admin-side .badge.alert { background: var(--note); color: var(--paper); }
.admin-side .userbox {
  margin-top: auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(247, 248, 244, .12);
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-side .userbox .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.admin-main { padding: 0; }
.admin-top {
  padding: 24px 36px;
  background: var(--paper);
  border-bottom: 1px solid rgba(63, 93, 77, .12);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.admin-top h1 {
  font-size: 36px;
  margin: 6px 0 0;
}
.admin-top h1 em { color: var(--secondary); font-style: italic; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.metrics-row {
  padding: 24px 36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.metric {
  background: var(--paper);
  border: 1px solid rgba(63, 93, 77, .12);
  padding: 18px 22px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric .lbl {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.metric .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}
.metric .sub { font-size: 11px; color: var(--ink-soft); }
.metric .spark {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 24px;
  margin-top: 4px;
}
.metric .spark > div {
  flex: 1;
  background: var(--secondary);
  opacity: .4;
  border-radius: 1px;
}

.admin-body {
  padding: 0 36px 50px;
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 18px;
}

/* Cal grid */
.cal-grid {
  display: grid;
  grid-template-columns: 60px repeat(6, 1fr);
  background: var(--paper);
  border: 1px solid rgba(63, 93, 77, .12);
  border-radius: 3px;
  overflow: hidden;
}
.cal-day {
  padding: 12px 10px;
  border-left: 1px solid rgba(63, 93, 77, .08);
  border-bottom: 1px solid rgba(63, 93, 77, .12);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}
.cal-day .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  display: block;
}
.cal-day.today { background: var(--paper-alt); }
.cal-day.today .num { color: var(--secondary); }
.cal-hour {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-soft);
  padding: 4px 8px;
  border-top: 1px solid rgba(63, 93, 77, .08);
  height: 56px;
}
.cal-cell {
  border-left: 1px solid rgba(63, 93, 77, .08);
  border-top: 1px solid rgba(63, 93, 77, .08);
  position: relative;
  height: 56px;
}
.ev {
  position: absolute;
  left: 3px; right: 3px;
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--speed-fast);
}
.ev:hover { transform: scale(1.03); z-index: 5; }
.ev-h { background: var(--hijama);  color: var(--paper); border-left: 3px solid #3F5D4D; }
.ev-m { background: var(--massage); color: var(--ink);   border-left: 3px solid #a98256; }
.ev-s { background: rgba(138, 169, 141, .9); color: var(--paper); border-left: 3px solid var(--sophro); }
.ev-pending { background: transparent; border: 1.5px dashed var(--note); color: var(--note); }

.today-panel {
  background: var(--paper);
  border: 1px solid rgba(63, 93, 77, .12);
  border-radius: 3px;
}
.today-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--accent);
}
.today-head .count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  margin-top: 8px;
}
.today-head .alert {
  font-size: 11px;
  color: var(--note);
  margin-top: 4px;
}
.today-list .row {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(63, 93, 77, .08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.today-list .row.alert {
  background: rgba(201, 119, 102, .04);
  border-left: 3px solid var(--note);
  padding-left: 17px;
}
.today-list .top-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.today-list .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
}
.today-list .bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-soft);
}

.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.cal-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cal-legend .sw {
  width: 12px;
  height: 12px;
  display: inline-block;
}

/* Patients table */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid rgba(63, 93, 77, .12);
  border-radius: 3px;
  overflow: hidden;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid rgba(63, 93, 77, .08);
}
.table th {
  background: var(--paper-alt);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--paper-alt); }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  .admin-side .logo,
  .admin-side .logo-tag,
  .admin-side hr,
  .admin-side .userbox { display: none; }
  .admin-side .item { padding: 8px 14px; flex-shrink: 0; }
  .admin-side .item.on { padding-left: 11px; }
  .metrics-row, .admin-body { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .admin-top, .metrics-row, .admin-body { padding-left: 18px; padding-right: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
