/* Styles globaux */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --violet: #cc0b5d;
}

/* Réinitialisation du style de la body */
body {
  padding-top: 71px;
  font-family: Arial, sans-serif;
}

/* Top Bar */
#top-bar {
  background: white;
  width: 100vw;
  border-bottom: 1px solid #c4c4c4;
  position: fixed;
  top: 0;
  z-index: 10000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar-menu {
  color: #cc0b5d;
  border: none;
  display: inline-block;
}

.top-bar-menu i {
  margin-right: 5px;
}

.top-bar-menu:hover, .top-bar-menu.active {
  background: #cc0b5d;
  color: white !important;
  border-radius: 25px;
}

/* Bannière */
.blur {
  background: #292929;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
}

.banner2 {
  width: 100%;
  margin: 0;
  height: 500px;
}

.banner {
  width: 100%;
  margin: 0;
  height: 200px;
}

.parallax {
  background-image: url('../images/banner.jpg');
  height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home {
  min-height: 550px;
  width: 100%;
}

.home p{
  position: absolute !important;
  top: 15% !important;
  margin-left: 15% !important;
  width: 50% !important;
  font-size: 25px !important;
  color: #fff !important;
  z-index: 9999 !important;
}

/* Services */
.services {
  background: #f0f6fa;
}

.card.service {
  height: 170px;
  transition: scale 0.1s ease-in-out;
  box-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}

.card.service:hover {
  transform: scale(1.1);
}

.img-section {
  transition: scale 0.1s ease-in-out;
}

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

/* Partenaires */
#partners {
  background-color: #f0f6fa;
  padding: 60px 0;
}

.partner-logo {
  max-width: 250px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.1);
  opacity: 1;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Design */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
  #top-bar{
    width: 100vw !important;
  }
  .home {
    min-height: 400px;
  }

  .banner2 {
    height: 400px;
  }

  .card.service {
    height: 150px;
  }

  #top-bar img {
    width: 50px;
  }

  #partners h2 {
    font-size: 1.5rem;
  }
}

/* Mobiles (576px - 768px) */
@media (max-width: 768px) {
  #top-bar{
    width: 100% !important;
  }
  .home {
    min-height: 300px;
   
  }
  .home p{
    font-size: 16px !important;
    
  }

  .presentation{
    display: flex !important;
    justify-content: center;
    margin: 4px 0 !important;
    width: 100%;
  }

  .card.service{
    height: auto !important;
  }
  .col-card{
    flex: 1 0 100%;
    margin: 5px;
  }
  .banner2 {
    height: auto !important;
  }

  .parallax {
    background-position: top;
  }

  .top-bar-menu {
    font-size: 14px;
  }

  .card.service {
    height: 120px;
  }

  .img-section {
    width: 150px;
  }

  .partner-logo {
    max-width: 200px;
  }

  .swiper-slide {
    width: 100%;
  }
}

/* Petits écrans (375px - 576px) */
@media (max-width: 576px) {
  .home {
    min-height: 250px;
  }
  .home p{
    font-size: 13px;
    color: #292929;
  }

  .banner2 {
    height: 300px;
  }

  .parallax {
    background-position: top;
  }

  #top-bar {
    padding: 10px;
  }

  #top-bar img {
    width: 40px;
  }

  .top-bar-menu {
    font-size: 12px;
    padding: 5px;
  }

  .card.service {
    height: 100px;
  }

  .img-section {
    width: 120px;
  }

  .partner-logo {
    max-width: 150px;
  }

  /* Alignement du footer pour les petits écrans */
  footer p {
    font-size: 12px;
    text-align: center;
  }
}
