/* scoll de coter qui fait bouger la nav */

body {
  background-color: rgba(46, 40, 228, 0.388);
  margin: 0;
  min-width: 48em;
}
a {
  text-decoration: none;
  color: white;
}

nav {
  /* border: solid; */
  margin-top: 3.1em;
}
nav ul img {
  width: 9em;
  height: 3em;
}
#nav ul {
  display: flex;
  position: fixed;
  list-style-type: none;
  background-color: rgba(0, 0, 0, 0.616);
  z-index: 99;
  top: 0;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding-inline-start: 0;
}
.active {
  color: red; /* Couleur rouge pour le lien actif */
}
#nav li {
  color: white;
}
#nav li a {
  font-size: 1.8em;
  font-weight: 600;
}

#footer {
  background-color: gray;
  text-align: center;
  bottom: 0;
  width: 100%;
}
#footer p {
  margin: 0;
  padding: 0.6em;
}
footer i {
  width: 100px;
  font-size: 3.5em;
}
footer p a:nth-of-type(1) {
  color: rgb(0, 0, 0);
}
footer p a:nth-of-type(2) {
  color: rgb(251, 255, 0);
}
footer p a:nth-of-type(3) {
  color: rgb(255, 0, 0);
}
/* -----------ACCUEIL---------- */

body#accueil header {
  text-align: center;
}
body#accueil header img {
  border: solid 0.6em;
}
body#accueil header figure img {
  background-color: grey;
  width: 23em;
  height: 15em;
  border-radius: 100%;
}
body#accueil main {
  text-align: center;
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.5em;
}
/* ----------Maisons----------- */
/* retrait image */
main#maisons {
  background-image: url("/storage/img/imgaccueil/banderollecote1.png"),
    url("/storage/img/imgaccueil/banderollecote1.png");
  background-position: top left, top right;
  /* background-image: url("/storage/img/imgaccueil/banderollecote2.png"); */
  background-repeat: no-repeat;
  background-size: 13em;
  /* height: 700px; */
  /* min-width: 940px; */
}

main#maisons article {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 1em 11em;
}
main#maisons section {
  width: 14em;
  text-align: center;
}

main#maisons section:nth-of-type(1) {
  background-color: rgba(255, 0, 0, 0.719);
  border: solid 0.6em rgba(255, 0, 0);
  border-radius: 1em;
  box-shadow: 0 0 1.5em rgb(0, 0, 0);
}

main#maisons section:nth-of-type(2) {
  background-color: rgba(51, 255, 0, 0.554);
  border: solid 10px rgba(51, 255, 0);
  border-radius: 1em;
  box-shadow: 0 0 1.5em rgb(0, 0, 0);
}
main#maisons section:nth-of-type(3) {
  background-color: rgba(0, 102, 255, 0.554);
  border: solid 10px rgba(0, 102, 255);
  border-radius: 1em;
  box-shadow: 0 0 1.5em rgb(0, 0, 0);
}
main#maisons section:nth-of-type(4) {
  background-color: rgba(255, 251, 0, 0.554);
  border: solid 10px rgba(255, 251, 0);
  border-radius: 1em;
  box-shadow: 0 0 1.5em rgb(0, 0, 0);
}

main#maisons section:hover {
  box-shadow: 0px 0px 500px rgb(0, 0, 0);
  transform: scale(1.1);
}

main#maisons figure {
  margin: 0;
}
main#maisons figure img {
  width: 100%;
  height: 12.5em;
}
main#maisons figure p {
  height: 15.5em;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.3em;
}
main#maisons h1 {
  font-size: 1.9em;
  line-height: 1.3em;
  margin-top: 0.7em;
}
/* ----------PRODUITS----------- */

main#produits article {
  /* min-width: 64em;
  max-width: 154em; */
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
}
main#produits section {
  display: grid;
  border: solid 10px;
  border-radius: 1em;
  margin: 1em 3.5em;
  width: 15em;
  background-color: rgb(210, 207, 207);
}
main#produits img {
  width: 15em;
  height: 12.5em;
}
main#produits p {
  font-size: larger;
}

main#produits figure {
  margin: 0;
}
main#produits h1 {
  text-align: center;
  color: rgb(255, 0, 0);
  font-size: 5em;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.169);
  box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.169);
}
main#produits section:hover {
  box-shadow: 0px 0px 500px rgb(0, 0, 0);
  transform: scale(1.1);
}

