/* =====================================================================
   NŪR AL-ATHAR — Inscription premium (app/Views/auth/register.php)
   Préfixe .rx-* : aucune collision avec chrome.css (.nx-*) ni avec les
   anciennes règles .register-* de pages.css. Couleurs prises dans les
   tokens uniquement (compatible avec les 100 thèmes, clair et sombre),
   géométrie en propriétés logiques (compatible RTL).
   ===================================================================== */
.register-body {
  --rx-radius: 28px;
  --rx-line: rgba(255, 255, 255, .13);
  --rx-glass: rgba(255, 255, 255, .06);
  --rx-ease: cubic-bezier(.22, .8, .24, 1);
  --rx-spring: cubic-bezier(.5, 1.5, .45, 1);
  --rx-gold-grad: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 52%, var(--c-gold-deep) 100%);
  --rx-star: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .5) 1px, transparent 0);
  display: block;
  background: var(--c-bg);
  background-image: var(--pattern-ivory);
  background-size: 22px 22px;
}

/* ───────────────────────── Ossature ───────────────────────── */
.rx { display: grid; grid-template-columns: minmax(420px, 41%) 1fr; align-items: start; min-height: 100vh; }

/* ───────────────────────── Panneau visuel ───────────────────────── */
.rx-visual {
  position: sticky; top: 14px; align-self: start;
  margin: 14px; margin-inline-end: 0;
  min-height: calc(100vh - 28px);
  border-radius: var(--rx-radius);
  overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(ellipse 70% 50% at 18% 0%, rgba(200, 155, 94, .24), transparent 70%),
    radial-gradient(ellipse 70% 60% at 100% 100%, color-mix(in srgb, var(--c-green) 70%, transparent), transparent 70%),
    linear-gradient(160deg, var(--c-header), color-mix(in srgb, var(--c-header) 72%, #000));
  box-shadow: 0 40px 80px -30px rgba(5, 15, 30, .55);
}
.rx-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rx-sky::after { content: ""; position: absolute; inset: 0; background-image: var(--rx-star); background-size: 74px; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000, transparent 62%); mask-image: linear-gradient(180deg, #000, transparent 62%); }
.rx-sky i { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; animation: rxFloat 18s ease-in-out infinite alternate; }
.rx-sky i:nth-child(1) { width: 300px; height: 300px; background: var(--c-gold); top: -90px; inset-inline-start: -70px; opacity: .26; }
.rx-sky i:nth-child(2) { width: 340px; height: 340px; background: var(--c-green); bottom: -130px; inset-inline-end: -90px; animation-duration: 22s; }
.rx-sky i:nth-child(3) { width: 210px; height: 210px; background: #3E6FA8; top: 46%; inset-inline-start: 42%; opacity: .2; animation-duration: 26s; }
@keyframes rxFloat { to { transform: translate3d(0, -38px, 0) scale(1.08); } }

.rx-visual-inner { position: relative; display: flex; flex-direction: column; gap: clamp(1.4rem, 2.6vh, 2.4rem); min-height: calc(100vh - 28px); padding: clamp(1.5rem, 2.6vw, 2.6rem); }
.rx-visual-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rx-visual .brand-lockup { display: inline-flex; align-items: center; gap: .8rem; color: #fff; }
.rx-visual .brand-lockup img { height: 54px; width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.rx-visual .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.rx-visual .brand-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.rx-visual .brand-arabic { font-family: var(--font-arabic); font-size: .95rem; color: var(--c-gold-on-dark); }
.rx-visual .brand-slogan { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.rx-hero { max-width: 34rem; }
.rx-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--c-gold-on-dark); }
.rx-kicker::before { content: "◆"; font-size: .5rem; }
.rx-calli { margin: .5rem 0 .3rem; font-family: var(--font-arabic); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.3; background: linear-gradient(180deg, #F5E3BE, var(--c-gold) 58%, var(--c-gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 22px rgba(200, 155, 94, .28)); }
.rx-hero h2 { margin: 0 0 .6rem; font-family: var(--font-heading); font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.14; font-weight: 700; color: #fff; }
.rx-lead { margin: 0; font-size: .95rem; line-height: 1.72; color: rgba(255, 255, 255, .74); }

/* Fil des étapes (vertical) */
.rx-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.rx-steps li { position: relative; display: flex; align-items: center; gap: .85rem; padding: .55rem 0; }
.rx-steps li::before { content: ""; position: absolute; inset-inline-start: 17px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .12); }
.rx-steps li:first-child::before { top: 50%; }
.rx-steps li:last-child::before { bottom: 50%; }
.rx-steps li.is-done::before { background: linear-gradient(180deg, var(--c-gold), var(--c-gold-deep)); }
.rx-step-dot { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-size: .95rem; font-weight: 700; color: rgba(255, 255, 255, .62); background: color-mix(in srgb, var(--c-header) 80%, #000); border: 1px solid var(--rx-line); transition: transform .4s var(--rx-spring), background .3s, color .3s, border-color .3s; }
.rx-steps li.is-done .rx-step-dot { background: var(--rx-gold-grad); color: var(--c-navy-deep); border-color: transparent; }
.rx-steps li.is-active .rx-step-dot { background: #fff; color: var(--c-navy-deep); border-color: #fff; transform: scale(1.12); box-shadow: 0 0 0 5px rgba(255, 255, 255, .13); }
.rx-step-txt { display: flex; flex-direction: column; min-width: 0; }
.rx-step-txt b { font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .72); transition: color .3s; }
.rx-step-txt small { font-size: .7rem; color: rgba(255, 255, 255, .42); }
.rx-steps li.is-active .rx-step-txt b { color: #fff; }
.rx-steps li.is-done .rx-step-txt b { color: rgba(255, 255, 255, .85); }

.rx-visual-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 1.1rem; }
.rx-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.rx-benefits li { display: flex; align-items: flex-start; gap: .85rem; }
.rx-benefits .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rx-glass); border: 1px solid var(--rx-line); color: var(--c-gold-on-dark); font-size: 1.05rem; }
.rx-benefits b { display: block; font-size: .9rem; font-weight: 600; color: #fff; }
.rx-benefits small { display: block; font-size: .78rem; line-height: 1.6; color: rgba(255, 255, 255, .58); }
.rx-quote { margin: 0; padding: .95rem 1.15rem; border-radius: 18px; background: rgba(255, 255, 255, .045); border-inline-start: 2px solid var(--c-gold); }
.rx-quote p { margin: 0 0 .35rem; font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.rx-quote cite { font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-on-dark); }

/* ───────────────────────── Colonne formulaire ───────────────────────── */
.rx-main { padding: clamp(1.2rem, 3vw, 2.8rem) clamp(1rem, 3vw, 3rem); }
.rx-inner { width: min(100%, 44rem); margin-inline: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.rx-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.rx-back { display: inline-flex; align-items: center; gap: .45rem; color: var(--c-muted); font-weight: 600; }
.rx-back:hover { color: var(--c-link); }
.rx-back .bi { font-size: .8rem; }
[dir="rtl"] .rx-back .bi-arrow-left::before { content: "\F138"; }
.rx-top-login { color: var(--c-muted); }
.rx-top-login a { font-weight: 700; color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--c-border); }
.rx-top-login a:hover { text-decoration-color: currentColor; }

.rx-progress { display: flex; flex-direction: column; gap: .5rem; }
.rx-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--c-muted); }
.rx-progress-head b { color: var(--c-gold-text); }
.rx-bar { position: relative; height: 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-ink) 10%, transparent); overflow: hidden; }
.rx-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: var(--rx-gold-grad); transition: inline-size .7s var(--rx-ease); }
.rx-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: rxShine 2.6s ease-in-out infinite; }
@keyframes rxShine { 60%, 100% { transform: translateX(100%); } }

/* Carte */
.rx-card { position: relative; background: var(--c-paper); border: 1px solid var(--c-border-soft); border-radius: var(--rx-radius); padding: clamp(1.3rem, 3vw, 2.6rem); box-shadow: 0 30px 70px -40px var(--c-shadow), var(--shadow-sm); }
.rx-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; border-radius: var(--rx-radius) var(--rx-radius) 0 0; background: var(--rx-gold-grad); opacity: .9; }
.rx-head { text-align: center; margin-bottom: 1.6rem; }
.rx-eyebrow { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--c-gold-text); }
.rx-card h1 { margin: .4rem 0 .35rem; font-family: var(--font-heading); font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; color: var(--c-heading); }
.rx-sub { margin: 0 auto; max-width: 34rem; font-size: .92rem; line-height: 1.7; color: var(--c-muted); }
.rx-orn { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 1rem 0 0; color: var(--c-gold); font-size: .55rem; }
.rx-orn::before, .rx-orn::after { content: ""; height: 1px; width: min(9rem, 24%); background: linear-gradient(90deg, transparent, var(--c-border), transparent); }

