/* ═══════════════════════════════════════════════════════════════
   SMMPanel — Styles applicatifs
   Mode clair / sombre via [data-bs-theme]
   ═══════════════════════════════════════════════════════════════ */

:root {
  --smm-primary: #6366f1;
  --smm-primary-dark: #4f46e5;
  --smm-primary-light: #a5b4fc;
  --smm-primary-soft: rgba(99, 102, 241, 0.12);
  --smm-radius: 1rem;
  --smm-radius-sm: 0.6rem;
  --smm-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --smm-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --smm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-bs-theme="dark"] {
  --smm-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --smm-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body {
  font-family: var(--smm-font);
  -webkit-font-smoothing: antialiased;
}

/* ── Composants réutilisables ─────────────────────────────── */

.btn-primary {
  --bs-btn-bg: var(--smm-primary);
  --bs-btn-border-color: var(--smm-primary);
  --bs-btn-hover-bg: var(--smm-primary-dark);
  --bs-btn-hover-border-color: var(--smm-primary-dark);
  --bs-btn-active-bg: var(--smm-primary-dark);
  --bs-btn-active-border-color: var(--smm-primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--smm-primary);
  --bs-btn-border-color: var(--smm-primary);
  --bs-btn-hover-bg: var(--smm-primary);
  --bs-btn-hover-border-color: var(--smm-primary);
  --bs-btn-active-bg: var(--smm-primary);
  --bs-btn-active-border-color: var(--smm-primary);
}

.text-primary { color: var(--smm-primary) !important; }
.bg-primary { background-color: var(--smm-primary) !important; }

.card {
  border-radius: var(--smm-radius);
  border: 1px solid rgba(100, 116, 139, 0.14);
  box-shadow: var(--smm-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--smm-shadow-lg);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--bs-secondary-color);
  max-width: 640px;
}

/* Badges de plateforme */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--smm-primary-soft);
  color: var(--smm-primary);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.platform-badge:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

/* Cartes de service */
.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--smm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--smm-primary-soft);
  color: var(--smm-primary);
  flex-shrink: 0;
}

.service-card .service-price {
  font-weight: 800;
  color: var(--smm-primary);
}

/* Statistiques dashboard */
.stat-card {
  border-radius: var(--smm-radius);
  padding: 1.25rem;
  border: 1px solid rgba(100, 116, 139, 0.14);
  background: var(--bs-body-bg);
  box-shadow: var(--smm-shadow);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--smm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

/* Auth */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(1200px 600px at 10% 0%, var(--smm-primary-soft), transparent),
              radial-gradient(900px 500px at 90% 100%, rgba(16, 185, 129, 0.08), transparent),
              var(--bs-body-bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  border-radius: 1.25rem;
  border: 1px solid rgba(100, 116, 139, 0.16);
  box-shadow: var(--smm-shadow-lg);
  background: var(--bs-body-bg);
  padding: 2rem;
}

.auth-card .auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
  margin: 0 auto 1rem;
}

/* Navbar publique */
.navbar-smm {
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bs-body-bg) 82%, transparent);
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.navbar-smm .nav-link {
  font-weight: 500;
}

/* Footer */
.footer-smm {
  border-top: 1px solid rgba(100, 116, 139, 0.12);
  background: var(--bs-tertiary-bg);
}

.footer-smm a {
  text-decoration: none;
}

/* Tableaux */
.table-smm th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color);
  font-weight: 700;
  white-space: nowrap;
}

.table-smm td {
  vertical-align: middle;
}

/* Formulaires */
.form-control:focus, .form-select:focus {
  border-color: var(--smm-primary);
  box-shadow: 0 0 0 0.2rem var(--smm-primary-soft);
}

/* Animations légères */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.45s ease both;
}

/* Progress bars arrondies */
.progress {
  border-radius: 50rem;
  overflow: hidden;
}

/* Hero */
.hero-section-v2 {
  position: relative;
  padding: 5rem 0;
  background:
    radial-gradient(800px 400px at 15% 20%, var(--smm-primary-soft), transparent),
    linear-gradient(160deg, var(--bs-body-bg), var(--bs-tertiary-bg));
}

/* Illustration : cercle central + icônes de plateformes en orbite */
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
}

.hero-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--smm-primary-light);
  opacity: 0.6;
}

.hero-illustration-core {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.5rem;
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.4);
}

.hero-orbit-icon {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--smm-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-orbit-fb { top: 0; right: 20%; color: #1877f2; z-index: 2; }
.hero-orbit-tg { top: 34%; right: -8%; color: #229ed9; z-index: 2; }
.hero-orbit-yt { top: 60%; right: -8%; color: #ff0000; z-index: 2; }
.hero-orbit-ig { bottom: 8%; left: -6%; color: #e1306c; z-index: 2; }
.hero-orbit-tiktok { bottom: -6%; left: 36%; color: #000; z-index: 2; }

.hero-float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: var(--smm-radius-sm);
  box-shadow: var(--smm-shadow-lg);
  padding: 0.6rem 0.9rem;
  color: #1e293b;
  white-space: nowrap;
}

.hero-float-card-top { top: -2%; left: -10%; }

.hero-float-card-bottom {
  bottom: 0;
  right: -8%;
  gap: 0.9rem;
}

.hero-float-card-bottom .vr { opacity: 0.2; align-self: stretch; }
.hero-float-card-bottom strong { display: block; font-size: 0.95rem; }
.hero-float-card-bottom span { display: block; font-size: 0.66rem; color: #64748b; }

.hero-float-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-float-label { font-size: 0.68rem; color: #64748b; }
.hero-float-value { font-weight: 800; font-size: 1rem; }

/* Texte du hero */
.hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--bs-secondary-color);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.hero-points {
  margin-bottom: 0;
}

.hero-points li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero-points i {
  color: var(--smm-primary);
  font-size: 1.1rem;
}

@media (min-width: 992px) {
  .hero-description { margin-left: 0; }
  .hero-points li { justify-content: flex-start; }
}

/* Mode sombre : réglages fins */
[data-bs-theme="dark"] .card {
  border-color: rgba(148, 163, 184, 0.14);
}

[data-bs-theme="dark"] .service-card .service-icon {
  background: rgba(99, 102, 241, 0.2);
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 116, 139, 0.2);
  background: transparent;
  color: var(--bs-body-color);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--smm-primary-soft);
}

/* Notation par étoiles */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 4px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 1.8rem;
  color: rgba(100, 116, 139, 0.35);
  cursor: pointer;
  transition: color 0.15s ease;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: #f59e0b;
}

.star-display {
  color: #f59e0b;
  letter-spacing: 2px;
}

.star-display .bi-star {
  color: rgba(100, 116, 139, 0.35);
}