/* -----------EQUIPE------------- */

main#equipe {
  /* min-width: 64em;
  max-width: 154em; */
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
}
main#equipe section {
  display: grid;
  border: solid 10px;
  border-radius: 15px;
  margin: 0em 3.75em;
  margin-bottom: 1.5em;
}
main#equipe figure {
  margin: 0;
}
/* premiere image  */
main#equipe figure:nth-of-type(1) img {
  width: 13.1em;
  height: 16.8em;
}

main#equipe figure:nth-of-type(2) {
  position: relative;
  top: 4px;
}
main#equipe img {
  margin: 0;
  width: 100%;
  object-fit: cover;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
/* 2ieme image  */
main#equipe figure:nth-of-type(2) img {
  width: 13.1em;
  /* border: solid red; */
}
main#equipe p {
  font-size: larger;
  margin-top: 0;
  word-wrap: break-word;
}
main#equipe p:last-child {
  height: 3em;
  /* border: solid red; */
}
/* conteneur des p */
main#equipe div {
  width: 13.1em;
  /* height: 150px; valeur qui change la longeur des p */
  margin: auto;
}

main#equipe figcaption:nth-last-of-type(1) {
  color: rgb(0, 0, 0);
  bottom: 2px;
  position: absolute;
  font-weight: 900;
  font-size: 1.7em;
  width: 100%;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
main#equipe .bouf {
  background-color: rgba(255, 0, 0, 0.559);
  border-color: rgba(255, 0, 0);
}
main#equipe .serp {
  background-color: rgba(51, 255, 0, 0.554);
  border-color: rgba(51, 255, 0);
}
main#equipe .pouf {
  background-color: rgba(255, 251, 0, 0.554);
  border-color: rgba(255, 251, 0);
}
main#equipe .serd {
  background-color: rgba(0, 102, 255, 0.554);
  border-color: rgba(0, 102, 255);
}
main#equipe section:hover {
  box-shadow: 0px 0px 500px rgb(0, 0, 0);
  transform: scale(1.05);
}
/* ---------CONTACT-------- */
/* ERREUR CONNUE: les p qui affiche les messages d'erreur agrandis le form +ou- resolu*/
/* retrait image coté*/
main#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25em;

  background-image: url("/storage/img/imgaccueil/bande2.png"),
    url("/storage/img/imgaccueil/bande2.png");
  background-position: top left, top right;
  /* background-image: url("/storage/img/imgaccueil/banderollecote2.png"); */
  background-repeat: no-repeat;
  background-size: 13em;
  height: 35em;
  /* min-width: 45em; */
  margin: 2.2em 0;
}
main#contact form {
  padding: 1em 2.7em;
  border: solid 12px rgb(60, 242, 255);
  border-radius: 25px;
}
main#contact section {
  display: grid;
}
main#contact section#message {
  height: 12em;
}
main#contact section.classic {
  height: 5.5em;
}

main#contact label {
  margin-bottom: 5px;
}
main#contact input {
  padding: 0.4em;
}

/* main#contact #footer {
  position: absolute;
  bottom: 0;
} */
main#contact input[type="submit"] {
  background-color: rgb(60, 242, 255);
  border-radius: 8px;
  width: 75%;
  margin: auto;
  font-weight: 700;
  padding: 5px;
}
main#contact textarea {
  resize: none;
}
main#contact form p {
  color: rgb(255, 0, 0);
  font-weight: 500;
}

@media screen and (max-width: 650px) {
  body {
    min-width: 0;
  }
  body#accueil header figure img {
    width: 15em;
  }
  main#maisons,
  main#contact,
  main#produits {
    background-image: none;
    min-width: 0;
    justify-content: none;
  }
  main#maisons figure p {
    height: 18em;
  }
  main#maisons article {
    margin: 0;
  }
  main#maisons section {
    margin-bottom: 1.5em;
  }
  #nav a img {
    display: none;
  }

  #nav {
    margin-top: 7.5em;
  }
  #nav li {
    padding: 0.7em;
    font-size: 0.7em;
  }
  #nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  main#produits h1 {
    font-size: 3em;
  }
}
