* {
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* =========== HEADER ========== */
.sd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px;
    background: linear-gradient(to right, #351e5a, #5e2d7e);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}


.logo a {
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    text-decoration: none;
    gap: 8px;
}

.logo a:hover {
    font-size: 32px;
    font-weight: bold;
    color: rgba(243, 232, 255, 0.918);
    display: flex;
    text-decoration: none;
}

nav, .language-selector-burger {
    display: none;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    transition: 0.3s ease-in-out;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    line-height: 1;
}

.selected-language i {
    font-size: 14px;
    margin-top: 2px; /* ajuste si l'icône descend trop */
}

.language-selector img {
    width: 28px;
    height: 18px;
    object-fit: cover;
    display: block;
}


.language-selector {
    display: flex;
    align-items: center;
    position: relative;
    gap: 6px;
    cursor: pointer;
    color: white;
}


.language-dropdown {
    position: absolute;
    top: 36px;
    right: 0;
    background-color: #351e5a;
    border: 1px solid #8882;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    min-width: 140px;
}

.language-dropdown.show {
    display: flex;
}

.language-dropdown li {
    list-style: none;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-dropdown li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}



.burger-menu {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

@media (max-width: 1080px) {
    .sd-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 0;
    }

    .logo {
        text-align: center;
        margin-bottom: 10px;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        justify-content: center;
    }

    .language-selector {
        text-align: center;
        margin-top: 12px;
    }
}

@media (max-width: 720px) {
    .sd-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        position: relative;
        text-align: left;
    }

    .logo {
        order: -1;
        text-align: left;
        margin-bottom: 0;
        font-size: 28px;
    }

    .burger-menu {
        display: block;
        font-size: 28px;
        color: white;
        cursor: pointer;
        margin-left: auto;
    }

    nav {
        position: absolute;
        top: 75px;
        right: 0;
        width: 100%;
        background: linear-gradient(to right, #8035a3f3, #4e4eb6f1);
        text-align: center;
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav.show {
        display: block;
    }

    .language-selector {
        top: -8px;
    }
}

@media (max-width: 480px) { 
    .logo {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .burger-menu {
        font-size: 24px;
    }

    .language-selector img {
        width: 24px;
        height: 14px;
    }
}

@media (max-width: 380px) { 
    .logo {
        font-size: 18px;
        margin-bottom: 14px;

    }

    .burger-menu {
        font-size: 18px;
    }

    .language-selector img {
        width: 18px;
        height: 10px;
    }
}
    


/* =========== SCROLLBAR PERSONNALISÉE (Bleu-Violet) ========== */

::-webkit-scrollbar {
    width: 12px; 
}

::-webkit-scrollbar-track {
    background: #1a1a40; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4b0082, #6a5acd, #8a2be2); 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #3a006e, #5a4acb, #7b1fd2); 
}

* {
    scrollbar-width: thin; 
    scrollbar-color: #6a5acd #1a1a40; 
}



