/* ========================================
   NAILS SHA - REVENU - DESIGN SYSTEM 2025
   Palette Rose Harmonieuse & UX Moderne
   ======================================== */

/* Variables CSS pour la cohérence */
:root {
  /* Palette Rose Principale */
  --rose-primary: #E91E63;        /* Rose principal */
  --rose-light: #F8BBD9;          /* Rose clair */
  --rose-dark: #C2185B;           /* Rose foncé */
  --rose-accent: #FF4081;          /* Rose accent */
  
  /* Palette Rose Neutre */
  --rose-neutral-50: #FDF2F8;     /* Fond très clair */
  --rose-neutral-100: #FCE7F3;    /* Fond clair */
  --rose-neutral-200: #FBCFE8;   /* Bordure claire */
  --rose-neutral-300: #F9A8D4;    /* Bordure */
  --rose-neutral-400: #F472B6;    /* Texte secondaire */
  --rose-neutral-500: #EC4899;    /* Texte principal */
  --rose-neutral-600: #DB2777;    /* Texte foncé */
  --rose-neutral-700: #BE185D;    /* Texte très foncé */
  --rose-neutral-800: #9D174D;    /* Titres */
  --rose-neutral-900: #831843;    /* Titres très foncés */
  
  /* Couleurs Fonctionnelles */
  --success: #10B981;             /* Vert succès */
  --warning: #F59E0B;             /* Orange attention */
  --error: #EF4444;                /* Rouge erreur */
  --info: #3B82F6;                /* Bleu info */
  
  /* Couleurs Neutres */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Typographie */
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;        /* 12px */
  --font-size-sm: 0.875rem;      /* 14px */
  --font-size-base: 1rem;         /* 16px */
  --font-size-lg: 1.125rem;      /* 18px */
  --font-size-xl: 1.25rem;        /* 20px */
  --font-size-2xl: 1.5rem;        /* 24px */
  --font-size-3xl: 1.875rem;      /* 30px */
  --font-size-4xl: 2.25rem;      /* 36px */
  
  /* Espacement */
  --space-1: 0.25rem;            /* 4px */
  --space-2: 0.5rem;             /* 8px */
  --space-3: 0.75rem;            /* 12px */
  --space-4: 1rem;               /* 16px */
  --space-5: 1.25rem;           /* 20px */
  --space-6: 1.5rem;             /* 24px */
  --space-8: 2rem;              /* 32px */
  --space-10: 2.5rem;           /* 40px */
  --space-12: 3rem;             /* 48px */
  --space-16: 4rem;             /* 64px */
  
  /* Rayons de bordure */
  --radius-sm: 0.375rem;         /* 6px */
  --radius-md: 0.5rem;           /* 8px */
  --radius-lg: 0.75rem;          /* 12px */
  --radius-xl: 1rem;             /* 16px */
  --radius-2xl: 1.5rem;          /* 24px */
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
    line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--rose-neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Classe utilitaire pour masquer les éléments */
.hidden {
  display: none !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-dark) 100%);
  color: var(--white);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  padding: 0 var(--space-6);
}

/* Première ligne : Logo + Menu */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-3) 0;
}

.logo h1 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    list-style: none;
  gap: var(--space-2);
}

.nav-menu a {
  color: var(--white);
    text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
}

/* Menu burger mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    max-width: 1600px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-6);
  min-height: calc(100vh - 200px);
}

/* ========================================
   MESSAGES & ALERTS
   ======================================== */

.success-message {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  color: #065F46;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid #A7F3D0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.success-message::before {
  content: '✅';
  font-size: var(--font-size-lg);
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rose-neutral-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
}

.card:hover {
    transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--rose-neutral-300);
}

.card h2 {
  color: var(--rose-neutral-800);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  border-bottom: 2px solid var(--rose-neutral-100);
  padding-bottom: var(--space-4);
}

