/* Dynamic Hero Section with Animated Gradient Background */

:root {
    --dynamic-hero-primary: var(--primary, #007bff);
    --dynamic-hero-bg: #fafbfe;
    --dynamic-hero-text: #1a202c;
    --dynamic-hero-text-light: #64748b;
    --dynamic-hero-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --dynamic-hero-shadow-hover: 0 25px 70px rgba(0, 0, 0, 0.12);
}

/* Section principale */
.dynamic-hero {
    position: relative;
    background: transparent;
    font-family: var(--shop-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    overflow: hidden;
    width: 100%;
}

.dynamic-hero__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

/* Overlay dégradé subtil en arrière-plan */
.dynamic-hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: transparent;
}

/* Grille principale asymétrique */
.dynamic-hero__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Zone média */
.dynamic-hero__media-zone {
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dynamic-hero__image-container {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--dynamic-hero-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-hero__image-container:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-8px);
    box-shadow: var(--dynamic-hero-shadow-hover);
}

.dynamic-hero__image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.dynamic-hero__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* Badge promo flottant */
.dynamic-hero__promo-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--dynamic-hero-primary) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.dynamic-hero__promo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-hero__promo-icon i {
    font-size: 1.25rem;
    color: white;
}

.dynamic-hero__promo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.dynamic-hero__promo-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.dynamic-hero__promo-value {
    font-size: 1.5rem;
    color: white;
    font-weight: 800;
    line-height: 1;
}

/* Zone de contenu */
.dynamic-hero__content-zone {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.dynamic-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dynamic-hero-text);
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.dynamic-hero__description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--dynamic-hero-text-light);
    margin: 0 0 2.5rem;
    max-width: 90%;
}

/* Groupe de CTA */
.dynamic-hero__cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.dynamic-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.125rem 2.25rem;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.dynamic-hero__btn--filled {
    background: var(--dynamic-hero-primary);
    color: white !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dynamic-hero__btn--filled:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
    color: white !important;
    background: var(--dynamic-hero-primary) !important;
}

.dynamic-hero__btn-arrow {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-hero__btn:hover .dynamic-hero__btn-arrow {
    transform: translateX(4px);
}

/* Badges de confiance */
.dynamic-hero__trust-badges {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dynamic-hero__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dynamic-hero-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

.dynamic-hero__badge i {
    font-size: 1.25rem;
    color: var(--dynamic-hero-primary);
}

/* Section statistiques */
.dynamic-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.dynamic-hero__stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-hero__stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dynamic-hero__stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--dynamic-hero-primary), rgba(0, 0, 0, 0.3));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dynamic-hero__stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.dynamic-hero__stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dynamic-hero__stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dynamic-hero-text);
    line-height: 1;
}

.dynamic-hero__stat-label {
    font-size: 0.875rem;
    color: var(--dynamic-hero-text-light);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .dynamic-hero__wrapper {
        gap: 4rem;
    }
}

@media (max-width: 991px) {
    .dynamic-hero__container {
        padding: 3rem 1.5rem 2.5rem;
    }

    .dynamic-hero__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .dynamic-hero__media-zone {
        order: -1;
    }

    .dynamic-hero__image-container {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .dynamic-hero__image-container:hover {
        transform: translateY(-8px);
    }

    .dynamic-hero__content-zone {
        text-align: center;
    }

    .dynamic-hero__description {
        max-width: 100%;
    }

    .dynamic-hero__cta-group {
        justify-content: center;
    }

    .dynamic-hero__trust-badges {
        justify-content: center;
    }

    .dynamic-hero__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

@media (max-width: 576px) {
    .dynamic-hero__container {
        padding: 2rem 1.25rem;
    }

    .dynamic-hero__image {
        aspect-ratio: 1/1;
    }

    .dynamic-hero__promo-badge {
        padding: 0.75rem 1rem;
        top: 1rem;
        right: 1rem;
    }

    .dynamic-hero__promo-icon {
        width: 2rem;
        height: 2rem;
    }

    .dynamic-hero__promo-icon i {
        font-size: 1rem;
    }

    .dynamic-hero__promo-value {
        font-size: 1.25rem;
    }

    .dynamic-hero__btn {
        width: 100%;
        justify-content: center;
    }

    .dynamic-hero__trust-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .dynamic-hero__stat-item {
        padding: 1.25rem;
    }

    .dynamic-hero__stat-icon {
        width: 3rem;
        height: 3rem;
    }

    .dynamic-hero__stat-icon i {
        font-size: 1.25rem;
    }

    .dynamic-hero__stat-value {
        font-size: 1.5rem;
    }
}

/* Mode réduit pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    .dynamic-hero__shape,
    .dynamic-hero__media-zone,
    .dynamic-hero__content-zone,
    .dynamic-hero__stats,
    .dynamic-hero__promo-badge {
        animation: none;
    }

    .dynamic-hero__image-container:hover,
    .dynamic-hero__btn:hover,
    .dynamic-hero__stat-item:hover {
        transform: none;
    }
}
