/* style.css */

/* Styles globaux */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #333;
}

h2 {
  color: #333;
}

p.success {
  color: green;
  text-align: center;
}

p.error {
  color: red;
  text-align: center;
}

/* Style du formulaire */
form {
  background: #fff;
  max-width: 800px;
  padding: 20px;
  margin: 20px auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 10px;
  font-size: 14px;
}

input[type="submit"],
button {
  padding: 10px 15px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
}

input[type="submit"]:hover,
button:hover {
  background: #0058c4;
}

.outfit-group {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  position: relative;
}

.outfit-group h3 {
  margin-top: 0;
}

.remove-outfit {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #c0392b;
}

/* Sélecteur personnalisé pour la couleur */
.custom-select-container {
  position: relative;
  margin-bottom: 10px;
}

.custom-select-trigger {
  display: block;
  padding: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 3px;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 3px 3px;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.custom-option {
  padding: 8px;
  cursor: pointer;
}

.custom-option:hover {
  background: #ccc;
}

/* Règle globale pour les champs de formulaire */
.display-form {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Override pour le champ email afin qu'il ne soit pas limité */
input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
}
