@charset "UTF-8";

/*
Theme Name: Hei
Theme URI: http://jiyong.eu
Author: Jiyong
Author URI: http://jiyong.eu
Description: Portfolio noir
*/

/* montserrat-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  src: url('polices/montserrat-v31-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100;
  src: url('polices/montserrat-v31-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  src: url('polices/montserrat-v31-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 200;
  src: url('polices/montserrat-v31-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('polices/montserrat-v31-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300;
  src: url('polices/montserrat-v31-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('polices/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('polices/montserrat-v31-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('polices/montserrat-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 500;
  src: url('polices/montserrat-v31-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('polices/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 600;
  src: url('polices/montserrat-v31-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('polices/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  src: url('polices/montserrat-v31-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('polices/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  src: url('polices/montserrat-v31-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('polices/montserrat-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 900;
  src: url('polices/montserrat-v31-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



:root{
    --surface:#191B1C;
    --surface-bg:url(assets/bg-dark.jpg);
    --on-surface:#FFFFFF;
    --on-surface-variant:#ADADAD;

    --primary-color:#FABF1D;

    --font-size-xs:0.75rem; /*12*/
    --font-size:1.5rem; /*24*/
    --font-size-s:1rem; /*16*/
    --font-size-l:2.5rem; /*40*/
    --font-size-xl:3rem; /*48*/

    --columns:12;
    --column-width: 140px;
    --gutter:16px;
    --margin:32px;

    --radius-button:8px;
    --radius-content:32px;

    --spacing-1:4px;
    --spacing-2:8px;
    --spacing-3:16px;
    --spacing-4:24px;
    --spacing-5:32px;
    --spacing-6:40px;
    --spacing-7:48px;
    --spacing-8:56px;
    --spacing-9:64px;
    --spacing-10:72px;
    --spacing-11:80px;
    --spacing-12:172px;

    --line-height-s:24px;
    --line-height:32px;

}

*{
    padding:0;
    margin: 0;
    box-sizing: border-box;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

body{
    background-image: var(--surface-bg);
    background-color: var(--surface);
    font-size:var(--font-size);
    color:var(--on-surface);
    font-family: 'Montserrat';
}


body.body-menu-open{
overflow: hidden;
}


.container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);

}

/* Focus */

:focus-visible {
  outline: 3px dotted var(--primary-color);
  outline-offset: 4px;
}

/* Niveau de titre */

.headline-large{
    font-size:var(--font-size-xl);
    font-weight:400;
}

.headline-medium{
    font-size:var(--font-size-l);
}

.headline-small{
    font-size:var(--font-size-s);
}

.title-medium{
    font-size: var(--font-size-s);
    color:var(--on-surface-variant);
    font-weight: 400;
}

/* Gestion des paragraphe */

.paragraphe-little p{
    font-size: var(--font-size-s);
    line-height: var(--line-height-s);
}

.paragraphe-regular p{
    font-size: var(--font-size);
    line-height: var(--line-height);
}

/* header */

.header {
  grid-column: 2 / span 10; /* laisse 1 colonne de marge de chaque côté */
  margin-top: var(--spacing-11);
  display: flex;
  flex-direction: row;
  justify-content:space-between;
  align-items: center;
  height: 84px;
}

