@font-face {
  font-family: "es";
  src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;    font-weight: normal;

}
@font-face {
  font-family: "es";
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;    font-weight: normal;

}
body{
  width: auto;
  height: calc(100vh - 16px);
  padding: 8px; margin: 0;
  overflow: hidden;
}
section{
  margin-top: 1vh;
  height: 32vh;
  width: 60vw;
  overflow: auto;
  padding: 10px;
}
html{
  font-size: calc(16px);  overflow: hidden;

}
@media (prefers-color-scheme: light){
  :root {

    --background: #fec53d;
    --black: #841111;
    --hilight: #ff3c01;
    --hilight2: #055bff;
-webkit-text-stroke: 0.1px;  }
}
@media (prefers-color-scheme: dark){

:root {
  --background: #10215f;
  --black: #ffd478;
  --hilight: #f22b46;
  --hilight2: #ff7800;

}
}

a{  letter-spacing: 0em;}

.projets a, .link, a{
  color:var(--hilight2);
  text-decoration: underline var(--hilight2);
  letter-spacing: 0.0em;
  transition: letter-spacing 0.3s ease;
}
.projets a:hover, .link:hover, a:hover{
  letter-spacing: 0.06em;
}
.projets a:visited, .link:visited{
  color: var(--hilight2);
  text-decoration: underline var(--hilight2);
}

html{
  background-color: var(--background);
  cursor:crosshair;
  scrollbar-width: none; /* Firefox */
-ms-overflow-style: none;  /* Internet Explorer 10+ */
overflow:auto;
}




html::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

nav{z-index: 13;
  position: fixed;
  padding-bottom: 0.3%;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  bottom: 0;}

  #flowtext {
    user-select: none;
    position: absolute;
    top: 0%;
    left: 0%;
    margin-top: 0px;
    padding: 0.5%;
    width: 100%;
    height: 94%;
    text-align: center;
    line-height: 82%;
    color: var(--hilight);
    font-family: "es",serif;
    font-size: 16.5vh;
    scrollbar-width: none;
    hyphens: none;
    opacity: 70%;
    animation: backgroundtext 120s infinite;
  }

@keyframes backgroundtext{
  0%{
    filter:blur(40px);
  }
  50%{
    filter:blur(2px);
  }
  80%{
    filter:blur(2px);
  }
  100%{
    filter:blur(40px);
  }
}

nav a{
  font-family: "es", serif;
  font-style: normal;
  color: var(--black);
  font-size: 4.1em;
  text-decoration: none;
  letter-spacing: 0.0em;
  transition: letter-spacing 0.3s ease;
  -webkit-touch-callout:auto; /* iOS Safari */
      -webkit-user-select:auto; /* Safari */
       -khtml-user-select:auto; /* Konqueror HTML */
         -moz-user-select:auto; /* Old versions of Firefox */
          -ms-user-select:auto; /* Internet Explorer/Edge */
              user-select:auto; /* Non-prefixed version, currently*/

}

header .unstyle{
}
header .unstyle:hover{
letter-spacing: 0.0em;
text-decoration: none;
}
nav a:hover{
letter-spacing: 0.06em;
text-decoration: underline;
}
.projets{
  position: fixed;
  left: 0.5%;
  top: 1.2%;
    height: 95.8%;
  width: 100%;
  overflow: scroll;
  scrollbar-width: none; /* Firefox */
-ms-overflow-style: none;  /* Internet Explorer 10+ */
-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}
.projets::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}
.projets details br{
  display: none;
}
.projets details[open] br{
  display: block;
}
.projets details{
  position: relative;
  margin-top: 0.1em;
  margin-left: 0.5%;
  margin-right: 0px;
  text-align: left;
  color: var(--black);
  font-family: "es", serif;
  font-size: 1.7em;
  margin-bottom: 0.1em;
  height: 1em;
  width: 42%;
  transition: height 0.2s ease;
  transition: font-size 0.2s ease;
}

.projets details:hover{
  cursor: pointer;
}


.projets details summary i{
  color : var(--hilight);

}
.projets details summary {
  letter-spacing: 0em;
  transition: all 0.3s ease;

}
.projets details summary:hover {
  letter-spacing: 0.04em;
  transition: all 0.3s ease;


}
.projets details summary::marker{
content:"";
}

.projets details summary::-webkit-details-marker {   display:none; }
.projets details[open] {
   height: auto;
   text-align: left;
   font-size: 1.7em;
   line-height: 110%;
 }
 .projets details[open] summary{
    font-size: 1.75em;
    line-height: 105%;

  }

.projets details .images{
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 38%;
  top: 1.5%;
  right: 0.5%;
  overflow-y: scroll;
  height: 100%;
  scrollbar-width: none;
}
.projets details .images:first-child{
  display: flex;
}
.projets details .images img{
  position: relative;
  margin-top: 1%;
  flex: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.projets details .images iframe{
  transform: scale(0.5,0.5);
  width: 199%;
  position: absolute;
  height: 82%;
  margin-top: -30%;
  margin-inline-end: auto;
  align-self: center;

}

.projets details .images::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}


