* {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}
body a {
  text-decoration: none;
}
body h1,
body h2,
body h3,
body h4 {
  color: #3e387a;
}
.show-mobile {
  display: none;
}

/************* HEADER *************/
header {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  padding: 10px 12.3% 10px 12.3%;
  text-align: center;
  position: fixed;
  width: 100vw;
  box-sizing: border-box;
  top: 0;
  z-index: 2;
  box-shadow: 0px 1px 2px #28264b;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header nav ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  padding: 0;
}
header nav ul li {
  padding: 0 10px;
}
header nav ul.left-nav li:first-child {
  font-weight: bold;
  padding-left: 0;
  margin-top: 0.5px;
}
header ul.left-nav li:nth-child(n + 2) {
  margin-top: 1px;
}
header nav ul li.drop-down {
  padding: 0;
  text-align: center;
  margin-right: -1px;
}
header nav ul li.drop-down a:hover {
  border-bottom: 2px solid gold;
}
header nav a,
header nav li,
header nav i {
  color: #ffffff;
  padding: 5px;
}
header nav a:hover,
header nav li:hover {
  color: orange;
  cursor: pointer;
}
header nav a:hover i,
header nav li:hover i {
  color: orange;
}

/***** Dropdown menu *****/
header nav ul li.drop-down .under {
  display: none;
  box-shadow: 0px 1px 2px #28264b;
  background-color: #28264b;
  position: absolute;
  border-top: 2px solid gold;
  padding: 0;
  border-radius: 0 0 10px 10px;
}
header nav > ul li:hover .under {
  display: block;
}
header nav ul li.drop-down .under li {
  float: none;
  margin: 15px 0;
  text-align: center;
}
header nav ul li.drop-down .under a {
  border-bottom: none;
}
header nav ul li.drop-down .under a:hover {
  border-bottom: none;
}

/************* SECTION *************/
section {
  margin: 80px 13% 50px 13%;
  min-height: 80vh;
  text-align: center;
}
section li a {
  padding: 10px 20px;
  border: 1px solid #302b63;
  border-radius: 4px;
  transition: color 0.3s, background-color 0.3s;
  display: inline-block;
  margin: 10px 10px 36px 10px;
  background-color: #f3f3f3;
  color: #302b63;
}
section li a:hover {
  color: white;
  border-color: #0f0c29;
  background-color: #3e387a;
}
section .header-sheet a,
section #load-more-btn {
  margin: 10px 10px 36px 10px;
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-block;
  background-color: #ffa500;
  border: 1px solid darkorange;
  color: #fff;
}
section .header-sheet a:hover,
section #load-more-btn:hover {
  background-color: #ff981b;
  border-color: darkorange;
  color: white;
}
section #card-container a {
  font-weight: bold;
}
section table a,
section #card-container a,
section .footer-sheet a {
  color: #3e387a;
}
section a:hover,
section #card-container a:hover,
section .footer-sheet a:hover {
  color: orange;
}
section a.active {
  color: white;
  border-color: #0f0c29;
  background-color: #3e387a;
}
section h1 {
  text-align: center;
  margin-bottom: 20px;
}
section ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  justify-content: center;
  padding: 0;
}
section ul#statistiques li a {
  margin-bottom: 0;
}
section div.home aside ul li a {
  margin: 2px 0;
}
section div.home aside ul li:first-child {
  margin-top: 5px;
}
section ul#statistiques,
section aside ul {
  margin-bottom: 36px;
}
section div.home aside ul li a {
  min-width: 100px;
}

/***** Home *****/
section div.home {
  display: flex;
}
section div.home aside {
  width: 20%;
  padding: 15px 0;
}
section div.home aside ul {
  display: block;
}
section .products-part {
  display: flex;
  flex-wrap: wrap;
  width: 78%;
  padding-left: 2%;
}
section .products-part div#card-container.home-products {
  justify-content: center;
}
section .see-more {
  text-align: center;
  width: 100%;
  margin-left: 10px;
  margin-bottom: -45px;
}
section button#load-more-btn {
  cursor: pointer;
  font-size: 16px;
}

