/* === No results, footer, animations, back-to-top === */
        /* --- 10. NO RESULTS --- */
        .no-results {
            display: none;
            text-align: center;
            padding: 4rem 2rem;
            background: var(--bg-card);
            border-radius: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .no-results.visible {
            display: block;
        }

        .no-results-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .no-results h3 {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--text-primary);
        }

        .no-results p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 0.5rem;
        }

        /* --- 11. FOOTER --- */
        .app-footer {
            background: var(--footer-bg);
            color: var(--footer-text);
            padding: 2rem 1rem;
            margin-top: 2rem;
            text-align: center;
        }

        .footer-inner {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
        }

        .footer-brand {
            font-size: 1rem;
            font-weight: 800;
            color: #f1f5f9;
        }

        .footer-brand .accent {
            color: var(--accent);
        }

        .footer-info {
            font-size: 0.7rem;
            color: var(--footer-text);
            line-height: 1.6;
        }

        .footer-badges {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .footer-badge {
            font-size: 0.6rem;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.3rem 0.7rem;
            border-radius: 2rem;
            color: var(--footer-text);
        }

        /* --- 12. ANIMATIONS --- */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideUpEntrance {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* --- 12b. BACK TO TOP & EXTRA COMPONNENTS --- */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 90;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            border: none;
            box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4);
            background: var(--accent-hover);
        }

        .back-to-top svg {
            width: 24px;
            height: 24px;
            stroke-width: 2.5;
        }

        .back-to-top.is-hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
        }

        /* Mise à jour PWA : visible sans recouvrir le contenu ni forcer un
           rechargement pendant que l'utilisateur travaille. */
        .pwa-update-banner {
            position: fixed;
            left: 50%;
            bottom: max(1rem, env(safe-area-inset-bottom));
            z-index: 10020;
            display: grid;
            grid-template-columns: 2.25rem minmax(0, 1fr) auto;
            align-items: center;
            gap: 0.7rem;
            width: min(24rem, calc(100vw - 2rem));
            max-width: calc(100vw - 2rem);
            padding: 0.65rem;
            border: 1px solid var(--border-color);
            border-radius: 1rem;
            /* Repli opaque ; le verre ne dépend pas de l'opacité de --bg-card. */
            background: var(--bg-card);
            color: var(--text-primary);
            -webkit-backdrop-filter: blur(24px) saturate(165%);
            backdrop-filter: blur(24px) saturate(165%);
            box-shadow:
                0 14px 36px rgba(15, 23, 42, 0.2),
                var(--glass-highlight);
            font-size: 0.82rem;
            overflow: hidden;
            isolation: isolate;
            transform: translateX(-50%);
            transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
            animation: pwa-update-enter .28s cubic-bezier(.2, .8, .2, 1);
        }

        @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
            .pwa-update-banner {
                background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(231,240,255,.60));
                border-color: rgba(255,255,255,.72);
            }
            [data-theme="dark"] .pwa-update-banner {
                background: linear-gradient(135deg, rgba(30,42,64,.82), rgba(20,31,52,.68));
                border-color: rgba(202,222,255,.24);
            }
        }

        .pwa-update-icon {
            display: grid;
            width: 2.25rem;
            height: 2.25rem;
            place-items: center;
            border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
            border-radius: 0.75rem;
            background: var(--accent-light);
            color: var(--accent);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .pwa-update-icon svg {
            width: 1.05rem;
            height: 1.05rem;
        }

        .pwa-update-copy {
            display: grid;
            min-width: 0;
        }

        .pwa-update-message {
            line-height: 1.3;
            font-weight: 700;
            letter-spacing: -0.01em;
            text-wrap: balance;
        }

        .pwa-update-action {
            border: 0;
            min-height: 2.35rem;
            border-radius: 0.72rem;
            padding: 0.55rem 0.85rem;
            background: var(--accent);
            color: #fff;
            font: inherit;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 28%, transparent);
            cursor: pointer;
            transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
        }

        .pwa-update-action:hover {
            filter: brightness(1.04);
            transform: translateY(-1px);
            box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 34%, transparent);
        }

        .pwa-update-action:active {
            transform: translateY(0) scale(0.98);
        }

        .pwa-update-action:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
        }

        .pwa-update-action:disabled {
            cursor: wait;
            opacity: 0.7;
            transform: none;
        }

        @keyframes pwa-update-enter {
            from {
                opacity: 0;
                transform: translate(-50%, 10px) scale(0.97);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0) scale(1);
            }
        }

        @media (max-width: 1023px) {
            .pwa-update-banner {
                bottom: calc(7.15rem + env(safe-area-inset-bottom));
            }
        }

        @media (max-width: 360px) {
            .pwa-update-banner {
                grid-template-columns: 2.1rem minmax(0, 1fr);
                gap: 0.6rem;
            }

            .pwa-update-icon {
                width: 2.1rem;
                height: 2.1rem;
            }

            .pwa-update-action {
                grid-column: 1 / -1;
                width: 100%;
                min-height: 2.2rem;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .pwa-update-banner {
                animation: none;
            }
        }
