/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 70px 40px 30px;
    border-top: 1px solid var(--border-subtle);
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    background: rgba(6, 6, 13, 0.9); /* Légèrement plus opaque pour le côté premium */
}

/* Conteneur principal en Grid */
.footer-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

/* Colonne Logo & Slogan */
.footer .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-slogan {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.footer-tech {
    font-size: 0.8rem;
    color: #555;
}

/* Titres des colonnes */
.footer-column h4 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color var(--transition-spring, 0.3s ease), transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cyan);
    transform: translateX(3px); /* Léger décalage dynamique au survol */
}

/* Ligne inférieure de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* ============================================================
   BOUTON RETOUR EN HAUT & RESPONSIVE
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-strong);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all var(--transition-spring, 0.4s);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    will-change: transform;
    transform: translateZ(0);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--cyan);
    box-shadow: 0 0 35px var(--cyan-glow);
}

/* ============================================================
   BOUTON FLOTTANT TELEGRAM (toujours visible)
   ============================================================ */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #37AEE2 0%, #1E96C8 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10000;               /* au-dessus de .back-to-top (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(42, 171, 238, 0.35);
    /* Transition séparée : bottom reste lisse (sans rebond),
       hover reste spring pour rester dans l'esprit du site */
    transition:
        bottom var(--transition-smooth, 0.4s),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.telegram-float:hover {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
    border-color: #4FC3F7;
    box-shadow:
        0 0 35px rgba(42, 171, 238, 0.7),
        0 8px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Quand la flèche "retour en haut" devient visible, le bouton Telegram
   remonte juste au-dessus (50px de bouton + 15px de marge) */
.back-to-top.visible ~ .telegram-float {
    bottom: 95px;
}

/* Version Tablette / Petit PC */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Version Mobile */
@media (max-width: 576px) {
    .footer {
        text-align: center;
        padding: 50px 20px 30px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 35px;
    }
    .footer-links a:hover {
        transform: none;
        color: var(--violet);
    }
    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .telegram-float {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* 20 (bas) + 40 (flèche) + 12 (marge) = 72px */
    .back-to-top.visible ~ .telegram-float {
        bottom: 72px;
    }
}