/* ==========================================================================
   Pharmacie Bab Echifa — Styles
   ========================================================================== */

:root {
  --pharma-green: #0FBE4F;
  --pharma-green-dark: #0BA340;
  --pharma-dark: #0A1F14;
  --pharma-cream: #FAFAF7;
  --wa-green: #25D366;
  --wa-green-dark: #1EBE5D;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--pharma-dark);
  background: var(--pharma-cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1300px; margin: 0 auto; gap: 20px;
}
.logo img { height: 44px; width: auto; }
.main-nav ul { display: flex; list-style: none; gap: 24px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--pharma-dark);
  padding: 8px 4px; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--pharma-green); }
.wa-btn-header {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: white;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  transition: background 0.2s;
}
.wa-btn-header:hover { background: var(--wa-green-dark); }
.wa-btn-header svg { width: 16px; height: 16px; fill: white; }

/* Hamburger mobile */
.hamburger { display: none; background: none; padding: 8px; }
.hamburger svg { width: 26px; height: 26px; stroke: var(--pharma-dark); }

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--pharma-cream), #ffffff 40%, #E8F8EF);
  border-bottom: 1px solid var(--gray-100);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.pill {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  background: #E8F8EF; color: var(--pharma-green-dark); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.15;
  margin-bottom: 18px; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--pharma-green); }
.hero p.lead {
  font-size: 18px; color: var(--gray-600); margin-bottom: 28px; max-width: 480px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px; transition: all 0.2s;
}
.btn-wa { background: var(--wa-green); color: white; box-shadow: var(--shadow-md); }
.btn-wa:hover { background: var(--wa-green-dark); transform: translateY(-2px); }
.btn-outline { background: white; color: var(--pharma-dark); border: 2px solid var(--pharma-dark); }
.btn-outline:hover { background: var(--pharma-dark); color: white; }
.btn-primary { background: var(--pharma-green); color: white; }
.btn-primary:hover { background: var(--pharma-green-dark); }
.btn-white { background: white; color: var(--pharma-green); font-weight: 700; }
.btn-white:hover { background: var(--gray-100); }
.hero-image { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }

/* Sections */
.section { padding: 80px 0; }
.section h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.01em; line-height: 1.2;
}
.section h2 .accent { color: var(--pharma-green); }
.section-intro {
  text-align: center; color: var(--gray-600); font-size: 17px;
  max-width: 640px; margin: 0 auto 48px;
}
.section-title-center { text-align: center; }

/* 4 piliers */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.pillar-card {
  background: white; padding: 32px; border-radius: var(--radius-2xl);
  border-top: 4px solid var(--pharma-green); box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pillar-icon {
  width: 56px; height: 56px; background: #E8F8EF; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.pillar-icon svg { width: 30px; height: 30px; stroke: var(--pharma-green); }
.pillar-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.pillar-card p { color: var(--gray-600); font-size: 15px; margin-bottom: 16px; }
.pillar-card a.pillar-link {
  color: var(--pharma-green); font-weight: 600; font-size: 14px;
}
.pillar-card a.pillar-link:hover { text-decoration: underline; }

/* Localisation dark */
.localisation-section { background: var(--pharma-dark); color: white; padding: 80px 0; }
.loc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  margin-bottom: 32px;
}
.loc-grid h2 { color: white; }
.loc-info p { color: var(--gray-300); margin-bottom: 24px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--gray-200);
}
.contact-list li svg { width: 20px; height: 20px; stroke: var(--pharma-green); flex-shrink: 0; }
.contact-list a:hover { color: var(--pharma-green); }
.loc-photo { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); background: white; }
.loc-photo img { width: 100%; }
.loc-photo .caption {
  background: rgba(255,255,255,0.05); padding: 10px; text-align: center;
  font-size: 13px; color: var(--gray-300);
}
.map-wrapper { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.map-wrapper iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Sub-pages hero */
.subpage-hero {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--gray-100);
}
.subpage-hero.blue { background: linear-gradient(135deg, #EFF6FF, var(--pharma-cream)); }
.subpage-hero.red { background: linear-gradient(135deg, #FEF2F2, var(--pharma-cream)); }
.subpage-hero.purple { background: linear-gradient(135deg, #F5F3FF, var(--pharma-cream)); }
.subpage-hero.amber { background: linear-gradient(135deg, #FFFBEB, var(--pharma-cream)); }
.subpage-hero.green { background: linear-gradient(135deg, #ECFDF5, var(--pharma-cream)); }
.subpage-hero.gray { background: linear-gradient(135deg, #F9FAFB, var(--pharma-cream)); }
.subpage-hero .pill.pill-blue { background: #DBEAFE; color: #1E40AF; }
.subpage-hero .pill.pill-red { background: #FEE2E2; color: #991B1B; }
.subpage-hero .pill.pill-purple { background: #EDE9FE; color: #5B21B6; }
.subpage-hero .pill.pill-amber { background: #FEF3C7; color: #92400E; }
.subpage-hero .pill.pill-green { background: #D1FAE5; color: #065F46; }
.subpage-hero .pill.pill-gray { background: var(--gray-200); color: var(--gray-700); }
.subpage-hero h1 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15;
  margin-bottom: 18px; letter-spacing: -0.02em;
}
.subpage-hero h1 .accent { color: var(--pharma-green); }
.subpage-hero p.lead {
  font-size: 18px; color: var(--gray-600); margin-bottom: 24px;
}
.badges-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.badge {
  background: white; padding: 8px 16px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Content boxes */
.content-block { padding: 60px 0; }
.content-block h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  margin-bottom: 20px;
}
.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.info-card {
  background: white; padding: 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.info-card b { color: var(--pharma-green); }
.info-card .subtext { color: var(--gray-600); font-size: 14px; margin-top: 4px; display: block; }
.info-card.center { text-align: center; padding: 24px; }
.info-card.center .icon-lg { font-size: 32px; margin-bottom: 10px; }
.info-card.emphasis { border: 2px solid var(--wa-green); }

.step-card {
  background: white; padding: 22px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 12px;
}
.step-number {
  width: 36px; height: 36px; background: var(--pharma-green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.step-card b { display: block; margin-bottom: 4px; }

.insurance-card {
  background: white; padding: 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
  border-left: 4px solid var(--gray-400);
}
.insurance-card.wafa { border-left-color: #2563EB; }
.insurance-card.sanlam { border-left-color: #10B981; }
.insurance-card.cnss { border-left-color: #F97316; }
.insurance-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.insurance-card p { color: var(--gray-700); font-size: 14px; margin-bottom: 12px; }
.insurance-card ul { list-style: none; }
.insurance-card ul li { color: var(--gray-600); font-size: 14px; padding: 4px 0; }
.insurance-card ul li::before { content: '• '; color: var(--pharma-green); font-weight: 700; }
.insurance-card .warning-inline {
  background: #FFF7ED; border-radius: var(--radius-md); padding: 10px 12px;
  font-size: 13px; color: #9A3412; margin-top: 12px;
}

.warning-box {
  background: #FFFBEB; border-left: 4px solid #F59E0B;
  padding: 16px 20px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 24px; display: flex; gap: 12px;
}
.warning-box .warning-icon { font-size: 22px; }
.warning-box h4 { color: #78350F; font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.warning-box p { color: #92400E; font-size: 14px; }

/* CTA box */
.cta-box {
  background: var(--pharma-green); color: white; padding: 40px;
  border-radius: var(--radius-2xl); text-align: center; margin-top: 20px;
}
.cta-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.cta-box p { opacity: 0.9; margin-bottom: 24px; }
.cta-box.dark { background: var(--pharma-dark); }

/* Formulaire */
.contact-form {
  background: white; padding: 32px; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md); margin-top: 24px;
}
.contact-form h3 { margin-bottom: 20px; font-size: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-md); font-size: 15px; font-family: inherit;
  transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--pharma-green);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit {
  background: var(--pharma-green); color: white; padding: 14px 28px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 15px;
  transition: all 0.2s; width: 100%;
}
.form-submit:hover { background: var(--pharma-green-dark); }

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: white; padding: 36px 28px; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md); border-top: 4px solid var(--pharma-green);
  text-align: center; transition: all 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.team-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.team-card .role {
  color: var(--pharma-green); font-weight: 600; font-size: 14px;
  margin-bottom: 14px; display: block;
}
.team-card p { color: var(--gray-600); font-size: 14px; margin-bottom: 12px; }
.team-card .diploma { color: var(--gray-500); font-size: 12px; font-style: italic; }

/* Politique - prose */
.prose h2 {
  font-size: 24px; font-weight: 700; margin-top: 40px; margin-bottom: 16px;
  color: var(--pharma-dark);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--gray-700); margin-bottom: 16px; line-height: 1.7; }
.prose .doctrine-box {
  background: white; padding: 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.prose .updated-note {
  font-size: 12px; color: var(--gray-500);
  border-top: 1px solid var(--gray-200); padding-top: 20px; margin-top: 32px;
}
.prose a { color: var(--pharma-green); }
.prose a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--pharma-dark); color: var(--gray-300); padding: 60px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px;
}
.footer-col h4 { color: white; font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.footer-col ul { list-style: none; font-size: 14px; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul a:hover { color: var(--pharma-green); }
.footer-col .logo-footer {
  background: white; padding: 6px; border-radius: var(--radius-md);
  display: inline-block; margin-bottom: 14px;
}
.footer-col .logo-footer img { height: 36px; }
.footer-bottom {
  text-align: center; font-size: 12px; color: var(--gray-500);
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: var(--wa-green); color: white;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl);
  animation: waPulse 2s infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: white; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), var(--shadow-xl); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0), var(--shadow-xl); }
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 200;
  background: white; padding: 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); max-width: 500px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 14px; color: var(--gray-700); margin-bottom: 12px; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; }
.cookie-banner button {
  padding: 8px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600;
}
.cookie-banner .btn-accept { background: var(--pharma-green); color: white; }
.cookie-banner .btn-decline { background: var(--gray-200); color: var(--pharma-dark); }

/* Blog */
.blog-hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #F0FDF4, var(--pharma-cream));
  border-bottom: 1px solid var(--gray-100);
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.blog-hero h1 .accent { color: var(--pharma-green); }
.blog-hero p.lead { font-size: 18px; color: var(--gray-600); max-width: 700px; }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-bottom: 40px;
}
.blog-card {
  background: white; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md); transition: all 0.3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat {
  display: inline-block; background: #E8F8EF; color: var(--pharma-green-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: var(--radius-full); margin-bottom: 12px;
  align-self: flex-start; text-transform: uppercase;
}
.blog-card h2 {
  font-size: 19px; font-weight: 700; margin-bottom: 10px; line-height: 1.3;
}
.blog-card h2 a { color: var(--pharma-dark); }
.blog-card h2 a:hover { color: var(--pharma-green); }
.blog-card p.excerpt {
  color: var(--gray-600); font-size: 14px; margin-bottom: 16px; flex: 1;
}
.blog-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-500); border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}
.blog-card .read-more { color: var(--pharma-green); font-weight: 600; }

/* Article */
.article-hero {
  padding: 60px 0 30px;
  background: linear-gradient(135deg, #F0FDF4, var(--pharma-cream));
  border-bottom: 1px solid var(--gray-100);
}
.article-hero .breadcrumb {
  font-size: 13px; color: var(--gray-500); margin-bottom: 12px;
}
.article-hero .breadcrumb a { color: var(--pharma-green); }
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-hero .cat {
  display: inline-block; background: #E8F8EF; color: var(--pharma-green-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: var(--radius-full); margin-bottom: 14px;
  text-transform: uppercase;
}
.article-hero h1 {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.article-hero .article-meta {
  color: var(--gray-500); font-size: 14px;
}

.article-body {
  padding: 50px 0 60px; max-width: 780px; margin: 0 auto;
}
.article-body h2 {
  font-size: 24px; font-weight: 700; margin-top: 36px; margin-bottom: 14px;
  color: var(--pharma-dark); letter-spacing: -0.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 19px; font-weight: 700; margin-top: 26px; margin-bottom: 10px;
  color: var(--pharma-dark);
}
.article-body p {
  color: var(--gray-700); margin-bottom: 16px; font-size: 16px; line-height: 1.75;
}
.article-body ul, .article-body ol {
  margin: 0 0 16px 20px; color: var(--gray-700); font-size: 16px; line-height: 1.75;
}
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--pharma-green); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--pharma-green); background: #F0FDF4;
  padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: var(--gray-700);
}
.article-body .callout {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 24px 0;
}
.article-body .callout.warning {
  background: #FFFBEB; border-color: #FCD34D;
}
.article-body .callout.warning strong { color: #78350F; }
.article-body .callout.info {
  background: #EFF6FF; border-color: #93C5FD;
}
.article-body .callout.info strong { color: #1E40AF; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}
.article-body table th, .article-body table td {
  padding: 10px 14px; border: 1px solid var(--gray-200); text-align: left;
}
.article-body table th { background: var(--gray-100); font-weight: 700; }

.article-cta {
  background: var(--pharma-green); color: white;
  padding: 32px; border-radius: var(--radius-xl);
  text-align: center; margin: 40px 0 20px;
}
.article-cta h3 { font-size: 22px; margin-bottom: 12px; }
.article-cta p { opacity: 0.95; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .main-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 20px; box-shadow: var(--shadow-lg);
  }
  .main-nav.open ul { flex-direction: column; gap: 8px; }
  .main-nav.open ul li a { display: block; padding: 12px; border-radius: var(--radius-md); }
  .main-nav.open ul li a:hover { background: var(--gray-100); }
  .hero-grid, .loc-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars-grid, .grid-2col, .grid-3col, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 50px; }
  .subpage-hero { padding: 40px 0 30px; }
  .wa-btn-header span { display: none; }
  .wa-btn-header { padding: 10px; }
}
