/* ===========================================
   Biblio-SMS.com - CSS Optimisé
   Généré à partir des classes Tailwind utilisées
   =========================================== */

/* =====================
   FONTS (Auto-hébergées)
   ===================== */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }

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

/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-2 { row-gap: 0.5rem; }

/* Spacing */
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* =====================
   SIZING
   ===================== */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-\[300px\] { width: 300px; }

.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-\[100px\] { height: 100px; }
.h-\[250px\] { height: 250px; }

.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }

/* =====================
   SPACING (Margin/Padding)
   ===================== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mr-1 { margin-right: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.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; }
.mb-12 { margin-bottom: 3rem; }
.ml-4 { margin-left: 1rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.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; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-12 { padding-left: 3rem; }
.pr-4 { padding-right: 1rem; }

/* =====================
   POSITIONING
   ===================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.left-1\/2 { left: 50%; }
.inset-y-0 { top: 0; bottom: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* =====================
   TYPOGRAPHY
   ===================== */
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.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; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }

.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* =====================
   COLORS - TEXT
   ===================== */
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-gray-500 { color: #6b7280; }
.text-indigo-100 { color: #e0e7ff; }
.text-indigo-600 { color: #4f46e5; }
.text-pink-400 { color: #f472b6; }
.text-pink-500 { color: #ec4899; }
.text-pink-600 { color: #db2777; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-amber-600 { color: #d97706; }
.text-amber-800 { color: #92400e; }
.text-emerald-600 { color: #059669; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }

/* =====================
   COLORS - BACKGROUND
   ===================== */
.bg-white { background-color: #ffffff; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-transparent { background-color: transparent; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900\/95 { background-color: rgba(15, 23, 42, 0.95); }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-pink-100 { background-color: #fce7f3; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-indigo-600 { --tw-gradient-from: #4f46e5; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 70, 229, 0)); }
.to-indigo-700 { --tw-gradient-to: #4338ca; }

/* =====================
   BORDERS
   ===================== */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-400 { border-color: #94a3b8; }
.border-slate-600 { border-color: #475569; }
.border-slate-700 { border-color: #334155; }
.border-indigo-100 { border-color: #e0e7ff; }
.border-indigo-400 { border-color: #818cf8; }
.border-indigo-500 { border-color: #6366f1; }
.border-pink-500 { border-color: #ec4899; }
.border-red-400 { border-color: #f87171; }
.border-red-500 { border-color: #ef4444; }
.border-amber-500 { border-color: #f59e0b; }
.border-emerald-500 { border-color: #10b981; }
.border-green-500 { border-color: #22c55e; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* =====================
   SHADOWS & EFFECTS
   ===================== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.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); }
.shadow-indigo-500\/20 { box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.overflow-hidden { overflow: hidden; }
.outline-none { outline: none; }
.pointer-events-none { pointer-events: none; }

/* =====================
   TRANSFORMS
   ===================== */
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-full { transform: translateY(100%); }

/* =====================
   TRANSITIONS
   ===================== */
.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; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }

/* =====================
   HOVER STATES
   ===================== */
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }
.hover\:bg-indigo-600:hover { background-color: #4f46e5; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-pink-100:hover { background-color: #fce7f3; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.hover\:bg-emerald-100:hover { background-color: #d1fae5; }
.hover\:bg-green-100:hover { background-color: #dcfce7; }
.hover\:bg-slate-200:hover { background-color: #e2e8f0; }

.hover\:text-white:hover { color: #ffffff; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:text-indigo-700:hover { color: #4338ca; }
.hover\:text-pink-600:hover { color: #db2777; }

.hover\:border-indigo-200:hover { border-color: #c7d2fe; }
.hover\:border-pink-200:hover { border-color: #fbcfe8; }
.hover\:border-red-200:hover { border-color: #fecaca; }
.hover\:border-emerald-200:hover { border-color: #a7f3d0; }
.hover\:border-slate-300:hover { border-color: #cbd5e1; }

.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

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

/* Group hover */
.group:hover .group-hover\:text-indigo-500 { color: #6366f1; }
.group:hover .group-hover\:text-indigo-600 { color: #4f46e5; }

/* Focus states */
.focus\:border-indigo-500:focus { border-color: #6366f1; }

/* =====================
   RESPONSIVE - SM (640px+)
   ===================== */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================
   RESPONSIVE - MD (768px+)
   ===================== */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:w-10 { width: 2.5rem; }
  .md\:h-10 { height: 2.5rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-left { text-align: left; }
}

/* =====================
   RESPONSIVE - LG (1024px+)
   ===================== */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* =====================
   CUSTOM STYLES
   ===================== */
/* Hero gradient */
.hero-gradient {
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

/* Category card animations */
.category-card {
  transition: all 0.2s ease-in-out;
}
.category-card:hover {
  transform: translateY(-4px);
}
.category-card:hover .emoji {
  transform: scale(1.1);
}
.emoji {
  transition: transform 0.2s ease-in-out;
}

/* Search input focus */
.search-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Prose styles for article pages */
.prose { max-width: 65ch; }
.prose-slate { color: #334155; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose h2 { margin-top: 2em; margin-bottom: 1em; font-weight: 700; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; font-weight: 600; }
.prose ul { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
