/* « Recevez la version modifiable par e-mail » — pages modèles (R.V, #252).
   Lié depuis le <head> des pages modèles : <link rel="stylesheet" href="modele-par-email.css?v=1" />
   ⚠️ styles.css force en !important la couleur (et -webkit-text-fill-color, qui
   s'hérite) de body, label, p et a : d'où les couleurs reposées ici sur les
   éléments qui doivent en changer (bouton, message d'état). */

.mpe {
  position: relative;
  margin: 14px 0 10px;
  padding: 16px 18px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.16);
}
.mpe .mpe-titre {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
}
.mpe .mpe-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mpe input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: #fff;
}
.mpe input[type="email"]:focus {
  outline: 2px solid #a855f7;
  outline-offset: 1px;
}
.mpe .mpe-bouton {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(145deg, #7c3aed, #db2777);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.24);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.mpe .mpe-bouton:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(124, 58, 237, 0.32); }
.mpe .mpe-bouton:disabled { opacity: 0.6; cursor: default; transform: none; }
.mpe .mpe-case {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  font-size: 14px;
  cursor: pointer;
}
.mpe .mpe-case input { width: 16px; height: 16px; margin: 0; accent-color: #7c3aed; }
.mpe .mpe-mention {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  hyphens: none;
}
.mpe .mpe-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mpe .mpe-statut:empty { display: none; }
.mpe .mpe-statut {
  margin: 10px 0 2px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.mpe .mpe-statut.ok {
  background: rgba(22, 163, 74, 0.10);
  color: #166534;
  -webkit-text-fill-color: #166534;
}
.mpe .mpe-statut.erreur {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  -webkit-text-fill-color: #991b1b;
}
.mpe .mpe-insecable { white-space: nowrap; }
@media (max-width: 480px) {
  .mpe .mpe-bouton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mpe .mpe-bouton { transition: none; }
}
