/* ═══════════════════════════════════════════════════════════════
   SDK · Design system commun ServiceDK
   Palette "Warm Confidence" — voir docs/refonte/mood-board.html
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Couleurs */
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F6F1E8;
  --surface-3: #EFE8DA;
  --text: #1A1614;
  --text-soft: #3D3833;
  --muted: #78706B;
  --primary: #1F4E3D;
  --primary-hover: #163829;
  --primary-on: #FBF8F3;
  --accent: #C8943B;
  --accent-hover: #A47A28;
  --accent-soft: #FAF1DD;
  --urgent: #C53030;
  --urgent-soft: #FBE3E3;
  --border: #E8E2D9;
  --border-strong: #D4CCBE;
  --success: #2D6A4F;
  --error: #C53030;

  /* Rayons */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(26,22,20,.04), 0 1px 3px rgba(26,22,20,.05);
  --shadow: 0 4px 6px rgba(26,22,20,.04), 0 12px 24px rgba(26,22,20,.06);
  --shadow-lg: 0 12px 32px rgba(26,22,20,.08), 0 32px 64px rgba(26,22,20,.10);

  /* Layout */
  --max: 1180px;

  /* Animations */
  --ease: cubic-bezier(.4,0,.2,1);
  --duration-fast: 120ms;
  --duration: 180ms;
  --duration-slow: 300ms;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
}
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

/* ═══ LAYOUT ═══ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; color: var(--text);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-on); font-size: 14px; font-weight: 800;
}
.brand em { font-style: normal; color: var(--primary); }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500; color: var(--text-soft);
}
.nav-links a { transition: color var(--duration) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.header-ctas { display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .header-ctas .btn-ghost { display: none; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  transition: transform var(--duration-fast) var(--ease),
              background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 0;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-on); }
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover); transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text); background: var(--surface);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.btn-urgent { background: var(--urgent); color: #fff; }
.btn-urgent:hover:not(:disabled) { background: #9F1F1F; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ═══ CARDS ═══ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-pad-lg { padding: 32px; }

/* ═══ SECTIONS ═══ */
section.section { padding: 80px 0; }
section.section-sm { padding: 56px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ═══ FORMS ═══ */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.field-input:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,78,61,.12);
}
.field-input::placeholder { color: #B8AFA5; }
.field-help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 12px; color: var(--error); margin-top: 6px; }

.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
  font-size: 14px;
}
.checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ═══ ALERTS / FLASH ═══ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-error { background: var(--urgent-soft); color: #7B1B1B; border: 1px solid #F0B5B5; }
.alert-success { background: #DCF1E3; color: #1A4A33; border: 1px solid #A6D4B8; }
.alert-info { background: var(--accent-soft); color: #6E4F1A; border: 1px solid #E8C885; }

.flashes { margin-bottom: 24px; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--text); color: rgba(251,248,243,.7);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: var(--primary-on); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary-on); margin-bottom: 16px; font-weight: 600;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(251,248,243,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.footer-bottom .legal { color: rgba(251,248,243,.5); }

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

/* ═══ ACCESSIBILITY ═══ */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   LEGACY COMPAT LAYER
   Mappe les anciennes classes ELC vers les tokens nouvelle DA.
   Permet aux templates non encore redesignés de rester cohérents
   visuellement le temps de la transition.
   ═══════════════════════════════════════════════════════════════ */

/* Cache l'ancienne identité ELC si encore présente */
.brand-block-top { display: none !important; }

.dashboard-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex; flex-direction: column; gap: 18px;
}
.client-page-grey, .profile-page-grey, .rdv-page-grey { background: transparent; }

.topbar, .topbar-right {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 0;
  margin-bottom: 12px;
}
.topbar-right { gap: 10px; }
.topbar-link, .ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: border-color var(--duration), background var(--duration);
  cursor: pointer;
}
.topbar-link:hover, .ghost-btn:hover { border-color: var(--primary); color: var(--primary); }
.topbar-icon-btn { padding: 8px 12px; }
.topbar-avatar-link {
  display: inline-flex; width: 38px; height: 38px;
  border-radius: 50%; overflow: hidden;
  background: var(--primary); color: var(--primary-on);
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.topbar-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.topbar-avatar-circle { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.primary-btn, .full-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  background: var(--primary); color: var(--primary-on);
  border: 0; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background var(--duration), transform var(--duration);
  text-decoration: none;
}
.primary-btn:hover, .full-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.full-btn { width: 100%; }

.rounded-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.outline-panel { background: var(--surface); }
.glow-box { box-shadow: var(--shadow-sm); }
.hero-box {
  background: linear-gradient(135deg, #1F4E3D 0%, #2A6650 100%);
  color: var(--primary-on);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative; overflow: hidden;
}
.hero-box::before {
  content: ""; position: absolute; inset: -40% auto auto -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(200,148,59,.18), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-box h1, .hero-box h2 { color: var(--primary-on); position: relative; z-index: 1; }
.hero-box .eyebrow { color: var(--accent); position: relative; z-index: 1; }
.hero-box .hero-copy, .hero-box p { color: rgba(251,248,243,.85); position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}

/* Forms legacy */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-soft); font-weight: 600; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password],
.auth-form input[type=tel], .auth-form input[type=number],
.auth-form input[type=file], .auth-form select, .auth-form textarea {
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 15px;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,78,61,.12); }
.double-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .double-grid { grid-template-columns: 1fr; } }

