/* =====================================================================================
   Sudoptic — Héritage de l'ancien thème dans l'interface pro (2026-11-06)
   Menu sombre bleu nuit / bordeaux, élément actif doré, bandeaux en dégradé avec
   anneaux d'orbite et œil Sudoptic, illustrations par écran, animations sobres.
   Chargé après pro-ui.css.
   ===================================================================================== */
html.pro{--h-deep:#262625;--h-mid:#383836;--h-light:#595955;--h-gold:#f57b81;--h-gold-ink:#20201f;--h-cyan:#92928d;--h-ease:cubic-bezier(.2,.8,.2,1)}
html.pro body:not(#_):is([data-space=commercial],[data-space=partenaire],[data-role=commercial],[data-role=partenaire]){--h-deep:#3d090b;--h-mid:#5f0e12;--h-light:#a3171e}
html.pro body:not(#_){background:radial-gradient(1200px 420px at 100% -120px,color-mix(in srgb,var(--h-light) 9%,transparent),transparent 70%),var(--pro-bg)!important}

/* ---------- Menu latéral sombre ---------- */
html.pro body:not(#_) .app-sidebar{background:linear-gradient(180deg,var(--h-mid),var(--h-deep))!important;border-right:0!important;color:#fff!important;box-shadow:4px 0 24px rgba(38,38,37,.12)!important}
html.pro body:not(#_) .app-sidebar::after{content:"";position:absolute;inset:auto -120px -120px auto;width:300px;height:300px;border-radius:50%;border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 40px rgba(255,255,255,.025),0 0 0 80px rgba(255,255,255,.02);pointer-events:none}
html.pro body:not(#_) .app-sidebar .app-brand img{background:#fff!important;padding:4px 6px!important;border-radius:10px!important}
html.pro body:not(#_) .app-sidebar .app-role{color:var(--h-gold)!important}
html.pro body:not(#_) .app-sidebar nav a{color:#e3e3e1!important;transition:background .2s var(--h-ease),color .2s,transform .2s var(--h-ease)!important}
html.pro body:not(#_) .app-sidebar nav a .app-icon{color:#b7b7b4!important}
html.pro body:not(#_) .app-sidebar nav a:hover{background:rgba(255,255,255,.08)!important;color:#fff!important;transform:translateX(3px)}
html.pro body:not(#_) .app-sidebar nav a[aria-current]{background:var(--h-gold)!important;color:#2c2c2b!important;box-shadow:0 6px 16px rgba(245,123,129,.28)!important;transform:none}
html.pro body:not(#_) .app-sidebar nav a[aria-current] .app-icon{color:#2c2c2b!important}
html.pro body:not(#_) .app-sidebar nav a[aria-current]::before{display:none}
html.pro body:not(#_) .app-sidebar-bottom{background:transparent!important;border-top:1px solid rgba(255,255,255,.12)!important}
html.pro body:not(#_) .app-identity,html.pro body:not(#_) .app-identity span{color:#fff!important}
html.pro body:not(#_) .app-avatar{background:var(--h-gold)!important;color:#2c2c2b!important;border:0!important}
html.pro body:not(#_) .app-sidebar :is(.app-signout,.profile-photo-open,button){background:rgba(255,255,255,.06)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important}
html.pro body:not(#_) .app-sidebar :is(.app-signout,button):hover{background:rgba(255,255,255,.14)!important;color:#fff!important}
html.pro body:not(#_) .app-sidebar::-webkit-scrollbar{width:6px}html.pro body:not(#_) .app-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:6px}

/* ---------- Barre supérieure : liseré or ---------- */
html.pro body:not(#_) .app-topbar{border-bottom:0!important;box-shadow:0 1px 0 var(--pro-border)!important}
html.pro body:not(#_) .app-topbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--h-light),var(--h-gold) 55%,transparent);opacity:.75}
html.pro body:not(#_) .app-bottom-nav a[aria-current]{color:var(--h-light)!important}

/* ---------- Bandeaux de page : dégradé, orbites, œil, illustration ---------- */
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){
 background:
  url(assets/illu/vue-ensemble.svg) right 18px center/auto 92% no-repeat,
  radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),
  radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),
  linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important;
 border:0!important;color:#fff!important;min-height:178px!important;padding:28px 34px!important;padding-right:min(360px,38%)!important;box-shadow:0 14px 34px color-mix(in srgb,var(--h-mid) 28%,transparent)!important;border-radius:16px!important;display:flex!important;flex-direction:column;justify-content:center;isolation:isolate}
html[data-page=suivi].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/suivi.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=radar].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/radar.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=croissance].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/croissance.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=gestion].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/gestion.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=pilotage].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/pilotage.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=stock].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/stock.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=badge].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/badge.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=securite].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/securite.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html[data-page=supervision].pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){background-image:url(assets/illu/supervision.svg),radial-gradient(circle at 82% 50%,rgba(255,255,255,.07) 0 34%,transparent 35%),radial-gradient(500px 260px at 0% 0%,rgba(146,146,141,.18),transparent 70%),linear-gradient(118deg,var(--h-deep),var(--h-mid) 45%,var(--h-light))!important}
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero)::before{display:none!important}
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero)>:is(img,svg),html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero) :is(#workspace-image,#ops-art,.diamond-brand-stamp){display:none!important}
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero) :is(h1,h2,strong){color:#fff!important;font-size:clamp(23px,2.1vw,30px)!important}
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero) :is(p,span:not(.eyebrow)){color:#e7e7e6!important}
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero) .eyebrow{color:var(--h-gold)!important;display:inline-flex!important;align-items:center;gap:10px}
html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero) .eyebrow::before{content:""!important;width:26px!important;height:14px!important;border-radius:0!important;box-shadow:none!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 28'%3E%3Cpath d='M2 14Q26-6 50 14Q26 34 2 14Z' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Ccircle cx='26' cy='14' r='7' fill='%23F2C35B'/%3E%3Cpath d='M26 9l5 5-5 5-5-5z' fill='%2312385C'/%3E%3C/svg%3E") center/contain no-repeat!important;display:inline-block!important}
html.pro body:not(#_) :is(.growth-chips,.admin-welcome-chips) span{background:rgba(255,255,255,.1)!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)!important}
html.pro body:not(#_) .growth-hero .growth-chips span::before{color:var(--h-gold)}

/* ---------- Indicateurs : accent dégradé et anneau d'orbite ---------- */
html.pro body:not(#_) main :is(.stat,.admin-kpi,.team-overview-kpi,.dx-kpi){border-top:3px solid transparent!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,var(--h-light),var(--h-gold)) border-box!important;border-left:1px solid var(--pro-border)!important;border-right:1px solid var(--pro-border)!important;border-bottom:1px solid var(--pro-border)!important}
html.pro body:not(#_) main :is(.stat,.admin-kpi,.team-overview-kpi)::after{content:""!important;display:block!important;position:absolute;right:-34px;top:-34px;width:96px;height:96px;border-radius:50%;border:1px solid color-mix(in srgb,var(--h-light) 16%,transparent);box-shadow:0 0 0 14px color-mix(in srgb,var(--h-light) 4%,transparent);pointer-events:none}
html.pro body:not(#_) main :is(.stat,.admin-kpi,.team-overview-kpi,.dx-kpi) :is(strong,b){color:var(--h-mid)!important}
html.pro body:not(#_) main .dx-kpi[aria-pressed=true]{background:linear-gradient(var(--pro-brand-soft),var(--pro-brand-soft)) padding-box,linear-gradient(90deg,var(--h-light),var(--h-gold)) border-box!important}

/* ---------- Titres de panneaux : petit repère doré ---------- */
html.pro body:not(#_) main :is(.panel,.ops-panel,.admin-chart,.team-chart,.team-recent,.admin-appointments,.admin-directory)>h2::before,html.pro body:not(#_) main :is(.admin-chart-head,.team-overview-head) h2::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;transform:rotate(45deg);background:var(--h-gold);margin:0 10px 2px 2px}

/* ---------- Boutons principaux : léger dégradé de marque ---------- */
html.pro body:not(#_) :is(main,dialog) :is(button,.button,input[type=submit]):not(.dx-kpi):not(.admin-kpi):not(.team-overview-kpi):not(.dx-ghost):not(.secondary):not([data-cancel]):not([id$=-prev]):not([id$=-next]):not(#prev):not(#next):not([class*=tabs] button){background:linear-gradient(180deg,color-mix(in srgb,var(--pro-brand) 88%,#fff),var(--pro-brand))!important}

/* ---------- Animations ---------- */
@keyframes h-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes h-pop{0%{transform:scale(.6)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes h-shine{from{background-position:-200% 0}to{background-position:200% 0}}
@keyframes h-ring{0%,100%{transform:rotate(0)}20%{transform:rotate(-14deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-6deg)}}
html.pro body:not(#_) main>*:not([hidden]){animation:h-rise .5s var(--h-ease) both}
html.pro body:not(#_) main>*:nth-child(2){animation-delay:.05s}html.pro body:not(#_) main>*:nth-child(3){animation-delay:.1s}html.pro body:not(#_) main>*:nth-child(4){animation-delay:.15s}html.pro body:not(#_) main>*:nth-child(5){animation-delay:.2s}html.pro body:not(#_) main>*:nth-child(n+6){animation-delay:.25s}
html.pro body:not(#_) main :is(.admin-kpis,.team-overview-kpis,.dx-kpis,.dx-cards,.grid)>*{animation:h-rise .45s var(--h-ease) both}
html.pro body:not(#_) main :is(.admin-kpis,.team-overview-kpis,.dx-kpis,.dx-cards,.grid)>*:nth-child(2){animation-delay:.04s}
html.pro body:not(#_) main :is(.admin-kpis,.team-overview-kpis,.dx-kpis,.dx-cards,.grid)>*:nth-child(3){animation-delay:.08s}
html.pro body:not(#_) main :is(.admin-kpis,.team-overview-kpis,.dx-kpis,.dx-cards,.grid)>*:nth-child(4){animation-delay:.12s}
html.pro body:not(#_) main :is(.admin-kpis,.team-overview-kpis,.dx-kpis,.dx-cards,.grid)>*:nth-child(5){animation-delay:.16s}
html.pro body:not(#_) main :is(.admin-kpis,.team-overview-kpis,.dx-kpis,.dx-cards,.grid)>*:nth-child(n+6){animation-delay:.2s}
html.pro body:not(#_) main :is(.panel,.ops-panel,.admin-chart,.team-chart,.dx-item,.pilot-record,.arrival-card){transition:box-shadow .25s var(--h-ease),transform .25s var(--h-ease),border-color .25s!important}
html.pro body:not(#_) main :is(.dx-item,.pilot-record,.arrival-card,.admin-appointment,.diamond-day-list article):hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(29,29,27,.08)!important}
html.pro body:not(#_) :is(main,dialog) :is(button,.button):active{transform:scale(.98)}
html.pro body:not(#_) .notification-count:not([hidden]){animation:h-pop .4s var(--h-ease) both}
html.pro body:not(#_) .diamond-notification-button:has(.notification-count:not([hidden])) svg{animation:h-ring 1.2s ease 1.2s 2;transform-origin:50% 10%}
html.pro body:not(#_) main [aria-busy=true]{position:relative}
html.pro body:not(#_) main [aria-busy=true]::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,var(--h-gold),transparent) 0 0/50% 100% no-repeat;animation:h-shine 1.1s linear infinite}
html.pro body:not(#_) main :is(.admin-chart-track,.team-chart-track,.bar-track,.dx-bar .track) :is(i,span,div){transform-origin:left;animation:h-grow .9s var(--h-ease) both}
@keyframes h-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
html.pro body:not(#_) main .diamond-hist-column :is(i,span,div){transform-origin:bottom}

/* ---------- Mobile ---------- */
@media (max-width:900px){
 html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){padding:22px 20px!important;padding-right:120px!important;min-height:140px!important;background-position:right -40px center,0 0,0 0,0 0!important;background-size:auto 70%,auto,auto,auto!important}
 html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero) :is(h1,h2){font-size:21px!important}
}
@media (max-width:480px){html.pro body:not(#_) :is(.workspace-welcome,.growth-hero,.ops-hero,.diamond-section-banner,main>.hero){padding-right:20px!important;background-size:0 0,auto,auto,auto!important}}
@media (prefers-reduced-motion:reduce){html.pro body:not(#_) *{animation:none!important;transition:none!important}}
html.pro body:not(#_) .app-sidebar{background-color:var(--h-deep)!important}
