*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --main-rouge-color: #b4422e;
  --main-jaune-color: #e6d591;
  --heafoo-bg-Color: #252525;
}

/* header */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: grid;
  grid-template-rows: auto auto 1fr;
}
header {
  height: 100%;
}

.barre-navigation {
  background-color: var(--heafoo-bg-Color);
  color: #fff;
  overflow: hidden;
}

.conteneur {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.entete-barre-navigation {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.toggle-barre-navigation {
  font-size: 24px;
  cursor: pointer;
  display: none;
}

.menu-principal {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.liens-menu {
  padding: 10px 15px;
  text-decoration: none;
  color: #fff;
  font-size: small;
}
i.fas.fa-user.icon {
  color: #fff;
  font-size: small;
}

/* main */
.banner {
  background-image: linear-gradient(
      rgba(37, 37, 37, 0.5),
      rgba(37, 37, 37, 0.5)
    ),
    url("../image/bannier.jpg");

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 500px;
}

.banner h1 {
  text-align: center;
  padding-top: 16%;
  font-size: calc(24px + (32 - 28) * ((100vw - 300px) / (1600 - 300)));
  color: var(--main-jaune-color);
}


/* section produit */

.section-titre {
  text-align: center;
  margin-bottom: 20px;
  color: var(--main-rouge-color);
}

.barre-separation {
  border: 5px solid var(--main-rouge-color);
  height: 1px;
  background-color: #ccc;
  width: 20%;
  margin: 40px auto;
  margin-bottom: 10px;
}
.container_produit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card {
  width: 250px;
  margin: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 4px solid var(--main-jaune-color);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  margin-bottom: 5px;
}
.prix {
  height: 80px;
  width: 80px;
  background-color: var(--main-rouge-color);
  rotate: 45deg;
  position: relative;
  top: -10%;
  left: 32.5%;
}
.prix p {
  font-size: large;
  font-weight: bold;
  color: var(--main-jaune-color);
  rotate: -45deg;
  padding-top: 20%;
  padding-right: 20%;
  text-align: center;
}

.bouton-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.bouton-container button {
  padding: 10px 20px;
  background-color: var(--main-jaune-color);

  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}
.bouton-container button a {
  color: var(--main-rouge-color);
  text-decoration: none;
  font-weight: bold;
}

.bouton-container button:hover {
  background-color: #d8c889;
}

.book img {
  width: 350px;
  height: 400px;
}

/* page produits */

.page_produits{
  min-height: 80vh;
  background-image: linear-gradient(
    rgba(37, 37, 37, 0.5),
    rgba(37, 37, 37, 0.5)
  ),
  url("../image/back_produits.jpg");
}

.section-titre-3 {
  text-align: center;
  color: var(--main-rouge-color);
  padding-top: 80px;
  margin-bottom: 50px;
}

.barre-separation-3 {
  border: 5px solid var(--main-rouge-color);
  height: 1px;
  background-color: #ccc;
  width: 20%;
  margin: auto;
  margin-bottom: 10px;
}

.container_page_produit{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.container_page_produit h4{
color: #fff;
}


/* section colis */

.section-titre-1 {
  text-align: center;
  color: var(--main-jaune-color);
}

.barre-separation-1 {
  border: 5px solid var(--main-jaune-color);
  height: 1px;
  background-color: #ccc;
  width: 20%;
  margin: auto;
  margin-bottom: 10px;
}

.div-colis {
  display: block;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  margin-top: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
  background-image: linear-gradient(
      rgba(37, 37, 37, 0.5),
      rgba(37, 37, 37, 0.5)
    ),
    url("../image/back_colis.jpg");
}
.div_book {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  padding-top: 150px;
  padding-bottom: 150px;
}

.book {
  position: relative;
  width: 350px;
  height: 400px;
  transition: transform 0.5s;
}

.paper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  perspective: 1500px;
}

.front,
.back {
  background-color: white;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform-origin: left;
  transition: transform 0.5s;
}

.front {
  z-index: 1;
  backface-visibility: hidden;
  border-left: 3px dashed rgba(128, 128, 128, 0.354);
}

.back {
  z-index: 0;
}

.front-content,
.back-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.back-content {
  transform: rotateY(180deg);
}

.flipped .front,
.flipped .back {
  transform: rotateY(-180deg);
}

.div_book button {
  border: none;
  background-color: var(--main-jaune-color);
  cursor: pointer;
  margin: 10px;
  height: 15px;
  width: 15px;
  transition: transform 0.5s;
}

button:focus {
  outline: none;
}

button:hover i {
  color: #636363;
}

i {
  font-size: 10px;
  color: gray;
}

#p1 {
  z-index: 3;
}

#p2 {
  z-index: 2;
}

#p3 {
  z-index: 1;
}
.images-colis {
  display: none;
}


