:root{
  --ink:#142033;--muted:#667085;--line:#e4e9f0;--soft:#f5f7fa;--panel:#fff;
  --brand:#0d1b2d;--accent:#1f6feb;--accent-dark:#1558bc;--good:#147a56;--warn:#a35b00;--bad:#b42318;
  --radius:18px;--shadow:0 18px 55px rgba(20,32,51,.08)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--soft);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}.shell{width:min(1180px,calc(100% - 36px));margin:auto}.narrow{max-width:820px}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--brand);color:#fff;font-weight:800;letter-spacing:-.05em}.brand strong{display:block;font-size:18px;line-height:1}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.nav{display:flex;align-items:center;gap:18px}.nav>a,.link-button{color:#344054;font-size:14px}.nav>a:hover,.link-button:hover{color:var(--accent)}.nav-form{display:inline}.link-button,.text-action,.text-danger{border:0;background:none;padding:0;cursor:pointer}.menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 11px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--brand);background:var(--brand);color:#fff;border-radius:11px;padding:12px 18px;font-weight:700;cursor:pointer;transition:.2s}.button:hover{background:#1c2d45;color:#fff;transform:translateY(-1px)}.button.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.button.secondary:hover{border-color:#b7c1cf;background:#fafbfc}.button.light{background:#fff;color:var(--brand);border-color:#fff}.button.small{padding:8px 12px;border-radius:9px;font-size:13px}.button.danger{background:#fff;color:var(--bad);border-color:#f2b8b5}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.full-button{width:100%}.hero{padding:82px 0 74px;background:radial-gradient(circle at 90% 0%,#dae8ff 0,transparent 38%),linear-gradient(180deg,#fff,#f6f8fb)}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:74px;align-items:center}.eyebrow{display:inline-block;color:var(--accent);font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800}.hero h1,.page-head h1,.auth-card h1{letter-spacing:-.045em;line-height:1.02}.hero h1{font-size:clamp(42px,6vw,70px);max-width:760px;margin:18px 0 24px}.lead{font-size:20px;color:#475467;max-width:700px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.micro,.muted{color:var(--muted)}.micro{font-size:13px;margin-top:18px}.hero-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 34px 90px rgba(27,55,94,.16);overflow:hidden;transform:rotate(1deg)}.preview-header{display:flex;gap:7px;padding:15px 18px;background:#f8fafc;border-bottom:1px solid var(--line)}.preview-header span{width:9px;height:9px;border-radius:50%;background:#cad3df}.preview-body{padding:30px}.preview-body h2{margin:0 0 22px}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-grid div{background:#f7f9fc;border:1px solid #edf0f4;border-radius:14px;padding:15px}.mini-grid b{display:block;font-size:23px}.mini-grid span{font-size:11px;color:var(--muted)}.preview-row{display:flex;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.preview-row:last-child{border:0}.preview-row small{display:block;color:var(--muted)}.dot{width:11px;height:11px;border-radius:50%;background:var(--good);box-shadow:0 0 0 5px #dff5eb}.dot.light{background:var(--accent);box-shadow:0 0 0 5px #e5efff}.section{padding:78px 0}.section.compact{padding:34px 0 72px}.section-heading{max-width:690px;margin-bottom:28px}.section-heading h2{font-size:38px;letter-spacing:-.035em;margin:10px 0}.feature-grid,.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card,.device-card,.appointment-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 28px rgba(20,32,51,.035)}.card{padding:26px}.card h3{font-size:19px;margin:18px 0 8px}.card p{margin:0;color:var(--muted)}.icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf4ff;color:var(--accent);font-weight:800}.page-head{padding:44px 0 30px;background:#fff;border-bottom:1px solid var(--line)}.page-head.dark{background:var(--brand);color:#fff;border:0}.page-head h1{font-size:42px;margin:10px 0 8px}.page-head p{margin:0;color:var(--muted)}.page-head.dark p{color:#b6c2d2}.split{display:flex;align-items:center;justify-content:space-between;gap:24px}.auth-section{min-height:calc(100vh - 154px);display:grid;place-items:center;padding:54px 18px;background:radial-gradient(circle at 15% 10%,#e7efff,transparent 35%)}.auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:36px;box-shadow:var(--shadow)}.auth-card.wide{width:min(780px,100%)}.auth-card.center{text-align:center}.auth-intro{margin-bottom:24px}.auth-intro h1{font-size:36px;margin:10px 0}.auth-intro p,.auth-card.center p{color:var(--muted)}.auth-foot{text-align:center;color:var(--muted);font-size:14px;margin:26px 0 0;padding-top:20px;border-top:1px solid var(--line)}.auth-links{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-top:18px}.success-icon,.error-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;margin:0 auto 20px;font-size:26px;font-weight:800}.success-icon{background:#dcfce7;color:var(--good)}.error-icon{background:#fee4e2;color:var(--bad)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.stack{display:grid;gap:17px}label{display:grid;gap:7px;color:#344054;font-size:14px}label small,.optional{color:var(--muted);font-size:12px}.optional{font-weight:400}input,select,textarea{width:100%;border:1px solid #cfd7e3;border-radius:10px;background:#fff;padding:11px 12px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#73a7f5;box-shadow:0 0 0 4px #eaf2ff}textarea{resize:vertical}.check{display:flex;grid-template-columns:20px 1fr;align-items:flex-start}.check input{width:18px;height:18px;margin-top:2px}.error-list{background:#fff1f0;border:1px solid #f5c0bc;border-radius:12px;padding:12px 16px;margin-bottom:20px;color:#912018}.error-list p{margin:4px 0}.flash-stack{padding-top:18px}.flash{padding:13px 16px;border-radius:11px;border:1px solid var(--line);background:#fff;margin-bottom:8px}.flash.success{background:#ecfdf3;border-color:#a6e7c8;color:#05603a}.flash.warning{background:#fff8eb;border-color:#f2d39a;color:#854d0e}.flash.info{background:#eff6ff;border-color:#bfd7fb;color:#1d4d91}.inline-resend{text-align:center;margin-top:14px}.text-action{color:var(--accent)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat-card{display:grid;background:#fff;border:1px solid var(--line);border-radius:16px;padding:21px;color:var(--ink)}.stat-card span,.stat-card small{color:var(--muted)}.stat-card strong{font-size:30px;letter-spacing:-.04em;margin:6px 0}.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.panel{overflow:hidden}.panel.padded{padding:24px}.panel+.panel{margin-top:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line)}.panel-head h2,.panel h2{margin:0 0 4px;font-size:20px}.panel-head p{margin:0;color:var(--muted);font-size:13px}.list{display:grid}.list-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 21px;border-bottom:1px solid var(--line);color:var(--ink)}.list-row:last-child{border:0}.list-row small{display:block;color:var(--muted);margin-top:3px}.empty{text-align:center;padding:40px 24px}.empty h2{margin-top:0}.empty p{color:var(--muted)}.status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:750;background:#eef2f6;color:#475467}.status.large{font-size:13px;padding:8px 12px}.status.nouvelle,.status.a_payer{background:#fff1db;color:#92530a}.status.prise_en_charge,.status.planifiee,.status.confirme{background:#e7f0ff;color:#205aa7}.status.en_attente_client{background:#f3e8ff;color:#7135a5}.status.en_cours{background:#e7f8fb;color:#166270}.status.resolue,.status.fermee,.status.paye,.status.termine{background:#e4f6ec;color:#126344}.status.annule{background:#fee9e7;color:#9b2c24}.card-grid{grid-template-columns:repeat(3,1fr)}.device-card{padding:22px;display:grid;grid-template-columns:auto 1fr;gap:15px}.device-card h2,.appointment-card h2{margin:7px 0 4px;font-size:20px}.device-card p{margin:0}.device-card small{color:var(--muted)}.device-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#eef4ff;color:var(--accent);font-size:19px;font-weight:800}.tag{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.card-actions{grid-column:1/-1;display:flex;gap:16px;border-top:1px solid var(--line);padding-top:14px;margin-top:4px;font-size:13px}.text-danger{color:var(--bad)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:15px 17px;border-bottom:1px solid var(--line);font-size:14px}th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#fafbfd}tr:last-child td{border-bottom:0}.clickable{cursor:pointer}.clickable:hover td{background:#fafcff}.block{display:block;color:var(--muted);margin-top:3px}.right{text-align:right}.prose{white-space:pre-wrap;color:#344054;line-height:1.7;background:#fafbfd;border:1px solid var(--line);border-radius:12px;padding:17px}.details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.details.vertical{grid-template-columns:1fr}.details div{background:#f8fafc;border-radius:11px;padding:12px}.details dt{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.details dd{margin:5px 0 0}.file-list{display:grid;gap:8px}.file-list a{display:flex;justify-content:space-between;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.callout{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#edf5ff;border:1px solid #cfe2ff;border-radius:14px;padding:16px 18px;margin-top:22px}.callout.simple{margin:0 0 20px}.callout p{margin:3px 0;color:#55708d;font-size:13px}.messages{display:grid;gap:12px;margin:16px 0}.message{border:1px solid var(--line);border-radius:13px;padding:14px;background:#f9fafb}.message.admin{background:#edf5ff;border-color:#cfe2ff}.message>div{display:flex;justify-content:space-between;gap:12px}.message small{color:var(--muted)}.message p{white-space:pre-wrap;margin:9px 0 0}.message-form{border-top:1px solid var(--line);padding-top:18px}.appointment-card{padding:20px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}.date-block{display:grid;place-items:center;width:68px;height:68px;border-radius:16px;background:#f0f5ff}.date-block strong{font-size:24px;line-height:1}.date-block span{font-size:11px;color:var(--muted)}.appointment-main p{margin:3px 0;color:var(--muted)}.appointment-actions{align-self:end}.paid-mark{color:var(--good);font-weight:700}.danger-zone{margin-top:20px;border:1px solid #f1c2bf;background:#fff;border-radius:16px;padding:20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.danger-zone h2{margin:0 0 4px;font-size:18px}.danger-zone p{margin:0;color:var(--muted)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips span{border:1px solid var(--line);background:#f8fafc;border-radius:999px;padding:7px 10px;font-size:13px}.search,.inline-form{display:flex;gap:8px;align-items:center}.search input{min-width:280px}.inline-form select{min-width:115px}.site-footer{background:#fff;border-top:1px solid var(--line);padding:30px 0;color:var(--muted);font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:24px}.footer-inner strong{color:var(--ink)}.footer-inner a{color:var(--muted)}
