/*
 * CB06 — Espace client (web.cb06.fr/espace-client)
 * Refonte visuelle du 26/07/2026 : mêmes couleurs CB06, moins de gras,
 * moins de blocs lourds, échelle de rayons/ombres réduite et cohérente.
 * Toutes les classes ci-dessous restent identiques à l'ancienne version :
 * aucun template HTML n'a besoin d'être modifié.
 */
:root{
  --ink:#041333;
  --muted:#5f6f84;
  --line:#e3e9f2;
  --soft:#f6f8fc;
  --panel:#ffffff;
  --brand:#041333;
  --accent:#075fec;
  --accent-dark:#064fc4;
  --yellow:#ffd21f;
  --yellow-dark:#f3c600;
  --good:#0f8a5f;
  --warn:#a35b00;
  --bad:#b42318;

  /* Échelle de rayons — 4 valeurs maximum */
  --r-sm:10px;
  --r-md:14px;
  --r-lg:20px;
  --r-pill:999px;

  /* Ombres — 2 niveaux maximum, nettement plus légères qu'avant */
  --shadow-sm:0 2px 10px rgba(4,19,51,.05);
  --shadow-md:0 14px 34px rgba(4,19,51,.09);

  /* Poids de police — jamais au-dessus de 700 */
  --fw-regular:400;
  --fw-medium:500;
  --fw-semibold:600;
  --fw-title:700;
}

*{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;font-weight:var(--fw-regular)}
body.portal-menu-open{overflow:hidden}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit}
.shell{width:min(1160px,calc(100% - 36px));margin:auto}
.narrow{max-width:820px}

