/* commit name: fix-uniform-image-style */
/* Variables de couleur */
:root {
  --blue-dark: #3585e6;   /* Bleu marine */
  --blue-light: #1e81b0;  /* Bleu clair */
  --white: #ffffff;
  --gray-light: #f8f9fa; /* Gris clair */
  --gray-dark: #343a40;  /* Gris foncé */
}

/* Corps de page */
body {
  background-color: var(--gray-light);
  font-family: 'Montserrat', sans-serif;
}

/* Navbar et footer */
.bg-darkblue {
  background-color: var(--blue-dark) !important;
}
.text-bg-darkblue {
  background-color: var(--blue-dark) !important;
  color: var(--white) !important;
}


/* Boutons */
.btn-primary {
  background-color: var(--blue-light) !important;
  border-color: var(--blue-light) !important;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--blue-dark) !important;
  border-color: var(--blue-dark) !important;
}

/* Contenu */
.content {
  min-height: calc(100vh - 110px);
}

/* Offcanvas style (menu mobile) */
.offcanvas.offcanvas-end.text-bg-darkblue {
  background-color: var(--blue-dark);
}

/* Uniformiser les images avec fond blanc */
.card-img-top {
  width: 100%;
  height: 200px !important; /* Taille fixée pour uniformiser les cartes */
  object-fit: contain !important; /* Affiche l'image entière */
  background-color: #fff !important; /* Fond blanc pour remplir les espaces */
  padding: 10px; /* Optionnel : Espace autour de l'image */
  border-radius: 0.25rem; /* Bordure arrondie */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ajout d'une légère ombre */
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 0.5rem;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.card-title {
  font-weight: bold;
  color: var(--blue-dark);
}
.card-text {
  color: var(--gray-dark);
}

/* Modals */
.modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.modal-header {
  background-color: var(--blue-dark);
  color: var(--white);
  border-bottom: none;
}
.modal-title {
  font-weight: bold;
}
.modal-body {
  padding: 2rem;
}
.modal-footer {
  border-top: none;
}

/* Formulaires */
.form-select, .form-control {
  border-radius: 0.5rem;
  border-color: var(--gray-dark);
  box-shadow: none;
  transition: border-color 0.3s ease;
}
.form-select:focus, .form-control:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 0.2rem rgba(53, 133, 230, 0.25);
}

/* Animations supplémentaires */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.6s ease;
}

/* Divers utilitaires */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.carousel-inner img {
  height: 400px;
  object-fit: contain;
}
/* commit name: randomized-bubbles-enhanced */

/* Conteneur général pour les bulles */
#background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Assure que les bulles restent en arrière-plan */
  overflow: hidden;
  background: linear-gradient(to bottom, #dceefb, #a2d9ff); /* Dégradé bleu ciel */
}

/* Style des bulles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 206, 250, 0.8), rgba(70, 130, 180, 0.6)); /* Gradient subtile */
  animation: floatRandom 20s infinite ease-in-out; /* Animation fluide avec trajectoires aléatoires */
  opacity: 0.9; /* Transparence légère */
  mix-blend-mode: screen; /* Superposition visuelle améliorée */
}

/* Animation des bulles */
@keyframes floatRandom {
  0% {
      transform: translate(var(--start-x), var(--start-y)) scale(var(--scale));
      opacity: 0.5;
  }
  50% {
      transform: translate(var(--mid-x), var(--mid-y)) scale(calc(var(--scale) * 1.5));
      opacity: 0.8;
  }
  100% {
      transform: translate(var(--end-x), var(--end-y)) scale(var(--scale));
      opacity: 0.3;
  }
}
