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

body{
  font-family:'Helvetica', sans-serif;
  background:#efefef;
  color:black;
  overflow-x:hidden;
  line-height: 1.4;
  letter-spacing: -0.2px;

  animation: pageEnter 0.6s ease-out;
}

a, button, .project-card, .slider-arrow {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  letter-spacing: -1px;
  font-weight: 800;
}

.about-section, .hero, .project-page {
  padding-top: 100px;
  padding-bottom: 100px;
}

.navbar{
  display:flex;
  justify-content:flex-end;
  align-items: center;
  gap:50px;

  padding:30px 50px;

  font-weight:700;
  font-size:20px;
}

.navbar a{
  text-decoration:none;
  color:black;
  transition: 0.2s ease;
}

.navbar a:hover{
  color: rgb(255, 160, 220);
}

.hero{
  display:flex;
  justify-content:left;
  align-items:center;
  gap:120px;
  margin-top:70px;
  padding-left: 110px;
}

.hero-png {
  width: 600px;
  display: block;
  animation: heroSpinOnLoad 1.2s linear;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.hero-png:hover {
  transform: rotate(10deg) scale(1.02);
}

.hero-text h1{
  font-size:110px;
  line-height:0.95;
  font-weight:800;
}

img {
  transition: filter 0.3s ease, transform 0.3s ease;
}


.scroll-btn{
  width:60px;
  height:60px;
  border:2px solid black;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:32px;
  margin:100px auto;
}


.projects-section{
  width:100%;
  padding:80px 0 140px;
  position:relative;
}

.slider-wrapper{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.projects-slider{
  width:100%;
  display:flex;
  gap:28px;
  overflow:hidden;
  padding:40px 0;
  scroll-behavior:smooth;
}


.project-card{
  position:relative;
  flex:none;
  width:340px;
  height:430px;
  overflow:hidden;
  text-decoration:none;
  transition:0.45s ease;
}

.project-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.45s ease;
  display:block;
}


.project-card:hover{
  transform:scale(1.02);
  z-index:5;
}

.project-card:hover img{
  transform:scale(1.05);
}

.project-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  padding:30px;

  opacity:0;
  transition:0.35s ease;
}

.project-card:hover .project-overlay{
  opacity:1;
}

.project-overlay h3{
  color:white;
  font-size:34px;
  line-height:1;
  margin-bottom:14px;
  font-weight:800;
}

.project-overlay p{
  color:white;
  font-size:14px;
  line-height:1.4;
}

.project-category{
  margin-bottom:12px;
  letter-spacing:1px;
  font-size:11px !important;
}


.project-card::after{
  content:"";
  position:absolute;
  top:0;
  width:90px;
  height:100%;
  pointer-events:none;
  z-index:4;
}

.carousel-edges{
  position:relative;
  width:82%;
  overflow:hidden;
}

.carousel-edges::before,
.carousel-edges::after{
  content:"";
  position:absolute;
  top:0;
  width:90px;
  height:100%;
  pointer-events:none;
  z-index:4;
}

.carousel-edges::before{
  left:0;
  background:linear-gradient(
    to right,
    #efefef 0%,
    rgba(239,239,239,0.9) 20%,
    rgba(239,239,239,0) 100%
  );
}

.carousel-edges::after{
  right:0;
  background:linear-gradient(
    to left,
    #efefef 0%,
    rgba(239,239,239,0.9) 20%,
    rgba(239,239,239,0) 100%
  );
}


.back-arrow{
  font-size:64px;
  font-weight:300;
  margin-right: auto;
  line-height: 1;
  display: flex;
  transform: translateY(-4px);
}

.back-arrow:hover{
  color: rgb(255, 160, 220);
}

.slider-arrow{
  width:auto;
  height:auto;
  border:none;
  border-radius:0;
  background:transparent;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  position:absolute;
  z-index:20;

  transition:0.25s ease;
}

.slider-arrow span{
  font-size: 80px;
  font-weight:300;
  transform:translateY(-2px);
}

.slider-arrow:hover{
  transform:scale(1.08);
  color: rgb(255, 160, 220);
}

.slider-arrow.left{
  left:64px;
}

