:root {
    --color-gray: #f4f4f6;
    --color-primary: #0051FF;
    --color-light: ivory;
    --color-dark: black;
    --space-small: .5rem;
    --space-default: 1rem;
    --space-medium: 1.5rem;
    --space-large: 2rem;
    --space-x-large: 3rem;
    --space-xx-large: 5rem;
    --text-size-default: 1rem;
    --text-size-large: 2rem;
    --text-size-medium: 1.4rem;
    --text-size-small: .8rem;
    --text-weight-normal: 400;
    --text-weight-bold: 600;
    --text-body: 'HK Grotesk', arial, sans-serif;
    --text-mono: "JetBrains Mono",monospace;
    --text-display: var(--text-mono);
}

body {
    font-family: var(--text-body);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: var(--color-dark);
    box-sizing: border-box;
}


::selection {
    color: var(--color-light);
    background: var(--color-dark)
}

@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;
}

.hidden {
    display: none;
}

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

a {
    color: #000;
}
a.no-border,
.profile a.no-border {
    text-decoration: none;
    border-bottom: none;
}

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

h2 {
    font-size: 1rem;
    font-weight: 700;
    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: var(--text-mono);
    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(--color-primary);
    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.nord-nord-ouest .layout {
    margin: 0;
}

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

body.notes-index .main {
    order: 2;
}
body.notes-index .side {
    order: 1;
}

.content {
    padding-bottom: 4rem;
}

.side {
    padding: 20px;
    background-color: var(--color-gray);
}

.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;
}

 @media only screen and (min-width: 800px) {
    .layout {
        flex-direction: row;
    }
    .main {
        width: calc(50% - 120px);
        padding: 40px 60px;
    }
    body.notes-index .side {
        order: 3;
    }
    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: 1.25rem;
    font-weight: 600;
    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: var(--text-mono);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary);
}
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: var(--text-mono);
    font-size: 11px;
}

.exp {
    font-family: var(--text-mono);
    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;
}
*/

@media print {
    .layout,
    .main,
    .side {
        margin: 0;
        padding: 0;
        background-color: transparent;
        page-break-before: always;
    }
    .header {
        display: none;
    }
    .banner {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    .main, .side {
    }
}
@page {
    size: A5;
    margin: 10mm;
  
    @bottom-left {
      content: counter(page);
    }
  
    @bottom-center {
      content: string(title);
      text-transform: uppercase;
    }
  
}
.side-grid {
    display: none!important;
}

/*
// 148 w
// 118 w sans marges
// 210 h
// 190 h sans marges
*/

.side-grid,
.side-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.side-grid-item {
    background-color: #ccc;
}

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

.side-media-item:nth-child(1) {
    grid-column: span 3;
}
.side-media-item:nth-child(2) {
    grid-column: span 2;
}

/*
 * ================================
 * 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: var(--text-mono);
    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: var(--text-mono);
    font-weight: 700;
}

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

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

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

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

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-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
    margin: 1.25rem 0;
    overflow: hidden;
}

@media only screen and (min-width: 800px) {
    .projects-grid {
        gap: 1rem;
    }
}

.projet {
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

@media only screen and (min-width: 800px) {
    .projet {
        flex-direction: row;
    }
}

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

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

@media only screen and (min-width: 800px) {
    .projet-img {
        width: 33%;
    }
}

.profile .header {
    display: none;
}

.profile .banner {
    display: none;
}

.projet-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.projet-data {
    opacity: .5;
    font-size: .9rem;
}

.projet-href {
    opacity: .5;
    margin-top: .5rem;
    font-size: .9rem;
}
.projet-href svg {
    width: 8px;
    height: 8px;
}

.basic-image-grid {
    display: flex;
    width: 100%;
    gap: .5rem;
    margin: 1.25rem 0;
    flex-direction: row;
    overflow: hidden;
}

.basic-image-grid img {
    height: 150px;
    width: auto;
}

.image-grid {
    display: flex;
    width: 100%;
    gap: .5rem;
    margin: 1.25rem 0;
    flex-direction: column;
}
.image-grid a {
    display: block;
}
a[data-fslightbox]:hover {
    cursor: zoom-in;
}
.image-grid img {
    width: 100%;
    height: auto;
}

@media only screen and (min-width: 800px) {
    .image-grid {
        flex-direction: row;
    }

    .image-grid a {
        width: calc(33.33% - .33rem);
    }
}