.hidden {
   display: none !important;
 }
/* Variables CSS personnalisées */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #6366f1;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --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;
}

/* Styles de base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: #f5f5f5;
  min-height: 100vh;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Container principal */
.main-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 20px;
  margin-top: 84px; /* 64px navbar + 20px margin */
  min-height: calc(100vh - 104px); /* 64px navbar + 40px margin */
  display: flex;
  flex-direction: column;
}

/* Header moderne */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.header-content {
  position: relative;
  z-index: 1;
}

/* Boutons modernes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  gap: 0.5rem;
}

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.6);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

/* Barre de recherche moderne */
.search-container {
  position: relative;
  margin: 2rem 0;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  text-overflow: clip;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  width: 1.25rem;
  height: 1.25rem;
}

/* Tableau des clients */
.clients-container {
  padding: 2rem;
}

.clients-table {
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
}

/* Permettre le scroll vertical quand nécessaire */
.clients-table[style*="overflow-y: auto"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.clients-table table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}

.clients-table th {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 11;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.clients-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  font-size: 0.875rem;
}

.clients-table tr:hover {
  background: var(--gray-50);
  cursor: pointer;
}

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

.client-name-cell {
  font-weight: 600;
  color: var(--gray-900);
}

.client-phone-cell {
  color: var(--gray-600);
  font-family: 'Monaco', 'Menlo', monospace;
}

