/* === 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;
        }

/* Web-app footer: its own navigation, a fixed dark palette in both themes. */
.app-footer{position:relative;margin-top:72px;padding:64px max(28px,env(safe-area-inset-left)) calc(30px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 90% 0,rgba(164,35,79,.14),transparent 52%),linear-gradient(135deg,#151c2c,#101521 65%,#191727);color:#edf1fa;border-top:1px solid #ffffff16;text-align:left}
.app-footer::before{content:"";position:absolute;top:0;left:50%;width:72px;height:2px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#fa3567,transparent)}
.app-footer .footer-inner{max-width:1100px;margin:auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:44px 72px}
.footer-introduction{display:flex;gap:22px;align-items:flex-start;max-width:500px}.footer-introduction img{flex:none;object-fit:contain}.footer-introduction p{margin:0}.app-footer .footer-title{color:#f5f7fc;font-size:23px;font-weight:750;letter-spacing:-.035em;line-height:1.3}.app-footer .footer-mission{margin-top:12px;max-width:360px;color:#b8c3d6;font-size:13px;line-height:1.8}
.footer-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.footer-link-group>p{margin:2px 0 12px;color:#9eaec7;font-size:10px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}.footer-navigation a{display:flex;align-items:center;width:fit-content;min-height:38px;color:#e0e6f2;text-decoration:none;font-size:12px;line-height:1.6;text-underline-offset:5px}.footer-navigation a:hover{color:#ff7499;text-decoration:underline}.footer-navigation a:focus-visible{outline:2px solid #ff7499;outline-offset:3px;border-radius:3px}
.footer-bottom{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-top:24px;border-top:1px solid #ffffff18}.app-footer .footer-info{max-width:550px;margin:0;color:#9aaac1;font-size:10px;line-height:1.8}.footer-systems{flex:none;padding-top:2px;color:#aab7cc;font-size:10px;letter-spacing:.02em}
@media(max-width:699px){.app-footer{margin-top:48px;padding:48px max(24px,env(safe-area-inset-left)) calc(var(--sp-bottom-bar-clearance,100px) + 28px)}.app-footer .footer-inner{grid-template-columns:1fr;gap:34px}.footer-introduction{flex-direction:column;align-items:center;text-align:center;max-width:none;gap:18px}.footer-introduction img{width:64px;height:64px}.app-footer .footer-title{font-size:24px}.app-footer .footer-mission{max-width:310px;margin:12px auto 0}.footer-navigation{gap:22px;padding-top:6px}.footer-link-group>p{margin-bottom:10px}.footer-navigation a{min-height:44px;font-size:12px}.footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:14px}.app-footer .footer-info{max-width:330px}}

        /* --- 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;
            }
        }