/* Groupes de champs */
.rx-group { border: 0; margin: 0 0 1.4rem; padding: 0; }
.rx-group > legend { float: inline-start; width: 100%; margin-bottom: .9rem; padding: 0; display: flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--c-green-text); }
.rx-group > legend::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-border-soft), transparent); }
.rx-group::after { content: ""; display: table; clear: both; }
.rx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.rx-grid .rx-full { grid-column: 1 / -1; }

/* Champs (structure attendue par forms.js : label.field > span + span.input-icon > i + input) */
.rx .field { display: flex; flex-direction: column; gap: .4rem; }
.rx .field > span:first-child { font-size: .8rem; font-weight: 600; color: var(--c-heading); }
.rx .field .sf-req { color: var(--c-danger); margin-inline-start: .15rem; }
.rx .field .sf-opt { font-weight: 400; color: var(--c-muted); margin-inline-start: .3rem; }
.rx .input-icon, .rx .sf-wrap { position: relative; display: flex; align-items: center; background: var(--c-input); border: 1px solid var(--c-border-soft); border-radius: 14px; transition: border-color .25s, box-shadow .25s, background .25s; }
.rx .sf-wrap > .bi { position: absolute; inset-inline-start: .9rem; font-size: .95rem; color: var(--c-muted); pointer-events: none; transition: color .25s; }
.rx .sf-wrap input, .rx .sf-wrap select { width: 100%; border: 0; background: transparent; color: var(--c-ink); font-size: .95rem; font-family: inherit; padding: .85rem 1rem; border-radius: inherit; outline: 0; }
.rx .sf-wrap.has-icon input, .rx .sf-wrap.has-icon select { padding-inline-start: 2.6rem; }
.rx .sf-wrap.has-actions input { padding-inline-end: 3rem; }
.rx .sf-wrap select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-size: 5px 5px, 5px 5px; background-position: right 1.15rem center, right calc(1.15rem - 5px) center; background-repeat: no-repeat; }
[dir="rtl"] .rx .sf-wrap select { background-position: left calc(1.15rem - 5px) center, left 1.15rem center; background-image: linear-gradient(-45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(-135deg, var(--c-muted) 50%, transparent 50%); }
.rx .sf-wrap:focus-within { border-color: var(--c-gold); box-shadow: 0 0 0 4px var(--c-gold-soft); }
.rx .sf-wrap:focus-within > .bi { color: var(--c-gold-text); }
.rx .sf.is-valid .sf-wrap { border-color: color-mix(in srgb, var(--c-success) 45%, var(--c-border-soft)); }
.rx .sf.is-invalid .sf-wrap { border-color: var(--c-danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-danger) 12%, transparent); }
.rx .sf-actions { position: absolute; inset-inline-end: .5rem; display: flex; align-items: center; gap: .2rem; }
.rx .toggle-pw { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--c-muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.rx .toggle-pw:hover { background: var(--c-gold-soft); color: var(--c-gold-text); }
.rx .sf-msg { display: flex; align-items: center; gap: .4rem; font-size: .76rem; line-height: 1.45; color: var(--c-danger); }
.rx .sf-msg:empty { display: none; }
.rx .sf-msg-ok { color: var(--c-success); }
.rx-hint { font-size: .76rem; line-height: 1.5; color: var(--c-muted); }

/* Jauge de robustesse (injectée par forms.js) */
.rx .sf-strength { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin-top: .2rem; }
.rx .sf-strength .bars { display: flex; gap: 4px; flex: 1; min-width: 7rem; }
.rx .sf-strength .bars i { flex: 1; height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-ink) 12%, transparent); transition: background .3s; }
.rx .sf-strength small { font-size: .74rem; font-weight: 700; color: var(--c-muted); }
.rx .sf-strength[data-level="1"] .bars i:nth-child(-n+1) { background: var(--c-danger); }
.rx .sf-strength[data-level="2"] .bars i:nth-child(-n+2) { background: var(--c-warning); }
.rx .sf-strength[data-level="3"] .bars i:nth-child(-n+3) { background: var(--c-gold); }
.rx .sf-strength[data-level="4"] .bars i { background: var(--c-success); }
.rx .sf-rules { flex: 1 0 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .72rem; color: var(--c-muted); }
.rx .sf-rules li { display: flex; align-items: center; gap: .3rem; }
.rx .sf-rules li::before { content: "○"; font-size: .6rem; }
.rx .sf-rules li.ok { color: var(--c-success); }
.rx .sf-rules li.ok::before { content: "●"; }

