/* FONT FACE */
    @font-face {
      font-family: 'Fira-Sans';
      src: url('../font/FiraSans-Regular.eot?#iefix') format('embedded-opentype'),
           url('../font/FiraSans-Regular.otf') format('opentype');
           font-weight: 400;
           font-style: normal;
    }
    @font-face {
      font-family: 'Fira-Sans';
      src: url('../font/FiraSans-Italic.eot?#iefix') format('embedded-opentype'),
           url('../font/FiraSans-Italic.otf') format('opentype');
           font-weight: 400;
           font-style: italic;
    }
    @font-face {
      font-family: 'Fira-Sans';
      src: url('../font/FiraSans-SemiBold.eot?#iefix') format('embedded-opentype'),
           url('../font/FiraSans-SemiBold.otf') format('opentype');
           font-weight: 600;
           font-style: normal;
    }
    @font-face {
      font-family: 'Fira-Sans';
      src: url('../font/FiraSans-SemiBoldItalic.eot?#iefix') format('embedded-opentype'),
           url('../font/FiraSans-SemiBoldItalic.otf') format('opentype');
           font-weight: 600;
           font-style: italic;
    }
    @font-face {
      font-family: 'Fira-Code';
      src: url('../font/FiraCode-Regular.eot?#iefix') format('embedded-opentype'),
           url('../font/FiraCode-Regular.otf') format('opentype');
           font-weight: 500;
           font-style: italic;
    }

/* GLOBAL */
    :root {
        --fond: #FCFAF8;
        --fond-sombre: #E6E3DF;
        --texte: #1A1A1A;
        --tonique: #2B5FFF;
        --texte-clair: #616161;
        --marge: 20px;
    }
    html {
      scroll-behavior: smooth;
    }
    body {
        overflow-x: clip;
        font: 1em Fira-Sans, sans-serif;
        color: var(--texte);
        background-color: var(--fond);
        margin: var(--marge);
    }
    figcaption {
        font: 0.9em Fira-Code, monospace;
    }
    figure + blockquote, table + blockquote {
        font-size: 0.8em;
        line-height: 120%;
        margin-top: calc(var(--marge)/2);
    }
    blockquote {
        font-style: italic;
    }
    small{
        font: 0.8em Fira-Code, monospace;
    }
    pre{
        background-color: var(--fond-sombre);
        padding: 10px;
        border-radius: 5px;
    }
    table, th, td {
        border: 1px dotted var(--texte-clair);
        border-collapse: collapse;
        padding: 10px;
    }
    th, td {
        width: auto;
    }

    th figure, td figure {
        height: 100%;
        object-fit: contain;
    }
    a {
        color: var(--texte);
        fill: var(--texte);
        text-decoration-style: dotted;
    }
    a:hover{
        color: var(--texte-clair);
        fill: var(--texte-clair);
        text-decoration: none;
    }
    a:active{
        color: var(--tonique);
        fill: var(--tonique);
    }
    img{
        max-width: 100%;
        max-height: 100%;
        pointer-events: none;
        user-select: none;
    }
    hr{
        border-top: 1px dashed var(--texte-clair);
        border-bottom: 1px dashed var(--fond);
        width: 100%;
    }
    .envers{
        transform: rotate(180deg);
    }
    #flecheMenu{
        display: inline-block;
        transition: 250ms;
        padding: var(--marge);
    }
    .noselect { 
        user-select: none;
    }