.header .menu-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.header nav{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.header nav ul{
    display: flex;
    flex-direction: row;
    gap:16px;
}

.header nav ul a{
    font-size: var(--font-size-s);
    text-transform: uppercase;
    font-weight: bold;
    padding:var(--spacing-5);
    color:var(--on-surface);
    border-radius: var(--radius-button);
    background: var(--surface);
    display: block;
    transition: all 0.2s;
}

    .header nav ul a:hover{
        background: var(--on-surface);
        color:var(--surface);
        transition: all 0.2s;
    }

.mark{
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    height: 84px;
    border-radius: var(--radius-button);
}

.logo{
    width: 275px;
    overflow: hidden;
    position: relative;
    height: auto;
    display: flex;
    fill:var(--on-surface);
}

    .logo > span{
        position: absolute;
        right:-9999px;
    }

/*Menu button*/

.menu-button{
    display: none;
}

.menu-content{
    width: 100%;
}


/*mots*/

.vertical-words{
    font-size: var(--font-size-s);
    color:var(--on-surface-variant);
    position: absolute;
    top:0;
    right: 0;
    height: 28px;
    overflow:hidden;    
    display: flex;
    flex-direction: column;
}

.word{
    display: flex;
    flex-direction: row-reverse;
    height: 28px;
    transition: margin-top .3s ease-out;
    padding:4px 0;
}

/* Content : toute la largeur */
.content {
    display: contents;
}

.content > section{
    margin-top:var(--spacing-11);
}

/* Section */

.full-width{
    grid-column: 1 / -1;
}

.middle-width{
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}


/* work */

.work-description .work-title{
    grid-column: 1 / span 3 ;
}


.work-description .work-chapo{
    grid-column: 5 / span 6 ;
}

.work-cover{
    height: 800px;
    overflow: hidden;
    border-radius: var(--radius-content);
}

    .work-cover img{
        object-fit: cover;
        width: 100%;
        height: 100%;
        transition: all 0.2s;
    }

        .work-cover:hover img{
        transform:scale(1.10);
        transition: all 0.2s;
        }

.work-principal-thematic{
    font-size: var(--font-size);
    color:var(--on-surface-variant);
}

.work-classifications{
    grid-column: 1 / span 3 ;
    display: flex;
    flex-direction: column;
    gap:var(--spacing-5);
}

    .work-classifications-list ul{
        display: flex;
        flex-direction: column;
        gap:var(--spacing-2);

    }
    .work-classifications-list a{
        color:var(--on-surface);
        font-weight: bold;
        font-size: var(--font-size);
    }

.work-role{
    grid-column: 5 / span 6 ;
    color:var(--on-surface-variant);
}

/* article info */


.article-info .article-title{
    grid-column: 1 / span 3 ;

}

.article-info .article-chapo{
    grid-column: 5 / span 6 ;
}

.about-chapo{
    display: flex;
    flex-direction: column;
    gap:var(--spacing-5);
}

/* Image en couverture*/

.img-cover{
    grid-column: 1 / -1 ;
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-content);
}

    .img-cover img{
        object-fit: cover;
        width: 100%;
        height: 100%;
        transition: all 0.2s;
    }

        .img-cover:hover img{
        transform:scale(1.10);
        transition: all 0.2s;
        }

/*About*/

.about-work{
    grid-column: 2 / span 10;
    display: grid;
}

.about-element{
    padding: var(--spacing-6) 0;
    border-bottom: 1px solid var(--on-surface-variant);
}

    .about-element .about-title{
        grid-column: 1 / span 3 ;
    }

    .about-element .about-description{
        grid-column: 5 / span 6 ;
        display: flex;
        flex-direction: column;
        gap:var(--spacing-5);
        color:var(--on-surface-variant)
    }
    
    .about-society{
        font-size: var(--font-size-s);
        color:var(--on-surface-variant);
    }


.about-school{
    grid-column: 2 / span 10;
}

    .about-school h1{
        margin-top: var(--spacing-6);
        margin-bottom: var(--spacing-6) ;
    }

    .about-school article:first-of-type{
        border-top:1px solid var(--on-surface-variant)
    }

    .about-school .about-title{
    grid-column: 1 / -1 ;
    }

/* columns */

.two-cols {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-5) var(--spacing-12);
}


/*home texte*/

.home-text p{
    color:var(--on-surface-variant);
    line-height: 32px;
}

/*présentation articles*/

.project-showcase {
    grid-column: 2 / span 10; 
}

