/* Styles de base inspirés de Tailwind CSS pour la production */

/* Reset et base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
}

body {
  background-color: #f9fafb;
  color: #111827;
}

/* Layout */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.sm\:px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.lg\:px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #e5e7eb;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.h-16 {
  height: 4rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-semibold {
  font-weight: 600;
}

.text-gray-900 {
  color: #111827;
}

.bg-white {
  background-color: white;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Sections */
section {
  margin-bottom: 2rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.border {
  border-width: 1px;
  border-style: solid;
  border-color: #d1d5db;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

/* Formulaires */
label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.text-red-500 {
  color: #ef4444;
}

.text-green-600 {
  color: #059669;
}

input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  outline: none;
}

input[type="password"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

button {
  background-color: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

button:hover {
  background-color: #1d4ed8;
}

.flex-1 {
  flex: 1;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

/* Messages d'état */
.bg-green-50 {
  background-color: #f0fdf4;
}

.border-green-200 {
  border-color: #bbf7d0;
}

.text-green-800 {
  color: #166534;
}

.font-medium {
  font-weight: 500;
}

.hidden {
  display: none;
}

.bg-red-600 {
  background-color: #dc2626;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.border-red-200 {
  border-color: #fecaca;
}

.text-red-700 {
  color: #b91c1c;
}

/* Boutons spécifiques */
.bg-green-600 {
  background-color: #059669;
}

.bg-green-600:hover {
  background-color: #047857;
}

.bg-gray-600 {
  background-color: #4b5563;
}

.bg-gray-600:hover {
  background-color: #374151;
}

.bg-purple-600 {
  background-color: #9333ea;
}

.bg-purple-600:hover {
  background-color: #7c3aed;
}

/* Capture */
.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-600:hover {
  background-color: #1d4ed8;
}

.disabled\:opacity-50 {
  opacity: 0.5;
}

/* Interactions */
.interaction-severity-majeur {
  border-left: 4px solid #dc2626;
  padding-left: 1rem;
}

.interaction-severity-modere {
  border-left: 4px solid #f59e0b;
  padding-left: 1rem;
}

.interaction-severity-mineur {
  border-left: 4px solid #10b981;
  padding-left: 1rem;
}

/* Notifications */
.fixed {
  position: fixed;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.p-4 {
  padding: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.z-50 {
  z-index: 50;
}

/* Liens */
.text-blue-600 {
  color: #2563eb;
}

.text-blue-600:hover {
  color: #1d4ed8;
}

.underline {
  text-decoration: underline;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Mobile font sizes */
  .text-xl {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
  
  .text-lg {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  
  .text-md {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .text-sm {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .text-xs {
    font-size: 0.6875rem;
    line-height: 0.875rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .text-xl {
    font-size: 1rem;
    line-height: 1.375rem;
  }
  
  .text-lg {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .text-md {
    font-size: 0.75rem;
    line-height: 1.125rem;
  }
  
  .text-sm {
    font-size: 0.6875rem;
    line-height: 0.875rem;
  }
  
  .text-xs {
    font-size: 0.625rem;
    line-height: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Utilitaires */
.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  outline: none;
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.5);
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.border-purple-200 {
  border-color: #e9d5ff;
}

.text-purple-500 {
  color: #8b5cf6;
}

.text-gray-600 {
  color: #4b5563;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.border-green-200 {
  border-color: #bbf7d0;
}
