/* hidden override — class display rules must not win over [hidden] */
[hidden] { display: none !important; }

/* ===== TOKENS ===== */
:root {
  --bg:       oklch(91% 0.014 40);
  --surface:  oklch(98% 0.006 75);
  --fg:       oklch(33% 0.012 30);
  --muted:    oklch(54% 0.02 40);
  --border:   oklch(85% 0.02 40);
  --accent:   oklch(27% 0.085 5);
  --accent-2: oklch(70% 0.085 60);
  --ok:       oklch(62% 0.13 150);
  --danger:   oklch(56% 0.14 30);
  --cream:    oklch(98% 0.006 75);

  --font-display: 'Cormorant Garamond', 'Didot', 'Bodoni MT', 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, sans-serif;
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.kicker { font: 600 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* ===== PRELOADER (shared) ===== */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-spinner { animation: spin 1s linear infinite; color: var(--accent); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-video { width: 100%; height: 100%; object-fit: cover; }

/* ===== PAGE: INDEX ===== */

/* scoped: h1/h2/h3 */
.page-index h1, .page-index h2, .page-index h3 {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.page-index h1 { font-size: clamp(38px, 6.6vw, 72px); line-height: 1.06; }
.page-index h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; }
.page-index h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.25; }

/* scoped: lead */
.page-index p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg); max-width: 52ch; }

/* scoped: btn */
.page-index .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.page-index .btn:hover { transform: scale(1.03) translateY(-1px); }
.page-index .btn-primary { background: var(--accent); color: var(--surface); }
.page-index .btn-primary:hover { background: oklch(33% 0.09 5); }
.page-index .btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.page-index .btn-ghost:hover { background: var(--accent); color: var(--surface); }
.page-index .btn-light { background: var(--surface); color: var(--accent); }
.page-index .btn-light:hover { background: oklch(100% 0 0); }

/* scoped: text-link */
.page-index .text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-2); padding-bottom: 2px; transition: border-color .2s ease; }
.page-index .text-link:hover { border-color: var(--accent); }

/* ---- page transition overlay ---- */
#pt-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
#pt-overlay.pt-out { opacity: 0; }

/* ---- animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.active > *:nth-child(2) { transition-delay: 0.10s; }
.stagger.active > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.active > *:nth-child(4) { transition-delay: 0.20s; }
.stagger.active > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.active > *:nth-child(6) { transition-delay: 0.30s; }
.stagger.active > *:nth-child(7) { transition-delay: 0.35s; }
.stagger.active > *:nth-child(8) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #pt-overlay { transition: none; }
  .reveal, .stagger > * { transition: none; opacity: 1; transform: none; will-change: auto; }
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 8px 30px -22px oklch(27% 0.085 5 / .6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.wordmark { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--fg); transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- photo frame (generic placeholder) ---- */
.photo-frame {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(135deg, oklch(25% 0.1 20), oklch(35% 0.05 30));
  min-height: 240px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
}
.photo-frame::before {
  content: 'Amaria Hair';
  font-family: var(--font-display);
  font-size: 24px;
  color: oklch(98% 0.006 75 / 0.2);
  letter-spacing: 0.1em;
}
.photo-frame::after {
  content: attr(data-label);
  position: absolute; left: 18px; bottom: 18px;
  font: 600 10.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: oklch(98% 0.006 75 / .92);
  background: oklch(20% 0.04 20 / .32);
  backdrop-filter: blur(6px);
  padding: 9px 14px; border-radius: 999px;
  z-index: 2;
}

/* ---- hero ---- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero-copy > * + * { margin-top: 24px; }
.hero h1 { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-meta { list-style: none; display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta li { font-size: 13.5px; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--accent); line-height: 1.2; margin-bottom: 4px; }
/* ---- hero calendar ---- */
.hero-calendar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 100px -40px oklch(27% 0.085 5 / .2);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: heroCalIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes heroCalIn {
  from { opacity: 0; transform: translateX(40px) rotate(2deg); }
  to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.hero-calendar .cal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hero-calendar .cal-month {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-calendar .cal-legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-calendar .cal-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero-calendar .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(8px, 1.5vw, 12px);
  flex: 1;
}

.hero-calendar .cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}

.hero-calendar .cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: default;
}

.hero-calendar .cal-day.available {
  background: oklch(70% 0.085 60 / .1);
  color: var(--accent);
  cursor: pointer;
}

.hero-calendar .cal-day.available:hover {
  background: var(--accent-2);
  color: var(--surface);
  transform: scale(1.15);
  box-shadow: 0 10px 20px -8px var(--accent-2);
}

