/* ==========================================================================
   SAHEL MEDIC GROUP - LABORATOIRE CSS v3.0
   Design System: Modern Healthcare SaaS Platform
   Harmonisé avec bases.css (variables --sahel-*, --space-*, --radius-*)
   ========================================================================== */

/* ==========================================================================
   VARIABLES LOCALES (spécifiques au module laboratoire)
   ========================================================================== */

:root {
  /* Couleurs spécifiques laboratoire — alignées avec le thème global */
  --lab-accent: #059669;          /* = --sahel-accent */
  --lab-accent-light: #047857;    /* = --sahel-accent-dark */
  --lab-success: #34d399;         /* Emerald-400 : accent clair sur fond sombre */

  /* RGB pour transparence */
  --lab-accent-rgb: 5, 150, 105;  /* = --sahel-accent-rgb */
  --lab-success-rgb: 52, 211, 153;

  /* Gradients spécifiques */
  --lab-gradient-accent: linear-gradient(135deg, #059669 0%, #047857 100%); /* = --gradient-accent */
  --lab-gradient-hero: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

/* ==========================================================================
   HERO SECTION - LABORATOIRE
   ========================================================================== */

.labo-hero {
  background: var(--lab-gradient-hero);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(var(--sahel-primary-rgb), 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(var(--sahel-primary-rgb), 0.1);
  border: 2px solid rgba(var(--sahel-primary-rgb), 0.2);
  color: var(--sahel-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  animation: slideDown 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--sahel-dark);
  margin-bottom: var(--space-lg);
  animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--sahel-gray);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--sahel-primary), var(--sahel-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

/* Security Indicator */
.security-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(var(--lab-accent-rgb), 0.1);
  border-left: 4px solid var(--lab-accent);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sahel-dark);
  margin-bottom: var(--space-xl);
  animation: slideUp 0.8s ease-out 0.4s both;
}

.security-indicator i {
  color: var(--lab-accent);
  font-size: 1.25rem;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  animation: slideUp 0.8s ease-out 0.6s both;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-hero-primary {
  background: var(--lab-gradient-accent);
  color: var(--sahel-white);
  box-shadow: 0 8px 24px rgba(var(--lab-success-rgb), 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--lab-success-rgb), 0.4);
  color: var(--sahel-white);
}

.btn-hero-secondary {
  background: var(--sahel-white);
  border: 2px solid var(--sahel-primary);
  color: var(--sahel-primary);
}

.btn-hero-secondary:hover {
  background: var(--sahel-primary);
  color: var(--sahel-white);
  transform: translateY(-3px);
}

/* Hero Quick Stats */
.hero-quick-stats {
  display: flex;
  gap: var(--space-xl);
  animation: slideUp 0.8s ease-out 0.8s both;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--sahel-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sahel-gray-light);
  transition: all var(--transition-base);
}

.quick-stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quick-stat-item .stat-icon {
  width: 48px;
  height: 48px;
  background: var(--lab-gradient-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sahel-white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sahel-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--sahel-gray);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper {
  position: relative;
  height: 660px;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12), 0 10px 20px rgba(var(--sahel-accent-rgb), 0.05);
  border: 10px solid #ffffff;
}

.hero-image-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 60px 100px rgba(15, 23, 42, 0.18);
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-glow {
  position: absolute;
  inset: -30px;
  background: var(--lab-gradient-accent);
  opacity: 0.2;
  filter: blur(60px);
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--sahel-white);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: float 3s ease-in-out infinite 1.5s;
  z-index: 10;
}

.floating-badge .badge-icon {
  width: 50px;
  height: 50px;
  background: var(--lab-gradient-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--sahel-white);
}

.badge-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sahel-dark);
}

.badge-label {
  font-size: 0.875rem;
  color: var(--sahel-gray);
}

/* ==========================================================================
   PARCOURS SECTION (ÉTAPES)
   ========================================================================== */

.section-parcours {
  padding: var(--space-4xl) 0;
  background: var(--sahel-white);
}

.parcours-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
  align-items: stretch;
}

.parcours-step {
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: var(--sahel-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(var(--sahel-primary-rgb), 0.3);
  z-index: 5;
}

.step-card {
  background: var(--sahel-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--sahel-gray-light);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--sahel-primary);
}

.step-card-success {
  background: linear-gradient(
    135deg,
    rgba(var(--lab-success-rgb), 0.05),
    rgba(var(--lab-success-rgb), 0.02)
  );
  border-color: var(--lab-accent);
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
  color: var(--sahel-white);
  transition: transform var(--transition-base);
}

