/* Styles communs pour navigation des pages */

/* Sélecteur de langue */
.language-selector-only {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    display: flex;
    gap: 8px;
}

.language-selector-only .flag-selector {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #e0e0e0;
}

.language-selector-only .flag-selector:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.language-selector-only .flag-selector.active {
    background: rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    color: #ffffff;
}

.language-selector-only .flag-selector.active:hover {
    background: rgba(74, 144, 226, 0.4);
}

.language-selector-only .flag-emoji {
    font-size: 16px;
}

.language-selector-only .flag-fallback {
    display: none;
}

/* Bouton retour accueil */
.back-home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2, #7b68ee);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Espacement pour éviter la superposition */
.page-content {
    margin-top: 80px;
}

.main-content {
    margin-top: 80px !important;
}

.container {
    margin-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .language-selector-only .flag-selector {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .language-selector-only .flag-emoji {
        font-size: 14px;
    }
    
    .back-home-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .page-content, .main-content, .container {
        margin-top: 70px !important;
    }
}

@media (max-width: 480px) {
    .language-selector-only {
        top: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .back-home-btn {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 11px;
    }
}