/***** Cards *****/
section #card-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  margin-left: 10px;
}
section .card {
  margin: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
section .card img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 260px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
section .card div.card-body {
  width: 220px;
  background-color: #f3f3f3;
  border-radius: 0 0 10px 10px;
  padding: 5px 20px 10px 20px;
}
section .card-se {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 10px 0;
}
section .card-name {
  text-align: center;
  font-weight: bold;
}
section p.card-price {
  font-size: larger;
}
section .card-text {
  margin-bottom: 15px;
  min-height: 60px;
  display: flex;
  align-items: center;
}
section .card-date {
  text-align: center;
}
section .card-date i {
  color: #3e387a;
}
section p.score {
  margin-top: 1.5px;
  margin-right: 6px;
}
section .score {
  color: #f5d000;
}

/***** Products sheet *****/
section .header-sheet {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
section .title-and-note {
  display: flex;
  align-items: center;
}
section .title-and-note h1 {
  margin-right: 10px;
  margin-bottom: 0;
}
section .header-sheet a {
  margin-bottom: 10px;
  margin-right: 0;
}
section .product-details {
  display: flex;
  justify-content: space-between;
}
section .product-details .product-photo {
  width: 60%;
  text-align: start;
}
section .product-details .product-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}
section .product-details .product-right-part {
  padding-left: 2%;
  width: 38%;
  text-align: start;
}
section .product-details .product-right-part .product-description {
  margin-bottom: 20px;
  min-height: 113.5px;
}
section .product-details iframe {
  border-radius: 5px;
}
section .title-product-infos {
  text-align: start;
  margin-top: 15px;
}
section .others-products {
  justify-content: center !important;
}
section .title-others-products {
  text-align: start;
  margin-top: 25px;
  margin-bottom: 5px;
}
section div#card-container.others-products {
  margin: 0;
}
section .product-infos {
  display: flex;
  justify-content: space-between;
}
section .product-infos i {
  color: #3e387a;
}
section .product-infos div p {
  text-align: justify;
  margin: 5px 0;
}

/***** Comments section (product sheet) *****/
section .comments-section {
  display: flex;
}
section .comments-section .comment {
  margin: 10px 0;
  background-color: #f3f3f3;
  padding: 10px;
  border-radius: 4px;
  margin-right: 5px;
}
section .comments-section .comment p {
  word-wrap: break-word;
}
section .comments-section .no-comment {
  text-align: center;
}
section .comments-section #comments {
  text-align: start;
  margin-top: 25px;
  width: 50%;
}
section .comments-section #comment-form {
  margin-top: 25px;
  width: 49%;
  margin-left: 1%;
}
section .comments-section #comment-form h3 {
  text-align: start;
}
section .comments-section #comment-form form {
  text-align: start;
  width: 100%;
}
section .comments-section #comment-form textarea {
  height: 100px;
  margin-top: -8.5px;
}
section .comments-section #comment-form textarea,
section .comments-section #comment-form input {
  width: 100%;
  box-sizing: border-box;
}
section .comments-section #comment-form input[type="submit"] {
  width: 100%;
  margin-bottom: 15px;
}
.comment-form-text {
  margin-top: 55px;
  margin-left: 12%;
}

/***** Footer (product sheet) *****/
section .footer-sheet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: -30px;
}

/***** Form *****/
section form {
  text-align: center;
}
section form label {
  font-weight: bold;
}
section form input,
section form select,
section form textarea {
  cursor: text;
  font-size: 15px;
  line-height: 20px;
  padding: 0 10px;
  width: 287px;
  height: 48px;
  border: 1px solid #d6d6e7;
  border-radius: 4px;
  box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 30%);
  overflow: hidden;
}
section form textarea {
  padding-top: 12px;
  height: 130px;
}
section form input[type="file"] {
  box-shadow: none;
  padding: 10px;
  height: fit-content;
  border: 1px solid transparent;
  box-shadow: rgb(0 0 0 / 12%) 0px 1px 3px, rgb(0 0 0 / 24%) 0px 1px 2px;
  cursor: pointer;
}
section form input[type="file"]::file-selector-button {
  margin-right: 8px;
  background-color: #ffa500;
  border: 1px solid darkorange;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}
