@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:wght@100;200;400;700&display=swap');
@import url('https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
/*to look for an icon from font-awesome: https://fontawesome.com/search?q=meet&o=r*/

@font-face {
  font-family: 'Roobert';
  src: url('https://uploads-ssl.webflow.com/61727d00debcd2d1a5c2af6d/61728e2b01fb512788274e73_Roobert-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

 

/* Variables */
:root {
  --font-size: 1rem;
  --light: #F8FBF4;
  --normal: #1ac297;
  --dark: #054444;
  --darker: #063434;
}

.darker-mode { 
  --navbar-color: #1ac297;
  --navbar-bg-color: #063434;
  --text-color: #F8FBF4;
}

.light-mode { 
  --navbar-color: #1ac297;
  --navbar-bg-color: #F8FBF4;
  --text-color: #054444;
}

.dark-mode {
  --navbar-color: #1ac297;
  --navbar-bg-color: #054444;
  --text-color: #F8FBF4;
}

.underline{
 text-decoration: underline;
}

.hidePC {
    display: none;
  }

/* Reset */
*{
 box-sizing:border-box; 
 outline:none;
 margin:0;
 padding:0;
}

p{
 font-family: 'Open Sans', sans-serif;
}

ul{
 list-style:none;
}


/* Basic style */
body{
 height: 100%;
 margin:0;
 font-size:var(--font-size);
 font-family: 'Poppins', sans-serif;
 background: linear-gradient(#F8FBF4 0%, #F8FBF4 10%, #054444 11%);
}

strong, em{
 font-style: normal;
}

/*Title*/
#headtitle{
 display: grid;
 height: 100vh;
 grid-template-rows: 200px 45px auto;
 background-color: #F8FBF4;
 width: 100%;
 align-content: start;
}

.main-title{
 width: 100%;
 margin-top: 60px;
 cursor: default;
 color: var(--text-color);
 background-color: var(--navbar-bg-color);
 font-family: Roobert, sans-serif;
 height: 100%;
 display:table;  /*permet de jouer sur le centrage de h1 dans le div*/
 text-align: center; /*aligne le texte de h1*/
 z-index: 1;
}

.main-title h1{
 vertical-align: middle; /*centre h1 en vertical*/
 display:table-cell; /*se comporte comme une cellule du tableau*/
 font-weight: bold;
}

.container .navbar{
 width: 100%;
}

/* Navbar */
.navbar{
 display: flex;
 align-items:center; 
 justify-content:space-between;   
 padding : 10px;
 font-size: 1.1rem;
 background: var(--navbar-bg-color);
 color: var(--navbar-color);
 z-index: 999;
 font-weight: 200;
}

.navbar_links{ 
 display:flex;
 flex-flow: row wrap;
 text-align: center;
 margin-top: 0px; /*car image à 60px trop grande et texte descend*/
 }

.navbar_link > a{
 display: block;
}

.navbar_link > a{ 
 color: rgba(80,80,80,0.5);
 font-weight: 400;
 text-decoration:none;
 z-index: 1002;
}

.navbar_links > .navbar_link > a::after{ /*ligne verte en dessous du menu*/
 display: block;
 content:"";
 width:0;
 height:1px;
 background:var(--navbar-color);
 transition:width .4s;
}

.navbar_links > .navbar_link > .lock::after{
 display: none;
}

/*second menu nonsticky*/
.navbar_links2{ 
 display:flex;
 flex: 1 1 auto;
 text-align: center;
 width: 100%;
 position: relative;
 height: 25px;
}

.navbar_links2 > .navbar_link > a::after{ /*ligne verte en dessous du menu*/
 display:block;
 content:"";
 width:0;
 margin-top:6.5px;
 height:1px;
 background:var(--navbar-color);
 transition:width .4s;
}

.navbar_links2 > .navbar_link{
 flex: auto;
}

.navbar_links2 > .navbar_link > a{
 display: block;
}

.navbar_links .navbar_link{
 padding:0 10px;
 font-weight: 200;
}

.navbar_links2 > .navbar_link > a{ 
 color:var(--text-color);
 font-weight: 400;
 text-decoration:none;
}

.navbar_link{
 cursor: default; 
}

.navbar_logo img{ /*permet de faire rentrer le logo dans la barre de navigation*/
 height: 60px;
}

.Giant, .hidePC{
 display:none;
}

.navbar_link:hover > a::after { /*survol pour la ligne verte ci-dessus*/ 
 width:100%;
}

.navbar_link:hover > .lock > i{
 color: var(--navbar-color);
}

.FOR{
 font-weight: 200;
 font-style: italic;
 }

.hideGSM > a::after { /*utilisé comme séparateur => pas besoin de souligner*/
 background: transparent;
}

/*mise en forme menu déroulant*/
.sous{
 display: none;
 position: absolute; /*pour le sortir du conteneur*/
 text-align: left;
 padding: 10px;
 z-index: 1001;
}


.deroulant > ul > li{ /*mise en forme élément menu déroulant*/
 padding: 5px 0px 2px 0px;
}

.mtop{ /*position déroulant menu1*/
 background-color: var(--navbar-bg-color);
 margin-left: -10px;
 margin-top: -10px;
 z-index: -1;
}

.mbottom{ /*position déroulant menu2*/
 width: 100%;
 background-color: var(--navbar-bg-color);
}

.mbottom li{
 flex: 1 1 auto;
 text-align: left
}

.mbottom, .mtop > li > a{
font-weight: 400;
}

.deroulant > ul > .noborder { /*mise en forme élément menu déroulant*/
 border-bottom: none;
}

.deroulant > ul > li > a:hover{ /*changement couleur éléments menu déroulants*/
 color: var(--navbar-color);
}

.mbottom > li > a{ /*enlève lien hypertexte*/
 color: var(--text-color);
 text-decoration: none;
}

.mtop > li > a{ /*enlève lien hypertexte*/
 color: rgba(80,80,80,0.5);
 text-decoration: none;
}

nav > ul li:hover .sous{ /*affichage du menu déroulant quand souris*/
 display: flex;
 flex-flow: column wrap;
}

.nosticky ul li{ /*menu déroulant occupe largeur du menu*/
 float: left;
 width: 100%;
 text-align: center;
 position: relative;
 border-bottom: none;
}

/*
*slideshow
**/

.slideshow{
 width: 100%;
 height: 100%;
 background-color: var(--navbar-bg-color);
 position: relative; /*permet de placer les flèches comme il faut*/
 overflow: hidden; /*une seule image apparait*/
 z-index: 0;
}

.elements{
 display: flex; /*met les images côte à côte, mais plus 100% => flex sur element*/
  }

.element{
 flex: 1 0 100%; /*taille de 100% et permet à l'image de grandir*/
 position: relative; /*permet à caption de venir sur l'image*/
 backface-visibility: hidden; /* Ajoutez cette ligne pour réduire le scintillement */
}

.element > picture > img{
 width: 100%; /*fait occuper tout l'espace par l'image dans element =>*/
 height: auto;
 filter: blur(1px); /*image un peu floue*/
 filter: brightness(0.6); /*image plus sombre pour faire resortir le titre*/
 image-rendering: -webkit-optimize-contrast; /* évite scintillement Safari */
 image-rendering: crisp-edges;
 image-rendering: pixelated;
}

.caption{
 display: flex;
 flex-flow: column;
 position: absolute; /*place par rapport au main via top et left et tous ensemble!*/
 top: 30%;
 left: 50%;
 -webkit-transform: translate(-50%, -50%); /*permet de mettre le centre plutôt que le point supérieur gauche au centre de l'image*/
 text-align: center;
 color: rgb(258,251,244);
 padding: 10px;
 width: 80%;
}

.caption > h1{
 color: rgb(258,251,244);
 font-weight: 800;
 font-size: 2.5rem;
}

.slidelink{ /*more info box*/
 display: inherit;
 margin-top: 20px;
 margin-left: auto;
 margin-right: auto;
}

.slidelink > a{
 display: block;
 color: rgb(258,251,244);
 text-decoration: none;
 padding: 10px;
 font-size: 1.2rem;
 font-weight: 600;
 background-color: rgba(258,251,244,0.2);
 border: 2px solid rgb(258,251,244);
 border-radius: 20px;
}

.slidelink:hover a{ /*en savoir plus box*/
 background-color: rgb(258,251,244);
 color: rgb(26,194,151);
}


#nav-left, #nav-right{
 display: none;
 position: absolute;
 top: 50%; /*coin supérieur gauche*/
 -webkit-transform: translateY(-50%); /*place bien le centre de la flèche au milieu*/
 color: #F8FBF4;
 font-size: 2rem;
 cursor: pointer; /*permet de changer la flèche de la souris en pointer*/
 text-align: center;
 padding-top: 5px;
}

#nav-left:hover, #nav-right:hover{
 color : rgb(26,194,151);
}

.slideshow:hover #nav-right{
 display: block;
 right: 10px;
 padding-left: 2.5px;
}