.project-showcase {
  display: flex;
  flex-wrap: wrap;
  column-gap: 172px; /* l’espace fixe entre les deux blocs */
  row-gap: 172px;
}

    

.project-showcase .project-item{
    display: flex;
    flex-direction: column;
    gap:var(--spacing-5);
}

    .project-showcase .project-item .excerpt {
        position: relative;
        height: 64px;
        overflow: hidden;
     }
    
    .project-showcase .project-item .excerpt > p{
        display: -webkit-box;
        -webkit-box-orient: vertical; 
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: var(--font-size);
        line-height: 32px;
        color:var(--on-surface-variant);
        position: relative;
        top:64px;
        transition: all 0.2s; 
    }

    .project-item:hover .excerpt > p, .project-item:has(a:focus-visible) .excerpt > p{
        top:0px;
        opacity: 1;
    }

.project-item .thumb{
    height: 436px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: var(--radius-content);
    background: var(--on-surface-variant);
}

    .project-item .thumb img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: all 0.2s;
    }

    .project-item:hover img, .project-item:has(a:focus-visible) img{
        transform:scale(1.10);
        transition: all 0.2s;
    }

/* Article rendom bas de page*/

    .others-works {
        grid-column: 2 / span 10; /* laisse 1 colonne de marge de chaque côté */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--spacing-11); /* l’espace fixe entre les deux blocs */
        row-gap: var(--spacing-11);
    }

    .others-works h1{
        grid-column: 1 / -1;
    }

/* article plus ancien */

.older-articles{
grid-column: 2 / span 10;
display: grid;
}

    .older-articles .project-item{
        border-bottom:1px solid var(--on-surface-variant);
    }

        .older-articles .project-item > a{
            padding: var(--spacing-6) 0;
            display: block;
        }

            .older-articles article:first-of-type{
                border-top:1px solid var(--on-surface-variant)
            }


     .older-articles .project-item .title-cat{
        transition: all 0.2s;
    }

    .older-articles .project-item:hover .title-cat{
        padding-left: var(--spacing-3);
        transition: all 0.2s;
    }

    
   .older-articles .project-item:has(a:focus-visible) .title-cat{
        padding-left: var(--spacing-3);
        padding-right: var(--spacing-3);
        transition: all 0.2s;
    }

.older-articles h1{
    padding:var(--spacing-6) 0;
}

/*article*/