.hero-calendar .cal-day.today {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.hero-calendar .cal-day.past {
  opacity: 0.25;
}

@media (max-width: 880px) {
  .hero-visual { aspect-ratio: auto; }
  .hero-calendar { aspect-ratio: 1; padding: 24px; }
}

/* ---- section rhythm ---- */
section { padding-block: clamp(56px, 8vw, 100px); }
.section-head { max-width: 64ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-top: 10px; }
.section-head p.lead { margin-top: 14px; }

/* ---- présentation ---- */
.presentation .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.presentation-copy > * + * { margin-top: 16px; }
.presentation-copy p { max-width: 56ch; color: var(--fg); }
.presentation-copy .insta-link { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  margin-top: 12px; 
  color: var(--accent);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
}
.presentation-copy .insta-link:hover {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px -10px var(--accent);
}

/* ---- brands section ---- */
.brands { 
  background: oklch(25% 0.1 20); /* Bordeaux / Burgundy profond */
  border-block: 1px solid oklch(100% 0 0 / 0.1); 
  overflow: hidden; 
  color: var(--cream);
}
.brands-inner { text-align: center; }
.brands .kicker { color: oklch(70% 0.08 40); } /* Kicker doré/rose pour le bordeaux */
.brands h3 { margin-block: 12px 32px; font-size: clamp(24px, 3vw, 32px); color: var(--cream); }
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.brand-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid oklch(100% 0 0 / 0.2);
  padding: 12px 24px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
  white-space: nowrap;
}
.brand-tag:hover {
  background: var(--cream);
  color: oklch(25% 0.1 20);
  border-color: var(--cream);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px -10px oklch(0% 0 0 / 0.5);
}

/* Spécifique Amaria Hair Hover sur fond bordeaux */
.brand-tag.amaria-brand {
  position: relative;
  min-width: 140px; /* Évite que la taille saute trop */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-tag.amaria-brand:hover {
  color: transparent; /* Cache le texte original */
}

.brand-tag.amaria-brand:hover::after {
  content: attr(data-hover);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: oklch(25% 0.1 20); /* Texte bordeaux sur badge blanc */
  white-space: nowrap;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.brand-note {
  font-size: 14px;
  color: oklch(98% 0.006 75 / 0.7);
  font-style: italic;
  max-width: 40ch;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .brands-grid { gap: 10px; }
  .brand-tag { padding: 8px 16px; font-size: 13px; }
}

/* ---- stack expertise ---- */
.stack-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* Ajoute de la profondeur */
}

.stack-image {
  position: absolute;
  width: 85%;
  aspect-ratio: 9 / 16;
  background-size: cover;
  background-position: center;
  border: 4px solid var(--surface);
  box-shadow: 0 15px 35px -10px oklch(27% 0.085 5 / .2);
  border-radius: 22px;
  /* Optimisation performance */
  will-change: transform, opacity, filter;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.6s ease, 
              opacity 0.6s ease,
              box-shadow 0.6s ease;
  filter: blur(2px);
  opacity: 0.7;
  z-index: 1;
}

/* Base stack positions - sans animation pour éviter les conflits */
.stack-image:nth-child(1) { transform: rotate(-6deg) translateX(-18%) scale(0.92); }
.stack-image:nth-child(2) { transform: rotate(0deg) scale(0.95); }
.stack-image:nth-child(3) { transform: rotate(6deg) translateX(18%) scale(0.92); }

/* Auto-scroll highlight animation with Flip effect */
@keyframes stackHighlight {
  0% {
    z-index: 10;
    transform: translateY(-25px) scale(1.05) rotateY(0deg);
    filter: blur(0);
    opacity: 1;
    box-shadow: 0 40px 80px -20px oklch(27% 0.085 5 / .4);
  }
  10% {
    z-index: 10;
    transform: translateY(-25px) scale(1.05) rotateY(360deg);
    filter: blur(0);
    opacity: 1;
  }
  20%, 25% {
    z-index: 10;
    transform: translateY(-25px) scale(1.05) rotateY(360deg);
    filter: blur(0);
    opacity: 1;
    box-shadow: 0 40px 80px -20px oklch(27% 0.085 5 / .4);
  }
  33.33%, 100% {
    z-index: 1;
    filter: blur(2px);
    opacity: 0.8;
  }
}

.stack-image:nth-child(1) { animation: stackHighlight 12s infinite 0s ease-in-out; }
.stack-image:nth-child(2) { animation: stackHighlight 12s infinite 4s ease-in-out; }
.stack-image:nth-child(3) { animation: stackHighlight 12s infinite 8s ease-in-out; }

/* Hover: Pause and lift current active */
.stack-container:hover .stack-image {
  animation-play-state: paused;
}

.stack-image:hover {
  z-index: 50 !important;
  transform: translateY(-40px) scale(1.1) rotate(0deg) !important;
  filter: blur(0) !important;
  opacity: 1 !important;
  box-shadow: 0 50px 100px -25px oklch(27% 0.085 5 / .5);
}

.stack-container:hover .stack-image:not(:hover) {
  filter: blur(8px) !important;
  opacity: 0.4 !important;
  transform: scale(0.85) !important;
}

@media (max-width: 880px) {
  .presentation-visual { aspect-ratio: auto; min-height: auto; overflow: hidden; }
  .stack-container { max-width: 260px; }
  .stack-image:nth-child(1) { transform: rotate(-4deg) translateX(-10%) scale(0.92); }
  .stack-image:nth-child(3) { transform: rotate(4deg) translateX(10%) scale(0.92); }
}

/* ---- prestations ---- */
.prestations { background: var(--surface); border-block: 1px solid var(--border); }
.prestation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.prestation-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .3s ease, transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .3s ease;
}
.prestation-card:hover { border-color: var(--accent-2); transform: translateY(-6px); box-shadow: 0 24px 48px -20px oklch(27% 0.085 5 / .3); }
.prestation-card h3 { font-size: 22px; }
.prestation-card .price { font-family: var(--font-display); font-size: 28px; color: var(--accent); }
.prestation-card .price span { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.prestation-card .card-cta { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.prestation-card .card-cta::after { content: '→'; transition: transform .2s ease; }
.prestation-card:hover .card-cta::after { transform: translateX(4px); }

/* ---- conditions strip ---- */
.conditions { background: var(--accent); color: var(--cream); }
.conditions .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.conditions .item { display: flex; flex-direction: column; gap: 8px; }
.conditions .item .num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); color: var(--accent-2); }
.conditions .item p { font-size: 15px; color: oklch(98% 0.006 75 / .85); max-width: 32ch; line-height: 1.5; }

