/**** Fonts ****
    font-family: 'Poppins', sans-serif;
    font-family: 'Pattaya', sans-serif;
 */

/* global style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Poppins", sans-serif;
}

h1 {
  font-size: 2.6rem;
}

li,
button,
label,
input,
p {
  font-size: 2rem;
}
h2 {
  font-size: 4.8rem;
}
h3 {
  font-size: 3rem;
  font-weight: normal;
}
h4,
h5 {
  font-size: 2.8rem;
}
a {
  color: white;
  text-decoration: none;
}

button {
  padding: 2rem 6rem;
  background-color: #374e6b;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 1s ease;
  /* animation: cloudAnimation 2s infinite alternate; */
}

button:hover {
  background: #4c6e97;
}

/* Nav Section with HERO */
.main-head {
  background: #131c27;
  color: white;
  /* position sticky permet de conserver la barre de navigation visible sur l'ensemble du scroll down. */
  position: sticky;
  /* indique la position où la barre de navigation devra se trouver */
  top: 0px;
  z-index: 3;
}
nav {
  min-height: 10vh;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 90%;
  margin: auto;
}

#logo {
  flex: 2 1 40rem;
  font-family: "Pattaya", sans-serif;
  font-weight: 400;
}
nav ul {
  display: flex;
  flex: 1 1 40rem;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}

.hero {
  /* on applique un effet de dégradé entre un noir legerement transparent jusqu'à une transparence totale que l'on applique en superposition de l'image choisie pour le fond */
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent),
    url("./img/landing-page.jpg");
  min-height: 90vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h3 {
  padding: 5rem;
}

/* LOCATIONS SECTION */
#locations {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent),
    url(./img/new-york-page.png);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  /* tout ce qui va au dela de la section est invisible */
  overflow: hidden;
  z-index: -3;
}

.locations-head {
  width: 90%;
  margin: auto;
}

.locations-head h2 {
  padding: 1rem 0rem;
  text-decoration: underline;
  /* Pour élargir ou réduire l'épaisseur du soulignement */
  text-decoration-thickness: 0.5rem;
}

.locations-head h3 {
  padding: 4rem 0rem;
  /* background: linear-gradient(#131c27, #663b34); */
  /* pour limiter la couleur du background au texte et non pas à l'ensemble de l'élément */
  /* background-clip: text; */
  /* pour appliquer au texte une transparence et ainsi laisser apparaitre la couleur du background */
  /* -webkit-text-fill-color: transparent; */
}

.cloud {
  position: absolute;
}

.moving-cloud-1 {
  top: 0rem;
  right: 0rem;
  animation: cloudAnimation 20s infinite alternate ease-in-out;
  z-index: -1;
}

.moving-cloud-2 {
  top: 15%;
  right: 0%;
  z-index: -1;
  opacity: 0.7;
  animation: cloudAnimation 17s infinite alternate ease-in-out;
  z-index: -2;
}

/* Benefits section */
.benefits-head {
  background: #343c44;
  padding: 3rem;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.benefits-head h3 {
  padding: 1rem;
}

.cards {
  width: 90%;
  margin: auto;
  display: flex;
  min-height: 70vh;
  /* par défault, si align center n'est pas indiqué, le container prendra un aspect étendu aka "STRETCH", il faut donc indiquer une valeur à align center pour pouvoir redimensionner les éléments à l'intérieur du container.*/
  align-items: center;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 40rem;
  min-height: 40vh;
  margin: 2rem 5rem;
  /* on peux supperposer plusieurs box shadow l'une sur l'autre de façon à obtenir un effet plus accentué */
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.103),
    0px 20px 20px rgba(0, 0, 0, 0.103);
  text-align: center;
}

.card h4,
.card p {
  padding: 1rem;
}

.card-icon {
  background: #374e6b;
}

.cards img {
  max-width: 15%;
  margin: 2rem;
}

/* Contact Section */
.contact {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent),
    url(./img/contact-mountain.png);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-wrapper {
  background: rgba(19, 28, 39, 0.801);
  width: 60%;
  color: white;
  border-radius: 20px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-5%, 0%);
}

.form-wrapper label {
  margin-right: 3rem;
}

.form-wrapper button {
  width: 100%;
  padding: 2rem;
  margin-top: 8rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transform: translate(5%, 0%);
}

.form-wrapper input {
  padding: 1rem 3rem;
  width: 40rem;
}

.form-head {
  text-align: center;
  padding: 4rem;
}

.name-form,
.email-form,
.message-form,
textarea {
  padding: 3rem;
  width: 40rem;
}

/* FOOTER */
footer {
  color: white;
  background: rgb(19, 28, 39);
}

.footer-wrapper {
  display: flex;
  padding: 2rem;
  width: 90%;
  margin: auto;
  align-items: center;
  min-height: 10vh;
  flex-wrap: wrap;
}

.footer-wrapper h5 {
  flex: 1 1 40rem;
}

.footer-wrapper ul {
  display: flex;
  list-style: none;
  flex: 1 1 40rem;
  justify-content: space-between;
  align-items: center;
}

button:focus {
  background: #1f2e3d;
  outline-style: solid;
}

/*  ANIMATIONS */
@keyframes cloudAnimation {
  from {
    transform: translate(10%, -10%);
  }
  to {
    transform: translate(0%, 0%);
  }
}

/* MEDIA QUERIES */
@media screen and (max-width: 932px) {
  html {
    font-size: 45%;
  }
  nav {
    text-align: center;
  }
  #logo {
    padding: 2rem;
  }
  .cloud {
    height: 50rem;
  }

  .name-form input,
  .email-form input,
  .message-form input,
  textarea {
    padding: 2rem;
    width: 40rem;
  }

  .form-wrapper {
    min-width: 90%;
  }

  footer {
    text-align: center;
  }

  footer h5 {
    padding-bottom: 3rem;
  }
}
