:root {
  --primary-color:#ffd700 ;
  --secondary-color:#127c25;
}

body {
  font-family: 'Arial', sans-serif;
  padding-top: 76px;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655');
  background-size: cover;
  background-position: center;
  height: 80vh;
  color: white;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  transition: transform 0.3s;
  height: 100%;
}

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

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

.social-links a {
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color) !important;
}

section {
  padding: 80px 0;
}

 .navbar {
  background-color: #ffffff; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  padding: 1rem 0; 
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .nav-link {
  color: #333333; 
  font-weight: 500; 
  margin-left: 1rem; 
  transition: color 0.3s ease;
}


 .navbar .nav-link:hover {
  color: var(--primary-color); 
} 

.navbar .nav-link.active {
  color: var(--secondary-color); 
  font-weight: bold;
}

.navbar-toggler {
  border: none; 
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar.scrolled {
  background-color: #f8f9fa; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}





.btn-primary {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #000; 
}

.form-control {
  padding: 0.8rem;
  border-radius: 8px;
}

footer {
  margin-top: 2rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

footer a {
  color: var(--secondary-color);
}

footer a:hover {
  color: #fff;
}

.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
}

.contact-info p {
  margin-bottom: 10px;
}

/* Trainer Cards Styles */
.trainer-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-10px);
}

.trainer-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.trainer-card h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.trainer-card .social-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: opacity 0.3s;
}

.trainer-card .social-links a:hover {
  opacity: 0.8;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1); 
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1; 
}

.gallery-item .overlay p {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .lead {
    font-size: 1.2rem;
  }

  .trainer-card {
    margin-bottom: 20px;
  }

  #testimonials .feedback-card {
    margin-bottom: 20px; /* Ajoute un espacement entre les cartes */
  }

  #testimonials .row {
    flex-direction: column; /* Empile les cartes verticalement */
  }

  #testimonials .col-md-4 {
    width: 100%; /* Les colonnes prennent toute la largeur */
  }

  #formations h2 {
    font-size: 1.5rem; /* Réduit la taille du titre */
  }

  #formations .carousel-control-prev,
  #formations .carousel-control-next {
    display: none; /* Cache les boutons de navigation du carousel */
  }

  #formations .carousel-inner {
    padding: 0 10px; /* Ajoute un peu de marge intérieure pour le contenu */
  }

  /* Ajuste la section Hero */
  #accueil {
    padding: 50px 15px; /* Réduit le padding pour éviter le chevauchement */
    text-align: center;
  }

  #accueil h1 {
    font-size: 1.8rem; /* Réduit la taille du titre */
  }

  #accueil p {
    font-size: 1rem; /* Réduit la taille du texte */
  }

  #accueil .btn {
    font-size: 0.9rem; /* Réduit la taille du bouton */
    padding: 10px 20px;
  }

  /* Ajuste la section Formations */
  #formations {
    padding: 30px 15px; /* Réduit le padding */
  }

  #formations h2 {
    font-size: 1.5rem; /* Réduit la taille du titre */
  }

  #formations .carousel {
    margin-top: 20px; /* Ajoute un espacement entre le titre et le carousel */
  }

  #formations .carousel-control-prev,
  #formations .carousel-control-next {
    display: none; /* Cache les boutons de navigation sur mobile */
  }

  .row.mt-5 {
    margin-top: 20px; /* Réduit l'espacement supérieur */
  }

  .col-md-4 {
    margin-bottom: 20px; /* Ajoute un espacement entre les cartes */
  }

  .card {
    margin: 0 auto; /* Centre les cartes */
    width: 90%; /* Réduit la largeur des cartes pour s'adapter à l'écran */
  }

  .card-body {
    padding: 15px; /* Réduit le padding interne des cartes */
  }

  .card-title {
    font-size: 1.2rem; /* Réduit la taille du titre */
  }

  .card-text {
    font-size: 0.9rem; /* Réduit la taille du texte */
  }
}
@media (max-width: 576px) {
  .trainer-card {
    width: 100%;
    margin: 0 auto;
  }

  .trainer-card img {
    width: 100px;
    height: 100px;
  }

  #formations h2 {
    font-size: 1.2rem; /* Réduit encore plus la taille du titre */
  }

  #formations .container {
    padding: 0 15px; /* Réduit les marges latérales */
  }

  #accueil h1 {
    font-size: 1.5rem; /* Réduit encore plus la taille du titre */
  }

  #formations h2 {
    font-size: 1.2rem; /* Réduit encore plus la taille du titre */
  }

  .row.mt-5 {
    flex-direction: column; /* Empile les colonnes verticalement */
  }

  .card {
    width: 100%; /* Les cartes prennent toute la largeur */
  }

  .card-title {
    font-size: 1rem; /* Réduit encore plus la taille du titre */
  }

  .card-text {
    font-size: 0.8rem; /* Réduit encore plus la taille du texte */
  }
}
@media (max-width: 992px) {
  .navbar {
    padding: 5px 10px;
  }
/* 
  .navbar-brand {
    font-size: 1rem;
  } */

  .navbar .nav-link {
    font-size: 0.5rem;
  }
}
@media (max-width: 576px) {
  footer {
    padding: 20px;
  }

  footer a {
    font-size: 0.9rem;
  }
}

.feedback-card {
  background-color: #f8f9fa; 
  border-left: 4px solid var(--primary-color); 
  font-style: italic;
}

.feedback-card p {
  font-size: 1rem;
  color: #555; 
}

.feedback-card h6 {
  font-weight: bold;
  color: var(--primary-color); 
}

#formations {
  margin-top: 8rem; 
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%; 
  color: var(--primary-color); 
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color); 
  border-radius: 50%; 
  width: 40px;
  height: 40px;
}



.carousel-control-prev {
  left: -6%; 
}

.carousel-control-next {
  right: -6%; 
}
/* Style pour le logo dans la navbar */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
}

.navbar-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-left: 15px;
}

/* Ajustement de la navbar pour assurer un bon espacement */
.navbar {
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Assurer que le container ne pousse pas le logo */
.navbar > .container {
  margin-left: 0;
}

/* Ajustement pour les écrans mobiles */
@media (max-width: 991.98px) {
  .navbar-brand img {
    margin-left: 10px;
  }
  
  .navbar > .container {
    margin-left: auto;
    margin-right: auto;
  }
}