/* page colis */
.page_colis{
  background-image: linear-gradient(
    rgba(37, 37, 37, 0.5),
    rgba(37, 37, 37, 0.5)
  ),
  url("../image/back_colis.jpg");
}

.section-titre-page-colis{
  text-align: center;
  color: var(--main-jaune-color);
  padding-top: 80px;
  margin-bottom: 50px;
}
.barre-separation-page-colis{
  border: 5px solid var(--main-jaune-color);
  height: 1px;
  background-color: #ccc;
  width: 20%;
  margin: auto;
  margin-bottom: 10px;
}
.images-colis-1 {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.images-colis-1 img {
  width: 350px;
  height: auto;
  

  padding: 10px;
}


/* contact */


.container_contact {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  height: 100%;
}
.form-contact{
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container_contact h1 {
  text-align: center;
  color: #333;
}
.form-contact label {
  font-weight: bold;
  color: #555;
}
.form-contact input[type="email"],
.form-contact input[type="tel"],
.form-contact input[type="text"],
.form-contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}
.form-contact textarea {
  height: 150px;
}
.form-contact button {
  padding: 12px 24px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}
.form-contact button:hover {
  background-color: #0056b3;
}
.message {
  margin-top: 20px;
  padding: 15px;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  color: #3c763d;
  display: none;
}




/* Où sommes-nous */

.section-titre-2 {
  text-align: center;
  color: var(--main-rouge-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.barre-separation-2 {
  border: 5px solid var(--main-rouge-color);
  height: 1px;
  background-color: #ccc;
  width: 70%;
  margin: auto;
  margin-bottom: 10px;
}

.div-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 50px;
}

.image-info img {
  width: 600px;
  height: 500px;
}
.info {

  text-align: center;
}

.info ul {
  list-style: none;
  padding: 20px;
}




/* page connexion */

.fond {
  font-family: Arial, sans-serif;
  background-color: var(--main-jaune-color);
  color: var(--main-rouge-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.form_connex {
  background-color: var(--heafoo-bg-Color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.fond h2 {
  text-align: center;
  color: var(--main-rouge-color);
}

.form_connex label {
  color: var(--main-jaune-color);
}

.form_connex input[type="text"],
.form_connex input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}

.form_connex input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: none;
  background-color: var(--main-rouge-color);
  color: var(--main-jaune-color);
  cursor: pointer;
}

.form_connex input[type="submit"]:hover {
  background-color: darken(var(--main-rouge-color), 10%);
}

.fond p {
  color: var(--main-jaune-color);
  text-align: center;
  margin-top: 5px;
}
.fond p a {
  text-decoration: none;
  font-size: medium;
  color: var(--main-rouge-color);
}





/* footer */
footer {
  background-color: var(--heafoo-bg-Color);
}
.social {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 25px;
}
.social h5 {
  margin-top: 8px;
  color: #fff;
}
footer a img {
  height: 20px;
  width: 20px;
  margin-left: 5px;
  margin-top: 5px;
}
.page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}
.page a {
  color: #fff;
  text-decoration: none;
  text-align: center;
}
footer p {
  color: #fff;
  text-align: center;
  margin-top: 25px;
}
.link1 {
  grid-area: 1 / 1 / 2 / 2;
}
.link2 {
  grid-area: 1 / 2 / 2 / 3;
}
.link3 {
  grid-area: 1 / 3 / 2 / 4;
}






@media screen and (max-width: 768px) {
  body {
   
    font-family: Arial, sans-serif;
    display: block;
  }

  .menu-principal {
    display: none;
  }
  .entete-barre-navigation {
    display: flex;
    justify-content: space-between;
  }

  .toggle-barre-navigation {
    display: block;
  }
  i.fas.fa-bars {
    font-size: xx-large;
}

  .menu-hamburger.active {
    display: block;
  }

  .menu-hamburger {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .liens-menu {
    padding: 10px 0;
  }
  .banner h1 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .div_book {
    display: none;
  }

  .images-colis {
    display: block;
    text-align: center;
  }

  .images-colis img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    padding: 50px;
  }
  .image-info {
    margin-right: 0px;
  }
  .image-info img {
    width: 400px;
    height: 300px;
  }
  .info {
    margin-left: 0px;
    text-align: center;
  }
  .page{
    display: flex;
    flex-direction: column;
  }
  .page a{
    margin-top: 10px;
  }
}
