@font-face {
    font-family: "JetBrains Mono";

    src: url("../fonts/JetBrainsMono-Regular.ttf")
         format("truetype");

    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}


body {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    color: #fff;

    font-family: "JetBrains Mono", monospace;
}


/* =========================
   CIEL ÉTOILÉ
   ========================= */

#starfield {
    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;

    background: linear-gradient(
        to bottom,
        #000000 0%,
        #00002A 100%
    );
}


.star {
    position: absolute;

    border-radius: 50%;

    background: #fff;

    will-change: opacity, transform;
}


@keyframes twinkle {

    0%,
    100% {
        opacity: var(--opacity-min);
        transform: scale(1);
    }

    50% {
        opacity: var(--opacity-max);
        transform: scale(1.15);
    }

}


/* =========================
   PAGE D'ACCUEIL / ENTRÉE
   ========================= */

.entrance {
    position: relative;

    z-index: 1;

    width: 90vw;
    max-width: 800px;

    text-align: center;
}


.photo-container {
    width: 100%;

    margin-bottom: 30px;
}


.photo-container img {
    display: block;

    width: 100%;
    max-width: 320px;
    height: auto;

    margin: 0 auto;
}


.welcome {
    max-width: 600px;

    margin: 0 auto 30px;

    text-align: center;

    line-height: 1.5;
}


.continue {
    display: inline-block;

    padding: 12px 24px;

    border: 1px solid #fff;

    color: #fff;
    background: transparent;

    text-decoration: none;

    font-size: 16px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.continue:hover {
    background-color: #fff;

    color: #000;
}


/* =========================
   PAGE D'ACCUEIL DU SITE
   ========================= */

.home {
    position: relative;

    z-index: 1;

    width: 100vw;
    height: 100vh;

    overflow: hidden;
}


.navigation {
    position: absolute;

    inset: 0;
}


/*
   Les éléments sont positionnés
   aléatoirement par JavaScript.
*/

.nav-item {
    position: absolute;

    display: block;

    color: #fff;

    text-decoration: none;

    font-size: 24px;

    white-space: nowrap;

    transition: opacity 0.2s ease;
}


.nav-item:hover {
    opacity: 0.5;
}


/* =========================
   BLOG
   ========================= */

.blog {
    position: relative;

    z-index: 1;

    width: 90vw;
    max-width: 700px;

    margin: 0 auto;

    padding: 60px 0;
}


/* En-tête du blog */

.blog-header {
    margin-bottom: 60px;

    text-align: center;
}


.blog-header h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: normal;

    text-align: center;
}


.site-title {
    display: block;

    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1rem;

    text-align: center;

    text-decoration: none;
}


.site-title:hover {
    color: #fff;
}


/* Liste des articles */

.post-list {
    display: flex;

    flex-direction: column;

    gap: 0;
}


.post {
    display: grid;

    grid-template-columns: 200px 1fr;

    padding: 14px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.post:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.post time {
    color: rgba(255, 255, 255, 0.45);

    font-size: 1rem;

    white-space: nowrap;
}


.post a {
    color: #fff;

    font-size: 1rem;

    text-decoration: none;
}


.post a:hover {
    text-decoration: underline;
}


/* =========================
   BLOG — MOBILE
   ========================= */

@media (max-width: 600px) {

    .blog {
        width: 85vw;

        padding: 40px 0;
    }


    .blog-header {
        margin-bottom: 40px;
    }


    .post {
        grid-template-columns: 1fr;

        gap: 5px;
    }

}


/* =========================
   ARTICLE DE BLOG
   ========================= */

.article {
    position: relative;

    z-index: 1;

    width: 100%;

    margin: 0 auto;

    padding: 60px 0;
}


/* En-tête */

.article-header {
    width: 90vw;
    max-width: 680px;

    margin: 0 auto 60px;

    text-align: center;
}


.back-to-blog {
    display: block;

    margin-bottom: 40px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1rem;

    text-decoration: none;
}


.back-to-blog:hover {
    color: #fff;
}


.article-header h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: normal;

    line-height: 1.2;
}


.article-header time {
    color: rgba(255, 255, 255, 0.45);

    font-size: 1rem;

    font-style: italic;
}


/* Image de l'article */

.article-image {
    width: 90vw;
    max-width: 680px;

    height: 30vh;

    margin: 0 auto 60px;

    overflow: hidden;
}


.article-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Contenu */

.article-content {
    width: 90vw;
    max-width: 680px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1rem;

    line-height: 1.7;
}


