/* ============================================================
   TAILWIND UTILS — Static purged subset
   Généré manuellement à partir des classes utilisées dans index.html.
   Remplace https://cdn.tailwindcss.com (JIT navigateur, ~380KB + Roboto).
   Poids : ~14KB au lieu de ~380KB. Offline-safe (PWA).

   Si tu ajoutes une classe Tailwind, ajoute son style ici OU migre
   vers le design-system (styles/design-system.css).
   ============================================================ */

/* --- Custom brand tokens (correspondent aux ex `pmi-blue`, `primary-*`) --- */
:root {
  --pmi-blue: #0062a9;
}

/* ============================================================
   Layout / Positioning
   ============================================================ */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.static { position: static; }

.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.-top-1\.5 { top: -0.375rem; }
.-right-1\.5 { right: -0.375rem; }
.bottom-20 { bottom: 5rem; }

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

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

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

.gap-1   { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }

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

.order-first { order: -9999; }

/* --- Sizing --- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }

.w-1\.5 { width: 0.375rem; }
.w-3\.5 { width: 0.875rem; }
.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-24 { width: 6rem; }
.w-40 { width: 10rem; }

.h-1\.5 { height: 0.375rem; }
.h-2  { height: 0.5rem; }
.h-3  { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-8  { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-\[70vh\] { height: 70vh; }

.max-h-80 { max-height: 20rem; }
.max-h-\[70vh\] { max-height: 70vh; }
.max-h-\[90vh\] { max-height: 90vh; }

/* --- Padding / Margin --- */
.p-0\.5 { padding: 0.125rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2    { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.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-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-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3    { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6    { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8    { padding-top: 2rem; padding-bottom: 2rem; }
.py-16   { padding-top: 4rem; padding-bottom: 4rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-4 { padding-bottom: 1rem; }

.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-\[-2px\] { margin-top: -2px; }

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

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

/* --- Typography --- */
.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-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-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

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

.uppercase   { text-transform: uppercase; }
.underline   { text-decoration-line: underline; }
.line-through { text-decoration-line: line-through; }

.whitespace-nowrap    { white-space: nowrap; }
.whitespace-pre-wrap  { white-space: pre-wrap; }
.break-all { word-break: break-all; }

/* --- Colors (backgrounds + text, palette limitée à ce qui est utilisé) --- */
.bg-white           { background-color: #ffffff; }
.bg-black\/60       { background-color: rgba(0, 0, 0, 0.6); }
.bg-white\/90       { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/95       { background-color: rgba(255, 255, 255, 0.95); }
.bg-transparent     { background-color: transparent; }

.bg-\[\#0062a9\]    { background-color: #0062a9; }
.bg-\[\#f5faff\]    { background-color: #f5faff; }
.bg-\[\#fbbc05\]    { background-color: #fbbc05; }

.bg-pmi-blue        { background-color: var(--pmi-blue); }

.bg-gray-50         { background-color: #f9fafb; }
.bg-gray-50\/50     { background-color: rgba(249, 250, 251, 0.5); }
.bg-gray-100        { background-color: #f3f4f6; }
.bg-gray-200        { background-color: #e5e7eb; }
.bg-gray-300        { background-color: #d1d5db; }

.bg-primary-50      { background-color: var(--color-primary-50); }

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

.bg-green-50        { background-color: #f0fdf4; }
.bg-green-100       { background-color: #dcfce7; }
.bg-green-500       { background-color: #22c55e; }
.bg-green-600       { background-color: #16a34a; }

.bg-red-50          { background-color: #fef2f2; }
.bg-red-500         { background-color: #ef4444; }
.bg-red-600         { background-color: #dc2626; }

.bg-yellow-50       { background-color: #fefce8; }
.bg-yellow-100      { background-color: #fef3c7; }
.bg-yellow-500      { background-color: #eab308; }

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

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

/* Text colors */
.text-white       { color: #ffffff; }
.text-black       { color: #000000; }

.text-pmi-blue    { color: var(--pmi-blue); }
.text-primary-600 { color: var(--color-primary-600); }

.text-gray-400    { color: #9ca3af; }
.text-gray-500    { color: #6b7280; }
.text-gray-600    { color: #4b5563; }
.text-gray-700    { color: #374151; }
.text-gray-800    { color: #1f2937; }
.text-gray-900    { color: #111827; }

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

.text-green-600   { color: #16a34a; }
.text-green-700   { color: #15803d; }
.text-green-900   { color: #14532d; }

.text-red-500     { color: #ef4444; }
.text-red-600     { color: #dc2626; }
.text-red-700     { color: #b91c1c; }
.text-red-800     { color: #991b1b; }

.text-yellow-600  { color: #ca8a04; }
.text-yellow-700  { color: #a16207; }
.text-yellow-800  { color: #854d0e; }

.text-orange-500  { color: #f97316; }
.text-orange-700  { color: #c2410c; }

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

/* --- Borders / Rounded / Shadow / Ring --- */
.border         { border-width: 1px; border-style: solid; }
.border-2       { border-width: 2px; border-style: solid; }
.border-b       { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2     { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t       { border-top-width: 1px; border-top-style: solid; }
.border-r       { border-right-width: 1px; border-right-style: solid; }
.border-transparent { border-color: transparent; }

.border-\[\#0062a9\] { border-color: #0062a9; }
.border-pmi-blue     { border-color: var(--pmi-blue); }

.border-gray-100  { border-color: #f3f4f6; }
.border-gray-200  { border-color: #e5e7eb; }
.border-gray-300  { border-color: #d1d5db; }

.border-blue-100  { border-color: #dbeafe; }
.border-blue-200  { border-color: #bfdbfe; }

.border-green-400 { border-color: #4ade80; }
.border-green-700 { border-color: #15803d; }

.border-red-200   { border-color: #fecaca; }
.border-red-300   { border-color: #fca5a5; }
.border-red-700   { border-color: #b91c1c; }

.border-purple-200 { border-color: #e9d5ff; }
.border-yellow-400 { border-color: #facc15; }

.rounded       { border-radius: 0.25rem; }
.rounded-full  { border-radius: 9999px; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

.ring-2         { box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor); }
.ring-\[\#0062a9\] { --tw-ring-color: #0062a9; }
.ring-offset-1 { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--tw-ring-color, currentColor); }

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

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

.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239,246,255,0)); }
.from-primary-50 { --tw-gradient-from: var(--color-primary-50); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-primary-500 { --tw-gradient-from: var(--color-primary-500); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-white        { --tw-gradient-to: #ffffff; }
.to-primary-400  { --tw-gradient-to: var(--color-primary-400); }

/* --- Object / Cursor / Select --- */
.object-contain { object-fit: contain; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* --- Opacity --- */
.opacity-0  { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }

.grayscale { filter: grayscale(100%); }

/* --- Backdrop --- */
.backdrop-blur    { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* --- Transitions / Transforms --- */
.transform             { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.transition-colors     { transition-property: color, background-color, border-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; }

.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Group state helpers --- */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-black  { color: #000000; }

/* ============================================================
   HOVER / FOCUS / ACTIVE / DISABLED
   ============================================================ */
.hover\:bg-blue-100:hover     { background-color: #dbeafe; }
.hover\:bg-blue-800:hover     { background-color: #1e40af; }
.hover\:bg-gray-50:hover      { background-color: #f9fafb; }
.hover\:bg-gray-100:hover     { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover     { background-color: #e5e7eb; }
.hover\:bg-green-700:hover    { background-color: #15803d; }
.hover\:bg-primary-100:hover  { background-color: var(--color-primary-100); }
.hover\:bg-purple-100:hover   { background-color: #f3e8ff; }
.hover\:bg-red-50:hover       { background-color: #fef2f2; }
.hover\:bg-red-700:hover      { background-color: #b91c1c; }
.hover\:bg-white:hover        { background-color: #ffffff; }
.hover\:bg-yellow-500:hover   { background-color: #eab308; }

.hover\:text-gray-700:hover   { color: #374151; }
.hover\:text-pmi-blue:hover   { color: var(--pmi-blue); }
.hover\:text-primary-700:hover { color: var(--color-primary-700); }
.hover\:text-red-500:hover    { color: #ef4444; }

.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-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\:scale-105:hover { transform: scale(1.05); }

.active\:bg-gray-100:active { background-color: #f3f4f6; }
.active\:scale-95:active    { transform: scale(0.95); }

.focus\:outline-none:focus         { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-pmi-blue:focus      { border-color: var(--pmi-blue); }
.focus\:border-primary-500:focus   { border-color: var(--color-primary-500); }
.focus\:ring-2:focus               { box-shadow: 0 0 0 2px var(--tw-ring-color, var(--color-primary-500)); }
.focus\:ring-primary-200:focus     { --tw-ring-color: var(--color-primary-200); }

.disabled\:opacity-40:disabled { opacity: 0.4; }

/* ============================================================
   RESPONSIVE — sm (>= 640px)
   ============================================================ */
@media (min-width: 640px) {
  .sm\:block       { display: block; }
  .sm\:inline      { display: inline; }
  .sm\:flex        { display: flex; }
  .sm\:flex-none   { flex: none; }
  .sm\:flex-row    { flex-direction: row; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:gap-4       { gap: 1rem; }
  .sm\:space-x-4 > * + * { margin-left: 1rem; }
  .sm\:space-y-4 > * + * { margin-top: 1rem; }

  .sm\:h-6  { height: 1.5rem; }
  .sm\:w-6  { width: 1.5rem; }
  .sm\:h-56 { height: 14rem; }
  .sm\:w-auto { width: auto; }

  .sm\:p-4  { padding: 1rem; }
  .sm\:p-5  { padding: 1.25rem; }
  .sm\:p-6  { padding: 1.5rem; }
  .sm\:p-8  { padding: 2rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .sm\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .sm\:py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
  .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .sm\:py-8    { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:mt-6    { margin-top: 1.5rem; }
  .sm\:mt-8    { margin-top: 2rem; }
  .sm\:mb-8    { margin-bottom: 2rem; }

  .sm\:text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-\[15px\]   { font-size: 15px; }
  .sm\:text-\[1\.1rem\] { font-size: 1.1rem; }
}

/* ============================================================
   RESPONSIVE — md (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ============================================================
   xs breakpoint (custom, ~475px)
   ============================================================ */
@media (min-width: 475px) {
  .xs\:block { display: block; }
}

/* ============================================================
   sr-only pattern
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
