/* ==========================================================================
   PHARMAFLOW AFRICA - PUBLIC WEBSITE & SHOWCASE STYLES
   Inspiré directement de https://www.pharmaflow.africa/
   ========================================================================== */

:root {
  --pf-primary: #063b25;
  --pf-primary-dark: #042919;
  --pf-primary-light: #0d5f3a;
  --pf-accent: #00b894;
  --pf-accent-hover: #00a383;
  --pf-accent-subtle: #e6f9f4;
  --pf-dark: #0f172a;
  --pf-text-main: #1e293b;
  --pf-text-muted: #64748b;
  --pf-text-light: #94a3b8;
  --pf-bg-light: #f8fafc;
  --pf-bg-white: #ffffff;
  --pf-card-border: #e2e8f0;
  --pf-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --pf-shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --pf-shadow-lg: 0 12px 28px rgba(0,0,0,0.09);
  --pf-shadow-xl: 0 20px 40px rgba(6,59,37,0.12);
  --pf-radius-sm: 8px;
  --pf-radius-md: 14px;
  --pf-radius-lg: 20px;
  --pf-radius-full: 9999px;
  --pf-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--pf-bg-white);
  color: var(--pf-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Top Announcement Banner */
.announcement-bar {
  background: var(--pf-primary-dark);
  color: #a7f3d0;
  padding: 9px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.announcement-bar .sparkle {
  color: #34d399;
}

/* Public Navbar */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pf-card-border);
  z-index: 1000;
  transition: var(--pf-transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00b894, #063b25);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 184, 148, 0.25);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pf-primary);
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.brand-text span {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pf-text-main);
  transition: var(--pf-transition);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--pf-accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pf-accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Custom Buttons */
.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--pf-radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--pf-transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pf-btn-primary {
  background: var(--pf-primary);
  color: white;
}
.pf-btn-primary:hover {
  background: var(--pf-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 59, 37, 0.25);
}

.pf-btn-accent {
  background: var(--pf-accent);
  color: white;
}
.pf-btn-accent:hover {
  background: var(--pf-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 184, 148, 0.35);
}

.pf-btn-outline {
  border-color: var(--pf-card-border);
  background: white;
  color: var(--pf-text-main);
}
.pf-btn-outline:hover {
  background: var(--pf-bg-light);
  border-color: #cbd5e1;
}

.pf-btn-text {
  background: transparent;
  color: var(--pf-text-main);
  padding: 8px 14px;
}
.pf-btn-text:hover {
  color: var(--pf-accent);
}

.pf-btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
  border-radius: var(--pf-radius-full);
}

/* Section Header styling */
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pf-radius-full);
  background: var(--pf-accent-subtle);
  color: var(--pf-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pf-primary);
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--pf-text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 80px;
  background: radial-gradient(circle at top right, #e8f5e9 0%, #ffffff 60%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content h2 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--pf-primary);
  margin-bottom: 20px;
}

.hero-content h2 span {
  color: var(--pf-accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--pf-text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  font-weight: 600;
}

.hero-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Dashboard Preview Card */
.dashboard-preview-card {
  background: white;
  border-radius: var(--pf-radius-lg);
  border: 1px solid var(--pf-card-border);
  box-shadow: var(--pf-shadow-xl);
  overflow: hidden;
  position: relative;
  transition: var(--pf-transition);
}

.dashboard-preview-card:hover {
  transform: translateY(-4px);
}

.preview-topbar {
  background: var(--pf-primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.preview-body {
  padding: 24px;
  background: #fdfdfd;
}

.preview-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.preview-stat-box {
  background: var(--pf-bg-light);
  border: 1px solid var(--pf-card-border);
  border-radius: var(--pf-radius-md);
  padding: 14px;
}

.preview-stat-label {
  font-size: 0.775rem;
  color: var(--pf-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.preview-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pf-primary);
}

.preview-stat-val.accent {
  color: var(--pf-accent);
}

.preview-recent-activity {
  background: white;
  border: 1px solid var(--pf-card-border);
  border-radius: var(--pf-radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

/* Metric / Counter Bar */
.counter-bar-section {
  background: var(--pf-primary);
  color: white;
  padding: 44px 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  text-align: center;
}

.counter-item .number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #42d66b;
  margin-bottom: 4px;
}

.counter-item .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 90px 0;
  background: var(--pf-bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--pf-bg-white);
  border: 1px solid var(--pf-card-border);
  border-radius: var(--pf-radius-lg);
  padding: 32px 28px;
  transition: var(--pf-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--pf-accent);
  box-shadow: var(--pf-shadow-lg);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  background: var(--pf-accent-subtle);
  color: var(--pf-primary);
  border-radius: var(--pf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--pf-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pf-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--pf-transition);
}

.feature-link:hover {
  gap: 10px;
  color: var(--pf-primary);
}

/* Roles / Audience Section */
.roles-section {
  padding: 90px 0;
  background: var(--pf-bg-light);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.role-box {
  background: white;
  border-radius: var(--pf-radius-lg);
  border: 1px solid var(--pf-card-border);
  padding: 30px 24px;
  box-shadow: var(--pf-shadow-sm);
  transition: var(--pf-transition);
}

.role-box:hover {
  box-shadow: var(--pf-shadow-md);
  transform: translateY(-4px);
}

.role-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pf-accent);
  margin-bottom: 10px;
}

.role-box .role-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.role-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pf-primary);
  margin-bottom: 8px;
}

