/* NŪR AL-ATHAR — Pages d'authentification : en-tête et pied de page premium, champs flottants intelligents.
 * Préfixe .ax- ; s'appuie sur les jetons de thème (tokens.css / themes.css) : fonctionne avec les 100 thèmes,
 * le mode sombre et l'écriture de droite à gauche (propriétés logiques uniquement).
 * Chargé par app/Views/layouts/auth.php, après register-premium.css. */

body.ax-on {
  --ax-strip-h: 38px;
  --ax-bar-h: 72px;
  --ax-ease: cubic-bezier(.22, .8, .24, 1);
  --ax-spring: cubic-bezier(.5, 1.5, .45, 1);
  --ax-line: rgba(255, 255, 255, .12);
  --ax-gold-grad: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 52%, var(--c-gold-deep) 100%);
  --ax-dark: linear-gradient(120deg, color-mix(in srgb, var(--c-header) 88%, #000), var(--c-header) 45%, color-mix(in srgb, var(--c-header) 78%, var(--c-green)));
  /* Jetons de l'inscription premium, étendus à toutes les pages d'authentification */
  --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: flex; flex-direction: column; min-height: 100vh; margin: 0;
  background: var(--c-bg); background-image: var(--pattern-ivory); background-size: 22px 22px;
}
body.ax-on > .ax-main { flex: 1 0 auto; display: block; min-width: 0; }
body.ax-on.signup-body > main { display: block; min-height: 0; }
body.ax-on .flash-stack { top: calc(var(--ax-strip-h) + var(--ax-bar-h) + 14px); z-index: 1060; }

/* ═════════════════════════ EN-TÊTE ═════════════════════════ */
.ax-header { position: sticky; top: calc(-1 * var(--ax-strip-h)); z-index: 1030; color: #fff; background: var(--ax-dark); box-shadow: 0 18px 40px -26px rgba(5, 15, 30, .75); }
.ax-header::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c-gold) 20%, var(--c-gold-light) 50%, var(--c-gold) 80%, transparent); opacity: .85; pointer-events: none; }
.ax-header a { text-decoration: none; }

