@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');


body {
  font-family: 'Work Sans', sans-serif;
background-image: linear-gradient(to left, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  --custom-black: #383838;
  --thin: 100;
  --extralight: 200;
  --book: 300;
  --regular: 400;
  --medium: 500;
  --semi-bold:600;
  --bold: 700;
  --black: 900;
}


a {
  outline: none;
  /* font-size: 2.5rem; */
  text-decoration: none;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  /* z-index: 9999; */
}

/* loader part */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.spinner {
  position: relative;
  width: 160px;
  height: 160px;
  transform: rotate(-45deg);
}

.logo-loader-fixe {
  stroke: #fff; /* Couleur du tracé */
  stroke-width: 6; /* Épaisseur du tracé */
  fill: none;
}

.logo-loader-trace {
  stroke: rgb(252, 171, 66); /* Couleur du tracé */
  stroke-width: 6; /* Épaisseur du tracé */
  stroke-dashoffset: 0;
  stroke-dasharray:calc(750/2);
  fill: none;
  animation: draw 1.6s cubic-bezier(.82,-0.01,.14,1.01) infinite; /* Ajustez la durée de l'animation selon vos besoins */
}


@keyframes draw {
  0% {
    stroke-dashoffset: 750;
     /* La longueur totale du tracé */
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* end loaderpart */

.outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 0.1rem;
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Icons */
.icon {
  display: block;
  width: 0.09rem;
  height: 0.09rem;
  margin: 0 auto;
}

.call,
.callblue {
  position: absolute;
  left: 50%;
  transform: translateX(-1.3rem);
  color: white;
  font-weight: var(--extralight);
  font-size: 4rem;
  bottom: 6%;
  z-index: 110;
  cursor: pointer;
  animation: mainarrow 4s cubic-bezier(.36, .07, .19, .97) normal forwards;
  animation-iteration-count: infinite;
  opacity: .5;
}

.callblue {
  color:darkblue;
}

@keyframes mainarrow {
  10%, 90% {
    transform: translateX(-1.3rem) translateY(-5%);
  }

  20%, 80% {
    transform: translateX(-1.3rem) translateY(0%);
  }

  30%, 50%, 70% {
    transform: translateX(-1.3rem) translateY(-15%);
  }

  40%, 60% {
    transform: translateX(-1.3rem) translateY(-8%);
  }
}

.macaron {
  position: fixed;
  width: 120px;
  top: 8%;
  left: 6%;
  z-index: 110;
  cursor: pointer;
}

.rotate-class {
  transition: transform 0.2s ease; /* Smooth transition */
}

.main_macaron {
  position: fixed;
  width: 480px;
  transform: translate(-50%,-50%);
  top: 49%;
  left: 50%;
  z-index: 110;
  cursor: pointer;
}

.logo-svg {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  stroke-linecap:round;
  stroke-miterlimit:10;
  stroke-width:4px;
  fill:none;
}

.logo-svg-background {
  position: fixed;
  max-width: 800px;
  stroke: #fff;
  stroke-linecap:round;
  stroke-miterlimit:10;
  stroke-width:8px;
  fill:none;
  right: -4%;
  bottom: -40%;
}

.white-stroke {
stroke:#fff;
}

.black-stroke {
stroke:var(--custom-black);
}


.return_arrow {
  position: fixed;
  top: 6%;
  right: 6%;
  color: var(--custom-black);
  font-weight: var(--extralight);
  font-size: 4rem;
  z-index: 110;
  animation: returnarrow 8s cubic-bezier(.36, .07, .19, .97) normal forwards;
  animation-iteration-count: infinite;
}

.white-text {
    color: white;
}


@keyframes returnarrow {
  10%, 90% {
    transform: translateX(10%);
  }

  20%, 80% {
    transform: translateX(-5%);
  }

  30%, 50%, 70% {
    transform: translateX(5%);
  }

  40%, 60% {
    transform: translateX(-10%);
  }
}


/* Menu Home
–––––––––––––––––––––––––––––––––––––––––––––––––– */

ol {
  position: absolute;
  bottom: 8%;
  left: 6%;
  z-index: 2;

}

.content__item {
    width: 100%;
    height: 100%;
    margin: 12px 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}


.link1 {
    cursor: pointer;
    font-size: 26px;
    font-family: 'Work Sans', sans-serif;
    font-weight: var(--regular);
    position: relative;
    white-space: nowrap;
    color: #fff;
    border: solid 2px;
    padding: 0 20px;
    border-radius: 50px;
}

.link1::after {
    position: absolute;
    width: 100%;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}

.link1--master {
    overflow: hidden;
    line-height: 2;
}

.link1--master::after {
    content: attr(data-text);
    height: 100%;
    top: 0;
    color: darkorange;
    background: #fff;
    transform-origin: 100% 50%;
    transform: translate3d(-150%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
    border-radius: 50px;
}

.link1--master:hover::after {
    transform: translate3d(0, 0, 0);
}

.link1--master span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link1--master:hover span {
    transform: translate3d(150%, 0, 0);
}


.link2,
.link3 {
  cursor: pointer;
  font-size: 26px;
  font-family: 'Work Sans', sans-serif;
  font-weight: var(--regular);
  position: relative;
  white-space: nowrap;
  color: #fff;
}

.link2::after {
    position: absolute;
    width: 100%;
    height: 1px;
    /* background: currentColor; */
    top: 100%;
    left: 0;
    pointer-events: none;
}

.link2--master {
    overflow: hidden;
    line-height: 2;
}

.link2--master::after {
    content: attr(data-text);
    height: 100%;
    top: 0;
    transform-origin: 100% 50%;
    transform: translate3d(-150%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link2--master:hover::after {
    transform: translate3d(0, 0, 0);
}

.link2--master span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link2--master:hover span {
    transform: translate3d(150%, 0, 0);
}


.link3::after {
    position: absolute;
    width: 100%;
    height: 1px;
    /* background: currentColor; */
    top: 100%;
    left: 0;
    pointer-events: none;
}

.link3--master {
    overflow: hidden;
    line-height: 2;
}

.link3--master::after {
    content: attr(data-text);
    height: 100%;
    top: 0;
    transform-origin: 500% 100%;
    transform: translate3d(0, 150%, 0);
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link3--master:hover::after {
    transform: translate3d(0, 0, 0);
}

.link3--master span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link3--master:hover span {
    transform: translate3d(0, -150%, 0);
}


/* Intro Elements
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.intro {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  position: relative;
  height: 100vh;
}


.button-style {
  position: absolute;
  font-size: 1.5rem;
  font-weight: var(--regular);
  color: var(--custom-black);
  cursor: pointer;
}

.about_button {
  position: absolute;
  top: 8%;
  right: 6%;
  z-index: 1000;
}

.list_about {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.list_about li {
  padding: 24px 0px;
}

.tiptop_button {
  position: fixed;
  right: 6vw;
  bottom: 20vh;
  z-index: 1000;
}

.bande {
  margin: 0 auto;
  padding-top: 6px;
  height: 62px;
  width: 104%;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(40, 40, 40, 1);
  border-left: none;
  border-right: none;
  border-bottom: none;
  white-space: nowrap;
  z-index: -1;
  transform: rotate(-8deg) !important;
}

.bande p {
  font-size: 4.38rem;
  color: var(--custom-black);
  display: table-cell;
  vertical-align: middle;
  font-weight: var(--book);
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-80%);
  }
}


/* About
	–––––––––––––––––––––––––––––––––––––––––––––––––– */
.about {
  position: relative;
  top: 20%;
  left: 125%;
  max-width: 440px;
  z-index: -1;
  line-height: 1.63rem;
}

.aboutimg {
  background-image: url("../img/about/about.webp");
  background-color: rgb(32, 30, 56);
  background-blend-mode: luminosity;
  position: absolute;
  top: 0;
  width: 45%;
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0px 10px 60px rgba(35, 32, 39, 0.2);
  -moz-box-shadow: 0px 10px 60px rgba(35, 32, 39, 0.2);
  -webkit-box-shadow: 0px 10px 60px rgba(35, 32, 39, 0.2);
}

.copyright {
  position: absolute;
  width: 100%;
  font-size: 14px;
  margin: 0 auto;
  color: white;
  text-align: right;
  padding: 30px 0px;
  left: -6%;
  bottom: 3%;
  z-index: 100;
}


/* Content
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Cartel
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.Cartel_projet {
  box-sizing: border-box;
  margin: 0 auto;
  min-width: 0;
  max-width: 1260px;
  padding-top: 10%;
  padding-bottom: 10%;
  padding-left: 40px;
  padding-right: 40px;
  -webkit-align-items: top;
  -webkit-box-align: top;
  -ms-flex-align: top;
  align-items: top;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

@media screen and (min-width:52em) {
  .Cartel_projet {
    padding-top: 8%;
    padding-bottom: 6%;
  }
}

.colonne_cartel_1 {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: 100%;
  margin-bottom: 35px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

@media screen and (min-width:40em) {
  .colonne_cartel_1 {
    width: 100%;
  }
}

@media screen and (min-width:52em) {
  .colonne_cartel_1 {
    width: 50%;
  }
}

.categorie_projet {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  color: var(--custom-black);
  text-transform: uppercase;
  padding: 4px 35px 20px 0px;
  -webkit-flex: 0 0 80px;
  -ms-flex: 0 0 80px;
  flex: 0 0 80px;
}

@media (min-width:40em) {
  .categorie_projet {
    padding-top: 2px;
  }
}

.info_projet {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  padding-right: 0;
}

@media screen and (min-width:40em) {
  .info_projet {
    padding-right: 0;
  }
}

@media screen and (min-width:52em) {
  .info_projet {
    padding-right: 60px;
  }
}

.colonne_cartel_2 {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: 100%;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

@media screen and (min-width:40em) {
  .colonne_cartel_2 {
    width: 100%;
  }
}

@media screen and (min-width:52em) {
  .colonne_cartel_2 {
    width: 42.857142857142854%;
  }
}

.liste_projet_1 {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: calc(100% - 120px);
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.texte_liste_projet {
  font-size: 1.13rem;
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  line-height: 1.7rem;
}

.liste_projet_2 {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: calc(100% - 120px);
  list-style: none;
  padding: 0;
}

/* Projects Elements
–––––––––––––––––––––––––––––––––––––––––––––––––– */

p {
  font-size: 1.13rem;
  line-height: 1.7rem;
}

h1 {
  font-size: 3rem;
}

h3 {
  font-size: inherit;
}

h4 {
  font-size: 2.88rem;
  margin: 0;
  color: var(--custom-black);
}

h5 {
  font-weight: var(--regular);
  opacity: 1;
  font-size: 0.88rem;
  line-height: 0.09rem;
  color: var(--custom-black);
  text-transform: uppercase;
}

.tilter {
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  color: #fff;
  flex: none;
  perspective: 1000px;
  text-align: left;
  cursor: default;
}

.tilter * {
  pointer-events: none;
}

.tilter:hover, .tilter:focus {
  color: #fff;
  outline: none;
}

/*
.tilter__figure,
.tilter__deco,
.tilter__caption {
	will-change: transform;
}*/
.tilter__figure, .tilter__image {
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tilter__figure>* {
  transform: translateZ(0px);
  /* Force correct stacking order */
}

.smooth .tilter__figure, .smooth .tilter__caption {
  transition: transform 0.2s ease-out;
}

.tilter__figure {
  position: relative;
}

.tilter__figure::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
}

.tilter__deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tilter__caption {
  position: absolute;
  bottom: 20vh;
  width: 100%;
}

.caption__project {
  position: absolute;
  width: 100%;
}

.tilter__title {
  font-weight: var(--thin);
  margin: 0;
  font-size: 8.5rem;
  text-align: center;
  -webkit-animation: variabletype 10s infinite;
  animation: variabletype 10s infinite;
  letter-spacing: -0.2rem;
  text-transform: uppercase;
}

@keyframes variabletype {
  0% { font-weight: var(--thin); }
  50% { font-weight: var(--thin); letter-spacing: 0.4rem; }
  100% { font-weight: var(--thin); }
}

.tilter__description {
  color: #fff;
  font-weight: var(--regular);
  line-height: 1rem;
  letter-spacing: 0.04rem;
  margin: .06rem 0 0 0;
  text-align: center;
  -webkit-animation: fadeIn 1s ease-in 1 forwards;
  animation: fadeIn 1s ease-in 1 forwards;
  animation-delay: 1.5s;
  opacity: 0;
}

.content-project {
  position: absolute;
  margin: 0 auto;
  padding: 4.38rem 4.38rem;
  max-width: 430px;
  left: 0;
  right: 0;
  background-color: white;
  -webkit-box-shadow: 10px 10px 114px -26px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 10px 10px 114px -26px rgba(0, 0, 0, 0.2);
  box-shadow: 10px 10px 114px -26px rgba(0, 0, 0, 0.2);
}

.content-video {
  position: absolute;
  margin: 0 auto;
  padding: 1.25rem 3.13rem;
  max-width: 250px;
  top: -110px;
  left: 0;
  right: 0;
  z-index: -1;
  text-align: center;
  color: var(--custom-black);
}

.content-showreel {
  position: absolute;
  margin: 0 auto;
  padding: 1.25rem 3.13rem;
  top: -20%;
  left: 0;
  right: 0;
  z-index: -1;
  text-align: center;
  color: var(--custom-black);
}

.content-showreel p {
  line-height: 0.08rem;
}

/* Start Hover Photos
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.annotation {
  overflow: hidden;
}

.project-text-holder {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  background-color: white;
  padding: 40px 40px 40px 60px;
  transform: translateY(100%);
  transition: transform .3s ease;
  max-width: 40%;
}

.annotation:hover .project-text-holder {
  transform: translateY(0);
}

.project-cat {
  font-size: 1.13rem;
  line-height: 0.1rem;
}

/* End Hover Photos
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.content-project p {
  margin-top: 0.16rem;
  line-height: 0.1rem;
  color: var(--custom-black);
}

#parallax {
  position: relative;
  height: 450px;
  width: 100%;
}

#parallaxvideo {
  object-fit: cover !important;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

#squarevideo {
  object-fit: cover !important;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 550px;
}

.image1 {
  position: absolute;
  width: 100vw;
  height: 450px;
  clip: rect(0px, auto, auto, 0px);
}

.image2 {
  position: relative;
  height: 550px;
  float: left;
  width: 100vw;
  margin-top: 0;
}

.image3 {
  position: relative;
  height: 550px;
  float: left;
  width: 100vw;
}

.videoWrapper {
  position: relative;
  height: calc(181px*2.5);
  width: auto;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  -webkit-box-shadow: 0 2.8px 2.2px rgba(40, 40, 40, 0.034), 0 6.7px 5.3px rgba(40, 40, 40, 0.048), 0 12.5px 10px rgba(40, 40, 40, 0.06), 0 22.3px 17.9px rgba(40, 40, 40, 0.072), 0 41.8px 33.4px rgba(40, 40, 40, 0.086), 0 100px 80px rgba(40, 40, 40, 0.10);
  -moz-box-shadow: 0 2.8px 2.2px rgba(40, 40, 40, 0.034), 0 6.7px 5.3px rgba(40, 40, 40, 0.048), 0 12.5px 10px rgba(40, 40, 40, 0.06), 0 22.3px 17.9px rgba(40, 40, 40, 0.072), 0 41.8px 33.4px rgba(40, 40, 40, 0.086), 0 100px 80px rgba(40, 40, 40, 0.10);
  box-shadow: 0 2.8px 2.2px rgba(40, 40, 40, 0.034), 0 6.7px 5.3px rgba(40, 40, 40, 0.048), 0 12.5px 10px rgba(40, 40, 40, 0.06), 0 22.3px 17.9px rgba(40, 40, 40, 0.072), 0 41.8px 33.4px rgba(40, 40, 40, 0.086), 0 100px 80px rgba(40, 40, 40, 0.10);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}

#video1 {
  margin-top: 250px;
  margin-bottom: 200px;
}

#video2 {
  margin-top: 250px;
  margin-bottom: 200px;
}

#showreel2 {
  margin: 22vh 0;
}

.bas-de-page {
  box-sizing: border-box;
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 0px;
  position: relative;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.bdp-texte {
  box-sizing: border-box;
  margin: 0;
  position: relative;
  z-index: 2;
}
.bande_next-prj {
  position: absolute;
  overflow: hidden;
  width: 100%;
  color: var(--custom-black);
  white-space: nowrap;
  z-index: 1;
}

.bande_next-prj p {
  position: relative;
  margin: 0;
  padding-bottom: 20px;
  font-size: 7.5rem;
  line-height: 9rem;
  color: inherit;
  display: inline-block;
  vertical-align: middle;
  font-weight: var(--thin);
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 75s linear infinite;
  animation-delay: .25s;
  transition: .2s;
}

.bande_next-prj p:hover {
  animation: accelerate .7s forwards;
  font-weight: var(--regular);
  letter-spacing: -.08rem;
}


@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes accelerate {
  0% { transform: translateX(0); }
  100% { transform: translateX(-12%); }
}



/* Galerie d'images */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 6vh;
}

.gallery li {
  transition: all 0.3s ease-in-out;
}

.gallery::after {
  content:'';
  display:block;
  flex-grow: 10;
}

.gallery__title {
  font-weight: var(--thin);
  font-size: 7.5rem;
  text-align: center;
  line-height: 9rem;
  -webkit-animation: fadeIn .4s ease-in 1 forwards;
  animation: fadeIn .4s ease-in 1 forwards;
  /* animation: fadeInOut 3s ease-in-out infinite;  */
  animation-delay: .4s;
  opacity: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--custom-black);
  white-space: pre-line;
margin-top: 10vh;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.05; /* Le texte commence et termine invisible */
  }
  50% {
    opacity: 1; /* Le texte devient visible au milieu de l'animation */
  }
}

#myList {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  grid-auto-flow: dense; /* Remplit les espaces vides intelligemment */
  gap: 0; /* Supprime les espaces entre les items */
}

.gallery__filters {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  background: none;
  font-size: 12px;
  letter-spacing: .02rem;
  border-radius: 50px;
  border: dashed 1px rgba(35, 32, 39, 0.2);
  padding: 10px 20px;
  cursor: pointer;
  text-transform: uppercase;
  margin: 5px;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--custom-black);
  color: white;
}

/* Media query pour écrans < 800px */
@media (max-width: 800px) {
#myList {
  display: flex;
  flex-direction: column;
}

#myList li {
  width: 100%; /* S'assurer que chaque item prend toute la largeur */
}

.small, .medium, .large {
  height: 50vh !important;
}
}