.step-card:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
}

.step-icon-primary {
  background: var(--gradient-primary);
}

.step-icon-info {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

.step-icon-warning {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.step-icon-success {
  background: var(--lab-gradient-accent);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sahel-dark);
  text-align: center;
  margin-bottom: var(--space-md);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--sahel-gray);
  text-align: center;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(var(--sahel-primary-rgb), 0.1);
  color: var(--sahel-primary);
  padding: 0.35rem var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.step-connector {
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--sahel-primary) 0%,
    rgba(var(--sahel-primary-rgb), 0.1) 100%
  );
  z-index: 1;
}

.parcours-step:last-child .step-connector {
  display: none;
}

/* ==========================================================================
   RÉSULTATS SECTION (FORMULAIRE)
   ========================================================================== */

.section-resultats {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

/* Intro block au-dessus du wrapper */
.resultats-section-intro {
  margin-bottom: 40px;
}

.resultats-intro-block {
  display: inline-block;
}

.resultats-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

/* ── Wrapper : 2 panneaux côte à côte ── */
.resultats-wrapper {
  display: flex;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ── Panneau décoratif gauche ── */
.resultats-deco {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #0d4f3c 0%, #062c50 60%, #041f38 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.deco-glow-1,
.deco-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.deco-glow-1 {
  width: 280px;
  height: 280px;
  background: rgba(5, 150, 105, 0.18);
  top: -80px;
  right: -80px;
}

.deco-glow-2 {
  width: 200px;
  height: 200px;
  background: rgba(10, 66, 117, 0.25);
  bottom: -60px;
  left: -60px;
}

.deco-shield-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}

.deco-shield {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #059669, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
  flex-shrink: 0;
}

.deco-ssl-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deco-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
}

.deco-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
}

/* Trust list */
.deco-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.deco-trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.deco-trust-list li i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(5, 150, 105, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Steps */
.deco-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.deco-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.dstep-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.25);
  border: 2px solid #059669;
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dstep-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  letter-spacing: 0.02em;
}

.dstep-arrow {
  color: rgba(5, 150, 105, 0.5);
  font-size: 0.7rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* ── Panneau formulaire droite ── */
.resultats-form-container {
  flex: 1;
  background: #ffffff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.resultats-form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
}

.resultats-icon {
  width: 52px;
  height: 52px;
  background: var(--lab-gradient-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
  flex-shrink: 0;
}

.resultats-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.2;
}

.resultats-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Form fields ── */
.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label .required { color: #ef4444; }

.input-wrapper {
  display: flex;
  align-items: stretch;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrapper:focus-within {
  background: #fff;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.input-icon {
  padding: 0 16px;
  color: #059669;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 12px 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.8rem;
}

.form-hint i { color: #059669; font-size: 0.75rem; }

/* ── Bouton soumission pleine largeur ── */
.btn-submit-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.btn-submit-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.45);
}

.btn-submit-full:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-submit-full .btn-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* legacy btn-submit (keep for JS compatibility) */
.btn-submit {
  display: none;
}

/* ── Hint test codes ── */
.form-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #64748b; font-size: 0.8rem; }
.form-hint i { color: #059669; }

/* ── Mention Sahel Lab ── */
.sahel-lab-mention {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.sahel-lab-mention-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border: 1px solid #d1fae5;
  border-radius: 12px;
}

.slm-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #059669, #0a4275);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.slm-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.slm-label { font-weight: 500; }

.slm-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: #059669;
  letter-spacing: -0.01em;
}

.slm-desc {
  color: #94a3b8;
  font-size: 0.78rem;
}

/* Result Status */
.result-status { margin-top: 16px; }

/* ==========================================================================
   AVANTAGES SECTION - ALIGNEMENT HORIZONTAL
   ========================================================================== */

.section-avantages {
  padding: var(--space-4xl) 0;
  background: var(--sahel-white);
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.avantage-card {
  background: var(--sahel-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--sahel-gray-light);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.avantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--lab-accent);
}

.avantage-icon {
  font-size: 3rem;
  color: var(--sahel-primary);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.avantage-card:hover .avantage-icon {
  transform: scale(1.2) rotate(10deg);
  color: var(--lab-accent);
}

.avantage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sahel-dark);
  margin-bottom: var(--space-md);
}

.avantage-desc {
  font-size: 0.95rem;
  color: var(--sahel-gray);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* ==========================================================================
   RESPONSIVE - AVANTAGES
   ========================================================================== */

/* Desktop - 4 colonnes */
@media (min-width: 1200px) {
  .avantages-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Tablet Landscape - 4 colonnes */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .avantages-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-md);
  }

  .avantage-card {
    padding: var(--space-lg);
  }

  .avantage-icon {
    font-size: 2.5rem;
  }

  .avantage-title {
    font-size: 1rem;
  }
}

