/* .hero {
    max-height: 450px;
    overflow: hidden; 
} */

.hero__image {
    max-height: 450px;
    overflow: hidden;
}

.hero__image img {
    /* display: block;
    width: 100%; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__gradient {
    display: none;     
}

.hero__description {
    background-color: var(--secondaire);
    padding-inline: 1rem;
    padding-block: 2rem;
    position: relative;
}

.hero__contenu {       
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.hero__contenu h1 {
    font-size: 1.2rem;
}

.hero__contenu p {
    color: var(--gris-fonce);
}

.hero__description::before {
    content: "";
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--secondaire) 20%,var(--secondaire-60) 70%, transparent 100%);

    position: absolute;
    top: -100px;
    left: 0;  
}

.hero__actions-container {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.hero__actions-container a:nth-child(2){
 text-align: center;
}

.hero .contact-item  {
    justify-content: center;
}

/* ========================== media queries */
@media (min-width : 400px) {
    .hero__contenu h1 {
        font-size: 1.5rem;
    }
}

@media (min-width : 450px) {
    .hero__description::before {
        background: linear-gradient(to top, var(--secondaire) 30%,var(--secondaire-60) 80%, transparent 100%);
    }

    .hero__actions-container {
        max-width: 230px;
    }  
}

@media (min-width : 850px) {
    .hero {
        display: grid;
        /* max-height: 450px; */
    }

    .hero__image {
        width: 60%;
        max-height: none;

        grid-area: 1/1;
        z-index: 1;
        justify-self: right;
    }

    .hero__image  img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero__gradient {
        display: block;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, var(--secondaire) 42%,var(--secondaire-60) 80%, transparent 100%);

        grid-area: 1/1;
        z-index: 2;
    }

    .hero__description {
        width: 50%;
        background-color: transparent;
        /* padding-block: 0; */

        grid-area: 1/1;
        z-index: 3;
        align-self: center;
    }

    .hero__description::before {
        content: none;
    }
}

@media (min-width : 1200px) {
    .hero__description {
        padding-block: 0;
    }
}