/* ===== Style Simple - Formulaire d'inscription ===== */

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

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  padding: 30px 20px;
}

/* === TITRE === */
h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 25px;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 10px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* === FORMULAIRE === */
form {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 30px;
  max-width: 550px;
  margin: 0 auto;
}

/* === FIELDSET === */
fieldset {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 18px;
}

legend {
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.95rem;
  padding: 0 8px;
}

/* === LABELS === */
label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* === INPUTS, SELECT, TEXTAREA === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[list],
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #333;
  background-color: #fafafa;
  margin-top: 4px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[list]:focus,
textarea:focus {
  outline: none;
  border-color: #2c3e50;
  background-color: #fff;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* === RADIO & CHECKBOX === */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #2c3e50;
}

fieldset > label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 8px;
}

/* === FILE INPUT === */
input[type="file"] {
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
}

/* === BOUTON SUBMIT === */
button[type="submit"] {
  display: block;
  width: 100%;
  padding: 11px;
  background-color: #2c3e50;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #3d5166;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  form {
    padding: 20px 15px;
  }

  h1 {
    font-size: 1.4rem;
  }
}