.slideshow:hover #nav-left{
 display: block;
 left: 10px;
 padding-right: 2.5px;
}

/*
*Section 1 : infos
**/

#section1{
 display: grid;
 grid-template-columns: repeat(5, 1fr);
 grid-template-rows: 2fr 2fr 2fr 1fr;
 cursor: default;
 align-items: flex-end;
}

#section1 > div{
 padding: 20px 0px 20px 0px;
 width: 100%;
 text-align: center;
}

.G0{grid-area: 1 / 1 / 2 / 6 }
.G1{grid-area: 2 / 1 / 2 / 2 }
.G2{grid-area: 2 / 2 / 2 / 3 }
.G3{grid-area: 2 / 3 / 3 / 4 }
.G4{grid-area: 2 / 4 / 3 / 5 }
.G5{grid-area: 2 / 5 / 3 / 6 }
.G6{grid-area: 3 / 1 / 4 / 2 }
.G7{grid-area: 3 / 2 / 4 / 3 }
.G8{grid-area: 3 / 3 / 4 / 4 }
.G9{grid-area: 3 / 4 / 4 / 5 }
.G10{grid-area: 3 / 5 / 4 / 6 }
  
.icon{
 font-size: 5rem;
 color: var(--bg-color);
}
 
.G0 > h1{
 color:  #1ac297;
 font-size: 6vh;
 }

#section1 > div > a {
 text-decoration: none;
 color: #063434;
}

  /*
 *Section 2&co
 */
 
#section2{
 text-align: left;
 cursor: default;
}

#textbox{
 width:100%;
 height:80%;
 display: grid;
 grid-template-rows: 1fr 2fr 1fr;
 grid-template-columns: repeat(2, 1fr);
}

#textbox > #titlebox {grid-area: 1 / 1 / 2 / 3;
 font-size: 6vh;
 text-align: center;
 padding: 20px;
 color: #054444;
}

#textbox > h2:nth-child(2) {grid-area: 2 / 1 / 3 / 2}
#textbox > h2:nth-child(3) {grid-area: 2 / 2 / 3 / 3}

#textbox > a:nth-child(2) {grid-area: 2 / 1 / 3 / 3}
#textbox > a:nth-child(3) {grid-area: 3 / 1 / 4 / 3}

