@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:wght@100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
  --color1: #814b2a;
  --color2: antiquewhite;
}

#myVideo {
  position: fixed;
  z-index: -1;
  min-width: 100%;
  min-height: 100%;
  right: 0;
  bottom: 0;
  filter: blur(20px);
}

.inactive {
  display: none;
}

body {
  background: url(../assets/images/Capture\ d’écran\ 2025-01-16\ 114849.jpg)
    center/cover;
  font-family: Inter, sans-serif;
}
button {
  cursor: pointer;
}

h1 {
  font-size: 3rem;
  text-align: center;
  margin: 0 10px;
}

h2 {
  font-size: 1.5rem;
  width: 100%;
  height: 70px;
  background-color: #ffffff1f;
  text-align: center;
  align-content: center;
}

h3 {
  padding-top: 5px;
  font-size: 1.2rem;
}

h4 {
  width: 33%;
}

label {
  font-size: 0.8rem;
  color: var(--color2);
}

select {
  font: inherit;
  height: 30px;
  width: 60px;
  background-color: #0a0a0ab0;
  color: white;
  border-color: #51340e;
  border-radius: 5px;
}

.head {
  font-size: 1.2rem;
  position: absolute;
  top: 10px;
  margin-bottom: 20px;
  width: 90%;
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
}

.menu {
  font-size: 2rem;
  text-shadow: 1px 1px 3px var(--color1);
  :hover {
    text-shadow: 1px 1px 3px var(--color2);
  }
}
.contact {
  text-shadow: 1px 1px 3px var(--color1);
  align-items: center;
  width: 160px;
  display: flex;
  justify-content: space-around;
}
.contact a:hover {
  text-shadow: 1px 1px 3px var(--color2);
}

#fourneeCard {
  width: 100%;
  height: auto;
  & ul {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;

    & li {
      height: 60px;
      width: 80%;
      border: solid 1px var(--color1);
      border-radius: 5px;
      align-content: center;
      text-align: center;
      padding: 0 10px;
      margin: 20px;
    }
  }
}

.btn {
  width: 100%;
  background-color: #00000075;
  border: none;
  height: 50px;
  font-size: 1.3rem;
}

#Btn1 {
  border-radius: 0 0 0 7px;
  background-color: #814b2a;
  &:hover {
    background-color: #b1693d;
  }
}
#Btn2 {
  border-radius: 0 0 7px 0;
  background-color: #7f9b4b;

  &:hover {
    background-color: #a5c965;
  }
}

.main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  width: 95%;
  height: 80%;
  border-radius: 7px 7px 0 0;
  background-color: rgba(0, 0, 0, 0.618);
  color: aliceblue;
  justify-content: space-evenly;
}
/*+p parametres scrollbar */

.card::-webkit-scrollbar {
  display: block;
  width: 10px;
}

.card::-webkit-scrollbar-thumb {
  background: #814b2a; /* Couleur de la "poignée" */
  border-radius: 10px; /* Coins arrondis */
}

.registerCard {
  display: flex;
  align-items: center;
  /* height: 100%; */
  width: 100%;
  max-width: 500px;
  margin: 5px 0;
}

#username_stepStart {
  margin: 50px 0 10px 0;
  font-size: 1.2rem;
}

p {
  margin: 20px 0;
}

.form {
  /* max-height: 500px; */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px;
  margin: 10px;
  box-shadow: 2px 2px 8px 1px #a97d62fc;
  border-radius: 10px;
}

.form_register_sect1,
.form_register_sect2 {
  display: flex;
  flex-direction: column;
  padding: 5px;
  margin: 10px;
  /* border: 1px solid #51340e; */
  box-shadow: 2px 2px 8px 1px #a97d62fc;
  border-radius: 10px;
}

.form_register_labels {
  margin: 5px 0 20px 0;
  padding: 10px;
  color: var(--color2);
  background-color: var(--color1);
}

input {
  border-width: thin;
  height: 40px;
  background-color: #1e190740;
  border-style: solid;
  border-color: #814b2a;
  padding: 0 10px;
  margin: 10px 0;
  color: antiquewhite;
}

#productsCard {
  cursor: pointer;
  width: 100%;
}

.product_container {
  margin: 20px;
}

.optionsCard {
  padding-top: 30px;
  border-top: solid 1px var(--color1);
  display: flex;
  flex-direction: column;
}

.labels_optionsCard {
  display: flex;
  justify-content: space-between;
}

.labels_optionsCard > label:nth-child(1) {
  width: 33%;
}
.contents_optionsCard {
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.productItem {
  display: flex;
  width: 100%;
}

.img_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.img_container img {
  width: 125px;
  border: solid 2px beige;
  border-radius: 6px;
}
.content_container {
  margin: 10px;
  width: 100%;
}

.header_container {
  display: flex;
  justify-content: space-between;
}

#card_logo {
  width: 150px;
  height: 150px;
  margin: 20px 0;
  filter: drop-shadow(2px 4px 6px black);
}

#startForm {
  display: flex;
  width: 95%;
}

li:hover {
  cursor: crosshair;
  background-color: #7f9b4b;
}

td {
  white-space: pre-line;
}

.divHead {
  width: 100%;
  display: grid;
  grid-template:
    'a a' 1fr
    'b c' 1fr;

  & h2 {
    grid-area: a;
  }

  & h3 {
    grid-area: b;
    margin-left: 10px;
  }

  & i {
    grid-area: c;
    text-align: end;
    margin-right: 10px;
    padding-top: 5px;
  }
}

/* --------------------TABLEAU---------------------- */
table {
  table-layout: fixed;
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
}

thead th:nth-child(1) {
  width: 30%;
}

thead th:nth-child(2) {
  width: 20%;
}

thead th:nth-child(3) {
  width: 15%;
}

thead th:nth-child(4) {
  width: 35%;
}

th,
td {
  padding: 20px;
  line-height: 25px;
  text-align: left;
}

/* --------------------------------------------  */

.stepEndCard {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.error-msg {
  color: red;
  font-size: 0.85em;
  display: block;
  margin-top: 2px;
}

/* Bordure rouge pour champ en erreur */
.input-error {
  border: 2px solid red;
  animation: shake 0.3s;
}

/* Animation shake */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
