/*
font-family: "area-normal", sans-serif;
font-weight: 400;
font-weight: 700;
font-style: italic;
font-style: normal;
font-family: "area-extended", sans-serif;
font-weight: 700;
font-weight: 400; 
font-family: "neulis-neue", sans-serif;
font-weight: 400;
font-weight: 700;
font-style: normal;
*/

#mobile-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 999999999;
  
  display: none; /* caché par défaut */
  
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mobile-warning-content {
  max-width: 300px;
  font-family: sans-serif;
}

#mobile-warning button {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid black;
  background: black;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

/* Affiché seulement en mobile */
@media (max-width: 768px) {
  #mobile-warning {
    display: flex;
  }
}


body {
  margin: 0px;
  padding: 0px 30px;
  font-style: normal;
  font-family: "neulis-neue", sans-serif;
  font-size: 20px;
  color: red;
  overflow-x: hidden;
}

.burger,
.mobile-nav {
  display: none;
}

footer {
  display: flex;
  justify-content: space-between;
}

p {
  margin: 0px;
}


a,
a:visited {
  color: red;
  text-decoration: none;
  font-size: 20px;
}

a:hover {
  background-color: rgb(198, 175, 175);
}

main p {
  width: 37.50%;
  font-weight: 400;

}

.NavProj {
  display: flex;
  justify-content: space-between;
  width: 60%;
}

nav {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  border-bottom: solid 2px;
  color: red;
  margin-top: 7vh;
  margin-bottom: 2vh;
}

nav a {
  padding: 0 10px;
  font-size: 1.5em;
}



.EnTete {
  justify-content: flex-end;
  display: flex;
}

.EnTete p {
  font-family: "area-extended";
  font-weight: 700;
  font-size: 2.8em;
  line-height: 1.3em;
  width: calc(50% - 15px);
}

/* slider */
/* SECTION */
.split-section {
  position: relative;
  padding-bottom: 2.5vh;
  border-bottom: solid 1px;
  color: red;
  margin-bottom: 2.5vh;
}

/* TEXTE FIXE À GAUCHE */
.text-zone {
  width: calc(50% - 15px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 850px;
}

.text-zone a {
  font-size: 20px;
  flex-basis: 50%;
  text-align: right;
}

.text-zone .videolinkpro {
  flex-basis: 20%;
}

.text-zone-btm p {
  width: 25%;
  z-index: 3;
}

.text-zone-top {
  display: flex;
  z-index: 1;
}

.text-zone-btm {
  display: flex;
  justify-content: space-between;
}

.text-zone-btm a {
  z-index: 999;
}

.text-zone-top-desc {
  width: 75%;
}

.text-zone-top-info {
  width: calc(25% - 10px);
  margin-right: 10px;
}

/* CAROUSEL À DROITE */
.carousel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100vw;
  /* pleine largeur écran */
  overflow-x: auto;
  z-index: 2;
  cursor: url("./img/arrow.svg") 32 32, ew-resize;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* TRACK */
.carousel-track {
  display: flex;
  align-items: center;
  gap: 12vw;
  height: 100%;
  padding-left: calc(50vw + 45px);
  /* ← magie */
  padding-right: 0;
}

/* IMAGES */
.carousel-track img {
  height: 850px;
  /* hauteur fixe */
  width: auto;
  /* largeur variable */
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

/* ------------------------------- all project ----------- */

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}


.grid>div {
  aspect-ratio: 296 / 385;
  width: 100%;
  position: relative;
  overflow: hidden;
}




/* Image pleine div */
.grid img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.grid img.visible {
  opacity: 1;
}

.grid img.invisible {
  opacity: 0;
}

/* Texte toujours au-dessus, bas-droite */
.grid div p {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  text-align: right;
  width: 95%;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------- Laboratoire -------------*/

.LabProjectTitre {
  display: flex;  
}

.LabProjectTitre p:nth-of-type(1),
.LabProjectTitre p:nth-of-type(2) {
  width: 25%;
  margin-right: 7.5px;
}

.LabProject { 
  border-bottom: 1px red solid;
  padding-bottom: 1.5vh;
  margin-bottom: 1.5vh;
}

.LabProjectContent {
  display: flex;
  justify-content: space-between;
  height: auto;
  align-items: flex-end;
  display: none;
}

.LabProjectContent img { 
  max-height: 650px;
}

.LabProjectContent > img {
  margin-top: -22px;
}

.LabProjectContent.active {
  display: flex;
}

#lab nav {
  margin-bottom: 1.5vh;
}

#lab .LabProjectTitre:hover {
  cursor: pointer;
}
 /* -------- Lab slider -------- */

