/* Hero Montage Style - Inspired by split-image effect with 4 images */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 0;
    opacity: 1 !important;
    overflow: hidden;
    background: #1a1a1a !important;
}

.hero-background::before {
    display: none !important;
}

/* 3 sections qui se divisent avec clip-path */
.hero-montage-item {
    position: absolute;
    width: 33.33%;
    height: 100%;
    overflow: hidden;
}

/* Image 1 - À gauche */
.hero-montage-item:nth-child(1) {
    left: 0;
    width: 34%;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

/* Image 2 - Centre */
.hero-montage-item:nth-child(2) {
    left: 32%;
    width: 36%;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

/* Image 3 - À droite */
.hero-montage-item:nth-child(3) {
    right: 0;
    width: 34%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

/* Images */
.hero-montage-item {
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.2) contrast(1.1) blur(1px);
}

/* Animations montage */
.animate-montage-1 {
    animation: slideDownMontage 0.8s ease-out 0.8s both;
}

.animate-montage-2 {
    animation: slideDownMontage 0.8s ease-out 1s both;
}

.animate-montage-3 {
    animation: slideDownMontage 0.8s ease-out 1.2s both;
}

.animate-montage-4 {
    animation: slideDownMontage 0.8s ease-out 1.4s both;
}

@keyframes slideDownMontage {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-montage-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Hero overlay - pas d'overlay général */
.hero-overlay {
    display: none;
}

/* Hero content - sans fond avec texte lisible */
.hero-content {
    position: relative;
    z-index: 10 !important;
    background: transparent;
    padding: 3rem 2.5rem;
    text-align: left;
    max-width: 800px;
    margin-left: 5%;
}

.hero-title {
    color: #ffffff;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

.hero-title .title-light {
    font-weight: 800;
    font-size: 1.1em;
    text-shadow:
        0 5px 15px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(0, 0, 0, 0.8);
}

.hero-title .highlight-word {
    font-weight: 800;
    font-size: 1.1em;
    text-shadow:
        0 5px 15px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
    color: #ffffff;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    font-size: 1.35rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

.key-point-text {
    color: #ffffff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9);
    font-size: 1.15rem;
}

.key-point-highlight {
    color: #ffffff !important;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-buttons .btn {
    animation: ctaFloat 4s ease-in-out infinite;
}

.hero-buttons .btn:nth-child(1) {
    animation-delay: 0s;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes ctaFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }
}

@media (min-width: 821px) and (max-width: 1440px) {
    .hero-badge {
        margin-top: 60px;
    }

    /* Image de gauche - privilégier left */
    .hero-montage-item:nth-child(1) {
        background-position: left center !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        margin-top: 80px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .key-point-text {
        font-size: 0.95rem;
        text-align: left;
    }

    .hero-content {
        padding: 1.5rem 1rem;
        text-align: center;
        margin-left: 0;
    }

    .hero-key-points {
        justify-content: center;
    }

    .key-point {
        text-align: left;
    }

    .hero-buttons {
        justify-content: center;
    }
}

.hero-section::before,
.hero-section::after {
    display: none !important;
}

/* Responsive - 3 images empilées verticalement pour mobile et tablettes */
@media (max-width: 820px) {
    .hero-background {
        flex-direction: column;
    }

    .hero-montage-item {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        height: 33.33% !important;
        clip-path: none !important;
    }

    .hero-montage-item:nth-child(1),
    .hero-montage-item:nth-child(2),
    .hero-montage-item:nth-child(3) {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        height: 33.33% !important;
        clip-path: none !important;
    }

    /* Inversion de l'ordre des images 1 et 2 pour mobile/tablette */
    .hero-montage-item:nth-child(1) {
        order: 2;
        background-position: center 28% !important;
    }

    .hero-montage-item:nth-child(2) {
        order: 1;
        background-position: center 20% !important;
    }

    .hero-montage-item:nth-child(3) {
        order: 3;
    }
}