.project-item .project-info{
    display: flex;
    flex-direction: column;
    gap:0;
    transition: all 0.2s;
}

    .project-item .project-info .title-cat{
        display: flex;
        gap:var(--spacing-3);
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

        .project-info .title-cat .thematic{
            white-space: nowrap;
        }
    
.project-item .projet-item-content{
    display: flex;
    flex-direction: column;
    gap:var(--spacing-5);
}

    .project-item a{
        color:var(--on-surface);
    }

    .project-showcase .project-item a{
        border-radius: calc(2px + var(--radius-content));
    }

    .project-showcase .project-item a:focus-visible .project-info{
        padding:var(--spacing-3);
        transition: all 0.2s;
    }

.project-item .work-date, .work-title .work-date, .about-element .about-date{
    font-size: var(--font-size-s);
    color:var(--on-surface-variant);
}

/* Message archive */

.message-archive{
    grid-column: 1 / -1;
    display: flex;
    flex-flow: column;
    gap:var(--spacing-4);
    color:var(--on-surface-variant)
}

.message-archive p{
    max-width: 600px;
}


/* Articles */

.content-article{
    grid-column: 1 / -1; /* = occupe les 12 colonnes */
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* IMPORTANT */
    gap: var(--spacing-11) var(--gutter);
    padding:var(--spacing-11) 0;
}

    .content-article .middle-width{
        grid-column: 2 / span 10;
        display: grid;
        grid-template-columns: 1fr 164px 1fr;
        align-items: center; 
        gap: var(--spacing-5); 
    }

        .content-article .middle-width > .column-left {
            grid-column: 1;
        }

        .content-article .middle-width > .column-right {
            grid-column: 3;
        }

    .content-article .full-width{
        grid-column: 1 / -1;
    }

    .content-article .middle-width .headline-large{
        grid-column: 1 / -1;
        margin-bottom:var(--spacing-5);
    }

.img-middle-width{
    grid-column: 1 / -1;
    box-shadow: 0 32px 80px rgba(11,8,1,0.25);
    border-radius: var(--radius-content);
    overflow: hidden;
}

    .img-middle-width img{
        object-fit: cover;
        width: 100%;
        height: 100%;
        transition: all 0.2s;
    }

    .two-cols .section-article{
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

.section-article{
    display: flex;
    flex-direction: column;
    gap:var(--spacing-4);
}

.section-article-icone{
    grid-column: 1 / -1;
}

.section-article-icone .headline-large{
    width: 100%;
}

.section-article-two-cols{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: var(--spacing-11);
}

.section-article-two-cols p{
    max-width: 690px;
}

/* figure et image */

figure img{
    max-width: 100%;
}

figure{
    position: relative;
    text-align: center;
}

figure figcaption{
    position: absolute;
    bottom:0;
    right:0;
    padding:var(--spacing-3);
    font-size:var(--font-size-xs);
    background-color: RGBA(25, 27, 28, 0.8);
}

/* Listes */

.icon-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    grid-column: 1 / -1;
}

    .icon-list > * {
        justify-self: center;
    }

    .icon-list img{
        object-fit: cover;
        width: 100%;
        height: 100%;
        transition: all 0.2s;
    }

        .icon-list li:hover img{
        transform:scale(1.10);
        transition: all 0.2s;
    }

/* Footer */

.footer {
    grid-column: 2 / span 10; /* laisse 1 colonne de marge de chaque côté */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--spacing-7);
    padding: var(--spacing-11) 0;
    font-size: var(--font-size-s);
    margin-top:var(--spacing-11);
    line-height: 24px;
}

.footer-description{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--spacing-3);
}

.footer div{
    color:var(--on-surface-variant);
}

.footer-menu{
    display: flex;
    flex-direction: row;
    gap:var(--spacing-3);
}

.footer-menu li a{
    display: flex;
    height:40px;
    padding: 0 var(--spacing-3);
    color:var(--on-surface);
    text-transform: uppercase;
    font-weight: bold;
    background: var(--surface-bg);
    border-radius: var(--radius-button);
    align-items: center;
    transition: all 0.2s;
}

.footer-menu li a:hover{
    background: var(--on-surface);
    color:var(--surface);
    transition: all 0.2s;
}

/* Bouton */

.button{
    display: inline-flex;
    border-radius: var(--radius-button);
    font-size: var(--font-size-s);
    color:var(--on-surface);
    align-items: center;
    min-height: 65px;
    transition: all 0.2s;
}

.button-text{
    padding:0 var(--spacing-5);    
    text-transform: uppercase;
    font-weight: bold;
}

.button-principal{
    border:2px solid var(--primary-color);
    background: var(--surface-bg);
    position: relative;
}

    .button-principal:hover{
        background:var(--on-surface);
        color:var(--surface);
        transition: all 0.2s;
    }

    .button-principal::before, .button-secondary::before{
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: var(--radius-button);
        transform: rotate(0deg);
        background: var(--primary-color);
        z-index: -1;
        opacity: 0;
        transition: all 0.2s;
    }

    
    .button-principal::after, .button-secondary::after{
        content: "";
        position: absolute;
        inset: -4px -2px -4px -4px;
        border-radius: var(--radius-button);
        background: var(--primary-color);
        z-index: -1;
        opacity: 0;
        transition: all 0.2s;
    }

        .button-principal:active::before, .button-secondary:active::before {
            transform: rotate(2deg);
            opacity: 0.5;
            transition: all 0.2s;
        }

        .button-principal:active::after, .button-secondary:active:after {
            transform: rotate(-2deg);
            opacity: 0.8;
            transition: all 0.2s;
        }