/* ---- horaires ---- */
.horaires .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.horaires-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 40px -20px oklch(27% 0.085 5 / .1);
}
.horaires-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px dashed var(--border); font-size: 15px; }
.horaires-card .row:last-child { border-bottom: 0; }
.horaires-card .row span:first-child { color: var(--muted); }
.horaires-card .row span:last-child { font-weight: 700; color: var(--accent); }

/* ---- réalisations (Instagram Grid) ---- */
.realisations { background: var(--surface); border-block: 1px solid var(--border); }
.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.real-card {
  aspect-ratio: 1 / 1; text-decoration: none; border-radius: 4px; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
}
.real-card::after {
  content: 'Voir'; position: absolute; inset: 0; background: oklch(27% 0.085 5 / .6);
  color: white; display: flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s ease;
}
.real-card:hover::after { opacity: 1; }
.real-card:hover { transform: scale(1.01); }

.instagram-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity 0.3s ease;
}
.real-card:hover .instagram-overlay { opacity: 1; }
.insta-icon {
  width: 28px; height: 28px; color: white;
}

.real-foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- footer ---- */
footer { background: var(--accent); color: oklch(98% 0.006 75 / .85); }
footer .wrap { padding-block: clamp(44px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: start; }
footer .wordmark { color: var(--cream); }
.footer-brand .insta-link-footer { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  margin-top: 16px; 
  color: var(--cream);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 8px;
  border: 1px solid oklch(98% 0.006 75 / .2);
  border-radius: 50%;
}
.footer-brand .insta-link-footer:hover {
  background: var(--cream);
  color: var(--accent);
  border-color: var(--cream);
  transform: translateY(-3px) rotate(5deg);
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; text-decoration: none; color: oklch(98% 0.006 75 / .8); border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; width: fit-content; padding-block: 8px; display: block; }
.footer-links a:hover { color: var(--cream); border-color: var(--accent-2); }
.footer-admin {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: oklch(98% 0.006 75 / .6); text-decoration: none; border: 1px solid oklch(98% 0.006 75 / .25);
  border-radius: 999px; padding: 12px 22px; transition: color .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
}
.footer-admin:hover { color: oklch(27% 0.085 5); border-color: var(--cream); background: var(--cream); }
.footer-base { border-top: 1px solid oklch(98% 0.006 75 / .12); padding-block: 20px; font-size: 12.5px; color: oklch(98% 0.006 75 / .5); }

/* ---- mobile sticky cta ---- */
.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600;
  display: none; transform: translateY(120%); transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--surface); font: 700 15px/1 var(--font-body);
  padding: 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 16px 32px -12px oklch(27% 0.085 5 / .6);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .hero .wrap, .presentation .wrap, .horaires .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; aspect-ratio: 1 / 1; }
  .presentation-visual { aspect-ratio: auto; }
  footer .wrap { grid-template-columns: 1fr; }
  .footer-admin { justify-self: start; }
  .mobile-cta { display: block; }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-meta { gap: 24px; }
  .conditions .wrap { grid-template-columns: 1fr; gap: 32px; }
  .prestation-grid { grid-template-columns: 1fr; }
}

