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

body {
  user-select: none; /* Désactive la sélection de texte */
  -webkit-user-select: none; /* Pour les navigateurs basés sur WebKit */
  -moz-user-select: none; /* Pour Firefox */
  -ms-user-select: none; /* Pour Internet Explorer/Edge */
  font-size: 16px;
  font-family: 'Ruda';
  word-wrap: break-word;
  letter-spacing: 0.5px;
  word-spacing: normal;
  line-height: 25px;
}

hr {
  border-top: 1px solid rgb(200, 200, 215);
}

header{
  background-image: url(images/02/cropped-DSC02871-1-scaled-1-1536x1022.jpg);
  background-size: cover; /* L'image prend toute la place sur le div */
  background-position: center; /* Centre l'image */
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 20vh; /* Hauteur minimale */
  width: 100%; /* Prend toute la largeur */
  overflow: hidden;
  z-index: -1;
}

.titre {
  color: rgb(255, 255, 255);
  padding-left: 4%;
  font-size: 36px;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  padding-top: 10%;
}

h2.categorie {
  padding-left: 5%;
  font-size: 26px;
  text-transform: uppercase;
}

menu {
  list-style-type: none;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top:0;
  padding:12px;
  z-index: 1;
}
menu div{
  padding-left: 10%;
  display: flex;
  flex-wrap: wrap;
  overflow: auto;
  gap: 8px;
}
menu div li {
  float: none;
}

menu div li a {
  display: block;
  color: rgb(67, 65, 76);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

menu div li a:hover {
  color: rgb(200, 200, 215)
}

.selectionne {
  color: rgb(132, 127, 143);
}

article {
  padding-left: 5%;
  padding-right: 5%;
}

article .horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
}

article div p {
  text-align: justify;
  line-height: 1.5;
  margin: 5%;
  font-size: large;
}

ul li{
  margin-left: 2em;
}


.caroussel {
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  margin: 0 auto;
  overflow: hidden;
  width: 600px;
}

.mySlides {
  display: none;
}

.logoEntreprises {
  margin-left: 50px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 400px;
  width: 500px;
}

.logoEntreprises img {
  width: auto;
  height: 400px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  font-size: 24px;
  border-radius: 3px;
  z-index: 2;
}

.prev {
  left:0;
}

.next {
  right: 0;
}

.prev:hover, .next:hover {
  color: rgba(207, 199, 215, 0.8);
}

.dot {
  cursor: pointer;
  height: 5px;
  width: 5px;
  margin: 0 3px;
  background-color: rgb(207, 199, 215);
  border-radius: 50%;
  display: inline-block;
  transition: 0.6s ease;
  margin-top: 10px;
  text-align: center;
}

.active, .dot:hover {
  background-color: #6e6a7d;
}





#divGalerie {
  margin: 5px;
  float: left;
  width: 99%;
  text-align: center;
}

.photoGalerieC {
  margin:2px;
  width: 32%;
  height:auto;
  height: 320px;
  object-fit: cover;
  cursor: pointer;
  transition: 0.3s;
}

.photoGalerieC:hover {
  filter: brightness(70%);
  z-index: -1;
}
/* Modal */
#myModal {
  display: none; /* Est caché quand on ne clique pas sur une image */
  position: fixed;
  z-index: 1; /* Par dessus le reste */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
  align-items: center;
}

#myModal img {
  margin: auto;
  display: block;
  width: auto;
  height: 650px;
}

/* animation */
#myModal img, #sousTitres {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.close, .navGauche, .navDroite {
  position: absolute;
  top: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  color: white;
}

.close {
  right: 20px;
}

.navGauche {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.navDroite {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#sousTitres {
  margin: auto;
  display: block;
  width: 90%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

#numerotation {
  position: absolute;
  top: 15px;
  left: 35px;
  color: #f1f1f1;
  font-size: 26px;
  font-weight: bold;
}

/* RESPONSIVE ! */
@media screen and (max-width: 800px){
  #myModal {
    width: 100%;
    height: 100%;
    align-items: center;
  }
  #myModal img{
    width: 90%;
    height: auto;
    margin-top:38%;
  }

  article .horizontal {
    font-size: 10px;
    display: block;
    justify-content: center;
    align-items: center;
  }
  article .horizontal img {
    display: block;
    margin: auto;

  }
  menu div{
    padding-left: 0;
  }
  .photoGalerieC {
    max-height: 122px;
    width:45%
  }
  article {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 400px){
  #myModal {
    width: 100%;
  }
  .close {
    right: 10%;
  }
  article {
    padding-left: 0;
    padding-right: 0;
  }
  article .horizontal {
    display: block;
    justify-content: center;
    align-items: center;
  }
  article .horizontal img {
    display: block;
    margin: auto;
    width: 100%;
    height: auto;
  }
  menu div{
    padding-left: 0;
  }
  .photoGalerieC {
    max-height: 200px;
    width:95%
  }
}




footer {
  margin-left:10%;
}

footer div div img {
  display: block;
  float: left;
  margin: 10px;
  height: 3%;
  width: 3%;
  transition: 0.5s;
}

footer div div img:hover {
  filter: opacity(0.5);
}