/* Import de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
}
/* Transition animée pour les sections */
.section-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loader */
#pageLoader {
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

/* Animation pour faire disparaître le loader */
body.loaded #pageLoader {
  opacity: 0;
  visibility: hidden;
}


.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Surbrillance sombre */
  z-index: -1; /* Reste derrière le contenu */
}


.hero-section h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3rem;
}

.hero-section p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-section .btn {
  border-radius: 30px;
  font-size: 1.1rem;
}
.dropdown-menu {
            background-color: #007BFF;
            border-radius: 0;
        }

/* Cartes des catégories */
.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
}
.card img {
            border-radius: 50%;
            width: 50px;
            height: 50px;
        }
.navbar {
            background-color: #007BFF;
        }

        .navbar-nav a {
            color: white !important;
        }

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  background-color: #f9f9f9;
  transform: scale(1.01);
  transition: 0.2s ease;
}


.card-body i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Boutons */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
  color: #fff !important;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
}

.btn-outline-success:hover {
  background-color: #198754;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
}

/* Responsive ajustements */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
  
}
/* Style pour l'affichage des réponses */
.reply {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.reply .username {
    font-weight: bold;
}

.reply .time {
    color: #777;
    font-size: 0.9em;
}

.reply .content {
    margin-top: 10px;
}

/* Style pour l'avatar */
.reply img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Differentiation pour l'utilisateur connecté */
.reply.bg-light {
    background-color: #f1f1f1;
}
/* S'assurer que l'avatar est centré et à sa place */
.navbar .nav-item.dropdown img {
    width: 30px;  /* Taille de l'avatar */
    height: 30px;
    border-radius: 50%;  /* Faire l'avatar rond */
    object-fit: cover;  /* Gérer la coupe de l'image */
    margin-right: 10px;  /* Espace entre l'image et le nom d'utilisateur */
}

.navbar .nav-item.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;  /* Centrer le contenu verticalement */
    padding: 5px 10px;  /* Espacement pour l'avatar et le texte */
}