.LabCarousel {
  max-width: 50%;
  overflow-x: auto;
  margin-top: -22px;
  height: 650px;
}

.LabCarousel::-webkit-scrollbar {
  display: none;
}

.LabCarouselTrack {
  display: flex;
  gap: 30px;
}

.LabCarouselTrack img {
  height: 650px;
  object-fit: cover;
  cursor: pointer;
}
/* ------------------------------------- About ----------*/

.about div {
  display: flex;
  align-items: flex-end;
  width: 50%;
}

.about div p:nth-of-type(1) {
  flex-grow: 4;
  padding-right: 15px;
  margin-right: 5px;
}
.about div p:nth-of-type(2) {
  width: 13%;
  flex-grow: 1;
}

.about {
  display: flex;
  padding-bottom: 5vh;
  margin-bottom: 1.5vh;
  border-bottom: 1px solid red;
}

.about img {
  max-width: calc(100% - 20px);
  margin-left: 20px;
}
.mobile-nav {
  z-index: 9999;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {

  body {
    font-size: 16px;
    padding: 0 16px;
    padding: 0 20px;
  }

  main p {
    width: 100%;
  }

  /* En-tête */
  .EnTete p {
    font-size: 1.8em;   /* au lieu de 2.2 ou 2.8 */
    line-height: 1.2em;
    width: 100%;
    margin-bottom: 3vh;
  }

  /* NAV DESKTOP CACHÉ */
  nav {
    display: none;
  }

  /* BURGER */
  .burger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    z-index: 2000;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    height: 100vh;
    background: white;
    color: red;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav a {
    font-size: 2em;
    margin: 10px 0;
  }

  /* SPLIT SYSTEMS */
  .split-section {
    display: flex;
    flex-direction: column;
  }

  .text-zone {
    width: 100%;
    height: auto;
  }

  .text-zone-top {
    flex-direction: column;
  }

  .text-zone-top-info,
  .text-zone-top-desc {
    width: 100%;
  }

  .text-zone-btm {
    margin-top: 3vh;
  }

  /* CAROUSEL */
  .carousel {
    position: relative;
    width: 100%;
    margin-top: 3vh;
  }

  .carousel-track {
    padding-left: 0;
    gap: 20px;
  }

  .carousel-track img {
    height: 45vh;
  }

  /* ALL PROJECT GRID */
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid img {
    opacity: 1 !important;
  }

  /* LAB */
  .LabProjectContent {
    flex-direction: column;
  }

  .LabCarousel {
    max-width: 100%;
    height: 45vh;
  }

  .LabCarouselTrack img {
    height: 45vh;
  }
  .LabProjectTitre {
    flex-direction: column;
  }

  .LabProjectTitre p {
    width: 100%;
    margin-right: 0;
  }

  /* ABOUT */
  .about {
    flex-direction: column;
  }

  .about div {
    width: 100%;
    flex-direction: column;
  }

  .about div p {
    width: 100% !important;
    margin-bottom: 2vh;
  }

  .about img {
    margin: 20px 0 0 0;
  }
}

/* ---------------- IPAD ---------------- */
@media (min-width: 769px) and (max-width: 1024px) {

  body {
    font-size: 18px;
    padding: 0 24px;
  }

  .EnTete p {
    font-size: 2.4em;
    width: 80%;
  }

  .text-zone {
    width: 45%;
    height: auto;
  }

  .carousel-track img {
    height: 70vh;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .LabCarousel {
    max-width: 70%;
  }

}