.article-content p {
    margin: 0 0 1.5em;
}


.article-content a {
    color: #fff;

    text-decoration: underline;
}


.article-content a:hover {
    text-decoration: underline;
}


/* Vidéos intégrées */

.article-content iframe {
    display: block;

    width: 100%;
    max-width: 560px;
    height: auto;

    aspect-ratio: 16 / 9;

    margin: 30px auto;
}


/* Pied de page */

.article-footer {
    width: 90vw;
    max-width: 680px;

    margin: 70px auto 0;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    text-align: center;
}


/* =========================
   ARTICLE — MOBILE
   ========================= */

@media (max-width: 600px) {

    .article {
        width: 100%;

        padding: 40px 0;
    }


    .article-header {
        width: 85vw;

        margin-bottom: 45px;
    }


    .article-header h1 {
        font-size: 28px;
    }


    .article-image {
        width: 85vw;

        height: 30vh;

        margin-bottom: 45px;
    }


    .article-content {
        width: 85vw;
    }


    .article-footer {
        width: 85vw;
    }

}


/* =========================================================
   PAGE PHOTOS
   ========================================================= */

.photos-page {
    position: relative;

    z-index: 1;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;
}


.photos-content {
    width: 100%;

    text-align: center;
}


/* Titre */

.photos-content h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: normal;

    text-align: center;
}


/* Retour à l'accueil */

.photos-back {
    display: block;

    margin-bottom: 40px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1rem;

    text-decoration: none;
}


.photos-back:hover {
    color: #fff;
}


/* =========================================================
   MOSAÏQUE
   ========================================================= */

.photo-mosaic {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 4px;

    max-width: 100%;
}


/* =========================================================
   BANDES PHOTOGRAPHIQUES
   ========================================================= */

.photo-strip {
    display: block;

    width: 20px;
    height: 200px;

    padding: 0;
    margin: 0;

    border: none;

    background-color: transparent;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    cursor: pointer;

    opacity: 0.85;

    user-select: none;
    -webkit-user-select: none;

    transition:
        width 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}


/*
 * Variation des largeurs.
 * La séquence se répète tous les six éléments.
 */

.photo-strip:nth-child(6n + 1) {
    width: 15px;
}


.photo-strip:nth-child(6n + 2) {
    width: 19px;
}


.photo-strip:nth-child(6n + 3) {
    width: 24px;
}


.photo-strip:nth-child(6n + 4) {
    width: 30px;
}


.photo-strip:nth-child(6n + 5) {
    width: 21px;
}


.photo-strip:nth-child(6n) {
    width: 17px;
}


/* Interaction au survol */

.photo-strip:hover {
    opacity: 1;

    transform: scaleY(1.03);
}


/* Indication */

.photos-hint {
    margin: 30px 0 0;

    color: rgba(255, 255, 255, 0.35);

    font-size: 0.8rem;
}


/* =========================================================
   POP-UP / LIGHTBOX
   ========================================================= */

.photo-lightbox {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/*
 * État ouvert
 */

.photo-lightbox.is-visible {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   CADRE NOIR AUTOUR DE LA PHOTO
   ========================================================= */

.photo-lightbox-frame {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 12px;

    background: #000;

    max-width: calc(90vw - 120px);
    max-height: calc(90vh - 60px);
}


/*
 * Image agrandie
 */

.photo-lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(85vh - 24px);

    object-fit: contain;

    user-select: none;
    -webkit-user-select: none;

    pointer-events: none;
}


/* =========================================================
   BOUTON DE FERMETURE
   ========================================================= */

.photo-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    padding: 0;

    border: none;

    background: none;

    color: #fff;

    font-family: inherit;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.7;

    transition: opacity 0.2s ease;
}


.photo-lightbox-close:hover {
    opacity: 1;
}


/* =========================================================
   FLÈCHES DE NAVIGATION
   ========================================================= */

