@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Réinitialisation et bases */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #333;
  background: #f5f5f5; /* Fond plus clair pour améliorer la lisibilité */
}

/* Conteneur principal et mise en page */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* En-tête */
header {
  background: #fff; /* Fond clair pour l'en-tête */
  color: #333; /* Texte foncé pour contraster avec le fond clair */
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Ajout d'une légère ombre pour la profondeur */
}
header img.logo {
  max-height: 60px;
  margin-bottom: 20px;
}

/* Typographie et liens */
h1, h2, h3, h4, h5, h6 {
  margin: 0.5em 0;
  color: #444; /* Couleur plus foncée pour un meilleur contraste */
}
p {
  line-height: 1.6;
}
a {
  color: #007bff; /* Couleur bleue pour les liens, pour la cohérence et la lisibilité */
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #0056b3;
}

/* Boutons et formulaires */
button, input[type="submit"] {
  background-color: #007bff; /* Couleur bleue pour les boutons, pour l'accessibilité */
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
button:hover, input[type="submit"]:hover {
  background-color: #0056b3;
}
button:disabled,
input[type="submit"]:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}
button:disabled:hover,
input[type="submit"]:disabled:hover {
  background-color: #6c757d;
}
input[type="email"], select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.member-form,
form.deform {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.member-form fieldset,
form.deform fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.member-form legend,
form.deform legend {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}
.member-form > p,
form.deform > p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}
.member-form label,
form.deform label {
  display: block;
  font-weight: 600;
  color: #1f3659;
  margin-bottom: 0.35rem;
}
.member-form .field,
.member-form .form-group,
.member-form .deformRequired,
form.deform .field,
form.deform .form-group,
form.deform .deformRequired {
  margin-bottom: 1.25rem;
}
.member-form input:not([type="checkbox"]),
.member-form select,
.member-form textarea,
form.deform input:not([type="checkbox"]),
form.deform select,
form.deform textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #c7d2e2;
  background-color: #ffffff;
  color: #1f2a37;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.member-form input:not([type="checkbox"]):focus,
.member-form select:focus,
.member-form textarea:focus,
form.deform input:not([type="checkbox"]):focus,
form.deform select:focus,
form.deform textarea:focus {
  border-color: #3f8cff;
  box-shadow: 0 0 0 3px rgba(63, 140, 255, 0.2);
  outline: none;
}
.member-form input[readonly],
.member-form textarea[readonly],
.member-form input:disabled,
.member-form select:disabled,
.member-form textarea:disabled,
form.deform input[readonly],
form.deform textarea[readonly],
form.deform input:disabled,
form.deform select:disabled,
form.deform textarea:disabled {
  background-color: #f4f6fb;
  border-color: #d6dde8;
  color: #5b6b80;
  cursor: not-allowed;
  box-shadow: none;
}
.member-form input[readonly]:focus,
.member-form textarea[readonly]:focus,
.member-form input:disabled:focus,
.member-form select:disabled:focus,
.member-form textarea:disabled:focus,
form.deform input[readonly]:focus,
form.deform textarea[readonly]:focus,
form.deform input:disabled:focus,
form.deform select:disabled:focus,
form.deform textarea:disabled:focus {
  border-color: #d6dde8;
  box-shadow: none;
}
.member-form .help-block,
form.deform .help-block {
  display: block !important;
  margin-top: 0.35rem !important;
  font-size: 0.85rem;
  color: #6b7280 !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.member-form .error,
.member-form .error .help-block,
form.deform .error,
form.deform .error .help-block {
  color: #b91c1c !important;
}
.member-form button,
.member-form input[type="submit"],
form.deform button,
form.deform input[type="submit"] {
  margin-top: 10px;
}
.member-form .form-control-static,
.member-form .deform-readonly-text,
form.deform .form-control-static,
form.deform .deform-readonly-text {
  padding: 0.65rem 0.8rem;
  background-color: #f8f9fd;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  color: #3f4a5a;
  font-weight: 500;
}
.member-form .form-group.readonly label,
form.deform .form-group.readonly label {
  color: #4b5563;
}
.member-form .form-control-static + .help-block,
form.deform .form-control-static + .help-block {
  margin-top: 0.5rem !important;
}

.member-form .form-group::after,
form.deform .form-group::after {
  content: "";
  display: block;
  clear: both;
  width: 0;
  height: 0;
}

.message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: burlywood;
}

/* Sections et marges */
.section {
  margin: 20px 0;
  background: #fff; /* Fond clair pour les sections */
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Ombre pour la profondeur */
}
.form-group {
  margin-bottom: 1em;
  padding: 1em;
  border: 1px solid #052e5a;
  border-radius: 1em;
}

/* Erreurs et validations */
.error, .help-block {
  color: #d9534f;
  background-color: #f2dede;
  border-color: #ebccd1;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.help-block {
  display: none;
}

.help-block:hover::after {
  content: attr(title);
  display: block;
  position: absolute;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px;
  color: #333;
  width: 200px;
}
/* Média queries pour responsive design */
@media (max-width: 768px) {
  header, .container {
    padding: 10px;
  }
  header img.logo {
    margin: 10px 0;
  }
}

/* Pied de page */
footer {
  background: #007bff; /* Fond bleu pour le pied de page, avec texte blanc pour le contraste */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}
footer a {
  color: #fff;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #a8d8ea;
}

.deform-form-buttons {
  margin-top: 20px;
  text-align: right;
  border: none;
}