section form input[type="file"]::file-selector-button:hover {
  background-color: #ff981b;
  border-color: darkorange;
}
section form input[type="date"][name="date_arrivee"],
section form input[type="time"][name="heure_arrivee"],
section form input[type="date"][name="date_depart"],
section form input[type="time"][name="heure_depart"] {
  width: 130px;
}
section form select,
section form input[type="submit"] {
  cursor: pointer;
  padding: 8px 16px;
  width: 307px;
  border: 1px solid transparent;
  box-shadow: rgb(0 0 0 / 12%) 0px 1px 3px, rgb(0 0 0 / 24%) 0px 1px 2px;
}
section form input[type="submit"] {
  font-weight: bold;
  color: white;
  background-color: #ffa500;
  border-color: darkorange;
  width: 309px;
}
section form input[type="submit"]:hover {
  background-color: #ff981b;
  border-color: darkorange;
}

/***** Table *****/
section table {
  text-align: center;
  border-collapse: collapse;
  width: 100%;
}
section table th,
section table td {
  border: 1px solid #dddddd;
  padding: 8px;
}
section table th {
  background-color: #f2f2f2;
}
section table td.comment {
  word-wrap: break-word;
  max-width: 280px;
}
section table td img {
  height: 100px;
  object-fit: cover;
}

/************* FOOTER *************/
footer {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: white;
  text-align: center;
  padding: 10px 5px;
  display: flex;
  justify-content: center;
}
footer a {
  margin-left: 40px;
  color: white;
}
footer a:hover {
  color: orange;
}

/************* GENERAL *************/
.error {
  background: #ff0000;
  color: white;
  padding: 5px;
  margin: 5px;
}
.validation {
  background: #669933;
  color: white;
  padding: 5px;
  margin: 5px;
}

/************* RESPONSIVE *************/
@media screen and (max-width: 1499px) {
  /* Number of others products */
  #card-container.others-products .card:nth-child(n + 7) {
    display: none;
  }
}

@media screen and (max-width: 1349px) {
  .hide-tablet {
    display: none;
  }
}

/*! Tablet !*/
@media screen and (max-width: 1137px) {
  /* Header & section */
  header {
    padding: 10px 1.5% 10px 1.5%;
  }
  section {
    margin: 70px 2% 50px 2%;
  }
}

/*! Mobile !*/
@media screen and (max-width: 863px) {
  .hide-mobile {
    display: none;
  }
  .show-mobile {
    display: block;
  }
  header {
    padding: 10px 1.5% 10px 3.5%;
  }
  header nav ul li.drop-down {
    margin-right: -11px;
  }
  section li a {
    margin-bottom: 0;
  }
  section li:last-child a {
    margin-bottom: 36px;
  }

  /* Number of others products */
  #card-container.others-products .card:nth-child(n + 5) {
    display: none;
  }

  /* Header & section */
  header nav ul li.drop-down .under li {
    margin: 25px 0;
  }

  /* Cards "home" */
  section div.home aside {
    width: 31%;
    position: fixed;
  }
  section div.home aside a {
    padding: 10px 0px;
  }
  section .products-part {
    margin-left: 30%;
    width: 68%;
  }
  section .home-products div#card-container {
    margin: 0;
  }
  section .home-products .card img {
    width: 340px;
  }
  section .home-products .card div.card-body {
    width: 300px;
    font-size: 15px;
  }

  /* Product sheet */
  section .product-details {
    display: block;
  }
  section .product-details .product-photo {
    width: 100%;
  }
  section .product-details .product-photo img {
    height: 350px;
  }
  section .product-details .product-right-part {
    padding-left: 0;
    width: 100%;
  }
  section .product-details .product-right-part .product-description {
    margin-top: 15px;
    min-height: auto;
  }
  section .product-infos {
    display: block;
  }

  /* Comments section */
  section .comments-section {
    display: block;
  }
  section .comments-section #comments {
    width: 101%;
  }
  section .comments-section #comment-form {
    margin-left: 0;
    width: 100%;
  }

  /* Footer */
  footer {
    display: flex;
    flex-direction: column-reverse;
    margin-top: -10px;
  }
  footer a {
    margin-bottom: 15px;
    margin-left: 0;
  }
}

@media screen and (max-width: 592px) {
  /* Cards "home" */
  section .home-products .card img {
    width: 240px;
  }
  section .home-products .card div.card-body {
    width: 200px;
  }
  /* Cards "others products */
  section .title-others-products,
  section .others-products .card {
    display: none;
  }
}
