/* Sombre « bleu nuit » (2026-11-13) : gris d'origine éclaircis et teintés de bleu, textes gris éclaircis, accents inchangés ; le clair est dans auth-light.css. */
/* Brensia Auth — extension du template original Orchid Premium Bootstrap 5.
   Même palette que Brensia Market Orchid HD V6. Une seule source de design pour 10 vues. */
:root{--bm-bg:#141c30;--bm-panel:#1d2742;--bm-card:#252f48;--bm-line:#354467;--bm-text:#edf0fc;--bm-dim:#bdc3d4;--bm-purple:#aa90ff;--bm-purple-strong:#8965eb;--bm-green:#5fd7a3;--bm-amber:#f0bd72;--bm-red:#ec8f9f;}
html{scroll-behavior:smooth}
body.orchid-body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bm-bg);color:var(--bm-text)}
button,a,input,select{font:inherit}a{text-decoration:none;color:inherit}a:hover{color:#cbbcff}
button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--bm-purple);outline-offset:3px}
.auth-shell{grid-template-columns:minmax(0,47%) minmax(0,53%);min-height:100vh}
.auth-hero{padding:44px 60px 38px;background:radial-gradient(ellipse at 16% 12%,rgba(120,87,231,.25),transparent 44%),radial-gradient(ellipse at 84% 68%,rgba(93,54,163,.18),transparent 38%),linear-gradient(153deg,#1c2640,#1c2640 60%,#182035);border-right:1px solid #364569;color:var(--bm-text);overflow:hidden;position:relative}
.auth-hero:before{background-image:linear-gradient(rgba(200,186,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(200,186,255,.028) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(180deg,transparent 1%,black 32%,black 78%,transparent);animation:none;opacity:1;z-index:0}
.auth-hero:after{animation:none;width:360px;height:360px;background:radial-gradient(circle,rgba(117,90,211,.13),transparent 75%);bottom:5%;right:-12%;filter:blur(8px)}
.auth-hero>*{position:relative;z-index:2}
.auth-panel{background:#1f283d;padding:40px 62px 26px;min-height:100vh;overflow-y:auto}
.auth-panel__top{margin-bottom:20px;min-height:35px}
.auth-panel__body{max-width:510px;padding:30px 0;justify-content:center}
.auth-panel__footer{color:var(--bm-dim);padding-top:20px;border-top:1px solid rgba(164,159,205,.11);font-size:12px}
.auth-hero__brand,.auth-panel__brand-sm{display:flex;gap:12px;align-items:center;font-size:22px;letter-spacing:-.035em;color:#f4f3ff;font-weight:750}
.auth-hero__brand:hover{color:#fff}.auth-panel__brand-sm span{color:#ede9ff;background:none;-webkit-text-fill-color:initial;font-size:20px}
.brand-symbol{display:inline-grid;place-items:center;flex:none;width:43px;height:43px;border-radius:13px;background:linear-gradient(130deg,#9676fb,#5b4acb);color:white;font-weight:850;font-size:21px;box-shadow:0 7px 24px rgba(85,62,183,.16)}
.brand-symbol.sm{width:34px;height:34px;font-size:17px;border-radius:10px}.brand-sub{font-size:14px;font-weight:500;color:#beb6dc;letter-spacing:-.01em}
.hero-tag{font-size:11px;color:#c7b7ff;letter-spacing:.14em;font-weight:750;text-transform:uppercase;margin-bottom:18px;display:flex;align-items:center;gap:10px}
.hero-main{margin:auto 0;max-width:570px}.hero-main h2{font-size:clamp(33px,3.1vw,48px);line-height:1.17;font-weight:760;letter-spacing:-.046em;color:#f5f3ff;margin:0 0 19px}
.hero-main p{color:#cad0e1;font-size:17px;line-height:1.65;max-width:490px;margin:0}
.hero-graphic{height:246px;margin:40px 0 34px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:23px;background:radial-gradient(ellipse at 50% 50%,rgba(145,120,255,.095),transparent 57%);border:1px solid rgba(144,129,205,.13)}
.hero-graphic .ring{width:180px;height:180px;border:1px solid rgba(177,165,247,.17);border-radius:50%;position:absolute}
.hero-graphic .ring.r2{width:267px;height:267px;border-style:dashed;transform:rotate(12deg)}.hero-graphic .ring.r3{width:340px;height:340px;border-color:rgba(177,165,247,.065)}
.hero-graphic .inner-b{width:100px;height:100px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(145deg,#9f7dff,#5743bc);box-shadow:0 20px 80px rgba(96,63,206,.38);font-size:52px;font-weight:830;z-index:2}
.orbit-point{position:absolute;border:1px solid #958db5;background:#2b3854;color:#c1aaff;border-radius:12px;display:flex;align-items:center;gap:10px;padding:9px 13px;font-size:12px;letter-spacing:.01em;font-weight:650;box-shadow:0 12px 26px rgba(3,5,20,.25);z-index:2}
.orbit-point svg{width:16px;height:16px}.orbit-point.one{top:31px;left:44px}.orbit-point.two{top:66px;right:25px}.orbit-point.three{bottom:31px;left:97px}
.hero-bottom{padding-top:25px;border-top:1px solid rgba(186,172,255,.15);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#c8cbdc;font-size:12px}
.hero-bottom strong{color:#e9e5fd;font-weight:650}.hero-status{display:flex;align-items:center;gap:9px}.hero-status i{background:#53c699;width:7px;height:7px;border-radius:50%;display:inline-block}
.hero-stat{display:flex;gap:10px;align-items:center}.hero-stat svg{width:18px;height:18px;color:#beacff}
.auth-tools{display:flex;align-items:center;gap:10px}.mini-control{font-size:12px;font-weight:650;border:1px solid #3e5079;border-radius:10px;background:#2a3551;color:#c9cce1;min-height:35px;padding:7px 13px}.mini-control:hover{border-color:#9277d6;color:#fff}
.auth-form__eyebrow{font-size:11px;color:#ab93ff;letter-spacing:.11em;margin-bottom:12px;font-weight:750}
.auth-form__title{font-size:36px;letter-spacing:-.04em;font-weight:780;line-height:1.18;margin:0 0 12px;color:#f1f2ff}
.auth-form__subtitle{font-size:15px;line-height:1.65;margin:0 0 29px;color:#c4cadb}
.auth-form .form-label{color:#e6e8f3;font-size:13px;font-weight:650;margin-bottom:9px}
.auth-form .form-control,.auth-form .form-select{border:1px solid #3d4f77;border-radius:12px;background:#27324c;color:#f1f2fc;font-size:15px;padding:13px 16px;min-height:49px;box-shadow:none}
.auth-form .form-control::placeholder{color:#adb3c5}.auth-form .form-control:focus,.auth-form .form-select:focus{background:#2a3652;border-color:#a78cf5;box-shadow:0 0 0 3px rgba(156,127,235,.12)}
.auth-form .form-check-input{background-color:#2a3652;border-color:#9499ae;width:16px;height:16px}.auth-form .form-check-input:checked{background-color:#9472e5;border-color:#9472e5}
.auth-form__row{margin:0 0 23px}.auth-form__row a{color:#b69dfb;font-weight:650;font-size:13px}.auth-form__row a:hover{color:#d6c7ff}
.field-block{margin-bottom:22px}.field-note{font-size:12px;color:#bac1d3;line-height:1.55;margin:9px 0 0}.auth-field{margin:0;position:relative}.auth-field .form-control{padding-right:55px}.auth-field__toggle{color:#c2c7db;right:8px}.auth-field__toggle:hover{color:white;background:#364569}
.auth-btn-primary,.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #a790f7;border-radius:12px;background:linear-gradient(130deg,#a083f6,#8160dc);color:#162037;font-size:14px;font-weight:800;min-height:49px;padding:13px 19px;width:100%;box-shadow:0 11px 22px rgba(97,73,169,.15);transition:all 140ms}
.auth-btn-primary:hover,.primary-btn:hover{background:linear-gradient(130deg,#b49bff,#9271e5);color:#18223a;transform:translateY(-1px)}
.secondary-btn{border:1px solid #838aac;border-radius:12px;background:#2d3957;color:#e8eaf6;font-size:14px;font-weight:680;min-height:46px;padding:12px 17px;display:inline-flex;gap:9px;align-items:center;justify-content:center}.secondary-btn:hover{background:#344265;border-color:#a18beb;color:#fff}
.subtle-link{color:#beaaff;font-weight:680;text-decoration:none;font-size:14px}.subtle-link:hover{color:#e0d6ff}
.split-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.form-footnote{margin:24px 0 0;color:#c0c5d6;font-size:14px;line-height:1.6}.form-footnote a{color:#c6b1ff;font-weight:650}.auth-divider{height:1px;background:#364569;margin:27px 0}
.notice{display:flex;align-items:flex-start;gap:11px;border:1px solid #8283ab;background:#2a3652;padding:14px 15px;border-radius:12px;color:#cbd1e8;font-size:13px;line-height:1.55;margin-bottom:24px}.notice svg{flex:none;margin-top:2px;color:#b8a3ff;width:19px;height:19px}
.notice.success{border-color:rgba(98,202,154,.25);background:rgba(58,135,106,.11)}.notice.success svg{color:var(--bm-green)}
.notice.warning{border-color:rgba(231,177,95,.3);background:rgba(167,118,49,.1)}.notice.warning svg{color:var(--bm-amber)}
.requirements{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:12px 0 22px;color:#c3c9d8;font-size:12px}.requirements span{display:flex;gap:7px;align-items:center}.requirements svg{width:14px;height:14px;color:#adb3ca}.requirements span.pass svg{color:var(--bm-green)}
.progress-strength{height:5px;border-radius:10px;background:#37476b;overflow:hidden;margin-top:11px}.progress-strength span{height:100%;display:block;width:35%;background:#dba56c;transition:all 160ms}.progress-strength.strong span{width:100%;background:#60d3a0}
.mode-box{display:flex;gap:14px;align-items:center;border:1px solid #40527c;padding:18px 20px;border-radius:13px;background:#293550;margin-bottom:24px}.mode-avatar{width:44px;height:44px;flex:none;border-radius:13px;background:#847cb3;display:grid;place-items:center;color:#eadfff;font-weight:750}.mode-box strong{font-size:14px;color:#f0f0ff;display:block}.mode-box small{font-size:12px;color:#bbc2d3}
.state-icon{width:68px;height:68px;display:grid;place-items:center;border:1px solid #7bae9b;background:#263049;border-radius:20px;margin-bottom:24px;color:#68d9a5}.state-icon svg{width:32px;height:32px}
.state-icon.purple{border-color:#8c7db3;background:#2f3c5b;color:#c2adff}
.data-card{border:1px solid #3c4c74;border-radius:13px;background:#28334d;padding:18px 19px;margin:0 0 22px;color:#e6e8f8}
.data-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #364568;font-size:13px}.data-row:last-child{border:0;padding-bottom:0}.data-row:first-child{padding-top:0}.data-row .lbl{color:#c0c5d8}.data-row .val{font-weight:680;text-align:right}.tag{display:inline-flex;align-items:center;gap:7px;border-radius:8px;border:1px solid #8981af;background:#324061;padding:5px 9px;font-size:11px;font-weight:700;color:#d5c7ff}.tag.good{color:#94e2bf;border-color:#75b49c;background:#2a3652}.tag.warn{color:#f4d294;border-color:#775b37;background:#2b3959}
.app-tile{border:1px solid #8582ae;padding:18px;border-radius:14px;background:linear-gradient(145deg,#2b3753,#27314b);display:flex;align-items:center;gap:13px;margin:17px 0 24px}.app-logo{width:49px;height:49px;border-radius:13px;background:linear-gradient(120deg,#8668e8,#5a49c1);font-weight:850;color:white;display:grid;place-items:center;font-size:24px}.app-tile strong{font-size:15px;display:block}.app-tile small{font-size:12px;color:#bfc4d6}.scopes{padding:0;margin:14px 0 0;list-style:none}.scopes li{padding:12px 0;border-bottom:1px solid #364568;display:flex;gap:12px;align-items:flex-start;font-size:14px;color:#e3e5f4}.scopes li:last-child{border-bottom:0}.scopes svg{width:19px;height:19px;color:#b7a3ff;flex:none}.scopes small{display:block;color:#c1c8da;font-size:12px;margin-top:2px}
.auth-duo{display:flex;gap:12px}.auth-duo>*{flex:1}
.account-shell{min-height:100vh;display:flex;background:#192236}.account-sidebar{width:264px;flex:none;position:sticky;top:0;height:100vh;padding:29px 18px;background:#1d273c;border-right:1px solid #364569;display:flex;flex-direction:column}.account-brand{padding:0 10px 32px;font-size:21px;font-weight:780;color:#f2f0ff;display:flex;gap:11px;align-items:center}.account-nav-label{color:#b0b5c8;font-size:11px;font-weight:720;letter-spacing:.095em;padding:14px 13px;margin-top:12px}.account-nav{display:flex;flex-direction:column;gap:6px}.account-nav button{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1px solid transparent;border-radius:11px;color:#c4c9db;background:transparent;font-size:13px;font-weight:620;text-align:left}.account-nav button:hover{background:#2c3956;color:#f2efff}.account-nav button.current{background:#38486d;border-color:#8f80b2;color:#d8c5ff}.account-nav svg{height:18px;width:18px}.account-sidebar-foot{margin-top:auto;border-top:1px solid #334263;padding:22px 12px 4px;color:#bcc3d5;font-size:12px}.account-main{flex:1;min-width:0;display:flex;flex-direction:column}.account-topbar{height:80px;padding:0 52px;border-bottom:1px solid #37466b;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#1f293f}.account-topbar .crumb{color:#c3c9dc;font-size:13px}.account-topbar .crumb strong{color:#e9eafa;font-weight:670}.account-topbar-right{display:flex;gap:13px;align-items:center}.account-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#5f4ba0;color:#f4eeff;font-size:12px;font-weight:750}.account-content{width:100%;max-width:1210px;margin:0 auto;padding:49px 51px 90px}.section-title{font-size:36px;line-height:1.25;letter-spacing:-.04em;font-weight:780;color:#f2f2ff;margin:0 0 9px}.section-intro{color:#c0c6d7;font-size:14px;line-height:1.6;margin:0 0 34px}.account-grid{display:grid;grid-template-columns:1.34fr .86fr;gap:21px;align-items:start}.account-card{padding:28px 30px;border:1px solid #39486e;background:#242e46;border-radius:16px;margin-bottom:21px;box-shadow:0 9px 22px rgba(5,7,19,.065)}.account-card h2{margin:0 0 9px;font-size:18px;font-weight:730;letter-spacing:-.02em}.account-card .desc{color:#c1c7d7;font-size:13px;line-height:1.58;margin-bottom:23px}.account-list{list-style:none;margin:0;padding:0}.account-list li{border-top:1px solid #37466a;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.account-list li .main{font-weight:680;color:#e9eaf9}.account-list li .sub{color:#b9c0d3;font-size:12px;margin-top:3px}.account-list li .right{color:#d6d8e8;font-size:12px;text-align:right}.account-heading{display:flex;gap:17px;align-items:center;margin-bottom:23px}.big-avatar{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:#3e4f79;color:#f4edff;font-size:22px;font-weight:770}.account-heading h2{margin:0 0 3px}.account-heading p{margin:0;color:#c1c8d7;font-size:13px}.account-action{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #37466a;padding:17px 0}.account-action strong{display:block;font-size:13px}.account-action small{display:block;color:#c0c6d7;font-size:12px;margin-top:4px}.account-action button{flex:none}.auth-settings-form{max-width:650px}.subtle-note{font-size:12px;color:#c2c7d9;line-height:1.55;margin:22px 0}
#toast{position:fixed;right:25px;top:24px;z-index:5000;max-width:340px;padding:15px 18px;border:1px solid #8aa1a3;background:#2a3652;color:#daf9eb;border-radius:12px;font-size:13px;font-weight:650;box-shadow:0 18px 44px rgba(0,0,0,.3);display:none}
.preview-toolbar{position:fixed;bottom:20px;right:20px;z-index:4000;display:flex;gap:7px;align-items:center;padding:7px 9px 7px 14px;border-radius:13px;border:1px solid #9b8bb6;background:rgba(26,25,45,.96);box-shadow:0 15px 40px #0007;color:#ece8ff;font-size:12px}.preview-toolbar button{border:1px solid #918bae;border-radius:8px;background:#344264;color:#e3d7ff;min-width:32px;height:31px}.preview-toolbar button:hover{background:#9b8bb9}.preview-tag{font-weight:720;letter-spacing:.03em;color:#a999d9;margin-right:4px}.preview-count{font-variant-numeric:tabular-nums;margin-right:5px}
.all-screens{position:fixed;bottom:73px;right:20px;z-index:4300;width:310px;max-height:75vh;overflow:auto;background:#28344e;border:1px solid #9b8bb6;border-radius:13px;padding:10px;box-shadow:0 16px 50px #0009}.all-screens button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 12px;color:#e1dff2;border-radius:8px;font-size:13px}.all-screens button:hover{background:#877fad}.all-screens button.sel{background:#927fba;color:#fff}
body.capture .preview-toolbar,body.capture .all-screens{display:none!important}
body.capture .auth-hero:before,body.capture .auth-hero:after{animation:none!important}
[data-bs-theme="light"] .auth-panel,[data-bs-theme="light"] .account-main{background:#f7f8fc;color:#27324c}[data-bs-theme="light"] .auth-form__title,[data-bs-theme="light"] .section-title{color:#28334e}[data-bs-theme="light"] .auth-form__subtitle,[data-bs-theme="light"] .section-intro{color:#99a1b3}[data-bs-theme="light"] .auth-form .form-label{color:#354366}[data-bs-theme="light"] .auth-form .form-control{background:#fff;color:#27324c;border-color:#d4d9e5}[data-bs-theme="light"] .auth-panel__footer{color:#a3a8b7}
@media (max-width:1100px){.auth-hero{padding:39px 34px}.auth-panel{padding:35px 37px}.hero-main h2{font-size:35px}.account-content{padding:39px 30px 60px}.account-topbar{padding:0 30px}}
@media (max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-hero{display:none}.auth-panel{min-height:100vh;padding:25px 30px}.auth-panel__body{padding:30px 0}.account-sidebar{width:80px;padding:26px 12px}.account-brand{padding:0 4px 26px}.account-brand .brand-word,.account-nav-label,.account-nav span,.account-sidebar-foot{display:none}.account-nav button{justify-content:center;padding:14px}.account-topbar{padding:0 22px}.account-grid{grid-template-columns:1fr}}
@media (max-width:600px){.auth-panel{padding:21px 23px}.auth-form__title{font-size:30px}.auth-panel__top{margin-bottom:8px}.auth-panel__body{padding:22px 0}.auth-duo{flex-direction:column}.account-sidebar{display:none}.account-content{padding:32px 19px}.account-card{padding:23px}.account-topbar{padding:0 17px}.account-topbar .crumb{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-title{font-size:28px}.preview-toolbar{bottom:7px;right:7px}.preview-tag{display:none}.account-list li{align-items:start}.auth-form__subtitle{font-size:14px}}
/* Override ciblé du sélecteur dark Orchid d'origine : alignement strict palette V6 */
[data-bs-theme="dark"] .auth-hero{background:radial-gradient(ellipse at 14% 18%,rgba(123,89,222,.20),transparent 47%),radial-gradient(ellipse at 78% 82%,rgba(94,71,171,.10),transparent 44%),linear-gradient(145deg,#1f2940 0%,#1f293f 48%,#192239 100%);}
.auth-panel__brand-sm .brand-symbol,.account-brand .brand-symbol{background:linear-gradient(135deg,#9b7cf5,#6450cb)!important;-webkit-text-fill-color:#fff!important;color:#fff!important;font-size:17px!important;box-shadow:0 7px 24px rgba(93,67,185,.18)}
.auth-panel__brand-sm .brand-sub{color:#cac0e0!important;-webkit-text-fill-color:#cac0e0!important;font-size:13px!important;font-weight:500!important}