/* ---- mobile drawer ---- */
.drawer {
  position: fixed; inset: 0; z-index: 800; display: none;
}
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: oklch(20% 0.04 20 / .42); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 24px;
  box-shadow: -24px 0 60px -30px oklch(27% 0.085 5 / .5);
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { text-decoration: none; font: 700 20px/1 var(--font-display); color: var(--accent); }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 20px; color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* ===== PAGE: RESERVATION ===== */

/* scoped: h1/h2/h3 */
.page-reservation h1, .page-reservation h2, .page-reservation h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.page-reservation h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.page-reservation h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.page-reservation h3 { font-size: 18px; }

/* scoped: btn */
.page-reservation .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 36px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: all .25s ease; }
.page-reservation .btn-primary { background: var(--accent); color: var(--surface); }
.page-reservation .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 24px -8px oklch(27% 0.085 5 / .3); }
.page-reservation .btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.page-reservation .btn-ghost { border-color: var(--border); background: transparent; color: var(--accent); }
.page-reservation .btn-ghost:hover { border-color: var(--accent); background: oklch(27% 0.085 5 / .02); }

.header {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.back-btn { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--fg); transition: color .2s ease; }
.back-btn:hover { color: var(--accent); }

main { padding-block: clamp(40px, 6vw, 80px) 100px; }
.layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }

/* ---- progress ---- */
.stepper { list-style: none; display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.stepper .num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); font-size: 13px; font-family: var(--font-body);
  transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stepper li.active { color: var(--accent); }
.stepper li.active .num { border-color: var(--accent); color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px oklch(27% 0.085 5 / .05); }
.stepper li.done { color: var(--accent); }
.stepper li.done .num { background: var(--accent); border-color: var(--accent); color: var(--surface); }

.page-reservation .panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
  padding: clamp(24px, 5vw, 48px); box-shadow: 0 4px 30px -10px oklch(27% 0.085 5 / .08);
}
.page-reservation .panel > .kicker { display: block; margin-bottom: 12px; }
.page-reservation .panel > p.lead { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 60ch; }

.step-content { display: none; margin-top: 32px; }
.step-content.active { display: block; animation: panelIn .5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---- service selector ---- */
.svc-grid { display: grid; gap: 12px; }
.svc-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 2px solid var(--border); border-radius: 20px; padding: 20px 24px; cursor: pointer;
  background: var(--bg); transition: all .25s ease;
}
.svc-card:hover { border-color: var(--accent-2); transform: translateY(-2px); background: var(--surface); }
.svc-card input { position: absolute; opacity: 0; pointer-events: none; }
.svc-card.selected { border-color: var(--accent); background: oklch(27% 0.085 5 / .03); box-shadow: 0 10px 20px -10px oklch(27% 0.085 5 / .1); }
.svc-card .info strong { display: block; font-size: 17px; color: var(--accent); }
.svc-card .info span { font-size: 14px; color: var(--muted); margin-top: 4px; display: block; }
.svc-card .price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); }
.svc-card .check {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0;
  display: grid; place-items: center; transition: all .2s ease;
}
.svc-card.selected .check { border-color: var(--accent); background: var(--accent); }
.svc-card.selected .check::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); }

/* ---- calendar ---- */
.cal-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.month-label { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--accent); text-transform: capitalize; }
.cal-nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); color: var(--accent); cursor: pointer; transition: all .2s ease; display: grid; place-items: center; }
.cal-nav-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); }
.cal-nav-btn:disabled { opacity: .3; cursor: default; }

