/* Palette et variables */
:root {
  --brand-dark: #111827;
  --brand-accent: #0d6efd;
  --brand-muted: #6b7280;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --card-radius: 1rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Base */
body {
  background: var(--surface-alt);
  color: #1f2d3d;
}

.bg-soft {
  background: var(--surface-alt);
}

.page-shell {
  min-height: 80vh;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, #0f172a, #111827);
  letter-spacing: 0.1px;
}

.text-accent {
  color: var(--brand-accent) !important;
}

/* Navbar */
.navbar-modern {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-modern .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.brand-logo {
  width: 40px;
  height: 40px;
  padding: 4px;
}

.btn-cart {
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  background: var(--brand-accent);
  color: #fff;
  right: -10px;
  top: -10px;
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
}

.footer-link {
  color: #6c757d;
  text-decoration: none;
}

.footer-link:hover {
  color: #0d6efd;
}

/* Buttons */
.btn {
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Badges utilitaires */
.badge-soft {
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand-accent);
  border-radius: 999px;
}

.badge.bg-soft-primary {
  background: rgba(13, 110, 253, 0.12);
  color: var(--brand-accent);
}

.badge.bg-soft-success {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.badge.bg-soft-danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.badge.bg-soft-dark {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

.pill {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #111827;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.subtle-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.subtle-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero-home {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(17, 24, 39, 0.04));
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.hero-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-card .form-control,
.hero-card .form-select {
  border-radius: 10px;
  border-color: rgba(0, 0, 0, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Cards et blocs */
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.card-elevated {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  border-color: rgba(13, 110, 253, 0.25);
}

.product-card .card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.product-thumb {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  min-height: 180px;
}

.product-thumb img {
  max-height: 160px;
  object-fit: contain;
}

.info-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Helpers */
.section-title {
  font-weight: 600;
}

.table thead th {
  border-bottom-width: 1px;
}

/* Boutique */
.toolbar-card {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(17, 24, 39, 0.05));
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: var(--card-radius);
  padding: 1rem 1.25rem;
}

.product-card h6,
.product-card .h6 {
  line-height: 1.3;
}

.product-thumb {
  min-height: 190px;
}

.product-visual {
  min-height: 320px;
}

.thumb-sm {
  width: 72px;
  height: 72px;
}

.table td,
.table th {
  vertical-align: middle;
}
