/* Styles de includes/footer.php (extraits de la page, même ordre) */

        .footer {
            background: linear-gradient(135deg, var(--dark-color), #34495e);
            color: white;
            padding: 4rem 0 1.5rem;
            margin-top: 4rem;
        }

        .footer h5 {
            color: var(--secondary-color);
            margin-bottom: 1.5rem;
            font-weight: 600;
        }

        .footer a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            display: block;
            margin-bottom: 0.6rem;
            transition: all 0.3s;
        }

        .footer a:hover {
            color: var(--secondary-color);
            padding-left: 5px;
        }

        .footer ul li {
            margin-bottom: 0.5rem;
        }

        .social-icons a {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            color: white;
            margin-right: 0.5rem;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-icons a:hover {
            background: var(--secondary-color);
            color: var(--dark-color);
            transform: scale(1.1);
        }

        .back-to-top-btn,
        .ask-question-btn {
            position: fixed;
            right: 20px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--green-color);
            color: #fff;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
            cursor: pointer;
            z-index: 9000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
        }

        .back-to-top-btn {
            bottom: 20px;
        }

        /* Empilé juste au-dessus du bouton "retour en haut" (20px + 48px de hauteur + 10px d'écart) */
        .ask-question-btn {
            bottom: 78px;
        }

        .back-to-top-btn.visible,
        .ask-question-btn.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top-btn:hover,
        .ask-question-btn:hover {
            background: #fff;
            color: var(--green-color);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 0 0 2px var(--green-color);
            transform: translateY(-4px);
        }

        @media (max-width: 480px) {

            .back-to-top-btn,
            .ask-question-btn {
                right: 14px;
                width: 42px;
                height: 42px;
                font-size: 1.1rem;
            }

            .ask-question-btn {
                bottom: 72px;
            }
        }

        /* Relevés au-dessus de la barre IA (bas de page, présente sur index.php) — même seuil que .ai-chat-bar */
        @media (max-width: 576px) {
            .back-to-top-btn.raised {
                bottom: 86px;
            }

            .ask-question-btn.raised {
                bottom: 144px;
            }
        }
