/**
 * easybook.css — Styles Carelya V2
 * Variables dérivées de la référence visuelle officielle (doc 07_PLAN_ARCHITECTURE_PHP)
 * Bootstrap 5.3 doit être chargé AVANT ce fichier.
 */

/* ============================================================
   Variables Carelya — surcharge Bootstrap
   ============================================================ */
:root {
  /* Couleurs Carelya */
  --eb-bg:              #f7f4ef;
  --eb-card:            #ffffff;
  --eb-text:            #2f2f35;
  --eb-muted:           #8a8680;
  --eb-line:            #e8e1d8;

  --eb-accent:          #d8f06f;
  --eb-accent-soft:     #f2f8d5;
  --eb-accent-dark:     #718717;

  --eb-brown:           #6b5745;
  --eb-appointment:     #f0e2c8;
  --eb-warning-bg:      #fff8e8;
  --eb-warning-border:  #f0d9a4;

  --eb-radius:          18px;
  --eb-radius-sm:       12px;
  --eb-radius-pill:     999px;
  --eb-shadow:          0 10px 30px rgba(80, 60, 30, 0.07);

  /* Surcharge Bootstrap */
  --bs-primary:         #718717;
  --bs-primary-rgb:     113, 135, 23;
  --bs-border-radius:   12px;
  --bs-border-radius-lg: 18px;
  --bs-body-bg:         #f7f4ef;
  --bs-body-color:      #2f2f35;
  --bs-font-sans-serif: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
body {
  background: var(--eb-bg);
  color: var(--eb-text);
  font-family: var(--bs-font-sans-serif);
}

/* ============================================================
   Layout admin (sidebar + main)
   ============================================================ */
.eb-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.eb-sidebar {
  background: var(--eb-card);
  border-right: 1px solid var(--eb-line);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.eb-sidebar-brand {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--eb-line);
}

.eb-brand-icon {
  font-size: 1.5rem;
}

.eb-brand-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--eb-brown);
  margin-left: 0.4rem;
}
.eb-brand-text .logo-lya { color: var(--eb-accent-dark); }

.eb-brand-env {
  font-size: 0.7rem;
  color: var(--eb-accent-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.eb-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.eb-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--eb-radius-sm);
  color: var(--eb-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  margin-bottom: 2px;
}

.eb-nav-link:hover {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
}

.eb-nav-link.active {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
  font-weight: 600;
}

.eb-nav-link.eb-nav-logout {
  color: var(--eb-muted);
}

.eb-nav-link.eb-nav-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.eb-nav-section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eb-muted);
  padding: 0.75rem 0.75rem 0.25rem;
  margin-top: 0.25rem;
}

.eb-nav-divider {
  border-color: var(--eb-line);
  margin: 0.5rem 0;
}

.eb-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--eb-line);
  font-size: 0.8rem;
  color: var(--eb-muted);
}

/* ============================================================
   Main content
   ============================================================ */
.eb-main {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.eb-topbar {
  background: var(--eb-card);
  border-bottom: 1px solid var(--eb-line);
  padding: 1rem 2rem;
  flex-wrap: nowrap;
}
.eb-topbar .btn,
.eb-topbar .eb-hamburger,
.eb-topbar .eb-topbar-info {
  flex-shrink: 0;
}

.eb-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--eb-brown);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eb-content {
  padding: 2rem;
  flex: 1;
}

/* ============================================================
   Cards
   ============================================================ */
.eb-card {
  background: var(--eb-card);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.eb-stat-card {
  background: var(--eb-card);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.eb-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eb-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.eb-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--eb-brown);
  line-height: 1;
}

.eb-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--eb-brown);
  margin-bottom: 1rem;
}

/* ============================================================
   Boutons
   ============================================================ */
.btn-eb-primary,
.eb-btn-primary {
  background: var(--eb-accent);
  color: var(--eb-accent-dark);
  border: none;
  font-weight: 600;
  border-radius: var(--eb-radius-sm);
  padding: 0.5rem 1.25rem;
}

.btn-eb-primary:hover,
.eb-btn-primary:hover {
  background: #c8e05f;
  color: var(--eb-accent-dark);
}

