/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cursor-color-hover);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: 0.2s;
}

.cursor-ring {
  width: 35px;
  height: 35px;
  border: 2px solid var(--cursor-color-hover);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.2s;
}

.cursor-ring.hovering {
  width: 55px;
  height: 55px;
  border-color: var(--cursor-color-hover);
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-ExtraBold.ttf') format('truetype');
    src: url('fonts/Nunito-Regular.ttf') format('truetype');
    src: url('fonts/Nunito-Bold.ttf') format('truetype');
    src: url('fonts/Nunito-Light.ttf') format('truetype');
    src: url('fonts/Nunito-Medium.ttf') format('truetype');
}



.wrapper {
  max-width: 1800px; /* or 1000px, 90%, etc. */
  margin: 0 auto;    /* centers it horizontally */
  padding: 0 2rem;   /* adds space on sides */
  width: 100%;
}


body {
  overflow-x: hidden;
  font-family: 'Nunito', sans-serif;
  color: #222;
  z-index: 10;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  transition: filter 0.3s ease;
   --text-color: #fff;
  --border-color: #fff;
  --footer-bg: #fff;
  --footer-text: #000;
  --logo-filter: none;
  --canvas-bg: #000;
  --cursor-color: #FFF;
  --cursor-color-hover: red;
}

body.inverted {
    --text-color: #000;
  --border-color: #000;
  --footer-bg: #000;
  --footer-text: #fff;
  --logo-filter: invert(1);
  --canvas-bg: #fff;
  --cursor-color: #000;
  --cursor-color-hover: red;
}

.up{
  display: flex;
  width: 100%;
  justify-content: space-between;
  min-height: 110px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.btn{
  position: fixed;
  top: 40px;

  right: max(calc((100vw - 1800px) / 2 + 1.5rem));

  padding: 10px;
  background-color: red;
  border: none;
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 17px;
  color: white;
  cursor: none;
  z-index: 1000;
}

.hero {
  opacity: 1;
  transform: none; /* First section no transform */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* aligns content to top */
  align-items: center;
}

.appear {
  opacity: 0;
  transform: scale(0.7) rotate(-5deg);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 0.8s ease-out;
}

.appear.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


.video-wrapper .hftv{
  object-fit: contain;
}

.ensem{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.cv{
transition: filter 0.3s ease;
}

body.inverted .cv {
  filter: invert(1);
}


.socials {
  transition: filter 0.3s ease;
}

body.inverted .socials {
  filter: invert(1);
}

.logo {
  filter: var(--logo-filter);
  width: 6%;
}

.hero img{
  padding-top: 50px;
}

h1{
    font-weight:800;
    color: var(--text-color);
    padding-bottom: 10px;
    font-size: 48px;
}

h2{
    font-weight:300;
    font-size: 48px;
    color: var(--text-color);
    padding-bottom: 25px;
    text-align: center;
}

a {
  text-decoration: none;
  color: #222;
}

.hero img {
  padding: 40px 0;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--border-color);
  background-color: var(--canvas-bg);
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.col{
display: grid;
grid-template-columns: 1fr 1fr;
padding-top: 90px;


}

.texter{
    color: var(--text-color);
    align-content: center;
    padding: 30px;
    width: 100%;
}

.play-button {
  position: absolute;
  top: 52%;
  left: 49%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: none;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button.hidden {
  opacity: 0;
  pointer-events: none;
}



.carousel {
  position: relative;
  width: 80%;              /* smaller width — adjust as needed (ex: 70%, 60%) */
  max-width: 1100px;       /* prevents it from being too big on large screens */
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;    /* keep perfect ratio */
  border: 2px solid var(--border-color);
  background: var(--canvas-bg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* stack video and title */
  align-items: left;
  justify-content: flex-start;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--border-color);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title below video */
.video-title {
  text-align: left;
  padding: 10px;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-color);
  word-wrap: break-word;
}

/* Buttons — no background, clean look */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;           /* completely transparent */
  border: none;               /* remove any border */
  padding: 10px;
  cursor: none;
  font-size: 40px;
  color: var(--text-color);   /* use your theme text color */
  z-index: 5;
  transition: color 0.2s ease;
}

.carousel-button:hover {
  color: var(--accent-color); /* optional hover color if you want */
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.grid-container {
  display: grid;
  gap: 30px;
  max-width: 1800px;
  margin: 0 auto;
}

/* Chaque row aura deux colonnes */
.colo1,
.colo2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
  gap: 30px;
}

/* Chaque item */
.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(8px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.grid-item:nth-child(even) {
  transform: translateX(80px);
}

.grid-item.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0px);
}

/* Images */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: solid 3px var(--text-color);
  display: block;
}