#textbox > h2{
 color: #054444;
 text-align: center;
 padding: 40px;
}

#textbox > a > h2{
 color: #054444;
 text-align: left;
 padding: 40px;
 height: 40px;
}

#textbox > a {
 height: 40px;
 color: #054444;
}
 
#section2 > h1{
 font-size: 2.5rem;
 color: #054444;
}

#section3 > h1{
 color: #063434;
}

/*
section0 research
*/

#section0R{
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 grid-template-rows: 0.15fr 1fr 1fr;
 cursor: default;
 align-items: stretch;
}


#section0R > div{
 padding: 20px 0px 20px 0px;
 width: 100%;
 text-align: center;
}

.topic0{grid-area: 2 / 1 / 3 / 5 }
.topic1{grid-area: 3 / 1 / 4 / 2 }
.topic2{grid-area: 3 / 2 / 4 / 3 }
.topic3{grid-area: 3 / 3 / 4 / 4 }
.topic4{grid-area: 3 / 4 / 4 / 5 }

#section0R > div > a > h3{
 font-size: 3.5vh;
 font-family: 'PT Sans', sans-serif;
 font-weight: bolder;
}

#section0R > div > a {
 text-decoration: none;
 color: #063434;
}

#captionR{
 top: 50%;
 text-align: right;
}

#captionR > h1{
 font-size: 6vh;
 margin-right: -10%;
}

/*
 lab team pages (no topic4 atm, so only 3 columns)
 */

#immuno > #section0R{
 grid-template-columns: repeat(3, 1fr);
}

#immuno > .topic1{grid-area: 3 / 1 / 4 / 2 }
#immuno > .topic2{grid-area: 3 / 2 / 4 / 3 }
#immuno > .topic3{grid-area: 3 / 3 / 4 / 4 }

#immuno #section1{
 display: inherit
 }

/*
Publications
*/
#publi > .topic0, #pdf > .topic0{
 height: 50%;
}

#publi > #sectionRideau, #pdf > #sectionRideau{
 height:0vh;
}

#publi > #section0R{
 height:auto;
}

#publi > #section0R, #pdf > #section0R {
 display: grid;
 grid-template-rows: 50px auto 1fr; 
}

.topic-width{grid-area: 3 / 1 / 4 / 5 ;
z-index: 1000;
}

.topic-width > p{
 padding: 0px 30px 0px 30px;
 text-align: left;
}

.topic-width > h4:nth-child(1){
 margin-top: -10px;
 }
 
.topic-width > h4{
 margin-top: 20px;
 font-style:italic;
 text-align: left;
}

.topic-width > p > a{
 text-decoration: underline;
 color: darker;
}

#labmembers > *{
 text-align: center;
 font-size: 2.5vh;
 line-height: 3vh;
}

.bolditalic{
 font-weight: bold;
 font-style: italic;
}

.italic{
 font-style: italic;
}

#immuno > #section5{
 height:0vh;
}

/*
section research
*/

#research #section1{
 display: inherit
 }
 
 .labdesc{
 display: grid;
 grid-template-columns: repeat(6, 1fr);
 grid-template-rows: 0.2fr 0.1fr 0.7fr;
 cursor: default;
 height: 100%;
 width: 100%;
 }

.labdesc > div{
 padding: 20px 0px 20px 0px;
 width: 100%;
 text-align: center;
}

.labdesc > div > h3{
 font-size: 1.5rem;
 font-family: 'PT Sans', sans-serif;
 font-weight: bolder;
 text-align: left;
 padding: 5px;
}

.labdesc > div {
 text-decoration: none;
 color: #063434;
}

.lab-photo{
 grid-area: 1 / 1 / 2 / 2;
 display: flex;
 align-items: center;
 justify-content: space-around;
}
 
.lab{grid-area: 1 / 2 / 2 / 7; }

#section1R > #dark, #section2 > #light, #section3 > #darker, #section5 > #dark{
 padding: 60px 0px 0px 0px;
}

.labdesc > .caption{
 max-height: 10px;
 position: relative;
 -webkit-transform: inherit;
 top: inherit;
 left: inherit;
 grid-area: 2 / 1 / 3 / 7;
 }
 
  #captupdown {
  margin-top: 0px; 
  }
 
 #dark > .caption > div > a{
 background-color : #054444;
 }
 
 #dark > .caption > div > a:hover{
 background-color : #F8FBF4;
 color: #054444;
 }

 #light > .caption > div > a{
 background-color : #1ac297;
 }
 
 #light > .caption > div > a:hover{
 background-color : #F8FBF4;
 }
 
 #darker > .caption > div > a{
 background-color : #054444;
 border-color: #1ac297;
 color: #1ac297;
 }
 
 #darker > .caption > div > a:hover{
 background-color : #1ac297;
 color: #054444;
 }
 
 
.lab-team{
  grid-area: 3 / 1 / 4 / 7;
  }
  

.lab-team > a > img{
 max-width: 350px;
 text-align: center;
}

.lab > p{
 text-align: justify;
 padding: 0px 10% 0px 3%;
 font-size: 1rem;
 line-height: 1.3rem;
}

.lab > h3{
 margin: 0px 0px 0px 3%;
}

#light > h3, #light > p{
 color: #1ac297;
}

#dark > h3, #dark > p{
 color: #054444;
}

/*
LAB PAGE_BACMOL
*/

 #light-duo > .caption > div > a{
 background-color : #1ac297;
 }
 
 #light-duo > .caption > div > a:hover{
 background-color : #F8FBF4;
 }
 #light-duo > p{
 color: #1ac297;
}

