/** ADD YOUR AWESOME CODES HERE **/

/* Styles modernes pour CADEE-COOP - Mars 2025 */

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

/* Variables de couleurs */
:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --accent-color: #4285f4;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  --gradient-secondary: linear-gradient(135deg, #34a853 0%, #0f9d58 100%);
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles généraux */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Navigation */
.top-navbar {
  background: var(--dark-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.top-navbar .navbar {
  background-color: #1a1a2e !important;
}

.navbar-brand img {
  max-height: 50px;
  transition: all 0.3s ease;
}

/* Uniformisation de la taille du texte dans la navigation pour toutes les pages */
.navbar-light .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem !important; /* Taille de police uniforme pour toutes les pages */
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-item.active .nav-link {
  color: var(--secondary-color) !important;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-item.active .nav-link::after {
  width: 80%;
}

.dropdown-menu {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.85rem !important; /* Taille de police uniforme pour les éléments du menu déroulant */
}

.dropdown-item:hover {
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Boutons de navigation - Ajustement pour éviter le chevauchement */
.navbar-right .nav-link,
.navbar-right .hover-btn-new {
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  margin-left: 5px !important;
  white-space: nowrap;
}

.navbar-right .hover-btn-new {
  background: var(--gradient-primary);
  border: none;
  border-radius: 30px;
  color: #fff !important;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.navbar-right .hover-btn-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.navbar-right .hover-btn-new span {
  display: inline-block;
  line-height: 1.2;
}

.navbar-right .hover-btn-new strong {
  font-size: 0.8rem;
  display: block;
}

/* Ajustement de l'espacement pour les éléments de navigation */
.navbar-nav {
  margin-right: 15px;
}

.navbar-nav .nav-item {
  margin: 0 2px;
}

/* Ajustement de la taille du logo pour libérer de l'espace */
.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  max-height: 45px;
  margin-right: 5px;
}

/* Boutons */
.hover-btn-new {
  background: var(--gradient-primary);
  border: none;
  border-radius: 30px;
  color: #fff !important;
  font-weight: 600;
  padding: 12px 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.hover-btn-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.hover-btn-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  z-index: -1;
  transition: all 0.5s ease;
  opacity: 0;
}

.hover-btn-new:hover::before {
  opacity: 1;
}

/* Carousel */
.carousel-item {
  height: 85vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-caption {
  bottom: 20%;
  z-index: 10;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s;
}

.carousel-caption p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 80%;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: var(--secondary-color);
  transform: scale(1.2);
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 4px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.card-text {
  color: #6c757d;
  margin-bottom: 20px;
}

/* Effets d'animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Correction améliorée pour le préchargeur */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.progress-br {
  height: 5px;
  width: 100px;
  margin: 0 auto;
  background-color: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
}

.progress-br .progress__item {
  width: 0;
  height: 100%;
  background-color: #1a1a2e;
  animation: progress 2s ease infinite;
}

@keyframes progress {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--dark-color);
    padding: 20px;
    border-radius: 0 0 10px 10px;
  }
  
  .navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .carousel-item {
    height: 70vh;
  }
  
  .carousel-caption h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 60vh;
  }
  
  .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Styles pour les logos des partenaires */
.parallax.section.dbcolor {
  background-color: rgba(26, 26, 46, 0.9) !important;
  position: relative;
}

.parallax.section.dbcolor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 46, 0.7);
  z-index: 0;
}

.parallax.section.dbcolor .container {
  position: relative;
  z-index: 1;
}

.logos img {
  max-width: 100%;
  transition: all 0.3s ease;
  opacity: 1;
  filter: brightness(1);
}

.logos a:hover img {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(1.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animation pour les badges */
.badge {
  transition: all 0.3s ease;
}

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