:root{--navy:#172A63;--turq:#18AAA9;--green:#94BE48;--orange:#F6A20B;--coral:#F26055;--bg:#f5f8fb;--line:#e3e9ef;--text:#1c2945}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text)}header{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:10px max(24px,calc((100% - 1280px)/2));gap:14px}header img{width:105px;height:55px;object-fit:contain}header div{display:flex;flex-direction:column}header span{font-size:12px;color:#71809a}header a{margin-left:auto;color:var(--navy);text-decoration:none;font-weight:700}.wrap{max-width:1280px;margin:auto;padding:32px 24px}.hero{background:linear-gradient(120deg,var(--navy),#233f88);border-radius:28px;padding:34px;color:white;display:flex;justify-content:space-between;align-items:center;box-shadow:0 18px 45px #172a6324}.hero h1{font-size:38px;margin:8px 0}.hero p{margin:0;color:#dce7ff}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.13em;color:var(--turq)}.stats{display:flex;gap:12px}.stats div{background:#ffffff15;border:1px solid #ffffff25;padding:18px 25px;border-radius:18px;display:flex;flex-direction:column;min-width:110px}.stats b{font-size:28px}.stats span{font-size:12px}.grid{display:grid;grid-template-columns:360px 1fr;gap:22px;margin-top:22px}.card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 8px 24px #172a630b}.card h2{margin:0 0 18px;color:var(--navy)}label{display:block;font-size:12px;font-weight:800;margin:13px 0 6px}input{width:100%;padding:13px 14px;border:1px solid #ccd6e2;border-radius:12px;font:inherit;outline:none}input:focus{border-color:var(--turq);box-shadow:0 0 0 3px #18aaa91c}button{width:100%;margin-top:18px;border:0;background:var(--turq);color:#fff;padding:13px 16px;border-radius:12px;font-weight:800;cursor:pointer}.domain{display:flex;align-items:center;border:1px solid #ccd6e2;border-radius:12px;overflow:hidden}.domain input{border:0;border-radius:0}.domain span{padding:0 12px;color:#6e7d94;font-size:13px;white-space:nowrap}.title-row{display:flex;justify-content:space-between;align-items:center}.title-row span{font-size:12px;color:#78879b}.tenant{display:flex;align-items:center;gap:14px;padding:15px 0;border-top:1px solid #edf0f4}.avatar{width:42px;height:42px;border-radius:14px;background:#18aaa918;color:var(--turq);display:grid;place-items:center;font-weight:900}.tenant-main{flex:1;min-width:0;display:flex;flex-direction:column}.tenant-main a{color:var(--turq);text-decoration:none;font-size:13px}.tenant-main small{color:#8290a4;margin-top:3px}.badge{padding:6px 9px;border-radius:999px;font-size:11px;font-weight:900}.badge.on{background:#94be4820;color:#648b21}.badge.off{background:#f260551a;color:#c84940}.tenant form{width:105px}.secondary{margin:0;background:#eef3f7;color:var(--navy);padding:9px}.notice,.ok,.alert{margin-top:20px;padding:16px 18px;border-radius:16px}.notice{background:#fff;border:1px solid var(--line);display:flex;gap:12px}.notice b{color:var(--navy);white-space:nowrap}.ok{background:#94be4820;color:#527719}.alert{background:#f2605515;color:#b54139}.empty{padding:30px;text-align:center;color:#8491a4}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,#18aaa925,transparent 35%),var(--bg)}.login-card{width:min(440px,calc(100% - 32px));background:white;border-radius:28px;padding:38px;box-shadow:0 24px 70px #172a6320}.login-card .logo{width:150px;height:85px;object-fit:contain;margin-bottom:20px}.login-card h1{color:var(--navy);font-size:30px;margin:7px 0}.login-card p{color:#71809a;margin-bottom:24px}@media(max-width:850px){.grid{grid-template-columns:1fr}.hero{align-items:flex-start;gap:25px;flex-direction:column}.hero h1{font-size:30px}.wide{overflow:hidden}.tenant{flex-wrap:wrap}.tenant-main{min-width:190px}.stats{width:100%}.stats div{flex:1}.notice{flex-direction:column}}@media(max-width:520px){.wrap{padding:18px 12px}.hero,.card{border-radius:20px;padding:20px}.tenant form{width:100%}.tenant form button{width:100%}.badge{margin-left:56px}header{padding:10px 14px}.hero h1{font-size:27px}}
.admin-actions{display:flex;justify-content:flex-end;margin:18px 0 0}.action-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:850;border-radius:12px;padding:12px 16px}.import-link{background:#172A63;color:#fff}.import-hero{margin-bottom:22px}.import-grid{grid-template-columns:minmax(320px,460px) 1fr;margin-top:0}.file-input{padding:10px;background:#f8fafc}.help{display:block;color:#71809a;font-size:12px;line-height:1.45;margin-top:6px}.import-steps{display:grid;gap:12px}.import-steps>div{display:flex;gap:13px;align-items:flex-start;padding:14px;border:1px solid #e3e9ef;border-radius:16px;background:#fafcfe}.import-steps>div>b{width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:#18AAA918;color:#18AAA9;display:grid;place-items:center}.import-steps span{display:flex;flex-direction:column;gap:3px}.import-steps small{color:#71809a;line-height:1.4}.warning-box{margin-top:18px;padding:16px;border-radius:16px;background:#F6A20B16;border:1px solid #F6A20B44}.warning-box strong{color:#172A63}.warning-box p{margin:7px 0 0;line-height:1.55;color:#5e6a7c}.mini-tag{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:#18AAA918;color:#148b8a;font-size:10px;vertical-align:middle}.card code,.notice code,.warning-box code{font-size:.92em;background:#eef3f7;padding:2px 5px;border-radius:5px}@media(max-width:850px){.import-grid{grid-template-columns:1fr}.admin-actions{justify-content:stretch}.action-link{width:100%}}@media(max-width:520px){.import-hero{padding:20px}.import-hero h1{font-size:26px}}

/* V1.1.2 - navigation et paramètres */
.top-nav{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:12px;color:var(--navy,#172A63);text-decoration:none;font-weight:800}.top-nav a.active{background:#e7f7f6;color:#168f90}.top-nav a:last-child{color:#b74338}.settings-wrap{max-width:1050px}.hero.compact{padding-bottom:20px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:22px;align-items:start}.settings-card form{max-width:620px}.form-help{display:block;color:#6d7b98;margin:-4px 0 12px;line-height:1.5}.security-card p{color:#657391;line-height:1.65}@media(max-width:760px){header{align-items:flex-start;flex-wrap:wrap}.top-nav{width:100%;margin-left:0}.top-nav a{flex:1 1 auto}.settings-grid{grid-template-columns:1fr}}

/* V1.1.3 - navigation responsive, actions clients, sécurité */
.admin-header{height:auto;min-height:78px;padding-top:10px;padding-bottom:10px;display:flex;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:230px}.brand img{width:92px;height:54px;object-fit:contain}.brand span{display:flex;flex-direction:column;line-height:1.2}.brand strong{color:var(--navy);font-size:14px}.brand small{font-size:11px;color:#71809a;margin-top:4px}.top-nav{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-nav a{margin-left:0;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:11px;color:var(--navy);text-decoration:none;font-size:14px;font-weight:800;white-space:nowrap}.top-nav a:hover,.top-nav a.active{background:#e7f7f6;color:#168f90}.top-nav .logout-link{color:#b74338;background:#fdf1f0}.menu-toggle{display:none;width:auto;margin:0 0 0 auto;padding:10px 14px;background:var(--navy);border-radius:10px}.tenant-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.tenant-actions form{width:auto}.tenant-actions button{width:auto;white-space:nowrap;margin:0;padding:9px 11px;font-size:12px}.tenant-actions .reset-btn{background:#e7f7f6;color:#157f80}.temp-password{display:inline-block;margin:10px 0 4px;padding:10px 14px;background:white;border:1px dashed #d69a18;border-radius:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;letter-spacing:.04em}.security-card code{font-size:.9em;background:#eef3f7;padding:2px 5px;border-radius:5px}
@media(max-width:900px){.admin-header{flex-wrap:wrap}.menu-toggle{display:inline-flex}.top-nav{display:none;width:100%;margin:0;padding:8px 0 2px;border-top:1px solid var(--line)}.top-nav.open{display:grid;grid-template-columns:1fr 1fr}.top-nav a{width:100%;background:#f7f9fc}.tenant{align-items:flex-start}.tenant-actions{width:100%;padding-left:56px}.tenant-actions form{flex:1}.tenant-actions button{width:100%}}
@media(max-width:520px){.brand{min-width:0;flex:1}.brand img{width:78px}.brand small{display:none}.top-nav.open{grid-template-columns:1fr}.tenant-actions{padding-left:0}.tenant-actions form{flex:1 1 100%}}
/* V1.2 - Abonnements Stripe */
.billing-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}.billing-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.bill-ok{background:#94BE4826;color:#557b19}.bill-trial{background:#18AAA922;color:#137f7f}.bill-warn{background:#F6A20B22;color:#9a6500}.bill-off{background:#F2605520;color:#a43f37}.bill-neutral{background:#eef2f7;color:#657391}.billing-plan{font-size:11px;color:#71809a;font-weight:800}.portal-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 11px;border-radius:10px;background:#172A63;color:white;text-decoration:none;font-size:12px;font-weight:800}.billing-config-card{border-left:4px solid #18AAA9}.billing-config-card code{word-break:break-all}

/* V1.2 - gestion des licences depuis le Super Admin */
.license-form{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0}.license-form select{min-height:36px;padding:7px 28px 7px 10px;border:1px solid #d9e0ea;border-radius:10px;background:#fff;color:#172A63;font-weight:800}.license-form button{min-height:36px;padding:8px 11px}.tenant-actions{align-items:center;flex-wrap:wrap}.tenant-main .billing-line{margin-top:6px}
@media(max-width:820px){.license-form{width:100%}.license-form select,.license-form button{flex:1;min-width:130px}.tenant-actions{width:100%}}
/* V1.2.1 - abonnement géré par le client */
.client-billing-link{background:#e7f7f6;color:#157f80;border:1px solid #c9eeee}.client-billing-link:hover{background:#d9f3f2}.tenant-actions .client-billing-link{white-space:nowrap}