/* Row 1: 16:9 */
.colo1 .grid-item {
  aspect-ratio: 16 / 9;
}

/* Row 2: 1:1, mais on force la largeur totale comme Row1 */
.colo2 .grid-item {
  aspect-ratio: 1 / 1;
}

/* Texte sur l'image */
.grid-item .text {
  position: absolute;
  bottom: 0px;
  left: 0;
  color: white;
  padding: 5px 15px;
  font-size: 36px;
  background-color: black;
  margin: 3px;
  width: auto;
}

h3 {
  font-weight: 300;
}

.co {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  width: auto;
}

.co img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co a {
  position: relative;
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(8px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.co a:nth-child(even) {
  transform: translateX(80px);
}

.co a.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0px);
}

.co a img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

/* text box */
.card-text{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  text-align: center;
  color: white;
  background: rgba(0,0,0,1);
  padding: 10px 18px;
  opacity: 0;
  transition: all 0.35s ease;
  width: 100%;
}

.co a:hover .card-text{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* optional image zoom */
.co a:hover img{
  transform: scale(1.05);
}

.title{
  display:block;
  font-size: 21px;
  font-weight:600;
  text-transform:uppercase;
}

.desc{
  font-size:16px;
  margin-top:4px;
  
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9998;
}

.video-modal.active{
  opacity:1;
  pointer-events:auto;
}

.modal-video-container{
  position:relative;
  max-width:1200px;
  width: 100%;
}

.modal-video-container video{
  width:100%;
  border-radius: 6px;
}

.close-video{
  position:absolute;
  top: -15px;
  right:10px;
  font-size:60px;
  color:#EAEAEA;
  cursor: none;
  z-index: 9999;
}

.image-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
}

.close-image {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  color: white;
  cursor: none;
}

.grid-item {
  cursor: none;
}

