/* ------ PAGE ACCUEIL ---------- */

/* ------ Section HEADLINE-UA */

#headline-ua {
  width: 100%;
  background: #F1F2F4;
  margin-top: 50px;
  padding: 50px 0;
}

#headline-container {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  gap: 4rem;
  flex-wrap: wrap;
}

/* ----- IMAGE ----- */
.headline-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headline-image figure {
  width: 100%;
  margin: 0;
}

.headline-image figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; 
}

/* ----- TEXTE ----- */
.headline-intro {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.headline-intro h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  color: #434E64;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.headline-intro p {
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 20px;
  color: #434E64;
}

.headline-intro .btn-lien-avant {
width: fit-content;
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  border-radius: 100px;
  background-color: #EF5E04;
  color: #FFF;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  padding: 7px 20px;
  text-decoration: none;
}

.headline-intro .btn-lien-avant:hover {
  background-color: #d44f03;
  text-decoration: none;
}

/* ---------- Responsive ---------- */

/* Tablette et moins */
@media screen and (max-width: 1024px) {
    #headline-container {
        flex-direction: column;
        width: 90%;
    }

    .headline-image,
    .headline-intro {
        flex: 1 1 100%;
        width: 100%; 
        max-width: 100%; 
        text-align: center;
    }

    .headline-image {order:2;}
    .headline-intro {order:1;}

    .headline-image figure {
        width: 75%;
    }

    .headline-image figure img {
        max-width: 100%;
        height: auto;
    }

    .headline-intro h1,
    .headline-intro p {
        text-align: center;
    }

    .headline-intro .btn-lien-avant {
        margin: 0 auto;
    }
}

/* Petits écrans */
@media screen and (max-width: 600px) {
    .headline-image figure img {
        max-width: 100%;
        height: auto;
    }

    .headline-image {order:2;}
    .headline-intro {order:1;}

    .headline-intro h1 {
        font-size: 24px;
    }
}


