@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,400..900;1,400..900&display=swap');

/* ==========================================================================
   CALENDLY CLONE - DESIGN SYSTEM & UI (VANILLA CSS)
   Optimisé pour hébergement mutualisé, sans build step.
   ========================================================================== */

:root {
  /* Nuances Principales */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);

  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Surfaces & Fonds */
  --bg-main: #f6f6f6;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;

  /* Textes */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-white: #ffffff;

  /* Bordures */
  --border: #e2e8f0;
  --border-focus: #4f46e5;
  --border-hover: #cbd5e1;

  /* Ombres : Totalement supprimées (Zéro ombre portée) */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typographie (Urbanist comme police principale) */
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Urbanist', sans-serif;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  box-shadow: none !important;
}

/* RÈGLE STRICTE PROJET : BORDER-RADIUS DES INPUTS 8PX */
input, select, textarea, .custom-select-trigger {
  border-radius: 8px !important;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, .heading-34 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

h2, .title-28 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

button, input, select, textarea {
  font-family: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   NAVIGATION & EN-TÊTE
   ========================================================================== */
.app-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Onglets pilules de navigation supérieure (Top Navigation Bar) */
.tab-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px !important;
  box-sizing: border-box !important;
  padding: 0 1.5rem !important; /* px-6 */
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  cursor: pointer;
  background-color: #ffffff;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

.tab-pill-btn:hover {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
}

.tab-pill-btn.active,
.tab-pill-btn.bg-gray-900 {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.tab-pill-btn.active:hover,
.tab-pill-btn.bg-gray-900:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1e1b4b 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.68rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   BOUTONS & ÉLÉMENTS D'ACTION
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.btn-outline-primary {
  background: white;
  color: var(--primary);
  border-color: #c7d2fe;
}

.btn-outline-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-danger:hover {
  background: #fecaca;
  color: #991b1b;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   TABLEAU DE BORD (ADMIN)
   ========================================================================== */
.admin-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.admin-title {
  font-size: 1.85rem;
  font-weight: 800;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Onglets */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.admin-tab:hover {
  color: var(--text-main);
}

.admin-tab.active {
  color: var(--primary);
}

.admin-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* Métriques & Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   GRILLE DES TYPES D'ÉVÉNEMENTS
   ========================================================================== */
.section-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.event-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.event-card.inactive {
  opacity: 0.65;
  background: #fbfcfd;
}

.event-card-color-stripe {
  height: 6px;
  width: 100%;
}

.event-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.event-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.event-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Switch Toggle */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .25s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--text-main);
}

input:checked + .switch-slider:before {
  transform: translateX(16px);
}

/* Variante ambre pour les réglages liés au mode privé / VIP */
.switch-slider-amber {
  background-color: #fde68a;
}

input:checked + .switch-slider-amber {
  background-color: #d97706;
}

/* ==========================================================================
   RÉSERVATIONS / TABLEAU DE SUIVI
   ========================================================================== */
.bookings-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  gap: 2px;
}

.filter-pill {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill.active {
  background: white;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.bookings-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bookings-table th {
  background: var(--bg-subtle);
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.bookings-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.bookings-table tr:last-child td {
  border-bottom: none;
}

.bookings-table tr:hover td {
  background-color: #fafbfc;
}

.invitee-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.invitee-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ÉDITEUR D'HORAIRES HEBDOMADAIRES
   ========================================================================== */
.schedule-editor-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
}

.schedule-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.schedule-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 1rem;
}

.schedule-day-row:last-child {
  border-bottom: none;
}

.schedule-day-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 160px;
}

.schedule-day-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-time-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.time-input {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: white;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.time-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==========================================================================
   PAGE PUBLIQUE DE RÉSERVATION (TUNNEL CALENDLY CLIENT)
   ========================================================================== */
.public-booking-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.booking-modal-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 1060px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 560px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-sidebar {
  background: #ffffff;
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.host-mini-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.host-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: var(--shadow-md);
}

.host-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.meeting-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.meeting-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meeting-detail-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
}

.meeting-desc-box {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.booking-main-content {
  padding: 2.25rem 2.25rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.schedule-picker-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  height: 100%;
}

/* Calendrier */
.calendar-widget {
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calendar-month-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: capitalize;
}

.calendar-nav-buttons {
  display: flex;
  gap: 0.35rem;
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar-weekday {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  color: var(--text-main);
}

.calendar-day-cell.empty {
  cursor: default;
}

.calendar-day-cell.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.calendar-day-cell.available {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.calendar-day-cell.available:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.06);
}

.calendar-day-cell.selected {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

/* Liste des Créneaux Horaires */
.slots-container {
  border-left: 1px solid var(--border);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  max-height: 440px;
}

.slots-header {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.slot-btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-hover);
}

.slot-btn.selected {
  background: var(--primary);
  color: white;
}

/* Formulaire d'information du participant */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  /* Échelle responsive des libellés de formulaire (zone admin) :
     text-xs (mobile) -> text-sm (sm) -> text-base (md et plus), cf. Design.md */
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

@media (min-width: 640px) {
  .form-label { font-size: 0.875rem; }
}

@media (min-width: 768px) {
  .form-label { font-size: 1rem; }
}

.form-input, .form-textarea, .form-select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: white;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Écran de Confirmation */
.confirmation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: scaleUp 0.3s ease-out;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.confirm-icon-wrapper {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.confirm-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.confirm-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.confirm-details-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 460px;
  text-align: left;
  margin-bottom: 2rem;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.confirm-row:last-child {
  margin-bottom: 0;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   MODALES POPUP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideToast 0.3s ease-out;
  pointer-events: auto;
}

.toast.success {
  background: #065f46;
  border-left: 4px solid #34d399;
}

.toast.error {
  background: #881337;
  border-left: 4px solid #f87171;
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .booking-modal-card {
    grid-template-columns: 1fr;
  }
  .booking-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .schedule-picker-container {
    grid-template-columns: 1fr;
  }
  .slots-container {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

/* ==========================================================================
   FINTECH SAAS DESIGN SYSTEM (REFONTE VISUELLE FIDÈLE AU MOCKUP)
   ========================================================================== */

.app-fintech-layout {
  min-height: 100vh;
  background-color: #f7f9fb;
  padding: 1.5rem 2rem 2.5rem 6.5rem;
  position: relative;
}

/* 1. Logo fixé en haut à gauche */
.dock-logo-fixed {
  position: fixed;
  top: 1.65rem;
  left: 1.85rem;
  z-index: 100;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.dock-logo-fixed:hover {
  transform: scale(1.08);
}

.dock-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-gap: 3px;
}

.dock-logo-tile {
  width: 10px;
  height: 10px;
  background: #111827;
  border-radius: 2.5px;
}

.dock-logo-tile.offset {
  background: #111827;
}

/* 2. Dock Menu flottant CENTRÉ VERTICALEMENT (sans aucun fond blanc global) */
.dock-menu-centered {
  position: fixed;
  left: 1.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 100;
}

/* Boutons circulaires blancs individuels */
.dock-btn {
  width: clamp(44px, 30.667px + 1.302vw, 64px) !important;
  height: clamp(44px, 30.667px + 1.302vw, 64px) !important;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.dock-btn i {
  font-size: clamp(18px, 12.667px + 0.521vw, 26px) !important;
}

.dock-btn:hover {
  background: #ffffff;
  color: #111827;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
  transform: scale(1.05);
}

/* Bouton actif : cercle noir plein */
.dock-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.28);
}

.dock-btn.active:hover {
  background: #1f2937;
  color: #ffffff;
}

/* Bouton de déconnexion fixé en bas à gauche */
.dock-logout-fixed {
  position: fixed;
  bottom: 1.75rem;
  left: 1.65rem;
  z-index: 100;
}



/* 2. Main Workspace */
.fintech-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* 3. Topbar Navigation */
.fintech-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fintech-pill-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
}

.fintech-pill-tab {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fintech-pill-tab:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.fintech-pill-tab.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.fintech-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack-item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  object-fit: cover;
  background: #e2e8f0;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.avatar-stack-more {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  background: #111827;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-manager {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-add-manager:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.btn-circle-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-circle-action:hover {
  background: #f1f5f9;
  color: #111827;
  border-color: #cbd5e1;
}

.date-pill-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.date-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.user-profile-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
  overflow: hidden;
}

.user-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. Breadcrumb & Greeting Header */
.fintech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fintech-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.fintech-breadcrumb span {
  color: #94a3b8;
}

.fintech-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

/* 5. Fintech Cards Architecture */
.fintech-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition-normal);
}

.fintech-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.fintech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.fintech-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

.fintech-card-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.btn-circle-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-circle-arrow:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Top 3 KPI Grid */
.fintech-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .fintech-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.fintech-kpi-amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.fintech-kpi-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.btn-kpi-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-kpi-action:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Sparkline Wave Container */
.sparkline-container {
  width: 100%;
  height: 100px;
  position: relative;
  margin-top: auto;
}

.floating-dark-tooltip {
  position: absolute;
  background: #111827;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  white-space: nowrap;
}

/* Volume Bar Chart (Vertical Fine Bars) */
.volume-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 90px;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.volume-bar {
  flex: 1;
  background: #e2e8f0;
  border-radius: 2px 2px 0 0;
  transition: background var(--transition-fast);
}

.volume-bar.active {
  background: #111827;
}

.volume-axis-months {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

/* Weekday Bars Chart */
.weekday-bars-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 110px;
  margin-top: 1rem;
  position: relative;
}

.weekday-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.weekday-pill-bar {
  width: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  transition: all var(--transition-fast);
  position: relative;
}

.weekday-pill-bar.striped-lime {
  background: repeating-linear-gradient(45deg, #22c55e, #22c55e 4px, #4ade80 4px, #4ade80 8px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.weekday-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.weekday-label.active {
  color: #0f172a;
  font-weight: 700;
}

/* Badge Indicators */
.badge-lime-percent {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.badge-gray-stat {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.4rem;
}

/* 6. Lower Grid (Breakdown & Performance) */
.fintech-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .fintech-lower-grid {
    grid-template-columns: 1fr;
  }
}

/* Breakdown List */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  transition: background var(--transition-fast);
}

.breakdown-row:hover {
  background: #f8fafc;
}

.breakdown-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.breakdown-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.breakdown-icon-circle.dark {
  background: #111827;
  color: #ffffff;
}

.breakdown-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.breakdown-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
}

.breakdown-right {
  text-align: right;
}

.breakdown-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.breakdown-subtext {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Performance Dual Bar Cards */
.performance-channels {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0.5rem 0 1.5rem;
}

.channel-stat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.channel-icon-circle.green {
  background: #22c55e;
}

.channel-icon-circle.black {
  background: #111827;
}

.channel-meta-label {
  font-size: 0.78rem;
  color: #64748b;
}

.channel-meta-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.performance-grouped-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
  position: relative;
}

.dual-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.bar-segment {
  width: 22px;
  border-radius: 4px;
  background: #f1f5f9;
}

.bar-segment.striped {
  background: repeating-linear-gradient(45deg, #22c55e, #22c55e 3px, #4ade80 3px, #4ade80 6px);
}

.bar-segment.solid-black {
  background: #111827;
}

/* Interactive Tabs Panels */
.fintech-tab-panel {
  display: none;
}

.fintech-tab-panel.active {
  display: block;
}