/* ==========================================================
   BOUTONS — un seul système, cohérent avec cb06.fr
   ========================================================== */
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1.5px solid var(--brand);background:var(--brand);color:#fff;
  border-radius:var(--r-pill);padding:12px 20px;font-weight:var(--fw-semibold);
  font-size:14px;cursor:pointer;transition:.16s ease;
}
.button:hover{background:#0a2148;border-color:#0a2148;color:#fff;transform:translateY(-1px)}
.button.secondary{background:#fff;color:var(--ink);border-color:var(--line)}
.button.secondary:hover{background:var(--soft);border-color:#c3d1e4;color:var(--ink)}
.button.light{background:#fff;color:var(--brand);border-color:#fff}
.button.light:hover{background:#f2f6fb}
.button.small{padding:8px 14px;border-radius:var(--r-md);font-size:13px}
.button.danger{background:#fff;color:var(--bad);border-color:#f2c2bf}
.button.yellow{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.button.yellow:hover{background:var(--yellow-dark);border-color:var(--yellow-dark);color:var(--ink)}
.button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.full-button{width:100%}

/* ==========================================================
   EN-TÊTE PUBLIC GÉNÉRIQUE (V1, conservé pour compatibilité,
   totalement recouvert visuellement par .portal-header ci-dessous
   sur toutes les pages réellement utilisées)
   ========================================================== */
.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:72px;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:40px;height:40px;border-radius:var(--r-md);background:var(--brand);color:#fff;font-weight:var(--fw-semibold);letter-spacing:-.03em}
.brand strong{display:block;font-size:17px;line-height:1}
.brand small{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.nav{display:flex;align-items:center;gap:16px}
.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:var(--r-sm);padding:8px 11px}

/* ==========================================================
   HERO GÉNÉRIQUE (V1, idem — recouvert par .portal-hero)
   ========================================================== */
.hero{padding:60px 0 56px;background:linear-gradient(180deg,#fff,#f6f8fb)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.eyebrow{display:inline-block;color:var(--accent);font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:var(--fw-semibold)}
.hero h1,.page-head h1,.auth-card h1{letter-spacing:-.03em;line-height:1.06;font-weight:var(--fw-title)}
.hero h1{font-size:clamp(34px,4.6vw,52px);max-width:720px;margin:16px 0 20px}
.lead{font-size:18px;color:#475467;max-width:680px;font-weight:var(--fw-regular)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.micro,.muted{color:var(--muted)}
.micro{font-size:13px;margin-top:16px}
.hero-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-md);overflow:hidden}
.preview-header{display:flex;gap:7px;padding:14px 16px;background:var(--soft);border-bottom:1px solid var(--line)}
.preview-header span{width:9px;height:9px;border-radius:50%;background:#cad3df}
.preview-body{padding:26px}
.preview-body h2{margin:0 0 18px;font-weight:var(--fw-title)}
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mini-grid div{background:#f7f9fc;border:1px solid #edf0f4;border-radius:var(--r-md);padding:14px}
.mini-grid b{display:block;font-size:21px;font-weight:var(--fw-title)}
.mini-grid span{font-size:11px;color:var(--muted)}
.preview-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}
.preview-row:last-child{border:0}
.preview-row small{display:block;color:var(--muted)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--good);box-shadow:0 0 0 4px #dff5eb}
.dot.light{background:var(--accent);box-shadow:0 0 0 4px #e5efff}

/* ==========================================================
   SECTIONS DE CONTENU GÉNÉRIQUES
   ========================================================== */
.section{padding:64px 0}
.section.compact{padding:28px 0 58px}
.section-heading{max-width:680px;margin-bottom:24px}
.section-heading h2{font-size:32px;letter-spacing:-.03em;margin:8px 0;font-weight:var(--fw-title)}
.feature-grid,.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card,.device-card,.appointment-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-sm)}
.card{padding:22px}
.card h3{font-size:18px;margin:16px 0 6px;font-weight:var(--fw-semibold)}
.card p{margin:0;color:var(--muted)}
.icon{display:grid;place-items:center;width:42px;height:42px;border-radius:var(--r-md);background:#eef5ff;color:var(--accent);font-weight:var(--fw-semibold)}

/* Page intérieure : en-tête de page */
.page-head{padding:38px 0 26px;background:linear-gradient(135deg,#fff,#eef5ff);border-bottom:1px solid var(--line)}
.page-head.dark{background:linear-gradient(135deg,#041333,#0a2f6b)}
.page-head h1{font-size:36px;margin:8px 0 6px;font-weight:var(--fw-title)}
.page-head h1{color:var(--ink)}
.page-head.dark h1{color:#fff}
.page-head p{margin:0;color:var(--muted)}
.page-head.dark p{color:rgba(255,255,255,.72)}
.split{display:flex;align-items:center;justify-content:space-between;gap:24px}

/* ==========================================================
   AUTHENTIFICATION — connexion / inscription / mot de passe
   ========================================================== */
.auth-section{
  min-height:calc(100vh - 154px);display:grid;place-items:center;padding:48px 18px;
  background:radial-gradient(circle at 12% 8%,rgba(7,95,236,.06),transparent 34%),var(--soft);
}
.auth-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:32px;box-shadow:var(--shadow-md)}
.auth-card.wide{width:min(720px,100%)}
.auth-card.center{text-align:center}
.auth-intro{margin-bottom:22px}
.auth-intro h1{font-size:30px;margin:8px 0;font-weight:var(--fw-title)}
.auth-intro p,.auth-card.center p{color:var(--muted)}
.auth-foot{text-align:center;color:var(--muted);font-size:14px;margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line)}
.auth-links{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-top:16px}
.success-icon,.error-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;margin:0 auto 18px;font-size:24px;font-weight:var(--fw-semibold)}
.success-icon{background:#dcfce7;color:var(--good)}
.error-icon{background:#fee4e2;color:var(--bad)}

/* ==========================================================
   FORMULAIRES
   ========================================================== */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.full{grid-column:1/-1}
.stack{display:grid;gap:16px}
label{display:grid;gap:6px;color:#344054;font-size:14px;font-weight:var(--fw-medium)}
label small,.optional{color:var(--muted);font-size:12px;font-weight:var(--fw-regular)}
input,select,textarea{
  width:100%;border:1px solid #d3dce7;border-radius:var(--r-sm);background:#fff;
  padding:11px 13px;color:var(--ink);outline:none;font-weight:var(--fw-regular);
}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(7,95,236,.10)}
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:var(--r-md);padding:12px 16px;margin-bottom:18px;color:#912018}
.error-list p{margin:4px 0}
.flash-stack{padding-top:16px;position:relative;z-index:10}
.flash{padding:12px 16px;border-radius:var(--r-md);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)}

/* ==========================================================
   TABLEAU DE BORD — stats, panneaux, listes
   ========================================================== */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.stat-card{display:grid;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:19px;color:var(--ink)}
.stat-card span,.stat-card small{color:var(--muted)}
.stat-card strong{font-size:27px;letter-spacing:-.03em;margin:5px 0;font-weight:var(--fw-title)}
.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.panel{overflow:hidden}
.panel.padded{padding:22px}
.panel+.panel{margin-top:18px}
.panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);background:#fbfdff}
.panel-head h2,.panel h2{margin:0 0 3px;font-size:18px;font-weight:var(--fw-semibold)}
.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:16px;padding:15px 20px;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:2px}
.empty{text-align:center;padding:36px 22px}
.empty h2{margin-top:0;font-weight:var(--fw-semibold)}
.empty p{color:var(--muted)}
.status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:var(--r-pill);padding:5px 10px;font-size:11px;font-weight:var(--fw-semibold);background:#eef2f6;color:#475467}
.status.large{font-size:13px;padding:7px 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}
.client-timeline{list-style:none;margin:18px 0;padding:0;border-left:3px solid #d9e5dc}
.client-timeline li{position:relative;padding:0 0 18px 22px;display:flex;flex-direction:column;gap:2px}
.client-timeline li::before{content:"";position:absolute;left:-8px;top:4px;width:13px;height:13px;border-radius:50%;background:#188653;border:2px solid #fff}
.client-timeline small{color:var(--muted,#68736d)}
.status.annule{background:#fee9e7;color:#9b2c24}

.card-grid{grid-template-columns:repeat(3,1fr)}
.device-card{padding:20px;display:grid;grid-template-columns:auto 1fr;gap:14px}
.device-card h2,.appointment-card h2{margin:6px 0 4px;font-size:18px;font-weight:var(--fw-semibold)}
.device-card p{margin:0}
.device-card small{color:var(--muted)}
.device-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:var(--r-md);background:#eef5ff;color:var(--accent);font-size:18px;font-weight:var(--fw-semibold)}
.tag{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.card-actions{grid-column:1/-1;display:flex;gap:14px;border-top:1px solid var(--line);padding-top:13px;margin-top:3px;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:14px 16px;border-bottom:1px solid var(--line);font-size:14px}
th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:#fafbfd;font-weight:var(--fw-semibold)}
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:var(--r-md);padding:16px}
.details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.details.vertical{grid-template-columns:1fr}
.details div{background:#f8fafc;border-radius:var(--r-sm);padding:12px}
.details dt{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.details dd{margin:4px 0 0}
.file-list{display:grid;gap:8px}
.file-list a{display:flex;justify-content:space-between;border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 12px}
.callout{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#eef5ff;border:1px solid #cfe2ff;border-radius:var(--r-md);padding:15px 17px;margin-top:20px}
.callout.simple{margin:0 0 18px}
.callout p{margin:3px 0;color:#55708d;font-size:13px}
.messages{display:grid;gap:11px;margin:15px 0}
.message{border:1px solid var(--line);border-radius:var(--r-md);padding:13px;background:#f9fafb}
.message.admin{background:#eef5ff;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:8px 0 0}
.message-form{border-top:1px solid var(--line);padding-top:16px}
.appointment-card{padding:18px;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}
.date-block{display:grid;place-items:center;width:64px;height:64px;border-radius:var(--r-md);background:#eef5ff}
.date-block strong{font-size:22px;line-height:1;font-weight:var(--fw-title)}
.date-block span{font-size:11px;color:var(--muted)}
.appointment-main p{margin:3px 0;color:var(--muted)}
.appointment-actions{align-self:end}
.appointment-client-actions{display:grid;gap:9px;min-width:230px}
.appointment-client-actions details{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff}
.appointment-client-actions summary{cursor:pointer;font-weight:600}
.compact-form{margin-top:10px;gap:9px}
.paid-mark{color:var(--good);font-weight:var(--fw-semibold)}
.danger-zone{margin-top:18px;border:1px solid #f1c2bf;background:#fff;border-radius:var(--r-md);padding:18px;display:flex;justify-content:space-between;gap:18px;align-items:center}
.danger-zone h2{margin:0 0 3px;font-size:17px;font-weight:var(--fw-semibold)}
.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:var(--r-pill);padding:7px 11px;font-size:13px}
.search,.inline-form{display:flex;gap:8px;align-items:center}
.search input{min-width:260px}
.inline-form select{min-width:110px}

/* Ancien pied de page générique (V1) — non utilisé quand .portal-footer est présent */
.site-footer{background:#fff;border-top:1px solid var(--line);padding:28px 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:64px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-md);padding:14px;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,1160px)}
  .hero{padding:44px 0}
  .hero h1{font-size:38px}
  .lead{font-size:16px}
  .hero-grid{gap:32px}
  .mini-grid{grid-template-columns:1fr}
  .feature-grid,.card-grid,.stats-grid,.form-grid{grid-template-columns:1fr}
  .full{grid-column:auto}
  .section{padding:44px 0}
  .page-head{padding:28px 0 22px}
  .page-head h1{font-size:29px}
  .split{align-items:flex-start;flex-direction:column}
  .split>.button{width:100%}
  .auth-card{padding:24px 19px}
  .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:12px 11px}
  .site-footer{padding-bottom:46px}
}

/* ==========================================================
   PORTAIL CB06 — header, hero, footer propres à web.cb06.fr/espace-client
   ========================================================== */
.portal-header{position:sticky;top:0;z-index:1000;background:#fff;box-shadow:0 8px 24px rgba(4,19,51,.06)}
.portal-topbar{background:var(--ink);color:#fff}
.portal-topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}
.portal-topbar a{color:var(--yellow);font-weight:var(--fw-semibold)}
.portal-mainbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.portal-brand{display:flex;align-items:center;gap:14px;color:var(--ink);min-width:0}
.portal-logo-wrap{width:148px;max-width:36vw;display:flex;align-items:center;flex:0 0 auto}
.portal-logo-wrap img{display:block;width:100%;height:auto;max-height:52px;object-fit:contain;object-position:left center}
.portal-brand-copy{display:grid;gap:4px;min-width:0;border-left:1px solid var(--line);padding-left:14px}
.portal-brand-title{font-size:14px;line-height:1.15;font-weight:var(--fw-semibold);color:var(--ink)}
.portal-brand-subtitle{font-size:12px;line-height:1.2;color:var(--muted)}
.portal-main-actions{display:flex;align-items:center;gap:10px}
.portal-site-link,.portal-phone,.portal-menu-button{min-height:42px;border-radius:var(--r-pill);padding:0 16px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);font-size:13px;font-weight:var(--fw-semibold);text-decoration:none;white-space:nowrap}
.portal-site-link{background:#fff;color:var(--ink)}
.portal-site-link:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.portal-phone{background:var(--accent);border-color:var(--accent);color:#fff}
.portal-phone:hover{background:var(--accent-dark);color:#fff;text-decoration:none}
.portal-menu-button{display:none;background:var(--ink);border-color:var(--ink);color:#fff;cursor:pointer;gap:7px}
.portal-navline{background:#fff;border-top:1px solid #eef1f6}
.portal-nav{min-height:52px;display:flex;align-items:center;gap:2px;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:var(--r-md);display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#253650;font-size:13px;font-weight:var(--fw-medium);white-space:nowrap;cursor:pointer;text-decoration:none}
.portal-nav>a:hover,.portal-logout:hover{background:#eef5ff;color:var(--accent);text-decoration:none}
.portal-nav-cta{margin-left:auto!important;background:var(--yellow)!important;color:var(--ink)!important;padding-inline:16px!important;font-weight:var(--fw-semibold)!important}
.portal-nav-cta:hover{background:var(--yellow-dark)!important;color:var(--ink)!important}
.portal-nav-form{display:flex;margin-left:auto}
.portal-logout{color:#7c2630}

.portal-footer{margin-top:0;background:var(--ink);color:rgba(255,255,255,.72);padding:48px 0 0}
.portal-footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:36px}
.portal-footer-grid>div{display:flex;flex-direction:column;align-items:flex-start}
.portal-footer-brand{font-size:30px;line-height:1;font-weight:var(--fw-title);letter-spacing:-.04em;color:#fff;margin-bottom:14px}
.portal-footer-brand span{color:var(--yellow)}
.portal-footer p{margin:0 0 7px;font-size:13px;line-height:1.5}
.portal-footer strong{color:#fff;font-size:13px;margin-bottom:13px;font-weight:var(--fw-semibold)}
.portal-footer a{color:rgba(255,255,255,.72);font-size:13px;margin:0 0 9px}
.portal-footer a:hover{color:var(--yellow)}
.portal-footer-bottom{margin-top:34px;min-height:58px;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}

/* ---- Hero ---- */
.portal-hero{position:relative;overflow:hidden;padding:58px 0 54px;background:
  radial-gradient(circle at 90% 5%,rgba(255,210,31,.16),transparent 30%),
  radial-gradient(circle at 4% 96%,rgba(7,95,236,.10),transparent 32%),
  linear-gradient(135deg,#ffffff 0%,#f7f9ff 55%,#eef4ff 100%)}
.portal-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(400px,.95fr);gap:48px;align-items:center}
.portal-label{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:7px 13px;border-radius:var(--r-pill);background:var(--yellow);color:var(--ink);font-size:12px;line-height:1;font-weight:var(--fw-semibold);text-transform:uppercase;letter-spacing:.04em}
.portal-label-light{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.18)}
.portal-hero h1{margin:16px 0 18px;max-width:680px;color:var(--ink);font-size:clamp(34px,4.6vw,50px);line-height:1.05;letter-spacing:-.03em;font-weight:var(--fw-title)}
.portal-lead{max-width:640px;margin:0;color:#536173;font-size:17px;line-height:1.6;font-weight:var(--fw-regular)}
.portal-hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px}
.portal-hero-actions .button{min-height:56px;border-radius:var(--r-md);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:10px 15px;line-height:1.15}
.portal-hero-actions .button span{font-size:11px;font-weight:var(--fw-regular);opacity:.75}
.portal-hero-actions .button strong{margin-top:4px;font-size:14px;font-weight:var(--fw-semibold)}
.portal-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.portal-primary:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.portal-dark{background:var(--ink);border-color:var(--ink);color:#fff}
.portal-dark:hover{background:#0a2148;border-color:#0a2148;color:#fff}
.portal-light{background:#fff;border-color:var(--line);color:var(--ink)}
.portal-light:hover{background:#f8fbff;border-color:#b9cbea;color:var(--accent)}
.portal-yellow{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.portal-yellow:hover{background:var(--yellow-dark);border-color:var(--yellow-dark);color:var(--ink)}
.portal-trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.portal-trust-row span{border:1px solid rgba(7,95,236,.12);background:rgba(255,255,255,.78);border-radius:var(--r-pill);padding:6px 10px;color:#394a61;font-size:12px}

/* ---- Carte d'aperçu du hero ---- */
.portal-dashboard-preview{position:relative;border-radius:var(--r-lg);padding:1px;background:linear-gradient(135deg,rgba(7,95,236,.35),rgba(255,210,31,.5),rgba(4,19,51,.15));box-shadow:var(--shadow-md)}
.portal-dashboard-preview>*{position:relative}
.portal-preview-top{padding:20px 22px;border-radius:calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;background:var(--ink);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:18px}
.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:.06em}
.portal-preview-top strong{font-size:20px;font-weight:var(--fw-semibold)}
.portal-secure-badge{border-radius:var(--r-pill);background:var(--yellow);color:var(--ink);padding:6px 10px;font-size:11px;font-weight:var(--fw-semibold)}
.portal-preview-stats{padding:16px;background:#fff;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.portal-preview-stats article{min-width:0;border-radius:var(--r-md);padding:14px;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:var(--ink);font-size:22px;line-height:1;font-weight:var(--fw-semibold)}
.portal-preview-list{padding:0 20px 16px;background:#fff;border-radius:0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px)}
.portal-preview-list>div{display:flex;align-items:center;gap:12px;padding:13px 2px;border-top:1px solid #e9eef5}
.portal-preview-list i{width:10px;height:10px;border-radius:50%;flex:0 0 10px;box-shadow:0 0 0 4px rgba(7,95,236,.08)}
.portal-preview-list i.is-blue{background:var(--accent)}
.portal-preview-list i.is-yellow{background:var(--yellow-dark);box-shadow:0 0 0 4px rgba(255,210,31,.14)}
.portal-preview-list i.is-green{background:var(--good);box-shadow:0 0 0 4px rgba(15,138,95,.10)}
.portal-preview-list span{display:grid;gap:3px}
.portal-preview-list strong{font-size:13px;color:var(--ink);font-weight:var(--fw-semibold)}
.portal-preview-list small{font-size:11px;color:#718096}

/* ---- Bandeau intro / sections de présentation ---- */
.portal-intro-strip{padding:20px 0;background:#fff}
.portal-intro-card{border-radius:var(--r-lg);padding:22px 26px;background:var(--ink);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);gap:28px;align-items:center;box-shadow:var(--shadow-md)}
.portal-intro-card span{display:block;color:var(--yellow);font-size:11px;font-weight:var(--fw-semibold);text-transform:uppercase;letter-spacing:.06em}
.portal-intro-card h2{margin:6px 0 0;font-size:clamp(23px,3vw,32px);line-height:1.08;letter-spacing:-.02em;font-weight:var(--fw-title)}
.portal-intro-card p{margin:0;color:rgba(255,255,255,.72);font-size:14px;line-height:1.55}

.portal-features{background:#fff}
.portal-section-heading{max-width:760px}
.portal-section-heading h2{color:var(--ink);font-weight:var(--fw-title)}
.portal-section-heading p{margin:0;color:#637287;font-size:16px}
.portal-feature-grid{gap:14px}
.portal-feature-card{position:relative;overflow:hidden;border-radius:var(--r-lg);padding:22px;border:1px solid var(--line);box-shadow:none;transition:transform .18s,box-shadow .18s,border-color .18s}
.portal-feature-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:#c9daf5}
.portal-feature-card .icon{background:#eef5ff;color:var(--accent);border-radius:var(--r-md);font-weight:var(--fw-semibold)}
.portal-feature-card h3{color:var(--ink);font-weight:var(--fw-semibold)}
.portal-feature-card p{color:#65758a}

.portal-how{padding:64px 0;background:linear-gradient(135deg,#041333,#0a3a86);color:#fff}
.portal-how-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;align-items:center}
.portal-how h2{margin:14px 0 12px;font-size:clamp(28px,4vw,44px);line-height:1.08;letter-spacing:-.03em;font-weight:var(--fw-title)}
.portal-how-copy p{margin:0 0 22px;max-width:540px;color:rgba(255,255,255,.72);font-size:15px;line-height:1.58}
.portal-steps{display:grid;gap:11px}
.portal-steps article{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:center;padding:16px;border-radius:var(--r-lg);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.portal-steps b{width:48px;height:48px;border-radius:var(--r-md);display:grid;place-items:center;background:var(--yellow);color:var(--ink);font-size:17px;font-weight:var(--fw-semibold)}
.portal-steps div{display:grid;gap:4px}
.portal-steps strong{font-size:15px;font-weight:var(--fw-semibold)}
.portal-steps span{color:rgba(255,255,255,.7);font-size:13px;line-height:1.45}

.portal-final-cta{padding:48px 0;background:#eef4fc}
.portal-final-card{border-radius:var(--r-lg);padding:28px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:space-between;gap:28px}
.portal-final-card>div:first-child>span{color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:var(--fw-semibold)}
.portal-final-card h2{margin:6px 0 5px;color:var(--ink);font-size:30px;letter-spacing:-.02em;font-weight:var(--fw-title)}
.portal-final-card p{margin:0;color:#65758a}
.portal-final-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ---- Overrides d'harmonisation pour classes génériques réutilisées ---- */
.eyebrow{color:var(--accent);font-weight:var(--fw-semibold)}
.card,.device-card,.appointment-card,.panel,.stat-card,.auth-card{border-color:var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-sm)}
.auth-section{background:radial-gradient(circle at 90% 0%,rgba(255,210,31,.10),transparent 28%),radial-gradient(circle at 0% 100%,rgba(7,95,236,.08),transparent 32%),var(--soft)}
.icon,.device-icon{background:#eef5ff;color:var(--accent)}
.panel-head{background:#fbfdff}
.callout{background:#eef5ff;border-color:#cfe0fb}
.message.admin{background:#eef5ff;border-color:#cfe0fb}
.date-block{background:#eef5ff}

@media(max-width:1060px){
  .portal-brand-copy{display:none}
  .portal-hero-grid{grid-template-columns:1fr 400px;gap:32px}
  .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-mainbar{min-height:68px}
  .portal-logo-wrap{width:124px}
  .portal-site-link{display:none}
  .portal-phone{min-height:40px;padding:0 13px;font-size:12px}
  .portal-menu-button{display:inline-flex}
  .portal-navline{display:none;position:absolute;left:0;right:0;top:68px;background:rgba(4,19,51,.55);height:calc(100vh - 68px);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 - 92px);overflow:auto;border-radius:var(--r-lg);background:#fff;padding:12px;display:grid;gap:6px;box-shadow:var(--shadow-md)}
  .portal-nav>a,.portal-logout{width:100%;min-height:48px;justify-content:flex-start;padding:0 15px;border-radius:var(--r-md);font-size:14px;background:#f7f9fd}
  .portal-nav-cta{margin-left:0!important;background:var(--yellow)!important}
  .portal-nav-form{margin-left:0;width:100%}
  .portal-hero{padding:44px 0}
  .portal-hero-grid,.portal-how-grid{grid-template-columns:1fr}
  .portal-dashboard-preview{max-width:640px}
  .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,1160px)}
  .portal-mainbar{min-height:62px}
  .portal-logo-wrap{width:104px;max-width:40vw}
  .portal-phone{width:40px;min-width:40px;padding:0;font-size:0}
  .portal-phone:before{content:"☎";font-size:16px}
  .portal-menu-button{width:44px;padding:0;font-size:17px}
  .portal-menu-button span{display:none}
  .portal-navline{top:62px;height:calc(100vh - 62px)}
  .portal-hero{padding:34px 0 38px}
  .portal-hero h1{font-size:clamp(32px,11vw,42px);letter-spacing:-.03em}
  .portal-lead{font-size:15px}
  .portal-hero-actions{grid-template-columns:1fr}
  .portal-hero-actions .portal-light{grid-column:auto}
  .portal-hero-actions .button{min-height:52px}
  .portal-preview-stats{grid-template-columns:1fr}
  .portal-intro-strip{padding:14px 0}
  .portal-intro-card{border-radius:var(--r-lg);padding:20px}
  .portal-feature-grid{grid-template-columns:1fr}
  .portal-how{padding:44px 0}
  .portal-steps article{grid-template-columns:44px 1fr;padding:14px}
  .portal-steps b{width:44px;height:44px;border-radius:var(--r-sm)}
  .portal-final-card{align-items:flex-start;flex-direction:column;padding:22px;border-radius:var(--r-lg)}
  .portal-final-card h2{font-size:26px}
  .portal-final-actions{display:grid;width:100%}
  .portal-final-actions .button{width:100%}
  .portal-footer{padding-top:36px}
  .portal-footer-grid{grid-template-columns:1fr;gap:24px}
  .portal-footer-bottom{min-height:0;padding:18px 0 26px;align-items:flex-start;flex-direction:column}
  .auth-card{padding:24px 18px}
}

/* ==========================================================
   MODE POPUP (iframe embarquée depuis cb06.fr)
   ========================================================== */
.portal-embed{min-height:100vh;background:transparent}
.portal-embed main{min-height:100vh}
.portal-embed .auth-section{min-height:100vh;padding:20px;background:#fff}
.portal-embed .auth-card{width:min(100%,680px);margin:auto;border-radius:var(--r-md);padding:0;box-shadow:none;border:0}
.portal-embed .auth-card.wide{width:min(100%,760px)}
.portal-embed .auth-intro h1{font-size:clamp(24px,4.6vw,32px)}
.portal-embed .auth-links,.portal-embed .auth-foot{font-size:13px}
.embed-success{text-align:center}
.success-mark{width:60px;height:60px;margin:0 auto 15px;border-radius:var(--r-md);display:grid;place-items:center;background:#ecfdf5;color:#047857;font-size:30px;font-weight:var(--fw-semibold)}

/* ==========================================================
   ADMINISTRATION — même échelle, allégée
   ========================================================== */
.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:44px}
.admin-stats{grid-template-columns:repeat(4,1fr)}
.admin-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}
.admin-shortcuts a{display:block;padding:16px;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;text-decoration:none;box-shadow:var(--shadow-sm)}
.admin-shortcuts a:hover{border-color:#a9c9fa;transform:translateY(-1px)}
.admin-shortcuts b{display:block;color:var(--ink);font-size:14px;font-weight:var(--fw-semibold)}
.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:15px;border-top:1px solid #e5ebf4;padding-top:13px}
.admin-details summary{cursor:pointer;font-weight:var(--fw-semibold);color:var(--accent);margin-bottom:13px}
.notes-list{display:grid;gap:9px;margin-top:14px}
.notes-list article{padding:12px 13px;border-radius:var(--r-md);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:5px 9px;border-radius:var(--r-pill);font-size:11px;font-weight:var(--fw-semibold);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:14px}
.top-gap{margin-top:14px}
pre{overflow:auto;padding:15px;border-radius:var(--r-md);background:var(--ink);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:14px}
  .portal-embed .auth-card{padding:0;border-radius:var(--r-sm)}
  .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%}
}

/* ==========================================================
   TABLEAU DE BORD — graphique de chiffre d'affaires (barres CSS)
   ========================================================== */
.revenue-chart{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;align-items:end;height:180px;padding-top:10px}
.revenue-bar-wrap{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}
.revenue-bar{width:100%;max-width:44px;min-height:3px;border-radius:var(--r-sm) var(--r-sm) 0 0;background:linear-gradient(180deg,var(--accent),var(--accent-dark));align-self:center}
.revenue-amount{font-size:12px;font-weight:var(--fw-semibold);color:var(--ink)}
.revenue-label{font-size:11px;color:var(--muted);text-transform:capitalize}
@media(max-width:680px){
  .revenue-chart{grid-template-columns:repeat(6,1fr);gap:6px;height:140px}
  .revenue-amount{font-size:10px}
}

/* ==========================================================
   CALENDRIER ADMIN — vue mensuelle des rendez-vous
   ========================================================== */
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.calendar-weekday{background:#fbfdff;padding:10px;text-align:center;font-size:12px;font-weight:var(--fw-semibold);color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.calendar-cell{background:#fff;min-height:110px;padding:8px;display:flex;flex-direction:column;gap:6px}
.calendar-cell.is-empty{background:#fafbfd}
.calendar-cell.is-today{background:#eef5ff}
.calendar-daynum{font-size:13px;font-weight:var(--fw-semibold);color:var(--ink)}
.calendar-appointments{display:flex;flex-direction:column;gap:4px;overflow:hidden}
.calendar-appt{display:flex;flex-direction:column;gap:1px;padding:4px 6px;border-radius:var(--r-sm);background:#eef5ff;text-decoration:none;font-size:11px;line-height:1.3}
.calendar-appt:hover{background:#dfebff;text-decoration:none}
.calendar-appt-time{font-weight:var(--fw-semibold);color:var(--accent)}
.calendar-appt-name{color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-appt.status-planifiee{background:#f3e8ff}
.calendar-appt.status-planifiee .calendar-appt-time{color:#7135a5}
@media(max-width:900px){
  .calendar-grid{grid-template-columns:repeat(7,minmax(80px,1fr));overflow-x:auto}
  .calendar-cell{min-height:90px}
}
/* Portail commercial CB06 v5 */
.portal-priority-grid,.project-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:18px;margin-bottom:22px;align-items:start}
.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-card{display:block;color:inherit;text-decoration:none}
.project-focus{display:block;color:inherit;text-decoration:none;padding-top:8px}
.project-focus>strong{display:block;font-size:1.2rem;margin-bottom:5px}
.project-focus>span{color:var(--muted,#55647a)}
.progress{height:12px;background:#e7edf6;border-radius:999px;overflow:hidden;margin:14px 0 8px}
.progress.large{height:18px}
.progress i{display:block;height:100%;background:linear-gradient(90deg,#075fec,#7347ff);border-radius:inherit}
.quick-actions.vertical{display:grid}.quick-actions.vertical .button{width:100%}
.wallet-total{min-width:220px;padding:20px 24px;border-radius:20px;background:#fff;color:#041333;box-shadow:0 12px 30px rgba(4,19,51,.12)}
.wallet-total small,.wallet-total span{display:block}.wallet-total strong{display:block;font-size:2rem;color:#075fec;margin:4px 0}
.copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.copy-row input{min-width:0}
.positive{color:#12824c}.negative{color:#b62d22}
.timeline{display:grid;gap:0;margin-top:18px}.timeline article{display:grid;grid-template-columns:18px 1fr;gap:12px;position:relative;padding-bottom:20px}.timeline article>i{width:12px;height:12px;border-radius:50%;background:#075fec;margin-top:5px}.timeline article:not(:last-child)>i:after{content:"";position:absolute;left:5px;top:17px;bottom:0;width:2px;background:#dce5f3}.timeline p{margin:4px 0}.timeline small{color:#65748b}
.payment-form{min-width:220px}.payment-form label{font-size:.8rem;text-align:left}.payment-form input[type=text],.payment-form input:not([type]){min-height:38px}
.text-button{border:0;background:none;color:#075fec;cursor:pointer;font:inherit}
.status.confirmed,.status.preparation,.status.development,.status.validation,.status.live,.status.completed{white-space:nowrap}
.dashboard-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.portal-priority-grid,.project-grid{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-total{width:100%}.copy-row{grid-template-columns:1fr}.payment-form{min-width:180px}}
@media(max-width:520px){.project-panel-head{align-items:flex-start;flex-direction:column;gap:8px}.dashboard-stats{grid-template-columns:1fr}.project-panel-head a{font-weight:700}}

/* ==========================================================
   IDENTITÉ WEB.CB06.FR — portail projet v6
   Les valeurs reprennent le thème public actuellement déployé.
   ========================================================== */
@font-face{font-family:Manrope;src:url(/assets/fonts/manrope-latin-variable.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
:root{
  --ink:#261c47;--muted:#605573;--brand:#261c47;
  --accent:#6437cf;--accent-dark:#452398;--blue:#6437cf;
  --soft:#f5f0ff;--line:#ded6ed;--panel:#fff;
  --mint:#b4f4d6;--pink:#ffd2ea;--yellow:#f6f38b;--yellow-dark:#e4df63;--lilac:#eee4ff;
  --r-sm:10px;--r-md:14px;--r-lg:22px;--r-pill:22px;
  --shadow-sm:0 4px 0 rgba(38,28,71,.07);--shadow-md:0 24px 70px rgba(38,28,71,.12);
  --fw-regular:400;--fw-medium:600;--fw-semibold:700;--fw-title:800;
}
body{font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fcf9ff}
h1,h2,h3{letter-spacing:-.045em}
.button{border-radius:12px;border-color:transparent;background:var(--accent);font-weight:800;min-height:48px}
.button:hover{background:var(--accent-dark);border-color:transparent;box-shadow:0 9px 22px rgba(100,55,207,.18)}
.button.secondary{border-color:#b9afc9}.button.yellow{color:var(--ink)}
.button.portal-light{background:#fff;color:var(--ink);border-color:#cfc4df}.button.portal-light:hover{background:var(--lilac);color:var(--accent)}
.portal-header{box-shadow:none;border-bottom:1px solid #e9e4f2}
.portal-mainbar{min-height:86px}.portal-logo-wrap{width:190px}.portal-brand-copy{border-color:var(--line)}
.portal-site-link,.portal-phone,.portal-menu-button{border-radius:12px;min-height:46px;font-weight:800}
.portal-navline{border-color:#eee8f5}.portal-nav>a,.portal-logout{font-weight:650}
.portal-nav>a:hover,.portal-logout:hover{background:var(--lilac);color:var(--accent)}
.portal-nav-order{background:var(--mint)!important;color:#26483b!important;font-weight:800!important}
.portal-footer{background:#281b49}.portal-footer-logo{filter:brightness(0) invert(1);margin-bottom:18px;max-width:190px}
.page-head{background:linear-gradient(125deg,#f0e5ff,#ffe7f1);border-color:var(--line)}
.page-head h1{font-weight:800}.eyebrow,.kicker{color:var(--accent);font-weight:800}
.panel,.stat-card,.auth-card,.card,.device-card,.appointment-card{border:0;box-shadow:var(--shadow-sm)}
.auth-section{background:linear-gradient(125deg,#f0e5ff,#ffe7f1)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(100,55,207,.12)}
.portal-hero-project{background:linear-gradient(125deg,#f0e5ff 0%,#ffe7f1 56%,#fff0d8 100%);padding:74px 0}
.portal-hero-project:after{content:"";position:absolute;width:360px;height:360px;border:62px solid rgba(100,55,207,.08);border-radius:50%;right:-150px;top:-170px}
.portal-hero h1{font-size:clamp(42px,4.8vw,68px);font-weight:800;line-height:1.04;max-width:760px}
.portal-label{background:var(--yellow);border-radius:10px;padding:8px 12px;color:var(--accent);font-weight:800}
.portal-hero-actions-simple{display:flex;gap:12px}.portal-hero-actions-simple .button{min-height:54px;display:inline-flex;align-items:center;padding:14px 24px}
.portal-trust-row span{border:0;background:rgba(255,255,255,.72);border-radius:10px;color:var(--ink)}
.project-journey-card{background:var(--yellow);padding:36px;border-radius:28px;box-shadow:9px 9px 0 #5b2ba3;transform:rotate(1deg)}
.project-journey-card .kicker{margin:0 0 20px}.project-journey-card ol{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.project-journey-card li{display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:center;padding:17px;background:rgba(255,255,255,.65);border-radius:16px}
.project-journey-card b{display:grid;place-items:center;width:46px;height:46px;background:var(--accent);color:#fff;border-radius:14px}
.project-journey-card span,.project-journey-card small{display:block}.project-journey-card small{margin-top:4px;color:var(--muted);line-height:1.4}
.portal-intro-card{background:linear-gradient(130deg,#251943,#3c205d);border-radius:22px}.portal-intro-card span{color:var(--yellow)}
.portal-feature-card{border:0!important}.portal-feature-card.is-yellow{background:var(--yellow)}.portal-feature-card.is-pink{background:var(--pink)}.portal-feature-card.is-mint{background:var(--mint)}.portal-feature-card.is-lilac{background:var(--lilac)}
.portal-feature-card .icon{background:rgba(255,255,255,.7);color:var(--accent)}
.portal-how{background:linear-gradient(130deg,#251943,#3c205d)}.portal-final-cta{background:var(--pink)}
.client-welcome{padding:48px 0 34px}.project-priority{background:var(--lilac)}.project-priority .panel-head{background:transparent;border:0;padding:0 0 20px}
.project-priority .empty{background:rgba(255,255,255,.55);border-radius:17px}.next-action{background:#fff}.next-action.has-action{background:var(--yellow);box-shadow:7px 7px 0 #d9d664}.next-action p{color:var(--muted);margin:10px 0 20px}
.dashboard-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 22px}.dashboard-actions a{min-height:112px;padding:19px;border-radius:18px;background:#fff;color:var(--ink);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;transition:.18s}
.dashboard-actions a:nth-child(1){background:var(--yellow)}.dashboard-actions a:nth-child(2){background:var(--pink)}.dashboard-actions a:nth-child(3){background:var(--mint)}.dashboard-actions a:nth-child(4){background:var(--lilac)}.dashboard-actions a:nth-child(5){background:#ffe0c2}
.dashboard-actions a:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(38,28,71,.12)}.dashboard-actions b{font-size:16px}.dashboard-actions span{color:var(--muted);font-size:12px}
.dashboard-stats-simple{grid-template-columns:repeat(3,1fr)}.dashboard-stats-simple .stat-card{padding:22px}.dashboard-secondary{margin-top:22px}
.progress i{background:linear-gradient(90deg,#6437cf,#902fa8)}
.catalog-head p{max-width:750px}.catalog-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.5fr);gap:28px;align-items:start}
.catalog-categories{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:28px}.catalog-categories a{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:13px;font-weight:800}.catalog-categories span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--lilac);font-size:10px}.catalog-groups{display:grid;gap:44px}.catalog-group{scroll-margin-top:130px}.catalog-group-title{display:flex;align-items:center;gap:12px;margin-bottom:15px}.catalog-group-title>span{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--accent);color:#fff;font-size:12px;font-weight:800}.catalog-group-title h2{margin:0;font-size:27px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.catalog-card{text-align:left;border:0;border-radius:22px;padding:25px;background:var(--lilac);color:var(--ink);min-height:230px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:var(--shadow-sm);transition:.18s}
.catalog-card:nth-child(4n+1){background:var(--yellow)}.catalog-card:nth-child(4n+2){background:var(--pink)}.catalog-card:nth-child(4n+3){background:var(--mint)}
.catalog-card:hover,.catalog-card[aria-pressed="true"]{transform:translateY(-4px);box-shadow:7px 7px 0 var(--accent)}.catalog-card[aria-pressed="true"]{outline:3px solid var(--accent);outline-offset:2px}
.catalog-card>span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:var(--accent)}.catalog-card h3{font-size:25px;margin:14px 0 10px}.catalog-card p{margin:0;color:var(--muted);font-size:14px}.catalog-card strong{margin-top:auto;padding-top:22px;font-size:16px}.catalog-card small{margin-top:8px;color:var(--accent);font-weight:800}
.catalog-source{font-size:12px;margin:20px 5px}.order-panel{position:sticky;top:160px;background:#fff}.order-panel>h2{font-size:27px}.order-panel>p{color:var(--muted)}
@media(max-width:1080px){.dashboard-actions{grid-template-columns:repeat(3,1fr)}.catalog-layout{grid-template-columns:1fr}.order-panel{position:static}}
@media(max-width:900px){.portal-mainbar{min-height:68px}.portal-hero-project{padding:50px 0}.project-journey-card{transform:none}.dashboard-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.portal-mainbar{min-height:62px}.portal-logo-wrap{width:138px}.portal-hero h1{font-size:clamp(38px,11vw,52px)}.portal-hero-actions-simple{display:grid}.project-journey-card{padding:23px;box-shadow:6px 6px 0 #5b2ba3}.project-journey-card li{grid-template-columns:40px 1fr;padding:14px}.project-journey-card b{width:40px;height:40px}.dashboard-actions,.dashboard-stats-simple,.catalog-grid{grid-template-columns:1fr}.dashboard-actions a{min-height:88px}.catalog-card{min-height:205px}.client-welcome{padding:34px 0 26px}}

/* Parcours final : onboarding, décisions et états commerciaux */
.onboarding-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:0 0 28px}.onboarding-steps span{display:grid;place-items:center;min-height:38px;border-radius:12px;background:#eee9f4;color:var(--muted);font-weight:800}.onboarding-steps span.active{background:var(--accent);color:#fff}.onboarding-steps span.done{background:var(--mint);color:#26483b}
.next-action{padding:18px;border-radius:16px;background:rgba(255,255,255,.65)}.notice{margin:16px 0;padding:15px 17px;border-radius:14px;background:var(--lilac);color:var(--ink)}
.email-preview{display:block;width:100%;min-height:680px;margin-top:20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.status.brouillon,.status.recue,.status.pending{background:#fff3c4;color:#715c00}.status.en_attente_paiement,.status.en_attente,.status.review{background:#eee4ff;color:#5b2ba3}.status.approuvee,.status.succeeded,.status.payee,.status.delivered{background:#dcf8e9;color:#16603e}.status.modifications_demandees,.status.failed,.status.remboursee{background:#fee9e7;color:#8c2d27}
@media(max-width:680px){.onboarding-steps{gap:5px}.onboarding-steps span{min-height:32px}.email-preview{min-height:560px}}