/* ============================================================
   Badges
   ============================================================ */
.eb-badge {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
  border-radius: var(--eb-radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2em 0.65em;
}

/* ============================================================
   Alertes
   ============================================================ */
.eb-alert-info {
  background: var(--eb-warning-bg);
  border: 1px solid var(--eb-warning-border);
  border-radius: var(--eb-radius-sm);
  color: var(--eb-text);
}

/* ============================================================
   Page de login
   ============================================================ */
.eb-login-body {
  background: var(--eb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.eb-login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.eb-login-card {
  background: var(--eb-card);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  padding: 2.5rem;
}

.eb-login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.eb-login-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.eb-login-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--eb-brown);
  margin: 0;
}
.eb-login-title .logo-lya { color: var(--eb-accent-dark); }

.eb-login-subtitle {
  color: var(--eb-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.eb-login-card .form-control {
  border-color: var(--eb-line);
  background: var(--eb-bg);
}

.eb-login-card .form-control:focus {
  border-color: var(--eb-accent-dark);
  box-shadow: 0 0 0 3px rgba(113, 135, 23, 0.15);
}

/* ============================================================
   Hamburger button — mobile uniquement
   ============================================================ */
.eb-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--eb-radius-sm);
  color: var(--eb-brown);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.eb-hamburger:hover,
.eb-hamburger:focus {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
  outline: none;
}

/* ============================================================
   Overlay mobile
   ============================================================ */
.eb-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1039;
  cursor: pointer;
}

/* ============================================================
   Responsive — menu mobile sous 1180px
   ============================================================ */
@media (max-width: 1180px) {
  .eb-hamburger {
    display: flex;
  }

  .eb-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar hors-écran par défaut, panneau fixe à gauche */
  .eb-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    z-index: 1040;
    transform: translateX(-260px);
    transition: transform 0.25s ease;
    /* Conserver la hauteur auto et l'overflow */
    overflow-y: auto;
  }

  .eb-sidebar.eb-sidebar-open {
    transform: translateX(0);
  }

  .eb-mobile-overlay.eb-overlay-open {
    display: block;
  }
}

@media (max-width: 680px) {
  .eb-content {
    padding: 1rem;
  }
  .eb-topbar {
    padding: 0.75rem 1rem;
    gap: 0.5rem !important;
  }
  .eb-page-title {
    font-size: 1.1rem;
  }
  .eb-card {
    padding: 1rem;
  }
  /* Grille créneaux disponibilités */
  .eb-card .d-flex.flex-wrap.gap-2 {
    gap: 0.4rem !important;
  }
}

/* Onglets scrollables sur mobile */
@media (max-width: 767.98px) {
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs .nav-link {
    white-space: nowrap;
  }
}

/* ============================================================
   Focus visible — accessibilité
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--eb-accent-dark);
  outline-offset: 2px;
}


/* ============================================================
   BOOKING — Tunnel de réservation public
   ============================================================ */

.eb-booking-body {
  background:
    radial-gradient(circle at top left, var(--eb-accent-soft), transparent 34%),
    var(--eb-bg);
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--eb-text);
}

/* ── Header salon ── */
.eb-booking-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--eb-line);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.eb-booking-header .container {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.eb-bk-icon {
  width: 36px;
  height: 36px;
  background: var(--eb-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eb-accent-dark);
  font-size: .95rem;
  flex-shrink: 0;
}
.eb-bk-brand {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--eb-brown);
  letter-spacing: -.01em;
}

/* ── Zone principale ── */
.eb-booking-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

/* ── Titre de page (pages internes) ── */
.eb-bk-page-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--eb-brown);
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}

