/* CSS GLOBAL ET BODY */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  height: 100%;
}

/* HEADER */

header {
  display: flex;
  align-items: center;
  background-color: #f4f4f4;
  height: 125px;
}

.logo {
  height: 100px;
  width: auto;
  margin-left: 15px;
  margin-right: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  padding-left: 10px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 20px;
}

nav ul li a:hover {
  color: #007bff;
}

/* MAIN SECTION */

main {
  padding: 0;
  margin: 0;
}

.intro {
  background-color: #0064cf;
  color: white;
  text-align: center;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  padding-top: 10px;
  margin-top: 0;
}

.intro p {
  font-size: 1.2rem;
  margin: 0;
  padding-bottom: 20px;
}

.about {
  padding: 10px;
  background-color: #dfdfdf;
  margin-bottom: 0;
  text-align: center;
}

.contact {
  padding: 30px;
  background-color: #f4f4f4;
  text-align: center;
}

/* FORMULAIRE ET SON CONTENU */

.content-container {
  display: flex;
  gap: 150px;
  width: 100%;
  max-width: 1200px;
  align-items: flex-start;
  flex-direction: row;
  margin-left: 20px;
  margin-bottom: 30px;
}

.form-container .formulaire label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.formulaire input,
.formulaire textarea {
  width: 850px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: none;
}

.small-and-button {
  display: flex;
  align-items: center;
  gap: 75%;
  margin-top: 10px;
}

small {
  margin: 0;
}

.submit {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.submit:hover {
  background-color: #0056b3;
}

iframe {
  width: 800px;
  height: 400px;
  border: none;
  margin-top: 200px;
}

/* FOOTER */

footer {
  position: sticky; /* Sticky par défaut sur les grands écrans */
  bottom: 0;
  background-color: #ccc;
  display: flex;
  justify-content: center; /* Centrer le contenu horizontalement */
  align-items: center; /* Centrer verticalement */
  height: 40px;
  width: 100%;
  padding: 5px 0;
}

.droits {
  text-align: center;
  flex: 1; /* L'élément .droits prendra l'espace restant */
  margin-left: 10%;
}

.mentionslegales {
  margin-right: 10%;
  flex: 0 0 auto; /* L'élément des mentions légales reste fixe */
}

.mentionslegales a {
  color: #333;
  text-decoration: none;
}

.mentionslegales a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* ANIMATION DU DIAPORAMA */

.d1 {
  width: 40%;
  height: 400px;
  background-color: #ededed;
  background-size: 100% 400px;
  background-repeat: no-repeat;
  animation: fondu 15s ease-in-out infinite both;
  margin: auto;
  margin-top: 40px;
  margin-bottom: -440px;
  border-radius: 5px;
  z-index: 2;
  position: relative;
}

.d1:hover {
  animation-play-state: paused;
}

@keyframes fondu {
  0% {
    background-image: url(images/diaporama/diap1.jpg);
  }
  20% {
    background-image: url(images/diaporama/diap2.jpg);
  }
  40% {
    background-image: url(images/diaporama/diap3.jpg);
  }
  60% {
    background-image: url(images/diaporama/diap4.jpg);
  }
  80% {
    background-image: url(images/diaporama/diap5.jpg);
  }
  100% {
    background-image: url(images/diaporama/diap1.jpg);
  }
}

/* SECTION SERVICES + LES IMAGES */

.container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.services {
  flex: 2;
  padding: 20px;
  margin: 20px;
  max-width: 65%;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
}

.services img {
  width: 12%;
  height: auto;
}

.services h1 {
  font-size: 1.7rem;
  text-align: start;
  margin-bottom: 20px;
  color: #444;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.services h2 {
  color: #007bff;
}

.images {
  flex: 1;
  padding: 20px;
  margin: 20px;
  max-width: 30%;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
}

.images h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: #444;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.images ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; /* Aligne les éléments en ligne */
  flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
  gap: 10px; /* Ajoute de l'espace entre les images */
  justify-content: flex-start; /* Aligne à gauche */
}

.images ul li {
  margin: 0; /* Supprime les marges verticales inutiles */
}

.images ul li img {
  width: 100px; /* Taille fixe pour les images */
  height: 200px; /* Conserve les proportions */
  border-radius: 8px;
  object-fit: cover;
}

