/**
 * T.A.S.K. - Styles CSS complets (sans Tailwind)
 * Remplacement de toutes les classes utilitaires par du CSS natif
 */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom right, #f9fafb, #eff6ff);
    min-height: 100vh;
    color: #111827;
}

[x-cloak] {
    display: none !important;
}

/* === VARIABLES CSS === */
:root {
    /* Couleurs Intelligence */
    --ai-color: #06B6D4;
    --ai-light: #22D3EE;
    --ai-dark: #0891B2;
    --ib-color: #EC4899;
    --ib-light: #F472B6;
    --ib-dark: #DB2777;
    --ic-color: #F59E0B;
    --ic-light: #FBBF24;
    --ic-dark: #D97706;

    /* Couleurs primaires */
    --primary: #3B5BDB;
    --secondary: #F97316;

    /* Couleurs grises */
    --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;

    /* Couleurs bleues */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    /* Couleurs indigo */
    --indigo-50: #eef2ff;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;

    /* Autres couleurs */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --emerald-50: #ecfdf5;
    --emerald-600: #059669;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-600: #ea580c;
    --purple-50: #faf5ff;
    --purple-400: #c084fc;
    --purple-600: #9333ea;
    --pink-400: #f472b6;
    --pink-600: #db2777;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-800: #991b1b;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
}

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.tracking-tight { letter-spacing: -0.025em; }

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

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

/* === COULEURS TEXTE === */
.text-white { color: #ffffff; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-green-600 { color: var(--green-600); }
.text-green-700 { color: var(--green-700); }
.text-green-900 { color: #14532d; }
.text-orange-900 { color: #7c2d12; }
.text-purple-600 { color: var(--purple-600); }
.text-purple-900 { color: #581c87; }
.text-red-600 { color: var(--red-600); }
.text-red-800 { color: var(--red-800); }
.text-ai { color: var(--ai-color); }
.text-ib { color: var(--ib-color); }
.text-ic { color: var(--ic-color); }

/* === BACKGROUNDS === */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-green-50 { background-color: var(--green-50); }
.bg-green-100 { background-color: var(--green-100); }
.bg-green-600 { background-color: var(--green-600); }
.bg-orange-50 { background-color: var(--orange-50); }
.bg-purple-50 { background-color: var(--purple-50); }
.bg-red-50 { background-color: var(--red-50); }
.bg-red-100 { background-color: var(--red-100); }
.bg-red-600 { background-color: var(--red-600); }
.bg-ai { background-color: var(--ai-color); }
.bg-ib { background-color: var(--ib-color); }
.bg-ic { background-color: var(--ic-color); }

/* Backgrounds avec opacité */
.bg-ai\/5 { background-color: rgba(6, 182, 212, 0.05); }
.bg-ai\/10 { background-color: rgba(6, 182, 212, 0.1); }
.bg-ib\/5 { background-color: rgba(236, 72, 153, 0.05); }
.bg-ib\/10 { background-color: rgba(236, 72, 153, 0.1); }
.bg-ic\/5 { background-color: rgba(245, 158, 11, 0.05); }
.bg-ic\/10 { background-color: rgba(245, 158, 11, 0.1); }

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--gradient-from), var(--gradient-to));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--gradient-from), var(--gradient-to));
}

.from-gray-50 { --gradient-from: var(--gray-50); }
.to-blue-50 { --gradient-to: var(--blue-50); }
.from-blue-50 { --gradient-from: var(--blue-50); }
.to-indigo-50 { --gradient-to: var(--indigo-50); }
.from-blue-600 { --gradient-from: var(--blue-600); }
.to-indigo-600 { --gradient-to: var(--indigo-600); }
.from-blue-700 { --gradient-from: var(--blue-700); }
.to-indigo-700 { --gradient-to: var(--indigo-700); }
.from-green-50 { --gradient-from: var(--green-50); }
.to-emerald-50 { --gradient-to: var(--emerald-50); }
.from-green-600 { --gradient-from: var(--green-600); }
.to-emerald-600 { --gradient-to: var(--emerald-600); }
.from-orange-50 { --gradient-from: var(--orange-50); }
.to-red-50 { --gradient-to: #fef2f2; }
.from-orange-600 { --gradient-from: var(--orange-600); }
.to-red-600 { --gradient-to: var(--red-600); }
.from-purple-400 { --gradient-from: var(--purple-400); }
.to-pink-400 { --gradient-to: var(--pink-400); }
.from-purple-600 { --gradient-from: var(--purple-600); }
.to-pink-600 { --gradient-to: var(--pink-600); }

/* Gradient text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* === LAYOUT === */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.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-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

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

.col-span-full { grid-column: 1 / -1; }

/* === SPACING === */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }

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

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

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.ml-1 { margin-left: 0.25rem; }

