@font-face {
    font-family: 'ReactiveAnchor';
    src: url('../fonts/Reactive\ Anchor.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --toolbar-height: 80px;
}

#toolbar-container {
    position: relative;
    z-index: 1000;
}

body {
    margin: 0;
    padding-top: var(--toolbar-height); 
    background-color: transparent; 
}

/* --- TOOLBAR CORE --- */
.toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--toolbar-height);
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between; 

    background: linear-gradient(90deg, #2b5cff, #1e3cff);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    z-index: 1001;
    box-sizing: border-box; 
}

.site-name {
    color: white;
    font-weight: 150;
    font-size: 40px;
    letter-spacing: -0px;
    font-family: "ReactiveAnchor", sans-serif;
    white-space: nowrap;
}

/* --- SOCIAL BUTTONS (CENTRE) --- */
.social-buttons {
    display: flex;
    gap: 14px;
    
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.social-btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.social-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* --- LANG BUTTONS (DROITE) --- */
.lang-buttons {
    display: flex;
    gap: 12px;
}

.toolbar button {
    background: #f4f6fb;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar button:hover {
    background: white;
    transform: translateY(-1px);
}

.toolbar button.active {
    background: rgba(16, 6, 151, 0.9) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-buttons img {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 950px) {
    :root {
        --toolbar-height: auto;
    }

    body {
        padding-top: 0; /* On laisse la toolbar en haut du flux sur mobile si besoin */
    }

    .toolbar {
        position: relative; /* Optionnel : permet à la toolbar de défiler sur mobile */
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .site-name {
        font-size: 26px;
    }

    .social-buttons {
        position: static; /* Annule le centrage absolu qui cause la collision */
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .lang-buttons {
        justify-content: center;
        width: 100%;
    }
}