.button-secondary{
    border:2px solid var(--primary-color);
    background: var(--on-surface);
    color:var(--surface);
    position: relative;
}

    .button-secondary:hover{
        background:var(--surface);
        color:var(--on-surface);
        transition: all 0.2s;
    }

header .button{
  height: 84px;
}

/*skip links*/

.skip-links {
  position: absolute;
  top: 0;
  left: 0;
}

.skip-links a {
  position: absolute;
  left: -9999px;
  padding: 8px 12px;
  background: var(--surface);
  color:var(--on-surface);
  border: 2px solid var(--primary-color);
}

.skip-links a:focus {
  left: 0;
  top: 0;
}

/* message contact */

.message-contact{
    padding:var(--spacing-12);
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap:var(--spacing-6);
    border-radius: var(--radius-content);
    border:2px solid var(--primary-color);
    margin:var(--spacing-11) 0;
}

/* spécificités */

.nemo .icon-list{
    gap:118px;
    margin: auto;
    justify-content: space-between;
}

.nemo .icon-list li{
    height: 296px;
    width: 296px;
    border-radius: var(--radius-content);
    position: relative;
    background-color: #4E86EA;
    padding: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.2s;
}

.nemo .icon-list li svg{
    position: absolute;
    height: 100px;
    width: 100px;
    inset: 0;
    margin: auto;
    fill:#fff;  
    transition: all 0.2s;
}

.nemo .icon-list li span{
    font-size:1rem;
    text-align: center;
}

.nemo .icon-list li:hover{
    color: #4E86EA;
    background-color: #fff;
    transition: all 0.2s;
}

.nemo .icon-list li:hover svg{
    height: 130px;
    width: 130px;
    fill: #4E86EA;
    transition: all 0.2s;
}


/* bubus */

.bubusdex .icon-list{
    gap:80px;
    margin: auto;
    justify-content: space-between;
}

.bubusdex .icon-list li{
    height: 240px;
    width: 240px;
    border-radius: var(--radius-content);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.2s;
}


.bubusdex .icon-list li figure{
    font-size:1rem;
    text-align: center;
}

.bubusdex .icon-list li figure img{
    width:200px
}

.bubusdex .bg-sombre{
    background: #121212;
    justify-content: center;
}



/**/

@media screen and (min-width:1401px){
    /* 1 : gauche 5 colonnes */
    .project-showcase .project-item:nth-child(8n + 1) {
    flex: 0 0 calc((100% - 172px) * 5 / 9);
    }

    /* 2 : droite 4 colonnes */
    .project-showcase .project-item:nth-child(8n + 2) {
    flex: 0 0 calc((100% - 172px) * 4 / 9);
    }

    /* 3 : split gauche (1/2) */
    .project-showcase .project-item:nth-child(8n + 3) {
    flex: 0 0 calc((100% - 172px) * 0.5);
    }

    /* 4 : split droite (1/2) */
    .project-showcase .project-item:nth-child(8n + 4) {
    flex: 0 0 calc((100% - 172px) * 0.5);
    }

    /* 5 : gauche 4 colonnes */
    .project-showcase .project-item:nth-child(8n + 5) {
    flex: 0 0 calc((100% - 172px) * 4 / 9);
    }

    /* 6 : droite 5 colonnes */
    .project-showcase .project-item:nth-child(8n + 6) {
    flex: 0 0 calc((100% - 172px) * 5 / 9);
    }

    /* 7 : split gauche */
    .project-showcase .project-item:nth-child(8n + 7) {
    flex: 0 0 calc((100% - 172px) * 0.5);
    }

    /* 8 : split droite */
    .project-showcase .project-item:nth-child(8n + 8) {
    flex: 0 0 calc((100% - 172px) * 0.5);
    }

}

