: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;
}

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

.background_color {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    z-index: -1;
    background-color: var(--background-color);
}

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

.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;
}

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

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

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            var(--primary-color) 20%,
            var(--tertiary-color) 100%);
}

html::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 8px;
}

/* Pour Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

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

.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);
}


/* ██╗       ██████╗   █████╗  ██████╗  ███████╗ ██████╗  */
/* ██║      ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔════╝ ██╔══██╗ */
/* ██║      ██║   ██║ ███████║ ██║  ██║ █████╗   ██████╔╝ */
/* ██║      ██║   ██║ ██╔══██║ ██║  ██║ ██╔══╝   ██╔══██╗ */
/* ███████╗ ╚██████╔╝ ██║  ██║ ██████╔╝ ███████╗ ██║  ██║ */
/* ╚══════╝  ╚═════╝  ╚═╝  ╚═╝ ╚═════╝  ╚══════╝ ╚═╝  ╚═╝ */
.loadeur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    background-color: var(--background-color);
    z-index: 100000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.loadeur_content_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loadeur_content_text h1 {
    font-size: 90px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    text-align: center;
}

@media (max-width: 800px) {
    footer {
        height: 230px !important;
    }
    .loadeur_content_text h1 {
        font-size: clamp(60px, 10vw, 90px);
        font-weight: 700;
        letter-spacing: clamp(4px, 1.2vw, 8px);
    }
    .loadeur_logo {
        max-width: 120px;
    }
}

.loadeur_logo {
    position: relative;
    max-width: 220px;
    aspect-ratio: 1/1;
    width: calc(100vw - 250px);
animation: logoGlow 2s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 20px var(--primary-color));
    }

    to {
        filter: drop-shadow(0 0 40px var(--primary-color));
    }
}

.loadeur_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.open_loadeur {
    transform: translateY(-100%);
}
/* ██╗  ██╗ ███████╗  █████╗  ██████╗  ███████╗ ██████╗  */
/* ██║  ██║ ██╔════╝ ██╔══██╗ ██╔══██╗ ██╔════╝ ██╔══██╗ */
/* ███████║ █████╗   ███████║ ██║  ██║ █████╗   ██████╔╝ */
/* ██╔══██║ ██╔══╝   ██╔══██║ ██║  ██║ ██╔══╝   ██╔══██╗ */
/* ██║  ██║ ███████╗ ██║  ██║ ██████╔╝ ███████╗ ██║  ██║ */
/* ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ ╚═════╝  ╚══════╝ ╚═╝  ╚═╝ */
.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: absolute;
    top: 10px;
    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);
}

/* ███╗   ███╗  █████╗  ██╗ ███╗   ██╗ */
/* ████╗ ████║ ██╔══██╗ ██║ ████╗  ██║ */
/* ██╔████╔██║ ███████║ ██║ ██╔██╗ ██║ */
/* ██║╚██╔╝██║ ██╔══██║ ██║ ██║╚██╗██║ */
/* ██║ ╚═╝ ██║ ██║  ██║ ██║ ██║ ╚████║ */
/* ╚═╝     ╚═╝ ╚═╝  ╚═╝ ╚═╝ ╚═╝  ╚═══╝ */

/* Scène nocturne: lueur centrale et légende */
.nocturne-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nocturne-caption {
    position: absolute;
    top: calc(50% + 180px);
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 30px;
    padding: 0 16px;
    color: var(--primary-color);
    font-size: clamp(20px, 3.6vw, 40px);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(235, 175, 120, 0.25);
    z-index: 2;
}

.pulse-glow {
    position: absolute;
    top: calc(50% - 30px);
    left: 50%;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(235,175,120,0.58) 0 14%,
        rgba(235,175,120,0.24) 40%,
        rgba(235,175,120,0.08) 62%,
        rgba(235,175,120,0.00) 76%
    );
    filter: blur(20px) contrast(1.03);
    will-change: transform, opacity;
    animation: nocturnePulse 3s ease-in-out infinite;
}

/* couche interne supprimée pour éviter un second halo */

/* (halo externe volontairement désactivé) */

@keyframes nocturnePulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.85; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.85; }
}


/* ███████╗  ██████╗   ██████╗  ████████╗ ███████╗ ██████╗  */
/* ██╔════╝ ██╔═══██╗ ██╔═══██╗ ╚══██╔══╝ ██╔════╝ ██╔══██╗ */
/* █████╗   ██║   ██║ ██║   ██║    ██║    █████╗   ██████╔╝ */
/* ██╔══╝   ██║   ██║ ██║   ██║    ██║    ██╔══╝   ██╔══██╗ */
/* ██║      ╚██████╔╝ ╚██████╔╝    ██║    ███████╗ ██║  ██║ */
/* ╚═╝       ╚═════╝   ╚═════╝     ╚═╝    ╚══════╝ ╚═╝  ╚═╝ */

footer {
    position: absolute;
    top: calc(100vh);
    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;
}