:root {
    --background-color: #1e1e1e;
    --text-color: #ebe4d6;
    --primary-color: #ebaf78;
    --secondary-color: #a47764;
    --tertiary-color: #be795c;
    --border-color: #d9d9d9;
    --border-radius: 50px;
    --blur-color: #00000078;
    --blur-size: 20px;
    --bubble-color: #f8b8843e;
    --gradient-color: rgb(233, 171, 113);
    --footer-height: 200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "all-round-gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.background_color {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(ellipse at center, #2a2520 0%, var(--background-color) 70%);
}

.contrast_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    mix-blend-mode: overlay;
    background-color: #000000;
    opacity: 0.2;
    pointer-events: none;
    z-index: 110000;
}

.noise::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.05;
    z-index: 10000;
    pointer-events: none;
    background: url(../assets/img/noise.gif);
    background-size: 200px;
}

html::-webkit-scrollbar {
    width: 8px;
    background: var(--background-color);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
}

/* █▀▀ █ █ █▀█ █▀ █▀█ █▀█ */
/* █▄▄ █▄█ █▀▄ ▄█ █▄█ █▀▄ */

.cursor {
    pointer-events: none;
    position: fixed;
    display: none;
    border-radius: 0;
    mix-blend-mode: normal;
    z-index: 99999;
    mix-blend-mode: screen;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    scale: 0.905;
}

.circle {
    pointer-events: none;
    transition: none;
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 20px !important;
    background-color: var(--primary-color) !important;
}

.scaled {
    transform: scale(1.5) !important;
}

*::hover {
    cursor: none !important;
}

::selection {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* LOADER */
.loadeur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    z-index: 100000;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.loadeur_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.loadeur_logo {
    width: 180px;
    height: 180px;
    cursor: pointer;
    filter: drop-shadow(0 0 30px var(--primary-color));
    animation: logoSparkle 3s ease-in-out infinite;
}

@keyframes logoSparkle {
    0%, 100% { 
        filter: drop-shadow(0 0 20px var(--primary-color)) brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 50px var(--primary-color)) brightness(1.3);
        transform: scale(1.05);
    }
}

.loadeur_content_text h1 {
    font-size: clamp(60px, 10vw, 90px);
    font-weight: 700;
    letter-spacing: clamp(4px, 1.2vw, 8px);
    text-align: center;
    color: var(--text-color);
    margin: 0;
}

.open_loadeur {
    transform: translateY(-100%);
}

/* HEADER */
.logo_head {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    filter: drop-shadow(0 0 20px var(--primary-color));
    cursor: pointer;
}

.logo_head:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px var(--primary-color));
}

.nametag {
    position: fixed;
    top: 35px;
    right: 38px;
    z-index: 1000;
    font-size: 23px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nametag .firstball,
.nametag .secondball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    position: absolute;
    aspect-ratio: 1/1;
    z-index: 1000;
}

.nametag .firstball {
    left: 12px;
}

.nametag .secondball {
    right: 12px;
}

.nametag p {
    z-index: 1000;
}

.nametag {
    transition: all 0.3s ease;
}

.nametag:hover {
    filter: contrast(1.2);
    transform: scale(1.05);
}

.back_button {
    position: fixed;
    top: 30px;
    left: 80px;
    z-index: 11000;
    display: flex;
    align-items: center;
}

.back_button a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
    align-items: center;
}

.back_button a:hover {
    background: rgba(235, 175, 120, 0.2);
    border-color: var(--tertiary-color);
}

/* HERO SECTION */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#threejs-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.eclat-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: clamp(60px, 12vw, 120px);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 40px var(--primary-color);
    letter-spacing: clamp(4px, 1vw, 12px);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: eclatGlow 3s ease-in-out infinite alternate;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

@keyframes eclatGlow {
    from { 
        text-shadow: 0 0 30px var(--primary-color);
        filter: brightness(1);
    }
    to { 
        text-shadow: 0 0 60px var(--primary-color);
        filter: brightness(1.3);
    }
}

/* FOOTER */
footer {
    position: absolute;
    top: calc(100vh + 100vh - var(--footer-height) + 50px);
    left: 0;
    width: calc(100% - 2px);
    padding: 0px;
    margin: 0px;
    height: var(--footer-height);
    background: rgba(0, 0, 0, 0.47);
    mix-blend-mode: screen;
    filter: contrast(1.1);
    border: 1px solid #ffffff;
    border-bottom: none;
    box-shadow: 0px 0px 59.1px rgba(215, 141, 102, 0.32);
    backdrop-filter: blur(10px);
    z-index: 10000;
    border-radius: var(--border-radius) var(--border-radius) 0px 0px;
    overflow: hidden;
}

.title_footer_container {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10000;
    width: 145px;
    height: 60px;
}

.footer_title {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    position: absolute;
    top: -15px;
    left: 0px;
}

.footer_subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: -5px;
    right: 0px;
}

.footer_links {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 200px);
    max-width: 760px;
    height: calc(100% - 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.footer_links .box_link {
    flex: 1 1 0;
    max-width: 300px;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 10px;
    box-sizing: border-box;
    position: relative;
}

.footer_links .box_link h3 {
    width: 100%;
    box-sizing: border-box;
}

.footer_links .box_link h3 {
    font-size: 27px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

.footer_links .box_link a {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    margin-left: 15px;
    text-decoration: none;
    font-style: italic;
}

.footer_links .box_link hr {
    height: 100%;
    background-color: var(--text-color);
    margin: 10px 0;
    width: 2px;
    position: absolute;
    top: 30px;
    left: 5px;
}

.footer_links .box_link .links {
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
}

.logo_footer img {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 60px;
    height: 60px;

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

.footer_bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*800px*/
@media (max-width: 800px) {
    
    /* Empêcher le scroll horizontal sur mobile et permettre de faire défiler jusqu'à la fin */
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .loadeur_logo {
        width: 120px;
        height: 120px;
    }

    footer {
        height: 230px;
        top: calc(100vh + 950px);
        transform: translateY(-100%);
    }

    .title_footer_container {
        height: 45px;
        width: 105px;
        left: 50%;
        top: 10px;
        transform: translateX(-50%);
    }

    .footer_title {
        top: -10px;
        font-size: 35px;
    }

    .footer_subtitle {
        font-size: 15px;
    }

    .logo_footer img {
        width: 30px;
        height: 30px;
    }

    .footer_links {
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translate(-50%, 0);
        width: calc(100% - 20px);
        max-width: 760px;
        height: calc(100% - 85px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .footer_links .box_link h3 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.5;
        color: var(--text-color);
        margin: 0;
    }

    .footer_links .box_link a {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        color: var(--text-color);
        margin: 0;
        margin-left: 15px;
        text-decoration: none;
        font-style: italic;
    }

    .footer_links .box_link hr {
        height: 100%;
        background-color: var(--text-color);
        margin: 10px 0;
        width: 2px;
        position: absolute;
        top: 15px;
        left: 5px;
    }

    .footer_links .box_link .links {
        position: absolute;
        top: 23px;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-around;
    }
}