@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: #a855f7;
  --primary-color-dark: #9333ea;
  --secondary-color: #ca8a04;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: rgba(255,255,255,0.9);
  --bg-color: #081b29;
  --second-bg-color:  #112e42;
  --text-color: #ededed;
  --main-color: #00abf0;
  --max-width: 1200px;
  overflow: hidden;
}

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

a {
  text-decoration: none;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: "Poppins", sans-serif;
    margin: 0; /* Supprimer les marges par défaut */
    padding: 0;
}

.page {
    max-width: 1200px; /* Largeur maximale pour la page */
    margin: 0 auto; /* Centre le conteneur horizontalement */
    padding: 0 60px; /* Ajouter un espace interne de 20px de chaque côté */
}


/* ================>  SPINNER */
.container{
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  height: 100vh;
  inset: 0px;
  z-index: 100;
  visibility: hidden;
  animation: spinner 1s linear;
}

.ring{
  width: 100px;
  height: 100px;
  border: 0px solid white;
  border-radius: 50%;
  position: absolute;
  visibility: hidden;
}

.ring:nth-child(1){
  border-bottom-width: 8px;
  border-color: #c90a4e;
  animation: rotate1 1s linear;
}

@keyframes rotate1{
  from{
      transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
      visibility: visible;
      opacity: 1;
  }
  to{
      transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
      visibility: hidden;
      opacity: 0;
  }
}

.ring:nth-child(2){
  border-right-width: 8px;
  border-color: var(--main-color);
  animation: rotate2 1s linear;
}

@keyframes rotate2{
  from{
      transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
      visibility: visible;
      opacity: 1;
  }
  to{
      transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
      visibility: hidden;
      opacity: 0;
  }
}

.ring:nth-child(3){
  border-top-width: 8px;
  border-color: rgb(0, 247, 13);
  animation: rotate3 1s linear;
}

@keyframes rotate3{
  from{
      transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
      visibility: visible;
      opacity: 1;
  }
  to{
      transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
      visibility: hidden;
      opacity: 0;
  }
}

@keyframes spinner {
  0% {
    visibility: visible;
    opacity: 0.9;
  }
  70% {
    visibility: visible;
    opacity: 0.9;
  }
  100% {
    visibility: hidden;
    opacity: 0;
  }
}


/* ===============> NAV */

.nav__index {
  max-width: var(--max-width);
  margin: auto;
  padding: 0.5rem 0;
}


.nav__index img{
  width: 250px;
  margin: 50px 0 20px 0;
}




nav .checkbox {
  display: none;
}

nav input {
  display: none;
}
nav .checkbox i {
  font-size: 2rem;
  color: var(--main-color);
  cursor: pointer;
}

ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  transition: left 0.3s;
  margin-bottom: 30px;
  gap: 30px;
}

ul li a {
  padding: 0.5rem 0rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  transition: 0.3s;
  
}

ul li a:hover {
  color: var(--main-color);
}







.welcome_img{
    width: 100%;
    margin-bottom: 300px;
    object-fit: cover;
    transition: box-shadow 0.3s ease-in-out; /* Transition fluide */
}

/* Animation d'ombre au survol */
.welcome_img:hover {
    box-shadow: 0px 10px 20px var(--main-color);; /* Ombre au survol */
    animation: shadow-pulse 0.6s ease-in-out forwards; /* Animation de pulsation */
}

/* Animation de pulsation de l'ombre */
@keyframes shadow-pulse {
    0% {
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); /* Pas d'ombre */
    }
    50% {
        box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4); /* Ombre plus intense */
    }
    100% {
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3); /* Ombre finale */
    }
}




/* MEDIA QUERIES  */
@media (width < 1060px) {
  nav .checkbox {
    display: block;
  }

  ul {
    position: absolute;
    width: 100%;
    height: calc(100vh - 85px);
    left: -100%;
    top: 84px;
    background-color: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  nav #check:checked ~ ul {
    left: 0;
  }

  ul li a {
    font-size: 1.25rem;
  }
}


@media (width < 1108px) {
    .welcome{
        width: 95%;
        margin-left: 0px;
    } 
}



