.cal-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-bottom: 8px; }
.cal-day {
  aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--bg);
  display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--fg);
  transition: all .2s ease; position: relative; cursor: default;
}
.cal-day.available { cursor: pointer; color: var(--accent); }
.cal-day.available:hover { border-color: var(--accent-2); background: var(--surface); }
.cal-day.available::after { content: ''; position: absolute; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.cal-day.selected { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.cal-day.selected::after { background: var(--surface); }
.cal-day.past { opacity: .3; }

.slots-area { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.slots-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.slot-btn {
  border: 2px solid var(--border); background: var(--bg); border-radius: 999px;
  padding: 12px 24px; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--surface); }

/* ---- form ---- */
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--accent); }
.field input, .field textarea {
  border: 2px solid var(--border); border-radius: 14px; padding: 14px 18px; background: var(--bg);
  transition: all .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px oklch(27% 0.085 5 / .05); }
.field textarea { min-height: 100px; resize: vertical; }
.field-error { font-size: 12.5px; color: var(--accent); font-weight: 600; display: none; margin-top: 4px; }
.field.invalid input { border-color: var(--accent-2); }
.field.invalid .field-error { display: block; }

.checkbox-group { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.checkbox-group input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent); margin-top: 2px; }
.checkbox-group label { font-size: 14.5px; line-height: 1.5; color: var(--fg); font-weight: 400; cursor: pointer; }
.checkbox-group a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ---- summary card ---- */
.summary { position: sticky; top: 110px; }
.summary-card { background: var(--accent); color: var(--cream); border-radius: 32px; padding: 32px; box-shadow: 0 20px 50px -15px oklch(27% 0.085 5 / .35); }
.summary-card .kicker { color: var(--accent-2); opacity: 1; }
.summary-card h2 { color: var(--cream); margin-top: 8px; margin-bottom: 24px; }
.summary-item { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid oklch(100% 0 0 / .1); font-size: 14.5px; }
.summary-item:last-child { border-bottom: 0; }
.summary-item span:first-child { opacity: .7; }
.summary-item span:last-child { font-weight: 700; text-align: right; }
.summary-empty { font-style: italic; opacity: .5; font-size: 14px; text-align: center; padding-block: 20px; }
.summary-footer { margin-top: 24px; font-size: 13px; opacity: .8; line-height: 1.6; }

/* ---- bottom nav ---- */
.page-reservation .nav-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }

/* ---- payment & confirm ---- */
.payment-opts { display: grid; gap: 12px; margin-top: 24px; }
.payment-opt { border: 2px solid var(--border); border-radius: 18px; padding: 20px; cursor: pointer; display: flex; align-items: center; gap: 16px; background: var(--bg); transition: all .2s ease; }
.payment-opt.selected { border-color: var(--accent); background: oklch(27% 0.085 5 / .03); }
.payment-opt strong { font-size: 16px; color: var(--accent); }
.payment-opt p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.success-view { text-align: center; padding-block: 40px; }
.check-icon { width: 80px; height: 80px; background: var(--ok); color: white; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; font-size: 40px; box-shadow: 0 20px 40px -10px oklch(62% 0.13 150 / .4); }
.ref-badge { display: inline-block; padding: 12px 24px; background: var(--bg); border: 2px dashed var(--accent-2); border-radius: 14px; font-family: ui-monospace, monospace; font-weight: 700; color: var(--accent); margin-top: 24px; }

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .summary-card { border-radius: 24px; }
}
@media (max-width: 600px) {
  .input-grid { grid-template-columns: 1fr; }
  .stepper li span:last-child { display: none; }
  .cal-month-grid { gap: 4px; }
  .page-reservation .nav-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* ===== PAGE: ADMIN ===== */

/* scoped: h1/h2/h3 */
.page-admin h1, .page-admin h2, .page-admin h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* scoped: btn */
.page-admin .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font: 700 15px/1 var(--font-body);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.page-admin .btn:hover:not(:disabled) { transform: translateY(-1px); }
.page-admin .btn:active:not(:disabled) { transform: translateY(0); }
.page-admin .btn-primary { background: var(--accent); color: var(--surface); }
.page-admin .btn-primary:hover:not(:disabled) { background: oklch(33% 0.09 5); }
.page-admin .btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.page-admin .btn-ghost:hover { border-color: var(--accent); background: oklch(27% 0.085 5 / .03); }
.page-admin .btn-block { width: 100%; margin-top: 32px; }
.page-admin .btn .loader { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.page-admin .btn.loading .loader { display: block; }
.page-admin .btn.loading .label { opacity: 0; }

/* ---- auth screen ---- */
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
  padding: clamp(32px, 8vw, 56px); text-align: left;
  box-shadow: 0 40px 100px -40px oklch(27% 0.085 5 / .25);
}
.auth-card .wordmark { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent); }
.auth-card h1 { margin-top: 24px; font-size: 32px; }
.auth-card p.lead { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.auth-hint { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ---- admin shell ---- */
.page-admin { overflow: hidden; height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 280px 1fr; height: 100vh; }
.sidebar {
  background: var(--accent); color: oklch(98% 0.006 75 / .85); padding: 40px 24px;
  display: flex; flex-direction: column; gap: 40px; position: sticky; top: 0; height: 100vh;
}
.sidebar .wordmark { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--cream); }
.sidebar .role { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-top: 6px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 14px;
  background: transparent; border: none; color: oklch(98% 0.006 75 / .7); cursor: pointer; font-weight: 600; font-size: 14.5px;
  transition: all .2s ease;
}
.side-nav button svg { width: 20px; height: 20px; opacity: .6; transition: opacity .2s ease; }
.side-nav button:hover { background: oklch(100% 0 0 / .08); color: var(--cream); }
.side-nav button.active { background: oklch(100% 0 0 / .12); color: var(--cream); }
.side-nav button.active svg { opacity: 1; color: var(--accent-2); }

.sidebar-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid oklch(100% 0 0 / .1); }
.sidebar-foot a { font-size: 13.5px; color: oklch(98% 0.006 75 / .6); display: flex; align-items: center; gap: 8px; transition: color .2s ease; }
.sidebar-foot a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-foot a:hover { color: var(--cream); }
.logout { background: transparent; border: 1.5px solid oklch(100% 0 0 / .2); color: oklch(100% 0 0 / .7); border-radius: 999px; padding: 12px; cursor: pointer; font-weight: 700; font-size: 13.5px; transition: all .2s ease; }
.logout:hover { border-color: var(--cream); color: var(--cream); background: oklch(100% 0 0 / .05); }