@media (max-width:980px){.menu-toggle{display:block}.nav{display:none;position:absolute;left:18px;right:18px;top:68px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:15px;align-items:stretch;flex-direction:column}.menu-open .nav{display:flex}.hero-grid,.content-grid{grid-template-columns:1fr}.hero-card{max-width:680px}.feature-grid{grid-template-columns:repeat(2,1fr)}.card-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}} 
@media (max-width:680px){.shell{width:min(100% - 24px,1180px)}.hero{padding:54px 0}.hero h1{font-size:42px}.lead{font-size:17px}.hero-grid{gap:38px}.mini-grid{grid-template-columns:1fr}.feature-grid,.card-grid,.stats-grid,.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.section{padding:54px 0}.page-head{padding:34px 0 24px}.page-head h1{font-size:34px}.split{align-items:flex-start;flex-direction:column}.split>.button{width:100%}.auth-card{padding:25px 20px}.auth-links{flex-direction:column}.appointment-card{grid-template-columns:auto 1fr}.appointment-actions{grid-column:1/-1}.details{grid-template-columns:1fr}.danger-zone,.footer-inner{flex-direction:column;align-items:flex-start}.search{width:100%;flex-direction:column}.search input,.search .button{width:100%;min-width:0}th,td{padding:13px 12px}.site-footer{padding-bottom:50px}}

