/* Pages Alertes (inscription + désinscription) — Mombazet Immobilier
   Reprend les couleurs du site : fond vert foncé, olive #615c40 / #454632, vert pâle #c8f1c7. */

.alerte {
  --olive:      #615c40;
  --olive-fonce:#454632;
  --vert-pale:  #c8f1c7;
  --fond:       #1a2121;
  --erreur:     #e0a48c;
  --texte:      #ffffff;
  --texte-doux: #d9d6c7;
  --bord:       rgba(255,255,255,.25);

  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 16px;
  color: var(--texte);
  text-align: left;
}

/* ---------- En-tête de page ---------- */
.alerte-intro { text-align: center; margin: 10px 0 28px; }
.alerte-intro h1 {
  font-size: 30px; font-weight: 300; margin: 0 0 12px; color: var(--vert-pale);
}
.alerte-intro p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--texte-doux); }
.alerte-atouts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  list-style: none; font-size: 14px; color: var(--vert-pale);
}
.alerte-atouts li::before { content: "✓ "; font-weight: 700; }

/* ---------- Carte formulaire ---------- */
.alerte-carte {
  background: var(--olive-fonce);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.alerte-etape { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.alerte-etape:last-of-type { margin-bottom: 18px; }
.alerte-etape legend {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 400; margin-bottom: 14px; padding: 0;
}
.alerte-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--vert-pale); color: var(--fond);
  font-size: 15px; font-weight: 700; flex: none;
}
.alerte-aide { font-size: 14px; color: var(--texte-doux); margin: -6px 0 14px; line-height: 1.45; }

/* ---------- Pavés cliquables (biens, mail/SMS) ---------- */
.alerte-paves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .alerte-paves { grid-template-columns: repeat(4, 1fr); } }
.alerte-paves.deux { grid-template-columns: repeat(2, 1fr); }

.pave { position: relative; display: block; cursor: pointer; }
.pave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pave span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 10px 8px;
  border: 2px solid var(--bord); border-radius: 10px;
  background: var(--olive); color: var(--texte);
  font-size: 15px; line-height: 1.25;
  transition: background .15s, border-color .15s, color .15s;
}
.pave:hover span { border-color: var(--vert-pale); }
.pave input:focus-visible + span { outline: 3px solid var(--vert-pale); outline-offset: 2px; }
.pave input:checked + span {
  background: var(--vert-pale); border-color: var(--vert-pale); color: var(--fond); font-weight: 600;
}
.pave input:checked + span::before { content: "✓\00a0"; }

/* ---------- Budget ---------- */
.alerte-budget { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.alerte-champ { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; font-size: 14px; color: var(--texte-doux); }
.alerte select, .alerte input[type=email], .alerte input[type=tel], .alerte input[type=text] {
  width: 100%; padding: 12px 12px; font-size: 16px;
  border: 2px solid transparent; border-radius: 8px;
  background: #fff; color: #1a2121;
}
.alerte select:focus, .alerte input:focus { outline: none; border-color: var(--vert-pale); box-shadow: 0 0 0 3px rgba(200,241,199,.35); }
.alerte .en-erreur { border-color: var(--erreur) !important; }

/* ---------- Coordonnées ---------- */
.alerte-coord { display: none; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.alerte-coord.visible { display: flex; }
.alerte-coord h3 { width: 100%; font-size: 15px; font-weight: 600; color: var(--vert-pale); margin: 4px 0 0; }

/* ---------- Messages ---------- */
.alerte .msg_erreur { color: var(--erreur); font-style: normal; font-size: 14px; margin: 8px 0 0; min-height: 0; }
.alerte .msg_erreur:empty { display: none; }

/* ---------- Récapitulatif + bouton ---------- */
.alerte-recap {
  background: rgba(200,241,199,.12); border-left: 4px solid var(--vert-pale);
  border-radius: 6px; padding: 12px 14px; margin: 0 0 18px;
  font-size: 15px; line-height: 1.45;
}
.alerte-recap strong { color: var(--vert-pale); font-weight: 600; }

.alerte-bouton {
  display: block; width: 100%; max-width: 360px; margin: 0 auto;
  padding: 14px 20px; font-size: 17px; font-weight: 600;
  border: 0; border-radius: 50px; cursor: pointer;
  background: var(--vert-pale); color: var(--fond);
  transition: transform .1s, filter .15s;
}
.alerte-bouton:hover { filter: brightness(1.06); }
.alerte-bouton:active { transform: scale(.98); }

/* ---------- Bas de page ---------- */
.alerte-legal { font-size: 12px; line-height: 1.5; color: var(--texte-doux); margin: 22px 0 0; opacity: .85; }
.alerte-liens { text-align: center; margin: 18px 0 0; font-size: 15px; }
.alerte-liens a { color: var(--vert-pale); }

/* ---------- Encadré info (désinscription) ---------- */
.alerte-info {
  font-size: 14px; line-height: 1.5; color: var(--texte-doux);
  background: rgba(0,0,0,.18); border-radius: 8px; padding: 12px 14px; margin: 0 0 20px;
}
.alerte-info strong { color: var(--texte); }

/* Champ piège anti-robots : invisible pour les visiteurs. */
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pages de résultat (confirmation / erreur) ---------- */
.alerte-resultat { text-align: center; padding: 34px 24px 28px; margin-top: 10px; }
.alerte-resultat h1 { font-size: 26px; font-weight: 300; color: var(--vert-pale); margin: 0 0 14px; }
.alerte-resultat p { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.alerte-icone {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--vert-pale); color: var(--fond); font-size: 34px; font-weight: 700;
}
.alerte-icone.erreur { background: var(--erreur); }
.alerte-petit { font-size: 14px !important; color: var(--texte-doux); }
.alerte-petit a { color: var(--vert-pale); }
.alerte-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 18px; }
.alerte-actions .alerte-bouton { display: inline-block; width: auto; min-width: 220px; margin: 0; text-decoration: none; color: var(--fond); }
.alerte-bouton.secondaire { background: transparent; color: var(--texte) !important; border: 2px solid var(--bord); }
.alerte-bouton.secondaire:hover { border-color: var(--vert-pale); }
/* styles.css change le fond des liens au survol : on le neutralise pour les boutons. */
.alerte-actions .alerte-bouton:hover { background: var(--vert-pale); color: var(--fond); }
.alerte-actions .alerte-bouton.secondaire:hover { background: transparent; color: var(--texte); }
