/* ======================================
   REQUACONSULT - Thème Global Complet
   Compatible Bootstrap 5.3.8
   ====================================== */

/* ======================================
   TABLE DES MATIÈRES
   ======================================
   1.  VARIABLES CSS
   2.  TYPOGRAPHIE
   3.  NAVIGATION
   4.  BOUTONS
   5.  CARTES ET CONTENEURS
   6.  FORMULAIRES
   7.  TABLEAUX
   8.  BADGES ET LABELS
   9.  ALERTS ET MESSAGES MODERNES ★ NOUVEAU
   10. ACCORDIONS
   11. TABS
   12. MODALS
   13. FOOTER + RÉSEAUX SOCIAUX
   14. CARTES GÉOGRAPHIQUES
   15. SECTIONS DE CONTENU
   16. ICÔNES ET VISUELS
   17. SPINNER / LOADING
   18. UTILITAIRES
   19. RESPONSIVE
   20. ANIMATIONS
   21. ACCESSIBILITÉ
   22. PRINT STYLES
   23. STICKY FOOTER
   24. HOMEPAGE CAROUSEL ★ NOUVEAU
   25. HOMEPAGE CARDS ★ NOUVEAU
   ====================================== */

/* ======================================
   1. VARIABLES CSS (Custom Properties)
   ====================================== */
:root {
  /* Couleurs principales */
  --requasud-primary: #2c5f2d;
  --requasud-primary-dark: #1e4620;
  --requasud-primary-light: #4a8a4c;
  --requasud-secondary: #97c93c;
  --requasud-accent: #f39c12;

  /* Couleurs neutres */
  --requasud-gray-100: #f8f9fa;
  --requasud-gray-200: #e9ecef;
  --requasud-gray-300: #dee2e6;
  --requasud-gray-600: #6c757d;
  --requasud-gray-800: #343a40;
  --requasud-gray-900: #212529;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Ombres */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* Mode sombre */
[data-bs-theme="dark"] {
  --requasud-primary-light: #3a7a3c;
  --bs-body-bg: #1a1a1a;
  --bs-body-color: #e9ecef;
}

/* ======================================
   2. TYPOGRAPHIE
   ====================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--requasud-gray-900);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--requasud-primary-dark);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: var(--requasud-primary-light);
}

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

.text-primary-custom {
  color: var(--requasud-primary) !important;
}

.text-secondary-custom {
  color: var(--requasud-secondary) !important;
}

/* ======================================
   3. NAVIGATION - OPTIMISÉE
   ====================================== */
.navbar-custom {
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0; /* Réduit de 0.75rem à 0.5rem */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  transition: transform var(--transition-fast);
  padding: 0.25rem 0; /* Ajout de padding réduit */
}

.navbar-custom .navbar-brand img {
  max-height: 45px; /* Réduit légèrement la taille du logo */
}

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

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.4rem 0.75rem; /* Réduit de 0.5rem 1rem à 0.4rem 0.75rem */
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  margin: 0 0.15rem; /* Réduit de 0.25rem à 0.15rem */
  font-size: 0.95rem; /* Légèrement plus petit */
  white-space: nowrap; /* Empêche le retour à la ligne */
}

.navbar-custom .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-custom .nav-link i {
  margin-right: 0.25rem; /* Réduit de 0.3rem à 0.25rem */
  font-size: 0.9rem; /* Icônes légèrement plus petites */
}

/* Optimisation du dropdown Administration */
.navbar-custom .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-custom .dropdown-toggle::after {
  margin-left: 0.2rem; /* Réduit l'espace après le texte */
}

/* Dropdown avec la même couleur que la navbar */
.navbar-custom .dropdown-menu {
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  margin-top: 0.25rem; /* Réduit l'espace */
}

.navbar-custom .dropdown-item {
  color: #ffffff;
  transition: all var(--transition-fast);
  padding: 0.5rem 1rem; /* Optimisé */
  font-size: 0.9rem;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  background-color: var(--requasud-primary-light);
  color: #ffffff;
}

[data-bs-theme="dark"] .navbar-custom .dropdown-menu {
  background: linear-gradient(135deg, var(--requasud-primary-light) 0%, var(--requasud-primary) 100%);
}

/* Theme switcher button - plus compact */
.btn-rounded-circle {
  border-radius: 50%;
  width: 2.25rem; /* Réduit de 2.5rem à 2.25rem */
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.bg-light-hover:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Container de navigation optimisé */
.navbar-custom .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ajustement pour les écrans moyens */
@media (max-width: 1400px) {
  .navbar-custom .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .navbar-custom .nav-link i {
    font-size: 0.85rem;
  }
}

@media (max-width: 1200px) {
  .navbar-custom .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.1rem;
  }
}