.card h3 {
  color: var(--rose-neutral-700);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ========================================
   FORMULAIRES
   ======================================== */

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
  margin-bottom: var(--space-2);
    font-weight: 600;
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--rose-neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: all var(--transition-fast);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
  font-style: italic;
}

/* ========================================
   BOUTONS
   ======================================== */

.btn {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
    border: none;
  border-radius: var(--radius-lg);
    cursor: pointer;
  font-size: var(--font-size-base);
    font-weight: 600;
  font-family: var(--font-family);
    text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
    text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Accessibilité tactile */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-normal);
}

.btn:hover {
    transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.3);
}

/* Variantes de boutons */
.btn-secondary {
  background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error) 0%, #DC2626 100%);
}

.btn-info {
  background: linear-gradient(135deg, var(--info) 0%, #2563EB 100%);
}

.btn-outline {
  background: transparent;
  color: var(--rose-primary);
  border: 2px solid var(--rose-primary);
}

.btn-outline:hover {
  background: var(--rose-primary);
  color: var(--white);
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

/* ========================================
   TABLEAUX
   ======================================== */

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling sur iOS */
  margin: var(--space-4) 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rose-neutral-200);
  position: relative;
}

/* Indicateur de scroll horizontal */
.table-container::after {
  content: '← Faites défiler →';
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  color: white;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md) 0 var(--radius-xl) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

@media (max-width: 768px) {
  .table-container::after {
    opacity: 1;
  }
}

table {
    width: 100%;
    min-width: 600px; /* Évite l'écrasement sur mobile */
    border-collapse: collapse;
  background: var(--white);
}

th, td {
  padding: var(--space-4);
    text-align: left;
  border-bottom: 1px solid var(--rose-neutral-100);
}

th {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-dark) 100%);
  color: var(--white);
    font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody tr {
  transition: all var(--transition-fast);
}

tbody tr:nth-child(even) {
  background-color: var(--rose-neutral-50);
}

