/* Styles de includes/footer.php */

        /* ---- Pied de page : sobre, institutionnel (aplat, bordures fines, pas d'effet au survol) ---- */
        .footer {
            background: #1f2d3a;
            color: rgba(255, 255, 255, 0.78);
            padding: 3.5rem 0 1.5rem;
            margin-top: 4rem;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .footer a {
            color: rgba(255, 255, 255, 0.78);
            text-decoration: none;
        }

        .footer a:hover,
        .footer a:focus-visible {
            color: #fff;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .footer h2 {
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #fff;
            margin: 0 0 1rem;
        }

        .footer-main {
            display: grid;
            grid-template-columns: minmax(260px, 1.2fr) 2fr;
            gap: 3rem;
            padding-bottom: 2.5rem;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            margin-bottom: 1.25rem;
        }

        .footer-brand:hover {
            text-decoration: none !important;
        }

        .footer-brand img {
            flex-shrink: 0;
        }

        .footer-brand strong {
            display: block;
            color: #fff;
            font-size: 1.05rem;
            line-height: 1.3;
        }

        .footer-brand em {
            display: block;
            font-style: normal;
            font-size: 0.82rem;
            color: var(--secondary-color);
        }

        .footer-about {
            margin: 0 0 1.25rem;
            max-width: 34ch;
        }

        .footer-contact {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            font-style: normal;
            margin: 0;
        }

        .footer-nav {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }

        .footer-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-nav li {
            margin-bottom: 0.55rem;
        }

        .footer-newsletter {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem 3rem;
            flex-wrap: wrap;
            padding: 1.75rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        .footer-newsletter h2 {
            margin-bottom: 0.25rem;
        }

        .footer-newsletter p {
            margin: 0;
        }

        .footer-newsletter form {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            flex: 0 1 440px;
        }

        .footer-newsletter input {
            flex: 1 1 220px;
            min-width: 0;
            padding: 0.6rem 0.9rem;
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            font: inherit;
        }

        .footer-newsletter input::placeholder {
            color: rgba(255, 255, 255, 0.55);
        }

        .footer-newsletter input:focus {
            outline: 2px solid var(--secondary-color);
            outline-offset: 1px;
        }

        .footer-newsletter button {
            padding: 0.6rem 1.2rem;
            border: none;
            border-radius: 4px;
            background: var(--secondary-color);
            color: var(--dark-color);
            font-weight: 700;
        }

        .footer-newsletter .newsletter-feedback {
            flex-basis: 100%;
        }

        .footer-newsletter .newsletter-feedback:empty {
            display: none;
        }

        .footer-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            padding-top: 1.5rem;
            font-size: 0.85rem;
        }

        .footer-bottom p {
            margin: 0;
        }

        .footer-social {
            display: flex;
            gap: 1.1rem;
            font-size: 1.1rem;
        }

        .footer-social a:hover {
            text-decoration: none;
        }

        @media (max-width: 991px) {
            .footer-main {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }
        }

        @media (max-width: 575px) {
            .footer-nav {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.75rem 1.25rem;
            }

            .footer-bottom {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        .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;
            }
        }