/* Items sans espace */
#myList li {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Images ajustées */
#myList li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Tetris-like grid arrangement */
.small {
  grid-column: span 1;
  grid-row: span 1;
  height: 25vh;
}

.medium {
  grid-column: span 1;
  grid-row: span 2;
  height: 50vh;
}

.large {
  grid-column: span 2;
  grid-row: span 2;
  height: 50vh;
}

  /* Style pour l'affichage en grand */
  
  .fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column; /* Affiche en colonne */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    cursor: pointer; /* Transforme le curseur en pointeur */
  }

  .fullscreen-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .fullscreen-image {
    max-width: 80%;
    max-height: 70%; /* Laisse de l’espace pour la description */
    transform: scale(0.8);
    transition: transform 0.5s ease;
    cursor: pointer; /* Transforme le curseur en pointeur */
  }

  .fullscreen-overlay.active .fullscreen-image {
    transform: scale(1);
  }

  .fullscreen-description {
    color: white;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2rem;
    margin-top: 1rem; /* Ajoute un espace entre l'image et la description */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center; /* Centre le texte sous l'image */
  }

  .fullscreen-overlay.active .fullscreen-description {
    opacity: 1;
    transform: translateY(0);
  }

  .fullscreen-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    z-index: 10000;
    transition: transform 0.3s ease;
  }

  .fullscreen-overlay .close-btn:hover {
    transform: scale(1.2);
  }

