/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header */
.header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: #fffaf5;
  padding: 20px;
}

.nav-wrapper {
  margin: 0 auto;
}

/* Description */
.description {
  font-weight: bold;
  color: #142257;
}

.header-left .logo {
  text-align: left;
}

.header-left h1 {
  font-size: 25px;
  color: #ff851c;
}

.header-left p {
  font-size: 13px;
  color: #152257;
}

/* accueil.php */

.paragraph {
  margin-left: 5%;
  margin-right: 5%;
}

/* h1 */
h1 {
  font-size: 54px;
  color: #000;
}

/* h2 */
h2 {
  font-size: 27px;
  margin: 0px 0px 20px;
}

/* p */
p {
  font-size: 18px;
  color: #666b6e;
  margin: 0px 0px 27px;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-image {
  margin: 20px 0;
}

/* Responsive styles */

button {
  background-color: white;
  color: #ff851c;
  border: 2px solid #ff851c;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #ff851c;
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fffaf5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container h1 {
  text-align: center;
  color: #ff851c;
  margin-bottom: 20px;
}

.container h2 {
  color: #142257;
  margin-bottom: 15px;
}

/* --- Table Personnalisé --- */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.user-table th,
.user-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.user-table th {
  background-color: #ff851c;
  color: white;
}

.user-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.user-table tr:hover {
  background-color: #ddd;
}
/* --- Table Personnalisé --- */

.text-orange {
  color: #ff7f00 !important;
}

.btn-outline-orange {
  color: #ff7f00 !important;
  border: 1px solid #ff7f00 !important;
  background-color: transparent;
  transition: all 0.2s ease-in-out; /* Ajoute une transition fluide */
}

.btn-outline-orange:hover {
  color: #ffffff !important;
  background-color: #ff7f00 !important;
  border-color: #ff7f00 !important;
}

/* --- Produits --- */
.btn-orange {
  color: white !important;
  background-color: #726e6a !important;
  border: 1px solid #726e6a !important;
  font-weight: lighter;
}

.btn-orange:hover,
.btn-orange:focus {
  background-color: #e67300 !important;
  border-color: #e67300 !important;
  color: white !important;
}

.btn-check:checked + .btn-orange {
  background-color: #cc6600 !important;
  border-color: #cc6600 !important;
  color: white !important;
  font-weight: 900 !important;
}

.tva-container {
  display: flex;
  justify-content: center;
}

/* --- Produits --- */

/* --- Form --- */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fffaf5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-container h2 {
  text-align: center;
  color: #ff851c;
  margin-bottom: 20px;
}
.form-container label {
  font-weight: bold;
  color: #142257;
  display: block;
  margin-bottom: 5px;
}
.form-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form-container button {
  width: 100%;
  padding: 10px;
  background-color: #ff851c;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
.form-container button:hover {
  background-color: #e97d16;
}
.form-container .link {
  text-align: center;
  margin-top: 10px;
}
/* --- Form --- */

/* --- Connexion --- */
.password-container {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-90%);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.password-requirements {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
}
/* --- Connexion --- */

/* Sans Décoration */
.no-decoration {
  text-decoration: none;
  background: none;
  border: none;
}
.no-decoration:hover {
  text-decoration: none;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
  }
  .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .paragraph {
    margin-left: 3%;
    margin-right: 3%;
  }

  h1 {
    font-size: 40px;
  }
  p {
    font-size: 16px;
    margin: 0px 0px 20px;
  }
  h2 {
    font-size: 24px;
    margin: 0px 0px 15px;
  }

  .form-container {
    padding: 15px;
  }
  .form-container h2 {
    font-size: 24px;
  }
  .form-container input,
  .form-container button {
    padding: 8px;
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }

  .user-table th,
  .user-table td {
    padding: 8px;
  }

  .btn-change-role {
    padding: 8px 16px;
    font-size: 14px;
  }

  .role-select {
    padding: 4px;
  }
  .dropdown-icon {
    width: 12px; /* Ajustez la taille pour les petits écrans */
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px;
  }
  .paragraph {
    margin-left: 2%;
    margin-right: 2%;
  }
  h1 {
    font-size: 30px;
  }
  p {
    font-size: 14px;
    margin: 0px 0px 15px;
  }
  h2 {
    font-size: 20px;
    margin: 0px 0px 10px;
  }

  .form-container {
    padding: 10px;
  }
  .form-container h2 {
    font-size: 20px;
  }
  .form-container input,
  .form-container button {
    padding: 6px;
    font-size: 12px;
  }
  .container {
    padding: 5px;
  }

  .user-table th,
  .user-table td {
    padding: 6px;
  }

  .btn-change-role {
    padding: 6px 12px;
    font-size: 12px;
  }

  .role-select {
    padding: 3px;
  }
}