.tab-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-link {
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  color: var(--text-soft);
  transition: background var(--duration), color var(--duration), border-color var(--duration);
}
.tab-link.active { background: var(--primary); color: var(--primary-on); border-color: var(--primary); }

/* Tables / lists legacy */
.profile-card, .profile-item, .rc-section, .rc-row { color: var(--text); }
.profile-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.profile-item:last-child { border-bottom: 0; }
.profile-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.saved-address-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-item-value { font-size: 15px; color: var(--text); font-weight: 500; }
.mini-action { color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; }
.muted-paragraph { color: var(--muted); font-size: 13px; }

.rc-section { padding-top: 12px; }
.rc-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 10px; }
.rc-row { display: flex; justify-content: space-between; padding: 8px 0; }
.rc-label { color: var(--muted); font-size: 14px; }
.rc-val { color: var(--text); font-weight: 600; font-size: 14px; }
.rc-val--highlight { color: var(--primary); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border-strong); border-radius: 999px;
  transition: background var(--duration);
}
.toggle-slider::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; background: var(--surface);
  border-radius: 50%; transition: transform var(--duration);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Settings rows */
.settings-card { padding: 24px; }
.settings-header { margin-bottom: 12px; }
.settings-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.settings-item:last-child { border-bottom: 0; }
.settings-item-left { display: flex; align-items: center; gap: 12px; }
.settings-item-icon { font-size: 22px; }
.settings-item-label { font-weight: 700; font-size: 14px; }
.settings-item-sub { font-size: 12px; color: var(--muted); }

/* Avatar legacy */
.avatar-circle { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--primary-on); font-family: 'Manrope', sans-serif; font-weight: 800; border-radius: 50%; }
.avatar-large { width: 64px; height: 64px; font-size: 22px; }
.avatar-large-image { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* Dashboard tiles legacy */
.services-panel, .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0; }
.service-link-card { text-decoration: none; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--duration), border-color var(--duration), box-shadow var(--duration);
  display: flex; flex-direction: column; gap: 8px;
}
.service-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.service-card h2 { font-size: 18px; }
.service-card p { font-size: 14px; color: var(--muted); }

.client-menu-card { padding: 20px; }
.client-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.client-menu-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; align-items: center; transition: border-color var(--duration); }
.client-menu-item:hover { border-color: var(--primary); }
.client-menu-icon { font-size: 22px; }
.client-menu-label { font-weight: 600; font-size: 14px; }

/* Pro tables / cards */
.pro-card, .ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; }

