/**
 * MycvTop Store - Modern Design Enhancements
 * Inspiré du design moderne de Pepironi
 * Amélioration de l'organisation et de la modernité du site
 */

/* ============================================
   AMÉLIORATIONS GLOBALES
   ============================================ */

/* Espacements plus généreux et aérés */
body {
    letter-spacing: 0.01em;
}

.container {
    max-width: 1320px;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   SECTIONS - ESPACEMENTS MODERNES
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header-center {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CARTES PRODUITS - DESIGN MODERNE
   ============================================ */
.product-card-modern,
.product-card-shop {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-modern:hover,
.product-card-shop:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(45, 134, 89, 0.2);
}

/* Images produits - Ratio 1:1 avec overlay moderne */
.product-image-wrapper,
.product-image-shop {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafbfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.product-image,
.product-image-shop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-image,
.product-card-shop:hover .product-image-shop img {
    transform: scale(1.08);
}

/* Badge produit - Design moderne */
.product-badge,
.product-badge-shop {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    letter-spacing: 0.02em;
}

/* Info produit - Espacement moderne */
.product-info-modern,
.product-info-shop {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name,
.product-name-shop {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a,
.product-name-shop a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover,
.product-name-shop a:hover {
    color: var(--primary-color);
}

.product-description-short,
.product-description-shop {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer produit - Design épuré */
.product-footer,
.product-footer-shop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
    gap: 1rem;
}

.product-price-box,
.product-price-box-shop {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-old-small,
.product-price-old-shop {
    text-decoration: line-through;
    color: var(--text-lighter);
    font-size: 0.85rem;
}

.price-current-large,
.product-price-shop {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

/* Boutons - Design moderne */
.btn-add-cart,
.btn-add-to-cart,
.btn-add-to-cart-shop {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(45, 134, 89, 0.2);
}

.btn-add-cart:hover,
.btn-add-to-cart:hover,
.btn-add-to-cart-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 134, 89, 0.3);
    background: var(--primary-dark);
}

/* ============================================
   GRILLES PRODUITS - ESPACEMENTS MODERNES
   ============================================ */
.products-grid-modern,
.products-grid-shop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .products-grid-modern,
    .products-grid-shop {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .products-grid-modern,
    .products-grid-shop {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   CARTES CATÉGORIES - DESIGN MODERNE
   ============================================ */
.category-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(45, 134, 89, 0.2);
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafbfc;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover .category-image {
    transform: scale(1.1);
}

.category-info-modern {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.category-info-modern h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card-modern:hover .category-info-modern h3 {
    color: var(--primary-color);
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.category-card-modern:hover .category-link {
    transform: translateX(-3px);
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.75rem;
}

/* ============================================
   HERO SECTION - DESIGN MODERNE
   ============================================ */
.hero-section-modern {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fdf8 0%, #ffffff 50%, #f0f9f4 100%);
    position: relative;
    overflow: hidden;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BOUTONS PRIMAIRES - DESIGN MODERNE
   ============================================ */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 134, 89, 0.3);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.05rem;
}

/* ============================================
   SECTIONS FEATURED - DESIGN MODERNE
   ============================================ */
.featured-products-section {
    padding: 6rem 0;
    background: white;
}

.categories-section-modern {
    padding: 6rem 0;
    background: #fafbfc;
}

/* ============================================
   RESPONSIVE - AMÉLIORATIONS
   ============================================ */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .products-grid-modern,
    .products-grid-shop {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .section-header-center {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-section-modern {
        padding: 3rem 0;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .products-grid-modern,
    .products-grid-shop {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .categories-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .product-info-modern,
    .product-info-shop {
        padding: 1.25rem;
    }
    
    .product-name,
    .product-name-shop {
        font-size: 1rem;
    }
    
    .price-current-large,
    .product-price-shop {
        font-size: 1.25rem;
    }
}

/* ============================================
   ANIMATIONS FLUIDES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-modern,
.product-card-shop,
.category-card-modern {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   UTILITAIRES MODERNES
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-modern {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-modern-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-modern-hover:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
