/* Tailwind CSS Production - Classes utilisées dans SOF */

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

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

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

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

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.space-x-2 > :not(:first-child) {
    margin-left: 0.5rem;
}

.space-x-4 > :not(:first-child) {
    margin-left: 1rem;
}

.space-y-2 > :not(:first-child) {
    margin-top: 0.5rem;
}

.space-y-4 > :not(:first-child) {
    margin-top: 1rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.top-20 {
    top: 5rem;
}

.right-4 {
    right: 1rem;
}

.left-4 {
    left: 1rem;
}

.bottom-4 {
    bottom: 1rem;
}

.inset-0 {
    inset: 0;
}

.left-1\/2 {
    left: 50%;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y));
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
}

/* Sizing */
.w-full {
    width: 100%;
}

.w-96 {
    width: 24rem;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.max-h-\\[90vh\\] {
    max-height: 90vh;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

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

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

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

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pl-2 {
    padding-left: 0.5rem;
}

.pr-2 {
    padding-right: 0.5rem;
}

.m-2 {
    margin: 0.5rem;
}

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

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

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

.mb-6 {
    margin-bottom: 1.5rem;
}

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

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

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

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

.mt-6 {
    margin-top: 1.5rem;
}

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

.ml-2 {
    margin-left: 0.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

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

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

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

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

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

.font-bold {
    font-weight: 700;
}

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

/* Colors */
.text-white {
    color: #ffffff;
}

.text-gray-500 {
    color: #6b7280;
}

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

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

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

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

.text-blue-800 {
    color: #1e40af;
}

.text-red-600 {
    color: #dc2626;
}

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

.text-red-800 {
    color: #991b1b;
}

.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-yellow-600 {
    color: #ca8a04;
}

.text-yellow-800 {
    color: #854d0e;
}

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

.text-purple-700 {
    color: #7c3aed;
}

.text-indigo-600 {
    color: #4f46e5;
}

.text-indigo-700 {
    color: #4338ca;
}

/* Background colors */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

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

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-200 {
    background-color: #bfdbfe;
}

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

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

.bg-blue-900 {
    background-color: #1e3a8a;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-red-200 {
    background-color: #fecaca;
}

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

.bg-red-700 {
    background-color: #b91c1c;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-200 {
    background-color: #bbf7d0;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-green-700 {
    background-color: #15803d;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-orange-200 {
    background-color: #fed7aa;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-orange-600 {
    background-color: #ea580c;
}

.bg-orange-700 {
    background-color: #c2410c;
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-yellow-200 {
    background-color: #fde68a;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

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

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

.bg-indigo-600 {
    background-color: #4f46e5;
}

.bg-indigo-700 {
    background-color: #4338ca;
}

.bg-black {
    background-color: #000000;
}

/* Background opacity */
.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Border */
.border {
    border-width: 1px;
    border-color: #d1d5db;
}

.border-t {
    border-top-width: 1px;
    border-color: #d1d5db;
}

.border-l-3 {
    border-left-width: 3px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-blue-400 {
    border-color: #60a5fa;
}

.border-blue-600 {
    border-color: #2563eb;
}

/* Border radius */
.rounded {
    border-radius: 0.25rem;
}

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

.rounded-r {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Forms */
input, select, textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.5rem;
    width: 100%;
    font-size: 0.875rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* Hover effects */
.hover\\:bg-blue-600:hover {
    background-color: #2563eb;
}

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

.hover\\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\\:bg-green-700:hover {
    background-color: #15803d;
}

.hover\\:bg-orange-700:hover {
    background-color: #c2410c;
}

.hover\\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\\:bg-gray-400:hover {
    background-color: #9ca3af;
}

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

.hover\\:text-gray-700:hover {
    color: #374151;
}

.hover\\:underline:hover {
    text-decoration: underline;
}

/* Visibility */
.hidden {
    display: none;
}

/* Shadows */
.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);
}

/* Overflow */
.overflow-y-auto {
    overflow-y: auto;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Z-index */
.z-\\[10000\\] {
    z-index: 10000;
}

/* Transitions */
.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Notification styles */
.notification {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    transform: translateX(100%);
    opacity: 0;
}

.notification.info {
    background-color: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
}

.notification.success {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #15803d;
}

.notification.error {
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

/* Modal styles */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Timeline styles pour l'historique */
.historique-timeline {
    position: relative;
}

.historique-entry {
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}

.historique-entry.action {
    border-left-color: #10b981;
}

.historique-entry.observation {
    border-left-color: #f59e0b;
}

.historique-entry.creation {
    border-left-color: #6b7280;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .w-96 {
        width: 100%;
    }
}
