*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
  }
@font-face {
    font-family: "Parley";
    src: url(fonts/parley_regular.ttf);
}
@font-face {
    font-family: "Gota";
    src: url(fonts/Gota_Light.otf);
}
header{
    background-color: #000000;
   
}
.p1{
  display: flex;
}
.p2{
  display: flex;
  margin-right: 2%;
}
.global{
  display: flex;
  justify-content: space-between;
}
header h1{
    margin:0px;
    font-family: "Gota";
    font-size: 15.9vw;
    display: flex;
    font-weight:normal;
}
header nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    padding-left: 2%;
    padding-right: 2%;
}
header nav a {
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
}
header nav ul li{
  margin-right: 5%;
  white-space: nowrap;
}

/* Ajout dans ton style.css */
.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease-in-out;
}

  #fleche{
    width: 5%;
    border-radius: 15px;
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    margin: 2%;
  }
  /* Ajoute une marge au contenu principal pour ne pas qu'il soit caché sous la barre fixe */
  main {
    margin-top: 80px;   /* Ajuste la valeur selon la hauteur de ta barre de navigation */
  }
  


li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s ease;
  }

  li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    opacity: 0;
  }

  li a:hover::before {
    left: 0;
    width: 100%;
    opacity: 1;
  }

  li a:hover {
    color: white;
  }



header nav li ul {
    display: none;
}
.espace{
    padding-right: 2%;
    padding-left: 20%;
}
.espace1{
  padding-left: 20%;
  
}
.espace2{
  padding-left: 40%;
  
}
#index{
    background-image: url("img/background.jpg");
    background-color: #000000;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 800px;
    padding-bottom:40px ;
    background-attachment: fixed;
}
body{
    background-color: #041720;
    font-family: consolas;
    scroll-behavior: smooth;
}
.container
{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.container .box
{
  position: relative;
  width: 320px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 30px;
  transition: 0.5s;
}

.container .box::before
{
  content:' ';
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.container .box::after
{
  content:'';
  position: absolute;
  top: 0;
  left: 20%;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
  filter: blur(30px);
}

.container .box:hover:before,
.container .box:hover:after
{
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
  
}

.container .box:nth-child(1):before,
.container .box:nth-child(1):after
{
  background: linear-gradient(315deg, #ffbc00, #ff0058)
}

.container .box:nth-child(2):before,
.container .box:nth-child(2):after
{
  background: linear-gradient(315deg, #03a9f4, #ff0058)
}

.container .box:nth-child(3):before,
.container .box:nth-child(3):after
{
  background: linear-gradient(315deg, #4dff03, #00d0ff)
}

.container .box span
{
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.container .box span::before
{
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.1s;  
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08)
}

.container .box:hover span::before
{
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.container .box span::after
{
  content:'';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  animation-delay: -1s;
}

.container .box:hover span:after
{
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

@keyframes animate
{
  0%, 100%
  {
    transform: translateY(10px);
  }
  
  50%
  {
    transform: translate(-10px);
  }
}

.container .box .content
{
  position: relative;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;

  color: #ffffff;
}

.container .box:hover .content
{
  left: -25px;
  padding: 60px 40px;
}

.container .box .content h2
{
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 10px;
}

.container .box .content p
{
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.4em;
}

.container .box .content a
{
  display: inline-block;
  font-size: 1.1em;
  color: #111111;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 5px;
}

.container .box .content a:hover
{
  background: #ffcf4d;
  border: 1px solid rgba(255, 0, 88, 0.4);
  box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
}

img {
  width: 100%;
}
#portfolio img{
  width: 50%;
}
#projet{
  width: 50%;
}
.ligne{
  display: flex;
 
}
#fullscreen img{
  width: 100%;
}
#portfolio video{
  width: 100%;
}
#projet video{
  width: 200%;
}
.image-description {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
}
#profil{
width: 50%;

}
.profil{
  border-radius: 5px;
}
.carte{
  display: flex;
  justify-content: center;
  padding: 5%;
}
.carte2{
  display: flex;
  flex-direction: column;
  padding: 5%;
}
.couleur{
  color: #ffffff;
  padding-left: 10%;
  padding-right: 10%;
  padding-bottom: 10%;
}
.info{
  display: flex;
  background-color: #ebe9e9;
  flex-direction: column;
  align-items: center;
}
.info2{
  display: flex;
  background-color: #ebe9e9;
  flex-direction: column;
}
.space{
  padding: 5%;
}
.paragraphe{
  padding-left: 10%;
  padding-right: 10%;
}
footer{
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#info{
  color: #000000;
}

.gallery {
  --g: 6px; /* the gap */
  
  display: grid;
  width: 450px; /* the size */
  aspect-ratio: 1;
  grid: auto-flow 1fr/repeat(3,1fr);
  gap: var(--g);
  padding-top: 5%;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale();
  cursor: pointer;
  transition: .5s
}
.gallery img:hover {
  filter: grayscale(0);
}
.gallery img:nth-child(2) {
  grid-area: 1/2/span 2/span 2;
  clip-path: polygon(0 0,100% 0,100% 100%,calc(50% + var(--g)/4) 100%,0 calc(50% - var(--g)/4))
}
.gallery img:nth-child(3) {
  grid-area: 2/1/span 2/span 2;
  clip-path: polygon(0 0,calc(50% - var(--g)/4) 0,100% calc(50% + var(--g)/4),100% 100%,0 100%);
}

.passion{
  padding-bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 559px) and (max-width: 1024px){
  #fleche{
    width: 200px;
    
  }
  li a{
    font-size: 50px;
  }
  header nav .global{
    display: flex;
    flex-direction: column;
    
}
}