/* Bandeau de coordonnées */
.ax-strip { height: var(--ax-strip-h); background: rgba(0, 0, 0, .28); border-bottom: 1px solid var(--ax-line); font-size: .78rem; }
.ax-strip-in, .ax-bar-in { width: min(100%, 1560px); margin-inline: auto; padding-inline: clamp(.9rem, 2.4vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.ax-strip-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem 1.4rem; min-width: 0; }
.ax-strip-list a { display: inline-flex; align-items: center; gap: .45rem; color: rgba(255, 255, 255, .82); white-space: nowrap; transition: color .2s; }
.ax-strip-list a .bi { color: var(--c-gold-on-dark, var(--c-gold-light)); font-size: .8rem; }
.ax-strip-list a:hover { color: #fff; }
.ax-strip-list a.is-wa .bi { color: #4ADE80; }
.ax-strip-list a.is-wa:hover { color: #86EFAC; }
.ax-strip-end { display: flex; align-items: center; gap: .6rem; flex: none; }
.ax-strip-secure { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.ax-strip-secure .bi { color: #4ADE80; }

/* Barre principale */
.ax-bar { height: var(--ax-bar-h); }
.ax-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; flex: none; min-width: 0; }
.ax-brand:hover { color: #fff; }
.ax-brand-logo { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); box-shadow: 0 0 0 1px rgba(200, 155, 94, .55), 0 8px 22px -8px rgba(0, 0, 0, .6); transition: transform .5s var(--ax-spring); }
.ax-brand-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ax-brand:hover .ax-brand-logo { transform: rotate(-8deg) scale(1.06); }
.ax-brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ax-brand-txt strong { font-family: 'Cormorant Garamond', var(--font-heading); font-size: 1.32rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; background: linear-gradient(180deg, #fff, #F5E3BE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ax-brand-txt small { font-size: .6rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(255, 255, 255, .58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .ax-brand-txt strong, [dir="rtl"] .ax-brand-txt small { letter-spacing: 0; }
[dir="rtl"] .ax-brand-txt strong { font-family: var(--font-arabic-ui, var(--font-arabic)); font-size: 1.25rem; }
[dir="rtl"] .ax-brand-txt small { font-size: .7rem; }

.ax-nav { display: flex; align-items: center; justify-content: center; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.ax-nav a { position: relative; display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .85rem; border-radius: var(--r-pill, 999px); color: rgba(255, 255, 255, .8); font-size: .86rem; font-weight: 600; white-space: nowrap; transition: color .25s, background .25s; }
.ax-nav a .bi { font-size: .9rem; color: var(--c-gold-on-dark, var(--c-gold-light)); opacity: .85; transition: transform .35s var(--ax-spring); }
.ax-nav a::after { content: ""; position: absolute; inset-inline: .9rem; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ax-gold-grad); transform: scaleX(0); transition: transform .35s var(--ax-ease); }
.ax-nav a:hover, .ax-nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .07); }
.ax-nav a:hover::after, .ax-nav a:focus-visible::after { transform: scaleX(1); }
.ax-nav a:hover .bi { transform: translateY(-2px); }

.ax-tools { display: flex; align-items: center; gap: .55rem; flex: none; }
.ax-cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding: 0 1.15rem; border-radius: var(--r-pill, 999px); font-size: .86rem; font-weight: 700; white-space: nowrap; transition: transform .3s var(--ax-ease), box-shadow .3s, background .25s, color .25s, border-color .25s; }
.ax-cta.is-gold { background: var(--ax-gold-grad); color: var(--c-navy-deep, #081A30); box-shadow: 0 12px 26px -12px rgba(200, 155, 94, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.ax-cta.is-gold:hover { color: var(--c-navy-deep, #081A30); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(200, 155, 94, 1), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ax-cta.is-ghost { color: #fff; border: 1px solid rgba(200, 155, 94, .6); background: rgba(255, 255, 255, .05); }
.ax-cta.is-ghost:hover { color: #fff; background: rgba(200, 155, 94, .18); border-color: var(--c-gold-light); transform: translateY(-2px); }
.ax-header :focus-visible, .ax-menu :focus-visible, .ax-footer :focus-visible { outline: 2px solid var(--c-gold-light); outline-offset: 3px; border-radius: 8px; }

.ax-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ax-line); background: rgba(255, 255, 255, .06); cursor: pointer; }
.ax-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, inline-size .3s; }
.ax-burger span:nth-child(2) { inline-size: 70%; background: var(--c-gold-light); }
.ax-burger:hover span:nth-child(2) { inline-size: 100%; }

/* Menu mobile (offcanvas Bootstrap) */
.ax-menu.offcanvas { --bs-offcanvas-width: min(92vw, 380px); --bs-offcanvas-bg: transparent; color: #fff; background: var(--ax-dark); border: 0; z-index: 1080; }
.ax-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--ax-line); }
.ax-menu-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ax-line); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; }
.ax-menu-close:hover { background: rgba(200, 155, 94, .25); }
.ax-menu-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 1.1rem; }
.ax-menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ax-menu-cta .ax-cta { padding: 0 .6rem; font-size: .82rem; }
.ax-menu-nav { display: flex; flex-direction: column; gap: .3rem; }
.ax-menu-nav a { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 14px; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.ax-menu-nav a:hover { background: rgba(255, 255, 255, .06); border-color: var(--ax-line); color: #fff; }
.ax-menu-nav .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(200, 155, 94, .14); color: var(--c-gold-light); }
.ax-menu-nav a > span:nth-child(2) { flex: 1; }
.ax-menu-nav a > .bi { font-size: .75rem; opacity: .5; }
.ax-menu-prefs { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .8rem; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--ax-line); }
.ax-menu-contact { display: flex; flex-direction: column; gap: .45rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ax-line); }
.ax-menu-contact p { margin: 0 0 .2rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--c-gold-light); }
.ax-menu-contact a { display: flex; align-items: center; gap: .65rem; color: rgba(255, 255, 255, .88); font-size: .9rem; text-decoration: none; }
.ax-menu-contact a .bi { color: var(--c-gold-light); }
.ax-menu-contact a.is-wa .bi { color: #4ADE80; }

/* ═════════════════════════ CORPS : ajustements sous l'en-tête ═════════════════════════ */
body.ax-on .nx-auth { min-height: 0; }
body.ax-on .nx-auth-main { min-height: 0; padding-block: 1.2rem 2.4rem; }
body.ax-on .nx-auth-center { padding-top: 3.4rem; }
body.ax-on .nx-auth-visual, body.ax-on .rx-visual { top: calc(var(--ax-bar-h) + 14px); min-height: calc(100vh - var(--ax-bar-h) - 28px); }
body.ax-on .nx-auth-visual-inner, body.ax-on .rx-visual-inner { min-height: calc(100vh - var(--ax-bar-h) - 28px); }
body.ax-on .rx { min-height: 0; }
body.ax-on .rx-main { padding-bottom: clamp(2rem, 4vw, 3.4rem); }

/* Collision de noms avec seo-topics.css (.rx-hero / .rx-grid / .rx-card d'un autre module) : neutralisation locale */
.rx .rx-hero { display: block; padding: 0; border-radius: 0; background: none; color: inherit; max-width: 34rem; }
.rx .rx-hero p.rx-lead { margin: 0; font-size: .95rem; line-height: 1.72; color: rgba(255, 255, 255, .74); }
.rx .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 .rx-hero h2 em { display: block; font-style: normal; color: var(--c-gold-on-dark, var(--c-gold-light)); }
.rx .rx-grid { margin-top: 0; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx .rx-card { margin-bottom: 0; }
.rx .rx-sum-head h3 { margin: 0; }
.rx-visual-top .rx-kicker { margin: 0; }
.rx-visual-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: var(--r-pill, 999px); background: var(--rx-glass); border: 1px solid var(--rx-line); font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.rx-visual-badge .bi { color: #4ADE80; }
.ax-hero-center { text-align: center; margin-inline: auto; }
.ax-hero-seal { width: clamp(96px, 11vw, 150px); height: auto; filter: drop-shadow(0 0 30px rgba(200, 155, 94, .45)); }
.rx-quick .rx-benefits li { align-items: center; }

/* Séparateur « ou » + connexions tierces (inscription rapide) */
.ax-or { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted); }
.ax-or::before, .ax-or::after { content: ""; flex: 1; height: 1px; background: var(--c-border-soft); }
.ax-oauth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.ax-oauth a { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; border-radius: 14px; border: 1px solid var(--c-border-soft); background: var(--c-input); color: var(--c-ink); font-weight: 600; font-size: .88rem; text-decoration: none; transition: transform .3s var(--ax-ease), border-color .25s, box-shadow .3s; }
.ax-oauth a:hover { transform: translateY(-2px); border-color: var(--c-gold); box-shadow: 0 14px 26px -16px var(--c-shadow); color: var(--c-ink); }
.ax-oauth .bi-google { color: #EA4335; } .ax-oauth .bi-microsoft { color: #00A4EF; }

/* Carte seule (mot de passe oublié) */
.ax-solo { display: grid; place-items: start center; padding: clamp(4rem, 9vh, 6.5rem) 1rem clamp(2.5rem, 6vh, 4rem); }
.ax-solo-card { width: min(100%, 520px); }
.ax-solo-card .nx-auth-create a { display: inline-flex; align-items: center; gap: .4rem; }
.ax-howto { list-style: none; margin: 1.6rem 0 0; padding: 1rem 0 0; border-top: 1px dashed var(--c-border-soft); display: flex; flex-direction: column; gap: .8rem; text-align: start; counter-reset: ax; }
.ax-howto li { display: flex; align-items: flex-start; gap: .8rem; }
.ax-howto .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c-gold-soft); color: var(--c-gold-text); font-size: 1.05rem; }
.ax-howto b { display: block; font-size: .88rem; color: var(--c-heading); }
.ax-howto small { display: block; font-size: .76rem; line-height: 1.5; color: var(--c-muted); }
.ax-solo-help { margin: .6rem 0 0; font-size: .8rem; color: var(--c-muted); }
.ax-solo-help a { color: var(--c-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-gold); }

/* ═════════════════════════ CHAMPS INTELLIGENTS ═════════════════════════ */
/* Géométrie commune + libellés flottants (encoche sur la bordure). Sans JavaScript, le libellé reste en haut. */
body.ax-on .ax-form .field { position: relative; display: block; margin-bottom: 0; padding-top: 10px; }
body.ax-on .nx-auth-card .ax-form .field { margin-bottom: 1.05rem; }
body.ax-on .ax-form .sf-wrap, body.ax-on .ax-form .input-icon { border-radius: 14px; border: 1px solid var(--c-border); background: var(--c-input); overflow: visible; }
body.ax-on .ax-form .sf-wrap > input, body.ax-on .ax-form .sf-wrap > select, body.ax-on .ax-form .input-icon > input, body.ax-on .ax-form .input-icon > select { height: 54px; padding-block: 0; padding-inline-start: 2.8rem; font-size: .95rem; font-family: var(--font-body, inherit); border: 0; background-color: transparent; border-radius: 14px; }
body.ax-on .ax-form .sf-wrap > .bi:first-child { inset-inline-start: 1rem; font-size: 1rem; }
body.ax-on .ax-form .sf-wrap:focus-within, body.ax-on .ax-form .sf.is-focus .sf-wrap { border-color: var(--c-gold); box-shadow: 0 0 0 4px var(--c-gold-soft); }
body.ax-on .ax-form .sf-wrap:focus-within > .bi:first-child { color: var(--c-gold-text); }
body.ax-on .ax-form .sf.is-valid .sf-wrap { border-color: color-mix(in srgb, var(--c-success, #1F8A5B) 55%, var(--c-border)); }
body.ax-on .ax-form .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); }

body.ax-on .ax-form .field > span:first-child {
  position: absolute; z-index: 3; top: 0; inset-inline-start: .85rem; margin: 0; padding: 0 .4rem; max-width: calc(100% - 1.7rem);
  display: inline-flex; align-items: center; gap: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-body, inherit); font-size: .74rem; font-weight: 600; line-height: 20px; letter-spacing: .01em; color: var(--c-heading);
  background: linear-gradient(180deg, var(--c-paper) 0 50%, var(--c-input) 50% 100%); border-radius: 6px; pointer-events: none;
  transition: top .22s var(--ax-ease), inset-inline-start .22s var(--ax-ease), font-size .22s var(--ax-ease), color .2s, background .2s;
}
body.ax-on .ax-form .field.sf.is-focus > span:first-child { color: var(--c-gold-text); }
body.ax-on .ax-form .field.sf.is-invalid > span:first-child { color: var(--c-danger); }
/* État « posé dans le champ » : champ vide, sans focus, hors liste déroulante et hors remplissage automatique */
body.ax-on .ax-form .field.sf:not(.is-filled):not(.is-focus):not(:has(select)):not(:has(input:-webkit-autofill)):not(:has(input:autofill)) > span:first-child {
  top: 27px; inset-inline-start: 2.4rem; font-size: .95rem; font-weight: 500; color: var(--c-muted); background: transparent;
}
body.ax-on .ax-form .field.sf:not(.is-focus) .sf-wrap > input::placeholder { opacity: 0; }
body.ax-on .ax-form .field.sf.is-focus .sf-wrap > input::placeholder { opacity: .6; }
body.ax-on .ax-form .field .sf-req { color: var(--c-danger); font-weight: 700; margin-inline-start: .15rem; }
body.ax-on .ax-form .field .sf-opt { font-weight: 400; color: var(--c-muted); margin-inline-start: .3rem; font-size: .92em; }

/* Messages, aides, suggestion d'e-mail */
body.ax-on .ax-form .sf-msg { display: flex; align-items: flex-start; gap: .4rem; margin-top: .4rem; font-size: .76rem; line-height: 1.45; color: var(--c-danger); text-align: start; }
body.ax-on .ax-form .sf-msg:empty { display: none; }
body.ax-on .ax-form .sf-msg.sf-msg-ok { color: var(--c-success, #1F8A5B); }
body.ax-on .ax-form .sf-msg:has(.bi-info-circle) { color: var(--c-muted); }
body.ax-on .ax-form .sf-msg:has(.bi-exclamation-triangle-fill) { color: var(--c-warning, #B7791F); }
body.ax-on .ax-form .rx-hint, body.ax-on .ax-form .sf-hint { display: flex; align-items: flex-start; gap: .4rem; margin-top: .4rem; font-size: .76rem; line-height: 1.5; text-align: start; }
.ax-mandatory { color: var(--c-ink) !important; }
.ax-mandatory .bi, .ax-legend .bi { flex: none; margin-top: .22rem; font-size: .55rem; color: var(--c-danger); }
.ax-legend { margin: 1.1rem 0 0 !important; }
body.ax-on .ax-form .sf-suggest { margin-top: .45rem; padding: .3rem .8rem; font-size: .78rem; border-style: solid; border-color: var(--c-gold); background: var(--c-gold-soft); color: var(--c-ink); animation: axPop .3s var(--ax-spring) both; }
body.ax-on .ax-form .sf-suggest b { color: var(--c-link); }
@keyframes axPop { from { opacity: 0; transform: translateY(-4px) scale(.96); } }

/* Mot de passe : jauge + liste de règles en direct (miroir de la politique serveur) */
body.ax-on .ax-form .sf-policy { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .45rem .7rem; margin-top: .55rem; padding: .75rem .85rem; border-radius: 14px; background: var(--c-paper-2, var(--c-gold-soft)); border: 1px solid var(--c-border-soft); text-align: start; transition: border-color .3s, background .3s; }
body.ax-on .ax-form .sf-policy .bars { display: flex; gap: 4px; min-width: 0; }
body.ax-on .ax-form .sf-policy .bars i { flex: 1; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--c-ink) 12%, transparent); transition: background .3s; }
body.ax-on .ax-form .sf-policy small { min-width: 0; font-size: .72rem; font-weight: 700; color: var(--c-muted); }
body.ax-on .ax-form .sf-policy[data-level="1"] .bars i:nth-child(-n+1) { background: var(--c-danger); }
body.ax-on .ax-form .sf-policy[data-level="2"] .bars i:nth-child(-n+2) { background: var(--c-warning, #D69E2E); }
body.ax-on .ax-form .sf-policy[data-level="3"] .bars i:nth-child(-n+3) { background: var(--c-gold); }
body.ax-on .ax-form .sf-policy[data-level="4"] .bars i { background: var(--c-success, #1F8A5B); }
body.ax-on .ax-form .sf-policy .sf-rules-title { grid-column: 1 / -1; margin: .15rem 0 0; font-size: .72rem; font-weight: 600; color: var(--c-heading); }
body.ax-on .ax-form .sf-policy .sf-rules { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .28rem; max-height: none; opacity: 1; overflow: visible; margin: 0; padding: 0; list-style: none; font-size: .76rem; color: var(--c-muted); }
body.ax-on .ax-form .sf-policy .sf-rules li { display: flex; align-items: center; gap: .45rem; transition: color .25s; }
body.ax-on .ax-form .sf-policy .sf-rules li::before { content: none; }
body.ax-on .ax-form .sf-policy .sf-rules li .bi { font-size: .82rem; color: var(--c-border); transition: color .25s, transform .35s var(--ax-spring); }
body.ax-on .ax-form .sf-policy .sf-rules li.ok { color: var(--c-success, #1F8A5B); }
body.ax-on .ax-form .sf-policy .sf-rules li.ok .bi { color: var(--c-success, #1F8A5B); transform: scale(1.12); }
body.ax-on .ax-form .sf-policy.is-complete { border-color: color-mix(in srgb, var(--c-success, #1F8A5B) 45%, transparent); background: color-mix(in srgb, var(--c-success, #1F8A5B) 7%, var(--c-paper)); }
body.ax-on .ax-form .sf-wrap.is-caps { border-color: var(--c-warning, #D69E2E); }

/* Pays : drapeau, liste avec recherche */
body.ax-on .ax-form .sf-wrap.has-flag.flag-set > .bi:first-child { opacity: 0; }
.sf-flagchip { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; display: none; }
.sf-wrap.flag-set > .sf-flagchip { display: block; }
.sf-flag { display: inline-grid; place-items: center; min-width: 1.7rem; font-family: "Twemoji Country Flags", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; padding: 0 .25rem; border-radius: 6px; background: var(--c-gold-soft); color: var(--c-gold-text); font-style: normal; }
.sf-flag.is-empty { background: transparent; }
body.ax-on .ax-form .sf-combo { top: calc(100% + 6px); border-radius: 16px; border-color: var(--c-border); box-shadow: 0 30px 60px -24px var(--c-shadow), 0 0 0 1px var(--c-border-soft); text-align: start; }
body.ax-on .ax-form .sf-combo li { border-radius: 10px; }
body.ax-on .ax-form .sf-combo li mark { padding: 0; background: var(--c-gold-soft); color: inherit; border-radius: 3px; }

/* Consentement invalide + boutons en cours d'envoi */
body.ax-on .rx-consent.is-invalid { border-color: var(--c-danger); border-style: solid; background: color-mix(in srgb, var(--c-danger) 7%, transparent); }
body.ax-on .ax-form .rx-consent input:focus-visible, body.ax-on .ax-form .check-naa input:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
body.ax-on .ax-form .is-loading { pointer-events: none; opacity: .88; }
body.ax-on .ax-form .is-loading > .bi { display: none; }
body.ax-on .ax-form .is-loading::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: axSpin .7s linear infinite; }
@keyframes axSpin { to { transform: rotate(360deg); } }
body.ax-on .ax-form .sf-summary { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; padding: .75rem 1rem; border-radius: 14px; font-size: .84rem; color: var(--c-danger); background: color-mix(in srgb, var(--c-danger) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c-danger) 30%, transparent); }

/* ═════════════════════════ PIED DE PAGE ═════════════════════════ */
.ax-footer { position: relative; margin-top: auto; color: rgba(255, 255, 255, .78); background: radial-gradient(ellipse 60% 70% at 100% 0%, color-mix(in srgb, var(--c-green) 55%, transparent), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(200, 155, 94, .16), transparent 70%), linear-gradient(170deg, var(--c-header), color-mix(in srgb, var(--c-header) 70%, #000)); overflow: hidden; isolation: isolate; }
.ax-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--rx-star); background-size: 74px; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.ax-footer a { text-decoration: none; }
.ax-footer-orn { display: flex; align-items: center; gap: 1rem; padding-inline: clamp(1rem, 4vw, 3rem); transform: translateY(-1px); }
.ax-footer-orn span { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--c-gold)); }
.ax-footer-orn span:last-child { background: linear-gradient(90deg, var(--c-gold), transparent); }
[dir="rtl"] .ax-footer-orn span { transform: scaleX(-1); }
.ax-footer-orn .bi { color: var(--c-gold-light); font-size: .8rem; margin-top: -1px; filter: drop-shadow(0 0 8px rgba(200, 155, 94, .8)); }
.ax-footer-in { width: min(100%, 1560px); margin-inline: auto; padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 2.4vw, 2rem) 1.4rem; }

.ax-badges { list-style: none; margin: 0 0 clamp(1.8rem, 4vw, 2.8rem); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.ax-badges li { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--ax-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .35s var(--ax-ease), border-color .3s, background .3s; }
.ax-badges li:hover { transform: translateY(-3px); border-color: rgba(200, 155, 94, .55); background: rgba(255, 255, 255, .07); }
.ax-badges .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: var(--c-navy-deep, #081A30); background: var(--ax-gold-grad); box-shadow: 0 10px 22px -10px rgba(200, 155, 94, .9); }
.ax-badges b { display: block; font-size: .9rem; font-weight: 700; color: #fff; }
.ax-badges small { display: block; font-size: .75rem; line-height: 1.45; color: rgba(255, 255, 255, .6); }

.ax-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr)) minmax(0, 1.25fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.ax-fbrand p { margin: .9rem 0 0; font-size: .86rem; line-height: 1.7; color: rgba(255, 255, 255, .66); max-width: 30rem; }
.ax-fbrand .ax-fbrand-ar { margin: .7rem 0 -.3rem; font-family: var(--font-arabic); font-size: 1.9rem; line-height: 1.4; background: linear-gradient(180deg, #F5E3BE, var(--c-gold) 60%, var(--c-gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ax-fsocial { margin-top: 1.1rem; }
.ax-fsocial .naa-socials-round a { background: rgba(255, 255, 255, .06); border-color: var(--ax-line); color: var(--c-gold-light); }
.ax-fsocial .naa-socials-round a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.ax-footer h2 { position: relative; margin: 0 0 1rem; padding-bottom: .6rem; font-family: var(--font-body, inherit); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold-light); }
[dir="rtl"] .ax-footer h2 { letter-spacing: 0; font-size: .9rem; }
.ax-footer h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px; background: var(--ax-gold-grad); }
.ax-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ax-fcol a { position: relative; display: inline-block; color: rgba(255, 255, 255, .76); font-size: .88rem; transition: color .2s, padding .3s var(--ax-ease); }
.ax-fcol a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 0; height: 1px; background: var(--c-gold-light); transition: width .3s var(--ax-ease); }
.ax-fcol a:hover { color: #fff; padding-inline-start: 1rem; }
.ax-fcol a:hover::before { width: .7rem; }
.ax-fcontact { margin: 0; font-style: normal; display: flex; flex-direction: column; gap: .6rem; }
.ax-fcontact h2 { margin-bottom: .4rem; }
.ax-fcontact > a:not(.ax-wa) { display: flex; align-items: center; gap: .75rem; color: #fff; transition: transform .3s var(--ax-ease); }
.ax-fcontact > a:not(.ax-wa):hover { transform: translateX(3px); }
[dir="rtl"] .ax-fcontact > a:not(.ax-wa):hover { transform: translateX(-3px); }
.ax-fcontact .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(200, 155, 94, .14); border: 1px solid rgba(200, 155, 94, .3); color: var(--c-gold-light); font-size: .95rem; }
.ax-fcontact a > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ax-fcontact small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
[dir="rtl"] .ax-fcontact small { letter-spacing: 0; font-size: .74rem; }
.ax-fcontact bdi { font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.ax-fcontact .ax-wa { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; padding: .7rem 1rem; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 16px 30px -16px rgba(37, 211, 102, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .3s var(--ax-ease), box-shadow .3s; }
.ax-fcontact .ax-wa:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -16px rgba(37, 211, 102, 1), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.ax-fcontact .ax-wa > .bi { font-size: 1.6rem; }
.ax-fcontact .ax-wa b { font-size: .86rem; }
.ax-fcontact .ax-wa bdi { font-size: .8rem; font-weight: 500; opacity: .92; }

.ax-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.6rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); padding-top: 1.2rem; border-top: 1px solid var(--ax-line); font-size: .8rem; }
.ax-footer-bottom p { margin: 0; color: rgba(255, 255, 255, .62); }
.ax-footer-bottom p a { color: #fff; font-weight: 600; }
.ax-footer-bottom nav:not(.nx-lang) { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.ax-footer-bottom nav:not(.nx-lang) a { color: rgba(255, 255, 255, .78); transition: color .2s; }
.ax-footer-bottom nav:not(.nx-lang) a:hover { color: var(--c-gold-light); }
.ax-footer-made { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 1.1rem 0 0; font-size: .72rem; color: rgba(255, 255, 255, .42); }
.ax-footer-made .bi { color: var(--c-gold); font-size: .65rem; }
/* Place pour les boutons flottants (discussion, thèmes) */
body.ax-on .ax-footer-in { padding-bottom: 5.2rem; }

/* ═════════════════════════ ADAPTATIF ═════════════════════════ */
@media (max-width: 1560px) {
  .ax-nav a { padding: 0 .62rem; }
  .ax-nav a .bi { display: none; }
  .ax-nav a::after { inset-inline: .62rem; }
}
@media (max-width: 1280px) {
  .ax-strip-secure { display: none; }
  .ax-footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
  .ax-fcontact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .8rem 1.8rem; }
  .ax-fcontact h2 { flex: 1 0 100%; margin-bottom: 0; }
  .ax-fcontact .ax-wa { margin-top: 0; }
}
@media (max-width: 1240px) {
  .ax-nav { display: none; }
  .ax-burger { display: flex; }
}
@media (max-width: 1080px) {
  body.ax-on { --ax-bar-h: 64px; }
  .ax-tools .nx-mode { display: none; }
  body.ax-on .nx-auth-visual, body.ax-on .rx-visual { top: auto; min-height: 0; }
  body.ax-on .nx-auth-visual-inner, body.ax-on .rx-visual-inner { min-height: 0; }
  .ax-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-hero-seal { width: 84px; }
}
@media (max-width: 860px) {
  .ax-strip-site, .ax-strip-end { display: none; }
  .ax-strip-in { justify-content: center; }
  .ax-strip-list { gap: .3rem 1.1rem; }
  .ax-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-fbrand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body.ax-on { --ax-strip-h: 0px; --ax-bar-h: 60px; }
  .ax-strip { display: none; }
  .ax-header { top: 0; }
  .ax-tools .ax-cta span { display: none; }
  .ax-tools .ax-cta { width: 42px; padding: 0; }
  .ax-tools .nx-lang-code { display: none; }
  .ax-brand-txt strong { font-size: 1.12rem; }
  .ax-brand-txt small { display: none; }
  .ax-brand-logo { width: 42px; height: 42px; }
  .ax-brand-logo img { width: 38px; height: 38px; }
  .ax-badges { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .ax-badges li { padding: .75rem .9rem; }
  .ax-fcontact { flex-direction: column; align-items: stretch; }
  .ax-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ax-oauth { grid-template-columns: minmax(0, 1fr); }
  .rx .rx-grid { grid-template-columns: minmax(0, 1fr); }
  .rx-visual-top { flex-wrap: wrap; gap: .5rem; }
  body.ax-on .nx-auth-center { padding-top: 3.2rem; }
}
@media (max-width: 720px) { .rx .rx-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .ax-header *, .ax-footer *, body.ax-on .ax-form * { transition: none !important; animation: none !important; }
}

/* ===== Activation du compte : « e-mail envoyé » et « compte activé » ===== */
.acv { padding-top: clamp(3rem, 7vh, 5rem); }
.acv-card { width: min(100%, 560px); overflow: hidden; padding-top: 1.6rem !important; animation: acvRise .7s cubic-bezier(.2,.8,.2,1) both; }
.acv-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--c-gold) 22%, transparent), transparent 70%); pointer-events: none; }
.acv-hero { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto .6rem; }
.acv-halo { position: absolute; inset: 14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c-gold) 55%, transparent); animation: acvPulse 2.6s ease-out infinite; }
.acv-halo.d2 { animation-delay: 1.3s; }
.acv-hero.is-ok .acv-halo { border-color: color-mix(in srgb, var(--c-green) 55%, transparent); }
.acv-hero.is-warn .acv-halo { border-color: color-mix(in srgb, #c98a1a 55%, transparent); }
.acv-env { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; color: #fff; font-size: 2.6rem; background: linear-gradient(145deg, var(--c-green), color-mix(in srgb, var(--c-green) 62%, #000)); box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--c-green) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.3); animation: acvFloat 3.6s ease-in-out infinite; }
.acv-hero.is-warn .acv-env { background: linear-gradient(145deg, #c98a1a, #8a5a0c); box-shadow: 0 22px 40px -18px rgba(201,138,26,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.acv-plane { position: absolute; inset-inline-end: 4px; top: 6px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-gold); color: #fff; font-size: 1rem; box-shadow: 0 10px 20px -8px var(--c-gold); animation: acvPlane 3.2s ease-in-out infinite; }
.acv-email { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin: .2rem auto .9rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px dashed var(--c-gold); background: var(--c-gold-soft); color: var(--c-heading); font-weight: 700; font-size: .98rem; }
.acv-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acv-email i { color: var(--c-gold-text); }
.acv-note { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--c-green-soft); color: var(--c-ink); font-size: .88rem; line-height: 1.55; text-align: start; }
.acv-note i { color: var(--c-green-text); font-size: 1.05rem; margin-top: .1rem; }
.acv-note.is-warn { background: #fff4dc; color: #6b4f12; } .acv-note.is-warn i { color: #b07a10; }
.acv-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; text-align: start; }
.acv-steps li { position: relative; display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: 16px; border: 1px solid var(--c-border-soft); background: var(--c-paper-2, var(--c-paper)); animation: acvRise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * .1s); }
.acv-steps .n { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-green); color: #fff; font-size: .78rem; font-weight: 700; }
.acv-steps .ico { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-gold-soft); color: var(--c-gold-text); font-size: 1.1rem; }
.acv-steps .t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.acv-steps .t b { color: var(--c-heading); font-size: .92rem; } .acv-steps .t small { color: var(--c-muted); font-size: .79rem; }
.acv-open { text-decoration: none; margin-bottom: .9rem; }
.acv-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: 0 0 .8rem; }
.acv-resend .hint { color: var(--c-muted); font-size: .85rem; }
.acv-ghost { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--c-gold); background: transparent; color: var(--c-heading); font-weight: 700; font-size: .86rem; cursor: pointer; transition: background .25s, transform .25s, opacity .25s; }
.acv-ghost:hover:not(:disabled) { background: var(--c-gold-soft); transform: translateY(-1px); }
.acv-ghost:disabled { opacity: .55; cursor: not-allowed; }
.acv-ghost b { font-variant-numeric: tabular-nums; color: var(--c-gold-text); }
.acv-valid { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0 0 .4rem; color: var(--c-muted); font-size: .8rem; }
/* succès */
.acv-check circle { fill: color-mix(in srgb, var(--c-green) 12%, transparent); stroke: var(--c-green); stroke-width: 4; stroke-dasharray: 264; stroke-dashoffset: 264; animation: acvDraw .8s .15s ease-out forwards; }
.acv-check path { fill: none; stroke: var(--c-green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: acvDraw .5s .85s ease-out forwards; }
.acv-check { position: relative; filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--c-green) 40%, transparent)); animation: acvPop .6s .1s cubic-bezier(.3,1.6,.5,1) both; }
.acv-checks { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.acv-checks li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; background: var(--c-green-soft); color: var(--c-green-text); font-size: .82rem; font-weight: 700; animation: acvRise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.1s + var(--i) * .15s); }
.acv-count { margin-top: 1.1rem; color: var(--c-muted); font-size: .88rem; }
.acv-count b { color: var(--c-heading); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.acv-bar { display: block; height: 6px; margin-top: .55rem; border-radius: 999px; background: var(--c-border-soft); overflow: hidden; }
.acv-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-green), var(--c-gold)); transform-origin: left center; animation: acvBar linear forwards; }
[dir="rtl"] .acv-bar i { transform-origin: right center; }
.acv-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.acv-confetti i { position: absolute; top: -12px; left: calc(6% + var(--k) * 6.6%); width: 8px; height: 14px; border-radius: 2px; background: var(--c-gold); opacity: 0; animation: acvFall 2.6s calc(.9s + var(--k) * .07s) ease-in forwards; }
.acv-confetti i:nth-child(3n) { background: var(--c-green); } .acv-confetti i:nth-child(3n+1) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes acvRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes acvPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes acvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes acvPlane { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -8px) rotate(8deg); } }
@keyframes acvDraw { to { stroke-dashoffset: 0; } }
@keyframes acvPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes acvBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes acvFall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .acv-card, .acv-steps li, .acv-checks li, .acv-env, .acv-plane, .acv-halo, .acv-check { animation: none; }
  .acv-check circle, .acv-check path { animation: none; stroke-dashoffset: 0; }
  .acv-confetti { display: none; }
}