tbody tr:hover {
  background-color: var(--rose-neutral-100);
  transform: scale(1.01);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   STATISTIQUES
   ======================================== */

.stats-grid {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
    text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.stat-card:hover::before {
  opacity: 1;
}

.stat-card h3 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.stat-card p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
}

/* ========================================
   FILTRES & RECHERCHE
   ======================================== */

.filters {
    display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
  min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  border: 2px solid var(--rose-neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
  left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
  font-size: var(--font-size-lg);
  color: var(--gray-400);
}

/* ========================================
   INFORMATIONS CLIENTES
   ======================================== */

.cliente-info {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.info-card {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rose-neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

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

.info-card h4 {
  color: var(--rose-neutral-700);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.info-card p {
  margin-bottom: var(--space-3);
  color: var(--gray-600);
}

.info-card strong {
  color: var(--gray-800);
    font-weight: 600;
}

/* ========================================
   PRESTATIONS - DESIGN MODERNE
   ======================================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.page-header h2 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.empty-state {
  text-align: center;
  padding: var(--space-12);
  background: linear-gradient(135deg, var(--rose-neutral-50) 0%, var(--rose-neutral-100) 100%);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--rose-neutral-300);
}

.empty-state-message {
  color: var(--gray-600);
  font-size: var(--font-size-lg);
  margin: 0;
}

.empty-state-message a {
  color: var(--rose-primary);
  font-weight: 600;
  text-decoration: underline;
}

.empty-state-message a:hover {
  color: var(--rose-dark);
}

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.prestation-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 2px solid var(--rose-neutral-200);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease-out;
}

.prestation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  transition: all var(--transition-normal);
}

.prestation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--rose-neutral-300);
}

.prestation-card:hover::before {
  height: 6px;
  background: linear-gradient(135deg, var(--rose-accent) 0%, var(--rose-primary) 100%);
}

.prestation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
}

.prestation-title {
  color: var(--rose-neutral-800);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.prestation-price-badge {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-lg);
  font-weight: 800;
  letter-spacing: -0.025em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  flex-shrink: 0;
}

.prestation-body {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rose-neutral-100);
}

.prestation-price-label {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.prestation-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
  flex-wrap: wrap;
}

.prestation-delete-form {
  display: inline;
  flex: 1;
  min-width: 120px;
}

.prestation-delete-form .btn {
  width: 100%;
}

/* Responsive pour les prestations */
@media (max-width: 768px) {
  .prestations-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header .btn {
    width: 100%;
  }

  .prestation-header {
    flex-direction: column;
    align-items: stretch;
  }

  .prestation-price-badge {
    align-self: flex-start;
  }

  .prestation-actions {
    flex-direction: column;
  }

  .prestation-delete-form {
    width: 100%;
  }
}

/* ========================================
   RENDEZ-VOUS (RDV) - REDESIGN COMPLET
   ======================================== */

    .rdv-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  padding: var(--space-6);
  border: 2px solid var(--rose-neutral-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.rdv-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  transition: all var(--transition-normal);
}

.rdv-item.verrouille {
  border-color: var(--warning);
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.rdv-item.verrouille::before {
  background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
}

.rdv-item.non-verrouille {
  border-color: var(--success);
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.rdv-item.non-verrouille::before {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.rdv-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rdv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rose-neutral-200);
}

.rdv-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.status-badge {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-sm);
  font-weight: 700;
    text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.status-verrouille {
  background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
  color: var(--white);
}

.status-non-verrouille {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: var(--white);
}

.rdv-actions {
  display: flex;
  gap: var(--space-2);
}

.rdv-actions .btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  min-width: 44px;
  min-height: 44px;
    display: flex;
    align-items: center;
  justify-content: center;
}

.rdv-info {
    flex: 1;
  margin-right: var(--space-4);
}

.rdv-info h4 {
  margin-bottom: var(--space-3);
  color: var(--rose-neutral-800);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.rdv-info p {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-base);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rdv-info strong {
  color: var(--gray-800);
  font-weight: 600;
  min-width: 120px;
}

.rdv-prix {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.rdv-prix .prix {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.rdv-prix .prix-breakdown {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  text-align: right;
}

/* ========================================
   FORMULAIRE RDV
   ======================================== */

.rdv-form {
  background: linear-gradient(135deg, var(--rose-neutral-50) 0%, var(--rose-neutral-100) 100%);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-top: var(--space-4);
  border: 1px solid var(--rose-neutral-200);
}

.rdv-form h3 {
  color: var(--rose-neutral-700);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

/* ========================================
   BADGES DE STATUT
   ======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.status-actif {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: var(--white);
}

.status-archive {
  background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
  color: var(--white);
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
    max-width: 600px;
  width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  border: 1px solid var(--rose-neutral-200);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--rose-neutral-200);
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  color: var(--white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-header h3 {
    margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.close {
  font-size: var(--font-size-2xl);
    font-weight: bold;
    cursor: pointer;
  color: var(--white);
  transition: opacity var(--transition-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.close:hover {
    opacity: 0.7;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: var(--space-6);
}

/* ========================================
   IMPORT & RÉSULTATS
   ======================================== */

.import-instructions {
  background: linear-gradient(135deg, var(--rose-neutral-50) 0%, var(--rose-neutral-100) 100%);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid var(--rose-neutral-200);
  border-left: 4px solid var(--rose-primary);
}

.import-instructions h4 {
  color: var(--rose-neutral-700);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.import-instructions ul {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.import-instructions li {
  margin-bottom: var(--space-2);
  color: var(--gray-600);
}

.import-instructions code {
  background-color: var(--gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: var(--font-size-sm);
  color: var(--rose-primary);
}

.import-instructions pre {
  background-color: var(--gray-800);
  color: var(--gray-100);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
    overflow-x: auto;
  font-size: var(--font-size-sm);
  margin-top: var(--space-3);
  font-family: 'Monaco', 'Menlo', monospace;
}

.import-results {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
}

.import-results.success {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border-color: var(--success);
  color: #065F46;
}

.import-results.error {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-color: var(--error);
  color: #991B1B;
}

.import-results.warning {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: var(--warning);
  color: #92400E;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  margin-top: var(--space-16);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-primary), var(--rose-accent), var(--rose-primary));
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

footer p {
  margin: 0;
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  :root {
    --space-6: 1rem;
    --space-8: 1.5rem;
  }

  nav {
    padding: 0 var(--space-4);
  }

  /* Afficher le bouton burger sur mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Menu mobile caché par défaut */
  .nav-menu {
    position: fixed;
    top: 70px; /* Ajusté pour la nouvelle structure */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-dark) 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-6);
    gap: var(--space-4);
    transition: left var(--transition-normal);
    overflow-y: auto;
    z-index: 150;
    box-shadow: var(--shadow-xl);
  }

  /* Menu mobile actif */
  .nav-menu.active {
    left: 0;
  }
  
  /* Sur mobile, le menu dans header-top doit être caché (il s'affiche en overlay) */
  .header-top .nav-menu {
    display: none;
  }
  
  /* Quand le menu est actif sur mobile, il s'affiche en overlay */
  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-4);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
  }

  main {
    padding: 0 var(--space-4);
  }

  .card {
    padding: var(--space-6);
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: auto;
  }

  .cliente-info {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .rdv-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .rdv-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .rdv-prix {
    text-align: center;
    margin-left: 0;
    margin-top: var(--space-4);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: var(--space-4);
    max-height: calc(100vh - 2rem);
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: var(--font-size-xl);
  }

  .btn {
    width: 100%;
    margin-bottom: var(--space-2);
  }

.btn-small {
    min-width: auto;
    padding: var(--space-2) var(--space-3);
  }

  table {
    font-size: var(--font-size-sm);
  }

  th, td {
    padding: var(--space-3) var(--space-2);
  }

  .rdv-info h4 {
    font-size: var(--font-size-lg);
  }

  .rdv-prix .prix {
    font-size: var(--font-size-2xl);
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.card, .stat-card, .rdv-item {
  animation: fadeIn 0.5s ease-out;
}

.btn:hover {
  animation: pulse 0.6s ease-in-out;
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

/* Focus visible pour tous les éléments interactifs */
*:focus {
  outline: 2px solid var(--rose-primary);
  outline-offset: 2px;
}

/* Amélioration du contraste pour les liens */
a {
  color: var(--rose-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--rose-dark);
  text-decoration: underline;
}

/* Styles pour les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Amélioration des contrastes pour les textes */
.text-muted {
  color: var(--gray-500);
}

.text-primary {
  color: var(--rose-primary);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

/* ========================================
   UTILITAIRES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ========================================
   AMÉLIORATIONS VISUELLES SUPPLÉMENTAIRES
   ======================================== */

/* Gradient text pour les titres */
.gradient-text {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge amélioré */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cartes avec effet glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Animation de chargement */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
  background-size: 1000px 100%;
}

/* Amélioration du scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--rose-primary) 100%);
}

/* Effet de focus amélioré */
.focus-ring:focus {
  outline: 2px solid var(--rose-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* Effet de hover sur les cartes statistiques */
.hover-lift {
  transition: all var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

/* Badge de notification */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Tableau responsive amélioré */
@media (max-width: 768px) {
  .responsive-table {
    display: block;
  }
  
  .responsive-table thead {
    display: none;
  }
  
  .responsive-table tbody {
    display: block;
  }
  
  .responsive-table tr {
    display: block;
    margin-bottom: var(--space-4);
    border: 2px solid var(--rose-neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
  }
  
  .responsive-table td {
    display: block;
    text-align: right;
    padding: var(--space-2) 0;
    border: none;
  }
  
  .responsive-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: var(--rose-primary);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  header, footer, .btn, .rdv-actions, .mobile-menu-toggle {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
    break-inside: avoid;
  }
  
  .rdv-item {
    break-inside: avoid;
    margin-bottom: var(--space-4);
  }
  
  body {
    background: white;
    color: black;
  }
  
  main {
    max-width: 100%;
  }
}

/* ========================================
   STYLES POUR L'AUTHENTIFICATION
   ======================================== */

/* Bouton de déconnexion dans la navigation */
.logout-btn {
  background: none;
  border: none;
  color: var(--white);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.logout-btn:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Styles pour les pages d'authentification */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-light) 100%);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  margin: var(--space-5);
}

.auth-header {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: var(--white);
  padding: var(--space-8);
  text-align: center;
}

.auth-form {
  padding: var(--space-10) var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.btn-auth {
  width: 100%;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: var(--white);
  border: none;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

/* Alertes pour l'authentification */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.alert-error {
  background-color: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.alert-success {
  background-color: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* ========================================
   SYSTÈME D'ONGLETS POUR IMPORT
   ======================================== */

.tabs-container {
  margin-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--rose-neutral-200);
  margin-bottom: 2rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button:hover {
  color: var(--rose-primary);
  background-color: var(--rose-neutral-50);
}

.tab-button.active {
  color: var(--rose-primary);
  border-bottom-color: var(--rose-primary);
  background-color: var(--rose-neutral-50);
}

.tab-content {
  display: none !important;
}

.tab-content.active {
  display: block !important;
}

/* ========================================
   TABLEAUX DE VALIDATION
   ======================================== */

.validation-table {
  overflow-x: auto;
  margin: 1rem 0;
}

.validation-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.validation-table th {
  background: var(--rose-neutral-100);
  color: var(--rose-neutral-800);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--rose-neutral-200);
}

.validation-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--rose-neutral-200);
  vertical-align: top;
}

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

.error-row {
  background-color: #FEF2F2;
}

.error-row td {
  border-color: #FECACA;
}

.error-item {
  background: var(--error);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  margin: 0.25rem 0;
  display: inline-block;
}

.success-row {
  background-color: #F0FDF4;
}

.success-row td {
  border-color: #BBF7D0;
}

/* Responsive pour l'authentification */
@media (max-width: 640px) {
  .auth-card {
    margin: var(--space-4);
    max-width: none;
  }
  
  .auth-header {
    padding: var(--space-6);
  }
  
  .auth-form {
    padding: var(--space-8) var(--space-6);
  }
}

/* ========================================
   CHATBOT STYLES
   ======================================== */

/* Bouton flottant du chatbot */
#chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
}

#chatbot-toggle:active {
  transform: scale(0.95);
}

/* Conteneur principal du chatbot */
#chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rose-neutral-200);
}

#chatbot-container.hidden {
  display: none;
}

/* Fenêtre de chat */
#chatbot-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
}

/* En-tête du chatbot */
.chatbot-header {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rose-neutral-200);
}

.chatbot-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

#chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#chatbot-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Zone des messages */
#chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--rose-neutral-50);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Messages individuels */
.chatbot-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: messageSlideIn 0.3s ease-out;
}

.chatbot-message--user {
  align-self: flex-end;
}

.chatbot-message--bot {
  align-self: flex-start;
}

.chatbot-message__content {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message--user .chatbot-message__content {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chatbot-message--bot .chatbot-message__content {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--rose-neutral-200);
  border-bottom-left-radius: 4px;
  white-space: pre-wrap; /* Préserve les retours à la ligne et les espaces */
}

.chatbot-message__time {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.chatbot-message--user .chatbot-message__time {
  text-align: right;
}

.chatbot-message--bot .chatbot-message__time {
  text-align: left;
}

/* Indicateur de frappe */
.chatbot-typing {
  align-self: flex-start;
}

.chatbot-typing__content {
  background: var(--white);
  border: 1px solid var(--rose-neutral-200);
  border-bottom-left-radius: 4px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chatbot-typing__dot {
  width: 8px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}

.chatbot-typing__dot:nth-child(1) {
  animation-delay: -0.32s;
}

.chatbot-typing__dot:nth-child(2) {
  animation-delay: -0.16s;
}

/* Formulaire d'envoi */
.chatbot-form {
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid var(--rose-neutral-200);
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

#chatbot-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rose-neutral-300);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  resize: none;
  max-height: 100px;
  min-height: 40px;
  font-family: var(--font-family);
  transition: border-color 0.2s ease;
}

#chatbot-input:focus {
  outline: none;
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

#chatbot-send {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#chatbot-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

#chatbot-send:active:not(:disabled) {
  transform: scale(0.95);
}

#chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Animations */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingDot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive pour le chatbot */
@media (max-width: 480px) {
  #chatbot-container {
    width: calc(100vw - 2rem);
    height: calc(100vh - 2rem);
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    top: 1rem;
  }
  
  #chatbot-toggle {
    bottom: 1rem;
    right: 1rem;
  }
  
  .chatbot-message {
    max-width: 90%;
  }
}

@media (max-width: 360px) {
  #chatbot-container {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    bottom: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    top: 0.5rem;
  }
  
  #chatbot-toggle {
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

/* ========================================
   BARRE DE RECHERCHE CLIENTES
   ======================================== */

/* Deuxième ligne : Barre de recherche (si activée) */
.header-search {
    width: 100%;
    padding: var(--space-2) 0 var(--space-3) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block; /* Affiché si présent dans le DOM */
}

/* Barre de recherche dans le header - Discrète sur desktop */
/* Utilisation de .header-search pour être plus spécifique et éviter les conflits */
header .header-search .search-container {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
}

header .header-search .search-input {
  padding: var(--space-2) var(--space-3);
  padding-right: 2rem;
  font-size: var(--font-size-sm);
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--white) !important;
  backdrop-filter: blur(10px);
}

header .header-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

header .header-search .search-input:focus {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
  outline: none;
}

/* Barre de recherche dans les pages (liste clientes) */
/* Exclure le header pour éviter les conflits */
main .search-container,
.card .search-container {
  position: relative;
  width: 100%;
  margin: 0;
}

main .search-input,
.card .search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-right: 2.5rem;
  border: 2px solid var(--rose-neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background-color: var(--white);
  color: var(--gray-800);
  transition: all var(--transition-fast);
}

main .search-input:focus,
.card .search-input:focus {
  outline: none;
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

main .search-input::placeholder,
.card .search-input::placeholder {
  color: var(--gray-400);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--space-2);
  background-color: var(--white);
  border: 1px solid var(--rose-neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--rose-neutral-100);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--rose-neutral-50);
}

.search-result-item mark {
  background-color: #FEF3C7;
  color: var(--gray-800);
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-details {
  margin-top: var(--space-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ========================================
   ONGLETS ADMINISTRATION
   ======================================== */

.tab-content {
  animation: fadeIn 0.3s ease-in;
}

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

/* Responsive pour le header */
@media (max-width: 768px) {
  nav {
    padding: 0 var(--space-4);
  }
  
  .header-top {
    flex-wrap: wrap;
  }
  
  /* Barre de recherche sur mobile - prend toute la largeur */
  .header-search {
    padding: var(--space-3) 0;
  }
  
  header .header-search .search-container {
    max-width: 100%;
    width: 100%;
  }
  
  header .header-search .search-input {
    background-color: rgba(255, 255, 255, 0.2) !important;
  }
  
  /* Dans les pages, comportement normal */
  main .search-container,
  .card .search-container {
    width: 100%;
    margin: var(--space-2) 0;
  }
  
  .search-results {
    max-height: 300px;
  }
}