.slider-arrow.right{
  right:64px;
}
.hero-video{
  width:100%;
  max-width:none;
  display:block;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-star{
  transition: transform 0.6s ease;
}

.footer-star:hover{
  animation: spin 3s linear infinite;
}

@keyframes spin{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(360deg);
  }
}
@keyframes heroSpinOnLoad {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

@media(max-width:1100px){

  .carousel-edges{
    width:100%;
    padding-inline:40px;
  }

  .project-card{
    width:280px;
    height:360px;
  }



  .hero-png{
    width:300px;
  }

}

  .slider-arrow{
    width:auto;
    height:auto;
    border:none;
    right:20px;
    left:auto;
  }

  .slider-arrow.left{
    left:20px;
    right:auto;
  }

  .slider-arrow.right{
    right:20px;
    left:auto;
  }

  .slider-arrow span{
    font-size: 48px;
  }


.arrow{
  width:70px;
  height:70px;
  border-radius:50%;
  border:2px solid black;
  background:transparent;
  font-size:35px;
  cursor:pointer;
}


.about-section{
  position:relative;
  display:flex;
  gap:60px;
  padding:60px 80px 120px;

  align-items:flex-start;
}

.about-content{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:520px;

}

.about-star{
  position:absolute;
  left:-20px;
  top:250px;
  width:260px;
}

.about-image{
  width:340px;
  height:520px;
  object-fit:cover;
  display:block;

}

.about-text{
  margin-top:0;
}

.about-text h2{
  font-size:40px;
  margin-bottom:20px;
}

.about-text p{
  font-size:20px;
  font-weight:700;
  line-height:1.2;
}

.contact-section{
  padding:0 80px 120px;
  display:flex;
  justify-content:flex-end;
}

.contact-info{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:right;
}

.contact-info a{
  color:black;
  text-decoration:none;
  font-size:55px;
  font-weight:800;
  line-height:0.5;
  transition:0.2s ease;
}

.contact-info a:hover{
  color: rgb(255, 160, 220);
}



.footer{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:40px;
  
}

.signature{
  width:170px;
  opacity:100%;
}

.footer-star{
  width:60px;
}

.socials{
  font-size:14px;
  font-weight:700;
  text-align:right;
  line-height:1.8;
}

.socials a{
  color:black;
  text-decoration:none;
  transition:0.2s ease;
}

.socials a:hover{
  color: rgb(255, 160, 220);
}


@media(max-width:1100px){

  .hero{
    flex-direction:column;
    text-align:center;
    padding-left: 0;
  }

  .hero-text h1{
    font-size:60px;
  }

  .projects{
    overflow-x:auto;
  }

  .about-section{
    flex-direction:column;
  }

    .about-content{
    gap:40px;
    justify-content:flex-start; /* important pour éviter l’espacement forcé */
    height:auto; /* important aussi */
  }

  .contact-section h1{
    font-size:55px;
  }

  .contact-grid{
    flex-direction:column;
    gap:40px;
  }

  .contact-title,
  .contact-info{
    font-size:40px;

  }
}


.project-page{
  width:100%;
  padding:60px 90px 140px;
}

.project-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:70px;
}

.project-type{
  font-size:14px;
  font-weight:700;
  margin-bottom:20px;
  letter-spacing:1px;
}

.project-header h1{
  font-size:120px;
  line-height:0.9;
  font-weight:800;
}

.project-star{
  width:120px;
}


.project-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video{
  width:100%;
  height:auto;
  display:block;
}

.project-info-grid{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:120px;
  margin-bottom:120px;
  margin-top: 80px;
}

.project-meta p{
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
  letter-spacing:1px;
}

.project-meta h3{
  font-size:26px;
  margin-bottom:40px;
  font-weight:800;
}

.project-description h2{
  font-size:48px;
  margin-bottom:30px;
}

.project-description p{
  font-size:22px;
  line-height:1.5;
  margin-bottom:24px;
  max-width:850px;
}


.project-gallery{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:25px;
}

.project-gallery img{
  width:100%;
  object-fit:cover;
  transition:0.35s ease;
}

.project-gallery img:hover{
  transform:scale(1.02);
}
.project-gallery video:hover{
  transform:scale(1.02);
}

@media(max-width:1100px){


  .contact-section{
    justify-content:flex-start;
  }

  .contact-info{
    text-align:right;
    line-height: 0.4;
  }

  .contact-info a{
    font-size:40px;
  }

  .project-page{
    padding:40px 30px 100px;
  }

  .project-header{
    flex-direction:column;
    gap:30px;
  }

  .project-header h1{
    font-size:70px;
  }

  .project-main-image{
    height:420px;
  }

  .project-info-grid{
    grid-template-columns:1fr;
    gap:60px;
  }

  .project-description h2{
    font-size:34px;
  }

  .project-description p{
    font-size:18px;
  }


  .project-gallery{
    grid-template-columns:1fr;
  }

  .project-gallery img{
    width:100%;
    height:auto;
    object-fit:cover;
    display:block;
  }

}