/* =========================================================
   SmartHospital.ma — V2.1 Premium Medical Corporate
   Palette: Noir / Orange / Blanc
   Direction: sobre, premium, lisible, orientée conversion
   ========================================================= */

:root {
  --sh-orange: #f36b0a;
  --sh-orange-2: #ff8a2b;
  --sh-orange-soft: #fff4eb;
  --sh-orange-line: #ffd9bd;
  --sh-ink: #0b0f14;
  --sh-ink-2: #121821;
  --sh-ink-3: #1b2430;
  --sh-text: #17202b;
  --sh-muted: #667085;
  --sh-muted-2: #8a94a3;
  --sh-line: #e7eaf0;
  --sh-line-dark: #252d38;
  --sh-soft: #f7f8fa;
  --sh-white: #ffffff;
  --sh-green: #168f5b;
  --sh-shadow-xs: 0 1px 2px rgba(12, 18, 28, .04);
  --sh-shadow-sm: 0 10px 30px rgba(12, 18, 28, .07);
  --sh-shadow: 0 22px 56px rgba(12, 18, 28, .10);
  --sh-shadow-lg: 0 34px 90px rgba(4, 8, 14, .22);
  --sh-radius-sm: 12px;
  --sh-radius: 18px;
  --sh-radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sh-text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(243, 107, 10, .18); color: #111820; }
.text-orange { color: var(--sh-orange) !important; }
.text-secondary { color: var(--sh-muted) !important; }
.z-2 { z-index: 2; }
.section-anchor { scroll-margin-top: 108px; }

/* TOP BAR */
.topbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  background: #07090c;
  color: #9da6b2;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: .38rem 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.topbar a { color: #d5d9df; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .32; margin: 0 .75rem; }

/* NAVIGATION */
.navbar {
  min-height: 78px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(17, 24, 39, .07);
  padding: .45rem 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 10px 32px rgba(12, 18, 28, .08);
}
.navbar-brand { display: flex; align-items: center; padding: 0; margin-right: 1.5rem; }
.navbar-brand img {
  height: 54px;
  width: auto;
  max-width: 238px;
  object-fit: contain;
}
.navbar .nav-link {
  position: relative;
  color: #2c3440 !important;
  font-size: .89rem;
  font-weight: 750;
  padding: .72rem .67rem !important;
}
.navbar .nav-link::after {
  transition: opacity .2s ease, transform .2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: var(--sh-orange) !important; }
.navbar-toggler {
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  padding: .45rem .55rem;
  box-shadow: none !important;
}
.dropdown-menu {
  border: 1px solid #e9ebef !important;
  border-radius: 16px;
  padding: .55rem !important;
  box-shadow: 0 18px 44px rgba(12, 18, 28, .12) !important;
}
.dropdown-item {
  border-radius: 10px !important;
  color: #2e3743;
  font-size: .88rem;
  font-weight: 680;
  padding: .62rem .72rem;
}
.dropdown-item:hover,
.dropdown-item:focus { background: var(--sh-orange-soft); color: #b64600; }

/* BUTTONS */
.btn-sh,
.btn-dark-sh,
.btn-soft-sh {
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: .79rem 1.13rem;
  border-width: 1px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-sh {
  color: #fff;
  border-color: var(--sh-orange);
  background: var(--sh-orange);
  box-shadow: 0 10px 24px rgba(243, 107, 10, .23);
}
.btn-sh:hover,
.btn-sh:focus {
  color: #fff;
  background: #df5d00;
  border-color: #df5d00;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(243, 107, 10, .28);
}
.btn-dark-sh {
  color: #fff;
  background: #161c24;
  border-color: #313945;
}
.btn-dark-sh:hover,
.btn-dark-sh:focus { color: #fff; background: #222a35; border-color: #404a58; transform: translateY(-1px); }
.btn-soft-sh { color: #252e39; background: #fff; border-color: #dde2e8; }
.btn-soft-sh:hover,
.btn-soft-sh:focus { color: #b74a00; background: #fffaf6; border-color: #ffc89e; }
.btn-lg { padding: .9rem 1.28rem; font-size: .96rem; }

/* HERO */
.hero-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 675px;
  display: flex;
  align-items: center;
  padding: 74px 0 78px;
  color: #fff;
  background: #090d12;
}
.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 82% 25%, rgba(243,107,10,.24) 0, rgba(243,107,10,.09) 22%, transparent 45%),
    radial-gradient(circle at 4% 100%, rgba(243,107,10,.10), transparent 34%),
    linear-gradient(115deg, #090d12 0%, #0c1118 52%, #111821 100%);
}
.hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent 0%, #000 35%, #000 100%);
}
.hero-glow {
  position: absolute;
  right: -150px;
  top: -230px;
  width: 650px;
  height: 650px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(243,107,10,.11);
  filter: blur(92px);
}
.eyebrow-dark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 34px;
  border: 1px solid rgba(255, 139, 53, .28);
  border-radius: 999px;
  padding: .42rem .72rem;
  background: rgba(243, 107, 10, .08);
  color: #ffad72;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.hero-premium h1 {
  max-width: 720px;
  margin: 1.15rem 0 1.18rem;
  font-size: clamp(2.75rem, 4.65vw, 4.65rem);
  line-height: 1.015;
  font-weight: 900;
  letter-spacing: -.052em;
}
.hero-premium h1 .gradient {
  color: #ff8127;
  background: linear-gradient(90deg, #f36b0a 0%, #ff9a50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-premium .lead {
  max-width: 685px;
  margin-bottom: 0;
  color: #b4bdc9;
  font-size: 1.05rem;
  line-height: 1.78;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-top: 1.55rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.55rem; }
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: .42rem .68rem;
  background: rgba(255,255,255,.035);
  color: #cbd2db;
  font-size: .75rem;
  font-weight: 650;
}
.hero-meta i { color: #ff8c37; }

/* HERO PRODUCT MOCKUP */
.app-shell {
  position: relative;
  max-width: 625px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: #121821;
  box-shadow: 0 35px 85px rgba(0,0,0,.38);
}
.app-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.app-window {
  min-height: 470px;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f8fa;
  color: #17202b;
}
.app-top {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #0d1219;
  color: #cbd2db;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.app-top .dots { display: flex; gap: 5px; }
.app-top .dots span { width: 7px; height: 7px; border-radius: 50%; background: #3d4754; }
.app-top .dots span:first-child { background: var(--sh-orange); }
.app-top .mini-brand { font-size: .68rem; font-weight: 750; letter-spacing: .01em; }
.app-body { display: grid; grid-template-columns: 70px 1fr; min-height: 425px; }
.app-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 13px 9px;
  background: #121924;
  color: #6f7c8d;
}
.app-side .side-logo {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 11px;
  background: var(--sh-orange);
  color: #fff;
  font-size: 1.06rem;
  box-shadow: 0 8px 18px rgba(243,107,10,.22);
}
.app-side .side-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: .9rem;
}
.app-side .side-ico.active { color: #ff9d59; background: #222c38; }
.app-main { padding: 17px; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.app-head h4 { margin: 0; font-size: .86rem; font-weight: 850; }
.app-head small { color: #8d97a5; font-size: .63rem; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-kpi,
.app-chart,
.app-list,
.app-table {
  border: 1px solid #e5e8ed;
  background: #fff;
  box-shadow: var(--sh-shadow-xs);
}
.app-kpi { border-radius: 11px; padding: 10px 11px; }
.app-kpi small { display: block; color: #8993a0; font-size: .58rem; }
.app-kpi strong { display: block; margin: .06rem 0; color: #111820; font-size: .97rem; }
.app-kpi .trend { color: var(--sh-green); font-size: .56rem; }
.app-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; margin-top: 8px; }
.app-chart,
.app-list { min-height: 126px; border-radius: 11px; padding: 10px; }
.app-chart svg { width: 100%; height: 82px; margin-top: 4px; }
.app-list .mini-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eef0f3; font-size: .6rem; }
.app-list .mini-row:last-child { border-bottom: 0; }
.app-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.app-table,
.app-alert { min-height: 88px; border-radius: 11px; padding: 10px; }
.app-table .line { height: 6px; margin: 7px 0; border-radius: 999px; background: #e9edf1; }
.app-table .line.orange { width: 72%; background: #ffc69d; }
.app-alert {
  border: 1px solid #26313d;
  color: #fff;
  background: #151d27;
}
.app-alert .pulse {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: var(--sh-orange);
}
.float-chip {
  position: absolute;
  z-index: 3;
  right: -18px;
  top: 48px;
  padding: 9px 12px;
  border: 1px solid #eceff2;
  border-radius: 12px;
  color: #1d2631;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  font-size: .67rem;
  font-weight: 750;
}
.float-chip i { color: var(--sh-orange); }
.float-chip.b { top: auto; bottom: 38px; right: auto; left: -20px; }

/* STRUCTURE STRIP */
.logo-strip {
  padding: 20px 0;
  border-bottom: 1px solid #eceff2;
  background: #fff;
}
.logo-strip .item {
  color: #697382;
  text-align: center;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
}
.logo-strip .item i { margin-right: .34rem; color: var(--sh-orange); }

/* SECTIONS */
.section { padding: 92px 0; }
.section-soft { background: #f7f8fa; }
.section-warm { background: #fffaf6; }
.section-dark { color: #fff; background: #0a0e13; }
.section-title { max-width: 760px; margin-bottom: 38px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title .kicker {
  display: inline-block;
  color: var(--sh-orange);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.section-title h2 {
  margin: .55rem 0 .75rem;
  color: #121923;
  font-size: clamp(1.95rem, 3.35vw, 3rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.04em;
}
.section-title p { margin: 0; color: var(--sh-muted); font-size: 1rem; line-height: 1.75; }
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: #99a5b4; }

/* SOLUTION CARDS */
.solution-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 25px;
  border: 1px solid #e6e9ee;
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--sh-shadow-xs);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.solution-card::after {
  content: "";
  position: absolute;
  width: 115px;
  height: 115px;
  right: -58px;
  top: -58px;
  border-radius: 50%;
  background: #fff5ed;
}
.solution-card:hover { transform: translateY(-4px); border-color: #ffc99f; box-shadow: var(--sh-shadow-sm); }
.solution-card .icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 13px;
  color: #ff8c39;
  background: #111820;
  font-size: 1.25rem;
}
.solution-card .tag { color: var(--sh-orange); font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.solution-card h3 { margin: .42rem 0 .48rem; color: #121923; font-size: 1.16rem; font-weight: 850; }
.solution-card p { color: #697383; font-size: .88rem; }
.solution-card a { color: #252e39; font-size: .83rem; font-weight: 800; }
.solution-card a:hover { color: var(--sh-orange); }

/* MODULE CARDS */
.feature-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #e7eaf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--sh-shadow-xs);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--sh-orange);
  transition: height .22s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: #ffd0ad; box-shadow: var(--sh-shadow-sm); }
.feature-card:hover::before { height: 100%; }
.feature-card .icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 12px;
  color: var(--sh-orange);
  background: var(--sh-orange-soft);
  font-size: 1.2rem;
}
.feature-card .num { position: absolute; right: 15px; top: 14px; color: #c0c6ce; font-size: .66rem; font-weight: 850; }
.feature-card h3 { margin-bottom: .45rem; color: #1b2430; font-size: 1rem; font-weight: 850; }
.feature-card p { margin: 0; color: var(--sh-muted); font-size: .86rem; line-height: 1.65; }

/* INTERFACE SHOWCASE */
.showcase-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 23px; }
.showcase-tab {
  border: 1px solid #e1e5ea;
  border-radius: 999px;
  padding: .56rem .83rem;
  color: #5a6573;
  background: #fff;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 760;
}
.showcase-tab.active,
.showcase-tab:hover { color: #fff; background: #121820; border-color: #121820; }
.showcase-pane { display: none; }
.showcase-pane.active { display: block; }
.screen-card {
  padding: 9px;
  border: 1px solid #232c37;
  border-radius: 21px;
  background: #0f151d;
  box-shadow: 0 26px 62px rgba(10,14,20,.20);
}
.screen-frame { min-height: 455px; overflow: hidden; border-radius: 14px; background: #f6f7f9; }
.screen-top {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  background: #111822;
  border-bottom: 1px solid #27313d;
}
.screen-title { font-size: .71rem; font-weight: 780; }
.screen-user { display: flex; align-items: center; gap: .42rem; color: #9ca7b4; font-size: .63rem; }
.screen-user .avatar { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sh-orange); }
.screen-content { display: grid; grid-template-columns: 180px 1fr; min-height: 408px; }
.screen-nav { padding: 16px 11px; border-right: 1px solid #e7eaf0; background: #fff; }
.screen-nav .brand-chip { margin-bottom: 15px; padding: 0 7px; color: #131a23; font-weight: 900; }
.screen-nav .brand-chip span { color: var(--sh-orange); }
.screen-nav a {
  display: flex;
  align-items: center;
  gap: .58rem;
  margin-bottom: 3px;
  padding: .55rem .62rem;
  border-radius: 9px;
  color: #77818e;
  font-size: .68rem;
  font-weight: 700;
}
.screen-nav a.active { color: #b94b00; background: var(--sh-orange-soft); }
.screen-stage { padding: 17px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.stage-head h4 { margin: 0; color: #151d27; font-size: .98rem; font-weight: 850; }
.stage-head .action { padding: .43rem .6rem; border-radius: 8px; color: #fff; background: var(--sh-orange); font-size: .65rem; font-weight: 780; }
.patient-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: 11px; }
.patient-list,
.patient-detail,
.planner,
.bed-map,
.finance-panel { border: 1px solid #e5e8ed; border-radius: 12px; background: #fff; box-shadow: var(--sh-shadow-xs); }
.patient-list,
.patient-detail,
.finance-panel { padding: 12px; }
.patient-list .search { height: 30px; margin-bottom: 10px; border-radius: 7px; background: #f4f6f8; }
.p-row { display: flex; align-items: center; gap: 8px; padding: 8px 3px; border-bottom: 1px solid #eef0f3; }
.p-row:last-child { border-bottom: 0; }
.p-row .pavatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #cf5700; background: var(--sh-orange-soft); font-size: .67rem; font-weight: 850; }
.p-row strong { display: block; font-size: .65rem; }
.p-row small { display: block; color: #8d97a4; font-size: .55rem; }
.profile-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid #edf0f3; }
.profile-head .bigav { display: flex; align-items: center; gap: 8px; }
.profile-head .circle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--sh-orange); font-weight: 850; }
.profile-head h5 { margin: 0; font-size: .76rem; font-weight: 850; }
.profile-head small { color: #8d97a4; font-size: .57rem; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.profile-box { padding: 7px; border-radius: 8px; background: #f7f8fa; }
.profile-box small { color: #9099a6; font-size: .52rem; }
.profile-box strong { display: block; font-size: .62rem; }
.timeline { margin-top: 11px; }
.timeline .event { margin-bottom: 8px; padding-left: 8px; border-left: 2px solid #ff8731; }
.timeline .event strong { display: block; font-size: .62rem; }
.timeline .event small { color: #8b94a0; font-size: .53rem; }
.planner { padding: 0; overflow: hidden; }
.planner-grid { display: grid; grid-template-columns: 60px repeat(5,1fr); }
.planner-grid > div { min-height: 37px; padding: 5px; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; font-size: .52rem; }
.planner-grid .head { min-height: 29px; color: #687281; background: #f7f8fa; font-weight: 800; }
.appt { padding: 4px; border-radius: 5px; color: #b84a00; background: #fff0e5; font-weight: 760; }
.appt.dark { color: #3d4652; background: #e9edf2; }
.bed-map { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 12px; }
.bed { padding: 8px; border: 1px solid #e7eaf0; border-radius: 10px; background: #fff; }
.bed .bed-icon { width: 100%; height: 36px; display: grid; place-items: center; border-radius: 7px; color: #9aa4af; background: #f2f4f6; }
.bed.occupied .bed-icon { color: var(--sh-orange); background: var(--sh-orange-soft); }
.bed strong { display: block; margin-top: 6px; font-size: .6rem; }
.bed small { color: #8f99a6; font-size: .5rem; }
.finance-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; }
.bar-chart { height: 126px; display: flex; align-items: flex-end; gap: 7px; padding-top: 19px; }
.bar-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ff9a53, #f36b0a); }
.bar-chart span:nth-child(2n) { background: #dfe4e9; }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mini-metric { padding: 8px; border-radius: 8px; background: #f7f8fa; }
.mini-metric small { color: #8993a0; font-size: .52rem; }
.mini-metric strong { display: block; font-size: .69rem; }
.showcase-copy { padding: 22px 16px 22px 26px; }
.showcase-copy .label { color: var(--sh-orange); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.showcase-copy h3 { margin: .5rem 0 .62rem; color: #151d27; font-size: 1.8rem; font-weight: 900; letter-spacing: -.035em; }
.showcase-copy p { color: #697383; }
.checkline { display: flex; align-items: flex-start; gap: .65rem; margin: 12px 0; }
.checkline i { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--sh-orange); background: var(--sh-orange-soft); }
.checkline strong { color: #222b36; font-size: .87rem; }
.checkline small { display: block; color: #7d8794; font-size: .78rem; }

/* INTELLIGENCE / ANALYTICS */
.intel-wrap {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #252f3b;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #0c1118 0%, #121a24 72%, #241306 100%);
}
.intel-wrap::after {
  content: "AI";
  position: absolute;
  right: -12px;
  bottom: -55px;
  color: rgba(255,255,255,.025);
  font-size: 10rem;
  line-height: 1;
  font-weight: 900;
}
.intel-card { padding: 20px; border: 1px solid #293544; border-radius: 16px; background: #121b27; }
.intel-card .insight { margin-top: 11px; padding: 14px; border-radius: 12px; background: #19232f; }
.intel-card .progress { height: 6px; background: #303b48; }
.intel-card .progress-bar { background: var(--sh-orange); }

/* SECURITY */
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.trust-card { height: 100%; padding: 19px; border: 1px solid #e7eaf0; border-radius: 15px; background: #fff; box-shadow: var(--sh-shadow-xs); }
.trust-card i { color: var(--sh-orange); font-size: 1.25rem; }
.trust-card h3 { margin: .66rem 0 .32rem; color: #1a232e; font-size: .91rem; font-weight: 850; }
.trust-card p { margin: 0; color: #707a87; font-size: .79rem; }

/* MOROCCO PANEL */
.maroc-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #202936;
  border-radius: 22px;
  color: #fff;
  background: #0d1219;
}
.maroc-panel::after {
  content: "MA";
  position: absolute;
  right: -15px;
  bottom: -64px;
  color: rgba(255,255,255,.025);
  font-size: 11rem;
  line-height: 1;
  font-weight: 900;
}
.maroc-panel .mini { height: 100%; padding: 17px; border: 1px solid #26303c; border-radius: 13px; background: #151c25; }
.maroc-panel .mini small { color: #8d99a8; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.maroc-panel .mini strong { display: block; margin-top: .28rem; }
.city-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 17px; }
.city-links a { padding: .46rem .68rem; border: 1px solid #2b3541; border-radius: 999px; color: #d4dae2; background: #151c25; font-size: .76rem; }
.city-links a:hover { color: #fff; border-color: var(--sh-orange); }

/* DEPLOYMENT PROCESS */
.process { position: relative; }
.process::before { content: ""; position: absolute; left: 5%; right: 5%; top: 27px; height: 1px; background: #e4e7eb; }
.process-step { position: relative; text-align: center; }
.process-step .bubble {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 14px;
  color: #ff963f;
  background: #111820;
  box-shadow: 0 0 0 8px #fff;
  font-size: .8rem;
  font-weight: 850;
}
.process-step h3 { color: #1e2732; font-size: .95rem; font-weight: 850; }
.process-step p { color: #6e7885; font-size: .8rem; }

/* SERVICE CARDS */
.service-card {
  height: 100%;
  padding: 22px;
  border: 1px solid #222c37;
  border-radius: 15px;
  background: #11171f;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: #4a3423; background: #141b24; }
.service-card .n { color: var(--sh-orange); font-size: .7rem; font-weight: 850; }
.service-card h3 { margin: 10px 0 7px; color: #fff; font-size: 1rem; font-weight: 820; }
.service-card p { margin: 0; color: #96a1af; font-size: .84rem; }
.service-card a { color: #fff; font-size: .82rem; font-weight: 750; }

/* SEO CARDS */
.seo-card {
  height: 100%;
  padding: 21px;
  border: 1px solid var(--sh-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--sh-shadow-xs);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.seo-card:hover { transform: translateY(-3px); border-color: #ffcca6; box-shadow: var(--sh-shadow-sm); }
.seo-card .type { color: var(--sh-orange); font-size: .64rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.seo-card h3 { margin: 7px 0; color: #1a232d; font-size: .98rem; font-weight: 850; }
.seo-card p { color: #6a7481; font-size: .83rem; }
.seo-card a { color: #222b36; font-size: .82rem; font-weight: 800; }
.seo-card a:hover { color: var(--sh-orange); }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: 45px 48px;
  border: 1px solid #222b35;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(120deg, #0d1117 0%, #151b23 70%, #2c1606 100%);
}
.cta::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -88px;
  top: -145px;
  border-radius: 50%;
  background: rgba(243,107,10,.18);
  filter: blur(2px);
}
.cta h2 { margin-bottom: .6rem; color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; }
.cta .text-secondary { color: #a7b1be !important; }

/* CONTACT */
.contact-info,
.contact-card { height: 100%; border-radius: 19px; }
.contact-info {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border: 1px solid #222c37;
  color: #fff;
  background: #0f151d;
}
.contact-info::after { content: ""; position: absolute; right: -80px; top: -80px; width: 210px; height: 210px; border-radius: 50%; background: rgba(243,107,10,.10); }
.contact-info .rowi { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; margin: 19px 0; }
.contact-info i { color: var(--sh-orange); font-size: 1.15rem; }
.contact-info small { display: block; margin-bottom: 2px; color: #8e99a8; }
.contact-info strong { font-size: .92rem; }
.contact-card { padding: 29px; border: 1px solid var(--sh-line); background: #fff; box-shadow: var(--sh-shadow-sm); }
.form-label { margin-bottom: .38rem; color: #384250; font-size: .82rem; font-weight: 720; }
.form-control,
.form-select {
  min-height: 47px;
  border: 1px solid #dce1e7;
  border-radius: 10px;
  padding: .72rem .84rem;
  color: #1d2732;
  background-color: #fff;
  font-size: .91rem;
}
textarea.form-control { min-height: 124px; }
.form-control:focus,
.form-select:focus { border-color: #ffb47d; box-shadow: 0 0 0 .22rem rgba(243,107,10,.09); }

/* FAQ */
.faq .accordion { max-width: 900px; }
.faq .accordion-item { overflow: hidden; margin-bottom: 9px; border: 1px solid var(--sh-line); border-radius: 12px !important; background: #fff; }
.faq .accordion-button { padding: 1rem 1.05rem; color: #222b36; background: #fff; font-size: .92rem; font-weight: 780; box-shadow: none !important; }
.faq .accordion-button:not(.collapsed) { color: #b74800; background: #fff7f1; }
.faq .accordion-button:focus { border-color: transparent; box-shadow: none; }
.faq .accordion-body { padding: .95rem 1.05rem 1.1rem; color: var(--sh-muted); font-size: .9rem; }

/* FOOTER */
footer {
  padding: 54px 0 24px;
  color: #939eab;
  background: #070a0e;
  border-top: 1px solid #161d25;
}
footer .footer-logo { height: 58px; width: auto; max-width: 245px; object-fit: contain; }
footer h4 { margin-bottom: 13px; color: #fff; font-size: .84rem; font-weight: 850; }
footer a { display: block; margin: .38rem 0; color: #929daa; font-size: .82rem; }
footer a:hover { color: #fff; transform: translateX(2px); }
.footline { margin-top: 34px; padding-top: 19px; border-top: 1px solid #1b222c; color: #7d8794; font-size: .75rem; }
.whatsapp-fab {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #1cac62;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  font-size: 1.38rem;
}
.whatsapp-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.26); }

/* INTERNAL / SEO PAGES */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 58px;
  border-bottom: 1px solid #e8ebef;
  background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: rgba(243,107,10,.07);
  filter: blur(10px);
}
.breadcrumb { position: relative; z-index: 1; color: #7b8592; font-size: .79rem; }
.page-hero h1 { position: relative; z-index: 1; max-width: 950px; margin: .65rem 0 1rem; color: #121923; font-size: clamp(2.15rem, 4.25vw, 3.75rem); line-height: 1.06; font-weight: 900; letter-spacing: -.045em; }
.page-hero p { position: relative; z-index: 1; max-width: 760px; margin: 0; color: #667180; font-size: 1.02rem; }
.content-prose h2 { margin: 2.1rem 0 .75rem; color: #151d27; font-size: 1.65rem; font-weight: 880; letter-spacing: -.025em; }
.content-prose h3 { margin: 1.55rem 0 .5rem; color: #1d2631; font-size: 1.15rem; font-weight: 840; }
.content-prose p,
.content-prose li { color: #596473; }
.content-prose a { color: #bd4d00; text-decoration: underline; text-decoration-color: #ffd3b4; text-underline-offset: 3px; }
.aside-box { position: sticky; top: 112px; padding: 23px; border: 1px solid #232d38; border-radius: 17px; color: #fff; background: #0f151d; box-shadow: var(--sh-shadow-sm); }
.aside-box h3 { font-size: 1.12rem; font-weight: 850; }
.aside-box p { color: #a0abb8; font-size: .85rem; }
.aside-box .btn { width: 100%; }
.trio-card { height: 100%; padding: 25px; border: 1px solid var(--sh-line); border-radius: 17px; background: #fff; box-shadow: var(--sh-shadow-xs); }
.trio-card .number { color: var(--sh-orange); font-size: .67rem; font-weight: 850; letter-spacing: .11em; }
.trio-card h3 { margin: 9px 0; color: #1a232e; font-size: 1.2rem; font-weight: 850; }
.trio-card p { margin: 0; color: #6a7481; }
.benefit { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid #eceff2; }
.benefit:last-child { border-bottom: 0; }
.benefit i { color: var(--sh-orange); font-size: 1.25rem; }
.benefit h3 { margin: 0 0 3px; color: #1c2530; font-size: .97rem; font-weight: 840; }
.benefit p { margin: 0; color: #687381; font-size: .86rem; }
.persona { height: 100%; padding: 22px; border: 1px solid var(--sh-line); border-radius: 16px; background: #fff; box-shadow: var(--sh-shadow-xs); }
.persona .icon { color: var(--sh-orange); font-size: 1.45rem; }
.persona h3 { margin-top: 11px; color: #1a232e; font-size: 1rem; font-weight: 850; }
.persona p { margin: 0; color: #687381; font-size: .86rem; }

/* ACCESSIBILITY */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(243,107,10,.25);
  outline-offset: 3px;
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
  .float-chip { display: none; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .navbar .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; }
}

@media (max-width: 991.98px) {
  .topbar .right { display: none; }
  .navbar { min-height: 70px; }
  .navbar-brand img { height: 47px; max-width: 215px; }
  .navbar-collapse {
    margin-top: .55rem;
    padding: .7rem;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(12,18,28,.08);
  }
  .navbar .nav-link { padding: .65rem .7rem !important; }
  .navbar .btn-sh { width: 100%; margin-top: .35rem; }
  .hero-premium { min-height: auto; padding: 62px 0 68px; }
  .hero-premium h1 { font-size: clamp(2.7rem, 8vw, 4rem); }
  .app-shell { margin: 36px auto 0; }
  .section { padding: 72px 0; }
  .screen-content { grid-template-columns: 1fr; }
  .screen-nav { display: none; }
  .showcase-copy { padding: 25px 4px 5px; }
  .process::before { display: none; }
  .cta { padding: 38px 30px; }
}

@media (max-width: 767.98px) {
  .hero-premium { padding: 52px 0 58px; }
  .hero-premium h1 { font-size: 2.85rem; }
  .hero-premium .lead { font-size: 1rem; }
  .app-body { grid-template-columns: 58px 1fr; }
  .app-panel,
  .app-bottom { grid-template-columns: 1fr; }
  .screen-frame { min-height: auto; }
  .screen-stage { padding: 12px; }
  .patient-layout,
  .finance-grid { grid-template-columns: 1fr; }
  .bed-map { grid-template-columns: repeat(2,1fr); }
  .planner { overflow: auto; }
  .planner-grid { min-width: 620px; }
  .trust-grid { grid-template-columns: 1fr; }
  .maroc-panel,
  .intel-wrap { padding: 25px; }
  .cta { border-radius: 18px; }
}

@media (max-width: 575.98px) {
  .topbar { font-size: .69rem; }
  .navbar-brand img { height: 43px; max-width: 200px; }
  .hero-premium h1 { font-size: 2.45rem; letter-spacing: -.045em; }
  .hero-premium .lead { line-height: 1.7; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: .42rem; }
  .hero-meta span { font-size: .7rem; }
  .app-shell { padding: 6px; border-radius: 17px; }
  .app-window { min-height: 400px; border-radius: 12px; }
  .app-side { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-kpis { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section-title { margin-bottom: 29px; }
  .section-title h2 { font-size: 2rem; }
  .solution-card,
  .feature-card,
  .seo-card { padding: 20px; }
  .screen-card { padding: 6px; border-radius: 16px; }
  .screen-top { padding: 0 11px; }
  .showcase-copy h3 { font-size: 1.62rem; }
  .intel-wrap,
  .maroc-panel,
  .contact-info,
  .contact-card { padding: 22px; }
  .cta { padding: 30px 22px; }
  .whatsapp-fab { right: 15px; bottom: 15px; width: 50px; height: 50px; font-size: 1.25rem; }
  .page-hero { padding: 54px 0 45px; }
  .page-hero h1 { font-size: 2.25rem; }
}
