/* --- Reset et Base (Style Tailwind Preflight) --- */
*, ::before, ::after { 
    box-sizing: border-box; 
    border-width: 0; 
    border-style: solid; 
    border-color: #e5e7eb; 
}

/* Reset des marges */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, dl, dd, ol, ul, figure, hr, fieldset, legend {
    margin: 0;
    padding: 0;
}

/* CORRECTION : Suppression du soulignement sur les liens */
a {
    color: inherit;
    text-decoration: none;
}

html { 
    line-height: 1.5; 
    -webkit-text-size-adjust: 100%; 
    -moz-tab-size: 4; 
    tab-size: 4; 
    font-family: 'Cairo', sans-serif; 
    scroll-behavior: smooth; 
}

/* Empêcher le débordement horizontal */
body { 
    background-color: #f9fafb; 
    padding-top: 0px; 
    overflow-x: hidden; 
    width: 100%; 
}

img { border-style: none; display: block; max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; background-color: transparent; background-image: none; cursor: pointer; }

/* --- Animations --- */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .9; transform: scale(1.02); }
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); transform: scale(1); }
}

@keyframes fadeIn { from { opacity: 0.5; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.cta-pulse { animation: btnPulse 2s infinite; }
.price-update { animation: fadeIn 0.5s ease-in-out; }
.fa-spin { animation: spin 1s linear infinite; }

/* --- Utilitaires Layout --- */
.container { width: 100%; margin-right: auto; margin-left: auto; padding-left: 1rem; padding-right: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Espacements */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-8 { gap: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }

/* Padding Standard */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Positionnement */
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-24 { bottom: 6rem; }
.left-6 { left: 1.5rem; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Typographie */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.line-through { text-decoration: line-through; }

/* Couleurs */
.text-white { color: #ffffff; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.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-emerald-300 { color: #6ee7b7; }
.text-emerald-600 { color: #059669; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #064e3b; }
.text-red-500 { color: #ef4444; }
.text-yellow-400 { color: #facc15; }

/* Backgrounds & Borders */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-emerald-800 { background-color: #065f46; }
.bg-emerald-900 { background-color: #064e3b; }
.bg-red-600 { background-color: #dc2626; }
.bg-green-500 { background-color: #22c55e; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-500 { border-color: #ef4444; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Effets */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:scale-110:hover { --tw-scale-x: 1.1; --tw-scale-y: 1.1; transform: scale(1.1); }
.hover\:bg-red-700:hover { background-color: #b91c1c; }

/* Grid Cols */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Dimensions */
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.h-52 { height: 13rem; }
.h-auto { height: auto; }
.w-auto { width: auto; }
.object-contain { object-fit: contain; }

/* Media Queries pour le Container */
@media (min-width: 640px) {
    .container { max-width: 640px; }
    .sm\:inline { display: inline; }
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
    .md\:p-8 { padding: 2rem; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}
/* Breakpoint 2xl Tailwind (Largeur max 1536px) */
@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* Composants Spécifiques */
.sticky-cart-bar { position: fixed; bottom: -120px; left: 0; right: 0; transition: bottom 0.3s ease-in-out; z-index: 40; }
.sticky-cart-bar.visible { bottom: 0; }
.product-option input[type="radio"] { display: none; }
.product-option label {
    display: block; padding: 0.75rem 1rem; border: 2px solid #e5e7eb;
    border-radius: 0.5rem; cursor: pointer; transition: all 0.2s ease-in-out;
    text-align: center; font-weight: 700;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.product-option input[type="radio"]:checked + label {
    border-color: #059669; background-color: #d1fae5; color: #047857;
    box-shadow: 0 0 0 2px #059669;
}
.custom-image { width: 100%; max-width: 760px; height: auto; }

/* SVG et Loader */
.icon-svg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }
.icon-2x { font-size: 2em; }
.icon-3x { font-size: 3em; }
.loader { border: 2px solid #f3f3f3; border-top: 2px solid #3498db; border-radius: 50%; width: 16px; height: 16px; animation: spin 2s linear infinite; }






/* cairo-regular - latin_arabic */
@font-face {
  font-display: swap; /* Important pour l'affichage rapide */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cairo-v28-latin_arabic-regular.woff2') format('woff2');
}

/* cairo-700 - latin_arabic */
@font-face {
  font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/cairo-v28-latin_arabic-700.woff2') format('woff2');
}

/* cairo-900 - latin_arabic */
@font-face {
  font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/cairo-v28-latin_arabic-900.woff2') format('woff2');
}