/* TRASPAME v2 — mot de passe oublié (Recuperationmp) : page autonome, mobile d'abord */
.rc { display: flex; align-items: flex-start; justify-content: center; padding: 28px var(--gutter) 40px;
  background: radial-gradient(900px 420px at 15% -10%, rgba(224, 80, 20, .10), transparent 60%), radial-gradient(800px 400px at 100% 0%, rgba(31, 53, 86, .10), transparent 60%), var(--bg); }
.rc__box { width: 100%; max-width: 480px; }

/* Étapes */
.rc-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; font: 600 12px var(--sans); color: var(--muted); }
.rc-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rc-steps li + li::before { content: ""; width: 34px; height: 2px; margin: 0 10px; background: var(--line); border-radius: 2px; }
.rc-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 12px; color: var(--muted); }
.rc-steps li.is-on { color: var(--navy); }
.rc-steps li.is-on .n { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 6px 14px rgba(224, 80, 20, .3); }
.rc-steps li.is-done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.rc-steps li.is-done + li::before, .rc-steps li.is-on + li.is-on::before { background: var(--ok); }
@media (max-width: 420px) { .rc-steps li span.t { display: none; } .rc-steps li.is-on span.t { display: inline; } .rc-steps li + li::before { width: 22px; margin: 0 6px; } }

/* Carte */
.rc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 34px 28px 28px; text-align: center; animation: rcIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rc-ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 30px rgba(224, 80, 20, .32), 0 0 0 8px rgba(224, 80, 20, .10); }
.rc-ico--ok { background: linear-gradient(135deg, #1fa12d, var(--ok)); box-shadow: 0 14px 30px rgba(19, 133, 30, .30), 0 0 0 8px rgba(19, 133, 30, .10); }
.rc-ico--warn { background: linear-gradient(135deg, #f0a030, #d9780b); box-shadow: 0 14px 30px rgba(217, 120, 11, .30), 0 0 0 8px rgba(217, 120, 11, .10); }
.rc-ico svg { width: 36px; height: 36px; }
.rc-ico--pop { animation: rcPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rcPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-title { margin: 0 0 8px; font: 700 26px/1.2 var(--serif); color: var(--navy); }
.rc-sub { margin: 0 auto 24px; max-width: 360px; font: 400 15px/1.55 var(--sans); color: var(--muted); }
.rc-sub b { color: var(--navy); font-weight: 700; word-break: break-all; }

/* Alertes */
.rc-alert { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font: 500 14px/1.45 var(--sans); background: #fdecea; border: 1px solid #f3b7b0; color: #8a1c10; }
.rc-alert svg { flex: none; margin-top: 1px; }

/* Champs */
.rc-form { text-align: left; }
.rc-field { margin: 0 0 16px; }
.rc-field label { display: block; margin: 0 0 7px; font: 700 12px var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.rc-input { position: relative; display: flex; align-items: center; height: 54px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rc-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 80, 20, .12); }
.rc-input.is-bad { border-color: #d64a3a; }
.rc-input > svg { flex: none; margin-left: 16px; color: var(--muted); }
.rc-input:focus-within > svg { color: var(--gold); }
.rc-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; padding: 0 14px; font: 500 16px var(--sans); color: var(--text); }
.rc-eye { flex: none; width: 48px; height: 100%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 0 12px 12px 0; }
.rc-eye:hover, .rc-eye[aria-pressed="true"] { color: var(--gold); }

/* Force et règles */
.rc-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.rc-meter i { height: 5px; border-radius: 4px; background: var(--line); transition: background .2s; }
.rc-meter[data-level="1"] i:nth-child(1) { background: #d64a3a; }
.rc-meter[data-level="2"] i:nth-child(-n+2) { background: #e8a100; }
.rc-meter[data-level="3"] i { background: var(--ok); }
.rc-rules { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font: 500 13px var(--sans); color: var(--muted); }
.rc-rules li { display: flex; align-items: center; gap: 8px; }
.rc-rules li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: #fff center/10px no-repeat; transition: all .15s; }
.rc-rules li.ok { color: var(--ok); }
.rc-rules li.ok::before { border-color: var(--ok); background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Boutons */
.rc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 6px; padding: 0 22px; border: 0; border-radius: 14px; font: 700 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 24px rgba(224, 80, 20, .28); }
.rc-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(224, 80, 20, .34); }
.rc-btn.is-busy { opacity: .7; pointer-events: none; }
.rc-btn--ghost { color: var(--navy); background: #fff; border: 2px solid var(--line); box-shadow: none; }
.rc-btn--ghost:hover { border-color: var(--navy); box-shadow: none; }
.rc-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.rc-link { display: inline-block; margin-top: 18px; font: 600 14px var(--sans); color: var(--muted); text-decoration: none; }
.rc-link:hover { color: var(--gold); }

/* Confirmation d'envoi */
.rc-tips { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--bg); text-align: left; font: 500 13.5px/1.5 var(--sans); color: var(--muted); list-style: none; display: grid; gap: 8px; }
.rc-tips li { display: flex; gap: 10px; align-items: flex-start; }
.rc-tips svg { flex: none; margin-top: 2px; color: var(--gold); }
.rc-card form + form { margin-top: 0; }
.rc-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font: 500 12.5px var(--sans); color: var(--muted); }
@media (min-width: 640px) { .rc { padding-top: 56px; } .rc-card { padding: 40px 38px 32px; } }
@media (prefers-reduced-motion: reduce) { .rc-card, .rc-ico--pop { animation: none; } }