/* Navigation mobile (reste inchangée) */
@media (max-width: 991.98px) {
  .navbar-custom .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    font-size: 1rem;
  }

  .navbar-custom .nav-link i {
    font-size: 1rem;
    margin-right: 0.5rem;
  }
}

/* ======================================
   4. BOUTONS
   ====================================== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--requasud-primary) 0%, var(--requasud-primary-dark) 100%);
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%);
  color: #ffffff;
}

.btn-secondary-custom {
  background-color: var(--requasud-secondary);
  border: none;
  color: var(--requasud-gray-900);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.btn-secondary-custom:hover {
  background-color: #88b534;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  border: 2px solid var(--requasud-primary);
  color: var(--requasud-primary);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
  background-color: var(--requasud-primary);
  color: #ffffff;
}

/* ======================================
   5. CARTES ET CONTENEURS
   ====================================== */
.card-custom {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-custom .card-header {
  background: linear-gradient(135deg, var(--requasud-primary) 0%, var(--requasud-primary-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
}

.card-custom .card-body {
  padding: 1.5rem;
}

.card-custom .card-footer {
  background-color: var(--requasud-gray-100);
  border-top: 1px solid var(--requasud-gray-300);
  padding: 1rem 1.5rem;
}

[data-bs-theme="dark"] .card-custom {
  background-color: #2b2b2b;
  color: #e9ecef;
}

[data-bs-theme="dark"] .card-custom .card-footer {
  background-color: #1f1f1f;
  border-top-color: #444;
}

/* Box avec bordure accentuée */
.box-accent {
  border-left: 4px solid var(--requasud-primary);
  padding: 1.5rem;
  background-color: var(--requasud-gray-100);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

[data-bs-theme="dark"] .box-accent {
  background-color: #2b2b2b;
}

/* ======================================
   6. FORMULAIRES
   ====================================== */
.form-control:focus,
.form-select:focus {
  border-color: var(--requasud-primary);
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--requasud-gray-800);
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .form-label {
  color: var(--requasud-gray-200);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.input-group-text {
  background-color: var(--requasud-primary);
  color: #ffffff;
  border: none;
}

/* Validation feedback */
.invalid-feedback {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ======================================
   7. TABLEAUX
   ====================================== */
.table-custom {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom thead {
  background: linear-gradient(135deg, var(--requasud-primary) 0%, var(--requasud-primary-dark) 100%);
  color: #ffffff;
}

.table-custom thead th {
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.table-custom tbody tr {
  transition: background-color var(--transition-fast);
}

.table-custom tbody tr:hover {
  background-color: rgba(44, 95, 45, 0.05);
}

[data-bs-theme="dark"] .table-custom tbody tr:hover {
  background-color: rgba(58, 122, 60, 0.1);
}

/* ======================================
   8. BADGES ET LABELS
   ====================================== */
.badge-custom {
  background-color: var(--requasud-primary);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
}

.badge-secondary-custom {
  background-color: var(--requasud-secondary);
  color: var(--requasud-gray-900);
}

/* ======================================
   9. ALERTS ET MESSAGES MODERNES ★ NOUVEAU
   ====================================== */

/* Alerte de base - anciennes alertes conservées */
.alert-custom {
  border-left: 4px solid var(--requasud-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
}

.alert-custom-success {
  background-color: #d1e7dd;
  border-left-color: #0f5132;
  color: #0f5132;
}

.alert-custom-warning {
  background-color: #fff3cd;
  border-left-color: #856404;
  color: #856404;
}

.alert-custom-danger {
  background-color: #f8d7da;
  border-left-color: #842029;
  color: #842029;
}

.alert-custom-info {
  background-color: #cfe2ff;
  border-left-color: #084298;
  color: #084298;
}

/* ★ NOUVELLES ALERTES MODERNES SEXY */
.alert-modern {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.alert-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.alert-modern i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Alerte INFO moderne (Bleu) */
.alert-modern-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.alert-modern-info i {
  color: #17a2b8;
}

/* Alerte SUCCESS moderne (Vert) */
.alert-modern-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-modern-success i {
  color: #28a745;
}

/* Alerte WARNING moderne (Jaune/Orange) */
.alert-modern-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-modern-warning i {
  color: #f39c12;
}

/* Alerte DANGER moderne (Rouge) */
.alert-modern-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-modern-danger i {
  color: #dc3545;
}

/* Variante avec icône en fond */
.alert-icon-bg {
  position: relative;
  overflow: hidden;
}

.alert-icon-bg::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.1;
  font-weight: 900;
}

/* Bouton de fermeture des alertes */
.alert-dismissible {
  padding-right: 3rem;
}

.alert-dismissible .btn-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
}

/* Animation d'apparition */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-animate {
  animation: slideInDown 0.4s ease-out;
}

/* Mode sombre pour alertes modernes */
[data-bs-theme="dark"] .alert-modern-info {
  background: linear-gradient(135deg, #0c5460 0%, #17a2b8 100%);
  color: #d1ecf1;
}

[data-bs-theme="dark"] .alert-modern-success {
  background: linear-gradient(135deg, #155724 0%, #28a745 100%);
  color: #d4edda;
}

[data-bs-theme="dark"] .alert-modern-warning {
  background: linear-gradient(135deg, #856404 0%, #ffc107 100%);
  color: #fff3cd;
}

[data-bs-theme="dark"] .alert-modern-danger {
  background: linear-gradient(135deg, #721c24 0%, #dc3545 100%);
  color: #f8d7da;
}

/* ======================================
   10. ACCORDIONS
   ====================================== */
.accordion-custom .accordion-item {
  border: 1px solid var(--requasud-gray-300);
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-custom .accordion-button {
  background: linear-gradient(135deg, var(--requasud-primary) 0%, var(--requasud-primary-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%);
}

.accordion-custom .accordion-button:focus {
  box-shadow: none;
  border-color: var(--requasud-primary);
}

/* ======================================
   11. TABS
   ====================================== */
.nav-tabs-custom {
  border-bottom: 2px solid var(--requasud-gray-300);
}

.nav-tabs-custom .nav-link {
  border: none;
  color: var(--requasud-gray-600);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--requasud-primary);
}

.nav-tabs-custom .nav-link.active {
  color: var(--requasud-primary);
  background-color: transparent;
  border: none;
}

.nav-tabs-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--requasud-primary);
}

/* ======================================
   12. MODALS
   ====================================== */
.modal-custom .modal-header {
  background: linear-gradient(135deg, var(--requasud-primary) 0%, var(--requasud-primary-dark) 100%);
  color: #ffffff;
  border-bottom: none;
}

.modal-custom .modal-header .btn-close {
  filter: invert(1);
}

.modal-custom .modal-footer {
  border-top: 1px solid var(--requasud-gray-300);
}

/* ======================================
   13. FOOTER + RÉSEAUX SOCIAUX
   ====================================== */
footer.bg-gradient-custom {
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%) !important;
  color: #ffffff;
  padding: 3rem 0 1rem;
}

.footer-logo-section .requasud-main-logo {
  transition: all var(--transition-normal);
  filter: brightness(1);
}

.footer-logo-section .requasud-main-logo:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.footer-social-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-3px);
  color: white;
}

.social-facebook:hover {
  background: #1877f2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-twitter:hover {
  background: #1da1f2;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.4);
}

.social-linkedin:hover {
  background: #0077b5;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  display: inline-block;
}

.footer-links li a:hover,
.hover-link:hover {
  color: white !important;
  transform: translateX(5px);
}

footer .row.g-4 {
  row-gap: 2rem !important;
  column-gap: 1.5rem !important;
}

footer .col-6,
footer .col-md-2,
footer .col-md-3,
footer .col-md-4 {
  min-height: 120px;
  padding: 1rem 0.75rem;
}

.partner-logo-wallonie { max-height: 150px; }
/*.partner-logo-ucl { max-height: 150px; }
.partner-logo-gembloux { max-height: 150px; }*/

.text-white-80 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.partner-logo-footer {
  padding: 0.5rem;
  max-width: 100%;
  height: auto;
  max-height: 150px;
}

.partner-logo-footer:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

footer.bg-gradient-custom a.hover-underline {
  position: relative;
  transition: all var(--transition-normal);
}

footer.bg-gradient-custom a.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width var(--transition-normal);
}

footer.bg-gradient-custom a.hover-underline:hover::after {
  width: 100%;
}

/* ======================================
   14. CARTES GÉOGRAPHIQUES
   ====================================== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
}

.map-legend {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .map-legend {
  background-color: rgba(43, 43, 43, 0.95);
}

/* ======================================
   15. SECTIONS DE CONTENU
   ====================================== */
.section-hero {
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%);
  color: #ffffff;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-lg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.section-content {
  padding: var(--spacing-lg) 0;
}

.section-title {
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--requasud-secondary);
  border-radius: var(--radius-sm);
}

/* ======================================
   16. ICÔNES ET VISUELS
   ====================================== */
.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--requasud-primary) 0%, var(--requasud-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
}

.feature-box {
  text-align: center;
  padding: var(--spacing-md);
  transition: transform var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-box:hover .icon-wrapper {
  box-shadow: var(--shadow-md);
}

.img-custom {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.img-custom:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

/* ======================================
   17. SPINNER / LOADING
   ====================================== */
.spinner-custom {
  border: 4px solid var(--requasud-gray-300);
  border-top: 4px solid var(--requasud-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ======================================
   18. UTILITAIRES
   ====================================== */
.bg-primary-custom {
  background-color: var(--requasud-primary) !important;
}

.bg-secondary-custom {
  background-color: var(--requasud-secondary) !important;
}

.bg-gradient-custom {
  background: linear-gradient(135deg, var(--requasud-primary-dark) 0%, var(--requasud-primary) 100%) !important;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--requasud-primary) 50%, transparent 100%);
  margin: var(--spacing-lg) 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

.sticky-top {
  position: sticky !important;
  z-index: 1020;
  transition: all var(--transition-normal);
}

.sticky-top.bg-white {
  background-color: white !important;
}

.sticky-top.is-stuck {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ======================================
   19. RESPONSIVE
   ====================================== */
@media (max-width: 991.98px) {
  .navbar-custom .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
  }

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

  .section-hero {
    padding: var(--spacing-lg) 0;
  }

  .footer-logo-section {
    text-align: center;
  }

  footer.bg-gradient-custom {
    padding: 2.5rem 0 1.5rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-links {
    margin-bottom: 1.5rem;
  }

  .alert-modern {
    flex-direction: column;
    text-align: center;
  }

  .alert-modern i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .card-custom .card-body {
    padding: 1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .footer-social-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links li a {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .card-custom .card-body {
    padding: 1rem;
  }
}

/* ======================================
   20. ANIMATIONS
   ====================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

/* ======================================
   21. ACCESSIBILITÉ
   ====================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--requasud-secondary);
  outline-offset: 2px;
}

/* ======================================
   22. PRINT STYLES
   ====================================== */
@media print {
  .navbar-custom,
  footer,
  .btn,
  .no-print {
    display: none !important;
  }

  body {
    background-color: #ffffff;
    color: #000000;
  }

  a {
    text-decoration: underline;
  }
}

/* ======================================
   23. STICKY FOOTER
   ====================================== */
html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
}

body > nav {
  flex-shrink: 0;
}

body > :not(nav):not(footer) {
  flex: 1 0 auto;
  padding-top: 60px;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0 !important;
}

footer.bg-gradient-custom {
  margin-bottom: 0 !important;
  padding-bottom: 2rem !important;
}

[data-bs-theme="dark"] footer.bg-gradient-custom {
  background: linear-gradient(135deg, var(--requasud-primary-light) 0%, var(--requasud-primary) 100%) !important;
}

/* ======================================
   24. HOMEPAGE CAROUSEL ★ NOUVEAU
   ====================================== */
#carousel-homepage {
  margin-bottom: 0 !important;
}

.carousel-item {
  height: 320px;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.85);
}

.carousel-caption-modern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 750px;
  bottom: auto;
}

.stats-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.stats-box h1 {
  color: var(--requasud-primary);
  font-size: 2.25rem;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 0;
}

.stat-item-modern {
  text-align: center;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.divider-custom {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--requasud-primary), var(--requasud-secondary));
  border-radius: 2px;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ======================================
   25. HOMEPAGE CARDS ★ NOUVEAU
   ====================================== */
.modern-card {
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--requasud-primary), var(--requasud-secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.modern-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.shadow-hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--requasud-primary), var(--requasud-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(44, 95, 45, 0.3);
  transition: all 0.3s ease;
}

.modern-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.icon-box.bg-warning {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.icon-box.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.icon-box.bg-info {
  background: linear-gradient(135deg, #17a2b8, #0dcaf0);
  box-shadow: 0 10px 25px rgba(23, 162, 184, 0.3);
}

.icon-box.bg-danger {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.card-title-custom {
  color: #212529;
  font-size: 1.5rem;
  line-height: 1.3;
}

.card-text-custom {
  font-size: 1rem;
  line-height: 1.7;
}

.btn-modern {
  border-width: 2px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--requasud-primary), var(--requasud-primary-light));
  border-color: var(--requasud-primary);
  color: white;
}

/* Responsive Homepage */
@media (min-width: 1200px) {
  .col-xl {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (max-width: 1199px) {
  .stats-grid {
    gap: 1.75rem;
  }
  .stat-number {
    font-size: 1.65rem;
  }
}

@media (max-width: 992px) {
  .carousel-item {
    height: 280px;
  }
  .stats-box {
    padding: 1.75rem 2rem;
  }
  .stats-box h1 {
    font-size: 1.85rem;
  }
  .stats-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 260px;
  }
  .stats-box {
    padding: 1.5rem;
  }
  .stats-box h1 {
    font-size: 1.65rem;
  }
  .stats-grid {
    flex-direction: column;
    gap: 0.75rem;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .icon-box {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 240px;
  }
  .stats-box {
    padding: 1.25rem;
  }
  .stats-box h1 {
    font-size: 1.5rem;
  }
}