/* Agrandir l'image lorsque la checkbox est cochée */
.toggle-checkbox1:checked + img,
.toggle-checkbox2:checked + img,
.toggle-checkbox3:checked + img,
.toggle-checkbox4:checked + img,
.toggle-checkbox5:checked + img,
.toggle-checkbox6:checked + img,
.toggle-checkbox7:checked + img,
.toggle-checkbox8:checked + img,
.toggle-checkbox9:checked + img,
.toggle-checkbox10:checked + img, 
.toggle-checkbox11:checked + img,
.toggle-checkbox12:checked + img,
.toggle-checkbox13:checked + img,
.toggle-checkbox14:checked + img,
.toggle-checkbox15:checked + img,
.toggle-checkbox16:checked + img,
.toggle-checkbox17:checked + img {
  transform: scale(3); /* Agrandit l'image de 3 fois */
}

/* Image par défaut */
.image-container1 img,
.image-container2 img,
.image-container3 img,
.image-container4 img,
.image-container5 img,
.image-container6 img,
.image-container7 img,
.image-container8 img,
.image-container9 img,
.image-container10 img,
.image-container11 img,
.image-container12 img,
.image-container13 img,
.image-container14 img,
.image-container15 img,
.image-container16 img,
.image-container17 img {
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

/* Cacher la checkbox */
.toggle-checkbox1,
.toggle-checkbox2,
.toggle-checkbox3,
.toggle-checkbox4,
.toggle-checkbox5,
.toggle-checkbox6,
.toggle-checkbox7,
.toggle-checkbox8,
.toggle-checkbox9,
.toggle-checkbox10,
.toggle-checkbox11,
.toggle-checkbox12,
.toggle-checkbox13,
.toggle-checkbox14,
.toggle-checkbox15,
.toggle-checkbox16,
.toggle-checkbox17 {
  display: none;
}


/* PAGE EQUIPEMENT */

.container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.materiel {
  flex: 2;
  padding: 20px;
  margin: 20px;
  max-width: 65%;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
}

.materiel img {
  width: 12%;
  height: auto;
}

.materiel h1 {
  font-size: 1.7rem;
  text-align: start;
  margin-bottom: 20px;
  color: #444;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.materiel h2 {
  color: #007bff;
}

.humains {
  flex: 1;
  padding: 20px;
  margin: 20px;
  max-width: 30%;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
}

.humains h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: #444;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

/* BANDEAU ET LOGO CONFIANCE */

.bandeau {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.logoconfiancediv {
  display: flex;
  width: calc(4800px * 2);
  animation: defilement 60s linear infinite;
}

.logoconfiance {
  width: 4800px;
  height: 480px;
  margin-top: -38px;
  z-index: 1;
}

@keyframes defilement {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-4800px);
  }
}

.bandeau h2 {
  text-align: center;
  margin: 0;
  z-index: 4;
  position: relative;
}

/* ONGLET REFERENCES AVANT ET APRES */

.references {
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.references h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #444;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.references section {
  margin-bottom: 30px;
  padding: 10px 15px;
  border-left: 4px solid #007bff;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.references h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #007bff;
}

.references ul {
  list-style-type: square;
  margin-left: 20px;
  padding-left: 20px;
}

.references ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.references p {
  margin: 10px 0;
  font-size: 1rem;
}

.imgsitemilitaire img {
  width: 20%;
  height: 20%;
  margin-top: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.processindus .image-paire {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.processindus .avant,
.processindus .après {
  flex: 0 0 20%;
  padding: 5px;
}

.processindus img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: none;
  display: inline-block;
}

.processindus h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}

/* MENTIONS LEGALES */

.mentionslegales {
  margin: 20px;
  max-width: 100%;
}

/* RESPONSIVE ADAPTATION MOBILE ET TABLETTES */