/* Tablet Portrait - 2 colonnes */
@media (min-width: 768px) and (max-width: 991.98px) {
  .avantages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile - 1 colonne */
@media (max-width: 767.98px) {
  .avantages-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin: 0 auto;
  }

  .avantage-card {
    padding: var(--space-lg);
  }

  .avantage-icon {
    font-size: 2.5rem;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .section-avantages {
    padding: var(--space-3xl) 0;
  }

  .avantage-title {
    font-size: 1.1rem;
  }

  .avantage-desc {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */

.section-metrics {
  padding: var(--space-4xl) 0;
  background: var(--sahel-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.metric-card {
  background: var(--sahel-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--sahel-gray-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lab-gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.metric-icon {
  font-size: 2.5rem;
  color: var(--lab-accent);
  margin-bottom: var(--space-md);
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sahel-dark);
  line-height: 1;
  display: inline;
}

.metric-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lab-accent);
  display: inline;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--sahel-gray);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.section-cta {
  padding: var(--space-4xl) 0;
  background: var(--sahel-white);
}

.cta-wrapper {
  background: var(--sahel-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sahel-gray-light);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--lab-gradient-accent);
  color: var(--sahel-white);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--sahel-dark);
  margin-bottom: var(--space-md);
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--sahel-gray);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--sahel-dark);
  font-weight: 500;
  font-size: 1rem;
}

.cta-list i {
  color: var(--lab-accent);
  font-size: 1.25rem;
}

/* CTA Actions */
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  text-decoration: none;
  text-align: center;
}

.btn-cta-primary {
  background: var(--lab-gradient-accent);
  color: var(--sahel-white);
  border: none;
  box-shadow: 0 8px 24px rgba(var(--lab-success-rgb), 0.3);
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--lab-success-rgb), 0.4);
  color: var(--sahel-white);
}

.btn-cta-secondary {
  background: var(--sahel-white);
  border: 2px solid var(--sahel-primary);
  color: var(--sahel-primary);
}

.btn-cta-secondary:hover {
  background: var(--sahel-primary);
  color: var(--sahel-white);
  transform: translateY(-3px);
}

.cta-features {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--sahel-gray-light);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--sahel-gray);
  font-size: 0.875rem;
}