/* */

.content-illu {
  /* float: right; */
  top: 5%;
  margin: 120px auto 60px;
  width: 70%;
  position: relative;
}

/* ===================================
    7. Illustration
====================================== */
/* Assure-toi de garder l'absence de transition sur l'isotope */
.isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition {
  -webkit-transition-duration: 0s;
  -moz-transition-duration: 0s;
  -ms-transition-duration: 0s;
  -o-transition-duration: 0s;
  transition-duration: 0s;
}

/* Container de la grille */
.portfolio-wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
  grid-gap: 0; /* Pas d'espace entre les éléments */
}

.grid-item {
  position: relative;
  box-sizing: border-box;
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Cases de format 777x526px */
.grid-item.size-small {
  grid-column: span 1; /* Prend une colonne */
  grid-row: span 1; /* Prend une ligne */
}

/* Cases de format 1554x1113px */
.grid-item.size-large {
  grid-column: span 2; /* Prend 2 colonnes */
  grid-row: span 2; /* Prend 2 lignes */
}

/* Cases de format 777x1113px */
.grid-item.size-medium {
  grid-column: span 1; /* Prend une colonne */
  grid-row: span 2; /* Prend 2 lignes */
}


/* Texte superposé sur les images */
.portfolio-text-holder {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.7); /* Fond semi-transparent */
  text-align: left;
  padding: 15px;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.grid-item a:first-of-type:hover .portfolio-text-holder {
  transform: translateY(0);
}

.portfolio-text {
  font-size: 16px;
}

/* Pour les catégories */
.grid-item a:hover {
  color: var(--custom-black);
}

.portfolio-cat {
  line-height: 10px;
  font-size: 12px;
  color: var(--custom-black);
  text-transform: uppercase;
}

.portfolio-cat:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--custom-black);
  vertical-align: 4px;
  margin-right: 5px;
}