.admin-main { padding: clamp(24px, 5vw, 48px); width: min(100%, 1280px); margin-inline: auto; box-sizing: border-box; height: 100vh; overflow-y: auto; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 6vw, 48px); }
.admin-top h1 { font-size: clamp(28px, 4vw, 40px); }
.admin-top p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px -4px oklch(27% 0.085 5 / .1); }
.admin-user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--surface); display: grid; place-items: center; font-size: 12px; font-family: var(--font-display); font-weight: 700; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: slideIn .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---- components ---- */
.page-admin .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px, 4vw, 36px); margin-top: 24px; box-shadow: 0 4px 20px -12px oklch(27% 0.085 5 / .1); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel-head h2 { font-size: 22px; }

/* ---- stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; transition: transform .3s ease, box-shadow .3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px oklch(27% 0.085 5 / .15); }
.stat-card .kicker { color: var(--muted); margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-display); font-size: 36px; color: var(--accent); line-height: 1.1; }
.stat-card .delta { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.stat-card .delta.up { color: var(--ok); }
.stat-card .delta.up::before { content: '↑'; font-weight: 700; }

/* ---- chart ---- */
.chart-container { height: 200px; margin-top: 24px; position: relative; }
.chart-svg { width: 100%; height: 100%; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartGradient); opacity: 0.15; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 4; }

/* ---- lists & tables ---- */
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: 0; }
.activity-who { display: flex; align-items: center; gap: 14px; }
.activity-who .avatar { width: 38px; height: 38px; border-radius: 50%; background: oklch(27% 0.085 5 / .08); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.activity-info strong { display: block; font-size: 15px; color: var(--accent); }
.activity-info span { font-size: 13.5px; color: var(--muted); }
.activity-meta { text-align: right; font-size: 13.5px; }
.activity-meta .pill { margin-top: 6px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-upcoming, .pill-a-venir { color: var(--accent); background: oklch(27% 0.085 5 / .08); }
.pill-past, .pill-passee { color: var(--muted); background: oklch(54% 0.02 40 / .1); }
.pill-cancelled, .pill-annulee { color: var(--danger); background: oklch(56% 0.14 30 / .1); }
.pill-pending { background: oklch(85% 0.12 60 / .25); color: oklch(45% 0.14 60); }

/* ---- calendar ---- */
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); color: var(--accent); cursor: pointer; display: grid; place-items: center; transition: all .2s ease; font-size: 18px; }
.cal-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); }
.cal-btn:disabled { opacity: .3; cursor: default; }
.cal-month { font-family: var(--font-display); font-size: 22px; color: var(--accent); font-weight: 700; min-width: 240px; text-align: center; }

