body {
    /*font-family: 'Hanken Grotesk', sans-serif;*/
    font-family: 'HK Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: #000;
    box-sizing: border-box;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-Light.woff2") format("woff2"),
         url("/fonts/JetBrainsMono-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"),
         url("/fonts/JetBrainsMono-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2"),
         url("/fonts/JetBrainsMono-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2"),
         url("/fonts/JetBrainsMono-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-ExtraBold.woff2") format("woff2"),
         url("/fonts/JetBrainsMono-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "HK Grotesk";
    src: url("/fonts/HKGrotesk-Light.woff2") format("woff2"),
         url("/fonts/HKGrotesk-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "HK Grotesk";
    src: url("/fonts/HKGrotesk-Regular.woff2") format("woff2"),
         url("/fonts/HKGrotesk-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "HK Grotesk";
    src: url("/fonts/HKGrotesk-Medium.woff2") format("woff2"),
         url("/fonts/HKGrotesk-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "HK Grotesk";
    src: url("/fonts/HKGrotesk-Bold.woff2") format("woff2"),
         url("/fonts/HKGrotesk-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "HK Grotesk";
    src: url("/fonts/HKGrotesk-SemiBold.woff2") format("woff2"),
         url("/fonts/HKGrotesk-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap; /* Important for performance */
}

@font-face {
    font-family: "HK Grotesk";
    src: url("/fonts/HKGrotesk-Italic.woff2") format("woff2"),
         url("/fonts/HKGrotesk-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --gris: #f4f4f6;
    --bleu: #0051FF;
}

.hidden {
    display: none;
}

img {
    display: block;
    line-height: 0;
}

a {
    color: #000;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 17px;
    margin-top: 2.5rem;
}

.profile strong {
    background-color: #FFF2CC;
    padding: 2px 4px;
    margin: -2px 0;
    font-weight: 500;
}

/*
ol {
    list-style: none;
    counter-reset: li;
    padding: 0;
}

ol li:before {
    counter-increment: li;
    content: counter(li, decimal-leading-zero);
    margin-right: 0.25em;
    position: absolute;
    left: -2.25rem;
    font-size: 11px;
    line-height: 28px;
    color: #777;
    font-family: monospace;
}

ol li {
    position: relative;
    margin-bottom: .75rem;
}
*/

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #666;
}

.profile .side {
    display: none;
}

p {
    margin: 0 0 1rem;
}

.embed video,
.embed img {
    max-width: 100%;
    height: auto;
}

blockquote {
    /*
    font-style: italic;
    color: #999;
    */
    color: var(--bleu);
    opacity: 0.66;
    padding: 0;
    margin: 0 0 1rem;
}

blockquote:last-child,
p:last-child {
    margin-bottom: 0;
}

/*
 * ================================
 * Layout
 * ================================
 */

.layout {
    display: flex;
    flex-direction: column;
    max-width: 1480px;
    margin: 0 auto;
}

body.profile .layout {
    max-width: 740px;
}
.main {
    padding: 20px;
    order: 2;
}

.content {
    padding-bottom: 4rem;
}

.side {
    padding: 20px;
    background-color: var(--gris);
    order: 1;
}

.links {
    display: flex;
    /*flex-direction: column;*/
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.up-right-arrow {
    width: 10px;
    height: 10px;
    margin-right: .5rem;
}

.links > div {
    display: flex;
    align-items: center;
}

body.nord-nord-ouest .side {
    order: 3;
}

 @media only screen and (min-width: 800px) {
    .layout {
        flex-direction: row;
    }
    .main {
        width: calc(50% - 120px);
        padding: 40px 60px;
        order: 1;
    }
    body.profile .main {
        width: calc(100% - 120px);
    }
    .side {
        padding: 40px 60px;
        flex: 1;
        min-height: calc(100vh - 80px);
        order: 2;
    }
}

.img-placeholder {
    background: rgba(0, 0, 0, 0.5);
}

img.preview {
    position: absolute;
    top: 0;
    left: 0;
    height: 400px !important;
    width: auto !important;
}

/*
 * ================================
 * Header
 * ================================
 */

 .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
 }

.header h1 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}
.header h1 a {
    text-decoration: none;
}

.header .info {
    display: flex;
    gap: .75rem;
}

.header .info .location {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-text {
    display: flex;
    gap: 6px;
}

 .banner {
    padding: 60px 0 70px;
    font-weight: 400;
    word-wrap: break-word;
 }

 .banner .title,
 .banner .subtitle {
    margin: 0;
    padding: 0;

    /*
    font-family: Ella Roman;
    font-size: 48px;
    line-height: 64px;
    font-weight: 400;

    font-family: 'Inknut Antiqua', sans-serif;
    font-size: 48px;
    line-height: 72px;
    font-weight: 300;
    */
    color: #111;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 400;
    color: var(--bleu);
}
body.profile .banner .title {
    font-size: 30px;
}
 .banner .subtitle {
    font-size: 24px;
    color: #111;
    font-weight: 400;
    line-height: 1.33;
    margin-bottom: 12px;
 }
.nord-nord-ouest .banner .title {
    color: black;
}


 @media only screen and (min-width: 800px) {
    .banner .title {
        font-size: 34px;
        line-height: 1.25;
    }
 }

/*
 * ================================
 * Common
 * ================================
 */

.year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.exp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
}

.row {
    display: flex;
    border-top: 1px solid #ccc;
}


.row > div {
    flex: 1;
    padding: 12px 0;
}

.row img {
    height: 50px;
    width: auto;
}

/* Table book */
.table-book .row > div:first-child {
    flex: 0 0 40px;
}

.table-book .row > div:last-child {
    flex: 0 0 20px;
}

/* Table img */
.table-img .row {
    border-top: none;
}

.table-img .row > div {
    padding: 6px 0;
}

.table-img .row > div:nth-child(1) {
    flex: 0 0 100px;
    overflow: hidden;
}

.table-img .row > div:nth-child(2) {
    flex: 0 0 40px;
}

.table-img .row > div:nth-child(3) {
    flex-grow: 1;
}

.table-img .row > div:nth-child(4) {
    flex-grow: 2;
}

/**
 * ================================
 * Side
 * ================================
 */

.side img {
    max-width: 100%;
}

.side-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/*
 * ================================
 * Tabs
 * ================================
 */

 .tabs {
    display: flex;
    gap: 24px;
}

.tab-content {
    margin-top: 2rem;
}

.tabs.right {
    justify-content: flex-end;
}

.tab {
    display: flex;
    gap: 4px;
    padding: 0 2px;
}

.tab .tab-title {
    border-bottom: 1px solid transparent;
}

.tab:hover {
    cursor: pointer;
}

.tab:hover .tab-title {
    border-bottom: 1px solid #999;
}

.tab.active .tab-title {
    border-bottom: 1px solid black;
    font-weight: 700;
}

/*
 * ================================
 * Logs
 * ================================
 */

 .log {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

@media only screen and (min-width: 800px) {
    .log {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 0;
        border-bottom: none;
    }
}

.mono,
.meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.meta {
    color: #999;
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    gap: .5rem;
}
@media only screen and (min-width: 800px) {
    .meta {
        text-align: right;
        border-right: 2px solid #ccc;
        width: 90px;
        flex-shrink: 0;
        padding-right: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin-bottom: 0;
    }
}

.meta .id {
    font-weight: 700;
    color: #000;
}

.meta .id:after {
    content: '/';
    display: inline-block;
    text-align: right;
    margin-left: .5rem;
    font-weight: 400;
}

@media only screen and (min-width: 800px) {
    .meta .id:after {
        display: none;
    }
}

.log-content {
    flex-shrink: 1;
    margin-top: -3px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.embed {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.embed.embed-book {
    flex-direction: row;
}

.embed-text {
    flex-grow: 1;
}

.embed.embed-book .embed-img {
    flex-grow: 0;
}

.embed-img img {
    height: 80px;
    width: auto;
}

.embed-title {
    font-weight: 700;
}

.embed-medias {
    overflow: hidden;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    height: 120px;
}

.embed-medias video,
.embed-medias img {
    height: 120px;
    width: auto;
}

.log-content .embed img {
    /*filter: grayscale(100%);*/
}

/*
 * ================================
 * Grid
 * ================================
 */

.grid .grid-sizer,
.grid .grid-item {
    width: calc(50% - 10px);
    margin-bottom: 1.5rem;
}

.grid {
    margin-top: 1.5rem;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

/*
 * ================================
 * Square
 * ================================
 */

#tooltip {
    background: #000;
    color: #fff;
    padding: 3px 4px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

 .squares {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
 }

.square {
    width: 50px;
    height: 50px;
    background-color: var(--gris);
}

.square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nord-nord-ouest .side {
    background-color: #F4F3F1;
}

body.dark .banner .title {
    color: black;
}

body.dark .side {
    background-color: midnightblue;
    background-color: black;
    color: #fff;
}
body.dark .side a {
    color: #fff;
}

body.dark .side .tab-title {
    border-color: rgba(255, 255, 255, 0.8);
}

body.dark .side .row {
    border-color: rgba(255, 255, 255, 0.5);
}

body.dark .side .exp {
    color: rgba(255, 255, 255, 0.8);
}


h3 {
margin: 0;
padding: 0;
font-size: 16px;
color: #555;
font-weight: 400;
}

.profile a {
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #000;
}

/**
 * ================================
 * Projets
 * ================================
 */

.projects {
    display: flex;
    width: 100%;
    overflow: hidden;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    flex-direction: column;
}

.projet {
    display: flex;
    gap: .75rem;
}

.projet img {
    width: 100%;
    height: auto;
}

.projet-img {
    width: 100px;
    flex-shrink: 0;
}

.projet-client {
    font-weight: 600;
}

.projet-project {
    opacity: .66;
}

.projects-grid {
    display: flex;
    width: 100%;
    gap: .5rem;
    margin: 1rem 0;
    overflow: hidden;
}

.projects-grid img {
    width: 200px;
}