@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

/* BODY */

body{

background:#c4d6b5;
color:#343a3f;

}


/* HEADER */

.header{

position:fixed;
top:0;
width:100%;
padding:20px 10px;
background:#6f7f6b;
z-index:100;

}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  position: absolute;
  right: 20px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 18px;
  color: #343a3f;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* PAGE STRUCTURE */

.page{

display:flex;
justify-content:center;

padding-top:140px;
padding-bottom:100px;

}


/* CENTRAL COLUMN */

.center-column{

background:#263a37;

width:1000px;
max-width:90%;

padding:60px;

border-radius:20px;

display:flex;
flex-direction:column;
align-items:center;

gap:50px;

color:white;

box-shadow:0 15px 40px rgba(0,0,0,0.25);

}


/* TITRE */

.portfolio h2{

font-size:40px;
font-weight:700;

}


/* LISTE PROJETS */

.portfolio-items{

display:flex;
flex-direction:column;
gap:60px;

width:100%;

}


/* CARTE PROJET */

.portfolio-item{

background:white;

color:#343a3f;

padding:25px;

border-radius:14px;

box-shadow:0 4px 20px rgba(0,0,0,0.15);

transition:0.3s;

}

.portfolio-item:hover{

transform:translateY(-6px);
box-shadow:0 10px 25px rgba(0,0,0,0.25);

}


/* IMAGES */

.portfolio-item img{

width:100%;

border-radius:10px;

margin-bottom:15px;

}


/* TITRE PROJET */

.portfolio-item h3{

font-size:22px;
margin-bottom:10px;

}

.portfolio-item {
    text-align: center;
}


/* TEXTE */

.portfolio-item p{

font-size:16px;
line-height:1.6;

}

.portfolio-item p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}


/* VIDEO */

.portfolio-item video{

width:100%;
height:450px;

object-fit:contain;

border-radius:10px;

margin-bottom:20px;

}


/* CARROUSEL */

.carousel{

position:relative;

}

.carousel-image{

display:none;

}

.carousel-image.active{

display:block;

}


/* RESPONSIVE */

@media(max-width:768px){

  .menu-toggle {
    display: block;
  }

  .nav-links {
  display: none;
  flex-direction: column;

  width: 90%;             
  margin: 0 auto;        

  background: #6f7f6b;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;

  padding: 20px 0;
  text-align: center;

  border-radius: 16px;     
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

  .nav-links a {
    padding: 10px 0;
    font-size: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .center-column{
    padding:40px 20px;
  }

  .portfolio h2{
    font-size:28px;
  }

  .portfolio-item video{
    height:auto;
  }

}

/* FLÈCHES DU CARROUSEL */

.carousel-arrow{

position:absolute;
top:50%;
transform:translateY(-50%);

background:#263a37;
color:white;

width:30px;
height:30px;

display:flex;
align-items:center;
justify-content:center;

border-radius:50%;

font-size:30px;

cursor:pointer;

box-shadow:0 5px 15px rgba(0,0,0,0.4);

transition:0.2s;

z-index:10;

}


/* POSITION */

.carousel-arrow.left{
left:10px;
}

.carousel-arrow.right{
right:10px;
}


/* HOVER */

.carousel-arrow:hover{

background:#c4d6b5;
color:#263a37;

transform:translateY(-50%) scale(1.1);

}


/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* flèches lightbox */

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #fefefe;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-arrow.left {
  left: 30px;
}

.lightbox-arrow.right {
  right: 30px;
}

.portfolio-item {
  scroll-margin-top: 120px;
}