#light-duo{
 grid-template-columns: repeat(6, 1fr);
 grid-template-rows: 0.2fr 0.2fr 0.1fr;
}

#section1R > .labdesc > .labtitle{
 grid-area: 1 / 1 / 2 / 2;
 margin-left: 10%;
 }

#light-duo > div:nth-child(1){
 grid-area: 2 / 1 / 3 / 2;
 margin-left: 10%;
 }
#light-duo > div:nth-child(2){grid-area: 2 / 2 / 3 / 3; }
#light-duo > div:nth-child(4){grid-area: 3 / 2 / 4 / 3; }
#light-duo > div:nth-child(3){
 grid-area: 2 / 3 / 3 / 6;
 display: flex; /* Active Flexbox */
 align-items: center; /* Centre verticalement les éléments enfants */
}
 
#light-duo > div:nth-child(5){
 grid-area: 3 / 3 / 4 / 6;
 display: flex; /* Active Flexbox */
 align-items: center; /* Centre verticalement les éléments enfants */
}
 
#light-duo > div:nth-child(6){grid-area: 4 / 1 / 5 / 7; }
#light-duo > div {
 text-align: left;
}

.lab > p{
 padding-top: 10px;
}

#light-duo > .lab > p{
 padding-top: 0px;
}

/*
publiste
 */

#section3 > .labdesc{
 grid-template-rows: 0.1fr 0.2fr 0.6fr; 
}

#dark > .labtitle{
 grid-area: 2 / 1 / 3 / 2;
 margin-left: 10%;
}

.publist{grid-area: 2 / 2 / 3 / 7; }
.publist > p{
 padding: 10px 10% 0px 0px;
 text-align: justify;
 font-size: 2vh;
}

.publist > p> a{
 color: black;
}

.labflex{
 display: flex; /* Active Flexbox */
 align-items: center; /* Centre verticalement les éléments enfants */
}

#labh3{
 font-size: 4vh;
}
/*
effets rideau du footer
*/

#sectionRideau{
 margin-bottom: 350px;
 z-index: -1;
 box-shadow: -1px 10px 10px -5px darker; 
}

footer{
 display: flex;
 flex-flow: column;
 position: fixed;
 align-items: flex-start;
 justify-content: flex-end;
 width: 100%;
 height: 400px;
 bottom: 0;
 z-index: -4;
 color: #1ac297;
}

footer > div{
 position: relative;
 bottom: 10px;
 left: 10px;
 width: 30%
}

footer > div > a > img{
 width: 50%;
 padding-left: 10px;
}

footer > div > p{
 padding-left: 10px;
}

 
 /*
  *SNAP SCROLL
  */
 
html {
  scroll-behavior: smooth; /*auto= passage direct d'un élément à l'autre, smooth=défilement progressif (notamment quand href="#section")*/
}

.container {
  height: 100vh;
  overflow-y: scroll; /*permet de pouvoir défiler = auto*/
  scroll-snap-type: y mandatory; /*y ou x = direction unique du snap*/
    /*définit force d'adhérence à un point d'accroche
    mandatory = s'arrête à un point d'accroche, proximity = peut s'arrêter au point d'accroche*/
}

/*hide scrollbar in chrome*/
.container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.container .snapscroll {
  height: 100vh; /*se cale sur la taille de l'écran*/
  scroll-snap-stop: always; /*force l'accrochage, évite de passer une section*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 1px 8px 25px 10px rgba(0,0,0,0.76); /*ombre, effet "3D"*/
}

.container .snapscroll:nth-child(1) { /*ajouté pour favoriser le snap en remontant*/
  height:0vh;
  scroll-snap-align: start end; /*position de la boite d'accroche (center, end)*/
}

.container .snapscroll:nth-child(2) {
  background-color: #F8FBF4;
  scroll-snap-align: end; /*position de la boite d'accroche (center, end)*/
}

.container .snapscroll:nth-child(3) {
  background-color: #1ac297;
  scroll-snap-align: start end;
}

.container .snapscroll:nth-child(4) {
  background-color: #054444;
  scroll-snap-align: start end; 
}

.container .snapscroll:nth-child(5) {  
  background-color: #F8FBF4;
  scroll-snap-align: start end; 
}

.container .snapscroll:nth-child(6) { /*ajouté pour favoriser le snap en descendant*/
  height:0vh;  
  background-color: #7EBBE9;
  scroll-snap-align: start end; 
}
.container .snapscroll:nth-child(7) {
  background-color: #1ac297;
  scroll-snap-align: start end; 
}

.container .snapscroll:nth-child(8) { /*ajouté pour favoriser le snap en descendant*/
  height:0vh;  
  background-color: #7EBBE9;
  scroll-snap-align: start end; 
}

 /*
Cacher menu quand scrolle + test4.js
*/

.hidescroll {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.4s;
  height: 70px;
  z-index: 1000;
  }
  
  .hidescroll::after { /*ajoute un pseudoélement (ligne) en dessous du menu*/
  content: "";
  position: absolute;
  top: 70px;
  left: 50%; /*centre la ligne mais besoin de transformer*/
  transform: translateX(-50%);
  width: 98.5%; /* Définit la longueur du bord à 80% de la largeur de l'élément */
  border-bottom: 1px solid rgba(80,80,80,0.2);
  z-index: -2;
  }

.scroll-down .hidescroll {
  -webkit-transform: translate3d(0, -100%, 0);
}

/*support*/

#support{
 display: grid;
 grid-template-rows: repeat(4, 1fr);
 grid-template-columns: 1fr 4fr;
 z-index: 2; 
 row-gap: 2vh;
}

