/* ========== PRODUCTS BENTO GRID ========== */

/* Section */
.section--products {
    background: linear-gradient(180deg, var(--ilo-white) 0%, #f8fbfc 100%);
    padding: 100px 24px;
}

.section__subtitle {
    margin: 16px auto 0 auto;
    max-width: 600px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: var(--ilo-grey);
    text-align: center;
    line-height: 1.6;
}

/* Bento Grid Container - Cards carrées */
.products-bento {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Bento Item Base - Taille carrée fixe */
.product-bento__item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 247, 251, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 8px 32px rgba(23, 39, 45, 0.06),
        0 2px 8px rgba(23, 39, 45, 0.04);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    width: 340px;
    height: 420px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .product-bento__item {
        width: 100%;
        height: auto;
        min-height: 420px;
    }
}

.product-bento__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    z-index: 1;
    border-radius: 28px 28px 0 0;
}

.product-bento__item:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 32px 64px rgba(36, 180, 177, 0.15),
        0 16px 32px rgba(23, 39, 45, 0.08);
    border-color: rgba(36, 180, 177, 0.3);
}

/* ========== AI GLOW EFFECT ========== */
.product-bento__item--ai {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2),
        0 0 60px rgba(168, 85, 247, 0.15);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 0, 128, 0.3),
            0 0 40px rgba(99, 102, 241, 0.2),
            0 0 60px rgba(168, 85, 247, 0.15);
    }
    33% {
        box-shadow: 
            0 0 25px rgba(0, 207, 255, 0.35),
            0 0 50px rgba(0, 255, 136, 0.25),
            0 0 70px rgba(255, 140, 0, 0.15);
    }
    66% {
        box-shadow: 
            0 0 25px rgba(168, 85, 247, 0.35),
            0 0 50px rgba(255, 0, 128, 0.25),
            0 0 70px rgba(99, 102, 241, 0.15);
    }
}

.product-bento__item--ai:hover {
    animation: none;
    box-shadow: 
        0 0 40px rgba(255, 0, 128, 0.4),
        0 0 80px rgba(168, 85, 247, 0.3),
        0 0 100px rgba(0, 207, 255, 0.2),
        0 20px 50px rgba(23, 39, 45, 0.15);
    transform: translateY(-16px) scale(1.02);
}

/* AI Badge - Gradient multicolore */
.product-bento__ai-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff0080 0%, #a855f7 50%, #6366f1 100%);
    border-radius: 50px;
    z-index: 3;
    box-shadow: 
        0 8px 24px rgba(168, 85, 247, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-bento__ai-badge span {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* AI Card - Prix en couleur spéciale */
.product-bento__item--ai .product-bento__price {
    background: linear-gradient(135deg, #ff0080 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* AI Card - Bouton spécial */
.product-bento__item--ai .product-bento__btn {
    background: linear-gradient(135deg, #ff0080 0%, #a855f7 50%, #6366f1 100%);
}

.product-bento__item--ai:hover .product-bento__btn {
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5);
}

/* Top Badge */
.product-bento__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--ilo-blue) 0%, #1da09d 100%);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(36, 180, 177, 0.35);
}

/* Visual (Image container) - Hauteur fixe */
.product-bento__visual {
    position: relative;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(241, 247, 251, 0.8), rgba(255, 255, 255, 0.6));
    height: 220px;
    overflow: hidden;
    z-index: 1;
    border-radius: 28px 28px 0 0;
}

.product-bento__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 16px 32px rgba(23, 39, 45, 0.12));
}

.product-bento__item:hover .product-bento__image {
    transform: scale(1.08);
}

/* Content */
.product-bento__content {
    padding: 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-bento__info {
    margin-bottom: 20px;
}

.product-bento__title {
    margin: 0 0 8px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ilo-black);
    letter-spacing: -0.01em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-bento__description {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--ilo-grey);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action (Price + Button) */
.product-bento__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.product-bento__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ilo-blue);
    letter-spacing: -0.02em;
}

/* AI Card - Prix en couleur spéciale */
.product-bento__item--ai .product-bento__price {
    background: linear-gradient(135deg, var(--ilo-blue) 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-bento__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--ilo-black) 0%, #2a363d 100%);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.product-bento__btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.product-bento__item:hover .product-bento__btn {
    background: linear-gradient(135deg, var(--ilo-blue) 0%, #1da09d 100%);
    box-shadow: 0 8px 24px rgba(36, 180, 177, 0.4);
}

/* AI Card - Bouton spécial */
.product-bento__item--ai .product-bento__btn {
    background: linear-gradient(135deg, var(--ilo-blue) 0%, #06b6d4 50%, #10b981 100%);
}

.product-bento__item--ai:hover .product-bento__btn {
    box-shadow: 0 8px 32px rgba(36, 180, 177, 0.5);
}

.product-bento__item:hover .product-bento__btn svg {
    transform: translateX(3px);
}

/* CTA Section */
.products-cta {
    text-align: center;
    margin-top: 48px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .products-bento {
        gap: 20px;
    }
    
    .product-bento__item {
        width: 320px;
        height: 400px;
    }
    
    .product-bento__visual {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section--products {
        padding: 60px 16px;
    }
    
    .section__subtitle {
        font-size: 15px;
        padding: 0 16px;
    }
    
    .products-bento {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .product-bento__item {
        width: 100%;
        max-width: 340px;
        height: 380px;
        border-radius: 24px;
    }
    
    .product-bento__visual {
        padding: 24px;
        height: 180px;
        border-radius: 24px 24px 0 0;
    }
    
    .product-bento__content {
        padding: 20px;
    }
    
    .product-bento__title {
        font-size: 16px;
        min-height: 44px;
    }
    
    .product-bento__price {
        font-size: 20px;
    }
    
    .product-bento__btn {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .product-bento__badge {
        top: 14px;
        left: 14px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .product-bento__ai-badge {
        top: 14px;
        right: 14px;
        padding: 8px 14px;
    }
    
    .product-bento__ai-badge span {
        font-size: 10px;
    }
}