/* Form file upload legacy */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-field-wrap { display: flex; flex-direction: column; gap: 6px; }
.upload-field-label { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.uf-zone { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: border-color var(--duration), background var(--duration); }
.uf-zone:hover { border-color: var(--primary); background: var(--surface-2); }
.uf-zone--filled { border-style: solid; border-color: var(--primary); background: var(--accent-soft); }
.uf-icon { color: var(--muted); }
.uf-placeholder, .uf-filename { font-size: 13px; color: var(--muted); flex: 1; }
.uf-filename { color: var(--text); font-weight: 600; }
.uf-clear { background: none; border: 0; cursor: pointer; color: var(--muted); }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.terms-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.terms-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.terms-content { font-size: 13px; color: var(--muted); margin-top: 10px; }
.terms-content p { margin-bottom: 8px; }

/* Logout */
.logout-form { margin-top: 20px; }
.logout-btn { width: 100%; color: var(--urgent); border-color: var(--border-strong); background: var(--surface); }
.logout-btn:hover { background: var(--urgent-soft); border-color: var(--urgent); color: var(--urgent); }

/* RDV legacy */
.rdv-section-v2, .rdv-hero-grey, .rdv-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.rdv-back-btn { width: fit-content; }

/* Generic legacy heading hide for ELC */
.brand-main, .brand-accent { display: none; }

/* ═══════════════════════════════════════════════════════════════
   BOOKING FLOW (booking.html — date picker, time slots, contract)
   ═══════════════════════════════════════════════════════════════ */
.bk-pro-banner {
  background: var(--accent-soft);
  border: 1px solid #E8C885;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.bk-pro-label { font-size: 12px; font-weight: 700; color: #6E4F1A; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.bk-pro-name { font-weight: 700; font-size: 16px; color: var(--text); }

.bk-recap { padding: 24px; }
.bk-recap-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.bk-recap-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.bk-recap-title { font-size: 22px; font-family: 'Manrope', sans-serif; font-weight: 800; }

.fd-price-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.fd-price { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px; color: var(--primary); }
.fd-price-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fd-price-sep { color: var(--border-strong); }
.fd-duration { font-size: 13px; color: var(--muted); }

.bk-sat-info { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
.bk-state-aid-badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: #6E4F1A;
  font-size: 12px; font-weight: 700;
}

.bk-card { padding: 22px; }
.bk-mode-tabs { margin-bottom: 8px; }
.bk-discount-mensuel { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }

.bk-label { font-size: 13px; font-weight: 700; color: var(--text-soft); margin-top: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.bk-label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

.bk-weekday-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-weekday {
  flex: 1; min-width: 56px;
  padding: 10px 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  color: var(--text-soft); cursor: pointer;
  position: relative;
  transition: background var(--duration), color var(--duration), border-color var(--duration);
}
.bk-weekday:hover { border-color: var(--primary); }
.bk-weekday--on { background: var(--primary); color: var(--primary-on); border-color: var(--primary); }
.bk-weekday--sat .bk-sat-tag {
  display: block; font-size: 10px; color: var(--accent); font-weight: 700; margin-top: 2px;
}
.bk-weekday--on.bk-weekday--sat .bk-sat-tag { color: var(--accent); }

.bk-dur-tabs { margin-bottom: 12px; }
.bk-dur-tab { flex: 1; }

.bk-weeks-row { display: flex; align-items: center; gap: 12px; }
.bk-week-btn {
  width: 36px; height: 36px; padding: 0;
  font-size: 18px; font-weight: 700;
}
.bk-weeks-val {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px;
  min-width: 36px; text-align: center; color: var(--primary);
}
.bk-weeks-label { color: var(--muted); font-size: 14px; }

.bk-cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bk-cal-nav { width: 36px; height: 36px; padding: 0; font-size: 16px; font-weight: 700; }
.bk-cal-month { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; flex: 1; text-align: center; }
.bk-cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  font-size: 11px; color: var(--muted); text-align: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-grid button, .bk-cal-day {
  aspect-ratio: 1; padding: 0;
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: background var(--duration), border-color var(--duration), color var(--duration);
}
.bk-cal-grid button:hover:not(:disabled) { border-color: var(--primary); background: var(--surface-2); }
.bk-cal-grid button:disabled, .bk-cal-day--past { opacity: 0.3; cursor: not-allowed; }
.bk-cal-day--on { background: var(--primary) !important; color: var(--primary-on) !important; border-color: var(--primary) !important; }
.bk-cal-day--today { font-weight: 800; color: var(--primary); }
.bk-cal-day--sat { color: var(--accent); }
.bk-cal-day--empty { background: transparent; cursor: default; }
.bk-cal-day--empty:hover { background: transparent !important; border-color: transparent !important; }

.bk-hint { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

.bk-time-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px;
  margin-top: 8px;
}
.bk-time-btn {
  padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  color: var(--text-soft); cursor: pointer;
  transition: background var(--duration), color var(--duration), border-color var(--duration);
}
.bk-time-btn:hover:not(:disabled) { border-color: var(--primary); }
.bk-time-btn--on { background: var(--primary); color: var(--primary-on); border-color: var(--primary); }
.bk-time-btn--unavail, .bk-time-btn:disabled {
  opacity: 0.35; cursor: not-allowed; text-decoration: line-through;
}
.bk-time-notice { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.bk-lunch-info { font-size: 12px; color: var(--muted); margin-top: 10px; font-style: italic; }
.bk-surcharge-tag { font-size: 9px; padding: 1px 4px; background: var(--accent-soft); color: #6E4F1A; border-radius: 4px; font-weight: 700; }

.bk-slots { display: flex; flex-direction: column; gap: 8px; }
.bk-slot-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bk-slot-line:last-child { border-bottom: 0; }

.bk-cta {
  width: 100%; margin-top: 18px;
  padding: 14px 20px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius);
  background: var(--primary); color: var(--primary-on);
  cursor: pointer; border: 0;
  transition: background var(--duration), transform var(--duration);
}
.bk-cta:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.bk-cta:disabled { opacity: 0.5; cursor: not-allowed; }

.bk-contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bk-contract-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.bk-contract-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; display: block; margin-bottom: 4px; }
.bk-contract-val { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: var(--text); }

.bk-contract-price-box {
  background: linear-gradient(135deg, #1F4E3D 0%, #2A6650 100%);
  color: var(--primary-on);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 14px;
}
.bk-contract-price-row { display: flex; justify-content: space-between; padding: 4px 0; }
.bk-contract-price-row--sub { font-size: 12px; opacity: 0.85; }
.bk-contract-price-label { font-size: 13px; }
.bk-contract-price-val { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; }
.bk-contract-price-row:not(.bk-contract-price-row--sub) .bk-contract-price-val { font-size: 24px; color: var(--accent); }

.bk-contract-terms { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.bk-terms-list { padding-left: 20px; }
.bk-terms-list li { font-size: 13px; color: var(--text-soft); line-height: 1.5; margin-bottom: 6px; list-style: disc; }

/* Employee profile (employee_profile.html) */
.ep-hero {
  background: linear-gradient(135deg, #1F4E3D 0%, #2A6650 100%);
  color: var(--primary-on);
  padding: 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
  display: flex; gap: 20px; align-items: center;
}
.ep-hero-avatar, .ep-hero-avatar img {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 28px;
  object-fit: cover; flex-shrink: 0;
}
.ep-hero-name { color: var(--primary-on); font-size: 24px; margin-bottom: 4px; }
.ep-hero-meta { color: rgba(251,248,243,.85); font-size: 13px; }

/* Cuisinier flow (cuisinier_chefs / cuisinier_booking) */
.cuis-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; gap: 16px; transition: border-color var(--duration);
}
.cuis-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.cuis-avatar, .cuis-avatar img {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--primary-on);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px;
  object-fit: cover;
}
.cuis-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.cuis-bio { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Admin pages */
.admin-account-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.admin-brand-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: #6E4F1A;
  font-size: 12px; font-weight: 700;
}
.admin-brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.admin-chart-card, .admin-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px;
}

/* Chat & Messages */
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; gap: 12px; align-items: center;
  transition: border-color var(--duration);
}
.msg-card:hover { border-color: var(--primary); }
.msg-avatar, .msg-avatar img {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--primary-on);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; object-fit: cover;
}
.chat-bubble {
  max-width: 70%;
  padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.4;
  word-wrap: break-word;
}
.chat-bubble--me { background: var(--primary); color: var(--primary-on); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble--other { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }

/* Pro pages (wallet, conges, tarifs, etc.) */
.pro-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pro-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.pro-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 6px; }
.pro-stat-value { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 24px; color: var(--primary); }

.conge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--accent-soft); color: #6E4F1A;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  margin: 4px;
}
.conge-pill-remove {
  background: none; border: 0; color: #6E4F1A;
  font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; margin-left: 4px;
  text-decoration: underline;
}
.conge-pill-remove:hover { color: var(--urgent); }

/* ═══ UTILITIES ═══ */
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mt-8 { margin-top: 8px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-24 { margin-bottom: 24px; }
.u-muted { color: var(--muted); }
.u-bold { font-weight: 700; }
.u-display { font-family: 'Manrope', sans-serif; }