p em{
  color: var(--hilight);
  font-weight: normal;
  font-style: normal;
}


p{
        position: absolute;
        top: 1%;
        left: 1%;
        margin-top: 0px;
        padding: 0.5%;
        width: 80%;
        height: auto;
        overflow-y: scroll;
        overflow-x: none;
        text-align: left;
        line-height: 90%;
        color: var(--black);
        font-family: "es", serif;
        font-size: 3em;
        hyphens: auto;
        scrollbar-width: none;
-ms-overflow-style: none;  /* Internet Explorer 10+ */   }

p::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

h4{
  color: var(--black);
  font-weight: normal;
  font-family:"es", serif;
  font-size: 0.8em;
  margin: 0px;
  position: fixed;
  bottom: 1%;
  right:1%;
}


em:first
em span{
  vertical-align: -0.125em;
}
.columns{
  column-fill: auto;
  columns: 18em auto;
  position: absolute;
  top: 1%;
  left: 10px;
  width: auto;
  height: 86%;
  overflow-x: visible;
  text-align: left;
  line-height: 129%;
  color: var(--black);
  font-family: "es", serif;
  font-size: 1.7em;  right: 10px;
}
/*Homepage*/
h2{
  font-weight: normal;
  font-family:"es", serif;
  font-size: 3.6em;
  color:var(--hilight);
  margin:0px;
  line-height: 97%;
}
h2 em{
  color:var(--black);
  font-style: normal;
}
li::marker{
  content:"⁕ ";
  color:var(--hilight);
  font-size: 3vh;
}
li i{
  color:var(--hilight);
  font-style: normal;
}
li a{
  text-decoration: underline;
  color:var(--hilight2);
}
ul{
  color:var(--black);
  font-size: 3.2vh;
  position: relative;
  margin:0% 1%;
  padding: 0px;
  font-family: "es",serif;
  line-height: 98%;
}
.home{
  line-height: 120%;
  color:var(--black);
  font-size: 1.7em;
  position: relative;
  margin: 1% 0% 0.5% 0%;
  padding: 0px;
  left:0px;
  top:0px;
  height:auto;
  overflow: visible;
}
.resume{
  color:var(--hilight);
  margin: 0% 0% 0.5% 0%;

}
sup a{
  text-decoration: none;
  color:var(--hilight2);
}
.home sup{
  color:var(--black);
  font-size: inherit;
}
h5{
  font-family: "es", serif;
  font-style: normal;
  color: var(--black);
  font-size: 3.1em;
  margin: 0;
  padding: 0;
}
/* ------------------------------------- PHONE --------------------------------------------------------------------*/
@media screen and (max-width: 500px) {
  .lastul {
    margin-bottom: 20%;
  }
  .columns{
    columns: 1;
    width :90%;
    left: 5%;overflow-y: scroll;
    overflow-x: none;
    height: auto;
    padding-bottom: 25%;
    padding-top: 5%;
  }
  #flowtext{
    user-select: none;
    position: absolute;
    top: 1%;
    left: 1%;
    margin-top: 0px;
    padding: 0.5%;
    width: 35%;
    height: auto;
    overflow-y: scroll;
    overflow-x: none;
    text-align: left;
    line-height: 106%;
    color: var(--black);
    font-family: serif;
    font-size: 1.3em;
    scrollbar-width: none;
  hyphens: none;
  display:none;
  }
  nav{
    background-color: var(--background);
    z-index: 1;
    position: fixed;
    left: 0%;
    bottom: 0%;
    margin-bottom: 0%;
    padding-bottom: 2%;
    width: 96%;
    height: auto;
    display: flex;
    justify-content: space-between;
    padding-left: 2%;}

  nav a{
    font-family:"es", serif;
    font-style:normal;
    color:var(--black);
    font-size: 1.8em;
    text-decoration: none;
  }

  .projets{    padding-bottom: 25%;

    position: fixed;
    right: 1%;
    top: 1%;
    height: 95.8%;
    width: 98%;
    overflow: scroll;
    scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  }
  .projets::-webkit-scrollbar { /* WebKit */
      width: 0;
      height: 0;
  }
  .projets details{
    position: relative;
    margin: 0px;
    margin-top: 1vh;
    text-align: center;
    color : var(--black);
    font-family: "es", serif;
    font-size: 0.95em;
    margin-bottom: 0.5em;
    height: 1.8vh;
    width: 100%;
    transition: height 0.2s ease;
    transition: font-size 0.2s ease;
  }



  .projets details summary i{
    color : var(--hilight);

  }

  .projets details summary::marker{
  content:"";
  }

  .projets details[open] {
     height: auto;
     text-align: center;
     font-size: 1.2em;
     line-height: 110%;
   }
   .projets details[open] summary{
      font-size: 1.2em;
      line-height: 105%;

    }

  .projets details .images{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    right: 0%;
    margin-top: 0.5%;
    overflow-y: scroll;
    height: 94%;  scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
  }
  .projets details .images img{
    position: relative;
    margin-top: 1%;
    flex: auto;
  width: 100%;
    height: auto;

  }
  .projets details .images iframe{
    display: none;

  }
  .projets details .images::-webkit-scrollbar { /* WebKit */
      width: 0;
      height: 0;
  }




  p{
    position: absolute;
    top: 1%;
    left:1%;
    margin-top: 0px;
    padding: 0%;
    width:100%;
    height: auto;
    overflow-y: scroll;
    overflow-x: none;
    text-align: center;
    line-height: 105%;
    color: var(--black);
    font-family:"es", serif;
    font-size: 1.7em;
    hyphens: auto;
    scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */   }

  p::-webkit-scrollbar { /* WebKit */
      width: 0;
      height: 0;
  }

  h4{
    background-color: var(--background);
    color: var(--black);
    font-weight: normal;
    font-family:"es", serif;
    font-size: 0.7em;
    margin: 0px;
    padding-top: 0.4em;
    padding-left: 1em;
    position: fixed;
    bottom: 1%;
    width: 100%;
    text-align: center;
  }
/*Homepage*/
h2{
  font-weight: normal;
  font-family:"es", serif;
  font-size: 3em;
  text-align: center;
  color:var(--hilight);
  margin:0px;
  line-height: 97%;
}
h2 em{
  color:var(--black);
  font-style: normal;
}
li::marker{
  content:"⁕ ";
  color:var(--hilight);
  font-size: 3vh;
}
li i{
  color:var(--hilight2);
}
li a{
  text-decoration: none;
  color:var(--hilight2);
}
ul{
  color:var(--black);
  font-size: 3.2vh;
  position: relative;
  margin:0% 2.5vw;
  padding: 0px;
  font-family: "es",serif;
  line-height: 98%;
}
.home{
  margin: 2% 0%;
  text-align: left;
}
}

@media print{
  @page {
    size: a4 landscape;
    margin:0px auto;
  }
  nav{
    display:none;
  }

  #flowtext{
    display: none;
  }

  .projets details{
    display: block;
    margin-top: 4mm;
    margin-left: 4mm;
    width: 293mm;
    text-align: left;
    color: var(--black);
    font-family: "es", serif;
    font-size: 12pt;
    height: 206mm;
    width: auto;
    break-inside: avoid-page;
    break-after: always;
    }

  .projets details .images{
    position: relative;
    break-inside: avoid-page;
    display: grid;
    width: auto;
    margin-top: 2mm;
    left:auto;
    height: 17cm;
    grid-template-rows: minmax(33%,100%) repeat(auto-fit, minmax(57%,1fr));
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    grid-auto-flow: dense row;
    row-gap: 5mm;
    column-gap: 5mm;
    scrollbar-width: none;
    overflow-y: hidden;
    align-items: start; 
    justify-items: start;
    }

  .projets{
    position: relative;

      height: auto;
    width: auto;
    overflow: scroll;
    scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
  }
  .projets details[open] {
    height: auto;
    text-align: left;
    font-size: 12pt;
    line-height: 110%;
  }


  .projets details[open] summary{
    font-size: 20pt;
    line-height: 110%;
    height: 10%;
    display: inline-block;
  }


  .projets details[open] br{
    display:initial;
  }

  .projets details .images img{
    /*border: 2px dashed orange;*/
    object-fit:cover;
    position: inherit;
    grid-column: auto;
    grid-row:auto;
    margin-top: 0px;
    max-width: 100%;
    width: auto;
    max-height: 100%;
    justify-self: start;
  }
  .hide-print{
    display: none!important;
  }

  #frutos, #tueuse{
    grid-template-columns: 10.5cm 14cm;
  grid-template-rows: 8cm 8cm;
  }

  #mue{
    grid-template-columns: 48% 50%;
    grid-template-rows: 8cm 8cm;

  }

  .big-left{
    grid-row: span 2 !important;
  grid-column: span 2!important;
  height: 100%!important;
  }
  .col-span-two{
    grid-column: span 2!important;
  }
  .row-span-two{
    grid-row: span 2!important;
  }

  #aboensis{
    grid-template-rows: 8.25cm 8.25cm;
    grid-template-columns: repeat(auto-fit, minmax(5cm, 1fr));
  }
  #magnmanif{
    grid-template-columns: 45% auto;
  }
  :is(#lure, #controverses, #nuits) img{
    width:100%;
  }
  :is(#tueuse, #syowa) img{
    height:100%;
  }
}
