/* ==========================================================
   NOIR MATIÈRE
   STYLE PRINCIPAL
   ========================================================== */


/* ==========================================================
   BASE
   ========================================================== */

html,
body {

    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    background: #000000;
    color: #ffffff;

}

body {

    overflow-x: hidden;

}


/* ==========================================================
   PROFILS SVG
   ========================================================== */

.svg-container {

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 2;

    opacity: .5;

}


.svg-container .layer {

    position: absolute;

    top: 0;
    left: 0;

    width: 100vw;
    height: auto;

    max-width: none;

    display: block;

    pointer-events: none;

}


.svg-container .layer-2 {

    z-index: 2;

    width: 100vw;
    min-width: 100vw;

    height: auto;

    max-width: none;

}


/* ==========================================================
   PROFILS — ÉCRANS VERTICAUX
   ========================================================== */

@media (max-aspect-ratio: 1/1) {

    .svg-container .layer-2 {

        width: 100vw;
        height: 100vh;

        min-width: 0;
        max-width: 100vw;

        max-height: 100vh;

        object-fit: fill;

    }

}


/* ==========================================================
   MOBILE — PROFILS
   ========================================================== */

@media (max-width: 700px) {

    .svg-container {

        width: 100vw;
        height: 100vh;

    }


    .svg-container .layer {

        width: 100vw;
        height: auto;

        min-width: 100vw;
        max-width: none;

    }


    .svg-container .layer-2 {

        width: 100vw;
        height: auto;

        min-width: 100vw;
        max-width: none;

        top: 0;
        left: 0;

    }

}


/* ==========================================================
   ACCUEIL PRINCIPAL
   ========================================================== */

.accueil-page {

    position: relative;

    width: 100%;
    min-height: 100vh;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        120px
        20px
        100px;

    pointer-events: none;

}


.accueil-content {

    width: min(90vw, 600px);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    pointer-events: auto;

}


/* ==========================================================
   TEXTE ACCUEIL
   ========================================================== */

.accueil-intro {

    margin: 0;

    max-width: 500px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(
            12px,
            1.4vw,
            16px
        );

    line-height: 1.7;

    letter-spacing: .18em;

    text-transform: uppercase;

    color:
        rgba(
            255,
            255,
            255,
            .65
        );

}


/* ==========================================================
   BOUTON ENTRER
   ========================================================== */

.accueil-enter {

    margin-top: 32px;

    padding:
        12px
        28px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .45
        );

    background: transparent;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    letter-spacing: .32em;

    cursor: pointer;

    transition:
        background .35s ease,
        color .35s ease,
        border-color .35s ease;

}


.accueil-enter:hover {

    background: #ffffff;

    color: #000000;

    border-color: #ffffff;

}


/* ==========================================================
   CONTENEUR DES PAGES INJECTÉES
   ========================================================== */

/*
 * IMPORTANT :
 *
 * Le conteneur est complètement neutre lorsqu'il
 * est vide.
 *
 * Il ne réserve donc AUCUN espace sur la page
 * d'accueil initiale.
 */

#page-container {

    position: relative;

    width: 100%;

    height: 0;

    min-height: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    z-index: 30;

}


/*
 * Dès qu'une page est injectée,
 * le conteneur reprend sa hauteur naturelle.
 */

#page-container:has(> .page) {

    height: auto;

    min-height: 0;

}


/* ==========================================================
   PAGE INJECTÉE
   ========================================================== */

#page-container > .page {

    position: relative;

    display: block;

    width: 100%;

    min-height: 100vh;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


/* ==========================================================
   CONTENU DE LA PAGE
   ========================================================== */

#page-container .page-content {

    position: relative;

    width: 100%;

    box-sizing: border-box;

}


/* ==========================================================
   LIENS ET BOUTONS DES PAGES
   ========================================================== */

#page-container a,
#page-container button {

    pointer-events: auto;

}


/* ==========================================================
   CHARGEMENT
   ========================================================== */

#page-container.page-loading {

    opacity: .35;

    transition:
        opacity .25s ease;

}


#page-container:not(.page-loading) {

    opacity: 1;

    transition:
        opacity .4s ease;

}


/* ==========================================================
   TRÈS IMPORTANT :
   CONTENEUR VIDE
   ========================================================== */

/*
 * Tant qu'aucune page n'est injectée,
 * le conteneur est totalement invisible
 * et ne possède aucune hauteur.
 */

#page-container:empty {

    display: none;

}


/*
 * Si le JavaScript laisse un espace blanc,
 * cette règle supprime également les éléments
 * vides éventuels.
 */

#page-container:not(:has(> .page)) {

    display: none;

}


/* ==========================================================
   FOOTER
   ========================================================== */

#footer-container {

    position: relative;

    width: 100%;

    box-sizing: border-box;

    z-index: 20;

}


/* ==========================================================
   ÉLÉMENTS PRINCIPAUX
   ========================================================== */

#canvas,
.svg-container,
#title-svg,
#menu-container {

    pointer-events: none;

}


/*
 * Le menu doit toutefois rester cliquable.
 */

#menu-container {

    pointer-events: auto;

}


/* ==========================================================
   MOBILE — ACCUEIL
   ========================================================== */

@media (max-width: 700px) {

    .accueil-page {

        min-height: 100vh;

        padding:
            100px
            16px
            80px;

    }


    .accueil-intro {

        width: 82vw;

        max-width: 500px;

        font-size: 11px;

        line-height: 1.8;

        letter-spacing: .14em;

    }


    .accueil-enter {

        margin-top: 26px;

        padding:
            11px
            24px;

        font-size: 10px;

        letter-spacing: .25em;

    }

}

/* ==========================================================
   CORRECTION TITRE — SMARTPHONE
   ========================================================== */

@media (max-width: 700px) {

    #title-svg {

        position: absolute;

        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        width: 100vw;
        max-width: 100vw;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box;

    }

}






/* ==========================================================
   FIN
   ========================================================== */