/* Cartes de choix (niveau, objectifs, disponibilité) */
.rx-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: .85rem; }
.rx-choice { position: relative; display: block; cursor: pointer; }
.rx-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.rx-choice-in { display: flex; align-items: flex-start; gap: .85rem; height: 100%; padding: 1rem; border: 1px solid var(--c-border-soft); border-radius: 18px; background: var(--c-paper-2); transition: border-color .25s, background .25s, transform .3s var(--rx-ease), box-shadow .3s; }
.rx-choice:hover .rx-choice-in { transform: translateY(-2px); border-color: var(--c-border); box-shadow: var(--shadow-sm); }
.rx-choice-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--c-gold-soft); color: var(--c-gold-text); font-size: 1.15rem; transition: background .25s, color .25s, transform .4s var(--rx-spring); }
.rx-choice-ico .ar { font-family: var(--font-arabic); font-size: 1.5rem; line-height: 1; }
.rx-choice-txt { min-width: 0; padding-inline-end: 1.5rem; }
.rx-choice-txt strong { display: block; font-size: .93rem; font-weight: 600; line-height: 1.35; color: var(--c-heading); }
.rx-choice-txt small { display: block; margin-top: .2rem; font-size: .78rem; line-height: 1.55; color: var(--c-muted); }
.rx-choice-mark { position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c-paper); border: 1px solid var(--c-border-soft); color: transparent; font-size: .7rem; transition: background .25s, color .25s, border-color .25s, transform .4s var(--rx-spring); }
.rx-choice input:checked ~ .rx-choice-in { border-color: var(--c-gold); background: color-mix(in srgb, var(--c-gold-soft) 60%, var(--c-paper)); box-shadow: 0 0 0 3px var(--c-gold-soft); }
.rx-choice input:checked ~ .rx-choice-in .rx-choice-ico { background: var(--rx-gold-grad); color: var(--c-navy-deep); transform: scale(1.06); }
.rx-choice input:checked ~ .rx-choice-in .rx-choice-mark { background: var(--rx-gold-grad); border-color: transparent; color: var(--c-navy-deep); transform: scale(1.1); }
.rx-choice input:focus-visible ~ .rx-choice-in { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* Consentement */
.rx-consent { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.3rem; padding: .95rem 1.1rem; border: 1px dashed var(--c-border); border-radius: 16px; background: var(--c-gold-soft); font-size: .84rem; line-height: 1.6; color: var(--c-ink); }
.rx-consent input { flex: none; width: 19px; height: 19px; margin-top: .1rem; accent-color: var(--c-green); cursor: pointer; }
.rx-consent a { font-weight: 700; color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }

/* Actions */
.rx-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.rx-actions.is-single { justify-content: stretch; }
.rx-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.7rem; border: 0; border-radius: var(--r-pill); font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; overflow: hidden; transition: transform .25s var(--rx-ease), box-shadow .25s, background .25s, color .25s; }
.rx-btn:active { transform: translateY(1px); }
.rx-btn-primary { flex: 1; background: var(--rx-gold-grad); color: var(--c-navy-deep); box-shadow: 0 14px 30px -14px rgba(200, 155, 94, .85); }
.rx-btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--rx-ease); }
.rx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(200, 155, 94, .95); }
.rx-btn-primary:hover::after { transform: translateX(120%); }
.rx-btn-ghost { background: transparent; color: var(--c-muted); border: 1px solid var(--c-border-soft); }
.rx-btn-ghost:hover { border-color: var(--c-gold); color: var(--c-gold-text); background: var(--c-gold-soft); }
.rx-btn .bi { font-size: .9rem; }
[dir="rtl"] .rx-btn .bi-arrow-right::before { content: "\F12C"; }
[dir="rtl"] .rx-btn .bi-arrow-left::before { content: "\F138"; }