@media (max-width: 1080px) {
  /* adaptation du header */

  header {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .logo {
    margin-bottom: 20px;
  }

  nav ul {
    display:flex;
  flex-wrap:wrap;
    }

  nav ul li a {
    font-size: auto;
  }

  /*adaptation du footer */

  footer {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    position: relative;
  }

  .mentionslegales {
    margin-top: 10px;
    margin-left: 0;
  }

  .mentionslegales a {
    font-size: 14px;
    color: #007bff;
  }

  /* ACCUEIL */

  .intro h1 {
    font-size: 2rem;
  }

  .intro p {
    font-size: 1rem;
    padding-bottom: 10px;
    padding: 10px;
  }

  .about {
    padding: 15px;
  }

  .d1 {
    width: 90%;
    height: 250px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .logoconfiance {
    width: 1920px;
    height: auto;
    margin-top: 10px;
  }

  .bandeau {
    height: auto;
  }

  /* SERVICES */

  .container {
    justify-content: center;
    gap: 0;
    align-items: center;
    flex-direction: column;
  }

  .services {
    max-width: 100%;
  }

  .services img {
    width: 32%;
    height: auto;
  }

  .images {
    max-width: 100%;
  }

  /* Agrandir l'image lorsque la checkbox est cochée */
  .toggle-checkbox1:checked + img,
  .toggle-checkbox2:checked + img,
  .toggle-checkbox3:checked + img,
  .toggle-checkbox4:checked + img,
  .toggle-checkbox5:checked + img,
  .toggle-checkbox6:checked + img,
  .toggle-checkbox7:checked + img,
  .toggle-checkbox8:checked + img {
    transform: scale(1.5); /* Agrandit l'image de 1.5 fois */
  }

  /* Cacher la checkbox */
  .toggle-checkbox1,
  .toggle-checkbox2,
  .toggle-checkbox3,
  .toggle-checkbox4,
  .toggle-checkbox5,
  .toggle-checkbox6,
  .toggle-checkbox7,
  .toggle-checkbox8 {
    display: none;
  }

  /* REFERENCES */

  .processindus .avant,
  .processindus .après {
    flex: 0 0 45%;
  }

  /* CONTACT */

  .content-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-left: 0;
    margin-right: 0;
  }

  .form-container {
    align-items: center;
    width: 90%;
    max-width: 850px;
  }

  .formulaire input,
  .formulaire textarea {
    width: 100%;
    max-width: none;
  }

  .small-and-button {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .submit {
    width: 100%;
    padding: 10px;
  }

  iframe {
    width: 100%;
    height: 200px;
    margin-top: 20px;
  }

  /* MENTIONS LEGALES */

  .mentionslegales {
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 15px;
  }

  /*IMAGES DANS REFERENCES*/

  .image-container-references {
    display: flex;
    flex-direction: column; /* Les images s'affichent en colonne */
    align-items: flex-start; /* Aligne les images à gauche */
    gap: 20px; /* Ajoute de l'espace entre les images */
    padding: 0 10px; /* Ajoute une marge interne pour respirer */
  }

  .image-container-references img {
    width: 80%; /* Ajuste la largeur des images */
    height: auto; /* Conserve les proportions */
    border-radius: 10px; /* Optionnel : arrondi des coins */
  }

  /* NOS MOYENS */
  
  .materiel {
    max-width: 100%;
  }
  
  .materiel img {
    width: 100%;
    height: auto;
  }
  
  .humains {
    max-width: 100%;
  }

  /* Qualifs elec */

  .qualifs {
    margin-top: 25px;
    margin-bottom: 75px;
  }

  /* galerie */

  .galerieref {
    max-width: 90%;
  }

  .galerieref div img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
	
	.imagesnacelle img {
		width: 12%;
		height: 12%;
	}


}

.image-container-references {
  display: flex;
  gap: 10px; /* Espace entre les images */
}

.image-container-references img {
  width: 200px; /* Largeur fixe pour toutes les images */
  height: 200px; /* Hauteur fixe pour toutes les images */
  object-fit: cover; /* Recadre l'image sans déformation */
  border-radius: 20px; /* Optionnel : coins arrondis */
}

.image-container-services-colonnegauche {
  display: flex;
  gap: 10px; /* Espace entre les images */
}

.image-container-services-colonnegauche img {
  width: 200px; /* Largeur fixe pour toutes les images */
  height: 150px; /* Hauteur fixe pour toutes les images */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: center;
}
th,
td {
  border: 1px solid #ddd;
  padding: 8px;
}
th {
  background-color: #f2f2f2;
  color: #333;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:hover {
  background-color: #f1f1f1;
}




.about .content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about .qualifs {
  display: flex;
  gap: 30px;
  flex-direction: row;
}

.about .qualifs img {
  display: flex;
  width: 80px;
  height: auto;
  margin-top: -50px;
  margin-bottom: -70px;
  margin-left: 20px;
}

.about p {
  flex: 1;
  margin: 0;
}

.about .qualifs {
  flex-wrap: nowrap; /* Ajoute ou ajuste selon la disposition souhaitée */
}

.about .qualifs img {
  object-fit: contain; /* Ou `cover` si tu veux remplir complètement */
}


.galerieref {
  display: grid;
  flex-direction: column;
  width: 97%;
  max-height: 100%; 
}

.galerieref img {
  width: 49%;
  height: 500px;
}

.imagesnacelle{
	display:flex;
	width:200%;
	height:100%;
	margin:0;
}
