/* ============================================
   BOUTIQUE - Styles spécifiques
   Hérite de style.css (variables, header, footer, etc.)
   ============================================ */

/* Bannière promo */
.promo-banner {
    background: linear-gradient(135deg, #1e4294 0%, #2d5ac4 50%, #1e4294 100%);
    background-size: 200% 200%;
    animation: promoBannerShift 6s ease infinite;
    padding: 14px 0;
}
@keyframes promoBannerShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.promo-banner-icon { font-size: 1.3rem; }
.promo-banner-text {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    font-weight: 500;
}
.promo-banner-text strong { color: #fff; font-weight: 700; }
.promo-banner-code {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1.5px dashed rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    user-select: all;
}
.promo-banner-code:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
}
.promo-banner + .boutique-hero { padding-top: 100px; }
@media (max-width: 600px) {
    .promo-banner { padding: 12px 0; }
    .promo-banner-content { gap: 8px; }
    .promo-banner-text { font-size: 0.85rem; }
    .promo-banner-code { font-size: 0.85rem; padding: 5px 12px; }
}

/* Header nav pour la boutique */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(30, 66, 148, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(30, 66, 148, 0.1);
    font-weight: 600;
}

/* Hero Boutique */
.boutique-hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.boutique-hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    opacity: 0;
}

.boutique-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.boutique-hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s;
}

.btn-back:hover {
    gap: 12px;
}

.btn-back svg {
    transition: transform 0.3s;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* Filtres */
.boutique-filters {
    padding: 40px 0 20px;
    background: var(--bg);
    position: sticky;
    top: 88px;
    z-index: 100;
    border-bottom: 1px solid rgba(30, 66, 148, 0.08);
}

.filters-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-light);
    background: var(--surface);
    border: 2px solid transparent;
    transition: all 0.3s;
    font-family: 'Lexend', sans-serif;
}

.filter-btn:hover {
    color: var(--primary);
    background: rgba(30, 66, 148, 0.08);
    border-color: rgba(30, 66, 148, 0.15);
}

.filter-btn.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 66, 148, 0.25);
}

.results-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Grille Produits */
.boutique-products {
    padding: 60px 0 100px;
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* Card Produit */
.product-card {
    background: white;
    border-radius: 24px;
    border: 2px solid rgba(30, 66, 148, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 66, 148, 0.2);
    box-shadow: 0 24px 48px rgba(30, 66, 148, 0.12);
}

/* Badge */
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-badge.out-of-stock {
    background: #ef4444;
    left: auto;
    right: 16px;
}

/* Image placeholder */
.product-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(30, 66, 148, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    opacity: 0.3;
    transition: all 0.4s;
}

.product-card:hover .product-placeholder {
    opacity: 0.5;
    transform: scale(1.1);
}

/* Infos produit */
.product-info {
    padding: 28px 28px 32px;
}

.product-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer produit */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid rgba(30, 66, 148, 0.06);
}

.product-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 4px 12px rgba(30, 66, 148, 0.2);
}

.product-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 66, 148, 0.3);
}

.product-btn svg {
    transition: transform 0.3s;
}

.product-btn:hover svg {
    transform: translateX(3px);
}

.product-btn.disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* Aucun produit */
.no-products {
    text-align: center;
    padding: 100px 0;
    color: var(--text-light);
}

.no-products svg {
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 24px;
}

.no-products h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 12px;
}

.no-products p {
    font-size: 16px;
    margin-bottom: 32px;
}

/* CTA Section */
.boutique-cta {
    padding: 80px 0 120px;
    background: var(--bg);
}

.cta-card {
    background: var(--surface);
    border: 2px solid rgba(30, 66, 148, 0.08);
    border-radius: 32px;
    padding: 80px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.cta-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .boutique-hero h1 {
        font-size: 52px;
    }

    .cta-card h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .boutique-hero {
        padding: 110px 0 50px;
    }

    .boutique-hero h1 {
        font-size: 32px;
    }

    .boutique-hero p {
        font-size: 16px;
    }

    .boutique-filters {
        top: 64px;
        padding: 16px 0 12px;
    }

    .filters-bar {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        flex-wrap: nowrap;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .boutique-hero {
        padding: 100px 0 40px;
    }

    .boutique-hero h1 {
        font-size: 26px;
    }

    .boutique-hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .boutique-filters {
        top: 58px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-price {
        font-size: 16px;
    }

    .cta-card {
        padding: 28px 20px;
    }

    .cta-card h2 {
        font-size: 20px;
    }

    .cta-card p {
        font-size: 13px;
    }
}