#support > div:nth-child(1){grid-area: 1 / 1 / 2 / 2}
#support > div:nth-child(3){grid-area: 2 / 1 / 3 / 2}
#support > div:nth-child(5){grid-area: 3 / 1 / 4 / 2}
#support > div:nth-child(7){grid-area: 4 / 1 / 5 / 2}
#support > div:nth-child(2){grid-area: 1 / 2 / 2 / 3}
#support > div:nth-child(4){grid-area: 2 / 2 / 3 / 3}
#support > div:nth-child(6){grid-area: 3 / 2 / 4 / 3}
#support > div:nth-child(8){grid-area: 4 / 2 / 5 / 3}

#support > div > p{
 text-align: left;
 padding-right: 30px;
}

#support > div {
 display:flex;
 align-items: center;
 justify-content: center;
}

/*photo*/
#shoot{
 display: grid;
 grid-template-rows: repeat(8, 1fr);
 grid-template-columns: repeat(3, 1fr);
 z-index: 2;
}

#shoot > div {
 display: flex;
 height: 400px;
 align-items: center;
 justify-content: center;
}

#shoot > div > img{
 width: 90%;
}

#shoot > div > p{
 font-size: 3vh;
 font-weight: bold;
 text-align: center;
 color: #054444;
 padding: 30px;
}

#shoot > div:nth-child(1){grid-area: 1 / 1 / 2 / 2 }
#shoot > div:nth-child(3){grid-area: 2 / 3 / 3 / 4}
#shoot > div:nth-child(5){grid-area: 3 / 1 / 4 / 2}
#shoot > div:nth-child(7){grid-area: 4 / 3 / 5 / 4}
#shoot > div:nth-child(9){grid-area: 5 / 1 / 6 / 2}
#shoot > div:nth-child(11){grid-area: 6 / 3 / 7 / 4}
#shoot > div:nth-child(13){grid-area: 7 / 1 / 8 / 2}
#shoot > div:nth-child(15){grid-area: 8 / 3 / 9 / 4}
#shoot > div:nth-child(2){grid-area: 1 / 2 / 2 / 4; }
#shoot > div:nth-child(4){grid-area: 2 / 1 / 3 / 3}
#shoot > div:nth-child(6){grid-area: 3 / 2 / 4 / 4}
#shoot > div:nth-child(8){grid-area: 4 / 1 / 5 / 3}
#shoot > div:nth-child(10){grid-area: 5 / 2 / 6 / 4}
#shoot > div:nth-child(12){grid-area: 6 / 1 / 7 / 3}
#shoot > div:nth-child(14){grid-area: 7 / 2 / 8 / 4}
#shoot > div:nth-child(16){grid-area: 8 / 1 / 9 / 3}

/*
Organigramme
*/
ol {
  list-style: none;
}


.rectangle {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

  #chartop{
   margin-top: 60px
  }


/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
  width: 40%;
  margin: 0 auto 40px;
  background: var(--darker);
  color: var(--normal);
}

/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  align-items: center;
  padding-top: 2%;
}

.level-2-wrapper li {
  position: relative;
}

.width70, .width100{
 width: 70%;
 margin: 0 auto 40px;
}

.level-2 {
  width: 100%;
  background: var(--normal);
  color: var(--darker);
}

.width70 > a, .width100 > a {
 text-decoration: none;
}

/*
Media queries 
*/
@media screen and (max-width: 1200px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-1,
  .level-2 {
    width: 100%;
    margin: auto;
  }
  
  #chartop{
   margin-top: 60px
  }
  
  .level-2-wrapper{
   width:100%;
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   grid-template-rows: repeat(3, 1fr);
  }

  .width70, .width100 {
   width: 250px;
  }
  
  .w1{grid-area: 1 / 1 / 2 / 2; }
  .w2{grid-area: 1 / 2 / 2 / 3; }
  .w3{grid-area: 2 / 1 / 3 / 2; }
  .w4{grid-area: 2 / 2 / 3 / 3; }
  .w5{grid-area: 3 / 1 / 4 / 3; }
 }

 
 @media screen and (max-width:767.98px) {
  .level-1 {  
   margin: auto;
   width: 100%;
  }
  
  #chartop{
   margin-top: 0px
  }
  
  .level-2-wrapper{
   width:100%;
   display: flex;
   flex-flow: column wrap;
   align-items: center;
   justify-content: center;
   margin: -20px 0px 0px 0px;
  }
  
  .level-2 {
   width: 100%;
  }
  
  .width70{
   width: min(250px);
  }
  
  .width100{
   width: 80%;
  }
  
  .level-2-wrapper > li:not(:first-child) {
    margin-top: -10px
  }
 }

/*
*Small device
**/
@media screen and (max-width:767.98px) {
  .navbar_links { 
    overflow:hidden;
    display:flex;
    flex-direction:column;
    width:0;
    height:calc(100vh - 65px);  
    position:absolute;
    top:80px;
    right:0;     
    background:var(--navbar-bg-color);     
    -webkit-transform: translateX(110%);
    transition: all .5s ease-in-out;
    z-index: 2000;
  }
 
  .navbar {
    padding: 10px;
    background: var(--navbar-bg-color);
  }
  .navbar2 {  /*second nav*/
  display: none;
  }
  .show-nav .navbar_links { 
    width:100vw;    
    -webkit-transform: translateX(0);
  } 
  .navbar_link {
    -webkit-transform: translateX(101%);
    transition: all .5s ease-in-out;
  }
  
  .show-nav .navbar_link  {        
    -webkit-transform: translateX(0);    
  }   
  .navbar_link > a {
    display:block;
    padding:1rem;
    font-size:1.1rem;
    font-weight: bold;
    color:var(--text-color);  
    transition: all .4s ease-in-out;
    border-bottom: 1px solid var(--navbar-bg-color); /*ligne séparant les links*/
    background: var(--navbar-b-color);
  }
  
  .fourth > a {
   border-bottom: 2px solid var(--navbar-color); /*ligne séparant les links*/
  }
  
  .hidePC{
   display: block;
  }
   
  .hideGSM {
    display: none;
  }
   
  .navbar_link > a::after { /*ligne verte en dessous du menu*/
    display:none;
  }
  
  /*menu déroulant*/
  .deroulant > ul{ 
    display: flex;
    position: inherit;
    text-align: center;
    border-radius: 0px;
    background-color: var(--bg-color);
  }
  .deroulant > ul > li{ /*mise en forme élément menu déroulant*/
    border-right: 1px solid var(--navbar-color);
    background-color: var(--navbar-bg-color);
    border-bottom: none;
    padding: 0px 15px 0px 15px;
    width: 50%;
  }
    
  .deroulant > ul > li > a{ /*texte menu déroulant*/
    display: block; /*permet de rendre tout l'élément cliquable*/
  }
  
  .deroulant > ul > .noborder{ /*mise en forme élément menu déroulant*/
    border: none;
  }
  nav > ul li:hover .sous{ /*car sinon apparait en block du format bureau quand on passe la souris*/
    display: flex;
    flex-flow: inherit;
  }
  .navbar_links > .navbar_link > a::after{ /*ligne verte en dessous du menu*/
    display: none;
  }
  
  .sous{
   box-shadow: none; /*sinon apparait partiellement*/
  }
  
  /* Toggle menu */
  .Giant {
    display:block;
    position:relative;
    padding:0;
    width:45px;
    height:45px;
    border:transparent;
    background:transparent;
    cursor:pointer;
  }
  
  .bar {
    display:block;    
    width:45px;
    height:4px;  
    border-radius:3px;
    background:var(--navbar-color); 
    transition: all .5s ease-in-out;
  }
  .bar::before, .bar::after {
    content:"";
    width:45px;
    height:4px;
    position:absolute; 
    left:0;  
    background:var(--navbar-color); 
    border-radius:3px;    
    transition: all .5s ease-in-out;
  }
  .bar::before { /*before permet de placer une barre avant span*/
    -webkit-transform:translateY(-12px);
  }
  .bar::after { /*after permet de placer une barre après span => ce qui fait 3 span!*/
    -webkit-transform:translateY(12px);
  }
  .show-nav .bar {
    width:0;
    background:transparent;    
  }
  .show-nav .bar::before { 
    -webkit-transform:rotate(45deg);
    width: 70%;
    left: 6px;
  }
  .show-nav .bar::after {
    -webkit-transform:rotate(-45deg);
    width: 70%;
    left: 6px;
  }
  
  .show-nav .Giant {
    border: 3px solid var(--navbar-color);
    border-radius: 50%;
    transition: border 0.3s ease-in-out;
    transition-delay: 0.1s;
  }
  
  .zero{
   font-weight: bolder;
   padding-left: 25px;
  }
  
  /*Animations barre navigation */
  .show-nav .zero {      
    transition: all 0.8s linear;
  }   
  .show-nav .first {      
    transition: all 0.8s linear;
  } 
  .show-nav .second {      
    transition: all 0.9s ease-in-out;
  } 
  .show-nav .third {      
    transition: all 1s ease-in-out;
  } 
  .show-nav .fourth {      
    transition: all 1.1s ease-in-out;
  } 
  .show-nav .fifth {      
    transition: all 1.2s ease-in-out;
  }
  .show-nav .sixth {      
    transition: all 1.3s ease-in-out;
  }
  .show-nav .seventh {      
    transition: all 1.4s ease-in-out;
  }
  .show-nav .eighth {      
    transition: all 1.5s ease-in-out;
  }


  /*Titre*/
  #headtitle{
   display: grid;
   grid-template-rows: 150px auto;
   width: 100%;
  }
  
  .main-title{
   margin-top: 0;
   padding: 0px 21px 0px 21px;
   width: 100%;
  }

  /*slideshow*/
  #nav-left, #nav-right{
   display: none;
  }
  
  .slideshow{
   background-color: var(--navbar-bg-color);
  }
  
  .caption{
   top: 40%;
  }
 
  .caption > h1{
   font-size: 1.6rem;
  }
 
  .caption > h2{
   font-size: 1rem;
  }

  .caption > div > a{
   font-size: 0.9rem;
  }

 
 /*section 1 home*/
 #home > #section1{
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 65px repeat(5, 1fr);
  }
 
 
 .G0 > h1{
  font-size: 5vh;
  line-height: 5vh;
 }
  
 .G0{grid-area: 1 / 1 / 2 / 4 }
 .G1{grid-area: 2 / 1 / 3 / 2 }
 .G2{grid-area: 2 / 2 / 3 / 3 }
 .G3{grid-area: 2 / 3 / 3 / 4 }
 .G4{grid-area: 3 / 1 / 4 / 2 }
 .G5{grid-area: 3 / 2 / 4 / 3 }
 .G6{grid-area: 3 / 3 / 4 / 4 }
 .G7{grid-area: 4 / 1 / 5 / 2 }
 .G8{grid-area: 4 / 2 / 5 / 3 }
 .G9{grid-area: 4 / 3 / 5 / 4 }
 .G10{grid-area: 5 / 1 / 6 / 2}
 .G11{grid-area: 5 / 2 / 6 / 3}
 
 #section1 > div {
  display: flex;
  justify-content: center;
 }
 
 #section1 > div > a > img {
  width: 65%;
 }
  
  #section1 > div > p{
   display: none;
  }
  
  #section1 > div > a > h3{
   font-size: 4vh;
  }
  
  .icon{
   font-size: 4vh;
  }
  
  /*section2*/
  
  #textbox{
   grid-template-rows: 1fr 2.5fr 2.5fr;
  }

  #textbox > #titlebox {grid-area: 1 / 1 / 2 / 3; margin-top: -60px}

  #textbox > h2:nth-child(2) {grid-area: 2 / 1 / 3 / 3; align-self: start; margin-top: -60px}
  #textbox > h2:nth-child(3) {grid-area: 3 / 1 / 4 / 3; margin-top: -60px}
  
  #textbox > a > h2:nth-child(2) {grid-area: 2 / 1 / 3 / 3}
  #textbox > a > h2:nth-child(3) {grid-area: 3 / 1 / 4 / 3}

  #textbox > h2{
   font-size: 2.2vh;
  }
  
  #textbox > a > h2{
   font-size: 2.5vh;
  }
  
  #textbox > #titlebox{
   font-size: 5vh;
  }
  
  /*Sections research*/
  #section0R{
   grid-template-columns: 1fr 1fr;
   grid-template-rows: repeat(3, auto);
   align-content: start;
   }
   
   #immuno > #section0R{
   grid-template-columns: 1fr 1fr;
   grid-template-rows: repeat(3, auto);
   align-content: start;
   }
  
  #section0R > div{
   padding: 10px 0px 10px 0px;
   }
  
  .topic0{grid-area: 1 / 1 / 2 / 4; }
  .topic1{grid-area: 2 / 1 / 3 / 2; }
  .topic2{grid-area: 2 / 2 / 3 / 3; }
  .topic3{grid-area: 3 / 1 / 4 / 2; }
  .topic4{grid-area: 3 / 2 / 4 / 3; }
  
  #immuno > #section0R > .topic1{grid-area: 2 / 1 / 3 / 2; }
  #immuno > #section0R > .topic2{grid-area: 2 / 2 / 3 / 3; }
  #immuno > #section0R > .topic3{grid-area: 3 / 1 / 4 / 3; }
  
  #section0R > div > p{
   display: none;
  }
  
  #section0R > div > a > img {
   width: 100px;
  }
  
  #section1R{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 2fr 2fr 1fr;
  align-content: start;
  row-gap: 2vh;
  }
   
  .lab-team > img{
   max-width: 300px;
   text-align: center;
  }
  
  .labdesc > .caption{
   text-align: center;
  }
  
  #captup {
  margin-top: -200px; 
  }
  
  #captupdown {
  margin-top: -200px; 
  }
  
  .labdesc > div > h3{
   padding-left: 20px;
   padding-bottom: 0px;
   font-size: 1.2rem;
  } 
  
  .lab > p{
   padding: 10px;
   font-size: 0.8rem;
   text-align: justify;
  }
  
  #light-duo > .lab > p{
   margin-top: 20px
  }
  
  #section1 > #dark, #section2 > #light, #section3 > #darker, #section5 > #dark{
   padding: 10px 0px 0px 0px;
  }
    
   
  .labdesc > .lab-photo{grid-area: 1 / 1 / 2 / 7; }
  .labdesc > .lab{grid-area: 2 / 1 / 3 / 7;}
  .labdesc > .lab-team{grid-area: 3 / 1 / 4 / 7;
  }
  .labdesc > .lab-photo > img{
   max-width: 20%;
  }
  
  #doubleimg{ /*same as img from lab-photo but double in bacmol*/
   max-width: 25%;
   }
  
  #dark > .lab-photo > img{
   width: 30%;
  }
  
  #darker > .lab-photo > img{
   width: 35%;
  }
  
  .labdesc > .lab-team > a > img{
   width: 60%;
  }
  
  .labdesc > .caption{
   grid-area: 4 / 1 / 5 / 7;
   margin-top: -100px;
  }
 
  #captionR > h1{
   font-size: 4vh;
   margin-right: -10%;
 }