/* MENU HEADER */
    @media (min-width: 1100px) {
        header {
            position: fixed;
            top: 5%;
            left: 7%;
            z-index: 1;
        }
        #menu{
        display: block !important;
        }
    }
    @media (max-width: 1100px) {
        header{
            padding-left: var(--marge);
            padding-top: calc(var(--marge)/2);
            padding-bottom: calc(var(--marge)*1.5);
            position: relative;
            top: -70px;
        }
        #flecheMenu::after{
        content: "≡";
        }
        .toggleEnvers{
            position: relative;
            top: 90px;
            font-weight: bold;
            font-size: 1.5em;
            text-align: end;
        }
        #menu {
            display: none;
        }
    }
    .logo {
        position: sticky;
        z-index: 2;
    }
    header svg {
        width: 70px;
        height: auto;
        fill: var(--texte);
    }
    header svg:hover {
        fill: var(--texte-clair);
    }
    header svg:active{
        fill: var(--tonique);
    }
    header p {
        font-weight: 500;
        margin-top: 0;
    }
    header ul {
        list-style: none;
        padding-left: 0px;
        line-height: 150%;
        margin-bottom: 20px;
    }
    header a {
        text-decoration: none;
    }
    header .lien-accueil{
        text-decoration: none;
    }
    .liensoc a:after{
        content: '/';
    }
    .liensoc a:last-child:after{
        content: '';
    }
    .liensoc a svg{
        height: 1.2em;
        width: auto;
        position: relative;
        top: 0.2em;
    }

