@import url(https://fonts.googleapis.com/css?family=Lato:100,300,400);

body {
  font-family: 'Lato', sans-serif;
  background: #fab833;
  color: #3c2720;
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
}
a {
  text-decoration: none;
}
div.adf_main {
  background: lightgoldenrodyellow;
  margin: 20px auto;
  padding: 20px 0;
  text-align: center;
}
/* FORMULAIRES */



/* FORMULAIRE VALIDATION */
div.valid_form {
  background: white;
  margin: 20px auto;
  padding: 20px 0;
  text-align: center;
}
div.valid_form > div {
  display: inline-block;
  vertical-align: top;
  text-align: center;
}
div.valid_form > div:first-child {
  width: 620px;
}
div.valid_form > div:last-child {
  width: 320px;
}
div.valid_form > div img {
  width: 95%;
}
div.valid_form > div:first-child img {
  border: #3c2720 1px solid;
}

@media all and (max-width:940px) {
  div.valid_form > div:first-child {
    width: 69%;
  }
  div.valid_form > div:last-child {
    width: 30%;
  } 
}
@media all and (max-width:500px) {
  div.valid_form > div:first-child {
    width: 100%;
  }
  div.valid_form > div:last-child {
    width: 100%;
  } 
}
div.valid_form input{
  background: lightgreen;
  display: block;
  width: 95%;
  border: none;
  padding: 7px 0;
  margin: 5px auto;
  text-align: center;
  font-size: 1.3rem;
}
div.valid_form input[type=submit]{
  margin-top: 20px;
  background: green;
  color: white;
}

/* AUTRE REF */
a.autre_ref {
  display: block;
  background: orangered;
  margin-top: 20px;
  padding: 7px 21px;
  text-align: center;
  font-size: 1.3rem;
}

/* PIED */
div.adf_control {
  background: orange;
  margin-top: 45px;
  border-top: lightyellow 1px solid;
  border-bottom: lightyellow 1px solid;
  padding: 7px 21px;
  text-align: center;
  font-size: 0.9rem;
}

div.valid_form input[type=submit] {
  margin-top: 20px;
  background: green;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.3rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease; /* Pour des transitions fluides */
  box-shadow: 0 4px #1d5d1d; /* Ombre initiale */
}

div.valid_form input[type=submit]:hover {
  background: #28a745; /* Lumière verte plus claire */
  box-shadow: 0 6px #166c16; /* Accentuation de l'ombre */
}

div.valid_form input[type=submit]:active {
  background: #1d5d1d; /* Vert plus sombre */
  box-shadow: 0 2px #0f3b0f; /* Réduction de l'ombre */
  transform: translateY(2px); /* Déplacement pour simuler l'enfoncement */
}
/* Styles for buttons */
div.valid_form input[type=submit] {
  margin-top: 20px;
  background: green;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.3rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transitions */
  box-shadow: 0 4px #1d5d1d; /* Initial shadow */
}

div.valid_form input[type=submit]:hover {
  background: #28a745; /* Brighter green */
  box-shadow: 0 6px #166c16; /* Enhanced shadow */
}

div.valid_form input[type=submit]:active {
  background: #1d5d1d; /* Darker green */
  box-shadow: 0 2px #0f3b0f; /* Reduced shadow */
  transform: translateY(2px); /* Simulate button press */
}

/* Styles for the selection form */
form.adf_sku {
  margin: 20px auto;
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px solid #007bff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 400px;
  text-align: center;
}

form.adf_sku label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  color: #007bff;
}

form.adf_sku input[type="text"] {
  width: 90%;
  padding: 8px 10px;
  margin: 10px 0;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}

form.adf_sku input[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

form.adf_sku input[type="submit"]:hover {
  background-color: #0056b3;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

form.adf_sku input[type="submit"]:active {
  background-color: #004085;
  transform: translateY(2px);
}