.photo-lightbox-arrow {
    position: absolute;

    top: 50%;

    width: 50px;
    height: 70px;

    padding: 0;

    transform: translateY(-50%);

    border: none;

    background: none;

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 52px;
    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    opacity: 0.65;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.photo-lightbox-arrow:hover {
    opacity: 1;
}


/* Flèche gauche */

.photo-lightbox-prev {
    left: 25px;
}


/* Flèche droite */

.photo-lightbox-next {
    right: 25px;
}


/* =========================================================
   PHOTOS — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .photos-page {
        padding: 20px;
    }


    .photos-content h1 {
        font-size: 28px;
    }


    .photos-back {
        margin-bottom: 30px;
    }


    .photo-mosaic {
        gap: 3px;
    }


    .photo-strip {
        height: 150px;
    }


    .photos-hint {
        margin-top: 25px;
    }


    /* Lightbox */

    .photo-lightbox {
        padding: 15px;
    }


    .photo-lightbox-frame {
        padding: 7px;

        max-width: calc(94vw - 70px);
        max-height: 85vh;
    }


    .photo-lightbox-image {
        max-width: 100%;

        max-height: calc(82vh - 14px);
    }


    /* Flèches */

    .photo-lightbox-arrow {
        width: 35px;
        height: 55px;

        font-size: 40px;
    }


    .photo-lightbox-prev {
        left: 3px;
    }


    .photo-lightbox-next {
        right: 3px;
    }


    /* Fermeture */

    .photo-lightbox-close {
        top: 15px;
        right: 18px;

        font-size: 28px;
    }

}


/* =========================================================
   PAGE CONTACT
   ========================================================= */

.contact-page {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 60px 40px;
}


.contact-content {
    width: 90vw;
    max-width: 700px;

    text-align: center;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.contact-header {
    margin-bottom: 60px;

    text-align: center;
}


.contact-header h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: normal;

    text-align: center;
}


.contact-back {
    display: block;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1rem;

    text-decoration: none;
}


.contact-back:hover {
    color: #fff;
}


/* =========================================================
   CONTENU
   ========================================================= */

.contact-body {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 50px;

    text-align: center;
}


/* Photo */

.contact-image {
    width: 100%;
}


.contact-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* Texte */

.contact-text {
    display: flex;

    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1rem;

    line-height: 1.7;

    text-align: center;
}


.contact-text p {
    margin: 0;
}


.contact-text a {
    color: #fff;

    text-decoration: underline;
}


.contact-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   CONTACT — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .contact-page {
        padding: 40px 20px;
    }


    .contact-content {
        width: 85vw;
    }


    .contact-header {
        margin-bottom: 45px;
    }


    .contact-header h1 {
        font-size: 28px;
    }


    .contact-body {
        grid-template-columns: 1fr;

        gap: 30px;

        text-align: center;
    }


    .contact-image {
        width: 100%;
    }


    .contact-text {
        text-align: center;
    }

}


/* =========================================================
   PAGE MUSIQUE
   ========================================================= */

.music-page {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 40px;
}


.music-content {
    width: 90vw;
    max-width: 700px;

    text-align: center;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.music-header {
    margin-bottom: 60px;

    text-align: center;
}


.music-header h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: normal;

    text-align: center;
}


.music-back {
    display: block;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1rem;

    text-decoration: none;
}


.music-back:hover {
    color: #fff;
}


/* =========================================================
   LECTEUR
   ========================================================= */

.music-player {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;
}


.music-player iframe {
    display: block;

    width: 100%;
    height: 120px;

    border: 0;
}


/* Informations sur le morceau */

.music-info {
    margin: 10px 0 0;

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.8rem;

    line-height: 1.5;

    text-align: left;
}


/* =========================================================
   MUSIQUE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .music-page {
        padding: 40px 20px;
    }


    .music-content {
        width: 85vw;
    }


    .music-header {
        margin-bottom: 45px;
    }


    .music-header h1 {
        font-size: 28px;
    }


    .music-player {
        width: 100%;
    }

}


/* =========================================================
   PAGE ENGLISH
   ========================================================= */

.english-page {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 40px;
}


.english-content {
    width: 90vw;
    max-width: 680px;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.english-header {
    margin-bottom: 60px;

    text-align: center;
}


.english-header h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: normal;

    text-align: center;
}


.english-back {
    display: block;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1rem;

    text-decoration: none;
}


.english-back:hover {
    color: #fff;
}


/* =========================================================
   TEXTE
   ========================================================= */

.english-text {
    color: rgba(255, 255, 255, 0.9);

    font-size: 1rem;

    line-height: 1.7;

    text-align: left;
}


.english-text p {
    margin: 0 0 1.5em;
}


.english-text p:last-child {
    margin-bottom: 0;
}


.english-text a {
    color: #fff;

    text-decoration: underline;
}


.english-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   ENGLISH — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .english-page {
        padding: 40px 20px;
    }


    .english-content {
        width: 85vw;
    }


    .english-header {
        margin-bottom: 45px;
    }


    .english-header h1 {
        font-size: 28px;
    }

}