header {
    display: flex;
  	width:100%;
  	height: 50vh;
    justify-content: center;
    align-items: center;
    background-image: url(images/banniere-up.webp);
    background-size : cover;
    color: white;
}


section {
    padding: 30px;
}

  
.service-item {
    position: relative; /* Position relative pour permettre un positionnement absolu du texte */
    width: 30%; /* Ajustez cette valeur en fonction du nombre d'éléments */
    margin: 10px;
    overflow: hidden;
    border-radius: 10px; /* Bords arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour effet de profondeur */
}

.service-item img {
    width: 100%; /* L'image prend toute la largeur du conteneur */
    height: 100%;
    transition: transform 0.3s ease; /* Transition pour l'effet de zoom */ 
}

@media (max-width: 768px) {
  .service-item {
    display: none;
  }
}

.service-item:hover img {
    transform: scale(1.1); /* Effet de zoom au survol */
}

.service-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour le texte */
    color: white;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    transition: background 0.3s ease; /* Transition pour un effet au survol */
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, 0.7); /* Fond légèrement plus sombre au survol */
}

.services-bloc {
    background-color: #fff;
    border-radius: 20px;
    display:flex;
    flex-direction:column;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    width: 400px;
    padding: 20px;
}

.home {
    border-radius: 20px;
    display:flex;
    flex-direction:column;
    padding: 20px;
}

.background {
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}



/* Carrousel */
#carousel {
    position: relative;
    max-width: 100%;
    
    overflow: hidden;
    justify-content: center;
}

.carousel-container {
    display: flex;
    position: relative;
    width: 100%;
    align-items: center; /* Centre verticalement les images */
    justify-content: center; /* Centre horizontalement les images */
}

.carousel-slide {
    display: block;
    flex-shrink: 0;
    width: 70vh;
  	height: 70vh;
  	
}

.carousel-slide img {
    width: 100%;
  	
    margin: 0 auto; /* Centre horizontalement si l'image n'utilise pas tout l'espace */
}

/* Effet de transition */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Boutons de navigation */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 16px;
    cursor: pointer;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}


.reseaux-section {
    display: flex;
    flex-direction: row;
    width: 100%;
  justify-content: center;
}

.reseaux-logo {
    height: 10%;
    padding: 0.5vh;
  	justify-content: center;
    transition: transform 0.3s ease;
}
.reseaux-logo:hover img {
    transform: scale(1.1);
}


