
/* =========================================================
   POLICE
========================================================= */

@font-face {

    font-family: "GraffitiPiece";

    src:
        url("fonts/GraffitiPieceRegular-gwXVE.ttf")
        format("truetype");

    font-weight: normal;

    font-style: normal;

}


/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    -webkit-user-select: none;

    -moz-user-select: none;

    -ms-user-select: none;

    user-select: none;

}

::selection {

    background: transparent;

    color: inherit;

}

::-moz-selection {

    background: transparent;

    color: inherit;

}

img {

    -webkit-user-drag: none;

    user-drag: none;

    -webkit-user-select: none;

    -moz-user-select: none;

    -ms-user-select: none;

    user-select: none;

    -webkit-touch-callout: none;

}


/* =========================================================
   HTML
========================================================= */

html {

    width: 100%;

    height: 100%;

    overflow: hidden;

}


/* =========================================================
   BODY
========================================================= */

body {

    width: 100%;

    height: 100vh;

    background-color: #000;

    background-image:
        url("images/texture.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    color: #ff0000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow: hidden;

    cursor: none;

}

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

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

    opacity: 0.25;

    z-index: 900;

}

body.page-transition-start::before {

    animation: page-dark-flicker 2.0s ease-out both;

}

@keyframes page-dark-flicker {

    0% {
        opacity: 0;
    }

    8% {
        opacity: 0.30;
    }

    20% {
        opacity: 0.14;
    }

    34% {
        opacity: 0.24;
    }

    48% {
        opacity: 0.16;
    }

    62% {
        opacity: 0.22;
    }

    74% {
        opacity: 0.14;
    }

    82% {
        opacity: 0.10;
    }

    88% {
        opacity: 0.08;
    }

    92% {
        opacity: 0.05;
    }

    96% {
        opacity: 0.03;
    }

    100% {
        opacity: 0;
    }

}


/* =========================================================
   FAUX CURSEUR FEUTRE
========================================================= */

#marker-cursor {

    position: fixed;

    left: 0;

    top: 0;

    width: 150px;

    height: 150px;

    z-index: 99999;

    pointer-events: none;

}


#marker-cursor img {

    width: 150px;

    height: 150px;

    object-fit: contain;

    display: block;

    pointer-events: none;

    user-select: none;

    -webkit-user-select: none;

    -webkit-user-drag: none;

}


/* =========================================================
   CANVAS PEINTURE
========================================================= */

#paint-canvas {

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    z-index: 1;

    pointer-events: none;

}


/* =========================================================
   BANDEAU
========================================================= */

.categories {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 115px;

    background: #000;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 65px;

    z-index: 9999;

}


/* =========================================================
   TITRES
========================================================= */

.category {

    display: block;

    font-family:
        "GraffitiPiece",
        sans-serif;

    font-size: 62px;

    font-weight: normal;

    letter-spacing: 2px;

    text-decoration: none;

    color: #ff0000;

    -webkit-text-stroke: 0;

    position: relative;

    z-index: 10000;

    opacity: 1;

    visibility: visible;

    transition:
        opacity 0.15s ease;

}


/* =========================================================
   SURVOL
========================================================= */

.category:hover {

    color: #ff0000;

    opacity: 0.6;

}


/* =========================================================
   VISUEL
========================================================= */

.hero {

    position: relative;

    z-index: 2;

    width: 100%;

    height: 100vh;

    padding-top: 115px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   CONTENEUR DU VISUEL
========================================================= */

.hero-image {

    width: 90vw;

    height:
        calc(100vh - 145px);

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;

    user-select: none;

    -webkit-user-select: none;

    -moz-user-select: none;

    -ms-user-select: none;

    -webkit-touch-callout: none;

}


/* =========================================================
   IMAGE / PNG
========================================================= */

.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    background: transparent;

    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.52));

    user-select: none;

    -webkit-user-select: none;

    -moz-user-select: none;

    -ms-user-select: none;

    -webkit-user-drag: none;

    user-drag: none;

    pointer-events: none;

    -webkit-touch-callout: none;

}


/* =========================================================
   OUTILS DE PEINTURE
========================================================= */

.paint-controls {

    position: fixed;

    right: -330px;

    bottom: 12px;

    z-index: 20000;

    display: flex;

    align-items: center;

    transition:
        right 0.28s ease;

    pointer-events: none;

}


/* =========================================================
   OUVERTURE
========================================================= */

.paint-controls:hover {

    right: 12px;

}


/* =========================================================
   ZONE DE DÉTECTION
========================================================= */

.paint-controls::before {

    content: "";

    position: absolute;

    right: 0;

    bottom: -5px;

    width: 350px;

    height: 105px;

    z-index: -1;

    pointer-events: auto;

}


/* =========================================================
   IMAGE / LANGUETTE
========================================================= */

.paint-tab {

    width: 58px;

    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #000;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius:
        10px 0 0 10px;

    overflow: hidden;

    pointer-events: auto;

}


.paint-tab img {

    width: 48px;

    height: 48px;

    object-fit: contain;

    display: block;

    pointer-events: none;

    user-select: none;

    -webkit-user-select: none;

    -webkit-user-drag: none;

}


/* =========================================================
   PANNEAU
========================================================= */

.paint-tools {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 10px 13px;

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

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-left: 0;

    border-radius:
        0 10px 10px 0;

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    user-select: none;

    -webkit-user-select: none;

    pointer-events: auto;

}


/* =========================================================
   CONTRÔLES
========================================================= */

.paint-control {

    display: flex;

    align-items: center;

    gap: 7px;

}


.paint-control label {

    font-size: 10px;

    letter-spacing: 1px;

    color: #fff;

}


#paint-color {

    width: 30px;

    height: 30px;

    padding: 0;

    border: 0;

    border-radius: 5px;

    background: transparent;

    cursor: pointer;

}


#paint-size {

    width: 100px;

    cursor: pointer;

}


#paint-size-value {

    min-width: 22px;

    font-size: 11px;

    text-align: center;

    color: #fff;

}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 900px) {

    .categories {

        height: 100px;

        gap: 35px;

        padding: 0 20px;

    }


    .category {

        font-size: 48px;

        letter-spacing: 1px;

    }


    .hero {

        padding-top: 100px;

    }


    .hero-image {

        width: 94vw;

        height:
            calc(100vh - 120px);

    }

}


/* =========================================================
   TÉLÉPHONE
========================================================= */

@media (max-width: 600px) {

    .categories {

        height: 120px;

        gap: 15px;

        padding: 10px 15px;

        flex-wrap: wrap;

    }


    .category {

        font-size: 36px;

        letter-spacing: 1px;

    }


    .hero {

        padding-top: 120px;

    }


    .hero-image {

        width: 96vw;

        height:
            calc(100vh - 105px);

    }


    #marker-cursor {

        width: 112px;

        height: 112px;

    }


    #marker-cursor img {

        width: 112px;

        height: 112px;

    }


    .paint-controls {

        right: -290px;

        bottom: 8px;

    }


    .paint-controls:hover {

        right: 8px;

    }


    .paint-tab {

        width: 52px;

        height: 52px;

    }


    .paint-tab img {

        width: 43px;

        height: 43px;

    }


    .paint-tools {

        gap: 9px;

        padding: 8px 10px;

    }


    #paint-size {

        width: 75px;

    }

}
