/* Styles publics WABAA. */








:root {--p1:#0789e8;--p2:#102a56;--ink:#14213d;--muted:#66758a;--line:#dce8f5;--white:#fff;--soft:#f4f9ff;--green:#159447;--shadow:0 24px 70px rgba(16,42,86,.14);}








* {box-sizing:border-box;}






html {background:#edf6ff;}






body {margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:linear-gradient(135deg,#eef7ff 0%,#f8fbff 48%,#eef3ff 100%);min-height:100vh;}






.hidden {display:none!important;}










.public-topbar {height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:relative;z-index:3;}






.brand {display:flex;align-items:center;gap:10px;color:var(--p2);font-size:20px;font-weight:900;text-decoration:none;}






.brand-mark {font-size:27px;}






.top-actions {display:flex;align-items:center;gap:10px;}






.top-link {display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#fff;background:linear-gradient(135deg,#102a56,#176fd5);padding:10px 15px;border-radius:999px;font-weight:800;font-size:13px;box-shadow:0 8px 22px rgba(16,42,86,.16);}






.top-link:hover {transform:translateY(-1px);}








.public-shell {position:relative;min-height:calc(100vh - 72px);display:grid;place-items:center;padding:38px 24px 60px;overflow:hidden;}






.public-shell:before, .public-shell:after {content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none;}






.public-shell:before {width:430px;height:430px;background:rgba(7,137,232,.12);top:-170px;left:-130px;}






.public-shell:after {width:520px;height:520px;background:rgba(111,78,255,.08);right:-220px;bottom:-260px;}








.hero {position:relative;z-index:1;width:min(1120px,100%);display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,470px);gap:54px;align-items:center;}






.hero-copy {padding:18px 0;}






.eyebrow {display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(7,137,232,.1);color:#0767b5;font-size:11px;font-weight:900;letter-spacing:.14em;}






.hero-copy h1 {font-size:clamp(42px,6vw,72px);line-height:.98;letter-spacing:-.045em;margin:18px 0 18px;color:var(--p2);}






.hero-copy h1 strong {color:var(--p1);}






.hero-copy>p {max-width:610px;font-size:18px;line-height:1.65;color:var(--muted);margin:0;}






.hero-points {display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;}






.hero-points span {background:rgba(255,255,255,.78);border:1px solid rgba(220,232,245,.9);border-radius:999px;padding:9px 12px;font-size:12px;font-weight:800;box-shadow:0 8px 22px rgba(16,42,86,.05);}








.auth-card {background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.85);border-radius:26px;padding:28px;box-shadow:var(--shadow);backdrop-filter:blur(12px);}






.tabs {display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#edf4fb;padding:5px;border-radius:13px;margin-bottom:25px;}






.tab {border:0;background:transparent;color:#65758b;padding:11px;border-radius:9px;font-size:12px;font-weight:900;cursor:pointer;}






.tab.active {background:#fff;color:var(--p2);box-shadow:0 4px 12px rgba(16,42,86,.08);}






.tab-pane h2 {font-size:26px;margin:0 0 6px;}






.muted {color:var(--muted);margin:0 0 20px;font-size:14px;}






.tab-pane form {display:grid;gap:13px;}






.tab-pane label {display:grid;gap:7px;font-size:13px;font-weight:800;}






.tab-pane input {width:100%;}






.optional {font-weight:500;color:var(--muted);}






.message {margin-top:14px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#f7fbff;color:#30435d;font-size:13px;line-height:1.45;}






.auth-footer {margin-top:20px;padding-top:16px;border-top:1px solid #edf1f6;color:var(--muted);font-size:11px;line-height:1.5;text-align:center;}






.public-footer {text-align:center;padding:0 20px 22px;color:#8390a2;font-size:11px;}








@media(max-width:820px)    {.public-topbar {padding:0 16px;}






.hero {grid-template-columns:1fr;gap:25px;}






.hero-copy {padding:5px 0;text-align:center;}






.hero-copy>p {margin:auto;}






.hero-points {justify-content:center;}






.auth-card {max-width:560px;width:100%;margin:auto;}






.public-shell {padding-top:20px;}






.hero-copy h1 {font-size:46px;}}








@media(max-width:520px)    {.brand {font-size:17px;}






.top-link {font-size:11px;padding:9px 11px;}






.hero-copy h1 {font-size:40px;}






.auth-card {padding:20px;border-radius:20px;}}









.business-router-bar {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:12px 14px;background:#f7fbff;border:1px solid #dbe8f5;border-radius:12px;}








.business-router-bar label {font-size:12px;font-weight:900;color:#41556f;}








.business-router-bar .select {min-width:230px;}








.business-router-help {font-size:11px;color:#718198;}








.registration-alert {margin:0 0 18px;padding:14px 16px;border:1px solid #f0c36a;border-left:5px solid #e6a21a;border-radius:13px;background:#fff8e8;color:#684d0b;font-size:13px;line-height:1.55;box-shadow:0 8px 20px rgba(120,80,0,.08);}








.registration-alert-title {font-weight:900;font-size:14px;margin-bottom:4px;}








.subscription-card {border:1px solid #dbe8f5;border-radius:16px;padding:20px;background:#fff;}








.subscription-plan {display:flex;align-items:center;justify-content:space-between;gap:15px;}








.subscription-plan h2 {margin:5px 0 0;}








.subscription-label {font-size:11px;font-weight:900;color:#718198;}








.subscription-status {padding:7px 11px;border-radius:999px;background:#e9f8ee;color:#1d7a3a;font-weight:900;font-size:11px;}








.subscription-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px;}








.subscription-grid>div {padding:13px;border:1px solid #edf1f6;border-radius:11px;background:#f9fbfd;}








.subscription-grid small {display:block;color:#718198;margin-bottom:5px;}






.subscription-grid b {font-size:15px;}








.subscription-note {margin-top:15px;padding:12px 14px;border-radius:11px;background:#f7fbff;color:#61728a;font-size:12px;line-height:1.5;}








@media(max-width:700px)    {.subscription-grid {grid-template-columns:1fr 1fr;}






.business-router-bar .select {min-width:100%;width:100%;}}









/* Correctif V15 : la porte publique est visible avant connexion et peut etre masquee apres connexion. */








#publicAuthView {visibility:visible;}








#publicAuthView>.hero {position:relative;z-index:1;width:min(1120px,100%);min-width:0;}








#publicAuthView #connexion {display:block;visibility:visible;width:100%;min-width:0;height:auto;min-height:320px;}








#publicAuthView #loginPane, #publicAuthView #registerPane {width:100%;min-width:0;}








@media(max-width:820px)    {#publicAuthView #connexion {max-width:560px;margin:auto;}}









/* Base graphique WABAA V15 inspiree du style HotSpot valide. */








:root {--wabaa-navy:#102e67;--wabaa-blue:#075fd0;--wabaa-cyan:#18bde7;--wabaa-soft:#eef7ff;--wabaa-line:#d8e8f8;--wabaa-shadow:0 14px 45px rgba(19,67,120,.16);}








body {background:linear-gradient(135deg,#eef7ff,#f8fbff 55%,#edf5ff);color:#123a72;}










.language-switch { display:inline-flex; align-items:center; gap:7px; color:rgba(255,255,255,.94); font-size:13px; font-weight:700; }
.language-switch select { min-height:36px; padding:5px 9px; border:1px solid rgba(255,255,255,.48); border-radius:9px; background:linear-gradient(135deg,rgba(16,59,134,.68),rgba(24,169,223,.5)); color:#fff; font:inherit; }
.language-switch select:focus { outline:2px solid rgba(255,255,255,.72); outline-offset:2px; }
.language-switch select option { background:#126fd5; color:#fff; }

/* DEBUT V117.6 OBJECTIF : afficher Accepter et Refuser comme boutons compacts côte à côte. */
.terms-consent-decisions{display:flex;align-items:center;gap:8px;margin-left:auto}.terms-consent-actions .terms-consent-accept,.terms-consent-decisions button{min-height:34px;padding:6px 12px;font-size:.9rem}.registration-resend{margin-top:10px;min-height:34px;padding:6px 12px;font-size:.9rem}
@media(max-width:520px){.terms-consent-decisions{margin-left:0}}
/* FIN V117.6 OBJECTIF : conserver le bouton Lire les conditions séparé des deux choix. */
/* DEBUT V117.6 OBJECTIF : animer un indicateur indéterminé lié à l'attente réelle du serveur. */
.registration-progress{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px 14px;border:1px solid var(--border-color,#dbe4ef);border-radius:10px;color:var(--text-color,#273449);background:var(--surface,#fff);font-weight:600}.registration-progress-spinner{width:18px;height:18px;flex:0 0 18px;border:2px solid #c9d7e8;border-top-color:#1769d2;border-radius:50%;animation:registration-spin .8s linear infinite}.registration-progress-track{height:4px;flex:1;overflow:hidden;border-radius:999px;background:#e7edf5}.registration-progress-bar{display:block;width:38%;height:100%;border-radius:inherit;background:#1769d2;animation:registration-progress-slide 1.25s ease-in-out infinite}@keyframes registration-spin{to{transform:rotate(360deg)}}@keyframes registration-progress-slide{0%{transform:translateX(-110%)}100%{transform:translateX(290%)}}@media(prefers-reduced-motion:reduce){.registration-progress-spinner,.registration-progress-bar{animation-duration:2.5s}}
/* FIN V117.6 OBJECTIF : informer du traitement en cours sans simuler un pourcentage d'avancement. */
.terms-consent{margin:16px 0;padding:16px;border:1px solid var(--border-color,#dbe4ef);border-radius:14px;background:var(--surface,#fff)}.terms-consent h3{margin:0 0 8px}.terms-consent-actions{display:flex;flex-wrap:wrap;gap:10px}.terms-consent-actions button:disabled{opacity:.55;cursor:not-allowed}.terms-consent-status{min-height:1.2em;margin:8px 0 0}.terms-dialog{width:min(760px,calc(100vw - 32px));max-height:85vh;border:1px solid #d7dee8;border-radius:16px;padding:20px;color:#273449;background:#fff;box-shadow:0 24px 80px #0005}.terms-dialog::backdrop{background:#101827aa}.terms-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.terms-dialog-header h2{margin:0}.terms-dialog-content{white-space:pre-wrap;overflow:auto;max-height:68vh;font:inherit;line-height:1.55;margin:18px 0 0}.terms-editor{display:block;width:100%;min-height:400px;margin:8px 0;white-space:pre-wrap;font:inherit;line-height:1.5}.terms-editor-hint{color:var(--text-muted,#64748b);font-size:.92rem}
/* DEBUT V117.8 OBJECTIF : rendre les retours d'inscription lisibles et professionnels. */
.registration-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #cbdcf3;
  border-left: 4px solid #3978c5;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7faff, #edf5ff);
  color: #233c60;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 28px rgba(29, 67, 116, .1);
}
.registration-alert[data-state="success"] { border-color: #b7e1c8; border-left-color: #23834b; background: linear-gradient(135deg, #f5fcf7, #eaf8ef); color: #1e5131; }
.registration-alert[data-state="error"] { border-color: #f0c3c3; border-left-color: #c13c3c; background: linear-gradient(135deg, #fff8f8, #fff0f0); color: #712929; }
.registration-alert[data-state="pending"] { border-color: #cbdcf3; border-left-color: #3978c5; }
.registration-alert-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(57, 120, 197, .12);
  color: #2866ad;
  font-size: 19px;
  font-weight: 800;
}
.registration-alert[data-state="success"] .registration-alert-icon { background: #d8f0e0; color: #23834b; }
.registration-alert[data-state="error"] .registration-alert-icon { background: #fbe0e0; color: #b43232; }
.registration-alert-content { min-width: 0; flex: 1; }
.registration-alert-title { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.registration-alert-content p { margin: 0; }
.registration-resend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 15px;
  border: 1px solid #245fa5;
  border-radius: 10px;
  background: linear-gradient(135deg, #276fc0, #15569f);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(30, 83, 145, .18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.registration-resend:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(30, 83, 145, .23); }
.registration-resend:focus-visible { outline: 3px solid rgba(39, 111, 192, .3); outline-offset: 2px; }
.registration-resend:disabled { opacity: .72; cursor: wait; }
.registration-resend-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: registration-resend-spin .7s linear infinite; }
@keyframes registration-resend-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .registration-alert { gap: 11px; padding: 15px; }
  .registration-alert-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .registration-resend { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .registration-resend { transition: none; } .registration-resend-spinner { animation-duration: 2s; } }
/* FIN V117.8 OBJECTIF : améliorer la hiérarchie des messages et la visibilité du bouton de renvoi. */

/* DEBUT V117.9 OBJECTIF : rendre visibles l'attente de connexion et les contrôles de saisie. */
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth-submit-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: auth-submit-spin .7s linear infinite; }
@keyframes auth-submit-spin { to { transform: rotate(360deg); } }
.field-validation-message { display: block; margin-top: 5px; color: #ad3030; font-size: .84em; }
.field-validation-message:not(.field-invalid) { color: #26804e; }
.field-invalid { border-color: #c23a3a !important; }
.reset-form-step { display: grid; gap: 12px; margin-top: 10px; }
.reset-form-hint { margin: 0; color: #586c86; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .auth-submit-spinner { animation-duration: 2s; } }
/* FIN V117.9 OBJECTIF : fournir un retour visuel cohérent aux champs et à la connexion. */

/* DEBUT V119 OBJECTIF : harmoniser la surface et les boutons du formulaire de récupération avec le portail. */
.auth-card #forgotPasswordForm.forgot-password-form { box-sizing: border-box; width: 100%; background: rgba(255,255,255,.96); border-color: #d8e5f3; }
#forgotPasswordForm .secondary { box-sizing: border-box; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px 14px; border: 1px solid #1769b1; border-radius: 9px; background: linear-gradient(135deg, #1676d2, #159ee6); color: #fff; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .025em; cursor: pointer; box-shadow: 0 5px 14px rgba(22,118,210,.18); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
#forgotPasswordForm .secondary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(22,118,210,.24); }
#forgotPasswordForm .secondary:focus-visible { outline: 3px solid rgba(39,111,192,.28); outline-offset: 2px; }
#forgotPasswordForm .secondary:disabled { opacity: .65; cursor: wait; transform: none; }
@media (prefers-reduced-motion: reduce) { #forgotPasswordForm .secondary { transition: none; } }
/* FIN V119 OBJECTIF : aligner les fonds et les boutons des étapes de récupération sur le style du portail. */