/* ── Hero (index.php uniquement) ── */
.eb-bk-hero {
  background: linear-gradient(135deg, #ffffff, var(--eb-accent-soft));
  border: 1px solid var(--eb-line);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(61,51,41,0.08);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.eb-bk-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -80px;
  top: -100px;
  background: var(--eb-accent);
  opacity: 0.28;
  pointer-events: none;
}
.eb-bk-hero-inner {
  position: relative;
  z-index: 1;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.eb-bk-hero-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.eb-bk-hero-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--eb-accent);
  color: var(--eb-accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  overflow: hidden;
}
.eb-bk-hero-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eb-bk-hero-brand h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px);
  color: var(--eb-brown);
  letter-spacing: -0.04em;
  font-weight: 900;
}
.eb-bk-hero-brand p {
  margin: 6px 0 0;
  font-size: .95rem;
  color: var(--eb-muted);
  line-height: 1.5;
}
.eb-bk-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
}
.eb-bk-hero-badge {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--eb-line);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--eb-brown);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  font-size: .84rem;
}
.eb-bk-hero-badge i { color: var(--eb-accent-dark); width: 14px; text-align: center; }

/* ── Barre de progression ── */
.eb-booking-steps {
  background: #ffffff;
  border: 1px solid var(--eb-line);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(61,51,41,0.06);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.eb-step {
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--eb-muted, #8a8680);
  font-weight: 800;
  font-size: .82rem;
  transition: background .2s;
}
.eb-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1eee8;
  color: var(--eb-muted, #8a8680);
  font-size: .78rem;
  flex-shrink: 0;
  font-weight: 900;
}
.eb-step.done {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
}
.eb-step.done .eb-step-number {
  background: rgba(255,255,255,0.6);
  color: var(--eb-accent-dark);
}
.eb-step.active {
  background: var(--eb-accent);
  color: var(--eb-accent-dark);
  font-weight: 900;
}
.eb-step.active .eb-step-number {
  background: rgba(255,255,255,0.72);
  color: var(--eb-accent-dark);
}

/* ── Eyebrow pill ── */
.eb-bk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* ── Section head ── */
.eb-bk-section-head {
  margin-bottom: 22px;
}
.eb-bk-section-head h2 {
  margin: 0 0 6px;
  color: var(--eb-brown);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.03em;
  font-weight: 900;
}
.eb-bk-section-head p {
  margin: 0;
  color: var(--eb-muted);
  font-size: .92rem;
  line-height: 1.5;
}

/* ── Cards ── */
.eb-bk-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--eb-line);
  box-shadow: 0 10px 30px rgba(80,60,30,.06);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.eb-bk-card-title {
  font-size: .82rem;
  font-weight: 900;
  color: var(--eb-muted, #8a8680);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--eb-line);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Cartes de catégories (mode catégories) ── */
.eb-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: .5rem;
}
.eb-cat-card {
  background: #ffffff;
  border: 1px solid var(--eb-line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(61,51,41,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}
.eb-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--eb-accent);
  box-shadow: 0 20px 44px rgba(61,51,41,0.11);
  color: inherit;
}
.eb-cat-card:active { transform: translateY(0); }
.eb-cat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.eb-cat-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.eb-cat-card-count {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: .73rem;
  font-weight: 900;
  white-space: nowrap;
}
.eb-cat-card h3 {
  margin: 14px 0 5px;
  color: var(--eb-brown);
  font-size: 1.1rem;
  letter-spacing: -.02em;
  font-weight: 900;
}
.eb-cat-card p {
  margin: 0;
  color: var(--eb-muted);
  font-size: .82rem;
  line-height: 1.45;
}
.eb-cat-card-action {
  margin-top: 14px;
  color: var(--eb-accent-dark);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
}
.eb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 1.5px solid var(--eb-line);
  border-radius: 10px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--eb-brown);
  cursor: pointer;
  margin-bottom: 1.1rem;
  transition: border-color .15s, background .15s;
}
.eb-back-btn:hover { border-color: var(--eb-brown); background: var(--eb-bg); }

