/* =========================
   profil.css
   Styles spécifiques à la page "Contactez nous"
   ========================= */

/*--------------------------------------------------------------
# Hero3 Section
--------------------------------------------------------------*/
.hero2 {
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    background-color: transparent;
}

.hero2::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 130%;
    height: 95%;
    background:
        linear-gradient(
            to right,
            color-mix(in srgb, var(--background-color), transparent 90%),
            var(--background-color)
        ),
        url("../../pictures/background/offres.jpg") center top no-repeat;
    background-size: cover;
    z-index: -1;
    border-radius: 0 0 50% 50%;
    transform: translateX(-50%) rotate(0deg);
}

.hero2::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 130%;
    height: 96%;
    background: var(--background-color);
    opacity: 0.3;
    z-index: -1;
    border-radius: 0 0 50% 50%;
    transform: translateX(-50%) translateY(18px) rotate(2deg);
}

.hero2 img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero2 p {
        width: 60%;
    }
}

@media (max-width: 768px), (max-height: 700px) {
    .hero2 h2 {
        font-size: 28px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
