/* =================================================================
   tw-utils.css — Remplacement statique du CDN Tailwind CSS
   Couvre uniquement les classes Tailwind utilisées dans ce projet.
   ================================================================= */

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

/* ---- POSITION ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }

/* ---- FLEXBOX ---- */
.flex-col     { flex-direction: column; }
.flex-row     { flex-direction: row; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.items-stretch  { align-items: stretch; }

.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.justify-start   { justify-content: flex-start; }

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

/* ---- GAP (!important pour surcharger Bootstrap qui définit gap-3/4/5 différemment) ---- */
.gap-1   { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2   { gap: 0.5rem !important; }
.gap-3   { gap: 0.75rem !important; }
.gap-4   { gap: 1rem !important; }
.gap-5   { gap: 1.25rem !important; }
.gap-6   { gap: 1.5rem !important; }
.gap-8   { gap: 2rem !important; }
.gap-10  { gap: 2.5rem !important; }
.gap-12  { gap: 3rem !important; }

/* ---- PADDING ---- */
.p-1  { padding: 0.25rem; }
.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; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8 { padding-left: 2rem;    padding-right: 2rem; }

.py-0   { padding-top: 0;       padding-bottom: 0; }
.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-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4   { padding-top: 1rem;    padding-bottom: 1rem; }
.py-5   { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.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; }

/* ---- MARGIN ---- */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4    { margin-top: 1rem; margin-bottom: 1rem; }

/* ---- SPACE BETWEEN (enfants) ---- */
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* ---- LARGEUR ---- */
.w-3    { width: 0.75rem; }
.w-4    { width: 1rem; }
.w-5    { width: 1.25rem; }
.w-6    { width: 1.5rem; }
.w-8    { width: 2rem; }
.w-9    { width: 2.25rem; }
.w-10   { width: 2.5rem; }
.w-11   { width: 2.75rem; }
.w-16   { width: 4rem; }
.w-20   { width: 5rem; }
.w-28   { width: 7rem; }
.w-32   { width: 8rem; }
.w-full { width: 100%; }
.w-max  { width: max-content; }
.w-\[85vw\] { width: 85vw; }

/* ---- HAUTEUR ---- */
.h-4    { height: 1rem; }
.h-5    { height: 1.25rem; }
.h-6    { height: 1.5rem; }
.h-8    { height: 2rem; }
.h-10   { height: 2.5rem; }
.h-11   { height: 2.75rem; }
.h-16   { height: 4rem; }
.h-80   { height: 20rem; }
.h-full { height: 100%; }

/* ---- MAX / MIN ---- */
.max-w-xs  { max-width: 20rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }
.min-h-\[220px\] { min-height: 220px; }
.min-h-\[90px\]  { min-height: 90px; }
.min-w-screen    { min-width: 100vw; }

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

.text-center { text-align: center; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

.uppercase       { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ---- COULEURS TEXTE ---- */
.text-white      { color: #ffffff; }
.text-gray-100   { color: #f3f4f6; }
.text-gray-300   { color: #d1d5db; }
.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-\[\#f74000\] { color: #f74000; }
.text-orange-500   { color: #f97316; }
.text-green-500    { color: #22c55e; }
.text-red-500      { color: #ef4444; }
.text-purple-500   { color: #a855f7; }
.text-yellow-400   { color: #facc15; }
.text-white\/70    { color: rgba(255,255,255,0.7); }

/* ---- COULEURS FOND ---- */
.bg-white       { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-gray-50     { background-color: #f9fafb; }
.bg-gray-100    { background-color: #f3f4f6; }
.bg-gray-200    { background-color: #e5e7eb; }
.bg-gray-800    { background-color: #1f2937; }
.bg-gray-900    { background-color: #111827; }
.bg-gray-950    { background-color: #030712; }
.bg-orange-50   { background-color: #fff7ed; }
.bg-orange-100  { background-color: #ffedd5; }
.bg-orange-400  { background-color: #fb923c; }
.bg-orange-500  { background-color: #f97316; }
.bg-purple-100  { background-color: #f3e8ff; }
.bg-red-100     { background-color: #fee2e2; }
.bg-yellow-100  { background-color: #fef9c3; }
.bg-\[\#f74000\]  { background-color: #f74000; }
.bg-\[\#f47000\]  { background-color: #f47000; }
.bg-\[\#F9F1EC\]  { background-color: #F9F1EC; }
.bg-\[\#F2E9E4\]  { background-color: #F2E9E4; }
.bg-\[\#FEF4EB\]  { background-color: #FEF4EB; }
.bg-black\/50     { background-color: rgba(0,0,0,0.5); }

/* ---- BORDURES ---- */
.border-1  { border-width: 1px; border-style: solid; }
.border-2  { border-width: 2px; border-style: solid; }
.border-8  { border-width: 8px; border-style: solid; }
.border-t  { border-top-width: 1px; border-top-style: solid; }
.border-b  { border-bottom-width: 1px; border-bottom-style: solid; }
.border-none { border: none; }

.border-gray-200   { border-color: #e5e7eb; }
.border-gray-300   { border-color: #d1d5db; }
.border-gray-400   { border-color: #9ca3af; }
.border-gray-600   { border-color: #4b5563; }
.border-\[\#f74000\] { border-color: #f74000; }
.border-orange-100 { border-color: #ffedd5; }
.border-orange-200 { border-color: #fed7aa; }
.border-orange-500 { border-color: #f97316; }

/* ---- BORDER RADIUS ---- */
.rounded-md  { border-radius: 0.375rem; }
.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; }
.rounded-t-3xl {
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

/* ---- OMBRES (! pour surcharger Bootstrap) ---- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1) !important; }

/* ---- OVERFLOW / OBJECT ---- */
.overflow-hidden { overflow: hidden; }
.object-cover    { object-fit: cover; }
.object-contain  { object-fit: contain; }

/* ---- OPACITÉ / Z-INDEX / ASPECT ---- */
.opacity-80      { opacity: 0.8; }
.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* ---- TRANSITIONS ---- */
.transition-all     { transition: all 150ms cubic-bezier(.4,0,.2,1); }
.transition-colors  { transition: color, background-color, border-color 150ms cubic-bezier(.4,0,.2,1); }
.transition-opacity { transition: opacity 150ms cubic-bezier(.4,0,.2,1); }
.transition-shadow  { transition: box-shadow 150ms cubic-bezier(.4,0,.2,1); }

/* ---- HOVER ---- */
.hover\:bg-\[\#f74000\]:hover  { background-color: #f74000; }
.hover\:bg-orange-600:hover    { background-color: #ea580c; }
.hover\:border-\[\#f74000\]:hover { border-color: #f74000; }
.hover\:border-gray-400:hover  { border-color: #9ca3af; }
.hover\:opacity-70:hover       { opacity: 0.7; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }

/* ---- GROUP HOVER ---- */
.group:hover .group-hover\:bg-white       { background-color: #ffffff; }
.group:hover .group-hover\:shadow-none    { box-shadow: none; }
.group:hover .group-hover\:text-\[\#f74000\] { color: #f74000; }
.group:hover .group-hover\:text-white     { color: #ffffff; }

/* ================================================================
   RESPONSIVE — sm : 640px
   ================================================================ */
@media (min-width: 640px) {
  .sm\:block      { display: block; }
  .sm\:hidden     { display: none; }
  .sm\:flex-row   { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-4      { gap: 1rem !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sm\:mb-10 { margin-bottom: 2.5rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:mt-10 { margin-top: 2.5rem; }
  .sm\:my-6  { margin-top: 1.5rem; margin-bottom: 1.5rem; }

  .sm\:pt-10 { padding-top: 2.5rem; }
  .sm\:px-0  { padding-left: 0; padding-right: 0; }
  .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-\[60px\] { padding-left: 60px; padding-right: 60px; }

  .sm\:py-8  { padding-top: 2rem;   padding-bottom: 2rem; }
  .sm\:py-12 { padding-top: 3rem;   padding-bottom: 3rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-16 { padding-top: 4rem;   padding-bottom: 4rem; }

  .sm\:w-\[500px\] { width: 500px; }
  .sm\:w-\[550px\] { width: 550px; }
  .sm\:whitespace-nowrap { white-space: nowrap; }
}

/* ================================================================
   RESPONSIVE — md : 768px
   ================================================================ */
@media (min-width: 768px) {
  .md\:flex-row    { flex-direction: row; }
  .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\:items-start { align-items: flex-start; }

  .md\:mt-10 { margin-top: 2.5rem; }
  .md\:my-0  { margin-top: 0; margin-bottom: 0; }

  .md\:py-14   { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:opacity-40 { opacity: 0.4; }
}

/* ================================================================
   RESPONSIVE — lg : 1024px
   ================================================================ */
@media (min-width: 1024px) {
  .lg\:flex     { display: flex; }
  .lg\:flex-row { flex-direction: row; }

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

  .lg\:items-center  { align-items: center; }
  .lg\:items-start   { align-items: flex-start; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:justify-end   { justify-content: flex-end; }
  .lg\:justify-start { justify-content: flex-start; }

  .lg\:max-w-lg  { max-width: 32rem; }
  .lg\:pt-14     { padding-top: 3.5rem; }

  .lg\:text-5xl { font-size: 3rem;    line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-lg  { font-size: 1.125rem; line-height: 1.75rem; }

  .lg\:w-1\/4        { width: 25%; }
  .lg\:w-\[380px\]   { width: 380px; }
  .lg\:w-\[420px\]   { width: 420px; }
}