/* === SIZING === */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }

.min-h-screen { min-height: 100vh; }
.min-w-\[28px\] { min-width: 28px; }

.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-48 { max-height: 12rem; }

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

/* === BORDERS === */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-200\/50 { border-color: rgba(229, 231, 235, 0.5); }
.border-gray-300 { border-color: var(--gray-300); }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-500 { border-color: var(--blue-500); }
.border-green-100 { border-color: #dcfce7; }
.border-green-200 { border-color: #bbf7d0; }
.border-orange-100 { border-color: #ffedd5; }
.border-orange-200 { border-color: #fed7aa; }
.border-purple-200 { border-color: #e9d5ff; }
.border-ai { border-color: var(--ai-color); }
.border-ai\/20 { border-color: rgba(6, 182, 212, 0.2); }
.border-ib { border-color: var(--ib-color); }
.border-ib\/20 { border-color: rgba(236, 72, 153, 0.2); }
.border-ic { border-color: var(--ic-color); }
.border-ic\/20 { border-color: rgba(245, 158, 11, 0.2); }

.border-dashed { border-style: dashed; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }

/* === SHADOWS === */
.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 -1px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* === POSITIONING === */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-24 { top: 6rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.top-full { top: 100%; }

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

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* === INTERACTIVITY === */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

button, input, textarea, select {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
}

input, textarea {
    border: none;
    outline: none;
}

input:focus, textarea:focus {
    outline: none;
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:border-blue-500:focus {
    border-color: var(--blue-500);
}

.focus\:border-ai:focus {
    border-color: var(--ai-color);
}

.focus\:border-ib:focus {
    border-color: var(--ib-color);
}

.focus\:border-ic:focus {
    border-color: var(--ic-color);
}

/* === TRANSITIONS === */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all {
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
    transition-property: opacity;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === HOVER STATES === */
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-gray-800:hover { color: var(--gray-800); }
.hover\:text-gray-900:hover { color: var(--gray-900); }
.hover\:text-blue-600:hover { color: var(--blue-600); }
.hover\:text-blue-700:hover { color: var(--blue-700); }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-green-800:hover { color: #166534; }
.hover\:text-red-800:hover { color: var(--red-800); }
.hover\:text-blue-900:hover { color: #1e3a8a; }

.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover { background-color: var(--gray-200); }
.hover\:bg-gray-300:hover { background-color: var(--gray-300); }
.hover\:bg-blue-50:hover { background-color: var(--blue-50); }
.hover\:bg-blue-700:hover { background-color: var(--blue-700); }
.hover\:bg-green-50:hover { background-color: var(--green-50); }
.hover\:bg-green-700:hover { background-color: var(--green-700); }
.hover\:bg-purple-50:hover { background-color: var(--purple-50); }
.hover\:bg-red-100:hover { background-color: var(--red-100); }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-ai\/10:hover { background-color: rgba(6, 182, 212, 0.1); }
.hover\:bg-ib\/10:hover { background-color: rgba(236, 72, 153, 0.1); }
.hover\:bg-ic\/10:hover { background-color: rgba(245, 158, 11, 0.1); }

.hover\:border-gray-300:hover { border-color: var(--gray-300); }

/* Gradient hover */
.hover\:from-blue-700:hover { --gradient-from: var(--blue-700); }
.hover\:to-indigo-700:hover { --gradient-to: var(--indigo-700); }

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

.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* === SPECIAL COMPONENTS === */

/* Card hover effect */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
}

/* Badge pill */
.badge-pill {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

/* Modern button */
.btn-modern {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Float */
.float-right { float: right; }

/* === TRANSFORMS === */
.rotate-180 { transform: rotate(180deg); }
.transition-transform { transition: transform 0.2s ease; }
.transition-colors { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.-translate-y-2 { transform: translateY(-0.5rem); }
.translate-y-0 { transform: translateY(0); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-150 { transition-duration: 150ms; }

/* === ANIMATION SPINNER === */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* === FORMS === */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-weight: 500;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--blue-500);
    outline: none;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-500);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-500);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* === SPECIAL TEXT SIZES === */
.\[10px\], .text-\[10px\] { font-size: 10px; }
.\[11px\], .text-\[11px\] { font-size: 11px; }

/* === SVG === */
svg {
    display: inline-block;
    vertical-align: middle;
}

.fill-none { fill: none; }
.stroke-current { stroke: currentColor; }