/* ===================================
    11. Responsive CSS
====================================== */

@media screen and (min-width: 1750px) {
  .main_macaron {
    width: 600px;
  }
}

@media screen and (max-width: 1600px) {
  ol {
    bottom: 80px;
  }
}

@media screen and (max-width: 1440px) {
  .content-illu {
    width: 65%;
  }
}

@media screen and (max-width: 1024px) {
  .content {
    margin-left: 0;
  }

  .content-illu {
    width: 95%;
    float: none;
  }

  .content-illu-holder {
    margin: 0 auto;
    max-width: 100%;
  }

  .about_button {
    right: 7%;
  }

  .aboutimg {
    width: 100%;
    height: 500px;
  }

  .about {
    padding-top: 440px;
    padding-bottom: 60px;
    width: 75%;
    left: 12%;
  }

  .image3 {
    margin-top: 550px;
  }

  ol {
    bottom: 60px;
  }

}

@media screen and (max-width:854px) {
  .videoWrapper iframe {
    width: 100vw;
    box-shadow: none;
  }

  .content-video {
    top: -80px;
  }

  .tilter__title {
    font-size: 6rem;
  }
  .logo-svg-background {
    display: none;
  }
}

@media screen and (max-width:650px) {
  .cv {
    display: none;
  }

  h3 {
    font-size: 0.75rem;
  }

  .content-video {
    top: -30px;
  }

  .bande_next-prj {
    margin-bottom: 80px;
  }

  .about_button {
    right: 12%;
  }

  .main_macaron {
    width: 350px;
    top: 18%;
    left: 24%;
  }

}

@media screen and (max-width: 630px) {
  .grid-sizer, .grid-item, .grid-item.p_two_third {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {

  .main_macaron {
    width: 350px;
    top: 16%;
    left: 30%;
  }

  .macaron {
    width: 100px;
    top: 6%;
    left: 10%;
  }

  .bande_next-prj p{
    font-size: 6rem;
  }

  .colonne_cartel_1 {
    display: block;
  }

  .colonne_cartel_2 {
    display: block;
  }

  #video1 {
    margin-top: 150px;
  }

  #video2 {
    margin-top: 100px;
    margin-bottom: 150px;
  }

  .content-project p {
    width: 78%;
  }

  .tilter__title {
    font-size: 4rem;
  }

  .content-project {
    padding: 3.75rem 1.56rem;
  }

  .project-text-holder {
    max-width: 60%;
  }
}

@media screen and (max-width: 400px) {
  .tilter__title {
    font-size: 2rem;
  }
  .main_macaron {
    width: 300px;
    top: 20%;
    left: 30%;
  }
  .link1 {
    font-size: 24px;
    padding: 0 16px;
    border: solid 1.5px;
  }
}

.flex-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flex-item {
  position: relative;
  padding: 0;
  width: 50%;
  height: 550px;
  background-position: center;
  background-size: cover;
}

@media screen and (max-width:1024px) {
  .flex-item {
    width: 100%;
  }
}

.flex-detail {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  margin: 5% 0% 5% 10%;
  padding: 0;
  list-style: none;
}

.flex-detail-item {
  position: relative;
  padding: 0;
  margin: 15px 0px;
  width: 60%;
  height: 550px;
  background-position: center;
  background-size: cover;
}

.cartel_illu {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1;
  background-color: white;
  padding: 50px 50px 70px 100px;
  max-width: 25%;
}

#background__video {
  object-fit:cover;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}


@media screen and (max-width:968px) {
  .flex-detail {
    margin: 0;
  }

  .flex-detail-item {
    width: 100%;
  }

  .cartel_illu {
    max-width: 100%;
  }
}
