/*Page style "Qui sommes nous"*/
.hero{
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6)), url(../img/iStock-621853924.jpg);
    height:40vh;
    width:100%;
    position: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 69%;
    z-index: -999;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 150px 0;
}

h1{
    font-weight: 600;
    color: var(--second-color);
    font-size: 3rem;
    line-height: 0.9;
    white-space: nowrap;
    text-transform: capitalize;
    text-align: center;
    color: var(--second-color);
}

.about{
    width: 100%;
    margin: auto;
    padding: 85px 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url(../img/marbre.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.about-main {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative; /* Add this line */
}

.background-image-container {
    position: relative;
    width: 100%; /* Ensure the container takes full width */
}

.left {
    position: relative; /* Add this line */
}

.background-image {
    width: 1400px;
    position: absolute;
    z-index: 0;
    transform: translate(-520px, -280px);
}

.about-us-image {
    position: relative;
    height: 500px;
    object-fit: cover;
    width: 500px;
    min-width: 200px;
    z-index: 2;
}

.right {
    background-color: white;
    padding: 40px;
    width: 50%;
    margin: 0;
    text-align: center;
}

.right h2 {
    font-size: 25px;
    font-weight: 900;
    text-transform: capitalize;
    margin-bottom: 5px;
    letter-spacing: 2px;
    color: var(--second-color);
}

.right h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    color: var(--second-color);
}

.about-text-p {
    color: var(--second-color);
    letter-spacing: 0.5px;
    font-size: 15px;
    margin-bottom: 15px;
}

.team-valor{
    text-align: center;
    padding-top: 40px;
}

.about-valor{
    width: 90%;
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: baseline;
    flex-wrap: wrap;
    padding-bottom: 50px;
}

.team-valor h3{
    font-size: 2rem;
    font-weight: 700;
    color: var(--second-color);
    text-transform: uppercase;
    font-style: italic;
    padding: 80px;
}

.about-valor img{
    width: 150px;
}

.about-valor h4{
    padding: 20px;
    color: var(--main-color);
}

.about-btn{
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 1200px) {
    .about-us-image{
        width: 400px;
        height: 400px;
    }
    .background-image{
        width: 1150px;
        transform: translate(-430px, -230px);
    }
}

@media (max-width: 1024px) {
    .about-main{
        flex-direction: column;
        text-align: center;
        width: 90%;
    }
    .about-us-image{
        order: 1;
        width: 400px;
        height: 400px;
        margin: auto;
        padding: 0 0 40px 0;
    }
    .background-image{
        width: 900px;
        transform: translate(-340px, -180px);
    }
    .right{
        order: 2;
        width: 95%;
        margin: auto;
        min-width: 100px;
        left: 0;
        padding: 0;
    }
    h1{
        font-size: 1.5rem;
    }
    .valor-card{
        width: 50%;
    }
    .valor-card h3{
        font-size: 0.8rem;
    }
    .about-valor img{
        width: 100px;
    }
}

@media (max-width: 700px) {
    .hero{
        background-position: center;
    }
    .left{
        width: 100%;
        height: auto;
    }
    .about-us-image{
        width: 350px;
        height: 350px;
    }
    .background-image{
        width: 0;
    }
}