/*
lab-pages
*/

 #section1 > .labdesc{
 grid-template-rows: 1fr 3fr 1fr 3fr;
 }

 #section1R > .labdesc > .labtitle{
 grid-area: 1 / 1 / 2 / 7;
 margin-left: 10%;
 margin-top: 30px;
 padding: 0px;
 }
 
 #section1 > .labdesc > .lab{
  grid-area: 2 / 1 / 3 / 7;
  padding:10px;
  margin:0px;
 }
 
 #section1 > .labdesc > .lab-team{
 grid-area: 3 / 1 / 4 / 7;
 }
 
 #section1 > .labdesc > .caption{
 grid-area: 4 / 1 / 5 / 7;
 }
 
 #section1 > .labdesc > .lab > p{
  font-size: 0.8rem
 }
 
 #light-duo{
  grid-template-rows: minmax(100px, auto) 1fr 1fr 1fr;
 }
 
 #light-duo > div:nth-child(1){
  grid-area: 1 / 1 / 2 / 7;
  margin-left: 10%;
  }
  
  #light-duo > .lab-photo > img{
   min-width: 70%;
  }
  
 #light-duo > div:nth-child(2){
  grid-area: 2 / 1 / 3 / 3;
  padding: 5px;
  display: flex;
  align-items: center;
 }
 
 
 #light-duo > div:nth-child(4){
  grid-area: 3 / 1 / 4 / 3;
  padding: 5px;
  display: flex;
  align-items: center;
 }
 
 #light-duo > div:nth-child(3){
  grid-area: 2 / 3 / 3 / 7;
  padding: 0px 5px 0px 5px;
  margin-top: -15px;
  align-self: center;
 }
 #light-duo > div:nth-child(5){
  grid-area: 3 / 3 / 4 / 7;
  padding: 0px 5px 0px 5px;
  margin-top: -15px;
  align-items: center;
 }
 
 #light-duo > div:nth-child(6){
  grid-area: 4 / 1 / 5 / 7;
  margin-top: 0px;
  }
  
 #dark > .labtitle{
  grid-area: 1 / 1 / 2 / 2;
  margin-left: 10%;
 }
 .publist{grid-area: 2 / 1 / 3 / 7;}
 
 /*
 publications
 */
 
 #publi > #section0R{
 display: grid;
 grid-template-rows: 50px minmax(180px, auto) 1fr;
 }
 
 #pdf > #section0R{
 display: grid;
 grid-template-rows: 50px minmax(80px, auto) 1fr;
 }
 
  
 /*hidescroll*/
  .hidescroll{
  position: inherit;
  }
 
  .scroll-down .hidescroll {
  -webkit-transform: inherit;
  }
 
 /*scroll size*/
 
  .container {
  height: calc(100vh - 60px);
  }
 
  .container .snapscroll {
  height: calc(100vh - 60px);
  }
  
  /*labmembers*/

  #section0R > #labmembers > p{
   display: inherit;
  }
  
  #labmembers > *{
   text-align: center;
   font-size: 1.8vh;
   line-height: 2.2vh;
  }
  
  #labmembers{
   margin-top: -40px;
   margin-bottom: 40px;
  }
  
  /*support*/
  #support{
   display: grid;
   grid-template-rows: repeat(8, 1fr);
   grid-template-columns: 1fr;
  }

  #support > div:nth-child(1){grid-area: 1 / 1 / 2 / 2}
  #support > div:nth-child(3){grid-area: 3 / 1 / 4 / 2}
  #support > div:nth-child(5){grid-area: 5 / 1 / 6 / 2}
  #support > div:nth-child(7){grid-area: 7 / 1 / 8 / 2}
  #support > div:nth-child(2){grid-area: 2 / 1 / 3 / 2}
  #support > div:nth-child(4){grid-area: 4 / 1 / 5 / 2}
  #support > div:nth-child(6){grid-area: 6 / 1 / 7 / 2}
  #support > div:nth-child(8){grid-area: 8 / 1 / 9 / 2}
  
  #support > div > p{
   text-align: center;
   padding: 0px 10px 0px 10px;
  }
  
  /*photo*/
 #shoot{
 display: grid;
 grid-template-rows: auto;
 grid-template-columns: 1fr;
}