.role-box p {
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  margin-bottom: 16px;
}

/* Steps Section */
.steps-section {
  padding: 90px 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.step-card {
  background: var(--pf-bg-light);
  border: 1px solid var(--pf-card-border);
  border-radius: var(--pf-radius-lg);
  padding: 26px;
}

.step-card .step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pf-accent);
  margin-bottom: 8px;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--pf-text-muted);
}

/* Pricing Section */
.pricing-section {
  padding: 90px 0;
  background: var(--pf-bg-light);
}

.pricing-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-plan-card {
  background: white;
  border-radius: var(--pf-radius-lg);
  border: 1px solid var(--pf-card-border);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--pf-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-plan-card.recommended {
  border: 2px solid var(--pf-accent);
  box-shadow: var(--pf-shadow-xl);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--pf-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--pf-radius-full);
  letter-spacing: 0.5px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--pf-primary);
  line-height: 1.1;
  margin: 14px 0 24px;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pf-text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--pf-text-main);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.plan-features li i {
  color: var(--pf-accent);
}

/* Security Banner */
.security-section {
  padding: 80px 0;
  background: var(--pf-primary-dark);
  color: white;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.security-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pf-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.security-item i {
  color: #34d399;
  font-size: 20px;
}

/* CTA Banner */
.cta-banner-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-light));
  color: white;
  text-align: center;
}

.cta-banner-section h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Modal Comptes de Démo & Essai */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 59, 37, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.demo-modal-overlay.active {
  display: flex;
}

.demo-modal-card {
  background: white;
  border-radius: var(--pf-radius-lg);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--pf-shadow-xl);
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.demo-modal-header {
  background: var(--pf-primary);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-modal-body {
  padding: 24px;
}

.demo-account-item {
  background: var(--pf-bg-light);
  border: 1px solid var(--pf-card-border);
  border-radius: var(--pf-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: var(--pf-transition);
}

.demo-account-item:hover {
  background: #f0fdf4;
  border-color: var(--pf-accent);
}

/* Footer */
.site-footer {
  background: #042416;
  color: white;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: var(--pf-transition);
}

.footer-col ul li a:hover {
  color: #34d399;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
  color: var(--pf-accent);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h2 {
    font-size: 2.6rem;
  }
  .hero-content p {
    margin: 0 auto 30px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-badges {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-content h2 {
    font-size: 2.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* LOGO OFFICIEL (pages à en-tête landing) — le symbole PharmaFlow Africa (croix, feuille, Afrique) remplace l'ancienne tuile verte à croix dessinée. */
.pf-home-logo-mark, .pf-logo-icon, .brand-badge-logo {
  width: 46px !important; height: 46px !important; min-width: 46px !important; min-height: 46px !important; max-width: 46px !important; max-height: 46px !important;
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; overflow: visible !important;
}
.pf-home-logo-mark img, .brand-badge-logo img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; }
.pf-guide-footer .pf-home-logo-mark, .pf-footer .pf-home-logo-mark, .pf-footer .pf-logo-icon {
  background: #ffffff !important; border-radius: 12px !important; padding: 4px !important; width: 50px !important; height: 50px !important; min-width: 50px !important; min-height: 50px !important; max-width: 50px !important; max-height: 50px !important;
}
