/* ============================================================
   TechBrush Digital — Design System CSS
   Complète TailwindCSS avec les classes custom récurrentes
   ============================================================ */

/* ── Typographie de base ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F6F7FB;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* ── Boutons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #39FF14;
  color: #111827;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
  border-radius: 0.625rem;
  border: 1.5px solid #39FF14;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: #2EDB0F;
  border-color: #2EDB0F;
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
  border-radius: 0.625rem;
  border: 1.5px solid #E5E7EB;
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: #39FF14;
  background-color: #F6F7FB;
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

/* ── Cards produit / projet ── */
.product-card {
  background-color: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}
.product-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ── Formulaires ── */
.form-input {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input::placeholder { color: #9CA3AF; }
.form-input:focus {
  border-color: #39FF14;
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
}

textarea.form-input { resize: vertical; min-height: 120px; }

/* ── Navigation links ── */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
  position: relative;
}
.nav-link:hover,
.nav-link-active {
  color: #111827;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #39FF14;
  border-radius: 1px;
}

.mobile-nav-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.mobile-nav-link:hover {
  background-color: #F1F3F7;
  color: #111827;
}

/* ── Tech badges ── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  background-color: #E8FFE6;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
}

/* ── Galerie thumbnail ── */
.gallery-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 2px solid #E5E7EB;
  cursor: pointer;
  transition: border-color 0.15s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: #39FF14;
}

/* ── Flash messages ── */
.message-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.message-error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.message-warning {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.message-info {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* ── Prose override ── */
.prose {
  color: #374151;
  line-height: 1.75;
}
.prose p { margin-bottom: 1rem; }

/* ── Animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
}
.animate-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F6F7FB; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }
