/* ==========================================================
   NOIR MATIÈRE
   MENU — MATIÈRE / PEINTURE
   5 ENTRÉES
   ========================================================== */


/* ==========================================================
   CONTENEUR PRINCIPAL
   ========================================================== */

#art-menu {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 50;

}


/* ==========================================================
   ORBITE
   ========================================================== */

.menu-orbit {

    position: absolute;

    left: 50%;
    top: 50%;

    width: min(72vw, 900px);
    height: min(72vw, 900px);

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255,255,255,.035);

    border-radius: 50%;

    pointer-events: none;

    animation:
        menuOrbit
        55s
        linear
        infinite;

}


@keyframes menuOrbit {

    from {

        transform:
            translate(-50%, -50%)
            rotate(0deg);

    }

    to {

        transform:
            translate(-50%, -50%)
            rotate(360deg);

    }

}


/* ==========================================================
   CONTENEUR DES LIENS
   ========================================================== */

.menu-items {

    position: absolute;

    inset: 0;

    pointer-events: none;

}


/* ==========================================================
   LIENS
   ========================================================== */

.menu-link {

    position: absolute;

    display: block;

    color: #ffffff;

    text-decoration: none;

    pointer-events: auto;

    opacity: .72;

    transform-origin: center;

    transition:
        opacity .7s ease,
        filter .7s ease;

}


/* ==========================================================
   TYPOGRAPHIE
   ========================================================== */

.menu-link strong {

    display: block;

    position: relative;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            30px,
            4.6vw,
            72px
        );

    line-height: .9;

    font-weight: 400;

    letter-spacing:
        -.035em;

    white-space: nowrap;

}


/* ==========================================================
   MATIÈRE DU MOT
   ========================================================== */

.menu-link strong::before {

    content: "";

    position: absolute;

    z-index: -1;

    left: -8%;

    top: 18%;

    width: 116%;

    height: 65%;

    background:
        rgba(
            255,
            255,
            255,
            .055
        );

    filter:
        blur(18px);

    border-radius:
        48% 52% 43% 57% /
        55% 40% 60% 45%;

    transform:
        rotate(-3deg)
        scaleX(1.05);

    opacity: .5;

}


/* ==========================================================
   TRAIT DE MATIÈRE
   ========================================================== */

.menu-link strong::after {

    content: "";

    position: absolute;

    left: -4%;

    bottom: -8px;

    width: 108%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.3),
            transparent
        );

    filter:
        blur(1px);

    transform:
        rotate(
            var(--stroke-angle, -1deg)
        );

    opacity: .5;

}


/* ==========================================================
   POSITIONNEMENT DES 5 MOTS
   ========================================================== */


/*
   ACCUEIL
   Haut gauche
*/

.menu-link-1 {

    left: 7vw;

    top: 16vh;

    --stroke-angle: -2deg;

}


/*
   EXPOSITION
   Haut droit
*/

.menu-link-2 {

    right: 7vw;

    top: 22vh;

    --stroke-angle: 1.5deg;

}


/*
   ARTISTES
   Bas gauche
*/

.menu-link-3 {

    left: 9vw;

    bottom: 22vh;

    --stroke-angle: 2deg;

}


/*
   CONTACT
   Bas droit
*/

.menu-link-4 {

    right: 8vw;

    bottom: 19vh;

    --stroke-angle: -1.5deg;

}


/*
   RENCONTRE
   Milieu bas
*/

.menu-link-5 {

    left: 50%;

    bottom: 7vh;

    transform:
        translateX(-50%);

    --stroke-angle: 1deg;

}


/* ==========================================================
   ROTATIONS INDIVIDUELLES
   ========================================================== */

.menu-link-1 strong {

    transform:
        rotate(-3deg);

}


.menu-link-2 strong {

    transform:
        rotate(2deg);

}


.menu-link-3 strong {

    transform:
        rotate(-1.5deg);

}


.menu-link-4 strong {

    transform:
        rotate(2.5deg);

}


.menu-link-5 strong {

    transform:
        rotate(-1.5deg);

}


/* ==========================================================
   SURVOL
   ========================================================== */

.menu-link:hover {

    opacity: 1;

    filter:
        brightness(1.25);

}


.menu-link:hover strong {

    transform:
        scale(1.08)
        rotate(0deg);

}


/* ==========================================================
   ÉTAT ACTIF
   ========================================================== */

.menu-link.active {

    opacity: 1;

}


.menu-link.active strong {

    text-shadow:
        0 0 18px
        rgba(255,255,255,.25);

}


/* ==========================================================
   BOUTON MOBILE
   ========================================================== */

#menu-toggle {

    display: none;

    position: fixed;

    right: 22px;
    top: 22px;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    pointer-events: auto;

    z-index: 60;

}


#menu-toggle span {

    position: absolute;

    left: 11px;

    width: 26px;
    height: 1px;

    background: #ffffff;

    transition:
        transform .5s ease,
        top .5s ease;

}


#menu-toggle span:first-child {

    top: 21px;

}


#menu-toggle span:last-child {

    top: 27px;

}


/* ==========================================================
   MENU MOBILE OUVERT
   ========================================================== */

#art-menu.menu-open #menu-toggle span:first-child {

    top: 24px;

    transform:
        rotate(45deg);

}


#art-menu.menu-open #menu-toggle span:last-child {

    top: 24px;

    transform:
        rotate(-45deg);

}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 900px) {

    .menu-link strong {

        font-size:
            clamp(
                28px,
                5.8vw,
                55px
            );

    }


    .menu-link-1 {

        left: 5vw;

        top: 14vh;

    }


    .menu-link-2 {

        right: 5vw;

        top: 23vh;

    }


    .menu-link-3 {

        left: 6vw;

        bottom: 23vh;

    }


    .menu-link-4 {

        right: 5vw;

        bottom: 20vh;

    }


    .menu-link-5 {

        left: 50%;

        bottom: 8vh;

        transform:
            translateX(-50%);

    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    #menu-toggle {

        display: block;

    }


    .menu-orbit {

        width: 125vw;

        height: 125vw;

    }


    .menu-items {

        position: fixed;

        inset: 0;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;

        gap: 25px;

        padding:
            0 10vw;

        background:
            rgba(
                0,
                0,
                0,
                .94
            );

        opacity: 0;

        visibility: hidden;

        transform:
            translateX(30px);

        transition:
            opacity .6s ease,
            transform .7s ease,
            visibility .6s;

    }


    #art-menu.menu-open .menu-items {

        opacity: 1;

        visibility: visible;

        transform:
            translateX(0);

        pointer-events: auto;

    }


    .menu-link {

        position: relative;

        left: auto;
        right: auto;
        top: auto;
        bottom: auto;

        transform: none;

    }


    .menu-link strong {

        font-size:
            clamp(
                40px,
                12vw,
                68px
            );

    }


    .menu-link-1 strong {

        transform:
            rotate(-3deg);

    }


    .menu-link-2 strong {

        transform:
            rotate(2deg);

    }


    .menu-link-3 strong {

        transform:
            rotate(-2deg);

    }


    .menu-link-4 strong {

        transform:
            rotate(2deg);

    }


    .menu-link-5 strong {

        transform:
            rotate(-2deg);

    }

}


/* ==========================================================
   PETITS TÉLÉPHONES
   ========================================================== */

@media (max-width: 380px) {

    .menu-items {

        gap: 19px;

        padding:
            0 9vw;

    }


    .menu-link strong {

        font-size: 37px;

    }

}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .menu-orbit {

        animation: none;

    }

}