/* Récapitulatif (étape 4) */
.rx-summary { display: grid; gap: 1rem; }
.rx-sum-card { border: 1px solid var(--c-border-soft); border-radius: 18px; background: var(--c-paper-2); overflow: hidden; }
.rx-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; background: color-mix(in srgb, var(--c-green) 6%, transparent); border-bottom: 1px solid var(--c-border-soft); }
.rx-sum-head h3 { margin: 0; display: flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c-green-text); }
.rx-sum-edit { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--c-link); }
.rx-sum-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.rx-sum-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.5rem; margin: 0; padding: 1rem 1.1rem; }
.rx-sum-list > div { display: flex; flex-direction: column; gap: .15rem; padding: .45rem 0; border-bottom: 1px dotted var(--c-border-soft); }
.rx-sum-list > div:last-child, .rx-sum-list > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.rx-sum-list .rx-full { grid-column: 1 / -1; }
.rx-sum-list dt { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.rx-sum-list dd { margin: 0; font-size: .92rem; font-weight: 600; color: var(--c-heading); }
.rx-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.rx-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: var(--r-pill); background: var(--c-gold-soft); border: 1px solid var(--c-border-soft); font-size: .78rem; font-weight: 600; color: var(--c-gold-text); }
.rx-final-note { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 0; padding: .8rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--c-success) 8%, transparent); font-size: .82rem; color: var(--c-green-text); }

