/* Formulaire d'alerte — reprend les variables du thème enfant (--mhh-*) avec des valeurs de secours. */
.mhh-alerte{
  --_orange:var(--mhh-orange,#EF8E2E);
  --_orange-soft:var(--mhh-orange-soft,#FDEBD6);
  --_ink:var(--mhh-ink,#102542);
  --_ink-soft:var(--mhh-ink-soft,#5B6778);
  --_line:var(--mhh-line,rgba(16,37,66,.12));
  --_green:var(--mhh-green,#88BD31);
  --_green-soft:var(--mhh-green-soft,#EEF6DD);
  font-family:var(--mhh-font-body,inherit);
  color:var(--_ink);
  margin:0 auto;
}
.mhh-alerte,.mhh-alerte *,.mhh-alerte *::before,.mhh-alerte *::after{box-sizing:border-box;}
.mhh-alerte__title{margin:0 0 8px;font-size:clamp(24px,3vw,32px);}
.mhh-alerte__intro{margin:0 0 24px;color:var(--_ink-soft);}

.mhh-alerte__notice{margin:0 0 24px;padding:14px 18px;border-radius:12px;font-size:15px;line-height:1.5;}
.mhh-alerte__notice.is-ok{background:var(--_green-soft);color:#2f4a0a;}
.mhh-alerte__notice.is-error{background:#fdecea;color:#8a1c12;}

.mhh-alerte__form{display:flex;flex-direction:column;gap:20px;}
.mhh-alerte__row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.mhh-alerte__field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;}
.mhh-alerte__field input,.mhh-alerte__field select{
  height:50px;padding:0 18px;border:1px solid var(--_line);border-radius:999px;background:#fff;
  font:inherit;font-weight:400;font-size:16px;color:var(--_ink);width:100%;
}
.mhh-alerte__field input:focus,.mhh-alerte__field select:focus{outline:2px solid var(--_orange);outline-offset:1px;border-color:transparent;}

.mhh-alerte__group{border:0;margin:0;padding:0;}
.mhh-alerte__group legend{padding:0;margin:0 0 10px;font-size:14px;font-weight:600;}
.mhh-alerte__chips{display:flex;flex-wrap:wrap;gap:10px;}
.mhh-alerte__chip{position:relative;cursor:pointer;}
.mhh-alerte__chip input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;}
.mhh-alerte__chip span{
  display:inline-block;padding:10px 18px;border:1px solid var(--_line);border-radius:999px;background:#fff;
  font-size:14px;transition:background .15s ease,border-color .15s ease;
}
.mhh-alerte__chip input:checked + span{background:var(--_orange-soft);border-color:var(--_orange);font-weight:600;}
.mhh-alerte__chip input:focus-visible + span{outline:2px solid var(--_ink);outline-offset:2px;}

.mhh-alerte__consent{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.5;color:var(--_ink-soft);}
.mhh-alerte__consent input{margin-top:3px;flex-shrink:0;width:18px;height:18px;accent-color:var(--_orange);}
.mhh-alerte__consent a{color:inherit;text-decoration:underline;}

.mhh-alerte__submit{
  align-self:flex-start;height:50px;padding:0 28px;border:0;border-radius:999px;cursor:pointer;
  background:var(--_orange);color:var(--mhh-cta-text);
  font:inherit;font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  transition:transform .2s ease,filter .2s ease;
}
.mhh-alerte__submit:hover{transform:translateY(-1px);filter:brightness(.94);}
.mhh-alerte__submit:focus-visible{outline:2px solid var(--_ink);outline-offset:3px;}

/* Champ piège anti-robot : hors écran, jamais visible. */
.mhh-alerte__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

@media (max-width:600px){
  .mhh-alerte__row{grid-template-columns:1fr;}
  .mhh-alerte__submit{align-self:stretch;}
}
@media (prefers-reduced-motion:reduce){
  .mhh-alerte__submit,.mhh-alerte__chip span{transition:none;}
}
