@font-face {
    font-family: 'autopia-regular';
    src: url('../font/autopia-regular-webfont-webfont.ttf');

    src: url('../font/autopia-regular-webfont-webfont.woff2') format('woff2'),
         url('../font/autopia-regular-webfont-webfont.woff') format('woff'),
         url('../font/autopia-regular-webfont-webfont.svg#autopiaregular') format('svg');

    font-weight: normal;
    font-style: normal;

}



@font-face {
    font-family: 'roadizsans-medium';
    src: url('../font/roadizsans-medium-webfont-webfont.ttf');

    src: url('../font/roadizsans-medium-webfont-webfont.woff2') format('woff2'),
         url('../font/roadizsans-medium-webfont-webfont.woff') format('woff'),
         url('../font/roadizsans-medium-webfont-webfont.svg#roadiz_sansmedium') format('svg');

    font-weight: normal;
    font-style: normal;

}




* {
    box-sizing: border-box;
}

body {
  font-family: 'roadizsans-medium';
  margin: 10px 0 0 0;
  color: #ae00ff;
  /*
  pour l'interlignage
  https://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align
*/
    --lineheightNormal: (var(--fm-ascender) + var(--fm-descender) + var(--fm-linegap));
    --contentArea: (var(--lineheightNormal) * var(--computedFontSize));

    --distanceBottom: (var(--fm-descender));
    --distanceTop: (var(--fm-ascender) - var(--fm-capitalHeight));
    --valign: ((var(--distanceBottom) - var(--distanceTop)) * var(--computedFontSize));
    --line-height: 2;
    line-height: calc(((var(--line-height) * var(--capital-height)) - var(--valign)) * 1px);    

/*     font metrics */
    --fm-capitalHeight: 0.68;
    --fm-descender: 0.54;
    --fm-ascender: 1.1;
    --fm-linegap: 0;

/*     desired font-size for capital height */
    --capital-height: 11;

 /*    compute font-size to get capital height eblockquoteual desired font-size */
    --computedFontSize: (var(--capital-height) / var(--fm-capitalHeight));
    font-size: calc(var(--computedFontSize) * 1px);

}

.about{
    line-height: 1.2em;
}


sup{
    font-size: 0.7em;
    line-height: 1em;
}

section.item {
  display: inline-block;
  vertical-align: top;
  max-width:500px;
  width:25%;
  margin: 0px 20px 40px 20px;
  background: white;
  border-top:8px solid #ae00ff;
}


iframe{
    max-width:100%;
}

img{
     max-width:100%;
     max-height: 100%;
}

section .images {
  /*display: flex;
  align-items: center;
  flex-wrap: wrap;*/
}
section.item img, section.item video{
  max-width: 100%;
  height:auto;
  width:auto;
}

/* ---- grille ---- */

nav {
    position: fixed;
    float: left;
    width:15%;
    padding: 30px 0px 30px 30px;

    margin-top: 0;
    z-index: 100;


}

.grid {

    background: white;
    width:85%;
    padding:20px;
    margin-left: 15%;
}


/* clear fix */

.grid:after {
    content: '';
    display: block;
    clear: both;
}

/* ---- KEYWORDS ---- */

.ui-group {
    display: flex;
}

button {
    text-decoration: none;
    outline: none;
    border: none;
}


.button {
    cursor: pointer;
    font-family: 'autopia-regular';
    color: #ae00ff;
    background: white;
    font-size: 50px;
    border: 2px solid #ae00ff;
    display: inline;
    line-height: 100px;
    padding: .1em .5em 0 .5em;
    margin: 10px;
    line-height: 1.5em;
    transition: all .2s ease-in;
}

.button:hover {
    border-radius: 15px;
}

.button:active {
    background-color: #ae00ff;
    color: white;
    border-radius: 15px;
}

.button:active .button-group {
    display: none
}

.button-group {
  display: none;
  position: fixed;
  top: 20px;
  left: 15%;
  padding-top: 40px;
  font-size: 2.2em;
  font-family: 'autopia-regular', serif;
  color: #ae00ff;
  background-color: white;
  margin: 0 0 0 40px;
  width: 80%;
  height: 100vh;
  z-index: 110;
  border-top: 8px solid #ae00ff;
}
.button-group.visible{
  display: block;
}

/* ---- button-group ---- */

.button-group:after {
    content: '';
    display: block;
    clear: both;
}

.button-group .button {
    float: left;
}

.about{
  height: 90vh;
  overflow: auto;
    font-size: 40px;
    font-family: 'autopia-regular', serif;
    margin-top: -8px;
}

/* description*/

h1, h2 {
    font-family: 'autopia-regular', serif;
    font-size: 1.7em;
    text-transform: uppercase;
    font-weight:  normal;
    letter-spacing: 1px;
    margin:0;
    line-height: 1.2em;
    color: #ae00ff;
}

h1 {
    display: inline;
    color: #ae00ff;
    padding: 0.3em 0.3em 0.3em 0.3em;
    border: 2px solid #ae00ff;
    font-size: 2em;
    transition: all 400ms ease;
}

h1:hover{
          border-radius: 15px;
}

h1 a {
    text-decoration: none;

}

h2 {
  margin:10px 0 0 0;
  color: #ae00ff;
}

h3 {
    font-family: 'roadizsans-medium', sans-serif;
    font-size: 1.0em;
    font-weight: normal;
    color: #ae00ff;
}
.trier{
  cursor:pointer;
  transition: all .2s ease-in;
  margin-top: 2px;
  margin-bottom: 2px;

}
.trier:hover{
  padding-left:5px;
}
.filters{
  margin-top: 40px;
}
section ul li {
    list-style-type: none;
    margin: 2px 2px;
    /*background: #ffe99d;*/
}

.meta {
    font-family: monospace;
    padding: 3px;
    border:1px solid #ae00ff;
    color: #ae00ff;
    font-size: 0.8em;
    line-height: 1.2em;
}
a{
  color: #ae00ff;
}
p {
    text-align: left;
    font-family: 'roadizsans-medium', sans-serif;
    font-size: 0.6em;
/*    line-height: 1.3em;*/
    color: #ae00ff;
}

p.unwrap /* bouton version anglaise */ {
    background: none;
    cursor: pointer;
    font-size: 12px;
    width: 90px;
    border-bottom: 2px solid #ae00ff;
}

.chapo{
  font-weight: bold;
  display: block;
  margin-bottom: 1em;

}
.italic{
  font-style: italic;
}


.short-description{
  font-size: 0.9em;
  line-height: 1.4em;



}

.description{
    display: none;

}

 .description.opened {
    display: block;
    color: #ae00ff;
    font-size: 0.9em;
    line-height: 1.4em;
    margin-bottom: 10px;

}

/*footer*/

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    left: 20px;
}

footer {

    line-height: 1.3em;
    text-align: left;
    position: fixed;
    bottom: 30px;
    padding: 0px;
    color: #ae00ff;
}

footer a {
    text-decoration: none;
    color: #ae00ff;
}