.client-address-cell {
  color: var(--gray-600);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-date-cell {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.client-actions-cell {
  text-align: right;
}

.client-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.action-btn-edit {
  background: var(--primary-color);
  color: white;
}

.action-btn-edit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.action-btn-delete {
  background: var(--danger-color);
  color: white;
}

.action-btn-delete:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.action-btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Cartes de clients */
.client-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
}

.client-card:hover::before {
  transform: scaleX(1);
}

.client-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.client-info {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-comment {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-left: 3px solid var(--primary-color);
}

/* Modal moderne */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

.modal-content--compact {
  max-width: 500px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
}

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

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
}

.form-input,
.form-input[type="date"],
.form-input[type="tel"],
.form-input[type="text"],
.form-input[type="email"] {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input--compact {
  width: 96px;
  padding: 0.55rem 0.75rem;
}

.form-input--code {
  width: 120px;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
  cursor: not-allowed;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input--uppercase {
  text-transform: uppercase;
}

.form-input--ssn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.05em;
}

/* Style pour les bordures en gras dans tous les modals */
.bold-borders-enabled .form-input,
.bold-borders-enabled .form-input[type="date"],
.bold-borders-enabled .form-input[type="tel"],
.bold-borders-enabled .form-input[type="text"],
.bold-borders-enabled .form-input[type="email"],
.bold-borders-enabled .form-input[type="number"],
.bold-borders-enabled .form-input[type="password"],
.bold-borders-enabled select.form-input,
.bold-borders-enabled textarea.form-input,
.bold-borders-enabled textarea,
.bold-borders-enabled select,
.bold-borders-enabled input[type="text"],
.bold-borders-enabled input[type="email"],
.bold-borders-enabled input[type="tel"],
.bold-borders-enabled input[type="date"],
.bold-borders-enabled input[type="number"],
.bold-borders-enabled input[type="password"] {
  border-width: 2.5px !important;
  border-color: var(--gray-300) !important;
}

.bold-borders-enabled .form-input:focus,
.bold-borders-enabled select.form-input:focus,
.bold-borders-enabled textarea.form-input:focus,
.bold-borders-enabled textarea:focus,
.bold-borders-enabled select:focus,
.bold-borders-enabled input[type="text"]:focus,
.bold-borders-enabled input[type="email"]:focus,
.bold-borders-enabled input[type="tel"]:focus,
.bold-borders-enabled input[type="date"]:focus,
.bold-borders-enabled input[type="number"]:focus,
.bold-borders-enabled input[type="password"]:focus {
  border-width: 3px !important;
  border-color: var(--primary-color) !important;
}

.client-modal__header {
  align-items: flex-start;
  gap: 1.5rem;
}

.client-modal__title-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.client-modal__title-block .modal-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.client-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
}

.client-code-chip__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.client-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.postit-square {
  width: 34px;
  height: 34px;
  background: #facc15;
  border: 2px solid #eab308;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.postit-square:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.35);
}

.client-modal__body {
  padding: 0.875rem 1.25rem;
  overflow: hidden;
}

.client-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.client-modal__layout {
  display: flex;
  gap: 1.25rem;
  height: 100%;
}

.client-modal__left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

.client-modal__right {
  flex: 0.7;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 200px;
  max-width: 280px;
}

.observation-area {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  max-height: 350px;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.client-row {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.client-row--three {
  grid-template-columns: repeat(3, minmax(0, 0.85fr));
}

.client-row--address {
  grid-template-columns: 9fr 85px 1fr;
}

.client-row--name-title {
  grid-template-columns: 0.6fr 1.2fr 1fr;
}

.client-row--rank {
  grid-template-columns: 1.5fr 1.5fr 0.4fr;
  align-items: end;
}

.client-row--rank .form-group {
  display: flex;
  flex-direction: column;
}

.client-row--rank .form-group > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-row--caisse {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.form-label--inline {
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.caisse-inputs {
  display: flex;
  gap: 0.75rem;
}

.client-equipment {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.client-equipment__btn {
  flex: 1;
}

.client-modal__footer {
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* États de chargement */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--gray-600);
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--gray-300);
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    margin: 10px;
    border-radius: 16px;
  }
  
  .header {
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
  }
  
  .clients-container {
    padding: 1rem;
    overflow-x: auto;
  }
  
  .clients-table {
    min-width: 600px;
  }
  
  .clients-table th,
  .clients-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .client-address-cell {
    max-width: 150px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 1rem;
    border-radius: 16px;
  }
  
  .search-container {
    margin-bottom: 1rem;
  }
  
  .search-input {
    font-size: 0.9rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease;
}

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

/* Icônes */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Animations pour les notifications */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* Styles pour l'accordéon */
.date-accordion {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: white;
  transition: all 0.2s ease;
}

.date-accordion:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-content {
  transition: all 0.3s ease;
  animation: slideDown 0.3s ease;
}

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

/* Améliorations pour les cartes clients */
.client-card {
  position: relative;
  overflow: hidden;
}

.client-card::after {
  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 0.5s;
}

.client-card:hover::after {
  left: 100%;
}

/* Amélioration du modal */
.modal-content {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

/* Amélioration des boutons */
.btn {
  position: relative;
  overflow: hidden;
}

.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 0.5s;
}

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

/* Amélioration de la recherche */
.search-input {
  position: relative;
}

.search-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Effet de particules pour le header */
.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Styles pour la page des lunettes */
.dates-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.date-info {
  flex: 1;
}

.date-title {
  margin: 0 0 0.5rem 0;
  color: var(--gray-900);
  font-size: 1.1rem;
  font-weight: 600;
}

.date-count {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.date-arrow {
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.date-card:hover .date-arrow {
  transform: translateX(4px);
}

/* Cartes d'équipement */
.equipment-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
}

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

.equipment-title {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.2rem;
  font-weight: 600;
}

.equipment-actions {
  display: flex;
  gap: 0.5rem;
}

.equipment-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1rem;
}

.info-section h5 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1rem;
  font-weight: 600;
}

.info-section h6 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

.info-value {
  font-size: 0.9rem;
  color: var(--gray-900);
  font-weight: 600;
}

.corrections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.eye-correction {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

.eye-correction h6 {
  margin: 0 0 0.75rem 0;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 600;
}

.correction-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.correction-values span {
  font-size: 0.8rem;
  color: var(--gray-700);
  padding: 0.25rem 0.5rem;
  background: var(--gray-100);
  border-radius: 4px;
  text-align: center;
}

.equipment-items {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

.equipment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.item-label {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
  min-width: 100px;
}

.item-value {
  font-size: 0.9rem;
  color: var(--gray-900);
  flex: 1;
  margin: 0 1rem;
}

.item-price {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

/* Corrections modifiables */
.corrections-grid-editable {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.eye-correction-editable {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s ease;
}

.eye-correction-editable:hover {
  border-color: var(--primary-color);
}

.eye-correction-editable h6 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.correction-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.correction-input {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: var(--gray-50);
}

.correction-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Corrections inline */
.eye-correction-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eye-correction-inline {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.eye-correction-inline:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.eye-correction-inline h6 {
  margin: 0 0 0.75rem 0;
  color: var(--gray-800);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.correction-values-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.correction-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

    .correction-labels span {
      font-size: 0.75rem;
      color: var(--gray-600);
      text-align: center;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    /* Styles pour le modal de sélection des équipements */
    .equipment-selection-card {
      background: white;
      border: 2px solid var(--gray-200);
      border-radius: 12px;
      padding: 1.5rem;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .equipment-selection-card:hover {
      border-color: var(--primary-color);
      box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
      transform: translateY(-2px);
    }

    .equipment-selection-card.selected {
      border-color: var(--success-color);
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
      box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    }

    .equipment-selection-card.selected::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(135deg, var(--success-color), #059669);
    }

    .selection-checkbox {
      width: 1.5rem;
      height: 1.5rem;
      border: 2px solid var(--gray-300);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      background: white;
      flex-shrink: 0;
    }

    .selection-checkbox.checked {
      background: var(--success-color);
      border-color: var(--success-color);
      color: white;
    }

    .selection-checkbox svg {
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .selection-checkbox.checked svg {
      opacity: 1;
    }

    /* Animation pour les cartes sélectionnées */
    .equipment-selection-card.selected .selection-checkbox {
      animation: checkPulse 0.6s ease;
    }

    @keyframes checkPulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.1);
      }
      100% {
        transform: scale(1);
      }
    }

/* Total des équipements */
.equipment-total {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: right;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.equipment-total h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.total-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Modal de confirmation de suppression */
.delete-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.delete-confirm-content {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: slideUp 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.delete-confirm-icon-wrapper {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 0.5s ease;
}

.delete-confirm-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #dc2626;
  display: block;
}

.delete-confirm-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
}

.delete-confirm-content p {
  margin: 0 0 2rem 0;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
}

.delete-confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.delete-confirm-actions button {
  flex: 1;
  min-width: 130px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.delete-confirm-actions .btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.delete-confirm-actions .btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.delete-confirm-actions .btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.delete-confirm-actions .btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Responsive pour la page lunettes */
@media (max-width: 768px) {
  .corrections-grid {
    grid-template-columns: 1fr;
  }
  
  .corrections-grid-editable {
    grid-template-columns: 1fr;
  }
  
  .correction-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .correction-values {
    grid-template-columns: 1fr;
  }
  
  .equipment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .item-value {
    margin: 0;
  }
  
  .item-price {
    text-align: left;
  }
}

/* Bouton de suppression style iPhone */
#deleteBtn {
  background: #ef4444 !important;
  color: white !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2) !important;
}

#deleteBtn:hover {
  background: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3) !important;
}

/* Styles pour la page de sauvegarde */
.info-section {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.info-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(10px);
}

.info-card h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.info-card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.info-card li {
  margin: 0.5rem 0;
  color: var(--gray-700);
}

.backups-section {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.backups-section h2 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.backups-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.backup-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.backup-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

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

.backup-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.1rem;
}

.backup-size {
  background: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.backup-info {
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.info-item .label {
  color: #6b7280;
  font-weight: 500;
}

.info-item .value {
  color: #1f2937;
  font-weight: 600;
}

.backup-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-info {
  background: #3b82f6;
  color: white;
}

.btn-info:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-warning {
  background: #f59e0b;
  color: white;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.detail-item {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.detail-item h5 {
  margin: 0 0 0.5rem 0;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-item p {
  margin: 0;
  color: #3b82f6;
  font-size: 1.5rem;
  font-weight: 700;
}

.clients-preview {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
}

.client-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

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

.warning-text {
  color: #dc2626;
  font-weight: 600;
  margin-top: 1rem;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.notification-success {
  background: #10b981;
}

.notification-error {
  background: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Styles pour les contrôles de filtrage et pagination */
.controls-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.filters-row {
    display: flex;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-input select,
select.form-input,
.form-select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.3s ease;
    min-width: 200px;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-number:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.page-number.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styles pour les suggestions de verre gauche */
.lens-suggestion {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    z-index: 10;
}

.lens-suggestion__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lens-suggestion__text {
    font-size: 0.875rem;
    color: #0c4a6e;
    font-weight: 500;
}

.lens-suggestion__btn {
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lens-suggestion__btn:hover {
    background: #0284c7;
}

/* Styles pour le bouton de copie OD vers OG */
.copy-suggestion-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.copy-suggestion-btn:hover {
    background: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styles pour les membres de la famille */
.family-members-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.family-members-container::-webkit-scrollbar {
  width: 6px;
}

.family-members-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.family-members-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.family-members-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.family-member-badge {
  animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.family-member-suggestion {
  animation: fadeInSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
