/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body, html {
  background-color: #ffffff; /* Couleur blanche globale */
  margin: 0;
  padding: 0;
}


/* Header */
.en-cables {
  /*position: relative;*/
  height: 70vh;
  background: url('image/picture/cablage.jpg') no-repeat center center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.en-cables::before {
  content: ""; /* Pseudo-élément pour l'overlay */
  position: absolute; /* Se place par-dessus le background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(36, 36, 147, 0.5); /* Bleu transparent (RGBA) */
  z-index: -1; /* Envoie l'overlay derrière le contenu */
}



/* Info Route Section */
.info-route {
  position: relative;
  background-color: #5a8cb7; /* Couleur de fond */
  color: white; /* Couleur du texte */
  padding: 10rem 2rem;
  z-index: 1;
  text-align: center;

  /* Forme octogonale */
  clip-path: polygon(
    25% 0, 75% 0, 100% 20%, 100% 80%, 
    75% 100%, 25% 100%, 0 80%, 0 20%
  );

  /* Chevauchement */
  margin-top: -150px; /* Chevauche la section supérieure */
  margin-bottom: -50px; /* Chevauche la section inférieure */

  /* Ombre */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.575), /* Ombre principale */
              0 -15px 25px rgba(0, 0, 0, 0.527); /* Ombre supérieure */

  overflow: hidden; /* Masque les éléments dépassant */


}

info-route::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Assurez que le fond est blanc */
  z-index: -1; /* Placez derrière le contenu */
}


/* Conteneur principal */
.info-container {
  position: relative;
  z-index: 2; /* Assure que le contenu est au-dessus */
  max-width: 1200px;
  margin: auto;
}

.info-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Les éléments passent à la ligne si nécessaire */
  gap: 1rem; /* Ajoute un espacement entre les éléments */
  margin-bottom: 2rem;
}

.play-icon {
  background-color: #fff;
  color: #5a8cb7;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre douce */
  margin-left: -50%;
}


.info-title h2 {
  font-size: 2.5rem;
  margin: 0;
}

.info-text {
  display: flex;
  flex-wrap: wrap; /* Les colonnes passent à la ligne sur petits écrans */
  gap: 2rem;
  justify-content: center; /* Centrer les colonnes */
  margin-bottom: 2rem;
}

.info-text p {
  flex: 1 1 calc(50% - 2rem); /* Chaque colonne occupe 50% avec un espace de 2rem */
  min-width: 300px; /* Largeur minimale pour éviter trop de réduction */
  margin: 0;
}

.info-more {
  background-color: #35729e;
  padding: 1rem; /* Ajuste l'espacement intérieur */
  border-radius: 5px;
  margin: 2rem auto; /* Centre horizontalement */
  width: 20%; /* Réduit la largeur */
  max-width: 80%; /* Réduit la largeur pour l’adapter */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre douce */
  text-align: left; /* Centre le texte */
  margin-left: 10%; /* Déplace vers la gauche */
}

.info-more h3 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.info-more ul {
  list-style: none;
  padding: 0;
}



.info-more ul li {
  margin: 0.8rem 0;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease; /* Animation fluide */
  padding: 0.5rem; /* Ajoute un peu de padding pour l'effet visuel */
  border-radius: 5px; /* Ajoute des bords arrondis */
}

/* Effet de survol */
.info-more ul li:hover {
  background-color: #ffc107; /* Couleur de fond en surbrillance */
  color: #002d62; /* Couleur du texte en surbrillance */
  cursor: pointer; /* Change le curseur en pointeur */
}

.titre-en-couleur{
  color:orange;
}

.nos-offres ul li a {
  text-decoration: none; /* Retire le soulignement */
  color: #ccc; /* Couleur grise par défaut */
  transition: color 0.3s ease, background-color 0.3s ease; /* Animation fluide */
}

.nos-offres ul li a:hover {
  background-color: #ffc107; /* Fond jaune au survol */
  color: #002d62; /* Texte bleu au survol */
  cursor: pointer; /* Change le curseur */
}

/* Responsive Styles */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
  .info-route {
    padding: 4rem 1.5rem; /* Réduction des marges */
    margin-top: -60px;
    margin-bottom: -60px;
    clip-path: polygon(
      30% 0, 70% 0, 100% 20%, 100% 80%, 
      70% 100%, 30% 100%, 0 80%, 0 20%
    ); /* Forme ajustée */
  }

  .info-title h2 {
    font-size: 2rem; /* Taille réduite pour titres */
  }

  .play-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .info-text p {
    flex: 1 1 calc(100% - 2rem); /* Les colonnes occupent toute la largeur */
    min-width: unset; /* Supprime la largeur minimale */
  }
}

/* Petits écrans (mobiles) */
@media (max-width: 768px) {
  .info-route {
    padding: 3rem 1rem;
    margin-top: -50px;
    margin-bottom: -50px;
    clip-path: polygon(
      35% 0, 65% 0, 100% 25%, 100% 75%, 
      65% 100%, 35% 100%, 0 75%, 0 25%
    ); /* Ajustement de la forme */

  }

  .info-title h2 {
    font-size: 1.8rem;
  }

  .play-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .info-text p {
    flex: 1 1 100%; /* Chaque colonne prend toute la largeur */
  }

  .info-more h3 {
    font-size: 1.2rem;
  }

  .info-more ul li {
    font-size: 0.9rem;
  }

  .info-more {
    width: 90%; /* Plus large pour les écrans moyens */
  }
}

