/* === Conteneur principal === */
.msi-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Onglets principaux et sous-onglets === */
.msi-onglets,
.msi-sous-onglets {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.msi-onglet,
.msi-sous-onglet {
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #555;
}

.msi-onglet:hover,
.msi-sous-onglet:hover {
  color: #FF8F35;
}

.msi-onglet.actif,
.msi-sous-onglet.actif {
  background: #ccc;
  color: #172436;
  border-bottom: 3px solid #FF8F35;
  font-weight: 600;
}

/* === Info Pro (Inscription) === */
.msi-info-pro {
  background: #e7f5ff;
  padding: 12px;
  border-left: 4px solid #0073aa;
  font-size: 14px;
  margin-bottom: 15px;
  border-radius: 4px;
}

/* === Champs de formulaire === */
.msi-wrapper input,
.msi-wrapper select,
.msi-wrapper button {
  font-size: 15px;
}

.msi-wrapper input,
.msi-wrapper select {
  width: 100%;
  padding: 10px;
  margin: 6px 0 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.msi-wrapper input:focus,
.msi-wrapper select:focus {
  border-color: #FF8F35;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 143, 53, 0.1);
}

/* champ téléphone */
.msi-phone-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.msi-phone-group select {
  width: 120px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.msi-phone-group input[type="tel"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.msi-phone-group small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 0.85em;
}

/* === Boutons === */
.msi-wrapper button {
  background: #FF8F35;
  color: white;
  border: none;
  padding: 12px 20px;
  width: 100%;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.msi-wrapper button:hover {
  background: #f89849;
  color: #172436;
}

/* === Messages d’état (succès, erreur) === */
.msi-message {
  padding: 12px;
  margin: 15px 0;
  border-radius: 6px;
  font-size: 14px;
}

.msi-message.succes,
.msi-message.success {
  background: #e7f6ec;
  color: #2d703d;
  border: 1px solid #a6d8b4;
}

.msi-message.erreur,
.msi-message.error {
  background: #fdf2f2;
  color: #c63d3d;
  border: 1px solid #f0c9c9;
}

/* === Cacher les contenus inactifs === */
.msi-contenu-onglet,
.msi-contenu-sous-onglet {
  display: none;
}

.msi-contenu-onglet.actif,
.msi-contenu-sous-onglet.actif {
  display: block;
}

/* === Responsive === */
@media (max-width: 480px) {
  .msi-wrapper {
    padding: 15px;
  }

  .msi-onglet,
  .msi-sous-onglet {
    padding: 8px 10px;
    font-size: 14px;
  }
}

.msi-message.info {
  background: #e7f5ff;
  color: #0c2d57;
  border: 1px solid #9acffa;
  padding: 12px;
  margin: 15px 0;
  border-radius: 6px;
  font-size: 14px;
}

#msi-form-annuaire .bouton {
  text-align: center;
  margin-top: 30px;
  background: #FF8F35;
  color: white;
  border: none;
  padding: 10px 20px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

#msi-form-annuaire .bouton button {
  background: transparent;
  color: white;
  font-size: 16px;
  font-weight: 500;
}

#msi-form-annuaire .bouton:hover {
  background: transparent;
  border: 1px solid #FF8F35;
}

#msi-form-annuaire .bouton:hover button {
  color: #FF8F35;
}

[type=button],
[type=submit],
button {
  padding: 10px 30px;
  background-color: #FF8F35;
  border: 1px solid #FF8F35;
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  padding: .5rem 1rem;
  text-align: center;
  transition: all .3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
}

[type=button],
[type=submit],
button:hover {
  background-color: transparent;
  color: #FF8F35;
}