@import url("../css/var.css");

.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 2rem 0;
    margin-top: auto; /* Pour le positionnement en bas */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img-footer {
    height: 40px;
    width: auto;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

.version {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Version Mobile */
@media (max-width: 768px) {
    .footer-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-brand {
        flex-direction: column;
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Version mobile */
@media (max-width: 768px) {
    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
}