:root{--bg:#f6f7fb;--paper:#fff;--ink:#202437;--muted:#7b8096;--line:#eceef5;--brand:#6857df;--soft:#f0edff;--green:#25866b;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input{outline-offset:4px}button{cursor:pointer;border:0;border-radius:10px;padding:11px 16px;background:var(--brand);color:white;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#5846ce}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#f3f4f9;color:#626980}button.secondary:hover{background:#e9ebf4}button.ghost{background:transparent;color:var(--muted)}input,select{border:1px solid #e2e5ee;background:white;border-radius:10px;padding:12px;color:var(--ink);max-width:100%}input:focus{border-color:var(--brand)}input[type=checkbox]{accent-color:var(--brand);width:18px;height:18px}input[type=datetime-local]{font-size:13px}h1{font-size:32px;font-weight:650;letter-spacing:-1.1px;margin:12px 0}h2{font-size:18px;font-weight:650;letter-spacing:-.35px;margin:0}h3{font-size:14px;font-weight:650}p{line-height:1.65;color:var(--muted)}a{color:var(--brand);text-decoration:none}label{font-size:12px;font-weight:550;color:#687089;display:block}small,.muted{font-size:12px;color:var(--muted);line-height:1.65}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;letter-spacing:-.6px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--brand);color:white;font-size:20px;font-weight:500;box-shadow:0 5px 12px #6857df25}.eyebrow{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:1.7px;color:var(--muted)}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:20px;box-shadow:0 3px 10px #20243702}.status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:650;background:#f3f4f9;color:#73798d;padding:6px 9px;border-radius:6px}.active{background:#e9f7f1;color:var(--green)}.off{background:#fff3e4;color:#a16c28}.notice{padding:13px 16px;background:var(--soft);color:#655c9c;border-radius:11px;font-size:12px;line-height:1.6;margin:16px 0}.error{background:#fff0f0;color:#b34242}.hidden{display:none!important}.empty{padding:40px 20px;text-align:center}.empty-symbol{display:grid;place-items:center;background:var(--soft);color:var(--brand);width:50px;height:50px;border-radius:15px;margin:0 auto 15px;font-size:23px}.empty h3{font-size:16px;margin:10px}.empty p{max-width:330px;margin:8px auto}.field{margin:18px 0}.field label{margin-bottom:8px}.field input{width:100%}.full{width:100%}.divider{height:1px;background:var(--line);margin:24px 0}footer{color:#9b9fb1;font-size:11px;text-align:center;margin:28px 0}.narrow{max-width:570px;margin:0 auto;padding:40px 22px}.narrow header{display:flex;align-items:center;justify-content:space-between;margin:0 0 48px}.narrow h1{font-size:30px}.card-top{margin-bottom:24px}.step-label{display:flex;gap:7px;align-items:center;font-size:11px;color:var(--brand);font-weight:600}.step-dot{width:6px;height:6px;background:var(--brand);border-radius:50%}.dropzone{border:1.5px dashed #cfcaed;background:#faf9ff;border-radius:14px;padding:36px 20px;text-align:center;transition:background .15s;position:relative}.dropzone.drag{background:#eeebff;border-color:var(--brand)}.dropzone h3{font-size:15px;margin:16px 0 8px}.dropzone p{font-size:12px}.upload-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#ede9ff;color:var(--brand);font-size:26px;margin:0 auto}.file-row{display:flex;gap:12px;align-items:center;padding:15px;background:#f7f8fc;border-radius:11px;margin-top:16px}.file-row strong{font-size:13px;overflow-wrap:anywhere}.file-row .pdf{background:#ffecee;color:#c86572;font-size:10px;font-weight:750;padding:10px 7px;border-radius:8px}.track{height:6px;background:#efedf8;border-radius:4px;overflow:hidden;margin-top:16px}.track div{height:100%;background:var(--brand);transition:width .2s;width:0}.success-symbol{width:56px;height:56px;background:#e8f7f0;color:var(--green);border-radius:50%;display:grid;place-items:center;font-size:28px;margin:12px auto 18px}.countdown{font-variant-numeric:tabular-nums}.meta{font-size:11px;color:var(--muted)}
/* Administration */
.sidebar{position:fixed;inset:0 auto 0 0;width:220px;border-right:1px solid var(--line);background:white;padding:32px 24px;display:flex;flex-direction:column}.sidebar nav{margin-top:54px}.nav-item{display:block;border-radius:10px;padding:13px 14px;font-size:13px;color:var(--muted);margin:7px 0}.nav-item.selected{background:var(--soft);color:var(--brand);font-weight:650}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:20px}.admin-main{max-width:1350px;margin-left:220px;padding:36px 42px}.topbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:32px;border-bottom:1px solid var(--line)}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:28px 0 24px}.page-heading p{margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stat{margin:0;padding:22px}.stat strong{font-size:30px;display:block;margin:12px 0 4px;letter-spacing:-1px}.stat small{font-size:11px}.user{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:22px 0;border-top:1px solid var(--line)}.user h3{margin:0 0 8px}.controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.controls label{display:flex;flex-direction:column;gap:7px}.code{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-top:1px solid var(--line)}code{font-size:15px;letter-spacing:2px;color:var(--brand)}#login{max-width:420px;margin:12vh auto;padding:30px}.login-wrap{padding:24px}.login-wrap .brand{margin-bottom:36px}.login-wrap h1{font-size:28px}.admin-note{padding:12px 0;font-size:12px}.toast{position:fixed;bottom:20px;right:24px;max-width:440px;z-index:5;box-shadow:0 6px 30px #20243718}.account-row{display:flex;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}
@media(max-width:1050px){.sidebar{width:180px;padding:26px 16px}.admin-main{margin-left:180px;padding:28px 24px}}@media(max-width:720px){.sidebar{position:static;width:auto;border-right:0;border-bottom:1px solid var(--line);padding:18px 22px}.sidebar nav,.sidebar-bottom{display:none}.admin-main{margin:0;padding:24px 18px}.stats{gap:8px}.stat{padding:16px 12px}.stat strong{font-size:26px}.topbar{padding-bottom:20px}.page-heading{display:block}.narrow header{margin-bottom:30px}.card{padding:20px}.toast{left:16px;right:16px}.user .controls{width:100%}.controls input[type=datetime-local]{max-width:180px}}

.course-upload{margin-top:16px}.course-upload .dropzone{padding:22px}.course-upload .dropzone h3{margin:0 0 8px}.course-upload [hidden]{display:none!important}details>summary{cursor:pointer;color:var(--brand);font-size:13px;padding:8px 0}

/* Crédits, fournisseurs et abonnements */
#billingSection{scroll-margin-top:20px}.billing-intro{margin:5px 0 0}.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.provider-card{display:flex;flex-direction:column;min-height:210px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#151721}.provider-card.warning{border-color:#5a432c}.provider-card.missing{opacity:.78}.provider-card h3{margin:0}.provider-metric{display:block;font-size:21px;letter-spacing:-.4px;margin:24px 0 7px}.provider-action{display:inline-flex;align-items:center;justify-content:center;margin-top:auto;padding:10px 12px;border-radius:9px;background:var(--soft);font-size:12px;font-weight:650}.quota-track{height:7px;border-radius:8px;background:#303344;overflow:hidden;margin:14px 0 5px}.quota-track div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#7055cf,#b3a2ff)}.subscription-strip{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.subscription-chip{display:flex;align-items:baseline;gap:7px;padding:9px 12px;border-radius:10px;background:#242736;color:var(--muted)}.subscription-chip strong{font-size:17px;color:var(--ink)}.subscription-chip.active{background:#193b30}.subscription-chip.active strong{color:#80d9b3}.subscription-chip.warning{background:#42311e}.subscription-chip.warning strong{color:#edc17e}.provider-skeleton{grid-column:1/-1;padding:32px;text-align:center;color:var(--muted)}.plan-actions{display:flex;gap:5px}.compact{padding:9px 10px;font-size:11px;white-space:nowrap}

/* Thème sombre par défaut, indépendant du thème du système. */
:root{color-scheme:dark;--bg:#101119;--paper:#191b27;--ink:#f1f0fa;--muted:#a7aabd;--line:#303344;--brand:#b3a2ff;--soft:#2b2544;--green:#80d9b3}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:#151721}.card{box-shadow:0 6px 24px #00000018}
button,.brand-mark{background:#7055cf;color:#fff}button:hover{background:#8066de}
button.secondary{background:#2a2d3e;color:#d6d8e9}button.secondary:hover{background:#363a50}button.ghost{background:transparent;color:var(--muted)}
input,select{background:#12141f;border-color:#3b3e54;color:var(--ink)}input::placeholder{color:#9095ab}label{color:#bec1d3}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #c2b4ff;outline-offset:3px}
.status{background:#2a2d3c;color:#c1c5d8}.active{background:#193b30;color:#80d9b3}.off{background:#42311e;color:#edc17e}
.notice{background:#2b2544;color:#d0c3ff}.error{background:#41252c;color:#ffb0bb}
.dropzone{background:#1c1b2c;border-color:#585073}.dropzone.drag{background:#302747;border-color:#b3a2ff}
.upload-icon{background:#302748}.file-row{background:#242736}.file-row .pdf{background:#442a36;color:#ffb0c2}.track{background:#343047}
.success-symbol{background:#193b30;color:#80d9b3}footer{color:#969bb1}

/* Espace personnel tout-en-un */
.portal{max-width:680px}.portal .lead{font-size:15px;margin-bottom:28px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:24px 0}.quick-card{background:var(--paper);border:1px solid var(--line);padding:18px;text-align:left;color:var(--ink);display:grid;grid-template-columns:38px 1fr;column-gap:10px}.quick-card:hover{background:#222535}.quick-card>span{font-size:25px;grid-row:1/3}.quick-card strong{font-size:14px}.quick-card small{margin-top:3px}.action-card{scroll-margin-top:18px}.action-head{display:flex;gap:14px;align-items:center;margin-bottom:20px}.action-head p{margin:3px 0 0}.action-icon{width:44px;height:44px;border-radius:13px;background:var(--soft);display:grid;place-items:center;font-size:21px}.phone-row{display:flex;gap:10px;margin:8px 0 10px}.phone-row input{flex:1;min-width:0}.code-box{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--soft);border-radius:13px;padding:16px;margin-bottom:14px}.code-box span,.code-box small{font-size:11px}.code-box strong{font-size:28px;letter-spacing:6px;color:var(--brand)}.portal #message:empty{display:none}
@media(max-width:520px){.quick-card{grid-template-columns:1fr;padding:15px}.quick-card>span{grid-row:auto;margin-bottom:8px}.phone-row{display:grid}.phone-row button{width:100%}.code-box{flex-wrap:wrap}.code-box small{width:100%}}
@media(max-width:950px){.provider-grid{grid-template-columns:1fr}.provider-card{min-height:180px}}

.balance-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:13px 0}.balance-editor input{width:100%;min-width:0;padding:9px 10px;font-size:12px}


/* Centre de crédits ludique */
.billing-zone{position:relative;overflow:hidden;padding:28px;background:linear-gradient(145deg,#1b1d2b 0%,#171924 58%,#1e1830 100%)}
.billing-zone:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;background:#7055cf1b;filter:blur(2px);right:-150px;top:-170px;pointer-events:none}
.billing-title{position:relative;z-index:1}.billing-title h2{font-size:23px;margin:5px 0}.refresh-pill{border:1px solid #3d4054;border-radius:999px;padding:9px 14px}
.money-hero{position:relative;display:grid;grid-template-columns:92px minmax(220px,1fr) minmax(220px,.85fr);align-items:center;gap:20px;margin:24px 0 18px;padding:24px;border:1px solid #4e4377;border-radius:20px;background:radial-gradient(circle at 10% 50%,#6f55ce32,transparent 36%),linear-gradient(115deg,#28213f,#1d2030);box-shadow:inset 0 1px #ffffff10,0 20px 45px #08091032}
.wallet-orbit{position:relative;width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#8067df,#5640ad);box-shadow:0 12px 32px #7055cf55;color:white;font-size:29px}.wallet-orbit:before{content:"";position:absolute;inset:-8px;border:1px dashed #ae9cff80;border-radius:50%;animation:relay-spin 18s linear infinite}.wallet-orbit i,.wallet-orbit b{position:absolute;width:8px;height:8px;border-radius:50%;background:#80d9b3}.wallet-orbit i{right:-9px}.wallet-orbit b{left:-6px;bottom:4px;background:#edc17e}
@keyframes relay-spin{to{transform:rotate(360deg)}}
.wallet-copy{display:flex;flex-direction:column}.wallet-copy>span{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:#bdb4df}.wallet-copy strong{font-size:36px;line-height:1.15;margin:5px 0;color:#fff;letter-spacing:-1.3px}.wallet-copy small{color:#aeb1c5}.wallet-state{display:flex;align-items:center;gap:11px;padding:14px;border-radius:13px;background:#ffffff09;color:#c8c9d7;font-size:12px;line-height:1.5}.pulse{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:#79d7ae;box-shadow:0 0 0 0 #79d7ae88;animation:relay-pulse 2s infinite}@keyframes relay-pulse{70%{box-shadow:0 0 0 9px transparent}}
.subscription-strip{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 0 18px}.subscription-chip{min-height:52px;padding:10px 12px;border:1px solid #323548}.chip-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#333649;color:#d8d9e6}.subscription-chip.active .chip-icon{background:#24513f;color:#80d9b3}.subscription-chip.warning .chip-icon{background:#5b4124;color:#edc17e}
.provider-grid{position:relative;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.provider-card{min-height:285px;padding:19px;background:linear-gradient(160deg,#202231,#181a26);border-color:#343749;transition:transform .2s,border-color .2s,box-shadow .2s}.provider-card:hover{transform:translateY(-3px);border-color:#514a70;box-shadow:0 16px 32px #090a103d}.provider-card:before{content:"";display:block;position:absolute}.provider-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.provider-identity{display:flex;align-items:center;gap:10px}.provider-identity h3{font-size:15px}.provider-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#302a4a;color:#c7b9ff;font-size:17px}.provider-elevenlabs .provider-icon{background:#243743;color:#86cce6}.provider-twilio .provider-icon{background:#422631;color:#ff9bae}.provider-label{margin-top:22px;font-size:9px;font-weight:750;letter-spacing:1.25px;color:#898da3}.provider-metric{font-size:27px;margin:5px 0 6px;color:#f7f6ff}.provider-detail{min-height:34px;margin:0 0 10px;font-size:11px;color:#9da1b6}.provider-action{background:#7055cf;color:white;margin-top:auto;transition:transform .15s,background .15s}.provider-action:hover{background:#8268e2;transform:translateY(-1px)}.balance-editor{margin:8px 0 10px}.balance-editor .secondary{border:1px solid #45485d}.payment-note{display:flex;gap:13px;align-items:flex-start;margin-top:17px;padding:15px 17px;border-radius:14px;background:#13151f;border:1px solid #2d3040}.payment-note>span{font-size:20px}.payment-note strong{font-size:12px}.payment-note p{font-size:11px;margin:3px 0 0;line-height:1.5}
.provider-identity-copy{min-width:0}.provider-account{display:block;max-width:165px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8f93a8;font-size:10px}
@media(max-width:1050px){.money-hero{grid-template-columns:76px 1fr}.wallet-state{grid-column:1/-1}.subscription-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.billing-zone{padding:20px}.money-hero{grid-template-columns:1fr;text-align:center}.wallet-orbit{margin:auto}.wallet-state{grid-column:auto;text-align:left}.provider-grid{grid-template-columns:1fr}.subscription-strip{grid-template-columns:1fr 1fr}.wallet-copy strong{font-size:31px}}
