/* Classes Tailwind CSS essentielles pour le dashboard */

/* Marges */
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }
.p-2 { padding: 0.5rem; }
.p-1 { padding: 0.25rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Grilles */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Espacement */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Largeurs et hauteurs */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-12 { width: 3rem; }
.w-6 { width: 1.5rem; }
.w-4 { width: 1rem; }
.h-full { height: 100%; }
.h-12 { height: 3rem; }
.h-6 { height: 1.5rem; }
.h-4 { height: 1rem; }
.size-11 { width: 2.75rem; height: 2.75rem; }
.size-12 { width: 3rem; height: 3rem; }
.min-w-0 { min-width: 0px; }

/* Bordures */
.border { border-width: 1px; }
.border-slate-200 { border-color: #e2e8f0; }
.border-navy-600 { border-color: #475569; }
.border-primary { border-color: #3b82f6; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Ombres */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Couleurs de fond */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-150 { background-color: #e2e8f0; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-navy-450 { background-color: #1e40af; }
.bg-navy-500 { background-color: #1e3a8a; }
.bg-navy-600 { background-color: #1e3a8a; }
.bg-navy-700 { background-color: #1e40af; }
.bg-navy-800 { background-color: #1e3a8a; }

/* Couleurs de statut */
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-yellow-500\/20 { background-color: rgba(234, 179, 8, 0.2); }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-500\/20 { background-color: rgba(107, 114, 128, 0.2); }

/* Couleurs de texte */
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-orange-600 { color: #ea580c; }
.text-orange-700 { color: #c2410c; }
.text-orange-800 { color: #9a3412; }
.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7c3aed; }
.text-purple-800 { color: #6b21a8; }
.text-navy-50 { color: #e6f3ff; }
.text-navy-100 { color: #e6f3ff; }
.text-navy-300 { color: #b3dbff; }
.text-navy-400 { color: #99d1ff; }
.text-navy-500 { color: #7fb8ff; }
.text-green-400 { color: #4ade80; }
.text-green-600 { color: #16a34a; }
.text-yellow-400 { color: #facc15; }
.text-yellow-600 { color: #ca8a04; }
.text-red-400 { color: #f87171; }
.text-red-600 { color: #dc2626; }
.text-blue-400 { color: #60a5fa; }
.text-blue-600 { color: #2563eb; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }

/* Tailles de texte */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

/* Poids de police */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.hover\:rotate-\[360deg\]:hover { transform: rotate(360deg); }

/* Hover effects */
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-green-100:hover { background-color: #dcfce7; }
.hover\:bg-orange-100:hover { background-color: #fed7aa; }
.hover\:bg-primary:hover { background-color: #3b82f6; }
.hover\:bg-primary-focus:hover { background-color: #2563eb; }
.hover\:bg-navy-450:hover { background-color: #1e40af; }
.hover\:text-primary:hover { color: #3b82f6; }
.hover\:text-primary-focus:hover { color: #2563eb; }
.hover\:border-primary:hover { border-color: #3b82f6; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* Focus */
.focus\:bg-primary:focus { background-color: #3b82f6; }
.focus\:bg-primary-focus:focus { background-color: #2563eb; }
.focus\:text-primary:focus { color: #3b82f6; }
.focus\:text-primary-focus:focus { color: #2563eb; }
.focus\:border-primary:focus { border-color: #3b82f6; }

/* Active */
.active\:bg-primary:active { background-color: #3b82f6; }
.active\:bg-primary-focus:active { background-color: #2563eb; }
.active\:text-primary:active { color: #3b82f6; }
.active\:text-primary-focus:active { color: #2563eb; }

/* Group hover */
.group:hover .group-hover\:bg-primary\/20 { background-color: rgba(59, 130, 246, 0.2); }
.group:hover .group-hover\:text-primary { color: #3b82f6; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* Responsive */
@media (min-width: 640px) {
    .sm\:mt-5 { margin-top: 1.25rem; }
    .sm\:gap-5 { gap: 1.25rem; }
}

@media (min-width: 1024px) {
    .lg\:mt-6 { margin-top: 1.5rem; }
    .lg\:gap-6 { gap: 1.5rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .dark\:bg-navy-700 { background-color: #1e293b; }
    .dark\:bg-navy-600 { background-color: #334155; }
    .dark\:bg-navy-100 { color: #f1f5f9; }
    .dark\:text-navy-100 { color: #f1f5f9; }
    .dark\:text-navy-300 { color: #cbd5e1; }
    .dark\:border-navy-600 { border-color: #475569; }
    .dark\:hover\:bg-navy-600:hover { background-color: #334155; }
    .dark\:hover\:bg-navy-300\/20:hover { background-color: rgba(203, 213, 225, 0.2); }
}

/* Classes spécifiques pour les raccourcis */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.from-green-500 { --tw-gradient-from: #10b981; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0)); }
.to-green-600 { --tw-gradient-to: #059669; }
.from-purple-500 { --tw-gradient-from: #8b5cf6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(139, 92, 246, 0)); }
.to-purple-600 { --tw-gradient-to: #7c3aed; }
.from-orange-500 { --tw-gradient-from: #f97316; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0)); }
.to-orange-600 { --tw-gradient-to: #ea580c; }
.from-gray-500 { --tw-gradient-from: #6b7280; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(107, 114, 128, 0)); }
.to-gray-600 { --tw-gradient-to: #4b5563; }
.from-primary { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-primary-focus { --tw-gradient-to: #2563eb; }
.from-slate-600 { --tw-gradient-from: #475569; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(71, 85, 105, 0)); }
.to-slate-700 { --tw-gradient-to: #334155; }

/* Opacité */
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-primary\/10 { background-color: rgba(59, 130, 246, 0.1); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Z-index */
.z-1000 { z-index: 1000; }

/* Transform */
.-translate-y-1 { transform: translateY(-0.25rem); }
.translate-x-1 { transform: translateX(0.25rem); }
.translate-y-0 { transform: translateY(0); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }

/* White space */
.whitespace-nowrap { white-space: nowrap; }

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