/* ==========================================================
   CB06 V2 — HARMONISATION AVEC LE SITE HTML PRINCIPAL
   ========================================================== */
:root{
  --ink:#041333;
  --muted:#5f6f84;
  --line:#dce5f1;
  --soft:#f3f7fd;
  --panel:#ffffff;
  --brand:#041333;
  --accent:#075fec;
  --accent-dark:#064fc4;
  --yellow:#ffd21f;
  --good:#087f5b;
  --warn:#a35b00;
  --bad:#b42318;
  --radius:24px;
  --shadow:0 24px 70px rgba(4,19,51,.10);
}
body{background:#f4f7fb;color:var(--ink);font-weight:400}
body.portal-menu-open{overflow:hidden}
.shell{width:min(1180px,calc(100% - 36px))}
a{color:var(--accent)}

.portal-header{position:sticky;top:0;z-index:1000;background:#fff;box-shadow:0 12px 35px rgba(4,19,51,.07)}
.portal-topbar{background:#041333;color:#fff}
.portal-topbar-inner{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;letter-spacing:.01em}
.portal-topbar a{color:#ffd21f;font-weight:700}
.portal-mainbar{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.portal-brand{display:flex;align-items:center;gap:15px;color:#041333;min-width:0}
.portal-logo-wrap{width:154px;max-width:36vw;display:flex;align-items:center;flex:0 0 auto}
.portal-logo-wrap img{display:block;width:100%;height:auto;max-height:58px;object-fit:contain;object-position:left center}
.portal-brand-copy{display:grid;gap:5px;min-width:0;border-left:1px solid #dce5f1;padding-left:15px}
.portal-brand-title{font-size:15px;line-height:1.15;font-weight:700;color:#041333}
.portal-brand-subtitle{font-size:12px;line-height:1.2;color:#68788e}
.portal-main-actions{display:flex;align-items:center;gap:10px}
.portal-site-link,.portal-phone,.portal-menu-button{min-height:44px;border-radius:999px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe4ef;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.portal-site-link{background:#fff;color:#041333}
.portal-site-link:hover{border-color:#075fec;color:#075fec}
.portal-phone{background:#075fec;border-color:#075fec;color:#fff;box-shadow:0 12px 28px rgba(7,95,236,.22)}
.portal-phone:hover{background:#064fc4;color:#fff}
.portal-menu-button{display:none;background:#041333;border-color:#041333;color:#fff;cursor:pointer;gap:7px}
.portal-navline{background:#fff;border-top:1px solid #edf1f7}
.portal-nav{min-height:54px;display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}
.portal-nav::-webkit-scrollbar{display:none}
.portal-nav>a,.portal-logout{min-height:38px;padding:0 13px;border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#253650;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.portal-nav>a:hover,.portal-logout:hover{background:#eef5ff;color:#075fec}
.portal-nav-cta{margin-left:auto!important;background:#ffd21f!important;color:#041333!important;padding-inline:17px!important}
.portal-nav-cta:hover{background:#f3c600!important;color:#041333!important}
.portal-nav-form{display:flex;margin-left:auto}
.portal-logout{color:#7c2630}

.portal-footer{margin-top:0;background:#041333;color:rgba(255,255,255,.72);padding:54px 0 0}
.portal-footer-grid{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:42px}
.portal-footer-grid>div{display:flex;flex-direction:column;align-items:flex-start}
.portal-footer-brand{font-size:34px;line-height:1;font-weight:800;letter-spacing:-.055em;color:#fff;margin-bottom:16px}
.portal-footer-brand span{color:#ffd21f}
.portal-footer p{margin:0 0 7px;font-size:13px;line-height:1.5}
.portal-footer strong{color:#fff;font-size:14px;margin-bottom:15px}
.portal-footer a{color:rgba(255,255,255,.72);font-size:13px;margin:0 0 9px}
.portal-footer a:hover{color:#ffd21f}
.portal-footer-bottom{margin-top:38px;min-height:62px;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}

.portal-hero{position:relative;overflow:hidden;padding:72px 0 68px;background:
  radial-gradient(circle at 88% 8%,rgba(255,210,31,.28),transparent 27%),
  radial-gradient(circle at 5% 95%,rgba(7,95,236,.14),transparent 30%),
  linear-gradient(135deg,#ffffff 0%,#f6f9ff 52%,#eaf2ff 100%)}
.portal-hero:after{content:"";position:absolute;right:-110px;bottom:-180px;width:430px;height:430px;border-radius:50%;border:70px solid rgba(7,95,236,.045);pointer-events:none}
.portal-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);gap:58px;align-items:center}
.portal-label{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:8px 13px;border-radius:999px;background:#ffd21f;color:#041333;font-size:12px;line-height:1;font-weight:700;text-transform:uppercase;letter-spacing:.055em}
.portal-label-light{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.18)}
.portal-hero h1{margin:18px 0 20px;max-width:780px;color:#041333;font-size:clamp(42px,5.7vw,68px);line-height:.98;letter-spacing:-.055em;font-weight:760}
.portal-lead{max-width:730px;margin:0;color:#536173;font-size:18px;line-height:1.58}
.portal-hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:28px}
.portal-hero-actions .button{min-height:68px;border-radius:19px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:12px 16px;line-height:1.15}
.portal-hero-actions .button span{font-size:11px;font-weight:500;opacity:.75}
.portal-hero-actions .button strong{margin-top:5px;font-size:14px;font-weight:750}
.portal-primary{background:#075fec;border-color:#075fec;color:#fff;box-shadow:0 15px 32px rgba(7,95,236,.22)}
.portal-primary:hover{background:#064fc4;border-color:#064fc4;color:#fff}
.portal-dark{background:#041333;border-color:#041333;color:#fff}
.portal-dark:hover{background:#0a2148;border-color:#0a2148;color:#fff}
.portal-light{background:#fff;border-color:#dce5f1;color:#041333}
.portal-light:hover{background:#f8fbff;border-color:#b9cbea;color:#075fec}
.portal-yellow{background:#ffd21f;border-color:#ffd21f;color:#041333}
.portal-yellow:hover{background:#f3c600;border-color:#f3c600;color:#041333}
.portal-trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.portal-trust-row span{border:1px solid rgba(7,95,236,.12);background:rgba(255,255,255,.78);border-radius:999px;padding:7px 10px;color:#394a61;font-size:12px}
.portal-dashboard-preview{position:relative;border-radius:31px;padding:1px;background:linear-gradient(135deg,rgba(7,95,236,.5),rgba(255,210,31,.72),rgba(4,19,51,.22));box-shadow:0 28px 80px rgba(4,19,51,.16)}
.portal-dashboard-preview:before{content:"";position:absolute;inset:14px -14px -14px 14px;border-radius:30px;background:#041333;z-index:-1;opacity:.08}
.portal-dashboard-preview>*{position:relative}
.portal-preview-top{padding:23px 24px;border-radius:30px 30px 0 0;background:#041333;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px}
.portal-preview-top div{display:grid;gap:4px}
.portal-preview-top small{color:rgba(255,255,255,.65);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.portal-preview-top strong{font-size:22px;font-weight:720}
.portal-secure-badge{border-radius:999px;background:#ffd21f;color:#041333;padding:7px 10px;font-size:11px;font-weight:750}
.portal-preview-stats{padding:18px;background:#fff;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.portal-preview-stats article{min-width:0;border-radius:17px;padding:15px;background:#f5f8fd;border:1px solid #e8eef7}
.portal-preview-stats span,.portal-preview-stats small{display:block;color:#718096;font-size:10px;line-height:1.35}
.portal-preview-stats strong{display:block;margin:5px 0;color:#041333;font-size:24px;line-height:1;font-weight:750}
.portal-preview-list{padding:0 22px 17px;background:#fff;border-radius:0 0 30px 30px}
.portal-preview-list>div{display:flex;align-items:center;gap:13px;padding:14px 3px;border-top:1px solid #e9eef5}
.portal-preview-list i{width:11px;height:11px;border-radius:50%;flex:0 0 11px;box-shadow:0 0 0 5px rgba(7,95,236,.08)}
.portal-preview-list i.is-blue{background:#075fec}
.portal-preview-list i.is-yellow{background:#f3c600;box-shadow:0 0 0 5px rgba(255,210,31,.16)}
.portal-preview-list i.is-green{background:#087f5b;box-shadow:0 0 0 5px rgba(8,127,91,.11)}
.portal-preview-list span{display:grid;gap:3px}
.portal-preview-list strong{font-size:13px;color:#041333;font-weight:680}
.portal-preview-list small{font-size:11px;color:#718096}

.portal-intro-strip{padding:24px 0;background:#fff}
.portal-intro-card{border-radius:28px;padding:25px 28px;background:#041333;color:#fff;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);gap:30px;align-items:center;box-shadow:0 20px 58px rgba(4,19,51,.13)}
.portal-intro-card span{display:block;color:#ffd21f;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.portal-intro-card h2{margin:7px 0 0;font-size:clamp(25px,3.4vw,37px);line-height:1.04;letter-spacing:-.035em;font-weight:700}
.portal-intro-card p{margin:0;color:rgba(255,255,255,.7);font-size:15px;line-height:1.55}

.portal-features{background:#fff}
.portal-section-heading{max-width:780px}
.portal-section-heading h2{color:#041333;font-weight:720}
.portal-section-heading p{margin:0;color:#637287;font-size:16px}
.portal-feature-grid{gap:16px}
.portal-feature-card{position:relative;overflow:hidden;border-radius:24px;padding:25px;border:1px solid #e2e9f3;box-shadow:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.portal-feature-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(4,19,51,.08);border-color:#c9daf5}
.portal-feature-card:after{content:"";position:absolute;right:-28px;bottom:-34px;width:100px;height:100px;border-radius:50%;background:rgba(7,95,236,.045)}
.portal-feature-card .icon{background:#eef5ff;color:#075fec;border-radius:15px;font-weight:750}
.portal-feature-card h3{color:#041333;font-weight:700}
.portal-feature-card p{color:#65758a}

.portal-how{padding:74px 0;background:linear-gradient(135deg,#041333,#075fec);color:#fff}
.portal-how-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:58px;align-items:center}
.portal-how h2{margin:17px 0 14px;font-size:clamp(34px,5vw,53px);line-height:1.02;letter-spacing:-.045em;font-weight:720}
.portal-how-copy p{margin:0 0 25px;max-width:560px;color:rgba(255,255,255,.72);font-size:16px;line-height:1.58}
.portal-steps{display:grid;gap:12px}
.portal-steps article{display:grid;grid-template-columns:52px 1fr;gap:15px;align-items:center;padding:18px;border-radius:22px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(8px)}
.portal-steps b{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#ffd21f;color:#041333;font-size:19px;font-weight:750}
.portal-steps div{display:grid;gap:5px}
.portal-steps strong{font-size:16px;font-weight:680}
.portal-steps span{color:rgba(255,255,255,.7);font-size:13px;line-height:1.45}
.portal-final-cta{padding:54px 0;background:#eef4fc}
.portal-final-card{border-radius:31px;padding:31px;background:linear-gradient(135deg,#fff,#f6f9ff);border:1px solid #dbe5f2;box-shadow:0 22px 60px rgba(4,19,51,.08);display:flex;align-items:center;justify-content:space-between;gap:32px}
.portal-final-card>div:first-child>span{color:#075fec;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.portal-final-card h2{margin:6px 0 5px;color:#041333;font-size:34px;letter-spacing:-.035em;font-weight:720}
.portal-final-card p{margin:0;color:#65758a}
.portal-final-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Pages intérieures */
.page-head{padding:42px 0 30px;background:linear-gradient(135deg,#fff,#eef5ff);border-bottom:1px solid #dce5f1}
.page-head.dark{background:linear-gradient(135deg,#041333,#075fec)}
.page-head h1{color:#041333;font-weight:720}
.page-head.dark h1{color:#fff}
.eyebrow{color:#075fec;font-weight:700}
.button{border-radius:999px;padding:12px 18px;font-weight:700;background:#075fec;border-color:#075fec}
.button:hover{background:#064fc4;border-color:#064fc4}
.button.secondary{background:#fff;color:#041333;border-color:#d6e0ec}
.button.secondary:hover{background:#f5f9ff;color:#075fec;border-color:#aac3ea}
.button.light{background:#ffd21f;color:#041333;border-color:#ffd21f}
.button.light:hover{background:#f3c600;border-color:#f3c600;color:#041333}
.button.danger{background:#fff;color:#b42318;border-color:#f0c6c2}
.card,.device-card,.appointment-card,.panel,.stat-card,.auth-card{border-color:#dfe7f1;border-radius:22px;box-shadow:0 12px 34px rgba(4,19,51,.045)}
.auth-section{background:
  radial-gradient(circle at 90% 0%,rgba(255,210,31,.20),transparent 27%),
  radial-gradient(circle at 0% 100%,rgba(7,95,236,.12),transparent 32%),
  linear-gradient(135deg,#fff,#edf4ff)}
.auth-card{border-radius:28px;padding:34px}
.auth-intro h1{color:#041333;font-weight:720}
input,select,textarea{border-color:#ccd8e7;border-radius:14px;padding:12px 13px}
input:focus,select:focus,textarea:focus{border-color:#075fec;box-shadow:0 0 0 4px rgba(7,95,236,.10)}
.icon,.device-icon{background:#eef5ff;color:#075fec}
.status{font-weight:650}
.panel-head{background:#fbfdff}
.callout{background:#eef5ff;border-color:#cfe0fb}
.message.admin{background:#eef5ff;border-color:#cfe0fb}
.date-block{background:#eef5ff}
.flash-stack{position:relative;z-index:10}

@media(max-width:1060px){
  .portal-brand-copy{display:none}
  .portal-hero-grid{grid-template-columns:1fr 420px;gap:35px}
  .portal-hero-actions{grid-template-columns:1fr 1fr}
  .portal-hero-actions .portal-light{grid-column:1/-1}
  .portal-footer-grid{grid-template-columns:1.2fr 1fr 1fr}
  .portal-footer-grid>div:last-child{grid-column:2/4}
}
@media(max-width:900px){
  .portal-topbar{display:none}
  .portal-header{position:sticky}
  .portal-mainbar{min-height:72px}
  .portal-logo-wrap{width:128px}
  .portal-site-link{display:none}
  .portal-phone{min-height:41px;padding:0 13px;font-size:12px}
  .portal-menu-button{display:inline-flex}
  .portal-navline{display:none;position:absolute;left:0;right:0;top:72px;background:rgba(4,19,51,.58);height:calc(100vh - 72px);padding:12px;backdrop-filter:blur(8px)}
  .portal-menu-open .portal-navline{display:block}
  .portal-navline .shell{width:100%}
  .portal-nav{min-height:0;max-height:calc(100vh - 96px);overflow:auto;border-radius:25px;background:#fff;padding:14px;display:grid;gap:6px;box-shadow:0 28px 80px rgba(4,19,51,.30)}
  .portal-nav>a,.portal-logout{width:100%;min-height:50px;justify-content:flex-start;padding:0 16px;border-radius:15px;font-size:14px;background:#f7f9fd}
  .portal-nav-cta{margin-left:0!important;background:#ffd21f!important}
  .portal-nav-form{margin-left:0;width:100%}
  .portal-hero{padding:52px 0}
  .portal-hero-grid,.portal-how-grid{grid-template-columns:1fr}
  .portal-dashboard-preview{max-width:680px}
  .portal-intro-card{grid-template-columns:1fr}
  .portal-footer-grid{grid-template-columns:1fr 1fr}
  .portal-footer-grid>div:last-child{grid-column:auto}
}
@media(max-width:680px){
  .shell{width:min(100% - 24px,1180px)}
  .portal-mainbar{min-height:66px}
  .portal-logo-wrap{width:108px;max-width:40vw}
  .portal-phone{width:42px;min-width:42px;padding:0;font-size:0}
  .portal-phone:before{content:"☎";font-size:17px}
  .portal-menu-button{width:46px;padding:0;font-size:18px}
  .portal-menu-button span{display:none}
  .portal-navline{top:66px;height:calc(100vh - 66px)}
  .portal-hero{padding:39px 0 45px}
  .portal-hero h1{font-size:clamp(38px,12vw,52px);letter-spacing:-.048em}
  .portal-lead{font-size:16px}
  .portal-hero-actions{grid-template-columns:1fr}
  .portal-hero-actions .portal-light{grid-column:auto}
  .portal-hero-actions .button{min-height:61px}
  .portal-preview-stats{grid-template-columns:1fr}
  .portal-dashboard-preview:before{display:none}
  .portal-intro-strip{padding:15px 0}
  .portal-intro-card{border-radius:24px;padding:21px}
  .portal-feature-grid{grid-template-columns:1fr}
  .portal-how{padding:55px 0}
  .portal-steps article{grid-template-columns:46px 1fr;padding:15px}
  .portal-steps b{width:46px;height:46px;border-radius:15px}
  .portal-final-card{align-items:flex-start;flex-direction:column;padding:24px;border-radius:25px}
  .portal-final-card h2{font-size:29px}
  .portal-final-actions{display:grid;width:100%}
  .portal-final-actions .button{width:100%}
  .portal-footer{padding-top:42px}
  .portal-footer-grid{grid-template-columns:1fr;gap:27px}
  .portal-footer-bottom{min-height:0;padding:20px 0 28px;align-items:flex-start;flex-direction:column}
  .auth-card{padding:25px 19px}
}

/* CB06 PORTAIL V4 — administration étendue et mode popup */
.portal-embed{min-height:100vh;background:transparent}
.portal-embed main{min-height:100vh}
.portal-embed .auth-section{min-height:100vh;padding:18px;background:linear-gradient(145deg,#f9fbff,#eef5ff)}
.portal-embed .auth-card{width:min(100%,720px);margin:auto;border-radius:24px;padding:25px;box-shadow:none}
.portal-embed .auth-card.wide{width:min(100%,800px)}
.portal-embed .auth-intro h1{font-size:clamp(28px,5vw,40px)}
.portal-embed .auth-links,.portal-embed .auth-foot{font-size:13px}
.embed-success{text-align:center}
.success-mark{width:68px;height:68px;margin:0 auto 16px;border-radius:22px;display:grid;place-items:center;background:#ecfdf5;color:#047857;font-size:34px;font-weight:800}
.button.yellow{background:#ffd21f;color:#041333;border-color:#ffd21f}
.quick-actions,.form-actions,.admin-inline-actions,.row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.admin-filterbar{display:grid;grid-template-columns:minmax(240px,1fr) 200px 200px auto;gap:10px;margin-bottom:14px}
.admin-filterbar input,.admin-filterbar select{min-height:46px}
.admin-stats{grid-template-columns:repeat(4,1fr)}
.admin-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.admin-shortcuts a{display:block;padding:18px;border:1px solid #dfe7f1;border-radius:18px;background:#fff;text-decoration:none;box-shadow:0 10px 30px rgba(4,19,51,.04)}
.admin-shortcuts a:hover{border-color:#a9c9fa;transform:translateY(-1px)}
.admin-shortcuts b{display:block;color:#041333;font-size:15px}
.admin-shortcuts span{display:block;margin-top:5px;color:#6f7e92;font-size:12px;line-height:1.4}
.admin-shortcuts.vertical{grid-template-columns:1fr;margin:0}
.admin-client-grid{grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr)}
.admin-inline-actions form,.row-actions form{margin:0}
.admin-details{margin-top:16px;border-top:1px solid #e5ebf4;padding-top:14px}
.admin-details summary{cursor:pointer;font-weight:700;color:#075fec;margin-bottom:14px}
.notes-list{display:grid;gap:9px;margin-top:15px}
.notes-list article{padding:13px 14px;border-radius:15px;background:#fff9dc;border:1px solid #f2df86}
.notes-list small{color:#7b6b20}
.notes-list p{margin:5px 0 0;white-space:pre-wrap}
.message.internal{background:#fff8d7;border-color:#eed876}
.message.internal strong{color:#6f5a00}
.priority{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:700;text-transform:capitalize;background:#eef2f7;color:#475569}
.priority.haute{background:#fff1e8;color:#b54708}.priority.urgente{background:#feeceb;color:#b42318}.priority.basse{background:#ecfdf5;color:#047857}
.admin-finance-row{align-items:flex-start}
.admin-finance-row .right{min-width:260px}
.documents-admin{margin-top:15px}
.top-gap{margin-top:15px}
pre{overflow:auto;padding:16px;border-radius:16px;background:#041333;color:#eaf2ff;line-height:1.55}
@media(max-width:1000px){.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-shortcuts{grid-template-columns:repeat(2,1fr)}.admin-client-grid{grid-template-columns:1fr}.admin-filterbar{grid-template-columns:1fr 1fr}.admin-filterbar input{grid-column:1/-1}}
@media(max-width:680px){.portal-embed .auth-section{padding:10px}.portal-embed .auth-card{padding:20px 15px;border-radius:20px}.admin-stats,.admin-shortcuts,.admin-filterbar{grid-template-columns:1fr}.admin-filterbar input{grid-column:auto}.quick-actions,.form-actions,.admin-inline-actions,.row-actions{align-items:stretch;flex-direction:column}.quick-actions .button,.form-actions .button,.form-actions a,.admin-inline-actions form,.admin-inline-actions button,.row-actions form,.row-actions button,.row-actions a{width:100%}.admin-finance-row .right{min-width:0;width:100%}}
