/* light-mode-colors.css - Styles pour le mode clair */

/* ==========================================
   GRADIENT ANIMATION (Hero Section)
   ========================================== */

.gradient-animation {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Amélioration du mode clair */
html:not(.dark) .gradient-animation {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
}

/* ==========================================
   MODE CLAIR - Améliorations générales
   ========================================== */

html:not(.dark) {
    --tw-text-opacity: 1;
}

html:not(.dark) body {
    background-color: #f8fafc;
}

/* ==========================================
   PRIX PROMOTIONNELS - Page d'accueil + Catalogue
   ========================================== */

/* Prix en promotion (fond jaune, texte rouge) */
.price-promo {
    font-family: 'Luckiest Guy', 'Bangers', system-ui, sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    color: #b91c1c;
    background: #fde047;
    padding: .1rem .5rem;
    border-radius: .5rem;
    display: inline-block;
    text-shadow: 0 1px 0 rgba(0,0,0,.08);
}

/* Mode clair - amélioration contraste */
html:not(.dark) .price-promo {
    color: #dc2626;
    background: #fef08a;
    text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* Ancien prix barré */
.price-old {
    font-size: .875rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Mode clair - amélioration contraste */
html:not(.dark) .price-old {
    color: #64748b;
}

/* Style pour les lots (ex: "soit 9,99 € les 3") */
.lot-inline {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    font-size: .95rem;
    margin-left: .5rem;
    color: #475569;
}

html:not(.dark) .lot-inline {
    color: #475569;
}

html.dark .lot-inline {
    color: #94a3b8;
}

/* ==========================================
   CARTES PRODUITS
   ==========================================*/

/* Amélioration des cartes en mode clair */
html:not(.dark) .bg-white {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Amélioration du texte en mode clair */
html:not(.dark) .text-gray-800 {
    color: #1e293b;
}

html:not(.dark) .text-gray-600 {
    color: #475569;
}

html:not(.dark) .text-gray-500 {
    color: #64748b;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

/* Limitation de lignes pour les titres produits */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Transitions douces */
.transition-colors-slow {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animation d'apparition au scroll */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Animation pour le badge pulsant */
@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Effet hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

html.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* ==========================================
   STYLES PROSE - Mode Clair
   ========================================== */

/* Couleur des titres H2 dans les articles 'prose' en mode clair */
html:not(.dark) .prose h2 {
  color: #0f766e; /* Correspond à text-teal-700 */
}

/* ==========================================
   STYLES PROSE - Mode Clair (Suite)
   ========================================== */

/* Couleur des textes en gras (strong) dans 'prose' en mode clair */
html:not(.dark) .prose strong {
  color: #0f766e; /* Correspond à text-teal-700 */
}

/* ==========================================
   SKELETON LOADER ANIMATION
   ========================================== */

/* Animation shimmer pour skeleton loader */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        to right,
        #f0f0f0 0%,
        #f8f8f8 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
}

/* Version dark mode */
.dark .shimmer {
    background: linear-gradient(
        to right,
        #374151 0%,
        #4b5563 20%,
        #374151 40%,
        #374151 100%
    );
    background-size: 1000px 100%;
}

/* Animation pulse (si pas déjà définie par Tailwind) */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}