/* Fix for Product Page Hero Section Issues */

/* Smooth header to hero transition */
.header {
    position: relative;
    z-index: 100;
}

/* Product Hero Section Fix */
.product-hero,
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 60px 0 0px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Prevent content overlap */
.product-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left content section */
.product-hero-left {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
}

.product-hero-left h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.product-badge,
.product-header .product-badge {
    background-color: #a2710f;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: -50px;
    display: inline-block;
}

.product-hero-left .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Product features list */
.product-features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features-list li {
    color: var(--color-white);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-features-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* Price display fix */
.product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 2rem 0;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.product-price .price-amount,
.price,
.price-display .price {
    font-size: 3rem;
    font-weight: 700;
    color: #0f1829;
}

.product-price .price-period {
    color: var(--color-gray-600);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Video container fix */
.product-hero-right {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
}

.product-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: var(--transition-base);
}

.product-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.product-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-xl);
}

/* CTA Buttons */
.product-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-hero-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.product-hero-cta .btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.product-hero-cta .btn-white:hover {
    background: var(--color-gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--color-primary);
}

/* Styles pour tous les boutons outline sur fond violet */
section.product-hero .btn.btn-outline-primary,
section.product-hero a.btn.btn-outline-primary.btn-lg,
.product-hero .btn-outline-primary,
.product-hero-cta .btn-outline,
.product-hero-cta .btn-outline-primary,
.hero-section .btn-outline,
.hero-section .btn-outline-primary {
    background: #FFFFFF !important;
    color: #6366F1 !important;
    border: 2px solid #FFFFFF !important;
    font-weight: 600 !important;
}

section.product-hero .btn.btn-outline-primary:hover,
section.product-hero a.btn.btn-outline-primary.btn-lg:hover,
.product-hero .btn-outline-primary:hover,
.product-hero-cta .btn-outline:hover,
.product-hero-cta .btn-outline-primary:hover {
    background: #F1F5F9 !important;
    color: #6366F1 !important;
    border-color: #F1F5F9 !important;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .product-hero {
        padding: 60px 0 40px;
    }
    
    .product-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .product-hero-left {
        order: 2;
    }
    
    .product-hero-right {
        order: 1;
        max-width: 100%;
    }
    
    .product-features-list {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
    
    .product-hero-cta {
        justify-content: center;
    }
    
    .product-price {
        margin: 1.5rem auto;
        display: inline-flex;
    }
}

/* Fix for sections spacing */
main > section {
    padding: 4rem 0;
}

main > section:first-child {
    padding-top: 0;
}

/* Additional fixes for better visual hierarchy */
.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}