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

body {
  font-family: 'Inter',sans-serif;
  border: solid 30px rgb(0 0 0);
  outline: 5px solid #504e4e;
  outline-offset: -5px; 
  box-shadow: 0 0 0 8px #3d3d3f;
  border-radius: 30px;
  height: 100vh;
  position: relative;
  overflow: hidden;        
  box-sizing: border-box;  
}

.diaporama-fenetre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  overflow: hidden; 
}

.diaporama-rails {
  display: flex;
  width: 300%; 
  height: 100%;
  
  animation: GlissementTactile 12s infinite ease-in-out;
}

.diaporama-rails img {
  width: 33.3333%; 
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75); 
}

@keyframes GlissementTactile {
  0%, 20% {
    transform: translateX(0%);
  }

  25%, 53% {
    transform: translateX(-33.3333%); 
  }

  58%, 86% {
    transform: translateX(-66.6666%); 
  }

  100% {
    transform: translateX(0%);
  }
}

.fond {
  background-image: url(images/f_img/fond_b.png);
}

.contenu-principal {  
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10; 
  pointer-events: none; 
}

.le-style a, 
.grille-duo a,
.grille-triple a,
.grille-m a{
  color: #fff;
  text-decoration: none;
} 

.le-style img {
  width: 200px;
}

.le-style, .boutons, .zone-centrale {
  pointer-events: auto; 
}

.le-style {      
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 25px;
  position: absolute;
  left: 45%;
  top: 45%;
  transform: translate(-50%, -50%); 
  width: 90%;
}

.service {
  color: #ffffff; 
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px; 
}

.service:hover {
  transform: translateY(-5px);
  background: #8c8d9561;

  border: 1px solid rgba(0, 184, 255, 0.2);
  border-bottom: 5px solid rgb(0, 140, 200); 
  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
              0 8px 16px rgba(0, 184, 255, 0.2);
}

.service-icon img {
  width: 180px;
  transition: transform 0.3s ease;
}

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

.service-desc {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff; 
}

.boutons {
  display: flex;
  justify-content: center;
  gap: 50px;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.boutons a, .boutons img {
  cursor: pointer;
  width: 25px;
  height: 23px;
  transition: transform 0.2s;
}

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

.present div {
  color: #fff;
  text-align: center;
  padding: 30px;
  line-height: 2em;
}

.present img {  
  width: 80%;
  border-radius: 20px;
  background: #ffffffa3;
}

.present-icon {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  align-items: center;
  justify-items: center;
  position: absolute;
  left: 25%;
  gap: 25px;
  width: 50%;
  margin: 20px;
}

@media (min-width: 1500px) {
    .fond {
      background-image: url(images/f_img/fond_b.png);
      background-size: cover;
    }
}

@media (max-width: 900px) {
    .le-style {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .le-style {
        grid-template-columns: repeat(2, 1fr);
    }
    body {
        border-width: 12px;
        border-radius: 20px;
    }
}

/* SMARTPHONE */
@media (max-width: 1000px) {
  .fond {
    background-image: url(images/f_img/fond_b.png);
    background-size: cover;
  }
  
  .le-style {
    position: absolute;
    top: 50%;
    left: 50%;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact img {
    width: 300px;
    position: relative;
    top: 100px;
  }
  
  .present div {
    font-size: 1.7em;
    gap: 5em;
  }
  
  .present img {  
    width: 200%;
  }

  .boutons {
    bottom: -35px;
  }
  
  .boutons a, .boutons img{
    width: 30px;
    height: 30px;
  }
  
  .le-style img{
    width: 300px;
  }

  body {
    border-width: 50px;
    border-radius: 40px;
  }
}