Couleurs BMH
:root {
  --bmh-vert: #b2d235;
  --bmh-bleu: #0086a7;
  --bmh-rouge: #e30613;
  --bmh-gris: #f5f5f5;
}
.bmh-form-wrapper {
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  font-family: 'Roboto', sans-serif;
}
.bmh-step { display: none; }
.bmh-step.bmh-step-1, .bmh-step.active { display: block; }
.bmh-form-nav { margin-top: 2rem; }
.bmh-form-nav button {
  background: var(--bmh-vert);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  font-size: 1.1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.bmh-form-nav button.bmh-prev { background: #fff; color: var(--bmh-vert); border: 1px solid var(--bmh-vert); }
.bmh-form-nav button:hover { background: var(--bmh-bleu); }
.bmh-creneau-btn {
  background: #fff;
  color: var(--bmh-bleu);
  border: 2px solid var(--bmh-bleu);
  border-radius: 20px;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.bmh-creneau-btn.selected, .bmh-creneau-btn:active {
  background: var(--bmh-bleu);
  color: #fff;
}
.bmh-creneau-row { margin-bottom: 1rem; }
.bmh-creneau-date { font-weight: bold; margin-right: 1rem; }
.bmh-person-block { margin-bottom: 1.5rem; }
.bmh-person-block input, .bmh-person-block select {
  display: block;
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.bmh-checkbox-2pers { margin: 1rem 0; }
.bmh-checkbox-2pers label { margin-left: 0.5rem; }
.bmh-rgpd-block { margin: 2rem 0 1rem 0; font-size: 0.95rem; }
.bmh-rgpd-block label { margin-left: 0.5rem; }
.bmh-form-error {
  color: var(--bmh-rouge);
  background: #fff0f0;
  border: 1px solid var(--bmh-rouge);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}
.bmh-btn-site {
  display: inline-block;
  background: var(--bmh-vert);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
}
/* --- Bloc numéro de contrat stylisé --- */
.bmh-contrat-block {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
  position: relative;
}
.bmh-contrat-field {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bmh-contrat-field input[type="text"]#bmh-contrat {
  background: #fff;
  border: 2px solid var(--bmh-bleu);
  border-radius: 32px;
  padding: 1rem 2.5rem 1rem 3.5rem;
  font-size: 1.2rem;
  color: #888;
  font-weight: 500;
  outline: none;
  box-shadow: none;
  width: 100%;
}
.bmh-contrat-field input[type="text"]#bmh-contrat::placeholder {
  color: #b2b2b2;
  opacity: 1;
}
.bmh-contrat-field .bmh-l-prefix {
  position: absolute;
  left: 1.3rem;
  top: 1.1rem;
  color: var(--bmh-bleu);
  font-size: 1.5rem;
  font-weight: bold;
  pointer-events: none;
  font-family: 'Roboto', sans-serif;
}
.bmh-contrat-field .bmh-required {
  position: absolute;
  right: 1.5rem;
  top: 1.1rem;
  color: var(--bmh-rouge);
  font-size: 1.3rem;
  font-weight: bold;
  pointer-events: none;
}
.bmh-help-contrat {
  display: block;
  background: none;
  border: none;
  color: #3db6d3;
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.2rem;
  margin-left: 0.2rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  text-align: left;
}
/* --- Case à cocher stylisée --- */
.bmh-checkbox-2pers {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  min-width: 260px;
  margin-left: 0;
}
.bmh-checkbox-2pers input[type="checkbox"] {
  appearance: none;
  width: 1.5em;
  height: 1.5em;
  border: 2px solid var(--bmh-bleu);
  border-radius: 50%;
  background: #fff;
  margin-right: 0.7em;
  position: relative;
  cursor: pointer;
  transition: border 0.2s;
}
.bmh-checkbox-2pers input[type="checkbox"]:checked::before {
  content: '';
  display: block;
  width: 0.7em;
  height: 0.7em;
  background: var(--bmh-bleu);
  border-radius: 50%;
  position: absolute;
  top: 0.3em;
  left: 0.3em;
}
.bmh-checkbox-2pers label {
  color: var(--bmh-bleu);
  font-weight: bold;
  font-size: 1.15rem;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}
@media (max-width: 600px) {
  .bmh-form-wrapper { padding: 1rem; }
  .bmh-person-block { margin-bottom: 1rem; }
}
@media (max-width: 700px) {
  .bmh-contrat-block { flex-direction: column; gap: 0.5rem; }
  .bmh-checkbox-2pers { margin-left: 0; margin-top: 1.2rem; }
} 

/* --- AJOUTS/ADAPTATIONS POUR STYLE IMAGE FOURNIE --- */
.bmh-creneaux {
  display: flex;
  flex-direction: column;
  gap: .8rem !important;
  margin-bottom: 2rem;
}
.bmh-creneau-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 1rem;
}
.bmh-creneau-date {
  min-width: 180px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--bmh-bleu);
  background: #fff;
  border: 2px solid var(--bmh-bleu);
  border-radius: 24px;
  padding: 0.5rem 1.2rem;
  margin-right: 1.2rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.bmh-creneau-date.selected {
  background: var(--bmh-bleu);
  color: #fff;
}
.bmh-creneau-btn {
  min-width: 120px;
  margin-right: 1.2rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  border-radius: 24px;
  border-width: 2px;
  background: #fff;
  color: var(--bmh-bleu);
  border: 2px solid var(--bmh-bleu);
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.bmh-creneau-btn.selected, .bmh-creneau-btn:active {
  background: var(--bmh-bleu);
  color: #fff;
}
.bmh-creneau-btn:focus {
  outline: 2px solid var(--bmh-bleu);
}

/* BOUTON PRINCIPAL ROUGE */
.bmh-form-nav {
  color: #fff !important;
  font-weight: bold;
  border-radius: 32px;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  margin-right: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}

/* Boutons nav : retour à gauche, valider à droite */
.bmh-form-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.bmh-form-nav .bmh-prev {
  order: 1;
  background: none !important;
  color: var(--bmh-vert) !important;
  border: none !important;
  font-weight: bold;
  font-size: 1.15rem;
  text-decoration: underline;
  line-height: 1;
  padding: 1rem 1.5rem 1rem 0;
  margin-right: 0;
  transition: color 0.2s;
  cursor: pointer;
}
.bmh-form-nav .bmh-next {
  order: 2;
  background: var(--bmh-rouge) !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 32px;
  font-size: 1.3rem;
  padding: 1.1rem 3rem;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}
.bmh-form-nav .bmh-next:hover {
  background: #b8000a !important;
}

/* RGPD */
.bmh-rgpd-block {
  margin: 2rem 0 1rem 0;
  font-size: 1rem;
  color: #3db6d3;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
/* RGPD : cercle plus fin, coche SVG */
.bmh-rgpd-block input[type="checkbox"] {
  appearance: none;
  width: 1.3em;
  height: 1.3em;
  border: 2px solid #3db6d3;
  border-radius: 50%;
  background: #fff;
  margin-top: 0.2em;
  position: relative;
  cursor: pointer;
  transition: border 0.2s;
  display: inline-block;
  vertical-align: middle;
}
.bmh-rgpd-block input[type="checkbox"]:checked::before {
  content: '';
  display: block;
  position: absolute;
  left: 0.25em;
  top: 0.15em;
  width: 0.8em;
  height: 0.8em;
  background: none;
  mask: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.5L7 11.5L12 5.5" stroke="%230086a7" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.5L7 11.5L12 5.5" stroke="%230086a7" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  background-color: #0086a7;
}

/* RGPD texte couleur et taille */
.bmh-rgpd-block label {
  color: #3db6d3;
  font-size: 1.05rem;
  font-weight: normal;
  margin: 0;
  line-height: 1.4;
}

/* TEXTE INFO CRÉNEAU */
.bmh-info-creneau {
  color: #0086a7;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  font-style: normal;
}

/* Ajustement responsive */
@media (max-width: 700px) {
  .bmh-creneau-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .bmh-creneau-date, .bmh-creneau-btn {
    min-width: 100px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }
} 

/* Responsive ajusté */
@media (max-width: 700px) {
  .bmh-creneau-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .bmh-creneau-date, .bmh-creneau-btn {
    min-width: 100px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }
} 

/* Bouton vert générique (étape suivante, retour, site BMH) */
.bmh-form-nav .bmh-next {
  background: var(--bmh-vert) !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 32px;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}

/* Bouton vert générique (étape suivante, retour, site BMH) */
.bmh-form-nav .bmh-next {
  background: var(--bmh-vert) !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 32px;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}
.bmh-form-nav .bmh-next.bmh-final {
  background: var(--bmh-rouge) !important;
  color: #fff !important;
  font-size: 1.2rem;
  padding: 1.1rem 3rem;
}
.bmh-form-nav .bmh-prev {
  background: none !important;
  color: var(--bmh-vert) !important;
  border: none !important;
  font-weight: bold;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  margin-left: 1.5rem;
  margin-right: 0;
  transition: color 0.2s;
  text-decoration: none;
  order: 2;
}
.bmh-form-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.bmh-btn-site {
  display: block;
  background: var(--bmh-vert);
  color: #fff;
  padding: 1.1rem 3rem;
  border-radius: 32px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 2rem auto 0 auto;
  text-align: center;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.bmh-btn-site:hover {
  background: #7fa32a;
} 

/* Animation de vibration pour les contrats invalides */
@keyframes bmh-vibrate {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Style pour les contrats invalides */
.bmh-contrat-field input.invalid {
  border: 2px solid #dc3545 !important;
  color: #dc3545 !important;
  background-color: #fff5f5 !important;
  animation: bmh-vibrate 0.5s ease-in-out;
} 