.avenir{
  aspect-ratio: 2 / 1;
  border: solid 3px var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.coming{
  font-size: 32px;
  color: var(--text-color);
}

footer {
    padding: 20px 40px; /* more spacing for desktop */
    background: var(--footer-bg);
    z-index: 9999;
    position: relative;
    width: 100%;
}

.contain-foot {
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping if window shrinks slightly */
    gap: 20px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease; /* smooth hover animation */
}

.socials a img:hover {
    transform: translateY(-5px) scale(1.05); /* subtle lift and zoom */
}

.ensem {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ensem a.cv img {
    width: 45px;
    height: 45px;
}

.mail {
    font-weight: 900;
    text-decoration: underline;
    color: var(--footer-text);
}

.rights {
    flex-basis: 100%; /* take full width */
    text-align: center;
    color: var(--footer-text);
    margin-top: 10px;
    font-size: 0.9rem;
}


section{
  position: relative;
  z-index: 100;
   opacity: 1;
   padding-bottom: 150px;
}


canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;       /* keeps it stretched horizontally */
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-color: var(--canvas-bg);
}

/* Change text selection color */
::selection {
    background-color: red; /* background of the selected text */
    color: #fff; /* text color when selected */
}

/* For Firefox specifically */
::-moz-selection {
    background-color: red;
    color: #fff;
}


@media (max-width: 1024px) {
   .col {
    grid-template-columns: 1fr; /* stack them vertically */
    justify-content: center;
    padding-top: 40px;
    
  }

   .close-video{
    display: none;
  }

  .co{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: auto;
}

.coming{
    font-size: 18px;
   }

   .card-text{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  text-align: center;
  color: white;
  background: rgba(0,0,0,1);
  padding: 10px 18px;
  opacity: 1;
  width: 100%;
}

  .btn{
  padding: 10px;
  background-color: red;
  border: none;
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 14px;
  color: white;
  cursor: none;

  /* 👇 Makes it stay at the top right while scrolling */
  position: fixed;
  top: 5%;     /* distance from top */
  right: max(calc((100vw - 1800px) / 2 + 2rem), 2rem);
  z-index: 1000; /* stays above other elements */
}



  .video-container{
    order: 2;
  }

  .text{
    order: 1;
    padding: 0 0 20px 0;
  }
   h1{
    font-size: 36px;
  }

    h2{
    font-size: 30px;
  }
   .grid-item .text{
    font-size: 25px;
   }

   .video-title{
    font-size: 25px;
   }

   .carousel{
    width: 100%;
   }

   .logo{
  width:10%;
}

.prev {
  left: 10px;
  color: white;
}

.next {
  right: 10px;
  color: white;
}

.contain-foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .socials {
    order: 1; /* socials at top */
    margin-bottom: 10px;
  }

  .ensem {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .ensem a,
  .ensem .mail {
    margin: 0;
  }

  .rights {
    order: 3;
    font-size: 0.85rem;
    margin-top: 15px;
  }

  .socials a img {
    width: 35px;
    height: 35px;
    margin: 0 8px;
  }

  .ensem a.cv img {
    width: 40px; /* smaller CV icon for tablet/mobile */
    height: 40px;
  }

  .hero img{
  padding-top: 40px;
}

}

@media (max-width: 675px) {
 h1{
    font-size: 25px;
  }

    h2{
    font-size: 23px;
  }
   .grid-item .text {
  position: absolute;
  bottom: 0;
  left: 0;
}

   .video-title{
    font-size: 15px;
   }

   section{
    padding-bottom: 80px;
   }

   .texter{
    text-align: center;
   }

   .coming{
    font-size: 13px;
   }

.wrapper {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box; /* Important ! */
}

.logo{
  width:12%;
}

.col{
  padding-top: 15px;
}

.co{
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: auto;
}

.close-video{
  display: none;
}


.text p{
  font-size: 13px;
}

.colo1,
.colo2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 2 colonnes égales */
  gap: 30px;
}

.container{
  width: 100%;
}

.carousel-button {
  top: 20%;
  
  padding: 10px;
  cursor: pointer;
  font-size: 30px;
}

.carousel-button:hover {
  color: grey; /* optional hover color if you want */
}

.prev {
  left: 0;
  color: white;
}

.next {
  right: 0;
color: white;
}

footer{
  padding: 15px 32px;
}

.contain-foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .socials {
    order: 1; /* keep socials at top */
  }

  .ensem {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ensem a,
  .ensem .mail {
    margin: 0;
    font-size: 13px;
  }

  .rights {
    order: 3;
    font-size: 0.5rem;
  }

  .socials a img {
    width: 40px;
    height: 40px;
    margin: 0 5px;
  }

.btn{
  right: max(calc((100vw - 1800px) / 2 + 2rem), 2rem);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}
}

@media (max-width: 522px) {
  h1{
    font-size: 20px;
    font-weight: 800;
  }

  .texter p{
    font-size: 12px;
  }

  .texter{
    padding-top: 0;
  }

  .close-video{
    display: none;
  }

}

@media (max-width: 375px) {
  .hero img{
    padding-top: 10px;
  }

   .close-video{
    display: none;
  }
}




