/* ═══ Intro ═══ */
.amb-intro { padding: 60px 24px 0; max-width: 760px; }
.amb-intro-p1 { color: #333; font-size: 14.5px; line-height: 1.85; margin-bottom: 16px; }
.amb-intro-p2 { color: var(--gris-texte); font-size: 13.5px; line-height: 1.8; }
.hero-boutons-compact { margin-top: 26px; }

/* ═══ Comment ça marche ═══ */
.amb-etapes { max-width: 980px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 24px; }
.amb-etape-carte { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--radius); padding: 30px 24px; text-align: left; }
.amb-etape-num { width: 40px; height: 40px; border-radius: 12px; background: var(--jaune); color: var(--noir); font-weight: 700; font-size: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.amb-etape-carte h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.amb-etape-carte p { font-size: 13.5px; color: var(--gris-texte); line-height: 1.6; }

/* ═══ Formulaire ═══ */
.amb-form-section { padding: 90px 24px 110px; background: var(--gris-fond); margin-top: 90px; }
.amb-form-carte { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--gris-bord); border-radius: 28px; padding: 40px; }
@media (max-width: 560px) { .amb-form-carte { padding: 26px 18px; border-radius: 20px; } }

.amb-progress { margin-bottom: 30px; }
.amb-progress-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.amb-progress-tete span { font-size: 12px; font-weight: 700; color: var(--gris-texte); letter-spacing: .06em; text-transform: uppercase; }
.amb-barre { height: 6px; border-radius: 4px; background: var(--gris-clair); overflow: hidden; }
.amb-barre-remplie { height: 100%; background: var(--jaune); border-radius: 4px; transition: width .3s ease; width: 20%; }

.amb-etape-titre { font-size: 20px; font-weight: 600; margin-bottom: 24px; letter-spacing: -0.01em; }

.champ-groupe { margin-bottom: 20px; }
.champ-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.champ-label .fac { font-weight: 500; color: var(--gris-texte); text-transform: none; letter-spacing: 0; }
.champ-input, .champ-select, .champ-textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--gris-bord);
  background: var(--gris-fond); font-family: inherit; font-size: 14.5px; color: var(--noir);
  transition: border-color .2s;
}
.champ-input:focus, .champ-select:focus, .champ-textarea:focus { outline: none; border-color: var(--jaune); background: #fff; }
.champ-textarea { resize: vertical; min-height: 96px; }
.champ-aide { font-size: 12px; color: var(--gris-texte); margin-top: 6px; }
.champ-compteur { font-size: 12px; color: var(--gris-texte); text-align: right; margin-top: 6px; }
.champ-erreur-inline { font-size: 12.5px; color: #DC2626; margin-top: 6px; }

.case-groupe { display: flex; flex-wrap: wrap; gap: 10px; }
.case-item {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  border: 1.5px solid var(--gris-bord); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s;
}
.case-item input { accent-color: var(--noir); width: 16px; height: 16px; flex-shrink: 0; }
.case-item:has(input:checked) { border-color: var(--jaune); background: #FFFBF0; }

.radio-pilule-groupe { display: flex; gap: 10px; }
.radio-pilule {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px;
  border-radius: 14px; border: 1.5px solid var(--gris-bord); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s;
}
.radio-pilule input { accent-color: var(--noir); }
.radio-pilule:has(input:checked) { border-color: var(--jaune); background: #FFFBF0; }

.amb-photo-zone { display: flex; align-items: center; gap: 16px; }
.amb-photo-apercu { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gris-bord); }

.consentement-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--gris-bord); margin-bottom: 10px;
}
.consentement-item input { margin-top: 2px; accent-color: var(--noir); width: 18px; height: 18px; flex-shrink: 0; }
.consentement-item p { font-size: 13px; line-height: 1.6; color: #333; margin: 0; }
.consentement-item a { color: var(--jaune); text-decoration: underline; font-weight: 600; }

.amb-nav-boutons { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.amb-nav-boutons .btn { flex: 1; justify-content: center; }
.amb-nav-boutons.debut { justify-content: flex-end; }

#bouton-envoyer { position: relative; }
#bouton-envoyer:disabled { opacity: .5; cursor: not-allowed; }
#bouton-envoyer:disabled:hover { transform: none; }
#bouton-envoyer.en-cours .txt-envoyer { visibility: hidden; }
#bouton-envoyer .spinner {
  display: none; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px;
  margin: -9px 0 0 -9px; border: 2px solid rgba(0,0,0,.25); border-top-color: var(--noir);
  border-radius: 50%; animation: amb-spin .7s linear infinite;
}
#bouton-envoyer.en-cours .spinner { display: block; }
@keyframes amb-spin { to { transform: rotate(360deg); } }

.amb-erreur-globale {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
  border-radius: 12px; padding: 14px 16px; font-size: 13.5px; margin-top: 18px;
}

/* Honeypot — invisible pour un humain, présent pour un bot */
.amb-piege { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.amb-confirmation { max-width: 520px; margin: 0 auto; text-align: center; }
.amb-confirmation-icone {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255,193,7,.16); color: var(--noir);
  display: grid; place-items: center; margin: 0 auto 26px; font-size: 40px;
}
.amb-confirmation h2 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.amb-confirmation p { color: var(--gris-texte); font-size: 14.5px; line-height: 1.75; margin-bottom: 14px; }
.amb-confirmation-app { margin-top: 22px; padding: 22px 20px; border-radius: 18px; background: var(--gris-fond); border: 1px solid var(--gris-bord); }
.amb-confirmation-app p { margin-bottom: 6px; }
.amb-confirmation-app-titre { font-size: 14.5px; font-weight: 700; color: var(--noir); }
.amb-confirmation-app .stores { margin-top: 18px; }
.amb-confirmation-retour { margin-top: 26px; }

.cf-turnstile { margin: 18px 0; display: flex; justify-content: center; }

@media (max-width: 720px) {
  .amb-etapes { grid-template-columns: 1fr; }
  .radio-pilule-groupe { flex-direction: column; }
}
