/* ============================================================
   COMPONENTS.CSS — Boutons, cards, badges, hero-banner
   ============================================================ */

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-dark:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 36px;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 9px 18px;
}

/* ---- Cards de service ---- */
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.card-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* ---- Hero bannière (pages internes) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary) 100%);
  padding: 72px 0;
  text-align: center;
  color: white;
}

.page-hero .section-label { color: rgba(255,255,255,0.55); }
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p  {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
}

.badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ---- Divider ---- */
.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px 0 32px;
}

.divider-center { margin-left: auto; margin-right: auto; }

/* ---- Animation au scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Chat widget ---- */
#chat-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  font-size: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

#chat-widget-btn:hover { background-color: var(--accent-hover); }

#chat-widget-frame {
  display: none;
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 560px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 2147483646;
  background: white;
  overflow: hidden;
}

@media (max-width: 480px) {
  #chat-widget-frame {
    width: calc(100vw - 32px);
    height: 70vh;
    right: 16px;
    bottom: 88px;
  }
}