/* Alerte */
.rx-alert { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.2rem; padding: .85rem 1.05rem; border-radius: 14px; background: color-mix(in srgb, var(--c-danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c-danger) 35%, transparent); color: var(--c-danger); font-size: .86rem; line-height: 1.55; }

/* Sceaux de confiance */
.rx-seals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem; }
.rx-seal { display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--c-border-soft); border-radius: 16px; background: color-mix(in srgb, var(--c-paper) 70%, transparent); }
.rx-seal .bi { flex: none; font-size: 1.1rem; color: var(--c-gold-text); }
.rx-seal b { display: block; font-size: .82rem; font-weight: 600; color: var(--c-heading); }
.rx-seal small { display: block; font-size: .74rem; line-height: 1.5; color: var(--c-muted); }
.rx-foot { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .76rem; color: var(--c-muted); }
.rx-foot .bi { color: var(--c-success); }

/* Entrée en scène */
@media (prefers-reduced-motion: no-preference) {
  .rx-anim { opacity: 0; transform: translateY(14px); animation: rxIn .6s var(--rx-ease) forwards; }
  .rx-anim:nth-child(1) { animation-delay: .04s; }
  .rx-anim:nth-child(2) { animation-delay: .1s; }
  .rx-anim:nth-child(3) { animation-delay: .16s; }
  .rx-anim:nth-child(4) { animation-delay: .22s; }
  .rx-anim:nth-child(5) { animation-delay: .28s; }
  .rx-anim:nth-child(6) { animation-delay: .34s; }
  @keyframes rxIn { to { opacity: 1; transform: none; } }
}

/* ───────────────────────── Adaptatif ───────────────────────── */
@media (max-width: 1080px) {
  .rx { grid-template-columns: minmax(0, 1fr); }
  /* relative et non static : le calque d'aurores (.rx-sky, en position absolue) doit rester ancré au panneau,
     sinon il se cale sur le bloc englobant initial et élargit le document. */
  .rx-visual { position: relative; top: auto; min-height: 0; margin: 12px; border-radius: 22px; }
  .rx-visual-inner { min-height: 0; padding: 1.4rem; gap: 1.2rem; }
  .rx-steps { flex-direction: row; overflow-x: auto; gap: .2rem; padding-bottom: .3rem; scrollbar-width: none; }
  .rx-steps::-webkit-scrollbar { display: none; }
  .rx-steps li { flex-direction: column; align-items: center; text-align: center; gap: .4rem; min-width: 5.5rem; padding: .3rem 0; }
  .rx-steps li::before { inset-inline-start: 0; inset-inline-end: 0; top: 18px; bottom: auto; width: auto; height: 2px; }
  .rx-steps li:first-child::before { inset-inline-start: 50%; top: 18px; }
  .rx-steps li:last-child::before { inset-inline-end: 50%; }
  .rx-step-txt { align-items: center; }
  .rx-step-txt small { display: none; }
  .rx-benefits { display: none; }
  .rx-quote { display: none; }
  .rx-hero h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .rx-calli { font-size: clamp(2.2rem, 9vw, 3rem); }
}
@media (max-width: 860px) {
  /* En-tête du panneau : la marque et les drapeaux ne doivent jamais se chevaucher. */
  .rx-visual-top { flex-wrap: wrap; row-gap: .7rem; }
  .rx-visual-top > * { min-width: 0; }
  .rx-visual .brand-lockup img { height: 44px; }
  .rx-visual .brand-name { font-size: 1.12rem; }
  .rx-visual .brand-arabic { font-size: .85rem; }
  .rx-visual .brand-slogan { display: none; }
  /* Les quatre étapes tiennent dans la largeur d'un téléphone. */
  .rx-steps li { min-width: 0; flex: 1; }
  .rx-step-dot { width: 30px; height: 30px; font-size: .82rem; }
  .rx-steps li::before { top: 15px; }
  .rx-steps li:first-child::before, .rx-steps li:last-child::before { top: 15px; }
  .rx-step-txt b { font-size: .72rem; line-height: 1.25; }
}
@media (max-width: 720px) {
  .rx-grid { grid-template-columns: minmax(0, 1fr); }
  .rx-sum-list { grid-template-columns: minmax(0, 1fr); }
  .rx-card { padding: 1.2rem 1.05rem; border-radius: 22px; }
  .rx-actions { flex-direction: column-reverse; }
  .rx-actions .rx-btn { width: 100%; }
  .rx-lead { font-size: .88rem; }
}
