/*
 * CSS de base pour le POC vitrine.
 *
 * TODO : remplacer par un build Tailwind (bun-tailwind ou postcss CLI)
 * lancé au boot/CI. En attendant on garde un CSS minimal qui fait passer
 * le rendu (couleurs + layout grosse maille). La classe set est volontairement
 * limité — les classes Tailwind non couvertes seront simplement ignorées
 * par le navigateur, sans rien casser.
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: system-ui, -apple-system, sans-serif; }
body { background: #fafaf9; color: #1c1917; line-height: 1.5; }

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

.sticky { position: sticky; top: 0; z-index: 10; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid; }
.border-stone-200 { border-color: #e7e5e4; }
.border-stone-300 { border-color: #d6d3d1; }
.border-amber-200 { border-color: #fde68a; }
.border-red-200 { border-color: #fecaca; }

.bg-white { background: #fff; }
.bg-stone-50 { background: #fafaf9; }
.bg-stone-100 { background: #f5f5f4; }
.bg-amber-50 { background: #fffbeb; }
.bg-red-50 { background: #fef2f2; }
.bg-green-50 { background: #f0fdf4; }
.bg-green-100 { background: #dcfce7; }
.bg-green-700 { background: #15803d; }
.bg-purple-50 { background: #faf5ff; }
.bg-purple-100 { background: #f3e8ff; }
.bg-purple-400 { background: #c084fc; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-100 { background: #dbeafe; }
.bg-blue-400 { background: #60a5fa; }
.bg-orange-100 { background: #ffedd5; }
.bg-orange-400 { background: #fb923c; }
.bg-yellow-50 { background: #fefce8; }
.bg-emerald-100 { background: #d1fae5; }

.text-white { color: #fff; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.text-center { text-align: center; }
.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }

.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-800 { color: #292524; }
.text-stone-900 { color: #1c1917; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-blue-700 { color: #1d4ed8; }
.text-purple-700 { color: #7e22ce; }
.text-orange-700 { color: #c2410c; }
.text-emerald-700 { color: #047857; }
.text-yellow-700 { color: #a16207; }

.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.antialiased { -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; }
a:hover.hover\:text-green-700 { color: #15803d; }
.transition-colors { transition: color 0.15s; }
.transition-shadow { transition: box-shadow 0.15s; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.hover\:bg-green-800:hover { background: #166534; }

input, select, button { font: inherit; }
button { cursor: pointer; border: none; }
code { background: #f5f5f4; padding: 0 0.25rem; border-radius: 0.25rem; font-family: monospace; }