.week-grid { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 10px; min-width: 800px; }
.day-head { text-align: center; padding-block: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.day-head .dow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.day-head .dom { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.day-head.today { background: var(--accent); border-color: var(--accent); }
.day-head.today .dow { color: oklch(100% 0 0 / .6); }
.day-head.today .dom { color: var(--cream); }

.time-slot { display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot-cell {
  min-height: 70px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--bg);
  padding: 12px; cursor: pointer; transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column; justify-content: center;
}
.slot-cell:hover { border-color: var(--accent-2); background: var(--surface); transform: scale(1.02); }
.slot-cell.open { color: var(--ok); }
.slot-cell.open .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.slot-cell.closed { border-style: dashed; opacity: .6; color: var(--muted); }
.slot-cell.empty { border-style: dashed; opacity: .5; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.slot-cell.empty:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.slot-cell.reserved { background: var(--accent); border-color: var(--accent); color: var(--cream); cursor: default; }
.slot-cell.reserved .client-name { font-weight: 700; font-size: 14px; display: block; }
.slot-cell.reserved .svc-name { font-size: 11.5px; color: oklch(100% 0 0 / .7); margin-top: 4px; display: block; }

/* ---- modal ---- */
.modal-overlay { position: fixed; inset: 0; background: oklch(0% 0 0 / .5); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; width: 100%; max-width: 480px; box-shadow: 0 24px 64px -12px oklch(27% 0.085 5 / .25); }

/* ---- table ---- */
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th { text-align: left; padding: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 2px solid var(--border); }
td { padding: 18px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: oklch(27% 0.085 5 / .02); }
.client-cell { font-weight: 700; color: var(--accent); }
.action-btns { display: flex; gap: 8px; }
.btn-tiny { padding: 8px 16px; font-size: 12px; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--border); background: var(--bg); cursor: pointer; transition: all .2s ease; }
.btn-tiny:hover { border-color: var(--accent); color: var(--accent); }
.btn-tiny.active { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn-tiny.danger { color: var(--danger); }
.btn-tiny.danger:hover { border-color: var(--danger); background: oklch(56% 0.14 30 / .05); }
.btn-tiny.success { background: oklch(60% 0.15 145 / .15); color: var(--ok); border-color: var(--ok); }
.btn-tiny.success:hover { background: oklch(60% 0.15 145 / .3); }

/* ---- service manager ---- */
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-item {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  transition: border-color .2s ease;
}
.svc-item:focus-within { border-color: var(--accent-2); }
.svc-item .name { font-weight: 700; color: var(--accent); font-size: 16px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); text-align: right; padding-right: 36px; }
.input-group span { position: absolute; right: 14px; font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }
.btn-save { padding: 12px 24px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--accent); cursor: pointer; transition: all .2s ease; }
.btn-save:hover { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.btn-save.success { background: var(--ok); border-color: var(--ok); color: white; }

/* ---- content manager (Instagram) ---- */
.insta-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 24px; }
.insta-item { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); background-size: cover; background-position: center; }
.insta-item::after { content: ''; position: absolute; inset: 0; background: oklch(0% 0 0 / .4); opacity: 0; transition: opacity .2s ease; }
.insta-item:hover::after { opacity: 1; }
.insta-actions { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 2; opacity: 0; transition: opacity .2s ease; }
.insta-item:hover .insta-actions { opacity: 1; }
.btn-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: none; cursor: pointer; display: grid; place-items: center; color: var(--accent); transition: transform .2s ease; }
.btn-icon:hover { transform: scale(1.1); }
.btn-icon.del { color: var(--danger); }
.add-insta { border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all .2s ease; }
.add-insta:hover { border-color: var(--accent-2); color: var(--accent); background: oklch(70% 0.085 60 / .05); }
.add-insta span { font-size: 13px; font-weight: 700; margin-top: 8px; }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 100px);
  background: var(--accent); color: var(--cream); padding: 14px 28px; border-radius: 16px;
  font-weight: 700; font-size: 14px; box-shadow: 0 20px 50px -15px oklch(27% 0.085 5 / .4);
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 3000; display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); }

/* ---- admin field (auth form) ---- */
.page-admin .field { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.page-admin .field label { font-size: 13px; font-weight: 700; color: var(--accent); }
.page-admin .field input {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 18px; color: var(--fg);
  background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease;
}
.page-admin .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px oklch(27% 0.085 5 / .05); }
.page-admin .field-error { font-size: 12.5px; color: var(--danger); display: none; margin-top: 6px; }
.page-admin .field.invalid input { border-color: var(--danger); }
.page-admin .field.invalid .field-error { display: block; }

