/*
|--------------------------------------------------------------------------
| Softscape – CSS custom
| Tailwind via CDN (aucune compilation)
|--------------------------------------------------------------------------
*/

/* ----------------------------------------------------------------------
   Variables (design tokens)
---------------------------------------------------------------------- */
:root {
  --primary: #1f3a8a;   /* bleu Softscape */
  --accent:  #22c55e;   /* vert accent */
}

/* ----------------------------------------------------------------------
   Helpers couleurs
---------------------------------------------------------------------- */
.text-primary {
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-accent {
  background-color: var(--accent);
}

/* ----------------------------------------------------------------------
   Boutons (évite de répéter 15 classes)
---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem; /* rounded-xl */
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #1e3a8a;
}

.btn-secondary {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  color: #334155;
}

.btn-secondary:hover {
  background-color: #f8fafc;
}

/* ----------------------------------------------------------------------
   Layout
---------------------------------------------------------------------- */
.container {
  max-width: 80rem; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ----------------------------------------------------------------------
   Cards
---------------------------------------------------------------------- */
.card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  padding: 1.5rem;
}

.card-muted {
  background-color: #f8fafc;
}

/* ----------------------------------------------------------------------
   Navigation
---------------------------------------------------------------------- */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link-active {
  color: var(--primary);
}

/* ----------------------------------------------------------------------
   Forms
---------------------------------------------------------------------- */
.label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input::placeholder {
  color: #94a3b8;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ----------------------------------------------------------------------
   Footer
---------------------------------------------------------------------- */
.footer {
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #64748b;
}

/* ----------------------------------------------------------------------
   Animations & Transitions
---------------------------------------------------------------------- */

/* Smooth transitions for interactive elements */
a, button, .card, input, textarea, select {
  transition: all 0.2s ease-in-out;
}

/* Hover effects */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Pulse animation for badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

/* Scale on hover for interactive elements */
.scale-hover {
  transition: transform 0.2s ease-in-out;
}

.scale-hover:hover {
  transform: scale(1.05);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Link hover underline effect */
.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease-in-out;
}

.link-underline:hover::after {
  width: 100%;
}