.feature-item i {
  color: var(--lab-accent);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Desktop */
@media (min-width: 992px) {
  .parcours-timeline {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .step-connector {
    display: block;
  }
}

/* Tablet */
@media (max-width: 1199.98px) {
  .hero-image-wrapper {
    height: 500px;
  }
}

@media (max-width: 991.98px) {
  .hero-image-wrapper {
    height: 400px;
    border-radius: 40px;
    border-width: 6px;
  }

  .hero-visual {
    margin-top: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .step-connector {
    display: none;
  }

  .parcours-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .resultats-wrapper {
    flex-direction: column;
  }

  .resultats-deco {
    flex: none;
    padding: 36px 32px;
  }

  .resultats-form-container {
    padding: 36px 32px;
  }
}

@media (max-width: 374.98px) {
  .hero-image-wrapper {
    height: 260px;
    border-radius: 24px;
    border-width: 4px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .labo-hero,
  .section-parcours,
  .section-resultats,
  .section-avantages,
  .section-metrics,
  .section-cta {
    padding: var(--space-3xl) 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-quick-stats {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin-top: var(--space-lg);
  }

  .parcours-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .step-number {
    top: -25px;
  }

  .resultats-deco { padding: 28px 24px; }
  .resultats-form-container { padding: 28px 24px; }
  .deco-steps { display: none; }

  .avantages-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .cta-wrapper {
    padding: var(--space-lg);
  }

  .cta-features {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .metric-value {
    font-size: 2.5rem;
  }

  .resultats-title { font-size: 1.4rem; }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: var(--space-lg);
    font-size: 1.1rem;
  }
}

/* Ultra-Wide Screens */
@media (min-width: 1440px) {
  .hero-title {
    max-width: 900px;
  }
}

/* ==========================================================================
   VALIDATION STATES
   ========================================================================== */

.form-input.is-valid {
  border-color: var(--lab-accent) !important;
}

.form-input.is-invalid {
  border-color: var(--sahel-danger) !important;
}

/* ==========================================================================
   LAB DROPDOWN — Custom select laboratoire
   ========================================================================== */

.lab-dropdown {
  position: relative;
}

/* Trigger button */
.lab-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  height: 54px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  color: #94a3b8;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
  text-align: left;
}
.lab-dd-trigger:hover,
.lab-dd-trigger:focus {
  border-color: var(--lab-accent);
  box-shadow: 0 0 0 4px rgba(var(--lab-accent-rgb), 0.1);
  outline: none;
}
.lab-dd-trigger[aria-expanded="true"] {
  border-color: var(--lab-accent);
  box-shadow: 0 0 0 4px rgba(var(--lab-accent-rgb), 0.1);
}
.lab-dd-trigger.lab-dd-selected-state {
  color: #1e293b;
}
.lab-dd-icon {
  color: var(--lab-accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.lab-dd-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-dd-arrow {
  font-size: 0.72rem;
  color: #94a3b8;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.lab-dd-trigger[aria-expanded="true"] .lab-dd-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel — position:fixed via JS */
.lab-dd-panel {
  position: fixed;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  z-index: 9998;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: #059669 #f1f5f9;
}
.lab-dd-panel::-webkit-scrollbar { width: 5px; }
.lab-dd-panel::-webkit-scrollbar-track { background: #f1f5f9; }
.lab-dd-panel::-webkit-scrollbar-thumb { background: #059669; border-radius: 99px; }
.lab-dd-panel.lab-dd-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Barre gradient en haut du panel */
.lab-dd-panel::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #0a4275, #059669);
  border-radius: 14px 14px 0 0;
}

/* Items */
.lab-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1e293b;
  font-weight: 500;
  transition: background 0.15s;
}
.lab-dd-item:last-child {
  border-bottom: none;
}
.lab-dd-item:hover {
  background: #f0fdf8;
}
.lab-dd-item.lab-dd-selected {
  background: linear-gradient(135deg, rgba(10,66,117,0.05), rgba(5,150,105,0.07));
}
.lab-dd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.lab-dd-name {
  flex: 1;
}
.lab-dd-check {
  color: var(--lab-accent);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.lab-dd-selected .lab-dd-check {
  opacity: 1;
}

/* ==========================================================================
   SECTION DÉMO MARKETING PARTENAIRES
   ========================================================================== */

.section-demo-marketing {
  background: #0f172a;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-demo-marketing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(5, 150, 105, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.demo-mkt-header { margin-bottom: 48px; }

.demo-mkt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 100px;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.demo-mkt-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.demo-mkt-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Grid 2 colonnes ── */
.demo-mkt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .demo-mkt-grid { grid-template-columns: 1fr; }
}

/* ── Panel wrapper ── */
.demo-mkt-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-mkt-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

/* ── Workflow step indicators ── */
.workflow-steps {
  display: flex;
  align-items: center;
  padding: 16px 20px 12px;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.workflow-step:hover { opacity: 0.85; }

.wf-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.wf-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.03em;
  transition: color 0.25s;
}

.workflow-step.active .wf-step-num {
  background: #059669;
  border-color: #34d399;
  color: #fff;
}

.workflow-step.active .wf-step-label { color: #34d399; }

.workflow-step.done .wf-step-num {
  background: rgba(5, 150, 105, 0.2);
  border-color: #059669;
  color: #34d399;
}

.workflow-step.done .wf-step-label { color: #34d399; }

.workflow-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  margin-bottom: 14px;
  border-radius: 2px;
  transition: background 0.3s;
}

.workflow-connector.done { background: #059669; }

/* ── Workflow screens ── */
.workflow-screens { position: relative; min-height: 220px; }

.workflow-screen {
  display: none;
  padding: 20px;
  animation: wfFadeIn 0.3s ease;
}

.workflow-screen.active { display: block; }

@keyframes wfFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Screen header (role bar) */
.wf-screen-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wf-screen-header i { font-size: 1.1rem; color: #94a3b8; }

.wf-screen-header strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
}

.wf-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wf-badge-reception { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.wf-badge-lab       { background: rgba(251, 191, 36, 0.15);  color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.3); }
.wf-badge-patient   { background: rgba(5, 150, 105, 0.15);   color: #34d399; border: 1px solid rgba(5, 150, 105, 0.3); }

/* Form rows (Screen 1) */
.wf-form-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wf-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  width: 80px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wf-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* File row (Screen 2) */
.wf-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 14px;
}

.wf-file-icon {
  font-size: 1.3rem;
  color: #f87171;
  flex-shrink: 0;
}

.wf-file-row span, .wf-pdf-row span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
}

.wf-file-size {
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  flex: unset !important;
}

/* Progress bar (Screen 2) */
.wf-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wf-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.wf-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: 4px;
  transition: width 0.15s ease;
}

.wf-progress-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  min-width: 34px;
  text-align: right;
}

/* Notification (Screen 3) */
.wf-notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 10px;
  margin-bottom: 12px;
}

.wf-notif-icon {
  font-size: 1.1rem;
  color: #34d399;
  flex-shrink: 0;
  padding-top: 2px;
}

.wf-notif-content { flex: 1; }

.wf-notif-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.wf-notif-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.wf-notif-sub code {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* PDF row (Screen 3) */
.wf-pdf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 12px;
}

.wf-pdf-dl {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #34d399 !important;
  flex: unset !important;
}

/* Action bar (shared) */
.wf-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-top: 4px;
}

.wf-action strong { font-weight: 700; }

.wf-action-success { background: rgba(5, 150, 105, 0.12); color: #6ee7b7; }
.wf-action-success i { color: #34d399; }

.wf-action-lab { background: rgba(251, 191, 36, 0.1); color: #fde68a; }
.wf-action-lab i { color: #fbbf24; }

.wf-action-patient { background: rgba(99, 102, 241, 0.12); color: #c7d2fe; }
.wf-action-patient i { color: #818cf8; }

/* ── Code unique généré (Screen 1) ── */
.wf-code-generated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 150, 105, 0.12);
  border: 1px dashed rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 9px 13px;
  margin: 10px 0 8px;
}
.wf-code-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ee7b7;
}
.wf-code-value {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.08em;
}

/* ── SMS Bubble (Screen 3) ── */
.wf-sms-bubble {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 10px;
}
.wf-sms-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wf-sms-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.wf-sms-text strong { color: #a5b4fc; }

/* ── Access options (Screen 3) ── */
.wf-access-options {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.wf-access-opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}
.wf-access-sms {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}
.wf-access-web {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #34d399;
}
.wf-opt-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.wf-badge-active { background: rgba(99, 102, 241, 0.25); color: #a5b4fc; }
.wf-badge-new    { background: rgba(5, 150, 105, 0.25);  color: #34d399; }

/* ── Logo Sahel en bas du panel ── */
.demo-panel-logo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 16px 14px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-panel-logo img {
  height: 32px;
  width: auto;
  opacity: 0.65;
  filter: brightness(1.1);
  border-radius: 4px;
}

/* ── Stats grid ── */
.demo-mkt-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .demo-mkt-stats-grid { grid-template-columns: 1fr 1fr; }
}

.demo-mkt-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}

.demo-stat-value {
  font-family: "Courier New", Courier, monospace;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.demo-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

/* ── Admin Dashboard Preview ── */
.admin-dash-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.admin-dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(10, 66, 117, 0.5), rgba(5, 150, 105, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dash-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #0a4275);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.admin-dash-info { flex: 1; min-width: 0; }

.admin-dash-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-dash-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.admin-dash-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6ee7b7;
  flex-shrink: 0;
}

/* Stats row */
.admin-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dash-stat {
  padding: 14px 10px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
}

.admin-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-lbl {
  font-size: 0.67rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

/* Sections (Personnel / Patients) */
.admin-dash-block {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-dash-block:last-child { border-bottom: none; }

.admin-dash-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* Personnel list */
.admin-personnel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-personnel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.admin-role-tag {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.admin-role-reception { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.admin-role-lab       { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }

.admin-personnel-name {
  flex: 1;
  font-weight: 600;
  color: #e2e8f0;
}

.admin-personnel-online {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
}
.admin-personnel-online i { font-size: 0.45rem; }

/* Patient list */
.admin-patient-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-patient-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 7px;
  font-size: 0.75rem;
}

.admin-pat-code {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
  width: 64px;
}

.admin-pat-name {
  flex: 1;
  font-weight: 600;
  color: #cbd5e1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-pat-status {
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.status-consulted  { background: rgba(5, 150, 105, 0.2);   color: #34d399; }
.status-sent       { background: rgba(99, 102, 241, 0.2);  color: #a5b4fc; }
.status-processing { background: rgba(245, 158, 11, 0.2);  color: #fcd34d; }
.status-pending    { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }

/* ── CTA button ── */
.demo-mkt-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #059669;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.demo-mkt-cta-btn:hover {
  background: #047857;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Disclaimer ── */
.demo-mkt-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* ==========================================================================
   FAQ LABO
   ========================================================================== */

.labo-faq-section {
  padding: 80px 0;
  background: #ffffff;
}

.labo-faq-section .faq-accordion {
  border: none;
}

.labo-faq-section .accordion-item {
  border: none;
  background: #f8fafc;
  border-radius: 14px !important;
  margin-bottom: 14px;
  overflow: hidden;
  transition: background 0.2s;
}

.labo-faq-section .accordion-item:hover {
  background: #f1f5f9;
}

.labo-faq-section .accordion-button {
  background: transparent;
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  gap: 16px;
  box-shadow: none !important;
}

.labo-faq-section .accordion-button:not(.collapsed) {
  color: var(--lab-accent, #059669);
  background: transparent;
  box-shadow: none;
}

.labo-faq-section .faq-icon-wrapper {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.labo-faq-section .accordion-button:not(.collapsed) .faq-icon-wrapper {
  background: #059669;
  color: #ffffff;
}

.labo-faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e293b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-size: 1.1rem;
  flex-shrink: 0;
}

.labo-faq-section .accordion-body {
  padding: 0 28px 26px 84px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.75;
}

.labo-faq-section .faq-link {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(5, 150, 105, 0.3);
  transition: border-color 0.2s;
}

.labo-faq-section .faq-link:hover {
  border-bottom-color: #059669;
}

@media (max-width: 768px) {
  .labo-faq-section .accordion-button { padding: 18px 20px; font-size: 1rem; }
  .labo-faq-section .accordion-body   { padding: 0 20px 22px 20px; }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hidden {
  display: none !important;
}

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

/* ==========================================================================
   SAHEL STEP DATEPICKER — Custom step-by-step date picker
   ========================================================================== */

/* Wrapper around input + floating picker */
.dob-wrapper {
  position: relative;
}

/* Calendar toggle button (inside input-wrapper, right side) */
.dob-cal-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0a4275, #059669);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.dob-cal-btn:hover {
  opacity: 0.85;
  transform: translateY(-50%) scale(1.07);
}

/* Floating picker panel — position: fixed pour échapper aux overflow:hidden parents */
.sahel-datepicker {
  position: fixed;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  border: 1px solid #e2e8f0;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 260px;
}
.sahel-datepicker.dp-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Step header — gradient bar */
.dp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0a4275, #059669);
  padding: 13px 16px;
  color: #fff;
}
.dp-step-label {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dp-step-indicator {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 9px;
  border-radius: 100px;
}
.dp-back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.dp-back-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Step container */
.dp-step {
  background: #fff;
}

/* Days grid — 7 columns */
.dp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 14px 12px;
}
.dp-day-btn {
  background: #f8fafc;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  padding: 8px 2px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}
.dp-day-btn:hover {
  background: rgba(5, 150, 105, 0.1);
  border-color: #059669;
  color: #059669;
}
.dp-day-btn.dp-sel {
  background: linear-gradient(135deg, #0a4275, #059669);
  color: #fff;
  border-color: transparent;
}

/* Months grid — 3 columns */
.dp-months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 16px 12px;
}
.dp-month-btn {
  background: #f8fafc;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  padding: 13px 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}
.dp-month-btn:hover {
  background: rgba(5, 150, 105, 0.1);
  border-color: #059669;
  color: #059669;
}
.dp-month-btn.dp-sel {
  background: linear-gradient(135deg, #0a4275, #059669);
  color: #fff;
  border-color: transparent;
}

/* Years list — scrollable, 4-column grid */
.dp-years-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: #059669 #f1f5f9;
}
.dp-years-list::-webkit-scrollbar { width: 5px; }
.dp-years-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 99px; }
.dp-years-list::-webkit-scrollbar-thumb { background: #059669; border-radius: 99px; }
.dp-year-btn {
  background: #f8fafc;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  padding: 8px 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}
.dp-year-btn:hover {
  background: rgba(5, 150, 105, 0.1);
  border-color: #059669;
  color: #059669;
}
.dp-year-btn.dp-sel {
  background: linear-gradient(135deg, #0a4275, #059669);
  color: #fff;
  border-color: transparent;
}
