
:root {
  /*
   * ── Palette bethesdacm.info ──
   * Accent primaire : Gris très pâle #f5f5f5 — liens, icônes, menus, CTA
   * Sections sombres : Gris foncé #444444
   * Alertes / urgences : Rouge #c0392b
   */

  /* GRIS TRÈS PÂLE — accent primaire : liens, icônes, menus, CTA */
  --teal:       #f5f5f5;   /* Gris très pâle — accent primaire Bethesda */
  --teal-light: #ffffff;   /* Blanc pur — hover sur fond sombre */
  --teal-dark:  #444444;   /* Gris foncé — topbar, sections sombres */

  /* Gris de structure */
  --sky:        #f5f5f5;   /* Gris très pâle — cards, fonds légers */
  --sky-mid:    #cccccc;   /* Gris moyen — bordures, séparateurs */
  --sky-bright: #888888;   /* Gris — survol sur fond clair */

  /* Rouge — urgences, CTA forts, alertes uniquement */
  --gold:       #c0392b;   /* Rouge Bethesda — urgences, badges critiques */
  --gold-light: #e74c3c;   /* Rouge hover */

  /* Fond & blanc */
  --cream:  #f5f5f5;       /* Fond page global — gris très clair */
  --white:  #ffffff;       /* Blanc pur — cards, formulaires */

  /* Typographie */
  --dark:       #2b2b2b;   /* Quasi-noir — titres, navbar, footer */
  --text:       #555555;   /* Gris moyen — corps de texte */
  --text-muted: #888888;   /* Gris clair — labels secondaires */

  /* Utilitaires */
  --border: rgba(0,0,0,0.10);
  --shadow: 0 4px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===================== TOPBAR ===================== */
.topbar {
  background: #2b2b2b;
  color: rgba(245,245,245,0.80);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #e74c3c; text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: #ff6b5b; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-social {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,245,245,0.60);
  text-decoration: none;
  transition: all 0.18s;
}
.topbar-social:hover { background: #c0392b; color: #fff; }
.topbar-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 4px 13px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.topbar-btn:hover { background: #e74c3c; }
/* legacy classes kept for compat */
.topbar-links { display: flex; gap: 24px; align-items: center; }
.topbar-links .btn-hms {
  background: #c0392b; color: #fff;
  padding: 4px 14px; border-radius: 4px;
  font-weight: 600; font-size: 12px;
  transition: background 0.2s;
}
.topbar-links .btn-hms:hover { background: #e74c3c; }


/* ===================== NAVBAR ===================== */
nav {
  background: #f5f5f5;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #e0e0e0;
}
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 46px; height: 46px;
  background: #c0392b;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 2px solid #f5f5f5;
}
.logo-text { line-height: 1.2; }
.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: #2b2b2b;
}
.logo-sub {
  display: block;
  font-size: 11px;
  color: #888888;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* ── Nav links ── */
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin-left: auto;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  color: #555555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: rgba(192,57,43,0.08);
  color: #c0392b;
}
/* ── Dropdown ── */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s;
  border: 1px solid #e8e8e8;
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  color: #555555;
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 8px;
  transition: all 0.15s;
}
.dropdown a:hover {
  background: rgba(192,57,43,0.08);
  color: #c0392b;
}
/* ── CTA buttons in navbar ── */
.nav-cta {
  background: #c0392b !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #e74c3c !important; }
.btn-portal {
  background: transparent;
  color: #c0392b;
  border: 1.5px solid #c0392b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-portal:hover {
  background: #c0392b;
  color: #ffffff;
}
.btn-rdv {
  background: #c0392b;
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.btn-rdv:hover { background: #e74c3c; color: #fff; }
/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555555;
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger:hover span { background: #c0392b; }
/* ── Mobile open state ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-cta-group { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #f5f5f5;
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { color: #555555; border-radius: 8px; }
  .nav-links > li > a:hover { background: rgba(192,57,43,0.08); color: #c0392b; }
  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    background: #efefef;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 2px 0 4px 12px;
  }
  .dropdown a { color: #555555; }
  .dropdown a:hover { background: rgba(192,57,43,0.08); color: #c0392b; }
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--teal-dark) 55%, #555555 100%);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute;
  right: -100px;
  top: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,57,43,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-blob2 {
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,245,245,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,245,245,0.12);
  border: 1px solid rgba(245,245,245,0.30);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '✦'; font-size: 10px; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1em;
}
.hero-desc {
  color: rgba(245,245,245,0.75);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(192,57,43,0.35); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid rgba(245,245,245,0.4);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: var(--white); background: rgba(245,245,245,0.10); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,245,245,0.15);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(245,245,245,0.55);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.hero-card {
  background: rgba(245,245,245,0.10);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245,245,245,0.18);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 16px;
}
.hero-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 8px;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.qa-item {
  background: rgba(245,245,245,0.08);
  border: 1px solid rgba(245,245,245,0.12);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.qa-item:hover {
  background: rgba(245,245,245,0.16);
  transform: translateY(-2px);
}
.qa-icon { font-size: 24px; margin-bottom: 8px; display: block; }
.qa-label { font-size: 13px; font-weight: 600; color: var(--white); display: block; }
.qa-sub { font-size: 11.5px; color: rgba(245,245,245,0.55); display: block; margin-top: 2px; }

.urgency-bar {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}
.urgency-dot {
  width: 10px;
  height: 10px;
  background: #c0392b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ===================== SECTIONS ===================== */
section { padding: 80px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(0,0,0,0.06);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(0,0,0,0.10);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
}
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ===================== SERVICES ===================== */
.services-bg { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal-dark);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: var(--teal-dark); }
.service-title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.service-link { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 14px; text-decoration: none; }

/* ===================== SPECIALISTS ===================== */
.specialists-bg { background: var(--cream); }
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.doctor-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.doctor-card:hover { box-shadow: 0 8px 32px rgba(10,110,110,0.12); transform: translateY(-4px); }
.doctor-avatar {
  height: 180px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.doctor-avatar::before {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(245,245,245,0.06);
  border-radius: 50%;
}
.doctor-info { padding: 20px; }
.doctor-name { font-size: 15.5px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.doctor-spec { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.doctor-details { display: flex; flex-direction: column; gap: 6px; }
.doctor-detail { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.doctor-btn {
  display: block;
  text-align: center;
  background: var(--dark);
  color: var(--teal);
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
  transition: all 0.2s;
}
.doctor-btn:hover { background: var(--gold); color: var(--white); }

/* ===================== HMS SECTION ===================== */
.hms-bg { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); }
.hms-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}
.hms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.hms-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}
.hms-desc { color: rgba(245,245,245,0.75); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.hms-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.hms-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hms-feat-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,245,245,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hms-feat-text h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.hms-feat-text p { font-size: 13px; color: rgba(245,245,245,0.55); line-height: 1.5; }

.hms-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hms-module {
  background: rgba(245,245,245,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,245,245,0.18);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.hms-module:hover {
  background: rgba(245,245,245,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.hms-module-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.hms-module-name { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.hms-module-desc { font-size: 12px; color: rgba(245,245,245,0.55); line-height: 1.5; }

/* ===================== STAFF MANAGEMENT ===================== */
.staff-bg { background: var(--white); }
.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.staff-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.staff-mod {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.staff-mod:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(0,0,0,0.10); }
.staff-mod-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.staff-mod-name { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.staff-mod-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.staff-chart-area {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--dark); }
.chart-badge {
  background: rgba(10,110,110,0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.staff-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.staff-row:last-child { border-bottom: none; }
.staff-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 16px;
  flex-shrink: 0;
}
.staff-row-info { flex: 1; }
.staff-row-name { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.staff-row-role { font-size: 12px; color: var(--text-muted); }
.staff-status {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
}
.status-present { background: rgba(0,0,0,0.08); color: var(--teal-dark); }
.status-absent { background: rgba(192,57,43,0.10); color: var(--gold); }
.status-garde { background: rgba(68,68,68,0.12); color: var(--teal-dark); }

/* ===================== PATIENT JOURNEY ===================== */
.journey-bg { background: var(--cream); }
.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.journey-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 0;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: all 0.3s;
}
.journey-step:hover .step-circle {
  background: var(--teal);
  transform: scale(1.08);
}
.step-num {
  position: absolute;
  top: -6px;
  right: 50%;
  transform: translateX(24px);
  background: var(--gold);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===================== CONTACT ===================== */
.contact-bg { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-block { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--sky);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-item-text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.contact-item-text a { color: var(--teal); text-decoration: none; }

.contact-form-area {
  background: var(--cream);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--teal); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: var(--teal);
  color: var(--teal);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
}
.form-submit:hover { background: var(--teal-light); }


/* ═══════════════════════════════════════════════════════
   FOOTER — 4 cards side by side  (fc-* namespace)
   ═══════════════════════════════════════════════════════ */
footer {
  background: #eeeeee;
  border-top: 3px solid #c0392b;
}
.fc-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 32px 48px;
}
.fc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
/* ── Base card ── */
.fc {
  background: #f5f5f5;
  border: 1px solid #dddddd;
  border-radius: 16px;
  padding: 26px 22px 24px;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fc:hover {
  border-color: #c0392b;
  box-shadow: 0 4px 24px rgba(192,57,43,0.10);
}
/* ── Brand card ── */
.fc-brand {
  border-color: rgba(192,57,43,0.35);
}
.fc-logo-link  { display: inline-block; margin-bottom: 14px; }
.fc-logo-img   { height: 72px; width: auto; object-fit: contain; display: block; }
.fc-desc {
  font-size: 13px;
  line-height: 1.78;
  color: #555555;
  margin: 0 0 18px;
}
/* ── Social icon row ── */
.fc-socials { display: flex; gap: 8px; margin-bottom: 20px; }
.fc-soc {
  width: 34px; height: 34px;
  background: #e8e8e8;
  border: 1px solid #d0d0d0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #555555;
  text-decoration: none;
  transition: all 0.2s;
}
.fc-soc:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
  transform: translateY(-2px);
}
/* ── Urgence pill ── */
.fc-urgence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.30);
  border-radius: 11px;
  padding: 11px 13px;
}
.fc-urg-left { display: flex; align-items: center; gap: 9px; }
.fc-urg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.20);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.fc-urg-label {
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1;
  margin-bottom: 3px;
}
.fc-urg-num {
  font-size: 15px;
  font-weight: 800;
  color: #c0392b;
  text-decoration: none;
  line-height: 1;
  display: block;
}
.fc-urg-num:hover { color: #e74c3c; }
.fc-urg-arrow {
  width: 28px; height: 28px;
  background: rgba(192,57,43,0.10);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #c0392b;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}
.fc-urg-arrow:hover { background: #c0392b; color: #fff; }
/* ── Card header ── */
.fc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.fc-head-left { display: flex; align-items: center; gap: 9px; }
.fc-icon  { font-size: 17px; line-height: 1; }
.fc-title {
  font-size: 13px;
  font-weight: 700;
  color: #2b2b2b;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin: 0;
}
.fc-head-arrow {
  width: 26px; height: 26px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #c0392b;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}
.fc-head-arrow:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
/* ── Divider ── */
.fc-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(192,57,43,0.45), transparent);
  margin-bottom: 16px;
}
/* ── Link list ── */
.fc-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fc-links a {
  font-size: 13px;
  color: #555555;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.18s, gap 0.18s;
}
.fc-links a:hover { color: #c0392b; gap: 10px; }
.fc-arr {
  color: #c0392b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
/* ── Contact list ── */
.fc-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.fc-contact li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
}
.fc-ci {
  color: #c0392b;
  flex-shrink: 0;
  margin-top: 1px;
  width: 14px;
  display: flex; align-items: center; justify-content: center;
}
.fc-contact a { color: #555555; text-decoration: none; transition: color 0.18s; }
.fc-contact a:hover { color: #c0392b; }
/* ── Bottom bar ── */
.fc-bottom {
  border-top: 1px solid #dddddd;
  padding: 18px 32px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888888;
  flex-wrap: wrap;
  gap: 10px;
}
.fc-bottom-links { display: flex; gap: 18px; }
.fc-bottom-links a { color: #888888; text-decoration: none; transition: color 0.18s; }
.fc-bottom-links a:hover { color: #c0392b; }
/* ── Responsive ── */
@media (max-width: 1060px) { .fc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
  .fc-grid { grid-template-columns: 1fr; }
  .fc-wrap { padding: 40px 18px 32px; }
  .fc-bottom { padding: 14px 18px; flex-direction: column; text-align: center; }
}

/* ===================== MODAL HMS ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 24px;
}
.modal-tab {
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: #f5f5f5; }
.modal-body { padding: 24px 28px 28px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* HMS Dashboard Preview */
.dashboard-header-area {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--gold);
}
.dashboard-header-area h3 { color: var(--white); font-size: 18px; }
.dashboard-header-area span { color: rgba(245,245,245,0.70); font-size: 14px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.kpi-val { font-size: 26px; font-weight: 700; color: var(--teal); display: block; }
.kpi-lbl { font-size: 12px; color: var(--text-muted); }
.table-preview {
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.table-head {
  background: var(--teal-dark);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr 1fr;
  gap: 8px;
}
.th { font-size: 12px; font-weight: 700; color: rgba(245,245,245,0.9); }
.table-row {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.table-row:last-child { border-bottom: none; }
.td { font-size: 13px; color: var(--text); }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 600;
}
.badge-green { background: rgba(0,0,0,0.08); color: var(--teal-dark); }
.badge-orange { background: rgba(192,57,43,0.10); color: var(--gold); }
.badge-blue { background: rgba(59,130,246,0.1); color: #c0392b; }

/* Pharmacy */
.pharm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pharm-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.pharm-card h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.drug-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.drug-item:last-child { border-bottom: none; }
.drug-name { color: var(--text); font-weight: 500; }
.drug-stock { color: var(--text-muted); }
.stock-low { color: var(--gold); font-weight: 600; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-light); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hms-grid, .staff-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .hms-modules { grid-template-columns: 1fr; }
  .journey-steps::before { display: none; }
  .pharm-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PORTAL — Bouton navbar
   ================================================================ */
.nav-portal-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #c0392b, #a93226) !important;
  color: #fff !important;
  border: none !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  transition: all 0.2s !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(192,57,43,0.35) !important;
}
.nav-portal-btn:hover {
  background: linear-gradient(135deg,#e74c3c,#c0392b) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192,57,43,0.45) !important;
}

/* ================================================================
   PORTAL — Overlay plein écran
   ================================================================ */
#staffPortal {
  position: fixed; inset: 0; z-index: 3000;
  display: none; background: #eceff1;
}
#staffPortal.open { display: block; }

/* ── Login ── */
.p-login-screen {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 55%, #3d1a1a 100%);
  position: relative; overflow: hidden;
}
.p-login-screen::before {
  content: '';
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.p-login-screen::after {
  content: '';
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,245,245,0.04) 0%, transparent 70%);
  bottom: -50px; left: -50px; pointer-events: none;
}
.p-login-card {
  background: #fff; border-radius: 24px;
  padding: 52px 48px; width: 100%; max-width: 460px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  position: relative; z-index: 1;
}
.p-login-logo {
  width: 68px; height: 68px;
  background: linear-gradient(135deg,#2b2b2b,#444);
  border-radius: 18px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; border: 3px solid #c0392b;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.p-login-title {
  font-family: 'Playfair Display',serif;
  font-size: 28px; font-weight: 700; color: #1a1a1a;
  text-align: center; margin-bottom: 4px;
}
.p-login-sub { font-size: 13px; color: #888; text-align: center; margin-bottom: 32px; }
.p-login-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.p-login-divider::before, .p-login-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e8;
}
.p-login-divider span { font-size: 11px; color: #bbb; white-space: nowrap; }
.p-lf { margin-bottom: 18px; }
.p-lf label { display: block; font-size: 11.5px; font-weight: 700; color: #555; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 7px; }
.p-lf input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #e0e0e0; border-radius: 11px;
  font-size: 14px; font-family: 'DM Sans',sans-serif; color: #1a1a1a;
  background: #fafafa; outline: none; transition: all 0.2s;
}
.p-lf input:focus { border-color: #2b2b2b; background: #fff; box-shadow: 0 0 0 3px rgba(43,43,43,0.06); }
.p-lf input.err { border-color: #c0392b; background: rgba(192,57,43,0.03); }
.p-login-err {
  background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.25);
  color: #c0392b; border-radius: 10px; padding: 11px 14px;
  font-size: 13px; margin-bottom: 16px; display: none;
  animation: pShake 0.3s ease;
}
@keyframes pShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.p-login-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg,#2b2b2b,#444);
  color: #f5f5f5; border: none; border-radius: 11px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans',sans-serif; transition: all 0.2s;
  margin-bottom: 20px;
}
.p-login-btn:hover { background: linear-gradient(135deg,#c0392b,#a93226); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,57,43,0.3); }
.p-login-demo {
  background: #f8f9fa; border: 1px solid #e8e8e8; border-radius: 11px;
  padding: 14px 16px; font-size: 12px; color: #666; line-height: 1.8;
}
.p-login-demo strong { color: #2b2b2b; }
.p-back-btn { background: none; border: none; color: #aaa; font-size: 13px; cursor: pointer; text-decoration: underline; margin-top: 16px; display: block; width: 100%; text-align: center; font-family: 'DM Sans',sans-serif; }
.p-back-btn:hover { color: #555; }

/* ── App layout ── */
.p-app { display: flex; width: 100%; height: 100%; overflow: hidden; }

/* Sidebar */
.p-sidebar {
  width: 255px; flex-shrink: 0;
  background: #1e2329;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.p-sb-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 11px;
}
.p-sb-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg,#c0392b,#a93226);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.p-sb-brand { font-family: 'Playfair Display',serif; font-size: 14px; font-weight: 700; color: #f0f0f0; line-height: 1.2; }
.p-sb-brand-sub { font-size: 9.5px; color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase; }

.p-sb-user {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 11px;
}
.p-sb-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,#c0392b,#a93226);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.1);
}
.p-sb-uname { font-size: 13px; font-weight: 700; color: #f0f0f0; line-height: 1.2; }
.p-sb-urole { font-size: 11px; color: rgba(255,255,255,0.4); }
.p-sb-udot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #27ae60; box-shadow: 0 0 6px #27ae60; flex-shrink: 0; }

.p-sb-nav { padding: 10px 0; flex: 1; }
.p-sb-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  padding: 14px 18px 5px;
}
.p-sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 13.5px; font-weight: 500;
  transition: all 0.15s; border-left: 3px solid transparent;
  user-select: none; position: relative;
}
.p-sb-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.88); }
.p-sb-item.active {
  background: rgba(192,57,43,0.18); color: #fff;
  border-left-color: #c0392b;
}
.p-sb-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.p-sb-badge {
  margin-left: auto; background: #c0392b; color: #fff;
  font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 50px;
}

.p-sb-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.p-logout-btn {
  width: 100%; background: rgba(192,57,43,0.1); color: rgba(255,255,255,0.6);
  border: 1px solid rgba(192,57,43,0.25); padding: 10px;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all 0.2s; font-family: 'DM Sans',sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.p-logout-btn:hover { background: rgba(192,57,43,0.85); color: #fff; border-color: transparent; }

/* Main panel */
.p-main {
  flex: 1; overflow-y: auto; background: #eceff1;
  display: flex; flex-direction: column;
}
.p-topbar {
  background: #fff; border-bottom: 1px solid #e0e0e0;
  padding: 0 28px; height: 58px;
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.p-page-title { font-weight: 700; color: #1a1a1a; font-size: 16px; }
.p-breadcrumb { font-size: 12px; color: #aaa; }
.p-tb-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.p-icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: #f5f5f5; border: 1px solid #e8e8e8;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; position: relative;
}
.p-icon-btn:hover { background: #e8e8e8; }
.p-notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; background: #c0392b; border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.p-content { padding: 26px; flex: 1; }

/* Cards */
.pc { background: #fff; border-radius: 16px; border: 1px solid #e4e4e4; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.pc-head { padding: 18px 22px 0; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pc-title { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.pc-body { padding: 0 22px 22px; }

/* KPI strip */
.p-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; margin-bottom: 22px; }
.p-kpi { background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid #e4e4e4; box-shadow: 0 1px 5px rgba(0,0,0,0.04); }
.p-kpi-ico { font-size: 22px; margin-bottom: 8px; }
.p-kpi-v { font-size: 30px; font-weight: 800; color: #1a1a1a; line-height: 1; margin-bottom: 4px; }
.p-kpi-l { font-size: 11.5px; color: #888; margin-bottom: 4px; }
.p-kpi-t { font-size: 11.5px; font-weight: 600; }
.t-up { color: #27ae60; } .t-dn { color: #c0392b; } .t-neu { color: #888; }

/* Grid layouts */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.g2s { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }

/* Table */
.pt { width: 100%; border-collapse: collapse; }
.pt th { background: #f8f9fa; padding: 9px 13px; font-size: 11.5px; font-weight: 700; color: #666; text-align: left; border-bottom: 1px solid #e8e8e8; }
.pt td { padding: 10px 13px; font-size: 13px; color: #555; border-bottom: 1px solid #f0f0f0; }
.pt tr:last-child td { border-bottom: none; }
.pt tr:hover td { background: #fafafa; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 50px; font-size: 11.5px; font-weight: 700; }
.pill-green { background: rgba(39,174,96,0.1);  color: #27ae60; }
.pill-red   { background: rgba(192,57,43,0.1);  color: #c0392b; }
.pill-grey  { background: rgba(136,136,136,0.1); color: #777; }
.pill-blue  { background: rgba(52,152,219,0.1);  color: #2980b9; }
.pill-gold  { background: rgba(243,156,18,0.1);  color: #e67e22; }

/* Buttons */
.pb { padding: 9px 18px; border: none; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: all 0.18s; display: inline-flex; align-items: center; gap: 7px; }
.pb-dark  { background: #2b2b2b; color: #f5f5f5; }
.pb-dark:hover { background: #c0392b; }
.pb-red   { background: #c0392b; color: #fff; }
.pb-red:hover { background: #e74c3c; }
.pb-ghost { background: #fff; color: #2b2b2b; border: 1.5px solid #e0e0e0; }
.pb-ghost:hover { border-color: #2b2b2b; background: #f8f8f8; }
.pb-green { background: #27ae60; color: #fff; }
.pb-green:hover { background: #219a52; }

/* Form fields */
.pf { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.pf label { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.pf input, .pf select, .pf textarea {
  padding: 10px 13px; border: 1.5px solid #e0e0e0; border-radius: 9px;
  font-size: 13.5px; font-family: 'DM Sans',sans-serif; color: #1a1a1a;
  background: #fafafa; outline: none; transition: border-color 0.2s;
}
.pf input:focus, .pf select:focus, .pf textarea:focus { border-color: #2b2b2b; background: #fff; }
.pf textarea { resize: vertical; min-height: 80px; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-full { grid-column: 1/-1; }

/* Biometric page */
.bio-wrap {
  background: linear-gradient(160deg,#1a1a1a,#2b2b2b 60%,#3d1a1a);
  border-radius: 18px; padding: 36px 28px;
  text-align: center; position: relative; overflow: hidden;
}
.bio-wrap::before {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle,rgba(192,57,43,0.18),transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.bio-ring-outer {
  width: 172px; height: 172px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; position: relative; z-index: 1;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.bio-ring-outer.scanning {
  border-color: #c0392b;
  box-shadow: 0 0 0 6px rgba(192,57,43,0.12), 0 0 0 14px rgba(192,57,43,0.05);
  animation: ringPulse 1.2s ease-in-out infinite;
}
.bio-ring-outer.success { border-color: #27ae60; box-shadow: 0 0 0 8px rgba(39,174,96,0.15); }
.bio-ring-outer.error   { border-color: #c0392b; animation: pShake 0.3s ease; }
@keyframes ringPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
.bio-finger {
  width: 136px; height: 136px; border-radius: 50%;
  background: linear-gradient(135deg,#333,#1a1a1a);
  display: flex; align-items: center; justify-content: center;
  font-size: 58px; cursor: pointer; transition: all 0.25s;
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.5);
  user-select: none;
}
.bio-finger:hover { transform: scale(1.06); }
.bio-finger.scanning { animation: fpPulse 0.7s ease-in-out infinite; }
@keyframes fpPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.bio-progress-bar {
  width: 100%; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 18px; position: relative; z-index: 1;
}
.bio-progress-fill { height: 100%; width: 0%; border-radius: 2px; background: #c0392b; transition: width 0.1s linear; }

/* Clock in/out type btns */
.bio-type-row { display: flex; gap: 10px; margin-bottom: 20px; }
.bio-type-btn {
  flex: 1; padding: 11px; border-radius: 10px; border: 2px solid #e0e0e0;
  background: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans',sans-serif; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.bio-type-btn.selected-in  { background: #2b2b2b; color: #f5f5f5; border-color: #2b2b2b; }
.bio-type-btn.selected-out { background: #c0392b; color: #fff; border-color: #c0392b; }

/* Presence status */
.presence-status {
  display: flex; align-items: center; gap: 10px;
  background: #f8f9fa; border-radius: 11px; padding: 13px 16px;
  border: 1px solid #e8e8e8; margin-bottom: 14px;
}
.presence-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* Notifications list */
.p-notif-list { display: flex; flex-direction: column; gap: 0; }
.p-notif-item {
  display: flex; gap: 13px; padding: 14px 0;
  border-bottom: 1px solid #f2f2f2; align-items: flex-start;
}
.p-notif-item:last-child { border-bottom: none; }
.p-notif-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.p-notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; flex-shrink: 0; margin-top: 6px; }

/* Planning grid */
.plan-grid { display: grid; grid-template-columns: 64px repeat(7,1fr); gap: 0; background: #e4e4e4; border-radius: 12px; overflow: hidden; border: 1px solid #e4e4e4; }
.pg-h { background: #2b2b2b; color: rgba(245,245,245,0.85); font-size: 11px; font-weight: 700; text-align: center; padding: 9px 4px; }
.pg-time { background: #f5f5f5; font-size: 10px; color: #888; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 6px; text-align: center; }
.pg-cell { background: #fff; padding: 6px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.ps { border-radius: 7px; padding: 5px 7px; font-size: 11px; font-weight: 600; text-align: center; width: 100%; }
.ps-am { background: rgba(39,174,96,0.13); color: #27ae60; }
.ps-pm { background: rgba(192,57,43,0.12); color: #c0392b; }
.ps-nt { background: rgba(43,43,43,0.1); color: #444; }
.ps-off { background: #f5f5f5; color: #bbb; font-size: 10px; }
.ps-gd { background: rgba(243,156,18,0.12); color: #e67e22; }

/* Profile hero */
.prof-hero {
  background: linear-gradient(135deg,#1e2329,#2b3340);
  border-radius: 16px; padding: 28px; display: flex; align-items: center; gap: 22px;
  margin-bottom: 18px; border: 1px solid rgba(255,255,255,0.06);
}
.prof-big-av {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(135deg,#c0392b,#a93226);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; border: 3px solid rgba(255,255,255,0.15); flex-shrink: 0;
}
.prof-name { font-family: 'Playfair Display',serif; font-size: 22px; font-weight: 700; color: #f5f5f5; margin-bottom: 4px; }
.prof-meta { font-size: 13px; color: rgba(245,245,245,0.55); }
.prof-badges { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.prof-badge { padding: 4px 11px; border-radius: 50px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }

/* Doc item */
.p-doc { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #f8f9fa; border-radius: 10px; border: 1px solid #ebebeb; transition: all 0.18s; cursor: pointer; margin-bottom: 9px; }
.p-doc:hover { background: #fff; border-color: #c0392b; box-shadow: 0 2px 10px rgba(192,57,43,0.1); }
.p-doc-ico { width: 40px; height: 40px; border-radius: 9px; background: #2b2b2b; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.p-doc-name { font-size: 13.5px; font-weight: 600; color: #1a1a1a; }
.p-doc-meta { font-size: 11px; color: #999; margin-top: 2px; }
.p-doc-dl { margin-left: auto; font-size: 20px; color: #ccc; transition: color 0.2s; }
.p-doc:hover .p-doc-dl { color: #c0392b; }

/* PIN keypad */
.pin-kp { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; max-width: 240px; margin: 0 auto; }
.pin-k {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.12);
  color: #f5f5f5; border-radius: 11px; padding: 13px; font-size: 20px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans',sans-serif; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.pin-k:hover { background: rgba(255,255,255,0.16); }
.pin-k-del { background: rgba(192,57,43,0.2); border-color: rgba(192,57,43,0.3); color: #e74c3c; }
.pin-k-bio { background: rgba(39,174,96,0.15); border-color: rgba(39,174,96,0.25); color: #2ecc71; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: background 0.2s; }
.pin-dot.on { background: #c0392b; }

/* Conge cards */
.conge-req { background: #f8f9fa; border: 1px solid #e8e8e8; border-radius: 12px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.conge-ico { width: 38px; height: 38px; border-radius: 9px; background: rgba(39,174,96,0.12); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.conge-det { flex: 1; }
.conge-name { font-size: 13.5px; font-weight: 700; color: #1a1a1a; }
.conge-sub { font-size: 11.5px; color: #888; margin-top: 2px; }

/* Scrollbar */
.p-main::-webkit-scrollbar { width: 6px; }
.p-main::-webkit-scrollbar-track { background: transparent; }
.p-main::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
.p-sidebar::-webkit-scrollbar { width: 4px; }
.p-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

@media (max-width:768px) {
  .p-sidebar { width: 210px; }
  .g2,.g3,.g2s { grid-template-columns: 1fr; }
  .p-kpis { grid-template-columns: 1fr 1fr; }
  .pf-row { grid-template-columns: 1fr; }
}
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: fadeUp 0.6s ease both;
}
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-desc { animation-delay: 0.3s; }
.hero-btns { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }
