/* roots */ 
:root{
--bleu : #0050cf;
--lavende : #b1b7da;
--sable : #ab7a32;
--pierre-bleu : #0c3055;
--brique : #be4b4b;
--pollen: #d2d11d;
--chloro : #7ba800;
--ciel : #c9ecfd;

  font-family:'YoungSerif-Regular';
  
  font-size:20px;
  line-height:20px;
}
svg {
  position: absolute;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover !important;
  height: 100vh;
}
#body-background{
  filter: url(#aquatique);
  position: fixed;
  min-height: 100vh;
  top: 0;
  left: 0;
  z-index: -10;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: cover;
}



/* passer au contenu principal */
#skiplink {
  position: absolute;
  padding: 6px;
  position: absolute;
  top: -40px;
  left: 0px;
  -webkit-transition: top .05s ease-in;
  transition: top .05s ease-in;
}
  #skiplink:focus {
    position: absolute;
    left: 0px;
    top: 0px; 
    color: var(--pierre-bleu);
    background-color: var(--lavende);
  }

  html{overflow-y: hidden;}

/* tabs / onglets  */
.tabs {
  position:relative;
  display:block;
  width:100%;
}

nav, 
.heading,
.content {
	width: 100%;
  width: 96vw;
}


#container{height:100%;padding-top: 1vh;}

.content {
  width: 100%;
  display: block;
  border-radius: .15em;
  border-top: .2em solid var(--lavende);
}


  nav  >  a:first-of-type::before {
    background:var(--bleu);
    }

  .heading > a:first-of-type::before {
      background: transparent;
      }
    

nav, .heading {
	position: relative;
	z-index: 998;

  & > a {
  	position: relative;
    font-family:fairfax;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 1.2px;
    width: fit-content;
  	display: inline-block;
  	padding: 0.5em 2em 0.1em;
  	color: var(--lavende);
  	margin: 0 -.3em;
    line-height:1em;
  }
  a:hover{
    color: var(--pierre-bleu);
  }

  & > a::before {
  	border: .1em dotted var(--lavende);
  }
   
 
        a.navigation:first-of-type:hover::before {
          background: var(--lavende);
        }
  
  a.navigation:nth-of-type(2)::before { 
      background: var(--sable);
    }

      a.navigation:nth-of-type(2):hover::before { 
          background: var(--pollen);
        }
  a.navigation:nth-of-type(3)::before {
      background: var(--pierre-bleu);
    }
      a.navigation:nth-of-type(3):hover::before {
        background: var(--ciel);
      }

 /* a:nth-of-type(4)::before {
      background: var(--lavende);
    }
      a:nth-of-type(4):hover::before {
        background: var(--lavende);
      }*/
}

nav {
  a:before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    border-bottom: none !important;
    border-radius: 0.4em 0.4em 0 0;
  }
}

.heading {
  a:before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    border-bottom: none !important;
    border-radius: 0.4em 0.4em 0 0;
  }
}

nav  a.active {
  z-index: 2;
  color:var(--noir);

  &:first-of-type::before {
  	background-color: var(--lavende);
  	margin-bottom: -.05em;
  }
  &:nth-of-type(2)::before {
  	background-color: var(--pollen);
  	margin-bottom:  -.05em;
  }
  &:nth-of-type(3)::before {
  	background-color: var(--ciel);
  	margin-bottom: -.05em;
  }
}


.tab-left-right {
  padding: 0 2vw;
  width: 98vw;
  height: 3.5vh;
  display: flex;
  align-items: flex-end;

  nav, .heading   { padding-left: 1.3em;}
  nav   a::before, .heading a::before { transform-origin: bottom; }
}



/*_______________________*/
/* CONTENT 1
*
*  Page projet   
*
/*_______________________*/

.tabulation-nomenclature{
  display: grid;
  grid-template-columns: 0.15fr 1.2fr 0.8fr 1fr 0.6fr 0.4fr;
  border-top: var(--lavende) 0.1em dotted;
  border-bottom: var(--lavende) solid 1px;
  min-height: 1.25em;
  margin: 0.25em 0;
  line-height: 1.15em;
  grid-column: 1/3;
  font-family: 'YoungSerif-Regular';
  color:var(--lavende);
}

.tabulation-nomenclature.titre-projet{
  color: var(--pierre-bleu);
  border-top: var(--pierre-bleu) 0.1em dotted;
  border-bottom: var(--pierre-bleu) solid 1px;
  height: fit-content;
}

.display-projet {
  grid-column: 1/3;
  grid-row: 2;
  font-size: 4em;
  font-family: 'YoungSerif-Bold';
  color: var(--pierre-bleu);
  display: block;
  position: relative;
  text-align: center;
  line-height: 0.8em;
  height: 7vh;
  border-bottom: var(--pierre-bleu) solid 1px;
}

.tabulation-nomenclature.titre-projet > span.desk:nth-child(5){ color: var(--pierre-bleu);}
 
.tabulation-projet {
  display: grid;
  grid-template-columns: 0.15fr 1.2fr 0.8fr 1fr 0.6fr 0.4fr;
  border-top: var(--lavende) 0.1em dotted;
  border-bottom: var(--lavende) solid 1px;
  min-height: 1.25em;
  margin: 0.25em 0;
  line-height: 1.15em;

  grid-column: 1/3;
  font-family: 'YoungSerif-Regular';
}

.tabulation-projet img{
  display:none;
}

a.projet-link {
  text-decoration:none;
  color: var(--lavende);
}

a.projet-link:hover {
  text-decoration:none;
  color: var(--pierre-bleu);
}
  a.projet-link:hover >.tabulation-projet > span.desk:nth-child(5){
    background-color:var(--pierre-bleu);
  }


/*___________________*/
.tabulation-nomenclature, .tabulation-projet{
& > p:nth-child(1){
  grid-column:1;
  font-family: Fairfax;
}

p:nth-child(2){
  grid-column:2;
  text-align:center;
}

p:nth-child(3){
  grid-column:3;
}

p:nth-child(4){
  grid-column:4;
}

p:nth-child(5){
  grid-column:5;
  text-align:center;
  border-radius: 0.5em;
  background-color: var(--lavende);
  color: var(--bleu);
  margin: 2px 2px;
  height: 1em;
}

p:nth-child(6){
  grid-column:6;
  text-align:center;
}
}

span.mob{
  display: none;
}



/*_______________________*/
/* CONTENT 2
/*_______________________*/

#dessins{
  display:flex;
  flex-direction:row;
  justify-content:flex-start;
  align-items: flex-start;
  align-content:flex-start;
  gap: 10px;
  flex-wrap:wrap;
  padding: 2vw;
}
.dessin{
  cursor: pointer;
  display:flex;
  max-height: 200px;
  max-width: 150px;
  background-color:var(--sable);
  filter: brightness(77%) grayscale(100%) contrast(2979%) grayscale(100%) invert(47%) sepia(43%) saturate(664.3%) hue-rotate(356deg) brightness(100%);
 }
.dessin:hover {
  filter: none;
}
.dessin.open{
  max-width: 800px;
  max-height:max-content;
  filter: none;
}

.categorie{
  font-family: Piacevoli;
  max-width:300px;
  font-size: 2rem;
  text-transform: uppercase;
}
.categorie::first-letter {
  font-size: 200%;
}

/*_______________________*/
/* EXPO.PHP
/*_______________________*/


#expositions{ padding: 0 2vw;}

#expositions-menu {
  height: 0vh;
  width: 80.2vw;
  margin: 0;
  transition: height 2s;
  padding: 0 2.1vw;
  margin: 0 -2.1vw;
  overflow: hidden;
  background-color: var(--lavende);
  position: absolute;
  z-index: 999;
}
nav a:nth-child(1):hover ~ #expositions-menu{height: auto;}

#expositions-menu > a.projet-link, #expositions-menu > .tabulation-nomenclature {color: black;}
  #expositions-menu > a.projet-link > .tabulation-projet, #expositions-menu > .tabulation-nomenclature{
      border-top: black 0.1em dotted;
      border-bottom: black solid 1px;
  }

#expositions-menu:hover {
  height: auto;
}

#exposition, #apropos{
  display: grid;
  grid-template-columns: minmax(400px, 1fr) 1.75fr;
  grid-column-gap: 2em;
  padding: 0 2vw;
  height: 92vh;
  
  overflow-y: scroll;
  scrollbar-color:var(--bleu) var(--lavende);
  scrollbar-width: thin;
}
  /* safari fix */
  #exposition::-webkit-scrollbar, #apropos::-webkit-scrollbar{
    background-color: var(--lavende);
  }
  #exposition::-webkit-scrollbar-thumb, #apropos::-webkit-scrollbar-thumb{
    background-color: var(--bleu);
  }

#dessins{
  height: 93vh;
  overflow-y: scroll;
  scrollbar-color:var(--bleu) var(--lavende);
  scrollbar-width: thin;
}
  /* safari fix */
  #dessins::-webkit-scrollbar{
    background-color: var(--lavende);
  }
  #dessins::-webkit-scrollbar-thumb{
    background-color: var(--bleu);
  }

#exposition{
  background-color: var(--lavende);
}


/* structure */

.colonne-gauche{
  grid-column:1/2;
  grid-row: 3;
}
.colonne-droite{
  grid-column: 2/3;
  grid-row: 3;
  height: inherit;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  align-content: flex-start;
  gap: 0px;
  flex-wrap: wrap;
  width: auto;
  z-index: 990;

}


