@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

header {
    position: relative;
    color: white;
    font-size: 2.5vh;
    font-family: Raleway;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 1vh;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo{
    height: 7vh;
    width: 7vh;
    flex-wrap: wrap;
}


.nav-links {
    gap: 30px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;

}

.nav-links a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #695C5C;
}

#toggle-theme {
    width: 3.9vh;
    height: 3.9vh;
    border-radius: 50%;
    border: 2px solid var(--text-theme);
    background-color: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
    margin-right: 2rem;
}

#toggle-theme::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--text-theme);
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    z-index: 0;
}

#toggle-theme:hover::before {
    transform: scale(1);
}

#toggle-theme span {
    position: relative;
    z-index: 1;
    color: var(--text-theme);
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    transition: color 0.3s ease;
}

#toggle-theme:hover span {
    color: var(--bg-theme);
}

#toggle-theme:hover {
    border-color: transparent;
}


/*--------------------------------------------------------------------------------------------------------------------*/


#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #695C5C;
    border-radius: 50%;
    background-color: transparent;
    pointer-events: none;
    z-index: 9999;
    /* ❌ SUPPRIMER le translate(-50%, -50%) ici */
    transition: width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
}

#cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: #695C5C;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
}

#cursor-dot,
#cursor-canvas {
    opacity: 0;
    transition: opacity 0.5s ease;
}




:root {
    --cursor-light: #E8DCCB;
    --cursor-dark: #695C5C;
    --cursor-dark-hover: #54637E;
    --text-theme: #695C5C;
    --bg-theme: #E8DCCB;
    --transition-color: #9c4c44;
    --selection: #E8DCCB;
}

[data-theme="dark"] {
    --cursor-light: #E8DCCB;
    --cursor-dark: #54637E;
    --cursor-dark-hover: #695C5C;
    --text-theme: #E8DCCB;
    --bg-theme: #0e1014;
    --transition-color: #404B5F;
    --selection: #404B5F;
}

::selection {
    background: var(--text-theme);
    color: var(--selection);
    text-shadow: none;
}


#page-transition {
    position: fixed;
    inset: 0;
    background-color: var(--transition-color);
    z-index: 9999;
    transform: translateY(0%);
    transition: transform 0.6s ease-in-out;
    pointer-events: none;
}

[data-theme="dark"] .nav-links a {
    color: var(--text-theme); /* Blanc clair de base */
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--cursor-light); /* #E8DCCB par défaut */
}


/*-----------------------------------------SCROLLBAR------------------------------------------------------------------*/

/* Scrollbar globale */
::-webkit-scrollbar {
    width: 10px;
}

/* Track (fond de la scrollbar) */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Thumb (barre de scroll elle-même) */
::-webkit-scrollbar-thumb {
    background-color: var(--accent); /* Couleur principale de ta DA */
    border-radius: 20px;
    border: 2px solid transparent; /* Pour créer une marge interne */
    background-clip: padding-box;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b89a84; /* Un peu plus clair/brillant au hover */
}

/* Supprimer les flèches */
::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

/* Dark mode override */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: #3b4558;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background-color: #65738b;
}


/*-----------------------------------------RESPOONSIVE----------------------------------------------------------------*/


@media (max-width: 768px) {
    #custom-cursor, #cursor-dot, #cursor-canvas {
        display: none;
    }

    * {
        cursor: auto !important;
    }
    #vanta-bg-clouds {
        height: 100%;
    }
    header {
        flex-direction: row;
        justify-content: center;
        align-items: center;


        flex-wrap: wrap;
    }

    .logo {
        height: 6vh;
        width: 6vh;
        flex: 0 0 auto;
    }

    .nav-links {
        flex: 1 1 auto;
        justify-content: center;
        flex-wrap: wrap;

    }

    .nav-links a,
    .nav-links button {
        font-size: 1rem;

    }
    #toggle-theme {
        margin-right: 0rem;
    }


}



