.fond-page-mdp {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f4f5f7 0%, #eef7f1 100%);
  padding: 24px 12px;
  box-sizing: border-box;
}

.carte-mdp {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(28, 93, 59, 0.12);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
}

.logo-mdp {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.carte-mdp h1 {
  font-size: 20px;
  text-align: center;
  color: #1c2431;
  margin: 0 0 6px;
}

.sous-titre-mdp {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}

.champ-mdp {
  margin-bottom: 18px;
}

.champ-mdp label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.champ-avec-icone {
  position: relative;
}

.champ-avec-icone input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #d8dbe0;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.champ-avec-icone input:focus {
  outline: none;
  border-color: var(--couleur-primaire);
}

.bouton-oeil {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.5;
  padding: 4px;
}

.bouton-oeil:hover {
  opacity: 0.9;
}

/* ---------- Jauge de force ---------- */
.jauge-force {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.segment-jauge {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: #e9ecef;
  transition: background 0.25s;
}

.segment-jauge.actif-faible { background: #e74c3c; }
.segment-jauge.actif-moyen { background: #f0a020; }
.segment-jauge.actif-fort { background: var(--couleur-primaire); }

.libelle-force {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 5px;
  min-height: 14px;
}

/* ---------- Checklist ---------- */
.checklist-mdp {
  list-style: none;
  padding: 14px;
  margin: 8px 0 20px;
  background: #fafbfc;
  border-radius: 10px;
  font-size: 13px;
}

.checklist-mdp li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: #888;
}

.puce-regle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d8dbe0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  transition: all 0.2s;
}

.checklist-mdp li.regle-validee {
  color: var(--couleur-primaire);
}

.checklist-mdp li.regle-validee .puce-regle {
  background: var(--couleur-primaire);
  border-color: var(--couleur-primaire);
}

.checklist-mdp li.regle-validee .puce-regle::after {
  content: '✓';
}

.detail-regle {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
}

.checklist-mdp li.regle-validee .detail-regle {
  color: var(--couleur-primaire);
}

/* ---------- Bouton ---------- */
#btnValider {
  width: 100%;
  padding: 12px;
  background: var(--couleur-primaire);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#btnValider:hover:not(:disabled) {
  background: #164a2e;
}

#btnValider:active:not(:disabled) {
  transform: scale(0.98);
}

#btnValider:disabled {
  background: #d8dbe0;
  cursor: not-allowed;
}

.message-erreur {
  color: var(--couleur-danger);
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
}
