/* --- Styles Généraux --- */
.topbar {
    background-color: #002654;
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.topbar-left { padding-left: 30px; }
.slogan { color: white; font-weight: 700; font-size: 13px; text-transform: uppercase; }

/* --- Bloc Droite avec Dégradé --- */
.topbar-right {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #0099db 0%, #00bfff 100%);
    height: 100%;
    padding: 0 20px 0 0px;
    position: relative;
}

.topbar-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 40px;
    height: 100%;
    background: #0099db;
    transform: skewX(-25deg);
}

/* --- Icônes Réseaux --- */
.social-icons {
    display: flex;
    gap: 10px;
    margin-right: 10px;
    z-index: 1;
}

.social-icons a { color: white; font-size: 16px; }

/* --- Gestion des Drapeaux (Même Taille) --- */
.language-flags {
    display: flex;
    gap: 8px;
    z-index: 1;
    align-items: center;
}

.flag-link img {
    /* Dimensions identiques forcées */
    width: 32px; 
    height: 22px; 
    
    display: block;
    object-fit: cover; /* Important : évite de déformer l'image */
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.flag-link:hover img {
    transform: scale(1.15);
}

/* Configuration pour les écrans mobiles (moins de 768px) */
@media (max-width: 767px) {
    .topbar-wrapper {
        display: flex;
        flex-direction: column; /* Aligne les éléments verticalement */
        align-items: center;    /* Centre horizontalement */
        text-align: center;
       
    }

    .topbar-left {
        width: 100%;
        margin-top: 10px;    /* Espace entre le texte et les icônes */
        order: 1;               /* Force le texte à être tout en haut */
    }

    .topbar-right {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
        order: 2;
         margin-bottom: 10px;    /* Espace entre le texte et les icônes */
    }
}