/* mise en page du texte */
.bloc-texte{
/*  font-size:0.8em;
  padding:1em 2em;*/
}

h1{  
  text-align:left;
  font-size:1em;
  text-indent: 3em;
  padding:0 0 2em 0;
  font-family: 'YoungSerif-Regular';
}
.chapeau{
  text-align: left;
  font-size: 1.1em;
  text-indent: 3em;
  font-family:'YoungSerif-Regular';
  line-height: 1.09em;
  font-weight: lighter;
}
.paragraphe{
  font-family: 'YoungSerif-Regular';
  text-align: justify;
  text-justify: distribute;
  font-size: 0.8em;
  padding: 1em 12% 0 0;
  line-height: 1.15em;
  text-indent: 3em;
}

.paragraphe a{
  color: var(--pierre-bleu);
  text-decoration-thickness: 1px;
}
.paragraphe a:hover{
  text-decoration: none;
}

.paragraphe a::after{

  font-family: 'FairfaxHD';
  content:"\2924";
}

.paragraphe em{
  font-family: 'YoungSerif-RegularItalic';
  font-style: normal;
}


/* grille d'image */
img {
  width: 100%;
}

.picture{ /* img */
  display:block;
  grid-column: 1;
  grid-row: 1;
  mix-blend-mode: multiply;
  filter: brightness(2) contrast(1) grayscale(1);
}

.picture.visible {
  mix-blend-mode: normal;
  filter: none;
}

.pixbox{

}

.pic-full {
  flex-grow: 4; /* default 0 */
  display: grid;
}
.pic-demi {
    flex-grow: 1; /* default 0 */
    width:50%;
    height: fit-content;
    display: grid;
}

/* p description sous l'image */
.img_description {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  font-family: fairfax;
  align-self: end;
  color:var(--lavende);
  font-size: 0.8em;
  padding: 0 0.5em;
  line-height: 1.2em;
  mix-blend-mode: luminosity;
}



/*________________________________________________________________
* VERSION ORDINATEUR & LARGE SCREEN
*
*_________________________________________________________________
*/

@media only screen and (min-width: 1440px) {
   #expositions, #exposition, #apropos, .tab-left-right {
    padding: 0 10vw;
  }

  #dessins{
    padding: 2vw 10vw;
  }

 nav, .heading, .content {width: 100%;}
}

/*________________________________________________________________
* VERSION MOBILE
*
*_________________________________________________________________
*/

@media only screen and (max-width: 900px) {
  #exposition, #apropos, #dessins {
    grid-template-columns: 1fr;
    overflow-y: scroll;
    grid-column-gap: 0;
    height: 93vh;

    scrollbar-color:var(--bleu) var(--lavende);
    scrollbar-width: thin;
  }


  p:nth-child(5) {
    height: auto;
  }

  .display-projet {
    height: fit-content;
  }

  .colonne-gauche {
    grid-column: 1;
    grid-row: 3;
  }
  .colonne-droite {
    grid-column: 1;
    grid-row: 4;
    padding-left: 0;
    height: fit-content;
    overflow-y: auto;
    padding-top: 2em;
  }
  .tabulation-nomenclature {
    min-height: auto;
  }

  .bloc-texte {
    max-width: 540px;
  }
}


@media only screen and (max-width: 700px) {
:root{
  font-size: 18px;
  }
  nav {
    & a::before {
      width: 85vw;
    }
  }
  nav{
    display: grid;
    grid-template-columns: 1fr;
    height: 10.5vh; /* 3.5vh x 3 titres */
  }
  .heading{height:3.5vh;} /* Titre du site web */

  #exposition, #apropos, #dessins {
    height: 85.5vh; /* 100vh -  (1vh de padding, 13vh  d'onglets) */
  }

  #expositions-menu {
    padding: 0 2.1vw;
    margin: 0 -2.1vw 0 -2vw;
    width: 100vw;
    top: 11vh;
  }

  span.mob{
    display: block;
  }

    .mob img{
      width: auto;
      filter: invert(76%) sepia(37%) saturate(211%) hue-rotate(194deg) brightness(94%) contrast(82%);
    }
   /* p:has(span.mob:nth-child(5)){*/
    p:has(span.mob.date){
      width: auto;
      background-color: transparent;
     /* filter: invert(25%) sepia(75%) saturate(2002%) hue-rotate(203deg) brightness(90%) contrast(119%);*/
    }
  span.desk{
    display: none;
  }

  .tab-left-right {
    height: auto;
  }

  .tabulation-nomenclature {
    grid-template-columns: 0.15fr 1.2fr 0.8fr 1fr 0.6fr 0.4fr;
    display: grid;
  }
}


@media only screen and (max-width: 465px) {
  /* 
  .heading{height:3vh;}


  #exposition, #apropos, #dessins {
    height: 87vh;
  } 
  */
}