@media screen and (max-width:1400px) {
    .project-item .project-info .title-cat{
        flex-direction: column;
    }

    .project-showcase{
        grid-column: 2 / span 10;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }

    .two-cols{
    grid-template-columns: 1fr;
    }

    /**/
    .nemo .icon-list{
        gap:80px;
    }


    .nemo .icon-list li{
        height: 250px;
        width: 250px;

    }


}

@media screen and (max-width:1200px) {

  .footer{
    flex-direction:column;
  }

  .header .menu-content{
    position: fixed;
    inset: 0px 0px 100vh 0px;
    margin: auto;
    background: var(--surface-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: all 0.2s;
    gap:var(--spacing-6);
    padding:0;
  }
   
    .body-menu-open .menu-content{
        inset: 0px 0px 0px 0px;
        height: 100vh;
        padding:var(--spacing-6);
        opacity: 1;
    }

        .header .menu-content nav ul{
            width: 100%;
            display: flex;
            flex-direction: column;
        }


  .menu-button{
    display: block;
    position: relative;
    top:0px;
    right:0px;
    z-index: 100;
    background-color: var(--on-surface);
    height: 64px;
    width: 64px;
    border-radius: var(--radius-button);
    cursor: pointer;
  }

  .menu-button::after{
    content: "";
    display: block;
    height: 12px;
    width: 100%;
    background: var(--surface-bg);
    position: absolute;
    top:13px;
    left: 0;
    margin: auto;
    transition: all 0.2s;
    transform: rotate(0);
  }
  
  .menu-button::before{
    content: "";
    display: block;
    height: 12px;
    width: 100%;
    background: var(--surface-bg);
    position: absolute;
    bottom:13px;
    left: 0;
    margin: auto;
    transition: all 0.2s;
    transform: rotate(0);
  }

  .body-menu-open .menu-button::before{
    inset: 0;
    transform: rotate(45deg);
    transition: all 0.2s;
  }

   .body-menu-open .menu-button::after{
    inset: 0;
    transform: rotate(-45deg);
    transition: all 0.2s;
  }

  .others-works{
    grid-template-columns: repeat(2, 1fr);
  }
  
    
}

@media screen and (max-width:768px) {
    :root {
    --columns: 4;
    --column-width: 1fr;  /* flexible et fluide */
    --gutter: 16px;
    --margin: 32px;

    --font-size-s: 0.875rem;
    --font-size: 1.25rem;
    --font-size-l: 2rem;
    --font-size-xl:2.5rem;
  }


.vertical-words{
    height: 22px;
}

.word{
    height: 22px;
    padding:2px 0;
}

      .project-showcase{
        grid-template-columns: 1fr;
        }

        .project-showcase .project-item .excerpt{
            display: none;
        }

    .middle-width{
        grid-template-columns: 1fr;
    }

    .article-title{
        margin-bottom: var(--spacing-5);
    }

    .article-info .article-title{
        grid-column: 1 / span 10 ;
    }

    .about-element{
        grid-template-columns: 1fr;
    }

    .about-work .about-element{
        grid-template-columns: 1fr; 
        grid-column: 2 / span 10;
    }

         .about-work .about-element .about-title, .about-work .about-element .about-description{
            grid-column: 2 / span 10;
            margin-bottom: var(--spacing-5);
         }

    figure{
        max-width: 100%;
    }

        figure img{
        max-width: 100%;
        }

    .message-contact{
        padding: var(--spacing-5);
    }
    
.footer-description{
    flex-direction: column;
}

.footer-menu{
    flex-direction: column;
}

.footer-menu li a{
    justify-content: center;
    min-height: 45px;
}

.nemo .icon-list{
    gap:40px;
}
    
}

@media screen and (max-width:450px) {
.logo{
    width: 70px;
}

.vertical-words{
    display:none;
}

.message-contact.middle-width {
    grid-column: 2 / span 10;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

}