/* CONTAINERS */
    main {
        display: grid;
        grid-template-columns: repeat(6, minmax(5%, 17%));
        grid-template-rows: min-content;
        grid-gap: var(--marge);
        position: relative;
        min-height: 70vh;
    }
    body *{ /*test visuel*/
    /*        border: 1px solid lightgray;*/
    }
    @media (min-width: 1100px) {
        main, footer{
            margin-left: 18%;
            margin-right: 8%;
            margin-top: 10%;
        }
    }
    .bloc {
        padding: var(--marge);
    }
    .bloc-clic:hover {
        opacity: 80%;
    }
    .bloc-clic:active{
        opacity: 80%;
    }
    @media (min-width: 1100px) {
        .bloc-16{
            grid-column: span 1;
        }
        .bloc-33{
            grid-column: span 2;
        }
        .bloc-50{
            grid-column: span 3;
        }
        .bloc-66{
            grid-column: span 4;
        }
        .bloc-100{
            grid-column: span 6;
        }
    }

    @media (max-width: 1100px) {
        .bloc-16{
            grid-column: span 2;
        }
        .bloc-33{
            grid-column: span 3;
        }
        .bloc-50{
            grid-column: span 3;
        }
        .bloc-66{
            grid-column: span 6;
        }
        .bloc-100{
            grid-column: span 6;
        }
    }

    @media (max-width: 600px) {
        .bloc-16{
            grid-column: span 2;
        }
        .bloc-33{
            grid-column: span 6;
        }
        .bloc-50{
            grid-column: span 6;
        }
        .bloc-66{
            grid-column: span 6;
        }
        .bloc-100{
            grid-column: span 6;
        }
    }
    .vide{
        width: 100%; 

        /*motif copié à Edmundo Santos (https://codepen.io/edmundojr/pen/xOYJGw)*/
        --dot-size: 1px;
        --dot-space: 3px;
        background:
            linear-gradient(90deg, var(--fond) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
            linear-gradient(var(--fond) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
            var(--tonique);
        }

/* ACCUEIL */

/*https://leanrada.com/notes/pure-css-halftone/*/
   #effet-halftone{
        position: relative;
        top: calc(var(--marge)*-1);
        left: calc(var(--marge)*-1);
        min-height: 100vh;
        width: 100vw;
        z-index: 2; 
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
   }
   .halftone-dessus {
        position: absolute;
        z-index: 3;
   }
   .halftone-dessus main{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: calc(var(--marge)*3);
        max-height: 80%;
        color: var(--texte)
   }
   @media (max-width: 1100px){
        .halftone-container{
            display: none;
        }
        .halftone-dessus{
            position: relative;
        }
        #effet-halftone{
            height: auto;
            background: center no-repeat url('../background-static.png');
            background-size: cover;
        }
   }
   /*.container pour flou WIP*/ {
        border-radius: 75%;
        padding: 25px;
        /*  The blur-fade effect*/
        &::before {    
            content: '';
            position: absolute;

            /*    should not affect the contents of the container*/
            z-index:-1;

            /*    blur size should be anything below `0`*/
            /*    so it will extend to the outside */
            inset: -50px;

            /*    the backdrop blur */
            /*    -webkit-backdrop-filter: blur(10px);  for safari*/
            backdrop-filter: blur(5px);

            /*    a mask fades the blur effect so it gets weaker*/
            /*    towards the edges, further from the container box.*/
            /*    (fill color is irrelevant, so "red" is used as it's the shortest color name)*/
            mask: 
                linear-gradient(to top, transparent 0%, red 100px calc(100% - 100px), transparent 100%), 
                linear-gradient(to left, transparent 0%, red 100px calc(100% - 100px), transparent 100%);
            -webkit-mask: 
                linear-gradient(to top, transparent 0%, red 100px calc(100% - 100px), transparent 100%), 
                linear-gradient(to left, transparent 0%, red 100px calc(100% - 100px), transparent 100%);

            /*    merges the above multiple gradients (mask) so only the pixels which*/
            /*    overlap both are rendered, and this creates the illusion of a fade-out mask*/
            mask-composite: intersect;
            -webkit-mask-composite: source-in;
            }
        }
   .halftone-contenu{
        height: 101vh;
        width: 100vw;
        background: 
            /*url(https://elielecuyer.fr/photographie/focus/n_089_003.jpg);*/
            radial-gradient(circle at center, var(--fond) 20%, transparent),

            radial-gradient(ellipse at top left, var(--tonique), transparent),
            radial-gradient(ellipse at top right, aqua 1%, var(--tonique) 20%, transparent),
            radial-gradient(ellipse at bottom center, orange 40%, var(--fond));

        background-size: 120% 100%;
        animation: gradient-animation 7s infinite;
    }

    @keyframes gradient-animation {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }
   

   .halftone-container {
        position: absolute;
        --halftone-size: 6px;
        --halftone-bleed: 0.4;
        --halftone-dot-size: calc(var(--halftone-size) * var(--halftone-bleed));
        --halftone-color-dot-size: var(--halftone-dot-size);
        --halftone-separate-k: 1;
        filter: brightness( calc( 0.5 + var(--halftone-bleed) * 0.3 - var(--halftone-separate-k) * 0.02 ) ) blur(calc(var(--halftone-size) * 0.1)) contrast(1000) blur(0.6px);
    }

    .halftone{
        mix-blend-mode: screen;
    }
    .halftone::before, .halftone::after{
        content: "";
        position: absolute;
        inset: -60%;
        background-size: var(--halftone-size) var(--halftone-size);
        background-blend-mode: multiply;
        mix-blend-mode: multiply;
    }
    .halftone::before{
        background-image: radial-gradient( var(--halftone-color-dot-size) at 25% 25%, #ff0, #ff6, #fff ), radial-gradient( var(--halftone-color-dot-size) at 75% 75%, #ff0, #ff6, #fff );
    }
    .halftone::after{
        transform: rotate(calc(-21deg + var(--halftone-rotation))) translateX(calc(var(--halftone-size) * 0.58));
        background-image: radial-gradient( var(--halftone-color-dot-size) at 75% 25%, #f0f, #f6f, #fff ), radial-gradient( var(--halftone-color-dot-size) at 25% 75%, #f0f, #f6f, #fff ), radial-gradient( var(--halftone-color-dot-size) at 75% 75%, #0ff, #6ff, #fff ), radial-gradient( var(--halftone-color-dot-size) at 25% 25%, #0ff, #6ff, #fff );
    }
   .halftone-container-N::after{
        content: "";
        position: absolute;
        inset: -60%;
        background-size: var(--halftone-size) var(--halftone-size);
        background-blend-mode: multiply;
        mix-blend-mode: screen;
        transform: rotate(30deg);
        background-image: radial-gradient( var(--halftone-color-dot-size) at 25% 25%, #000, #666, #ccc, #fff ), radial-gradient(var(--halftone-color-dot-size) at 75% 75%, #000, #fff);
   }


    .accueil-profil{
        text-align: center;
        border-radius: 100%;
    }
    .accueil-profil img{
        max-height: 250px;
        fill-opacity: multiply;
    }
    .accueil-txt{
        margin: auto;
    }
    .bouton-accueil {
        text-decoration: none;
        text-align: center;
    }
    .bouton-accueil svg {
        fill: var(--texte);
        height: 2em;
    }
    .sous-main {
        display: grid;
        grid-template-columns: repeat(6, minmax(5%, 17%));
        grid-gap: var(--marge);
    }
    .sous-main div{
        padding-right: calc(var(--marge)*3);
    }
    @media (min-width: 600px){
        .accueil-txt {
            min-width: 50%;
            max-width: 800px;
            columns: 2;
            column-gap: calc(var(--marge)*3);
        }
        .accueil-txt p{
            margin-top: 0;
        }
        .sous-main{
            padding-top: calc(var(--marge)*3);
        }
    }
    @media (max-width: 600px) {
        .accueil-txt{
            width: 90%;
            font-size: 0.8em;
        }
        .sous-main div{
            padding-right: 0;
        }
        .sous-main{
            padding-top: 0;
        }
    }
    .inline{
        display: flex;
        justify-content: space-between ;
        align-items: baseline;
        padding-bottom: 20px;
        text-decoration: none;
    }
    .inline *{
        margin: 0;
    }
    .bloc-accueil figure{
        margin: 0;
    }
    .bloc-accueil figure a{
        display: grid;
        grid-template-rows: 350px 1fr;
        grid-gap: var(--marge);
        align-items: end;
        text-decoration: none;
    }
    .bloc-accueil h2{
        margin-top: 0;
    }
    .bloc-accueil figcaption{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    @media (max-width: 600px) {
        .bloc-accueil {
            padding-bottom: 10px;
            border-bottom: 1px solid var(--texte);
        }
        .bloc-accueil figure a{
            justify-items: center;
        }
    }

/* BLOG */
    .bloc-blog a{
        grid-template-columns: 130px 3fr 1fr;
    }

    .bloc-blog{
        font-size: 0.9em;
        padding: var(--marge);

    }
    .bloc-blog a{
        display: grid;
        grid-gap: calc(var(--marge)/2);
        text-decoration: none;
    }
    .bloc-blog .img{
        max-height: 130px; 
    }
    .bloc-blog h2{
        margin-top: 0;
        margin-bottom: calc(var(--marge)/4);
        border-bottom: 1px solid var(--texte);
        width: 100%;
    }
    .bloc-blog p{
        overflow: hidden;
        line-height: 1.2em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0;
    }

    .bloc-blog .meta{
        text-align: right;
        font-style: italic;
        color: var(--texte-clair);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    @media (min-width : 1100px){
        .bloc-blog {
            grid-column: span 3;
            grid-column-start: 2;
            grid-column-end: 6;
            min-width: 500px;
        }
        
        .bloc-blog img {

        }
    }
    @media (max-width: 1100px) {
        .bloc-blog {
            grid-column: span 3;
            grid-column-start: 2;
            grid-column-end: 6;
        }
    }
    @media (max-width: 700px) {
        .bloc-blog {
            grid-column: span 6;
            border-bottom: 1px solid var(--texte-clair);
        }
        .bloc-blog a{
            grid-template-columns: 3fr 1fr;
        }
        .bloc-blog .img {
            grid-column: span 4;
        }
        .bloc-blog .img .vide{
            height: 50px;
        }
        .bloc-blog h2{
            border-bottom: 0px solid var(--texte);
        }
    }

/* BLOG ARTICLE */
    .entete {
        display: flex;
    }
    .article, .entete{
        padding: 0;
    }
    @media (min-width: 1100px) {
        .article {
            line-height: 150%;
            font-size: 1.2em;
            max-width: 35em;
        }
        .principal, .article{
            grid-column-start: 2;
            grid-column-end: 5;
        }
        .article-meta, .sidenote, #sidenote-column-right, #sidenote-column-left{
            grid-column-start: 5;
            grid-column-end: 7;
        }

        .entete{
            max-height: 30vh;
            overflow: hidden;
            justify-content: space-between;
            align-items: flex-end;
        }
        .entete img {
            max-width: 50%;
        }
        .separticle{
            grid-column: 2 / 7;
        }
    }
    @media (max-width: 1100px) {
        .article{
            margin-left: auto;
            margin-right: auto;
        }
        .article {
            line-height: 150%;
            font-size: 1em;
            max-width: 35em;
        }
        .entete{
            flex-direction: column-reverse;
            text-align: center;
            grid-column: span 6;
        }
    }
    .titre h1 {
        margin-bottom: 0;
    }
    .titre h3 {
        margin-bottom: 0;
    }
    .entete ul {
        color: var(--texte-clair);
        list-style-type: none;
        padding-left: 0;
        margin-bottom: 0;
    }
    .article figure {
        margin: 0px;
    }
    .article figure img {
        width: 100%;
    }
    article ul {
        list-style-type: "→ ";
    }
    aside {
        color: var(--texte-clair);
        font: 0.8em Fira-Code, monospace;
        line-height: 1.2em;
    }
    article a {
        color: var(--texte-clair);
        text-decoration-style: dotted;
    }
    /* FOOTNOTE & SIDENOTE */
    .footnote-ref{
        text-decoration: none;
    }
    .footnotes{
        font: 0.8em "Fira-sans", sans-serif;
    }
    @media (max-width: 1100px) {
        .footnotes:first-of-type {
            display: grid; !important;
            visibility: visible !important;
        }
        .sidenote{
            display: none !important;
            visibility: hidden !important;
        }
    }
    @media (min-width: 1100px) {
        .footnotes:first-of-type {
            display: none !important;
            visibility: hidden !important;
        }
        .sidenote{
            display: grid; !important;
            visibility: visible !important;
        }
    }
    .sidenote {
        position: absolute;
        padding: var(--marge);
        z-index: 10;
        display: inline-flex;
        flex-flow: row-reverse;
        align-items: baseline;
    }
    .sidenote-self-link{
        text-decoration: none;
    }
    .sidenote-self-link::after{
        content: ".\00a0";
    }
    #sidenote-column-right, #sidenote-column-left {
        position: absolute;
        top: 0;
    }
    #sidenote-column-right {
        right: 0;
        width: 100%;
    }
    #sidenote-column-left {
        left: 0;
        width: 100%;
    }

/* TRAVAUX */
    @media (min-width : 1100px){
        .bloc-travaux {
            grid-column: span 2;
        }
    }
    @media (max-width: 1100px) {
        .bloc-travaux {
            grid-column: span 3;
        }
    }
    @media (max-width: 600px) {
        .bloc-travaux {
            grid-column: span 6;
            justify-self: center;
        }
    }
    .bloc-travaux{
        margin: 0;
        padding: 0;
        padding-bottom: 10px;
        font-size: 0.9em;
        border-bottom: 1px solid var(--texte);
    }
    .bloc-travaux a{
        display: grid;
        grid-template-rows: 250px 1fr;
        grid-gap: calc(var(--marge)/2);
        text-decoration: none;
        align-items: end;
    }

    .bloc-travaux a img {
        object-fit: cover;
        width: 100%;
    }

/* TRAVAIL FICHE */
    .travail-description{
        grid-column: span 6;
        max-width: calc(2 * 25em);
        margin-bottom: 50px;
    }
    .travail-description section{
        columns: 2 20em;
        padding-top: var(--marge);
    }
    .travail-description *{
        margin-top: 0;
    }
    .travail-figure{
        margin: 0;
    }
    .travail-figure img{
        /*max-height: 500px;*/
    }
    @media (max-width: 1100px) {
        .travail-figure{
            text-align: center;
        }
    }

/* PHOTO */ 
    .bloc-photo figure{
        margin: 0;
        padding: 0;
        overflow: hidden;
        align-self: end;
        font-size: 0.9em;
    }
    .bloc-photo-info{
        grid-column: span 6;
        display: grid;
        grid-template-columns: subgrid;
        align-items: baseline;
    }
    .bloc-photo-info *{
        grid-column: span 1;
    }
    .bloc-photo-info p:nth-child(3){
        color: var(--texte-clair);
    }
    @media (min-width : 1100px){
        .bloc-photo {
            grid-column: span 2;
        }
        .bloc-photo figure:nth-child(5n-1){
            display: none;
        }
    }
    @media (max-width: 1100px) {
        .bloc-photo-info *{
            grid-column: span 2;
        }
        .bloc-photo {
            grid-column: span 3;
        }
        .bloc-photo figure{
            margin: calc(var(--marge)/2);
        }
    }
    @media (max-width: 600px) {
        .bloc-photo {
            grid-column: span 6;
            justify-self: center;
        }
    .bloc-photo figure{
        justify-self: center;
    }
    .bloc-photo figure:nth-child(5n-1){
        display: none;
    }
    .bloc-photo figure:nth-child(5n-2){
        display: none;
    }
    }
    .bloc-photo{
        display: grid;
        grid-column: span 6;
        grid-template-columns: subgrid;
        margin-bottom: calc(var(--marge)*2);
        border-bottom: 1px solid var(--texte);
    }
    .bloc-photo img{
        display: block;
    }
    .bloc-photo img{
        max-height: 350px;
        width: auto;
        height: auto;
    }

/* PHOTO CARROUSEL */
    
    .photo-carrousel{
        display: flex;
        flex-direction: row;
        grid-column: span 6;
        height: 75vh;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-left: 20%;
        padding-right: 20%;
    }
    .photo-carrousel-item {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding-left: calc(var(--marge)*2);
        padding-right: calc(var(--marge)*2);
    }
    .photo-carrousel-item *{
        margin: 0;
    }
    .photo-carrousel-item figure {
        height: calc(100% - 7%);
        align-content: end;
    }
    .photo-carrousel-item figure img {
        max-width: 130vw;
    }
    .photo-carrousel-item figcaption {
        height: 7%;
        display: inline-flex;
        justify-content: space-between;
        align-items: center;
    }
    .photo-carrousel-item figcaption p:nth-child(2) {
        color: var(--texte-clair);
    }

/* PUBLICATIONS */
    .bloc-publication{
        grid-column: span 2;
        display: grid;
    }

    @media (max-width: 1000px) {
        .bloc-publication{
            grid-column: span 3;
        }
    }

    @media (max-width: 700px) {
        .bloc-publication{
            grid-column: span 6;
        }
    }
    .publications{
        text-decoration: none;
    }
    .publications:hover{
        text-decoration: none;
    }
    .publications h2{
        margin-top: 0;
        margin-bottom: calc(var(--marge)/4);
        border-bottom: 1px solid var(--texte);
        width: 100%;
    }

/* about */
    .about-main img{
        max-height: 250px;
    }
    @media (min-width: 1100px) {
        .about-main{
            grid-column: 2 / 4;
        }
        .about-sec{
            grid-column: 5;
        }
    }
    .about-sec{
        display: flex;
        flex-direction: column;
    }
    .about-sec a{
        display: inherit;
        padding-bottom: calc(var(--marge)/2);
        text-decoration: none;
    }
    .about-sec a svg{
        height: 1.2em;
    }

/* FOOTER */
    footer {
        display: flex;
        justify-content: space-between;
        margin-top: 50px;
        color: var(--texte-clair);
        position: relative;
        bottom: 0;
    }
    footer p{
        margin: var(--marge);
        margin-bottom: 0;
    }
    @media (max-width: 1100px) {
        footer{
            font-size: 0.9em;
        }
    }
    footer p:nth-child(1){
        text-align: left;
    }
    footer p:nth-child(2){
        text-align: right;
    }