/* Très petits écrans (téléphones) */
@media (max-width: 480px) {


 
  .info-route {
    padding: 2rem 0.5rem;
    margin-top: -150px;
    margin-bottom: -80px;
    clip-path: polygon(
      40% 0, 60% 0, 100% 30%, 100% 70%, 
      60% 100%, 40% 100%, 0 70%, 0 30%

    );

    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.575), /* Ombre principale */
              0 -15px 25px rgba(0, 0, 0, 0.527); /* Ombre supérieure */

   
  }

  .info-title{
    margin-top: 100px;
    margin-left: 10%;
  }

  .info-title h2 {
    font-size: 1rem;
    margin-top: 20%;
  }

  .play-icon {
    width: 40px;
    height: 40px;
    font-size: 0.5rem;
    margin-top: 20%;
  }

  .info-text {
    flex-direction: column; /* Les colonnes deviennent une pile */
    gap: 1rem;
  }

  .info-more ul li {
    font-size: 0.8rem;
  }

  .info-more {
    width: 50%; /* Plus large pour les petits écrans */
    margin-top: 20%;
    margin-left: 25%;
  }

  .info-more h3{
    font-size: 0.8rem;
  }
}

/*=========================================SECTION 2======================================================*/

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}

/* Section Styles */
.services-section {
  background-color: #5a8cb7;
  padding: 6rem 2rem;
  color: #ffffff;
  position: relative; /* Nécessaire pour le chevauchement */
  z-index: 1; /* Assure que la section reste au-dessus des autres */
  margin-top: -100px; /* Permet le chevauchement en tirant cette section vers le haut */
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-icon {
  background-color: #ffffff;
  color: #5a8cb7;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.services-header h1 {
  font-size: 2rem;
  font-weight: bold;
}

.services-content {
  display: flex;
  gap: 2rem;
}

.text-columns {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-columns p {
  line-height: 1.8;
}

.quote-box {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.8);
  color: #002d62;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: absolute; /* Permet de la positionner librement */
  top: -150px; /* Chevauchement de 50px */
  right: 2rem; /* Distance par rapport au bord droit */
  width: 250px; /* Réduit la largeur de la boîte */
  z-index: 2; /* Au-dessus de la section précédente */
}

.quote-box h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cta-button {
  text-align: center;
}

.cta-button button {
  background-color: #ffc107;
  color: #5a8cb7;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cta-button button:hover {
  background-color: #e0a800;
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .services-content {
    flex-direction: column;
  }

  .quote-box {
    margin-top: 1rem;
    position: static; /* Supprime le chevauchement sur les petits écrans */
    margin-top: 1rem; /* Ajoute un espace au-dessus */
    width: 100%; /* Prend toute la largeur sur mobile */
  }
}

@media (max-width: 480px) {
  .services-header h1 {
    font-size: 1.5rem;
  }

  .play-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}


/*=========================================SECTION 2======================================================*/

/* Section Road Openings */
.road-openings {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background-color: #ffffff;
  margin-top: 4rem; /* Ajout d'un espacement vers le haut */

}

.road-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.road-item.reverse {
  flex-direction: row-reverse;
}

.road-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  position: relative;
}

.road-text h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #4b0082;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Barre jaune avec ombrage */
.road-text::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100px;
  height: 5px;
  background-color: #ffc107;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.road-text p {
  line-height: 1.6;
  color: #555;
}

.play-icon-station {
  background-color: #ffc107;
  color: #4b0082;
  width: 45px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
 
}

.road-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.road-image img {

  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .road-item {
      flex-direction: column;
      text-align: center;
  }

  .road-item.reverse {
      flex-direction: column;
  }

  .road-text h3 {
    justify-content: center;
}

  .road-image img {
      max-width: 100%;
  }
}

/*==================SECTION 3=================================================*/

/* Section Styles */
.gallery {
  background-color: #4d5d5e;
  padding: 3rem 2rem;
  color: white;
  text-align: center;
  position: relative;
}

.gallery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.play-icona {
  width: 50px;
  height: 50px;
  background-color: #d0f0f8;
  color: #002d62;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: bold;
}

/* Gallery Container */
.gallery-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  background-color: #d0f0f8;
  color: #002d62;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallery-btn:hover {
  transform: scale(1.1);
}

/* Images */
.gallery-images {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  width: 60%;
  position: relative;
  overflow-x: auto; /* Enables horizontal scrolling */
  scroll-behavior: smooth; /* Smooth scrolling for better UX */
}

.gallery-image {
  flex: 0 0 100px; /* Smallest image size */
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
  transform: scale(0.8);
}

.gallery-image.active {
  width: 300px;
  height: 300px;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Responsive Styles */
/* Responsive Styles */
@media (max-width: 768px) {
  .gallery-header {
    flex-direction: column;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
  }

  .gallery-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery-images {
    width: 100%;
    overflow-x: scroll; /* Allows horizontal scrolling on smaller screens */
  }

  .gallery-image.active {
    flex: 0 0 250px; /* Adjust main image size */
    height: 250px;
  }

  .gallery-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.2rem;
  }

  .gallery-images {
    gap: 0.5rem;
  }

  .gallery-image {
    flex: 0 0 80px; /* Smaller image sizes */
    height: 80px;
  }

  .gallery-image.active {
    flex: 0 0 200px; /* Adjust main image size */
    height: 200px;
  }

  .play-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gallery-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}