body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f1fe;
    color: #2F265F;
}

header {
    text-shadow: 5px 5px 10px #a999ec;
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    background-color: #f0f1fe; /* Ajoutez la couleur de fond souhaitée */
    padding: 0px;
    height: 4vh;
    box-sizing: border-box;
    text-align: center;
    color: #6550B9;
    z-index:4;
}

.entete {
    margin-top: 5px;
    font-size: 2.5vh;
    width: 25%;
    text-align: center;
}

footer {
  color: #ecf0f1;
  text-align: center;
  padding: 0px;
  position: fixed;
  bottom: 0;
  width: 90%;
  color: #9B9EF0;
  z-index:4;
}


/* Menu */

nav {
    display: block;
    position: fixed;
    top: 5vh;
    right: 1vh;
    width: 10%; /* Un quart de la largeur de l'écran */
    background-color: #AA99EC; /* Ajoutez la couleur de fond souhaitée */
    padding: 20px;
    box-sizing: border-box;
    height: 90vh;
    box-shadow: 0px 0px 15px 20px #b4a6ec9b;
    border-radius: 15px;
    z-index:5;
}

nav a {
    display: block;
    color: #2F265F;
    text-decoration: none;
    margin-bottom: 10px;
    margin-top: 10px;
    opacity: 0; 
    transform: translateY(-100px); 
    animation: drop 0.8s ease-out forwards;
}

nav a:nth-child(1) {
  animation-delay: 0.1s;
}

nav a:nth-child(2) {
  animation-delay: 0.2s;
}

nav a:nth-child(3) {
  animation-delay: 0.3s;
}

nav a:nth-child(4) {
  animation-delay: 0.4s;
}

nav a:nth-child(5) {
  animation-delay: 0.5s;
}
nav a:nth-child(6) {
  animation-delay: 0.6;
}
nav a:nth-child(7) {
  animation-delay: 0.7s;
}
nav a:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes drop {
  0% {
      opacity: 0;
      transform: translateY(-100px);
  }
  60% {
      opacity: 1;
      transform: translateY(10px);
  }
  80% {
      transform: translateY(-5px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.menu_smart{
  display: none;
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 5;
}

.menu_haut {
  top: 10px; /* En haut de l'écran */
  position: absolute;
}

.menu_bas {
  bottom: 10px; /* En bas de l'écran */
  position: absolute;
}

.image_icones{
  vertical-align: middle;
}

/* corps */

h1 {
    margin: 0;
    font-size: 2em;
}

.div_section{
    width: 90%;
}

section {
    /* margin-top: 5vh; */
    padding-top: 4vh;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    text-align: justify;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 90%;
  align-items: center;
  margin-left: 5%;
  margin-right: 5%;
}

  /* Acceuil */

  .containerAcceuil {
    width:800px;
    /* height: 10%; */
    max-width:60%;
    /* max-height: 10%; */
    margin:0 auto;
  }
  
  .slider {
    position:relative;
    height:0px;
    padding-bottom:100%;
    margin-top:24px;
    margin-bottom:24px;
  }
  
  .slider__after {
    position:absolute;
    top:0px;
    left:0px;
    z-index:1;
    width:100%;
    height:100%;
    background-image:url('images/acceuil-dev.jpg');
    background-size:cover;
    pointer-events: none;
  }
  
  .slider__before {
    position:absolute;
    top:0px;
    left:0px;
    z-index:2;
    width:50%;
    height:100%;
    background-image:url('images/acceuil-créa.jpg');
    background-size:cover;
    pointer-events: none;
    overflow:hidden;
  }
  
  .slider__before:before {
    content:'Créativité';
    position:absolute;
    left:8px;
    top:8px;
    font-size: 2vw;
    font-weight: bold;
  }
  
  .slider__after:before {
    content:'Développement';
    position:absolute;
    right:8px;
    top:8px;
    color: #F4F0FE;
    font-size: 2vw;
    font-weight: bold;
  }
  
  .slider__separator {
    position:absolute;
    left:50%;
    width:2px;
    top:0px;
    bottom:0px;
    background:rgba(255,255,255,0.7);
    box-shadow: 0 5px 10px 0px rgba(0,0,0,0.5);
    cursor:ew-resize;
    z-index:3;
    transform:translateX(-50%);
  }
  
  .slider__range {
    position:absolute;
    width:100%;
    bottom:0px;
    z-index: 3;
    appearance: none;
    background:rgba(255,255,255,0.3);
    outline:none;
    margin:0px;
  }
  
  .slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width:12px;
    height:16px;
    background:white;
  }
  
  .slider__range::-moz-slider-thumb {
    -moz-appearance: none;
    width:12px;
    height:16px;
    background:white;
  }

/* Competences */

.logo-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px; /* Ajustez l'espacement entre les logos selon vos besoins */
    width: 30vw; /* Ajustez la largeur maximale selon vos besoins */
    margin: 0 auto; /* Pour centrer la grille */
  }

.logo {
    width: 7vw; /* Ajustez la largeur des logos selon vos besoins */
    height: 7vw; /* Ajustez la hauteur des logos selon vos besoins */
    object-fit: contain; /* Pour maintenir le rapport hauteur/largeur des logos */
    text-align:  center;
  }

.text-competences{
  text-align: center;
  font-size: 1.25vw;
  text-shadow: 5px 5px 10px #846ede;
}

/* Réalisations */

.realisation-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 10px; /* Ajustez l'espacement entre les logos selon vos besoins */
  width: 80vw; /* Ajustez la largeur maximale selon vos besoins */
  margin: 0 auto; /* Pour centrer la grille */
}

