/* === BASE STYLE === */
body {
  font-family: 'Inter', sans-serif;
  color: #f0f0f0;
  background-color: #121212;
  margin: 0;
  padding: 0;
}

section {
  padding: 60px 20px;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: #60a5fa; /* Couleur par défaut, sera souvent surchargée par les thèmes */
}

.card {
  background: #1f2937;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.card img {
  max-width: 150px;
  height: auto;
}
.card-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #f3f4f6;
}
.card-text {
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.5;
  color: #d1d5db;
}
.card .btn {
  padding: 10px 20px;
  font-size: 1rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.card .btn:hover {
  background: #2563eb;
}

/* === FOOTER === */
footer {
  background: #212529;
  color: #ced4da;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}
footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}
footer .social-icon {
  font-size: 1.4rem;
  margin: 0 10px;
  color: #adb5bd;
  transition: color 0.3s ease;
}
footer .social-icon:hover {
  color: #ffffff;
}
footer hr {
  border-color: #495057;
  margin: 1.5rem 0;
}

.footer-link {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === NAVBAR DROPDOWN IMPROVEMENTS === */
.navbar.bg-transparent {
  background-color: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(5px);
  transition: background-color 0.3s ease;
  z-index: 1030;
}
.dropdown-menu {
  background-color: rgba(31, 41, 55, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-top: 8px;
  min-width: 180px !important;
  width: max-content;
}

.dropdown-item {
  color: #f3f4f6 !important;
  padding: 10px 20px;
  margin: 2px 4px;
  transition: all 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(96, 165, 250, 0.15) !important;
  color: #60a5fa !important;
  transform: translateX(4px);
}

.dropdown-item:active {
  background-color: rgba(96, 165, 250, 0.25) !important;
  color: #ffffff !important;
}

.dropdown-menu.show {
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-divider {
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  margin: 8px 0;
}

/* === COOKIE BANNER === */
.cookie-banner {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(96, 165, 250, 0.3) !important;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8f9fa;
    transition: all 0.3s ease;
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-banner .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cookie-banner .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* === UTILITAIRE === */
.logo-secure {
  max-height: 90px;
}

/* Error Pages Styling */
.error-header {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.error-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.error-header .display-1 {
  font-size: 8rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.error-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.error-header .lead {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === RESPONSIVE GLOBAL === */
@media (max-width: 768px) {
  section h2 {
    font-size: 2rem;
  }
  
  .cookie-banner .d-flex {
      flex-direction: column;
  }
  
  .cookie-banner .btn {
      width: 100%;
      margin-bottom: 0.5rem;
  }

  .error-header .display-1 {
    font-size: 6rem;
  }
  
  .error-header h2 {
    font-size: 2rem;
  }
  
  .error-logo {
    width: 100px;
  }
}