#shoot > div {
 display: flex;
 height: inherit;
 align-items: center;
 justify-content: center;
}

#shoot > div > img{
 width: 70%;
}

#shoot > .capshoot > p{
 font-size: 1rem;
 font-weight: bold;
 text-align: center;
 padding: 30px;
}

#shoot > div:nth-child(1){grid-area: 1 / 1 / 2 / 2; margin-top: -60px }
#shoot > div:nth-child(3){grid-area: 3 / 1 / 4 / 2}
#shoot > div:nth-child(5){grid-area: 5 / 1 / 6 / 2}
#shoot > div:nth-child(7){grid-area: 7 / 1 / 8 / 2}
#shoot > div:nth-child(9){grid-area: 9 / 1 / 10 / 2}
#shoot > div:nth-child(11){grid-area: 11 / 1 / 12 / 2}
#shoot > div:nth-child(13){grid-area: 13 / 1 / 14 / 2}
#shoot > div:nth-child(15){grid-area: 15 / 1 / 16 / 2}
#shoot > div:nth-child(2){grid-area: 2 / 1 / 3 / 2}
#shoot > div:nth-child(4){grid-area: 4 / 1 / 5 / 2}
#shoot > div:nth-child(6){grid-area: 6 / 1 / 7 / 2}
#shoot > div:nth-child(8){grid-area: 8 / 1 / 9 / 2}
#shoot > div:nth-child(10){grid-area: 10 / 1 / 11 / 2}
#shoot > div:nth-child(12){grid-area: 12 / 1 / 13 / 2}
#shoot > div:nth-child(14){grid-area: 14 / 1 / 15 / 2}
#shoot > div:nth-child(16){grid-area: 16 / 1 / 17 / 2}
 } 

/*  Medium device - Bonus */
@media screen and (min-width:768px) and (max-width:980px) {
  .navbar_link > a::after { /*ligne verte en dessous du menu*/
    display:block;
    content:"";
    width:0;
    height:1px;
    background:var(--navbar-color);
    transition:width .4s;
  }
    
  .navbar_link:hover > a::after {
   width:100%;
  }
  
  .caption > div{ /*more info box*/
   margin-top: 20px;
   margin-left: auto;
   margin-right: auto;
   width: auto;
  }
  
 .hideMed {
  display: none;
 }
  
  /*section0R*/
 #captionR > h1{
  font-size: 4.5vh;
 }
  /*section 1*/
 .icon{
  font-size: 4rem;
  color: var(--bg-color);
 }
 
 #section1 > div > a > img{
  width: 80%;
 }
 
 /*photo*/
 #shoot > .capshoot > p{
 font-size: 1.2rem;
}

#shoot > div {
 height: 200px;
}

/*mode portrait*/
@media (max-height: 500px) {
  .main-title{
   margin-top: 45px;
  }
  #headtitle{
   grid-template-rows: 110px 45px auto; /*réduction taille titre*/
  }
}



