/* Modern Breadcrumbs */

.breadcrumb-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid #cbd5e0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin: 0 12px;
}

.breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #5a67d8;
  transform: translateX(2px);
}

.breadcrumb-item.active {
  color: #4a5568;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(74, 85, 104, 0.1);
  border-radius: 8px;
}

.breadcrumb-item .fas {
  font-size: 12px;
}

/* Responsive Breadcrumbs */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 12px;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 8px;
    border-left-width: 4px;
    border-top-width: 4px;
    border-bottom-width: 4px;
  }

  .breadcrumb-item a,
  .breadcrumb-item.active {
    padding: 4px 8px;
  }
}
/* Card Styles avec effets hover modernes */

.card-category {
  background-size: cover;
  background-position: center;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  position: relative;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

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

.card-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(22, 127, 251, 0.8), rgba(255, 107, 107, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-category:hover::before {
  opacity: 1;
}

.card-category a {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: white !important;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-trip {
  overflow: hidden;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.card-trip:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-trip img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-trip:hover img {
  transform: scale(1.1);
}

.card-trip-infos {
  padding: 16px;
}

.card-trip-infos h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

/* Bootstrap Cards override */
.card {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Interactive elements */
.badge {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.1);
}

.btn {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Spécifique aux boutons custom pour override Bootstrap */
.btn-flat:hover {
  background: #0F60C4 !important;
  box-shadow: 0 4px 12px rgba(22, 127, 251, 0.3);
}

.btn-ghost:hover {
  background: rgba(22, 127, 251, 0.1) !important;
  border-color: #167FFB !important;
  color: #167FFB !important;
}
/* Floating Action Button - Fixed */

.fab {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  left: auto !important;
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  text-decoration: none !important;
  font-size: 24px !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.fab:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6) !important;
  color: white !important;
}

/* Mobile */
@media (max-width: 768px) {
  .fab {
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
  }
}
/* Hero Section moderne */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 100px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.3s both;
}

.hero-cta {
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn-hero {
  background: white;
  color: #667eea;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
  color: #764ba2;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Loading States & Micro-interactions */

/* Button loading animation */
.btn:active {
  transform: translateY(0px) scale(0.98);
  transition: transform 0.1s ease;
}

/* Form focus improvements */
.form-control:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 127, 251, 0.15);
  border-color: #167FFB;
}

/* Alert animations */
.alert {
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge pulse on hover */
.badge:hover {
  animation: pulse 0.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Heart favorite animation */
.btn:has(.fa-heart):hover {
  animation: heartbeat 0.8s ease infinite;
}

@keyframes heartbeat {
  0% { transform: translateY(-2px) scale(1); }
  25% { transform: translateY(-2px) scale(1.05); }
  50% { transform: translateY(-2px) scale(1); }
  75% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(-2px) scale(1); }
}

/* Smooth page transitions */
body {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loading spinner for submit buttons */
.btn[data-disable-with] {
  position: relative;
}

.btn[data-disable-with]:disabled::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Navbar scroll effect */
.navbar {
  transition: all 0.3s ease;
}

/* Enhanced search bar */
.form-control[placeholder*="Rechercher"]:focus {
  background: linear-gradient(45deg, #f8f9fa, #ffffff);
  transform: translateY(-2px);
}

/* Image loading placeholder */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Modern Interface Styles */

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0 5px 0;
  color: #2d3748;
}

/* Filter Pills */
.filters-section h3 {
  color: #2d3748;
  font-weight: 600;
}

.filter-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pill {
  background: white;
  color: #4a5568;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.filter-pill:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
}

.filter-pill.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Recipe Grid */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Recipe Cards */
.recipe-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.recipe-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.recipe-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.1);
}

.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recipe-card:hover .recipe-overlay {
  opacity: 1;
}

.recipe-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-badges .badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 15px;
  font-weight: 600;
}

.recipe-content {
  padding: 25px;
}

.recipe-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  line-height: 1.3;
}

.recipe-description {
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-author small {
  color: #718096;
  font-weight: 500;
}

.recipe-stats {
  display: flex;
  gap: 15px;
}

.stat {
  color: #a0aec0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Search Results */
.search-results .alert {
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: 20px;
  padding: 60px 40px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.empty-state h3 {
  color: #2d3748;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-pills {
    justify-content: center;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-card h3 {
    font-size: 2rem;
  }
}
/* Modern Navigation */

.navbar-lewagon {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 15px 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-lewagon.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2d3748 !important;
  text-decoration: none !important;
}

.navbar-brand:hover {
  color: #667eea !important;
  transform: scale(1.05);
}

/* Search Bar Enhancement */
.navbar .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0,0,0,0.1);
  transform: none;
}

.navbar .btn-flat {
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.navbar .btn-flat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Nav Links */
.nav-link {
  color: #4a5568 !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  position: relative;
}

.nav-link:hover {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.1) !important;
  transform: translateY(-1px);
}

.nav-link .badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 12px 0;
  margin-top: 10px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.dropdown-item {
  padding: 12px 20px;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(5px);
}

.dropdown-divider {
  margin: 8px 16px;
  border-color: rgba(0,0,0,0.1);
}

/* Avatar Enhancement */
.navbar .nav-link.dropdown-toggle {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar .nav-link.dropdown-toggle:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar .d-flex.flex-grow-1 {
    margin: 10px 0;
    flex-direction: column;
    gap: 10px;
  }

  .navbar .form-control {
    margin-bottom: 10px;
  }

  .navbar-nav {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
}
/* Progress Bars for Recipe Times */

.recipe-progress {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-label {
  min-width: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin: 0 12px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-out;
  animation: progressFill 2s ease-out;
}

.progress-prep {
  background: linear-gradient(90deg, #17a2b8, #20c997);
}

.progress-cook {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.progress-total {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-time {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  min-width: 50px;
  text-align: right;
}

@keyframes progressFill {
  from {
    width: 0;
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* Progress bars responsive */
@media (max-width: 768px) {
  .progress-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-bar-container {
    width: 100%;
    margin: 8px 0;
  }

  .progress-time {
    align-self: flex-end;
  }
}
/* Responsive Design & Final Touches */

/* Mobile First Approach */
@media (max-width: 576px) {
  /* Hero Section Mobile */
  .hero-section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-hero {
    padding: 12px 24px;
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
    text-align: center;
  }

  /* Stats Cards Mobile */
  .stat-card {
    margin-bottom: 20px;
    padding: 20px 15px;
  }

  .stat-card h3 {
    font-size: 1.8rem;
  }

  /* Filter Pills Mobile */
  .filter-pills {
    justify-content: center;
  }

  .filter-pill {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* Recipe Cards Mobile */
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .recipe-content {
    padding: 20px;
  }

  .recipe-title {
    font-size: 1.1rem;
  }

  .recipe-meta {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 992px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .stat-card h3 {
    font-size: 2.2rem;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .recipes-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-title {
    font-size: 4rem;
  }

  .container-fluid {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* Animations & Interactions */
.recipe-card {
  animation: fadeInUp 0.6s ease-out;
}

.recipe-card:nth-child(1) { animation-delay: 0.1s; }
.recipe-card:nth-child(2) { animation-delay: 0.2s; }
.recipe-card:nth-child(3) { animation-delay: 0.3s; }
.recipe-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Stat Cards Animation */
.stat-card {
  animation: slideInUp 0.8s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.recipe-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.recipe-card.loading .recipe-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Accessibility */
.btn:focus,
.form-control:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section,
  .filter-pills,
  .btn {
    display: none !important;
  }

  .recipe-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Dark Mode Support (if needed later) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a202c;
    --text-color: #f7fafc;
    --card-bg: #2d3748;
  }
}
/* Animations visibles et utiles */

/* Page fade-in */
main, .container {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced navbar shadow on scroll */
.navbar {
  transition: box-shadow 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Form validation feedback */
.form-control:invalid {
  border-color: #dc3545;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Success state animation */
.alert-success {
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced link hover */
a:not(.btn) {
  transition: color 0.2s ease;
  position: relative;
}

a:not(.btn):hover {
  color: #0F60C4;
}

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

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  /* Position au-dessus par défaut */
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

[data-tooltip]:after {
  content: '';
  position: absolute;
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  /* Flèche pointant vers le haut */
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip position variants */
[data-tooltip-pos="bottom"]:before {
  top: 100%;
  bottom: auto;
  transform: translateX(-50%) translateY(8px);
}

[data-tooltip-pos="bottom"]:after {
  top: 100%;
  bottom: auto;
  border-top-color: transparent;
  border-bottom-color: #333;
  transform: translateX(-50%) translateY(-2px);
}

[data-tooltip-pos="bottom"]:hover:before,
[data-tooltip-pos="bottom"]:hover:after {
  transform: translateX(-50%) translateY(0);
}

/* Styles pour différents types */
.badge[data-tooltip]:before {
  background: #495057;
  font-size: 11px;
}

.btn[data-tooltip]:before {
  background: #167FFB;
}

/* Animation d'apparition */
[data-tooltip]:hover:before {
  animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* Modern Typography & Spacing */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: #f7fafc;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1a202c;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: #4a5568;
  margin-bottom: 1rem;
}

/* Spacing System */
.spacing-xs { margin: 0.25rem; }
.spacing-sm { margin: 0.5rem; }
.spacing-md { margin: 1rem; }
.spacing-lg { margin: 1.5rem; }
.spacing-xl { margin: 2rem; }
.spacing-2xl { margin: 3rem; }

/* Container Improvements */
.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Page Sections */
main {
  min-height: 100vh;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Modern Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.alert-success {
  background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
  color: white;
}

.alert-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.alert .fas {
  margin-right: 8px;
}

/* Forms Enhancement */
.form-label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.form-control::placeholder {
  color: #a0aec0;
}

/* Button System */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
}

.btn-outline-light {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: white;
  color: #667eea;
  border-color: white;
}

/* List Group */
.list-group-item {
  border: none;
  border-radius: 12px;
  margin-bottom: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  padding: 16px 20px;
}

.list-group-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Text Colors */
.text-muted {
  color: #718096 !important;
}

.text-primary {
  color: #667eea !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}
/*


 */

/* Navbar Le Wagon */
.navbar-lewagon {
  justify-content: space-between;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-lewagon .navbar-brand {
  color: #167FFB;
  font-weight: bold;
}

/* Banner */
.banner {
  background-size: cover;
  background-position: center;
  padding: 150px 0;
  margin-bottom: 32px;
}

.banner h1 {
  color: white;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

.banner p {
  color: white;
  font-size: 20px;
  opacity: .8;
  margin-bottom: 30px;
}

/* Buttons */
.btn-flat {
  color: white;
  padding: 8px 24px;
  background: #167FFB;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost {
  color: #4A4A4A;
  border: 1px solid #4A4A4A;
  padding: 8px 24px;
  text-decoration: none;
  display: inline-block;
}

.btn-gradient {
  color: white;
  padding: 8px 24px;
  background: linear-gradient(#167FFB, #0F60C4);
  text-decoration: none;
  display: inline-block;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 16px;
}
