@import url("https://fonts.googleapis.com/css?family=Roboto");
@import url('https://fonts.googleapis.com/css2?family=Miriam+Libre:wght@400;700&display=swap');

.miriam-libre-regular {
    font-family: "Miriam Libre", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .miriam-libre-bold {
    font-family: "Miriam Libre", sans-serif;
    font-weight: 700;
    font-style: normal;
  }  

/*---------- BODY, HTML, HORIZONTAL CONTAINER, HORIZONTAL SCROLL ----------------------------------------------------------------------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-snap-type: inline;
}

body {
  background-color: #0e0929;
  margin: 0;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
}

html {
  font-size: 10px;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  height: 100vh;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

canvas {
overflow: hidden;
}

/*---------- NAVIGATION MENU -----------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Styles pour l'icône hamburger */
.hamburger {
  width: 20px;
  height: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(3.7px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3.7px, -5px);
}

/* menu déroulé */

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(-135deg, #94cbdd, #4972a1);
  clip-path: polygon(97% 1%, 99.5% 1%, 99.5% 60%, 97% 70%, 90% 70%, 90% 10%);
  border-top-right-radius: 40px;
  transition: all 0.8s ease-in-out;
  opacity: 0;
  visibility: hidden;
  overflow-x: hidden;
  z-index: 1;
  mix-blend-mode: luminosity;
}

@media only screen and (max-width: 1400px) and (orientation: landscape) {
  .wrapper {
    clip-path: polygon(95% 1%, 99.5% 1%, 99.5% 40%, 95% 50%, 84% 50%, 84% 10%);
  }
}

@media only screen and (orientation: portrait) {
  .wrapper {
    clip-path: polygon(90% 1%, 99% 1%, 99% 40%, 90% 50%, 70% 50%, 70% 10%);
    border-top-right-radius: 35px;
  }
}

.wrapper.active {
  opacity: 1;
  visibility: visible;
  clip-path: polygon(90% 1%, 99.5% 1%, 99.5% 80%, 90% 90%, 81.6% 90%, 81.6% 10%);
  z-index: 3;
  transition: all 0.8s ease-in-out;
}

@media only screen and (max-width: 1400px) and (orientation: landscape) {
  .wrapper.active {
    clip-path: polygon(88% 1%, 99.5% 1%, 99.5% 40%, 88% 50%, 74% 50%, 74% 10%);
  }
}

@media only screen and (orientation: portrait) {
  .wrapper.active {
    clip-path: polygon(80% 1%, 99% 1%, 99% 40%, 80% 50%, 57% 50%, 57% 10%);
    border-top-right-radius: 35px;
  }
}

.menu-btn {
  position: fixed;
  z-index: 4;
  right: 17px;
  top: 17px;
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 20%;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(-135deg, #94cbdd, #4972a1);
  transition: all 0.3s ease-in-out;
}

.wrapper ul {
  position: absolute;
  top: 25%;
  left: 91%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  direction: rtl;
  width: 290px;
  height: 290px;
}

@media only screen and (max-width: 1400px) and (orientation: landscape) {
  .wrapper ul {
    left: 87%;
  }
}

@media only screen and (orientation: portrait) {
  .wrapper ul {
    left: 79%;
  }
}

input[type="checkbox"] {
  display: none;
}

.Menu-list-item {
  color: transparent;
  cursor: pointer;
  font-size: 27px;
  line-height: 55px;
  transition: all 0.3s ease;
  position: relative;
  width: 550px;
}

.Menu-list-item.multi-line {
  line-height: 55px;
  min-height: 65px;
  white-space: normal;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.Menu-list-item.multi-line .Mask span {
  display: inline-block;
  line-height: 1.1;
}

.Mask {
  display: block;
  position: absolute;
  overflow: hidden;
  color: rgb(19, 7, 71);
  top: 0;
  height: 49%;
  transition: all 0.8s cubic-bezier(0.16, 1.08, 0.38, 0.98);
}

.Mask span {
  display: block;
}

.Mask + .Mask {
  top: 48.9%;
}

.Mask + .Mask span {
  transform: translateY(-49%);
}

.Menu-list-item:hover .Mask,
.Menu-list-item:active .Mask {
  color: #fff;
  transform: skewX(12deg) translateX(5px);
}

.Menu-list-item:hover .Mask + .Mask,
.Menu-list-item:active .Mask + .Mask {
  color: black;
  transform: skewX(12deg) translateX(-5px);
}

.Menu-list-item::before {
  content: "";
  display: block;
  position: absolute;
  top: 49%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 56%;
  height: 4px;
  border-radius: 4px;
  margin-top: -2px;
  background: black;
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.16, 1.08, 0.38, 0.98);
  z-index: 1;
}

.Menu-list-item:hover::before,
.Menu-list-item:active::before {
  transform: translateX(40%) scale(1);
}

#menu-link {
  text-decoration: none;
}

/* Styles pour les éléments du menu principal vs sous-éléments */
.Menu-list-item.main-item {
  font-size: 27px;
  line-height: 45px;
  font-weight: 500;
  letter-spacing: 4px;
  margin: 5px 0;
}

.Menu-list-item.sub-item {
  font-size: 18px;
  line-height: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 2px 0;
  margin-left: 30px;
  opacity: 0.85;
  text-transform: none;
}

/* Séparateur visuel entre sections */
.menu-section-separator {
  height: 15px;
  margin: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

/* Ajustements pour les masques des sous-éléments */
.Menu-list-item.sub-item .Mask {
  height: 49%;
}

.Menu-list-item.sub-item .Mask + .Mask {
  top: 48.9%;
}

/* ========================================
   POP-UP CONTACT REDESIGNÉE
   ======================================== */

.contact-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 9, 41, 0.95);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-popup {
  background: rgba(14, 9, 41, 0.9);
  border: 1px solid rgba(40, 212, 198, 0.3);
  border-radius: 15px;
  padding: 0;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(40, 212, 198, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}

/* Header */
.contact-header {
  background: linear-gradient(135deg, rgba(40, 212, 198, 0.1), rgba(119, 104, 255, 0.1));
  border-bottom: 1px solid rgba(40, 212, 198, 0.2);
  padding: 25px 35px;
  position: relative;
}

.close-contact-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.close-contact-btn:hover {
  background-color: rgba(255, 87, 87, 0.2);
  color: rgba(255, 87, 87, 0.9);
  transform: scale(1.1);
}

.contact-title {
  font-family: "Roboto", sans-serif;
  font-size: 2.2rem;
  color: white;
  margin: 0;
  letter-spacing: 0.2rem;
  font-weight: 100;
  text-transform: uppercase;
  opacity: 0.9;
}

.contact-subtitle {
  color: rgba(40, 212, 198, 0.8);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 8px;
  letter-spacing: 0.1rem;
}

/* Contenu principal */
.contact-content {
  padding: 35px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Informations personnelles */
.personal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section:last-child {
  border-bottom: none;
}

.info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
  min-height: 30px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  color: rgba(40, 212, 198, 0.9);
  font-weight: 300;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.8;
}

.info-value {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.02rem;
}

.info-value strong {
  font-weight: 500;
  color: white;
}

.contact-link {
  color: rgba(40, 212, 198, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  color: white;
  border-bottom-color: rgba(40, 212, 198, 0.5);
}

/* Activités professionnelles */
.activities-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  backdrop-filter: blur(10px);
}

.activities-title {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.1rem;
  font-weight: 300;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(40, 212, 198, 0.3);
  padding-bottom: 10px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding: 8px 0;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-indicator {
  width: 6px;
  height: 6px;
  background: rgba(40, 212, 198, 0.8);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.activity-text {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.02rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-popup {
    width: 95%;
    max-height: 90vh;
  }

  .contact-header {
    padding: 20px 25px;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-content {
    padding: 25px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .info-label {
    text-align: left;
    margin-bottom: 5px;
  }

  .activities-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .contact-popup {
    width: 98%;
    margin: 10px;
  }

  .contact-header {
    padding: 15px 20px;
  }

  .contact-title {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
  }

  .contact-content {
    padding: 20px;
  }

  .info-label, .info-value {
    font-size: 0.9rem;
  }

  .activities-title {
    font-size: 1.1rem;
  }

  .activity-text {
    font-size: 0.9rem;
  }
}

/* Amélioration du survol pour les sous-éléments */
.Menu-list-item.sub-item:hover .Mask,
.Menu-list-item.sub-item:active .Mask {
  color: rgba(255, 255, 255, 0.9);
  transform: skewX(8deg) translateX(3px);
}

.Menu-list-item.sub-item:hover .Mask + .Mask,
.Menu-list-item.sub-item:active .Mask + .Mask {
  color: rgba(0, 0, 0, 0.8);
  transform: skewX(8deg) translateX(-3px);
}

/* Ajustement de la ligne de survol pour les sous-éléments */
.Menu-list-item.sub-item::before {
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

/*---------- PAGE TITLE -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.TitlePage {
  justify-content: right;
  align-items: center;
  position: fixed;
  margin-left: 65%;
  margin-top: 12rem;
  width: 150rem;
  z-index: 3;
}

.titrepage {
  font-size: 3rem;
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  color: #d3d3ec;
  letter-spacing: 1rem;
  margin-left: 0rem;
  margin-top: 0rem;
  text-align: left;
  text-transform: uppercase;
  position: absolute;
  opacity: 0.5;
}

.titre2 {
  margin-left: 20.4%;
}

/*---------- LOGO ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.EliseVoet_Logo1 {
  background-image: url("/media/EliseVoet_LogoTexteBlanc.png");
  background-size: cover;
  width: 172.8px;
  height: 98.1px;
  top: 0px;
  margin-top: -10px;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 3;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
@media only screen 

  and (orientation: portrait) {
    .EliseVoet_Logo1 {
      visibility: hidden;
    }
}
.EliseVoet_Logo2 {
  background-image: url("/media/EliseVoet_LogoSignatureBlanc.png");
  background-size: cover;
  width: 180px;
  height: 110.25px;
  top: 0px;
  margin-top: -20px;
  margin-left: 31px;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 4;
  mix-blend-mode: lighten;
}
@media only screen 

  and (orientation: portrait)  {
    .EliseVoet_Logo2 {
      visibility: hidden;
    }
}

/*---------- SECTIONS ET SQUELETTE ------------------------------------------------------------------------------------------------------------------------------------*/

.section {
  min-width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* .section:nth-child(1) {
  background-image: linear-gradient(to right, rgb(47, 21, 82) , rgb(76, 129, 131));
}

.section:nth-child(2) {
  background-image: linear-gradient(to right, rgb(76, 129, 131), rgb(30, 114, 96));
}

.section:nth-child(3) {
  background-image: linear-gradient(to right, rgb(30, 114, 96), rgb(123, 124, 204));
}

.section:nth-child(4) {
  background-image: linear-gradient(to right, rgb(123, 124, 204), rgb(47, 21, 82));
} */

.nav-dots {
  position: fixed;
  align-items: center;
  bottom: 2%;
  left: 37.5%;
  display: flex;
  justify-content: space-between; 
  width: 25%; 
  z-index: 2;
}

.nav-dot {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  width: 10px;
  height: 10px;
  /* background-color: rgb(52, 33, 163); */
  opacity: 0.2;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease; 
  will-change: transform; 
  transition: all 0.4s ease-out;
}

.nav-dot.active {
  transform: scale(1.8);
  opacity: 1;
}

.nav-dot:hover {
  background-color: rgb(197, 188, 247);
  transition: all 0.4s ease-out;
  opacity: 1;
}

.progress-bar {
  position: fixed;
  bottom: 2.27%;
  left: 37.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5px;
  width: 0;
  background-color: rgb(52, 33, 163, 0.3);
  border-radius: 10px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/*---------- SOUND AUTORISATION POP UP ---------------------------------------------------------------------------------------------------------------------------------*/

.popup {
  background-color: rgb(54, 53, 126);
  width: 96vw;
  height: 87vh;
  margin-top: 0.5vh;
  position: fixed;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  display: none;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  z-index: 2;
  opacity: 0.8;
}

.popup.open {
  display: block;
}


.textpopup {
  position: fixed;
  width: 400px;
  left: 35%;
  top: 5%;
  padding: 2%;
  background-color: transparent;
  color: aliceblue;
  font-size: 2rem;
  letter-spacing: 0.1rem;
}

.popup button {
  display: block;
  margin-top: -60px;
  margin-left: auto;
  margin-bottom: 0px;
  background-color: transparent;
  font-size: 90px;
  border: none;
  outline: none;
  cursor: pointer;
}

.popup p {
  font-size: 14px;
  text-align: justify;
  margin: 20px 0;
}

.closepopup {
  margin-top: 5%;
  margin-left: 20%;
  width: 10%;
  font-size: 1.7rem;
  font-weight: 100;
}

#closebtn {
  /* transform: rotate(0turn); */
  color: white;
  width: 50px;
  margin-right: 42px;
  margin-top: -100px;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

#closebtn:hover {
  /* transform: rotate(0.25turn); */
  /* transform: scale(1.2, 1.2); */
  color: rgb(127, 129, 253);
  margin-right: 35px;
  transition: 0.5s ease;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

/*---------- MENU GRID ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.menu-grid {
  margin-left: 0vw;
  margin-top: 6.2vh;
  width: 70vw;
  height: 86vh;
  /* background-image: linear-gradient(to right, rgb(47, 21, 82) , rgb(76, 129, 131)); */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr; 
  grid-template-areas:
  "a a b"
  "a a b"
  "d d c";
  grid-column-gap: 2vh;
  grid-row-gap: 2vh;
  overflow: hidden;
  position: relative;
}

.menu-grid-bloc:nth-child(1) {
  /* background-color: tomato; */
  grid-area: a;
    gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  /* background-color: #1b1de8; */
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
}

.menu-grid-bloc:nth-child(2) {
  /* background-color: tomato; */
  /* clip-path: path('M 0 250 A 150 150 0 0 1 300 250 L 300 400 L 0 400 Z'); */
  /* clip-path: path('M 0 300 C 0 150, 150 0, 150 0 C 150 0, 300 150, 300 300 L 300 400 L 0 400 Z'); */
  /* clip-path: path('M 0 200 A 100 100 0 0 1 200 200 L 200 500 L 0 500 Z'); */
  /* clip-path: path('M 0 200 A 100 100 0 0 1 200 600 L 200 500 L 0 100 Z'); */
  /*ORIGINEL*/
  /* clip-path: path('M 0 200 A 100 100 0 0 1 600 500 L 200 500 L 0 500 Z'); */
    /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
  /*Glitch1*/
  /* clip-path: path('M 0 190 A 105 110 0 0 1 590 495 L 205 510 L -5 495 Z'); */
  /*Glitch2*/
  /* animation: glitchPath 1.2s infinite steps(2);
  clip-path: path('M 0 200 A 100 100 0 0 1 600 500 L 200 500 L 0 500 Z'); */
  grid-area: b;
  background-image: linear-gradient(to right, rgb(47, 21, 82) , rgb(76, 129, 131));
  margin-right: 15%;
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
    /*Glitch3*/
  /* clip-path: path('M 0 200 A 100 100 0 0 1 600 500 L 580 500 l 0 10 l -10 0 l 0 -10 Z L 520 500 l 0 15 l -15 0 l 0 -15 Z L 460 500 l 0 8 l -8 0 l 0 -8 Z L 200 500 L 0 500 Z'); */
  /*Glitch4*/
  /* clip-path: path('M 0 200 A 100 100 0 0 1 200 200 l 0 -10 l 10 0 l 0 10 Z l 0 -20 l 10 0 l 0 20 Z L 200 500 l 10 0 l 0 10 l -10 0 Z L 0 500 l -10 0 l 0 10 l 10 0 Z Z'); */
}

.menu-grid-bloc:nth-child(3) {
  grid-area: c;
  height: 93%;
  width: 81%;
  background-image: url("/media/Anhydran50.jpg");
  background-size: cover;
  margin-left: 0%;
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
}

.menu-grid-bloc:nth-child(4) {
  grid-area: d;
  background-image: linear-gradient(to top, rgb(47, 21, 82) , rgb(76, 129, 131));
  padding: 1px;
  margin-top: -2vh; /* recouvre le row-gap */
  z-index: 0;
  overflow: hidden;
  transform: scale(0.998); /* 👈 rétrécit légèrement */
  transform-origin: center;
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
}

/*---------- PROJETS GRID ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.projets-grid {
  margin-left: 0vw;
  margin-top: 6.2vh;
  width: 70vw;
  height: 86vh;
  /* background-image: linear-gradient(to right, rgb(47, 21, 82) , rgb(76, 129, 131)); */
  background-color: #3f41f5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr; 
  grid-template-areas:
  "a a b"
  "a a b"
  ". . c";
  grid-column-gap: 2vh;
  grid-row-gap: 2vh;
  overflow: hidden;
  position: relative;
}

.projets-grid-bloc:nth-child(1) {
  /* background-color: tomato; */
  /* clip-path: path('M 0 250 A 150 150 0 0 1 300 250 L 300 400 L 0 400 Z'); */
  /* clip-path: path('M 0 300 C 0 150, 150 0, 150 0 C 150 0, 300 150, 300 300 L 300 400 L 0 400 Z'); */
  /* clip-path: path('M 0 200 A 100 100 0 0 1 200 200 L 200 500 L 0 500 Z'); */
  /* clip-path: path('M 0 200 A 100 100 0 0 1 200 600 L 200 500 L 0 100 Z'); */
  /*ORIGINEL*/
  /* clip-path: path('M 0 200 A 100 100 0 0 1 600 500 L 200 500 L 0 500 Z'); */
    /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
  /*Glitch1*/
  /* clip-path: path('M 0 190 A 105 110 0 0 1 590 495 L 205 510 L -5 495 Z'); */
  /*Glitch2*/
  /* animation: glitchPath 1.2s infinite steps(2);
  clip-path: path('M 0 200 A 100 100 0 0 1 600 500 L 200 500 L 0 500 Z'); */
  grid-area: b;
  background-image: linear-gradient(to right, rgb(47, 21, 82) , rgb(76, 129, 131));
  margin-right: 15%;
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
    /*Glitch3*/
  /* clip-path: path('M 0 200 A 100 100 0 0 1 600 500 L 580 500 l 0 10 l -10 0 l 0 -10 Z L 520 500 l 0 15 l -15 0 l 0 -15 Z L 460 500 l 0 8 l -8 0 l 0 -8 Z L 200 500 L 0 500 Z'); */
  /*Glitch4*/
  /* clip-path: path('M 0 200 A 100 100 0 0 1 200 200 l 0 -10 l 10 0 l 0 10 Z l 0 -20 l 10 0 l 0 20 Z L 200 500 l 10 0 l 0 10 l -10 0 Z L 0 500 l -10 0 l 0 10 l 10 0 Z Z'); */
}

.projets-grid-bloc:nth-child(2) {
  grid-area: c;
  height: 93%;
  width: 81%;
  background-image: url("/media/Anhydran50.jpg");
  background-size: cover;
  margin-left: 0%;
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
}

.projets-grid-bloc:nth-child(3) {
  grid-area: d;
  background-image: linear-gradient(to top, rgb(47, 21, 82) , rgb(76, 129, 131));
  padding: 1px;
  margin-top: -2vh; /* recouvre le row-gap */
  z-index: 0;
  overflow: hidden;
  transform: scale(0.998); /* 👈 rétrécit légèrement */
  transform-origin: center;
  /* background-image: url("/media/phonemes2pousch2.jpg");
  background-size: cover;
  background-position: center; */
}

/*---------- TEXTE ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.text-bloc:nth-child(1) {
  background-color: #7374ea;
  width: 83%;
  max-height: 23%;
  padding: 5%;
  margin-bottom: 2vh;
  border-radius: 4%;
  transition: all 3s ease-in-out;
  align-items: center;
  justify-content: center;
}
.text-bloc:nth-child(2) {
  margin-top: 3.5%;
  width: 83%;
  transition: all 3s ease-in-out;
}
.text-bloc:nth-child(3) {
  margin-top: 3.5%;
  width: 83%;
  transition: all 3s ease-in-out;
}
/* .text-bloc:nth-child(4) {
  margin-top: 2.5vh;
  width: 83.5%;
} */

.title {
  font-family: "Roboto", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 4%;
  font-weight: lighter;
  color: white;
  letter-spacing: 0.1rem;
  opacity: 0.85;
}

.def {
  font-family: "Roboto", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 4%;
  font-weight: 200;
  color: white;
  letter-spacing: 0.1rem;
  opacity: 0.85;
}
.def2 {
  text-align: right;
  color: #2e00bc;
  opacity: 1;
}
.def3 {
  width: 70%;
  margin-left: 6vw;
  margin-top: -1vh;
}

.text {
  font-family: "Roboto", sans-serif;
  font-size: 1.6rem;
  /* margin-bottom: 10%; */
  font-weight: 400;
  color: black;
  letter-spacing: 0.1rem;
  opacity: 0.85;
}

.italic {
  font-style: italic;
}

#link {
  color: #3f41f5;
  text-decoration: none;
  font-style: italic;
  font-weight: 400;
  transition: 0.4s;
}

#link:hover {
  color: #701be3;
  font-style: italic;
  font-weight: 500;
  transition: 0.4s;
}

/* ---------- SLIDESHOW ------------------------------------------------------------------------------------------------------------- */

.slideshow {
  position: relative;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  display: block;
  
  .slider {
    top: 0;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: cover;
    display: block;
    
    * {
      outline: none;
    }
    
    .item {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
      border: none;
      object-fit: cover;
      display: block;
      
      .text {
        display: none;
      }
      
      img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        display: block;
      }
    }
  }
  
  .slick-dots {
    position: relative;
    z-index: 100;
    width: 40px;
    height: auto;
    bottom: auto;
    top: -10%;
    left: 0;
    transform: translateY(-50%);
    left: auto;
    color: #ffffff;
    display: block;
    
    li {
      display: block;
      width: 100%;
      height: auto;
      
      & button {
        position: relative;
        width: 20px;
        height: 15px;
        text-align: center;
        
        &:before {
          content: '';
          background: #fff;
          color: #fff;
          height: 2px;
          width: 20px;
          border-radius: 0;
          position: absolute;
          top: 50%;
          right: 0;
          left: auto;
          transform: translateY(-50%);
          transition: all .3s ease-in-out;
          opacity: 0.6;
        }
      }
      
      &.slick-active {
        button {
          &:before {
            width: 40px;
            opacity: 1;
          }
        }
      }
    }
  }
  
  &.slideshow-right {
    left: 0;
    z-index: 1;
    width: 100%;
    pointer-events: none;
    position: relative;
    background-color: #fc11ad;
    
    .slider {
      left: 0;
      position: absolute;
    }
  }
}

.slideshow-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  font-size: 80px;
  width: 100vw;
  text-align: center;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 100;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 20px;
  line-height: 0.8;
  
  @media (max-width: 767px) {
    font-size: 40px;
  }
  
}


.the-most {
  position: fixed;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 10px;
  
  img {
    max-width: 100%;
  }
}

.slideshow-right{
  mix-blend-mode: color-burn;
}

/* ── Menu aligné à gauche ────────────────────────────────────
   À coller à la fin de main.css
───────────────────────────────────────────────────────────── */

/* Le bouton hamburger est caché — le logo fait office de trigger */
.menu-btn {
  display: none;
}

/* Le wrapper s'ouvre depuis la gauche */
.wrapper {
  clip-path: polygon(0% 1%, 3% 1%, 3% 70%, 10% 70%, 10% 10%, 0.5% 60%);
  border-top-right-radius: 0;
  border-top-left-radius: 40px;
}

@media only screen and (max-width: 1400px) and (orientation: landscape) {
  .wrapper {
    clip-path: polygon(0% 1%, 5% 1%, 5% 50%, 16% 50%, 16% 10%, 0.5% 40%);
  }
}

@media only screen and (orientation: portrait) {
  .wrapper {
    clip-path: polygon(0% 1%, 10% 1%, 10% 50%, 30% 50%, 30% 10%, 1% 40%);
    border-top-left-radius: 35px;
  }
}

.wrapper.active {
  clip-path: polygon(0.5% 1%, 18.4% 1%, 18.4% 10%, 10% 90%, 0.5% 90%, 0.5% 80%);
}

@media only screen and (max-width: 1400px) and (orientation: landscape) {
  .wrapper.active {
    clip-path: polygon(0.5% 1%, 26% 1%, 26% 10%, 12% 50%, 0.5% 50%, 0.5% 40%);
  }
}

@media only screen and (orientation: portrait) {
  .wrapper.active {
    clip-path: polygon(1% 1%, 43% 1%, 43% 10%, 20% 50%, 1% 50%, 1% 40%);
    border-top-left-radius: 35px;
  }
}

/* La liste du menu s'aligne à gauche */
.wrapper ul {
  left: 9%;
  text-align: left;
  direction: ltr;
}

@media only screen and (max-width: 1400px) and (orientation: landscape) {
  .wrapper ul {
    left: 13%;
  }
}

@media only screen and (orientation: portrait) {
  .wrapper ul {
    left: 21%;
  }
}