/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f9;
  color: #2c3e50;
  scroll-behavior: smooth;
}

/* Header */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.navbar-brand {
  font-weight: 600;
  color: #2c3e50 !important;
}

.navbar a {
  color: #2c3e50 !important;
  transition: all 0.3s ease;
}

.navbar a:hover {
  color: #18bc9c !important;
}

/* Hero Header */
header.bg-light {
  background-color: #ecf0f1 !important;
}

header h1 {
  color: #2c3e50;
}

header .btn-success {
  background-color: #18bc9c;
  border-color: #18bc9c;
}

header .btn-outline-primary {
  border-color: #2c3e50;
  color: #2c3e50;
}

header .btn-outline-primary:hover {
  background-color: #2c3e50;
  color: white;
}

/* Boutons */
.btn-primary {
  background-color: #2c3e50;
  border-color: #2c3e50;
}

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

.btn-success:hover {
  background-color: #149a80;
  border-color: #149a80;
}

/* Sections */
section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Images des modèles */
.card img, .img-fluid {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.card img:hover, .img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer, section.bg-dark {
  background-color: #2c3e50 !important;
  color: #f8f9fa;
}

/* Tables */
.table th {
  background-color: #2c3e50;
  color: white;
}

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

/* Formulaires */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(24, 188, 156, 0.25);
  border-color: #18bc9c;
}

/* Animations douces */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
  /* Animation du formulaire */
  .container {
    animation: fadeIn 0.5s ease-out;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Style moderne */
  .btn-primary {
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border: none;
    transition: all 0.3s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* Effet sur les champs */
  .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
  }

  /* Message d'erreur animé */
  .alert-danger {
    animation: shake 0.5s;
  }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }