/* Importer la police locale Seravek Extra Light */
@font-face {
  font-family: 'Seravek';
  src: url('Seravek-ExtraLight.woff2') format('woff2'),
       url('Seravek-ExtraLight.woff') format('woff');
  font-style: normal;
}

body {
  font-family: 'Seravek', sans-serif;
  margin: 0;
}

a {

}


a:link {
color: black;
}

a:visited {
color: black;
}


/* HEADER - MENU DEROULANT */
#header {
  position: fixed;
  background-color: white;
  top: 0;
  padding-top: 5px;
  width: 100vw;
  height: 30px;
  font-weight: lighter;
  text-align: center;
  font-size: 25px;
  font-family: 'Seravek', sans-serif;
}

#headermobile {
  display: none;
  position: fixed;
  background-color: white;
  top: 0;
  width: 100vw;
  height: 70px;
  text-align: center;
  font-weight: lighter;
  font-size: 25px;
  font-family: 'Seravek', sans-serif;
}

.menumobile {
  margin: 5px 20px;
  font-size: 12px;
  text-decoration: none;
  color: black;
}

.dropbtn {
  background-color: white;
  color: black;
  border: none;
  font-size: 30px;
  width: 100vw;
  font-family: 'Seravek', sans-serif;
}

.dropdown {
  position: absolute;
  top: 0;
  left:0;
  width: 100vw;
  height: 70px;
  display: inline-block;
}

.dropdown-content {
  display: block;
  visibility: hidden;
  position: absolute;
  width: 100vw;
  z-index: 1;
  font-size: 12px;
  padding-top: 15px;
  transition: 0.5s;
  background-color: white;
}

.dropdown-content a {
  color: black;
  padding: 0px 10px;
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  transition: 0s;
  text-align: center;
}

/* SLIDESHOW */

#popup {
  display: none;
  width: 100vw;
  height: 100vh;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 12;
  cursor: url('IMG/LOGO/cursor-cross.png') 25 25, auto;
}

#popupstart {
  display: block;
  width: 100vw;
  height: 100vh;
  position: absolute;
}

#slideshow {
  margin: auto;
  width: 60vh;
  height: 60vh;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -30vh;
  margin-left: -30vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 13;
}

#slideshowstart {
  margin: auto;
  width: 50vh;
  height: 50vh;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -25vh;
  margin-left: -25vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 13;
}

#leftbutton {
  float: left;
  width: 50%;
  height: 70vh;
  cursor: url('IMG/LOGO/cursor-left.png') 25 25, auto;
}

#rightbutton {
  float: left;
  width: 50%;
  height: 70vh;
  cursor: url('IMG/LOGO/cursor-right.png') 25 25, auto;
}

/* PAGE D'ACCUEIL */

.intro {
  padding: 80px 30vw;
  font-size: 15px;
}

/* PROJETS */

#imageprojet {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -30vh;
  margin-left: -30vh;
  width: 60vh;
  height: 60vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 10;
  pointer-events: none;
}

#listeprojets {
  margin-top: 12vh;
}

.tableproject {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100vw;
  font-size: 12px;

}

.tableproject tbody {
  display: block;
  width: 100vw;
  overflow: auto;
  height: calc(90vh - 60px);
  cursor: pointer;
}

.tableproject thead tr {
  display: block;
}

.tableproject th, .tableproject td {
  padding: 5px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.tableproject tbody tr:hover {
  background-color: #f5f5f5;
}

.column-1 {
  width: 5vw;
}

.column-2 {
  width: 25vw;
}

.column-4, .column-5, .column-6, .column-7 {
  width: 9vw;
}

.column-3, .column-8 {
  width: 15vw;
}


/* CONTENU-TEXT */

.content-text {
  padding: 80px 35vw;
  font-size: 15px;
}

.column {
  float: left;
  width: calc(50vw - 60px);
  height: calc(100vh - 200px);
  overflow: auto;
  scrollbar-width: none;
  padding: 80px 20px;
  font-size: 12px;
}

#footer {
  position: fixed;
  background-color: white;
  bottom: 0;
  width: 100vw;
  height: 30px;
  text-align: center;
  display: block;
}

/* TABLEAU RESEARCH */

.researchgrid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

.researchitem {
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

.researchitem img {
        width: 100%;
        display: block;
        transition: transform 0.3s ease;
    }

.researchitem:hover img {
        transform: scale(1.05);
    }

    /* Overlay au survol */
.overlay {
  position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;                  
    flex-direction: column;         
    justify-content: center;      
    align-items: center;            
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 13px;
    color: #333;
    padding: 10px;
    text-align: center;
    column-count: 1 !important;
    white-space: normal;
    user-select: none;        /* empêche la sélection du texte */
    -webkit-user-select: none; /* Safari / iOS */
    -ms-user-select: none;     /* IE/Edge */
    -webkit-touch-callout: none; /* désactive le menu contextuel sur iOS */
    }

.researchitem:hover .overlay {
        opacity: 1;
    }


/* RESPONSIVE */

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

  .column {
  width: calc(100vw - 60px);
  height: auto;
}
.researchgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 1000px) {
  .column-1 {
    width: 6vw;
  }

  .column-2 {
    width: 28vw;
  }

  .column-3 {
    width: 17vw;
  }

  .column-4, .column-5, .column-6, .column-7 {
    width: 11vw;
  }

  .column-8 {
    display: none;
  }

  .content-text {
    padding: 80px 20vw;
  }

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

}

@media screen and (max-width: 850px) {
  .column-1 {
    width: 8vw;
  }

  .column-2 {
    width: 40vw;
  }

  .column-3 {
    width: 24vw;
  }

  .column-4, .column-6 {
    width: 14vw;
  }

  .column-5, .column-7, .column-8 {
    display: none;
  }

  .content-text {
    padding: 80px 10vw;
  }

  .researchgrid {
    grid-template-columns: 1fr;
  }

}