/* ── Cartes de prestations ── */
.eb-service-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--eb-line);
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
  margin-bottom: .65rem;
  color: inherit;
  text-decoration: none !important;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  cursor: pointer;
}
.eb-service-card:hover {
  border-color: var(--eb-accent-dark);
  box-shadow: 0 6px 20px rgba(61,51,41,0.11);
  transform: translateY(-2px);
  color: inherit;
}
.eb-service-card:active { transform: translateY(0); }
.eb-service-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: .45rem;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.eb-service-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--eb-text, #2f2f35);
}
.eb-service-meta {
  font-size: .82rem;
  color: var(--eb-muted, #8a8680);
  margin-top: .3rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}
.eb-service-price {
  font-weight: 900;
  color: var(--eb-brown);
}
.eb-service-desc {
  font-size: .8rem;
  color: var(--eb-muted, #a09890);
  margin-top: .3rem;
  font-style: italic;
}
.eb-section-label {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--eb-muted, #8a8680);
  margin: 1.5rem 0 .65rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.eb-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--eb-line);
}

/* ── Récap bar ── */
.eb-recap-bar {
  background: var(--eb-accent-soft);
  border: 1px solid var(--eb-accent);
  border-radius: 16px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.eb-recap-icon {
  width: 38px;
  height: 38px;
  background: var(--eb-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eb-accent-dark);
  font-size: .9rem;
  flex-shrink: 0;
}
.eb-recap-name { font-weight: 900; color: var(--eb-brown); font-size: .95rem; }
.eb-recap-meta { font-size: .82rem; color: var(--eb-muted); }

/* ── Grille de créneaux ── */
.eb-slots-section { margin-top: 1.5rem; }
.eb-slots-label {
  font-size: .82rem;
  font-weight: 900;
  color: var(--eb-muted, #8a8680);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .75rem;
}
.eb-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: .5rem;
}
.eb-slot-btn {
  background: #ffffff;
  border: 1.5px solid var(--eb-line);
  border-radius: 10px;
  padding: .55rem .3rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--eb-brown);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.eb-slot-btn:hover {
  border-color: var(--eb-accent-dark);
  background: var(--eb-accent-soft);
}
.eb-slot-btn.selected {
  background: var(--eb-accent);
  border-color: var(--eb-accent-dark);
  color: var(--eb-accent-dark);
  font-weight: 900;
}
.eb-slot-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #f5f3ef;
}
.eb-slot-empty {
  text-align: center;
  color: var(--eb-muted, #8a8680);
  font-size: .88rem;
  padding: 1rem 0;
}

/* ── Bouton continuer ── */
.eb-btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .95rem 1.5rem;
  background: var(--eb-accent);
  color: var(--eb-accent-dark);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, transform .15s;
  margin-top: 1rem;
  letter-spacing: -.01em;
}
.eb-btn-continue:hover { background: var(--eb-accent-soft); filter: brightness(.96); transform: translateY(-1px); color: var(--eb-accent-dark); }
.eb-btn-continue:active { transform: translateY(0); }

/* ── Help card ── */
.eb-bk-help-card {
  margin-top: 20px;
  background: var(--eb-appointment);
  border: 1px solid var(--eb-line);
  border-radius: 20px;
  padding: 18px 22px;
  color: var(--eb-brown);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eb-bk-help-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
  display: grid;
  place-items: center;
  color: var(--eb-accent-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.eb-bk-help-card strong { display: block; margin-bottom: 3px; font-size: .9rem; }
.eb-bk-help-card span { color: var(--eb-muted); font-size: .83rem; }

/* ── Formulaire ── */
.eb-form-group { margin-bottom: 1rem; }
.eb-form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--eb-brown);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.eb-form-label .req { color: #e94a4a; font-weight: 900; }
.eb-form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--eb-line);
  border-radius: 10px;
  font-size: .95rem;
  background: #ffffff;
  color: var(--eb-text, #2f2f35);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  font-family: inherit;
}
.eb-form-control:focus {
  border-color: var(--eb-accent-dark);
  box-shadow: 0 0 0 3px var(--eb-accent-soft);
}
.eb-form-control--error { border-color: #e94a4a; }

/* ── OTP ── */
.eb-otp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 .5rem;
}
.eb-otp-input {
  font-size: 2.2rem;
  letter-spacing: .5em;
  text-align: center;
  width: min(270px, 90%);
  font-weight: 900;
  border: 2px solid var(--eb-line);
  border-radius: 14px;
  padding: .65rem .5rem .65rem 1.2rem;
  background: #faf8f5;
  color: var(--eb-text, #2f2f35);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.eb-otp-input:focus {
  border-color: var(--eb-accent-dark);
  background: #fff;
  box-shadow: 0 0 0 4px var(--eb-accent-soft);
}
.eb-otp-hint {
  font-size: .8rem;
  color: var(--eb-muted, #8a8680);
  margin-top: .75rem;
  text-align: center;
}

/* ── Calendrier ── */
.eb-cal-wrap {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--eb-line);
  box-shadow: 0 10px 30px rgba(80,60,30,.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.eb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.eb-cal-nav {
  background: #f7f4ef;
  border: 1px solid var(--eb-line);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--eb-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.eb-cal-nav:hover:not(:disabled) { background: var(--eb-accent-soft); }
.eb-cal-nav:disabled { opacity: .35; cursor: default; }
.eb-cal-title {
  font-weight: 900;
  font-size: 1rem;
  color: var(--eb-brown);
  letter-spacing: -.01em;
}
.eb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.eb-cal-dow {
  text-align: center;
  font-size: .68rem;
  font-weight: 900;
  color: var(--eb-muted, #8a8680);
  padding: .3rem 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.eb-cal-day {
  aspect-ratio: 1;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: var(--eb-text, #2f2f35);
  display: grid;
  place-items: center;
}
.eb-cal-empty { background: transparent; cursor: default; }
.eb-cal-available:hover {
  background: var(--eb-accent-soft);
  color: var(--eb-accent-dark);
}
.eb-cal-selected {
  background: var(--eb-accent) !important;
  color: var(--eb-accent-dark) !important;
  font-weight: 900;
}
.eb-cal-today:not(.eb-cal-past) {
  border: 2px solid var(--eb-accent-dark);
  color: var(--eb-accent-dark);
}
.eb-cal-unavailable,
.eb-cal-past,
.eb-cal-loading {
  color: var(--eb-muted, #ccc);
  cursor: not-allowed;
  background: transparent;
  opacity: .45;
}
.eb-cal-legend {
  display: flex;
  gap: 1rem;
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--eb-muted, #8a8680);
}
.eb-cal-leg-ok::before { content: "●"; color: var(--eb-accent-dark); margin-right: .3rem; }
.eb-cal-leg-no::before { content: "●"; color: #e0d8d0; margin-right: .3rem; }

/* ── Spinner ── */
.eb-loading {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--eb-muted, #8a8680);
  font-size: .85rem;
  padding: .5rem 0;
}
.eb-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--eb-line);
  border-top-color: var(--eb-accent-dark);
  border-radius: 50%;
  animation: eb-spin .7s linear infinite;
}
@keyframes eb-spin { to { transform: rotate(360deg); } }

/* ── Page confirmation ── */
.eb-confirm-block {
  text-align: center;
  padding: 1.25rem 1rem;
}
.eb-confirm-icon {
  width: 72px;
  height: 72px;
  background: var(--eb-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: var(--eb-accent-dark);
}
.eb-confirm-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--eb-brown);
  margin-bottom: .5rem;
  letter-spacing: -.03em;
}
.eb-confirm-sub {
  color: var(--eb-muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.eb-confirm-details {
  background: var(--eb-accent-soft);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.eb-confirm-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--eb-line);
  font-size: .9rem;
  color: var(--eb-brown);
}
.eb-confirm-row:last-child { border-bottom: none; }
.eb-confirm-row i {
  color: var(--eb-accent-dark);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Annulation ── */
.eb-cancel-block { text-align: center; padding: .5rem 0 1rem; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .eb-booking-main { padding: 1.25rem .85rem 2.5rem; }
  .eb-bk-card { padding: 1.1rem; }
  .eb-slots-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
  .eb-service-card { padding: .9rem 1rem; }
  .eb-bk-section-head h2 { font-size: 1.35rem; }
  .eb-bk-hero-inner { grid-template-columns: 1fr; padding: 22px; }
  .eb-bk-hero-badges { min-width: 0; }
  .eb-booking-steps { grid-template-columns: 1fr; }
  .eb-step { padding: 11px 12px; }
  .eb-cat-grid { grid-template-columns: 1fr; }
  .eb-cat-card { min-height: 150px; padding: 20px; }
  .eb-bk-help-card { align-items: flex-start; }
}


/* ============================================================
   Dashboard admin — eb-dash-*
   ============================================================ */
.eb-dash-subtitle { font-size:.95rem; margin-bottom:1.5rem; color:var(--eb-muted); }

/* Hero */
.eb-dash-hero {
  display:grid; grid-template-columns:1.35fr .8fr; gap:18px; margin-bottom:18px;
}
.eb-dash-today-card {
  background:linear-gradient(135deg,#ffffff 0%,#f8fbeb 100%);
  border-color:#deecaa;
}
.eb-dash-section-label {
  color:var(--eb-muted); text-transform:uppercase; letter-spacing:.08em;
  font-size:.72rem; font-weight:900; margin-bottom:.75rem;
}
.eb-dash-today-summary {
  display:grid; grid-template-columns:140px 1fr; gap:24px; align-items:center;
}
.eb-dash-big-number {
  font-size:68px; font-weight:950; color:#c4db45; line-height:.9;
}
.eb-dash-today-count p { margin:8px 0 0; }
.eb-dash-next-box { border-left:1px solid var(--eb-line); padding-left:22px; }
.eb-dash-next-pill {
  display:inline-flex; background:var(--eb-accent-soft); color:var(--eb-accent-dark);
  padding:6px 12px; border-radius:999px; font-weight:900; font-size:.82rem;
  margin-bottom:10px;
}
.eb-dash-next-name { font-size:1.7rem; font-weight:900; margin-bottom:4px; color:var(--eb-text); }
.eb-dash-next-detail { color:var(--eb-muted); font-size:.88rem; line-height:1.5; }
.eb-dash-watch-list { display:grid; gap:10px; }
.eb-dash-watch-item {
  display:flex; gap:10px; padding:12px; border-radius:12px;
  border:1px solid var(--eb-warning-border); background:var(--eb-warning-bg);
}
.eb-dash-watch-item strong { display:block; margin-bottom:2px; font-size:.88rem; }
.eb-dash-watch-item p { margin:0; color:var(--eb-muted); font-size:.8rem; line-height:1.4; }

/* Stats */
.eb-dash-stats {
  display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:18px;
}

/* Lower layout */
.eb-dash-lower {
  display:grid; grid-template-columns:minmax(480px,.95fr) minmax(280px,.6fr);
  gap:18px; align-items:start;
}
.eb-dash-right-col { display:grid; gap:18px; }

/* Calendar card */
.eb-dash-cal-card { padding:0; overflow:hidden; }
.eb-dash-cal-head { padding:18px; border-bottom:1px solid var(--eb-line); }
.eb-dash-cal-title-row {
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
}
.eb-dash-view-switch {
  display:flex; gap:5px; background:#f5f1eb; border:1px solid var(--eb-line);
  padding:4px; border-radius:999px; flex-shrink:0;
}
.eb-dash-view-switch button {
  border:0; background:transparent; color:#68636a; font-weight:800;
  padding:7px 12px; border-radius:999px; cursor:pointer; font-size:.8rem;
}
.eb-dash-view-switch button.active { background:var(--eb-accent); color:#445210; }
.eb-dash-cal-nav-bar {
  display:flex; justify-content:space-between; align-items:center;
  background:var(--eb-accent); padding:11px 16px;
}
.eb-dash-cal-nav {
  border:none; width:34px; height:34px; border-radius:999px;
  background:rgba(255,255,255,.28); color:#445210; font-size:1.4rem;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  text-decoration:none; font-weight:300; transition:background .15s;
  line-height:1;
}
.eb-dash-cal-nav:hover { background:rgba(255,255,255,.55); }
.eb-dash-cal-nav.invisible { visibility:hidden; }
.eb-dash-cal-current { font-weight:900; font-size:.95rem; color:#445210; }
.eb-dash-cal-panel { display:none; }
.eb-dash-cal-panel.active { display:block; }

/* Month grid */
.eb-dash-month-grid {
  display:grid; grid-template-columns:repeat(7,1fr); background:white;
}
.eb-dash-day-name {
  padding:8px 4px; text-align:center; font-size:.68rem; font-weight:900;
  color:var(--eb-muted); border-bottom:1px solid var(--eb-line); background:#fbfaf7;
}
.eb-dash-month-cell {
  min-height:74px; border-right:1px solid var(--eb-line); border-bottom:1px solid var(--eb-line);
  padding:6px; background:white;
}
.eb-dash-month-cell:nth-child(7n) { border-right:none; }
.eb-dash-empty { background:transparent; }
.eb-dash-today-cell { background:#fcfff0; }
.eb-dash-date-number { color:#9d968f; font-weight:800; font-size:.75rem; margin-bottom:3px; }
.eb-dash-today-cell .eb-dash-date-number { color:var(--eb-accent-dark); }
.eb-dash-appt-pill {
  background:var(--eb-appointment); color:#6b4c2a; border-radius:5px;
  padding:3px 5px; font-size:.68rem; margin-bottom:3px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.eb-dash-dot-row { display:flex; gap:3px; margin-top:4px; }
.eb-dash-dot { width:5px; height:5px; background:var(--eb-appointment); border-radius:50%; }

/* Week view */
.eb-dash-week-list { padding:16px; display:grid; gap:10px; background:white; }
.eb-dash-week-day {
  border:1px solid var(--eb-line); border-radius:12px; padding:12px; background:white;
}
.eb-dash-week-day strong { display:block; color:var(--eb-brown); margin-bottom:6px; font-size:.88rem; }

/* Day view */
.eb-dash-day-list { padding:14px; display:grid; gap:0; background:white; }
.eb-dash-day-item {
  display:grid; grid-template-columns:64px 1fr auto; gap:12px; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--eb-line);
}
.eb-dash-day-item:last-child { border-bottom:none; }
.eb-dash-day-time { font-weight:950; color:var(--eb-accent-dark); font-size:.95rem; }
.eb-dash-day-client { font-weight:900; margin-bottom:2px; }
.eb-dash-day-service { color:var(--eb-muted); font-size:.82rem; }
.eb-dash-day-price { font-weight:950; color:var(--eb-brown); white-space:nowrap; }

/* Right column — appointments list */
.eb-dash-appt-row {
  display:grid; grid-template-columns:62px 1fr auto; gap:12px; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--eb-line);
}
.eb-dash-appt-row:last-child { border-bottom:none; }
.eb-dash-appt-time { font-weight:950; color:var(--eb-brown); font-size:.9rem; line-height:1.3; text-align:center; }
.eb-dash-appt-client { font-weight:900; font-size:.88rem; margin-bottom:2px; }
.eb-dash-appt-service { color:var(--eb-muted); font-size:.78rem; }
.eb-dash-appt-price { font-weight:950; color:var(--eb-brown); font-size:.88rem; white-space:nowrap; }

/* Activity chart */
.eb-dash-chart {
  display:flex; align-items:flex-end; gap:10px; height:150px;
  padding-top:16px; margin-top:.5rem;
}
.eb-dash-bar-wrap {
  flex:1; display:flex; flex-direction:column; justify-content:flex-end;
  height:100%; gap:6px; text-align:center; color:var(--eb-muted); font-size:.7rem;
}
.eb-dash-bar { border-radius:10px 10px 4px 4px; background:var(--eb-accent); min-height:4px; }

/* Responsive */
@media (max-width:1180px) {
  .eb-dash-hero, .eb-dash-lower { grid-template-columns:1fr; }
  .eb-dash-stats { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px) {
  .eb-dash-today-summary { grid-template-columns:1fr; }
  .eb-dash-next-box { border-left:none; border-top:1px solid var(--eb-line); padding-left:0; padding-top:14px; }
  .eb-dash-stats { grid-template-columns:1fr 1fr; }
  .eb-dash-day-item { grid-template-columns:1fr; }
  .eb-dash-appt-row { grid-template-columns:1fr; }
}

/* ── Modal rendez-vous admin ── */
[data-appt-id] { cursor: pointer; }
[data-appt-id]:hover { opacity: .85; }
.eb-dash-day-item[data-appt-id]:hover,
.eb-dash-appt-row[data-appt-id]:hover {
  background: var(--eb-accent-soft);
  border-radius: 8px;
}

/* ── Boutons action universels — edit/delete icônes (unifié sur tout le site) ─── */
.eb-act-edit{background:none;border:1px solid #e8e1d8;border-radius:7px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#8a8680;font-size:.8rem;padding:0;vertical-align:middle;transition:all .15s;text-decoration:none}
.eb-act-edit:hover{border-color:#6b5745;color:#6b5745;background:#faf7f3}
.eb-act-del{background:none;border:1px solid #f5c6cb;border-radius:7px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#dc3545;font-size:.8rem;padding:0;vertical-align:middle;transition:background .15s;text-decoration:none}
.eb-act-del:hover{background:#fde8e8;border-color:#dc3545}

/* ── Bouton violet topbar (Nouveau RDV) ────────────────────────────────────── */
.eb-btn-violet {
    background: #c4b5fd;
    color: #3b0764;
    border: none;
    font-weight: 600;
    border-radius: var(--eb-radius-sm);
    padding: 0.5rem 1.25rem;
}
.eb-btn-violet:hover, .eb-btn-violet:focus {
    background: #a78bfa;
    color: #3b0764;
}

.eb-btn-carelya-green {
    background: #d8f06f;
    color: #718717;
    border: none;
    font-weight: 600;
    border-radius: var(--eb-radius-sm);
    padding: 0.5rem 1.25rem;
}
.eb-btn-carelya-green:hover, .eb-btn-carelya-green:focus {
    background: #c8e05f;
    color: #718717;
}

/* ── Switches et checkboxes — couleur Carelya globale ─────────────────────── */
.form-check-input:checked {
    background-color: #b8cc44;
    border-color: #b8cc44;
}
.form-check-input:focus {
    border-color: #b8cc44;
    box-shadow: 0 0 0 .25rem rgba(184,204,68,.25);
}
.form-check-input:checked:focus {
    box-shadow: 0 0 0 .25rem rgba(184,204,68,.25);
}

/* ── Bannières aide : collapsed sur mobile ──────────────────────────────────── */
@media (max-width: 767.98px) {
    .eb-help-banner {
        display: none !important;
    }
    .eb-help-banner.is-open {
        display: flex !important;
    }
    .eb-help-trigger-btn {
        display: inline-block !important;
    }
}

/* ── Bannière annonce plateforme ─────────────────────── */
.eb-announcement-bar {
    background: linear-gradient(90deg, var(--eb-accent-soft, #f2f8d5), #fff);
    border-bottom: 2px solid var(--eb-accent, #d8f06f);
    padding: 10px 20px;
    font-size: .88rem;
}
.eb-announcement-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}
.eb-announcement-bar > .eb-announcement-inner > .fa-bullhorn {
    color: var(--eb-accent-dark, #718717);
    margin-top: 3px;
    flex-shrink: 0;
}
.eb-announcement-content { flex: 1; min-width: 0; }
.eb-announcement-title {
    font-weight: 700;
    color: var(--eb-brown, #6b5745);
    display: block;
    margin-bottom: 2px;
}
.eb-announcement-body { color: var(--eb-muted, #77716a); }
.eb-announcement-close {
    background: none;
    border: none;
    color: var(--eb-muted, #77716a);
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1;
}
.eb-announcement-close:hover { background: rgba(0,0,0,.08); }

.eb-lang-switcher {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.eb-lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--eb-radius-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--eb-brown);
  border: 1.5px solid rgba(107,87,69,.35);
  background: transparent;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  opacity: .65;
}
.eb-lang-btn:hover {
  opacity: 1;
  border-color: var(--eb-brown);
  color: var(--eb-brown);
  text-decoration: none;
}
.eb-lang-btn.eb-lang-active {
  background: var(--eb-accent);
  border-color: var(--eb-accent-dark);
  color: var(--eb-accent-dark);
  opacity: 1;
}