@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 80px; flex-direction: row; padding: 0 20px; align-items: center; justify-content: space-between; z-index: 1000; box-shadow: 0 -10px 30px oklch(27% 0.085 5 / .1); }
  .sidebar .wordmark, .sidebar .role, .sidebar-foot { display: none; }
  .side-nav { flex-direction: row; gap: 4px; flex: 1; justify-content: space-around; }
  .side-nav button { flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; padding: 8px; overflow: hidden; }
  .side-nav button svg { width: 24px; height: 24px; }
  .admin-main { padding-bottom: 120px; padding-inline: clamp(12px, 4vw, 32px); }
  .toast { bottom: 100px; }
}

@media (max-width: 600px) {
  /* --- Tables → cards --- */
  .table-wrap table thead { display: none; }
  .table-wrap table { min-width: 0; display: block; }

  .table-wrap table tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 4px 0;
    min-width: 0;
  }

  .table-wrap table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    min-width: 0;
  }

  .table-wrap table tr td:last-child { border-bottom: 0; }
  .table-wrap table tr:hover td { background: transparent; }

  .table-wrap table td::before {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    flex-shrink: 0;
    margin-right: 12px;
    white-space: nowrap;
  }

  /* Labels — tableau réservations (6 colonnes) */
  [data-tab="reservations"] td:nth-child(1)::before { content: "Cliente"; }
  [data-tab="reservations"] td:nth-child(2)::before { content: "Prestation"; }
  [data-tab="reservations"] td:nth-child(3)::before { content: "Date & Heure"; }
  [data-tab="reservations"] td:nth-child(4)::before { content: "Statut"; }
  [data-tab="reservations"] td:nth-child(5)::before { content: "Acompte"; }
  [data-tab="reservations"] td:nth-child(6)::before { content: "Actions"; }

  /* Labels — tableau clients (5 colonnes) */
  [data-tab="clients"] td:nth-child(1)::before { content: "Client"; }
  [data-tab="clients"] td:nth-child(2)::before { content: "Dernière visite"; }
  [data-tab="clients"] td:nth-child(3)::before { content: "Total dépensé"; }
  [data-tab="clients"] td:nth-child(4)::before { content: "Fidélité"; }
  [data-tab="clients"] td:nth-child(5)::before { content: "Actions"; }

  /* Boutons d'action dans la dernière cellule */
  .action-btns { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 768px) {
  .admin-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-user { display: none; }
  .svc-item { grid-template-columns: 1fr 1fr; }
  .svc-item .name { grid-column: 1 / -1; }
  .cal-header { flex-direction: column; align-items: stretch; }
  .cal-month { min-width: auto; margin-block: 8px; }
  .activity-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .activity-meta { text-align: left; }
  .panel-head { flex-direction: column; gap: 12px; }
  .panel-head .field { width: 100%; }
  .week-grid { min-width: 0; gap: 4px; grid-template-columns: 60px repeat(5, 1fr); }
  .slot-cell { min-height: 50px; padding: 8px; }
  .slot-cell.open, .slot-cell.closed, .slot-cell.reserved { font-size: 12px; }
  .day-head { padding-block: 10px; }
  .day-head .dom { font-size: 18px; }
  .day-head .dow { font-size: 10px; }
  .time-slot { font-size: 11px; padding-right: 8px; }
}
@media (max-width: 600px) {
  /* --- Calendrier compact mobile --- */
  .page-admin .panel { padding: 14px 12px; }
  .week-grid { gap: 2px; }
  .day-head { padding-block: 5px; border-radius: 8px; }
  .day-head .dow { font-size: 9px; }
  .day-head .dom { font-size: 13px; margin-top: 2px; }
  .time-slot { width: 28px; font-size: 10px; padding-right: 0; justify-content: center; text-align: center; }
  .slot-cell { min-height: 32px; padding: 0; border-radius: 6px; }
  .slot-cell.open, .slot-cell.closed, .slot-cell.reserved, .slot-cell.empty { font-size: 0; }
  .slot-cell * { display: none; }
  .slot-cell.open { background: oklch(62% 0.13 150 / .15); border-color: oklch(62% 0.13 150 / .6); }
}

@media (max-width: 480px) {
  .hero-calendar { border-radius: 20px; }
  .svc-item { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: 1fr; }
  .activity-meta .pill { margin-top: 4px; }
}

@media (max-width: 480px) {
  .side-nav button { font-size: 0; padding: 10px 8px; }
  .side-nav button svg { width: 22px; height: 22px; opacity: 1; }
}