.img-realisation{
  width: 15vw;
  box-shadow: 0 5px 10px 0px rgba(0,0,0,0.5);
  border-radius: 10px;
  position: relative;
  display: inline-block;
}

.img-realisation img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}

.overlay-realisation{
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  text-align: center;
}

.img-realisation .overlay-realisation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  font-weight: bold;
  opacity: 0; /* Le texte est initialement invisible */
  transition: opacity 0.3s ease-in-out;
  line-height: 2em;
}

.caroussel-realisation {
  width: 100%; 
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 10px;
  
}

.caroussel-realisation img {
  width: 100%;
  height: 100%;
  display: inline-block;
  animation: carousel 20s linear infinite;
}

@keyframes carousel {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  75%{
    transform: translate(-100%);
  }
}

/* Style de l'effet de gris au survol */
.img-realisation:hover img {
  filter: grayscale(100%);
}

/* Style du texte qui apparaîtra au survol */
.img-realisation:hover .overlay-realisation {
  opacity: 1; /* Rendre le texte visible au survol */
}

/* AUTRES REALISATIONS */

.AutreRea p{
  width: 50vw;
  display: block;
}

.main-image {
  width: 25vw;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  object-fit: contain;
}

.main-imagecrea {
  width: 15vw;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  object-fit: contain;
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: 25vw;
  justify-content: space-between;

}

.thumbnail-containercrea {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: 15vw;
  justify-content: space-between;

}

.thumbnail {
  display: block;
  width: 8vw;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.thumbnailcrea {
  display: block;
  width: 4vw;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}
  
.logo-realisation img{
  width: auto;
  height: 50px;
  margin-left: 5px;
}

.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(15vw, 15vh);
  width: 70vw;
  max-height: 70vh;
  height: auto;
  object-fit: contain; /* Ajustement de l'image */
  z-index: 9999;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent gris */
  z-index: 9998; /* Mettre en dessous de l'image en plein écran */
}

.bouton-retour {
  position: fixed;
  margin-left: 5%;
  top: 5px;
  left: 5px;
  padding: 5px 5px;
  background-color: #AA99EC;
  box-shadow: 0px 0px 5px 5px #b4a6ec9b;
  border-radius: 50px;
  text-decoration: none;
  z-index: 1000; /* Pour s'assurer que le bouton reste au-dessus de tout autre contenu */
}

.bouton-retour img{
  width: 25px;
  height: auto;
}

/* TELEPHONES */

@media (max-width: 1000px) {
  .container {
    flex-direction: column;
  }
  .logo-container{
    width:95%
  }
  .entete {
      font-size: 3vw;
  }
  header{
      height: 9vh;
  }
  .logo{
    width: 14vw;
    height: 14vw;
  }
  .entete{
    width: 75%;
  }
  nav{
    display: none;
    width: 75%;
    height: 80vh;
    opacity: 0.95;
  }
  .menu_smart{
    display: block;
  }
  section{
    padding-top: 8vh;
    width: 100%;
  }
  .slider__before:before{
    font-size: 4vw;
  }
  .slider__after:before{
    font-size: 4vw;
  }
  .text-competences{
    font-size: 5.5vw;
  }
  .realisation-container{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px; /* Ajustez l'espacement entre les logos selon vos besoins */
    width: 80vw; /* Ajustez la largeur maximale selon vos besoins */
    margin: 0 auto; /* Pour centrer la grille */
  }
  .img-realisation{
    width: 40vw;
  }
  .img-realisation .overlay-realisation {
    font-size: 12px;
    line-height: 1.5;
  }
  h2 {
    font-size: 20px;
  }
  .main-image{
    width: 70vw;
  }
  .thumbnail{
    width: 20vw;
  }
  .thumbnail-container{
    width: 70vw;
  }
  .main-imagecrea{
    width: 70vw;
  }
  .thumbnailcrea{
    width: 20vw;
  }
  .thumbnail-containercrea{
    width: 70vw;
  }
  .AutreRea p{
    width: 70vw;
  }
}

