* { margin: 0; padding: 0; box-sizing: border-box; }
        
:root {
            --emerald: #0e7463;
            --emerald-dark: #0a5c4e;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
        }
        
        html { scroll-behavior: smooth; overscroll-behavior-y: auto; color-scheme: light; }
        body.dark { color-scheme: dark; }
        html.sn-theme-swap, html.sn-theme-swap * {
            transition: none !important;
            animation: none !important;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--gray-50);
            color: var(--gray-900);
            line-height: 1.6;
            transition: background 0.2s, color 0.2s;
            max-width: 100%;
            overscroll-behavior-y: auto;
        }
        
        body.dark {
            background: #0a1f1a;
            color: #e5e7eb;
        }
        
        body.low-data img {
            display: none !important;
        }
        
        /* ========== HEADER SIMPLIFIÉ ========== */
        .header {
            position: sticky;
            top: 0;
            background: white;
            border-bottom: 1px solid var(--gray-200);
            padding: 12px 0;
            z-index: 100;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        body.dark .header {
            background: var(--gray-800);
            border-bottom-color: var(--gray-700);
        }

        /* Ordinateur : logo, recherche et boutons sur une seule barre fixe. */
        @media (min-width: 901px) {
            .sn-brand-row {
                position: sticky;
                top: 0;
                z-index: 110;
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 68px;
                margin: 0 0 -68px;
                padding: 0 max(28px, calc((100% - 1280px) / 2 + 24px)) 0 max(40px, calc((100% - 1280px) / 2 + 28px));
                pointer-events: none;
            }
            .sn-brand-row > .logo,
            .sn-brand-row > .controls {
                pointer-events: auto;
            }
            .sn-frame > .header {
                padding-left: max(244px, calc((100% - 1280px) / 2 + 244px));
                padding-right: max(460px, calc((100% - 1280px) / 2 + 450px));
            }
            .sn-frame > .header .header-container {
                max-width: none;
                width: 100%;
                margin: 0;
                padding: 0;
            }
            .sn-frame > .header .search-box {
                width: 100%;
                max-width: none;
                min-width: 0;
                margin: 0;
            }
        }
        
        .header-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--emerald);
            text-decoration: none;
            white-space: nowrap;
        }
        
        .logo:hover {
            opacity: 0.8;
        }
        
        /* Assurer que la search-box est centrée visuellement */
        .search-box {
            flex: 1;
            min-width: 280px;
            max-width: 600px;
            margin: 0 auto; /* ✅ Centré dans l'espace disponible */
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 24px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }
        
        body.dark .search-box {
            background: var(--gray-700);
            border-color: var(--gray-600);
        }
        
        .search-box:focus-within {
            background: white;
            border-color: var(--emerald);
            box-shadow: 0 0 0 3px rgba(0, 152, 121, 0.1);
        }
        
        body.dark .search-box:focus-within {
            background: var(--gray-800);
        }
        
        .search-input {
            flex: 1 1 auto;
            min-width: 0;
            border: none;
            outline: none;
            background: transparent;
            font-size: 0.95rem;
            color: inherit;
        }
        
        .search-input::placeholder {
            color: var(--gray-400);
        }
        
        .btn-icon {
            width: 36px;
            height: 36px;
            border: none;
            background: var(--emerald);
            color: white;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
            flex-shrink: 0;
        }
        
        .btn-icon:hover {
            transform: scale(1.05);
        }
        
        .btn-icon:active {
            transform: scale(0.95);
        }
        
        .controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        .low-data-btn {
            padding: 8px 14px;
            border-radius: 18px;
            border: 1px solid var(--gray-300);
            background: white;
            color: var(--gray-700);
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        body.dark .low-data-btn {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }
        
        .low-data-btn.active {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
        }
        
        #sn-chrome-sentinel {
            height: 1px;
            pointer-events: none;
        }

        /* ========== FILTRES COMPACTS ========== */
        .filters-bar {
            background: white;
            border-bottom: 1px solid var(--gray-200);
            padding: 12px 0;
            position: sticky;
            top: var(--senami-header-h, 72px);
            z-index: 90;
        }
        
        body.dark .filters-bar {
            background: var(--gray-800);
            border-bottom-color: var(--gray-700);
        }
        
        .filters-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        
        .filters-container::-webkit-scrollbar {
            display: none;
        }
        
        .filter-chip {
            padding: 6px 14px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--gray-700);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        body.dark .filter-chip {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }
        
        .filter-chip:hover {
            background: var(--gray-200);
            border-color: var(--gray-300);
        }
        
        body.dark .filter-chip:hover {
            background: var(--gray-600);
        }
        
        .filter-chip.active {
            background: var(--emerald);
            border-color: var(--emerald);
            color: white;
        }
        
        /* ========== LAYOUT PRINCIPAL ========== */
        .main {
            max-width: 1280px;
            margin: 0 auto;
            padding: 24px 20px;
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 24px;
        }
        
        /* ========== SIDEBAR AVEC SCROLLBAR ========== */
        .sidebar {
            position: sticky;
            top: 140px; /* Ajuste selon la hauteur de ton header + filters-bar */
            height: fit-content;
            max-height: calc(100vh - 160px); /* Hauteur viewport - offset */
            overflow-y: auto; /* ✅ Scrollbar vertical */
            overflow-x: hidden;
            padding-right: 8px; /* Espace pour la scrollbar */
        }

        /* Scrollbar personnalisée (Webkit - Chrome, Safari, Edge) */
        .sidebar::-webkit-scrollbar {
            width: 8px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: var(--gray-100);
            border-radius: 4px;
        }

        body.dark .sidebar::-webkit-scrollbar-track {
            background: var(--gray-700);
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 4px;
            transition: background 0.2s;
        }

        body.dark .sidebar::-webkit-scrollbar-thumb {
            background: var(--gray-600);
        }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--emerald);
        }

        body.dark .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--emerald);
        }

        /* Scrollbar pour Firefox */
        .sidebar {
            scrollbar-width: thin;
            scrollbar-color: var(--gray-300) var(--gray-100);
        }

        body.dark .sidebar {
            scrollbar-color: var(--gray-600) var(--gray-700);
        }

        /* Animation smooth du scroll */
        .sidebar {
            scroll-behavior: smooth;
        }
        
        .filter-group {
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 0;
            margin-bottom: 16px;
            overflow: hidden;
        }
        
        body.dark .filter-group {
            background: var(--gray-800);
            border-color: var(--gray-700);
        }
        
        .filter-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            -webkit-user-select: none;
            user-select: none;
            transition: background 0.2s;
        }

        .filter-title:hover {
            background: var(--gray-50);
        }

        body.dark .filter-title:hover {
            background: var(--gray-700);
        }

        .filter-title::after {
            content: '\f078'; /* FontAwesome chevron-down */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: 0.7rem;
            transition: transform 0.3s;
        }

        .filter-group.collapsed .filter-title::after {
            transform: rotate(-90deg);
        }

        .filter-items {
            padding: 0 16px 16px 16px;
            max-height: 500px;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }

        .filter-group.collapsed .filter-items {
            max-height: 0;
            padding: 0 16px;
        }
        
        .filter-item {
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 0.9rem;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        
        body.dark .filter-item {
            color: var(--gray-300);
        }
        
        .filter-item:hover {
            background: var(--gray-100);
        }
        
        body.dark .filter-item:hover {
            background: var(--gray-700);
        }
        
        .filter-item.active {
            background: var(--emerald);
            color: white;
            font-weight: 500;
        }
        
        .filter-item i {
            width: 16px;
            font-size: 0.85rem;
        }
        
        /* ========== RÉSULTATS ÉPURÉS ========== */
        .results {
            opacity: 1;
            transition: opacity 0.2s ease;
        }

        .results.loaded {
            opacity: 1;
        }

        .results-list,
        .pagination {
            display: none;
        }

        .results-list.ready,
        .pagination.ready {
            display: block;
        }

        .pagination.ready {
            display: flex;
        }

        .initial-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            gap: 16px;
        }

        .initial-loading .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--gray-200);
            border-top-color: var(--emerald);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .initial-loading .loading-text {
            color: var(--gray-600);
            font-size: 0.95rem;
            font-weight: 500;
        }

        body.dark .initial-loading .spinner {
            border-color: var(--gray-700);
            border-top-color: var(--emerald);
        }

        /* ── Préchargement résultats (skeletons) ── */
        .results-loading {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 8px 0 24px;
            animation: rl-fade-in 0.25s ease;
        }

        @keyframes rl-fade-in {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: none; }
        }

        .rl-skeletons {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .rl-skel-card {
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 18px 20px;
            background: #fff;
        }

        body.dark .rl-skel-card {
            background: #1a1a1a;
            border-color: var(--gray-700);
        }

        .rl-skel-line {
            height: 12px;
            border-radius: 6px;
            margin-bottom: 10px;
            background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
            background-size: 200% 100%;
            animation: rl-pulse 1.3s ease-in-out infinite;
        }

        .rl-skel-line:last-child { margin-bottom: 0; }
        .rl-skel-line.w40 { width: 40%; height: 10px; }
        .rl-skel-line.w70 { width: 70%; }
        .rl-skel-line.w85 { width: 85%; height: 16px; }
        .rl-skel-line.w95 { width: 95%; }

        body.dark .rl-skel-line {
            background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
            background-size: 200% 100%;
        }

        @keyframes rl-pulse {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }

        body.dark .initial-loading .loading-text {
            color: var(--gray-400);
        }
        
        .ai-card {
            background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
            border: 1px solid rgba(0, 152, 121, 0.35);
            border-radius: 12px;
            padding: 12px 14px 10px;
            margin-bottom: 14px;
            display: none;
            box-shadow: 0 4px 16px rgba(0, 152, 121, 0.07);
            position: relative;
            overflow: hidden;
        }

        .ai-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--emerald), #00d4aa, var(--emerald));
        }

        .ai-card.ai-card-visible {
            animation: aiReveal 0.35s ease;
        }

        @keyframes aiReveal {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        body.dark .ai-card {
            background: linear-gradient(135deg, var(--gray-800) 0%, #0f2922 100%);
            border-color: rgba(0, 184, 148, 0.35);
        }
        
        .ai-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .ai-icon {
            width: 32px;
            height: 32px;
            background: var(--emerald);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.95rem;
            flex-shrink: 0;
        }
        
        .ai-title {
            display: inline;
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--emerald);
            line-height: 1.3;
        }

        .ai-method-badge {
            display: inline-flex;
            align-items: center;
            margin-left: 6px;
            padding: 1px 6px;
            border-radius: 999px;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            vertical-align: middle;
            background: #e8f6f0;
            color: #065f48;
            border: 1px solid #b7e4d3;
        }

        .ai-method-badge[data-mode="extractive"] {
            background: #f3f4f6;
            color: #4b5563;
            border-color: #e5e7eb;
        }

        .ai-method-badge[data-mode="cache"] {
            background: #eff6ff;
            color: #1d4ed8;
            border-color: #bfdbfe;
        }

        .ai-method-badge[data-mode="loading"] {
            background: #fef3c7;
            color: #92400e;
            border-color: #fde68a;
        }

        .ai-card-loading .ai-content {
            margin-bottom: 0;
        }

        .ai-loading {
            padding: 2px 0 4px;
        }

        .ai-loading-bar {
            height: 10px;
            border-radius: 6px;
            background: linear-gradient(90deg,
                rgba(0, 152, 121, 0.12) 0%,
                rgba(0, 152, 121, 0.28) 40%,
                rgba(0, 152, 121, 0.12) 80%);
            background-size: 200% 100%;
            animation: aiShimmer 1.1s ease-in-out infinite;
            margin-bottom: 8px;
            max-width: 100%;
        }
        .ai-loading-bar.short { max-width: 62%; }
        .ai-loading-text {
            margin: 0;
            font-size: 0.8rem;
            color: var(--gray-500);
        }
        body.dark .ai-loading-text { color: var(--gray-400); }

        @keyframes aiShimmer {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }
        
        .ai-subtitle {
            font-size: 0.78rem;
            color: var(--gray-600);
            line-height: 1.3;
            margin-top: 2px;
        }
        
        body.dark .ai-subtitle {
            color: var(--gray-400);
        }
        
        .ai-content {
            font-size: 0.9rem;
            line-height: 1.45;
            color: var(--gray-700);
            margin-bottom: 8px;
        }
        
        body.dark .ai-content {
            color: var(--gray-300);
        }
        
        .ai-content p {
            margin-bottom: 0;
        }
        
        .ai-content ul {
            margin: 6px 0 0;
        }
        
        .ai-content li {
            margin-bottom: 0;
        }

        .ai-answer-body {
            margin-bottom: 6px;
        }

        .ai-answer-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            align-items: center;
            margin-top: 6px;
        }

        .ai-confidence {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 999px;
        }
        .ai-conf-high { background: #d1fae5; color: #065f46; }
        .ai-conf-medium { background: #fef3c7; color: #92400e; }
        .ai-conf-low { background: #f3f4f6; color: #4b5563; }
        body.dark .ai-conf-high { background: #064e3b; color: #6ee7b7; }
        body.dark .ai-conf-medium { background: #451a03; color: #fcd34d; }
        body.dark .ai-conf-low { background: var(--gray-700); color: var(--gray-300); }

        .ai-chip {
            font-size: 0.68rem;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(0, 152, 121, 0.1);
            color: var(--emerald-dark, #0a5c4e);
            font-weight: 500;
        }
        body.dark .ai-chip {
            background: rgba(0, 184, 148, 0.15);
            color: #6ee7b7;
        }

        .ai-lead {
            font-size: 0.92rem;
            line-height: 1.45;
            color: var(--gray-800);
            margin: 0;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        body.dark .ai-lead { color: var(--gray-200); }

        .ai-highlights {
            list-style: none;
            margin: 6px 0 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .ai-highlights li {
            display: flex;
            gap: 8px;
            align-items: flex-start;
            font-size: 0.82rem;
            line-height: 1.35;
            color: var(--gray-700);
            padding: 0 0 0 10px;
            border-left: 2px solid var(--emerald);
            background: none;
            border-radius: 0;
        }
        .ai-points {
            margin: 8px 0 0;
            padding-left: 1.15rem;
            display: grid;
            gap: 4px;
        }
        .ai-points li {
            font-size: 0.92rem;
            line-height: 1.4;
            color: var(--gray-700);
        }
        body.dark .ai-points li {
            color: var(--gray-300);
        }
        body.dark .ai-highlights li {
            color: var(--gray-300);
            background: none;
        }
        .ai-highlights li i {
            display: none;
        }
        
        .ai-sources {
            display: block;
            padding-top: 8px;
            border-top: 1px solid var(--gray-200);
        }
        
        body.dark .ai-sources {
            border-top-color: var(--gray-700);
        }

        .ai-sources-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }

        .ai-sources-label {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: var(--gray-500);
            margin-right: 2px;
        }
        .ai-sources-label i { margin-right: 4px; }

        .ai-source-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            max-width: 220px;
            padding: 3px 8px 3px 4px;
            border-radius: 999px;
            border: 1px solid var(--gray-200);
            background: white;
            text-decoration: none;
            color: inherit;
            font-size: 0.75rem;
            line-height: 1.2;
            transition: border-color 0.15s, background 0.15s;
        }
        .ai-source-pill:hover {
            border-color: var(--emerald);
            background: rgba(0, 152, 121, 0.06);
        }
        body.dark .ai-source-pill {
            background: var(--gray-800);
            border-color: var(--gray-700);
        }
        .ai-source-pill .ai-src-title {
            display: block;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--gray-800);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 140px;
        }
        body.dark .ai-source-pill .ai-src-title { color: var(--gray-200); }
        .ai-source-pill .ai-src-flag { font-size: 0.7rem; line-height: 1; }
        .ai-source-pill .fa-check-circle { color: var(--emerald); font-size: 0.7rem; }

        .ai-sources-grid {
            display: none;
        }

        .ai-source-card {
            display: none;
        }
        .ai-src-body { flex: 1; min-width: 0; }
        .ai-src-title {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray-800);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        body.dark .ai-src-title { color: var(--gray-200); }
        .ai-src-meta { font-size: 0.75rem; color: var(--emerald); }
        .ai-src-ext { font-size: 0.7rem; color: var(--gray-400); flex-shrink: 0; }
        
        .ai-source {
            padding: 6px 12px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            font-size: 0.85rem;
            color: var(--emerald);
            text-decoration: none;
            transition: all 0.2s;
        }
        
        body.dark .ai-source {
            background: var(--gray-700);
            border-color: var(--gray-600);
        }
        
        .ai-source:hover {
            background: var(--emerald);
            color: white;
        }
        
        .hot-news {
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            display: none;
        }
        
        body.dark .hot-news {
            background: var(--gray-800);
            border-color: var(--gray-700);
        }
        
        .section-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .news-slider {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 8px;
            scroll-behavior: smooth;
            scrollbar-width: thin;
        }
        
        .news-card {
            min-width: 260px;
            background: var(--gray-100);
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        body.dark .news-card {
            background: var(--gray-700);
        }
        
        .news-card:hover {
            transform: translateY(-2px);
        }
        
        .news-img {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .news-body {
            padding: 12px;
        }
        
        .news-title {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 6px;
            line-height: 1.4;
        }
        
        .news-source {
            font-size: 0.8rem;
            color: var(--gray-600);
        }
        
        body.dark .news-source {
            color: var(--gray-400);
        }
        
        .results-info {
            font-size: 0.9rem;
            color: var(--gray-600);
            margin-bottom: 20px;
        }
        
        body.dark .results-info {
            color: var(--gray-400);
        }
        
        .result-card {
            position: relative;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 18px 18px 16px;
            margin-bottom: 12px;
            transition: all 0.2s;
        }

        /* Annonces sponsorisées — distinctes des organiques */
        .senami-sponsored {
            margin: 0 0 16px;
        }
        .senami-sponsored[hidden] {
            display: none !important;
        }
        .sponsored-card {
            position: relative;
            background: #f8faf9;
            border: 1px solid #d5e5df;
            border-left: 3px solid #0e7463;
            border-radius: 10px;
            padding: 14px 16px 14px;
            margin-bottom: 10px;
        }
        .sponsored-card:last-child {
            margin-bottom: 0;
        }
        .sponsored-badge {
            display: inline-block;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: #5a6f68;
            background: #e8f2ef;
            padding: 2px 8px;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        .sponsored-title {
            display: block;
            font-size: 1.05rem;
            font-weight: 600;
            color: #1a3a32;
            text-decoration: none;
            line-height: 1.35;
            margin-bottom: 4px;
        }
        .sponsored-title:hover {
            text-decoration: underline;
            color: #0e7463;
        }
        .sponsored-url {
            display: block;
            font-size: 0.82rem;
            color: #0e7463;
            margin-bottom: 6px;
            word-break: break-all;
        }
        .sponsored-desc {
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.5;
            color: #5a6f68;
        }
        body.dark .sponsored-card {
            background: #1a2421;
            border-color: #2d3f38;
            border-left-color: #0e7463;
        }
        body.dark .sponsored-badge {
            background: #24352f;
            color: #a8bbb4;
        }
        body.dark .sponsored-title {
            color: #e8f2ef;
        }
        body.dark .sponsored-desc {
            color: #a8bbb4;
        }

        /* Annuaire entreprises — barre compteur + filtres compacts */
        .biz-dir-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px 14px;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 14px;
        }
        .biz-dir-toolbar[hidden] {
            display: none !important;
        }
        .biz-dir-toolbar .results-info {
            margin-bottom: 0;
            flex: 1 1 auto;
            min-width: 0;
            line-height: 1.3;
        }
        .biz-dir-filters {
            margin: 0 0 0 auto;
            padding: 0;
            background: transparent;
            border: none;
            flex: 0 0 auto;
            margin-left: auto !important;
        }
        .biz-dir-filters[hidden] {
            display: none !important;
        }
        .biz-dir-form {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: wrap;
            margin-left: auto;
        }
        .biz-dir-field {
            display: inline-flex;
            align-items: stretch;
            height: 30px;
            border: 1px solid #d5e4de;
            border-radius: 7px;
            background: #fff;
            overflow: hidden;
        }
        .biz-dir-field-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            flex-shrink: 0;
            font-size: 0.72rem;
            color: #0a7a5c;
            background: #f4fbf8;
            border-right: 1px solid #e8f0ec;
        }
        .biz-dir-select {
            width: auto;
            max-width: 110px;
            height: 100%;
            padding: 0 8px 0 6px;
            border: none;
            border-radius: 0;
            background: transparent;
            font: inherit;
            font-size: 0.78rem;
            color: #14201c;
            line-height: 1.2;
            cursor: pointer;
        }
        .biz-dir-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 30px;
            border: 1px solid #d5e4de;
            background: #fff;
            color: #5a6b64;
            border-radius: 7px;
            padding: 0 9px;
            font: inherit;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }
        .biz-dir-chip.active {
            background: #ecfdf5;
            border-color: #a7f3d0;
            color: #065f48;
        }
        .biz-dir-reset {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            padding: 0;
            border: 1px solid #d5e4de;
            border-radius: 7px;
            background: #fff;
            color: #5a6b64;
            cursor: pointer;
        }
        .biz-dir-reset:hover {
            border-color: #0e7463;
            color: #0a7a5c;
            background: #f4fbf8;
        }
        .biz-dir-fulllist {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 30px;
            border: 1px solid #d5e4de;
            background: #fff;
            color: #5a6b64;
            border-radius: 7px;
            padding: 0 9px;
            font: inherit;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }
        .biz-dir-fulllist:hover {
            border-color: #0e7463;
            color: #0a7a5c;
            background: #f4fbf8;
        }
        .biz-dir-fulllist.is-hint {
            border-color: #a7f3d0;
            background: #ecfdf5;
            color: #065f48;
        }
        .biz-dir-fulllist.is-active {
            background: #0e7463;
            border-color: #00856b;
            color: #fff;
        }
        .biz-dir-fulllist.is-active:hover {
            background: #00a986;
            border-color: #00856b;
            color: #fff;
        }
        .biz-dir-loading,
        .biz-dir-error {
            padding: 22px;
            text-align: center;
            color: #5a6b64;
        }
        .biz-dir-error { color: #922b21; }
        @media (max-width: 640px) {
            .biz-dir-toolbar {
                align-items: flex-start;
                flex-direction: column;
            }
            .biz-dir-filters {
                width: 100%;
                margin-left: 0;
            }
            .biz-dir-form {
                justify-content: flex-start;
                width: 100%;
            }
            .biz-dir-field {
                flex: 1 1 calc(50% - 6px);
                min-width: 0;
            }
            .biz-dir-field .biz-dir-select {
                max-width: none;
                flex: 1;
                width: 100%;
            }
        }
        /* —— Annuaire emploi — toolbar + filtres compacts —— */
        .job-dir-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px 14px;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 14px;
        }
        .job-dir-toolbar[hidden] {
            display: none !important;
        }
        .job-dir-toolbar .results-info {
            margin-bottom: 0;
            flex: 1 1 auto;
            min-width: 0;
        }
        .job-dir-filters {
            margin: 0 0 0 auto;
            flex: 0 0 auto;
            margin-left: auto !important;
        }
        .job-dir-filters[hidden] { display: none !important; }
        .job-dir-form {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: wrap;
            margin-left: auto;
        }
        .job-dir-type-row { display: flex; gap: 4px; }
        .job-dir-field {
            display: inline-flex;
            align-items: stretch;
            height: 30px;
            border: 1px solid #d5e4de;
            border-radius: 7px;
            background: #fff;
            overflow: hidden;
        }
        .job-dir-field-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            flex-shrink: 0;
            font-size: 0.72rem;
            color: #5b21b6;
            background: #f5f3ff;
            border-right: 1px solid #e9e5ff;
        }
        .job-dir-type,
        .job-dir-reset,
        .job-dir-fulllist,
        .job-dir-publish {
            height: 30px;
            border: 1px solid #d5e4de;
            border-radius: 7px;
            background: #fff;
            font: inherit;
            font-size: 0.75rem;
            font-weight: 600;
            color: #5a6b64;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0 9px;
            text-decoration: none;
        }
        .job-dir-fulllist:hover {
            border-color: #a78bfa;
            color: #5b21b6;
            background: #f5f3ff;
        }
        .job-dir-fulllist.is-hint {
            border-color: #c4b5fd;
            background: #ede9fe;
            color: #5b21b6;
        }
        .job-dir-fulllist.is-active {
            background: #5b21b6;
            border-color: #4c1d95;
            color: #fff;
        }
        .job-dir-fulllist.is-active:hover {
            background: #6d28d9;
            border-color: #4c1d95;
            color: #fff;
        }
        .job-dir-select {
            width: auto;
            max-width: 100px;
            height: 100%;
            padding: 0 8px 0 6px;
            border: none;
            border-radius: 0;
            background: transparent;
            font: inherit;
            font-size: 0.75rem;
            font-weight: 600;
            color: #5a6b64;
            cursor: pointer;
        }
        .job-dir-type.active {
            background: #ede9fe;
            border-color: #c4b5fd;
            color: #5b21b6;
        }
        .job-dir-type.active i { color: #5b21b6; }
        .job-dir-reset { width: 30px; padding: 0; justify-content: center; }
        .job-dir-publish {
            height: auto;
            min-height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            background: linear-gradient(180deg, #6d5efc 0%, #5b4cdb 100%);
            border: 1px solid #4f3fcf;
            color: #fff;
            font-weight: 700;
            box-shadow: 0 1px 2px rgba(79, 63, 207, 0.2);
            transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
        }
        .job-dir-publish:hover {
            background: linear-gradient(180deg, #7b6cff 0%, #5240d4 100%);
            box-shadow: 0 4px 12px rgba(91, 76, 219, 0.28);
            transform: translateY(-1px);
            color: #fff;
        }
        .biz-dir-register {
            height: auto;
            min-height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            background: linear-gradient(180deg, #00a986 0%, #0e7463 100%);
            border: 1px solid #00856b;
            color: #fff;
            font: inherit;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
            box-shadow: 0 1px 2px rgba(0, 152, 121, 0.2);
            transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
        }
        .biz-dir-register:hover {
            background: linear-gradient(180deg, #2b8a78 0%, #007a62 100%);
            box-shadow: 0 4px 12px rgba(0, 152, 121, 0.28);
            transform: translateY(-1px);
            color: #fff;
        }
        .job-dir-loading, .job-dir-error { padding: 22px; text-align: center; color: #5a6b64; }
        .job-dir-error { color: #922b21; }
        /* —— Cartes emploi — compactes & rassurantes —— */
        .job-results { display: flex; flex-direction: column; gap: 7px; }
        .job-card {
            display: grid;
            grid-template-columns: 40px 1fr;
            gap: 10px 12px;
            align-items: start;
            background: #fff;
            border: 1px solid #e4ebe8;
            border-radius: 11px;
            padding: 10px 12px;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .job-card--offer { border-left: 3px solid #6366f1; }
        .job-card--profile { border-left: 3px solid #0e7463; }
        .job-card:hover {
            border-color: #0e7463;
            box-shadow: 0 2px 10px rgba(0, 152, 121, 0.07);
        }
        .job-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            flex-shrink: 0;
        }
        .job-card--offer .job-card-icon {
            background: #eef2ff;
            color: #4338ca;
        }
        .job-card--profile .job-card-icon {
            background: #ecfdf5;
            color: #047857;
        }
        .job-card-body { min-width: 0; }
        .job-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
        }
        .job-card-identity { flex: 1; min-width: 0; }
        .job-card-title-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px 6px;
            margin-bottom: 1px;
        }
        .job-card-type {
            font-size: 0.62rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 1px 6px;
            border-radius: 4px;
            line-height: 1.5;
            flex-shrink: 0;
        }
        .job-card-type--offer { background: #eef2ff; color: #4338ca; }
        .job-card-type--profile { background: #ecfdf5; color: #047857; }
        .job-card-title {
            font-size: 0.92rem;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.25;
            min-width: 0;
        }
        button.job-card-title--link {
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            font: inherit;
            text-align: left;
            cursor: pointer;
        }
        button.job-card-title--link:hover {
            color: #4338ca;
            text-decoration: underline;
        }
        .job-card--profile button.job-card-title--link:hover {
            color: #047857;
        }
        .job-act--detail:hover {
            border-color: #6366f1;
            color: #4338ca;
            background: #eef2ff;
        }
        .job-card-trust {
            display: inline-flex;
            align-items: center;
            color: #0e7463;
            font-size: 0.72rem;
            flex-shrink: 0;
        }
        .job-card-biz {
            display: inline-flex;
            align-items: center;
            color: #64748b;
            font-size: 0.68rem;
        }
        .job-card-entity {
            font-size: 0.78rem;
            color: #64748b;
            margin: 0;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .job-card-actions {
            display: flex;
            gap: 5px;
            flex-shrink: 0;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .job-act {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 28px;
            padding: 0 9px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #f8fafc;
            color: #64748b;
            font-size: 0.72rem;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: border-color 0.12s, color 0.12s, background 0.12s;
            white-space: nowrap;
        }
        .job-act i {
            font-size: 0.82rem;
            flex-shrink: 0;
        }
        .job-act span {
            line-height: 1;
        }
        .job-act:hover {
            border-color: #0e7463;
            color: #047857;
            background: #f0fdf9;
        }
        .job-act--wa:hover {
            border-color: #25d366;
            color: #128c7e;
            background: #f0fdf4;
        }
        .job-act--cv:hover {
            border-color: #6366f1;
            color: #4338ca;
            background: #eef2ff;
        }
        .job-card-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0;
            margin: 4px 0 0;
            font-size: 0.74rem;
            color: #64748b;
            line-height: 1.35;
        }
        .job-card-meta-sep {
            margin: 0 5px;
            color: #cbd5e1;
            user-select: none;
        }
        .job-card-meta-item--sector { color: #4338ca; font-weight: 600; }
        .job-card-meta-item--salary { color: #0f766e; font-weight: 600; }
        .job-card-meta-item--date {
            color: #64748b;
            font-weight: 600;
            white-space: nowrap;
        }
        .job-card-meta-item--date i {
            margin-right: 2px;
            opacity: 0.85;
        }
        .job-card-desc {
            font-size: 0.78rem;
            color: #64748b;
            margin: 3px 0 0;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .job-card-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 5px;
        }
        .job-card-skill {
            font-size: 0.65rem;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 4px;
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }
        .job-empty {
            text-align: center;
            padding: 48px 32px;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            animation: fadeInUp 0.3s ease-out;
        }
        .job-empty-icon i,
        .job-empty > .no-results-icon i {
            font-size: 3.5rem;
            color: var(--gray-400);
            margin-bottom: 20px;
            display: block;
            animation: scaleIn 0.4s ease-out;
        }
        .job-empty h3 {
            color: var(--gray-700);
            margin-bottom: 8px;
            font-size: 1.15rem;
            font-weight: 700;
        }
        .job-empty p {
            color: var(--gray-600);
            margin-bottom: 8px;
        }
        .job-empty-hint {
            color: var(--gray-500) !important;
            margin-bottom: 28px !important;
            font-size: 0.85rem;
        }
        .job-empty-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            background: linear-gradient(180deg, #6d5efc 0%, #5b4cdb 100%);
            border: 1px solid #4f3fcf;
            color: #fff !important;
            border-radius: 999px;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.88rem;
            box-shadow: 0 1px 2px rgba(79, 63, 207, 0.2);
            transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
            animation: fadeInUp 0.45s ease-out 0.12s both;
        }
        .job-empty-cta:hover {
            background: linear-gradient(180deg, #7b6cff 0%, #5240d4 100%);
            box-shadow: 0 4px 14px rgba(91, 76, 219, 0.3);
            transform: translateY(-1px);
            color: #fff !important;
        }
        @media (max-width: 640px) {
            .job-card-top { flex-wrap: wrap; }
            .job-card-actions {
                width: 100%;
                justify-content: flex-start;
                order: 3;
            }
            .job-dir-toolbar {
                flex-direction: column;
                align-items: stretch;
            }
            .job-dir-filters {
                width: 100%;
                margin-left: 0;
            }
            .job-dir-form {
                justify-content: flex-start;
                width: 100%;
            }
            .job-dir-field {
                flex: 1 1 calc(50% - 6px);
                min-width: 0;
            }
            .job-dir-field .job-dir-select {
                max-width: none;
                flex: 1;
                width: 100%;
            }
        }

        /* —— Fiche détail annonce emploi (popup) —— */
        body.job-sheet-open { overflow: hidden; }
        .job-sheet {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            pointer-events: none;
        }
        .job-sheet[hidden] { display: none !important; }
        .job-sheet-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            opacity: 0;
            transition: opacity 0.22s ease;
            pointer-events: auto;
        }
        .job-sheet.open .job-sheet-backdrop { opacity: 1; }
        .job-sheet-panel {
            position: relative;
            width: min(560px, 100%);
            max-height: min(88vh, 820px);
            background: #fff;
            border-radius: 18px 18px 0 0;
            box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
            transform: translateY(100%);
            transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
            pointer-events: auto;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .job-sheet.open .job-sheet-panel { transform: translateY(0); }
        .job-sheet-handle {
            width: 36px;
            height: 4px;
            background: #cbd5e1;
            border-radius: 999px;
            margin: 10px auto 0;
            flex-shrink: 0;
        }
        .job-sheet-close {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 50%;
            background: #f1f5f9;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .job-sheet-close:hover { background: #e2e8f0; color: #0f172a; }
        .job-sheet-body {
            overflow-y: auto;
            padding: 8px 18px 24px;
            -webkit-overflow-scrolling: touch;
        }
        .job-sheet-loading, .job-sheet-error {
            text-align: center;
            padding: 48px 20px;
            color: #64748b;
        }
        .job-sheet-head {
            display: grid;
            grid-template-columns: 52px 1fr;
            gap: 12px;
            align-items: start;
            margin-bottom: 14px;
        }
        .job-sheet-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }
        .job-sheet-icon.job-sheet-type--offer { background: #eef2ff; color: #4338ca; }
        .job-sheet-icon.job-sheet-type--profile { background: #ecfdf5; color: #047857; }
        .job-sheet-type {
            display: inline-block;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 2px 8px;
            border-radius: 5px;
            margin-bottom: 4px;
        }
        .job-sheet-type.job-sheet-type--offer { background: #eef2ff; color: #4338ca; }
        .job-sheet-type.job-sheet-type--profile { background: #ecfdf5; color: #047857; }
        .job-sheet-head-main h2 {
            font-size: 1.15rem;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.3;
            margin: 0 0 4px;
            padding-right: 28px;
        }
        .job-sheet-entity {
            font-size: 0.85rem;
            color: #64748b;
            margin: 0 0 8px;
        }
        .job-sheet-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.72rem;
            font-weight: 600;
            color: #047857;
        }
        .job-sheet-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .job-sheet-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.72rem;
            padding: 3px 8px;
            border-radius: 6px;
            background: #f1f5f9;
            color: #475569;
        }
        .job-sheet-chip--sector { background: #eef2ff; color: #4338ca; }
        .job-sheet-chip--salary { background: #ecfdf5; color: #047857; font-weight: 600; }
        .job-sheet-chip--date { background: #f8fafc; color: #475569; }
        .job-sheet-actions { margin-bottom: 14px; }
        .job-sheet-actions-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .job-sheet-act {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 34px;
            padding: 0 12px;
            border: 1px solid #e2e8f0;
            border-radius: 9px;
            background: #f8fafc;
            color: #475569;
            font-size: 0.78rem;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
        }
        .job-sheet-act:hover { border-color: #0e7463; color: #047857; background: #f0fdf9; }
        .job-sheet-act--wa:hover { border-color: #25d366; color: #128c7e; background: #f0fdf4; }
        .job-sheet-act--cv:hover { border-color: #6366f1; color: #4338ca; background: #eef2ff; }
        .job-sheet-act--ghost { background: #fff; }
        .job-sheet-cv-frame-wrap {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            background: #f8fafc;
            min-height: 320px;
        }
        .job-sheet-cv-frame {
            display: block;
            width: 100%;
            height: min(62vh, 520px);
            border: 0;
            background: #fff;
        }
        .job-sheet-cv-open {
            margin: 8px 0 0;
            font-size: 0.8rem;
        }
        .job-sheet-cv-open a {
            color: #4338ca;
            font-weight: 600;
            text-decoration: none;
        }
        .job-sheet-cv-open a:hover { text-decoration: underline; }
        .job-sheet-block {
            margin-bottom: 16px;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
        }
        .job-sheet-block h3 {
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
            margin-bottom: 8px;
        }
        .job-sheet-desc {
            font-size: 0.88rem;
            line-height: 1.55;
            color: #334155;
        }
        .job-sheet-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .job-sheet-skill {
            font-size: 0.72rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 999px;
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }
        .job-sheet-contact {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .job-sheet-contact li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #334155;
            padding: 6px 0;
        }
        .job-sheet-contact i { color: #0e7463; width: 16px; text-align: center; }
        .job-sheet-contact a { color: #0a7a5c; }
        @media (min-width: 640px) {
            .job-sheet { align-items: center; padding: 20px; }
            .job-sheet-panel { border-radius: 18px; max-height: min(85vh, 780px); }
            .job-sheet-handle { display: none; }
        }
        /* —— Annuaire entreprises : carte précédente + nom/logo épurés + actions à droite —— */
        .biz-results {
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-top: 0;
        }
        .biz-card {
            display: grid;
            grid-template-columns: 48px 1fr;
            gap: 10px 14px;
            align-items: start;
            background: #fff;
            border: 1px solid #e2eee9;
            border-radius: 12px;
            padding: 12px 14px;
            animation: none;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }
        .biz-card:hover {
            border-color: #0e7463;
            background: #fbfefd;
            box-shadow: 0 2px 12px rgba(0, 152, 121, 0.06);
        }
        .biz-card-logo {
            grid-row: 1;
            grid-column: 1;
            width: 48px;
            height: 48px;
            border-radius: 8px;
            font-size: 1.1rem;
            background: #eef5f2;
            color: #0d7a64;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            font-weight: 700;
            border: 1px solid #dce6e2;
            box-shadow: none;
        }
        .biz-card-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .biz-card-initial {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }
        .biz-card-body {
            grid-row: 1;
            grid-column: 2;
            min-width: 0;
        }
        .biz-card-top {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 10px;
            margin-bottom: 4px;
            min-width: 0;
        }
        .biz-card-identity {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1 1 auto;
        }
        .biz-card-badges {
            display: flex;
            flex-wrap: nowrap;
            gap: 5px;
            flex-shrink: 0;
        }
        .biz-card-title {
            flex: 0 1 auto;
            min-width: 0;
            background: none;
            border: 0;
            padding: 0;
            cursor: inherit;
            text-align: left;
            font-family: inherit;
            font-size: 1.02rem;
            font-weight: 650;
            line-height: 1.3;
            letter-spacing: -0.01em;
            color: #12241f;
            pointer-events: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }
        .biz-card:hover .biz-card-title {
            color: #0e7463;
        }
        .biz-card-verified { display: none; }
        .biz-card-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.62rem;
            font-weight: 600;
            padding: 2px 7px;
            color: #047857;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            border-radius: 999px;
            flex-shrink: 0;
            pointer-events: none;
            line-height: 1.3;
            white-space: nowrap;
        }
        .biz-card-badge i {
            font-size: 0.58rem;
        }
        .biz-card-badge--senami {
            color: #047857;
            background: #ecfdf5;
            border-color: #a7f3d0;
        }
        .biz-card-badge--registry {
            color: #1e40af;
            background: #eff6ff;
            border-color: #93c5fd;
        }
        .biz-card-badge--registry i {
            color: #2563eb;
        }
        .biz-card-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0;
            margin-bottom: 2px;
            pointer-events: none;
            line-height: 1.35;
        }
        .biz-card-meta-sep {
            margin: 0 6px;
            color: #b8ccc4;
            font-size: 0.72rem;
            flex-shrink: 0;
        }
        .biz-card-sector {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.74rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            text-transform: none;
            color: #0d7a64;
            background: #eef7f3;
            border: 1px solid #d0e8df;
            padding: 2px 8px;
            border-radius: 6px;
            line-height: 1.35;
        }
        .biz-card-sector i {
            display: inline-block;
            font-size: 0.62rem;
            opacity: 0.85;
        }
        .biz-card-loc {
            font-size: 0.78rem;
            color: #5a6f68;
        }
        .biz-card-address {
            font-size: 0.78rem;
            color: #5a6f68;
            pointer-events: none;
        }
        .biz-card-desc {
            margin: 2px 0 0;
            font-size: 0.8rem;
            line-height: 1.35;
            color: #5a6f68;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            pointer-events: none;
        }
        .biz-card-address i { display: none; }
        .biz-card-extras { display: none; }
        .biz-card-actions {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            margin-left: auto;
            padding: 0;
            background: transparent;
            border: 0;
            border-radius: 0;
            cursor: default;
            flex-shrink: 0;
            max-width: 58%;
        }
        .biz-act {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: auto;
            height: auto;
            min-height: 30px;
            padding: 5px 10px;
            border: 1px solid #e2eee9;
            border-radius: 8px;
            background: #fff;
            color: #3d524c;
            text-decoration: none;
            cursor: pointer;
            font-family: inherit;
            font-size: 0.72rem;
            font-weight: 600;
            line-height: 1.2;
            white-space: nowrap;
            box-shadow: none;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
        }
        .biz-act i {
            display: inline-block;
            font-size: 0.78rem;
            line-height: 1;
            flex-shrink: 0;
        }
        .biz-act-label {
            display: inline;
            font-size: 0.72rem;
            font-weight: 600;
        }
        .biz-act:hover {
            color: #0e7463;
            text-decoration: none;
            background: #f0faf6;
            border-color: #b7e4d3;
            box-shadow: none;
        }
        .biz-act:active { transform: none; }
        .biz-act--wa {
            color: #128c7e;
        }
        .biz-act--wa:hover {
            color: #075e54;
            border-color: #a7e0c4;
            background: #f0fdf8;
        }
        .biz-act--sheet {
            color: #0e7463;
            border-color: #c5e9dc;
            background: #f4fbf8;
        }
        .biz-act--sheet:hover {
            background: #0e7463;
            color: #fff;
            border-color: #0e7463;
        }
        .biz-act--phone.is-phone-open {
            color: #0d7a64;
            border-color: #0e7463;
            background: #eef7f3;
            max-width: none;
        }
        .biz-act--phone.is-phone-open .biz-act-label {
            display: inline !important;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.01em;
        }
        /* Popup téléphone entreprise */
        .biz-phone-popup {
            position: fixed;
            inset: 0;
            z-index: 10050;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .biz-phone-popup[hidden] {
            display: none !important;
        }
        body.biz-phone-open {
            overflow: hidden;
        }
        .biz-phone-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(2px);
        }
        .biz-phone-panel {
            position: relative;
            z-index: 1;
            width: min(100%, 320px);
            background: #fff;
            border-radius: 14px;
            border: 1px solid #e2eee9;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
            padding: 20px 18px 18px;
            text-align: center;
        }
        .biz-phone-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 8px;
            background: #f3f6f5;
            color: #64748b;
            cursor: pointer;
        }
        .biz-phone-close:hover {
            background: #e8f0ed;
            color: #0f172a;
        }
        .biz-phone-entity {
            margin: 0 0 6px;
            font-size: 0.82rem;
            color: #64748b;
            font-weight: 500;
        }
        .biz-phone-number {
            margin: 0 0 16px;
            font-size: 1.35rem;
            font-weight: 700;
            color: #0f172a;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.02em;
        }
        .biz-phone-actions {
            display: flex;
            gap: 8px;
            justify-content: center;
        }
        .biz-phone-call,
        .biz-phone-copy {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 14px;
            border-radius: 9px;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            border: 1px solid #d1e7df;
            background: #f4fbf8;
            color: #0d7a64;
        }
        .biz-phone-call:hover,
        .biz-phone-copy:hover {
            background: #0e7463;
            border-color: #0e7463;
            color: #fff;
        }
        .biz-phone-copy.is-copied {
            background: #0e7463;
            border-color: #0e7463;
            color: #fff;
        }
        @media (max-width: 720px) {
            .biz-card-top {
                flex-wrap: wrap;
            }
            .biz-card-actions {
                width: 100%;
                max-width: none;
                margin-left: 0;
                justify-content: flex-start;
                order: 3;
            }
            .biz-card-title {
                flex: 1 1 calc(100% - 90px);
                white-space: normal;
            }
            .biz-act-label {
                display: none;
            }
            .biz-act {
                width: 32px;
                height: 32px;
                min-height: 32px;
                padding: 0;
            }
        }
        /* legacy aliases — même rendu unifié */
        .biz-card-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            padding: 0;
            border: none;
            border-radius: 8px;
            background: transparent;
            color: #3d524c;
            text-decoration: none;
            cursor: pointer;
            font-size: 0;
            transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
        }
        .biz-card-btn i { font-size: 0.92rem; }
        .biz-card-btn:hover {
            background: #fff;
            color: #0e7463;
            box-shadow: 0 2px 8px rgba(0, 152, 121, 0.12);
        }
        .biz-card-btn.primary { color: #0e7463; }
        .biz-card-btn.primary:hover { background: #0e7463; color: #fff; }
        .biz-card-btn.whatsapp:hover { color: #128c7e; }
        .biz-card-extras {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 0 0 8px;
        }
        .biz-card-chip {
            font-size: 0.82rem;
            color: #3d524c;
            background: #f4faf7;
            border: 1px solid #e2eee9;
            border-radius: 8px;
            padding: 6px 10px;
            line-height: 1.4;
        }
        .biz-card-chip strong {
            color: #0e7463;
            margin-right: 4px;
        }

        /* Popup fiche entreprise — design moderne */
        body.biz-sheet-open {
            overflow: hidden;
        }
        .biz-sheet {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .biz-sheet[hidden] {
            display: none !important;
        }
        .biz-sheet-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(8, 24, 20, 0.62);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            transition: opacity 0.28s ease;
        }
        .biz-sheet.open .biz-sheet-backdrop {
            opacity: 1;
        }
        .biz-sheet-panel {
            position: relative;
            width: min(680px, 100%);
            max-height: min(92vh, 860px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: #fff;
            border-radius: 22px;
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.08),
                0 32px 80px rgba(0, 0, 0, 0.35);
            transform: translateY(24px) scale(0.96);
            opacity: 0;
            transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
        }
        .biz-sheet.open .biz-sheet-panel {
            transform: none;
            opacity: 1;
        }
        .biz-sheet-close {
            position: absolute;
            top: 14px;
            right: 14px;
            z-index: 5;
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.92);
            color: #1a3a32;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            cursor: pointer;
            display: grid;
            place-items: center;
            transition: transform 0.15s ease, background 0.15s ease;
        }
        .biz-sheet-close:hover {
            transform: scale(1.06);
            background: #fff;
        }
        .biz-sheet-body {
            overflow-y: auto;
            overscroll-behavior: contain;
        }
        .biz-sheet-cover {
            height: 88px;
            background:
                radial-gradient(ellipse 80% 100% at 20% 0%, rgba(255,255,255,0.22) 0%, transparent 60%),
                radial-gradient(ellipse 60% 80% at 90% 20%, rgba(0,184,148,0.35) 0%, transparent 55%),
                linear-gradient(135deg, #006b56 0%, #0e7463 38%, #00c9a0 100%);
            position: relative;
            overflow: hidden;
        }
        .biz-sheet-cover-glow {
            position: absolute;
            inset: -40% -20%;
            background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(255,255,255,0.12), transparent 40%);
            animation: bizSheetGlow 8s linear infinite;
        }
        @keyframes bizSheetGlow {
            to { transform: rotate(360deg); }
        }
        .biz-sheet-cover::after {
            content: "";
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.45;
        }
        .biz-sheet-handle {
            display: none;
            width: 40px;
            height: 4px;
            border-radius: 999px;
            background: rgba(255,255,255,0.55);
            margin: 10px auto 0;
            position: relative;
            z-index: 6;
        }
        .biz-sheet-hero-wrap {
            background: #fff;
            border-bottom: 1px solid #e8f2ef;
        }
        .biz-sheet-head {
            display: flex;
            gap: 14px;
            align-items: flex-start;
            margin-top: -36px;
            padding: 0 24px 18px;
            position: relative;
            z-index: 1;
        }
        .biz-sheet-logo {
            width: 72px;
            height: 72px;
            border-radius: 16px;
            overflow: hidden;
            background: linear-gradient(145deg, #eef7f3, #dceee6);
            display: grid;
            place-items: center;
            flex: 0 0 72px;
            font-size: 1.65rem;
            font-weight: 700;
            color: #0e7463;
            border: 3px solid #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        .biz-sheet-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .biz-sheet-head-main {
            flex: 1;
            min-width: 0;
            padding-top: 38px;
        }
        .biz-sheet-head-text {
            flex: 1;
            min-width: 0;
            padding-bottom: 4px;
        }
        .biz-sheet-head-main h2,
        .biz-sheet-head-text h2 {
            margin: 0 0 8px;
            font-family: Fraunces, Georgia, serif;
            font-size: clamp(1.25rem, 3.2vw, 1.6rem);
            font-weight: 650;
            letter-spacing: -0.02em;
            color: #12241f;
            line-height: 1.2;
        }
        .biz-sheet-head-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 8px;
        }
        .biz-sheet-head-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.68rem;
            font-weight: 600;
            padding: 4px 9px;
            border-radius: 999px;
            line-height: 1.2;
        }
        .biz-sheet-head-badge i { font-size: 0.62rem; }
        .biz-sheet-head-badge--senami {
            color: #047857;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
        }
        .biz-sheet-head-badge--registry {
            color: #1e40af;
            background: #eff6ff;
            border: 1px solid #93c5fd;
        }
        .biz-sheet-meta-line {
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0;
            font-size: 0.82rem;
            line-height: 1.45;
            color: #5a6f68;
        }
        .biz-sheet-meta-item {
            display: inline;
        }
        .biz-sheet-meta-sector {
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-size: 0.68rem;
            color: #065f48;
        }
        .biz-sheet-meta-sector i {
            margin-right: 4px;
            font-size: 0.6rem;
            color: #0e7463;
        }
        .biz-sheet-meta-sep {
            margin: 0 7px;
            color: #b8ccc4;
        }
        .biz-sheet-meta-address {
            color: #3d524c;
        }
        .biz-sheet-sector {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #065f48;
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
            border: 1px solid #6ee7b7;
            padding: 3px 9px;
            border-radius: 6px;
            margin-bottom: 6px;
        }
        .biz-sheet-sector i { font-size: 0.58rem; }
        .biz-sheet-head-text h2 {
            margin: 0 0 8px;
            font-family: Fraunces, Georgia, serif;
            font-size: clamp(1.35rem, 3.5vw, 1.75rem);
            font-weight: 650;
            letter-spacing: -0.02em;
            color: #12241f;
            line-height: 1.15;
        }
        .biz-sheet-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 0 24px 14px;
        }
        .biz-sheet-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.74rem;
            font-weight: 600;
            color: #1a3a32;
            background: #fff;
            border: 1px solid #dce8e3;
            padding: 6px 11px;
            border-radius: 999px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        }
        .biz-sheet-chip i {
            color: #0e7463;
            font-size: 0.68rem;
        }
        .biz-sheet-loc {
            margin: 0 0 8px;
            font-size: 0.88rem;
            color: #5a6f68;
        }
        .biz-sheet-verified {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.72rem;
            font-weight: 600;
            color: #047857;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            padding: 4px 10px;
            border-radius: 999px;
        }
        .biz-sheet-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 0 24px 18px;
        }
        .biz-sheet-actions-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .biz-sheet-hero {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            padding: 14px 16px;
            border-radius: 14px;
            color: #fff;
            box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .biz-sheet-hero:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 28px rgba(37, 211, 102, 0.34);
        }
        .biz-sheet-hero--wa {
            background: linear-gradient(135deg, #1ebe57 0%, #25d366 55%, #20ba5a 100%);
        }
        .biz-sheet-hero-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(255,255,255,0.18);
            display: grid;
            place-items: center;
            font-size: 1.35rem;
            flex-shrink: 0;
        }
        .biz-sheet-hero-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .biz-sheet-hero-text strong {
            font-size: 0.92rem;
            font-weight: 700;
        }
        .biz-sheet-hero-text small {
            font-size: 0.78rem;
            opacity: 0.92;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .biz-sheet-hero-arrow {
            opacity: 0.75;
            font-size: 0.82rem;
        }
        .biz-sheet-act {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.8rem;
            padding: 9px 14px;
            border-radius: 10px;
            border: 1px solid #dce8e3;
            background: #f8fbfa;
            color: #1a3a32;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
        }
        .biz-sheet-act i { font-size: 0.9rem; }
        .biz-sheet-act:hover {
            background: #fff;
            border-color: #0e7463;
            color: #0e7463;
        }
        .biz-sheet-act:active { transform: scale(0.97); }
        .biz-sheet-act--wa {
            background: #25d366;
            border-color: #25d366;
            color: #fff;
        }
        .biz-sheet-act--wa:hover {
            background: #1ebe57;
            border-color: #1ebe57;
            color: #fff;
        }
        .biz-sheet-act--primary {
            background: #0e7463;
            border-color: #0e7463;
            color: #fff;
        }
        .biz-sheet-act--primary:hover {
            background: #007a62;
            border-color: #007a62;
            color: #fff;
        }
        .biz-sheet-act--ghost {
            cursor: pointer;
            font-family: inherit;
        }
        .biz-sheet-act.is-copied {
            border-color: #0e7463;
            color: #0e7463;
            background: #ecfdf5;
        }
        .biz-sheet-tags {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }
        .biz-sheet-tag {
            font-size: 0.78rem;
            font-weight: 600;
            color: #065f48;
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
            border: 1px solid #a7f3d0;
            padding: 5px 10px;
            border-radius: 999px;
        }
        .biz-sheet-reveal {
            animation: bizSheetReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-delay: calc(var(--i, 0) * 0.06s + 0.08s);
        }
        @keyframes bizSheetReveal {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: none;
            }
        }
        .biz-sheet-skeleton {
            max-width: 320px;
            margin: 0 auto 16px;
            text-align: left;
        }
        .biz-sheet-skeleton-cover {
            height: 80px;
            border-radius: 12px;
            background: linear-gradient(90deg, #e2eee9 25%, #f0f7f4 50%, #e2eee9 75%);
            background-size: 200% 100%;
            animation: bizSheetShimmer 1.2s ease infinite;
        }
        .biz-sheet-skeleton-head {
            display: flex;
            gap: 12px;
            margin-top: -24px;
            padding: 0 8px;
        }
        .biz-sheet-skeleton-logo {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: linear-gradient(90deg, #dce8e3 25%, #eef5f2 50%, #dce8e3 75%);
            background-size: 200% 100%;
            animation: bizSheetShimmer 1.2s ease infinite;
            border: 3px solid #fff;
        }
        .biz-sheet-skeleton-lines {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding-top: 28px;
        }
        .biz-sheet-skeleton-lines span {
            display: block;
            height: 10px;
            border-radius: 999px;
            background: linear-gradient(90deg, #dce8e3 25%, #eef5f2 50%, #dce8e3 75%);
            background-size: 200% 100%;
            animation: bizSheetShimmer 1.2s ease infinite;
        }
        .biz-sheet-skeleton-lines span:nth-child(1) { width: 72%; }
        .biz-sheet-skeleton-lines span:nth-child(2) { width: 48%; }
        .biz-sheet-skeleton-lines span:nth-child(3) { width: 36%; }
        @keyframes bizSheetShimmer {
            to { background-position: -200% 0; }
        }
        .biz-sheet-body::-webkit-scrollbar {
            width: 8px;
        }
        .biz-sheet-body::-webkit-scrollbar-thumb {
            background: #c8d8d2;
            border-radius: 999px;
        }
        .biz-sheet-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 0 24px 24px;
        }
        .biz-sheet-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0;
            padding: 0 24px 24px;
        }
        .biz-sheet-main {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .biz-sheet-block,
        .biz-sheet-aside-card,
        .biz-sheet-contact-block {
            background: #f8fbfa;
            border: 1px solid #e2eee9;
            border-radius: 14px;
            padding: 16px 18px;
        }
        .biz-sheet-contact-block {
            margin-top: 4px;
        }
        .biz-sheet-block-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .biz-sheet-block-head i {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: #e8f5f0;
            color: #0e7463;
            display: grid;
            place-items: center;
            font-size: 0.75rem;
        }
        .biz-sheet-block-head h3 {
            margin: 0;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #0e7463;
        }
        .biz-sheet-block p {
            margin: 0;
            color: #2a3833;
            line-height: 1.65;
            font-size: 0.92rem;
            white-space: pre-wrap;
        }
        .biz-sheet-aside {
            margin-top: 12px;
        }
        .biz-sheet-contact {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .biz-sheet-contact-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 10px 12px;
            background: #fff;
            border: 1px solid #e8f2ef;
            border-radius: 10px;
        }
        .biz-sheet-contact-icon {
            width: 36px;
            height: 36px;
            flex-shrink: 0;
            border-radius: 9px;
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
            color: #0e7463;
            display: grid;
            place-items: center;
            font-size: 0.85rem;
        }
        .biz-sheet-contact-text {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .biz-sheet-contact-label {
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #5a6f68;
        }
        .biz-sheet-contact-value {
            font-size: 0.88rem;
            color: #12241f;
            line-height: 1.4;
            word-break: break-word;
        }
        .biz-sheet-contact-value a {
            color: #0e7463;
            text-decoration: none;
        }
        .biz-sheet-contact-value a:hover {
            text-decoration: underline;
        }
        .biz-sheet-empty {
            margin: 0;
            color: #5a6f68;
            font-size: 0.88rem;
        }
        .biz-sheet-loading,
        .biz-sheet-error {
            text-align: center;
            padding: 56px 24px;
            color: #5a6f68;
        }
        .biz-sheet-spinner {
            width: 36px;
            height: 36px;
            margin: 0 auto 14px;
            border: 3px solid #e2eee9;
            border-top-color: #0e7463;
            border-radius: 50%;
            animation: bizSheetSpin 0.7s linear infinite;
        }
        @keyframes bizSheetSpin {
            to { transform: rotate(360deg); }
        }
        .biz-sheet-error {
            color: #b91c1c;
        }
        .biz-sheet-error i {
            font-size: 2rem;
            margin-bottom: 10px;
            display: block;
        }
        @media (min-width: 640px) {
            .biz-sheet-grid {
                grid-template-columns: 1.2fr 0.9fr;
                gap: 14px;
                align-items: start;
            }
            .biz-sheet-aside {
                margin-top: 0;
            }
        }
        @media (max-width: 480px) {
            .biz-sheet {
                padding: 0;
                align-items: flex-end;
            }
            .biz-sheet-panel {
                width: 100%;
                max-height: 94vh;
                border-radius: 22px 22px 0 0;
            }
            .biz-sheet-handle {
                display: block;
            }
            .biz-sheet-close {
                top: 10px;
                background: rgba(255,255,255,0.85);
            }
            .biz-sheet-head {
                padding: 0 18px 16px;
            }
            .biz-sheet-head-main {
                padding-top: 34px;
            }
            .biz-sheet-actions,
            .biz-sheet-content {
                padding-left: 18px;
                padding-right: 18px;
            }
        }
        body.dark .biz-sheet-panel {
            background: #15201c;
        }
        body.dark .biz-sheet-cover {
            background: linear-gradient(135deg, #0d4a3a 0%, #0e7463 50%, #065f48 100%);
        }
        body.dark .biz-sheet-hero-wrap {
            background: #15201c;
            border-color: #2d3f38;
        }
        body.dark .biz-sheet-head-main h2,
        body.dark .biz-sheet-head-text h2,
        body.dark .biz-sheet-contact-value {
            color: #e8f2ef;
        }
        body.dark .biz-sheet-meta-line,
        body.dark .biz-sheet-meta-address {
            color: #a8bbb4;
        }
        body.dark .biz-sheet-meta-sector {
            color: #6ee7b7;
        }
        body.dark .biz-sheet-head-badge--senami {
            color: #6ee7b7;
            background: #1a3a32;
            border-color: #2d5a4a;
        }
        body.dark .biz-sheet-head-badge--registry {
            color: #93c5fd;
            background: #1e293b;
            border-color: #334155;
        }
        body.dark .biz-sheet-block,
        body.dark .biz-sheet-aside-card,
        body.dark .biz-sheet-contact-block,
        body.dark .biz-sheet-act {
            background: #1a2421;
            border-color: #2d3f38;
            color: #e8f2ef;
        }
        body.dark .biz-sheet-contact-item {
            background: #1e2a26;
            border-color: #2d3f38;
        }
        body.dark .biz-sheet-chip {
            background: #1e2a26;
            border-color: #2d3f38;
            color: #e8f2ef;
        }
        body.dark .biz-sheet-tag {
            background: #1a3a32;
            border-color: #2d5a4a;
            color: #a7f3d0;
        }
        body.dark .biz-sheet-act.is-copied {
            background: #1a3a32;
            color: #6ee7b7;
        }
        body.dark .biz-sheet-close {
            background: rgba(30, 42, 38, 0.92);
            color: #e8f2ef;
        }
        body.dark .biz-sheet-loc,
        body.dark .biz-sheet-empty,
        body.dark .biz-sheet-block p {
            color: #a8bbb4;
        }
        .biz-card-btn.ghost:hover {
            border-color: #0e7463;
            color: #0e7463;
        }
        .biz-empty {
            text-align: center;
            padding: 48px 32px;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            animation: fadeInUp 0.3s ease-out;
        }
        .biz-empty-icon i,
        .biz-empty > .no-results-icon i {
            font-size: 3.5rem;
            color: var(--gray-400);
            margin-bottom: 20px;
            display: block;
            animation: scaleIn 0.4s ease-out;
        }
        .biz-empty h3 {
            margin: 0 0 8px;
            color: var(--gray-700);
            font-size: 1.15rem;
            font-weight: 700;
        }
        .biz-empty p {
            margin: 0 0 8px;
            color: var(--gray-600);
        }
        .biz-empty-hint {
            color: var(--gray-500) !important;
            margin-bottom: 28px !important;
            font-size: 0.85rem;
        }
        .biz-empty-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(180deg, #00a986 0%, #0e7463 100%);
            border: 1px solid #00856b;
            color: #fff !important;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.88rem;
            padding: 10px 18px;
            border-radius: 999px;
            box-shadow: 0 1px 2px rgba(0, 152, 121, 0.2);
            transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
            animation: fadeInUp 0.45s ease-out 0.12s both;
        }
        .biz-empty-cta:hover {
            background: linear-gradient(180deg, #2b8a78 0%, #007a62 100%);
            box-shadow: 0 4px 14px rgba(0, 152, 121, 0.28);
            transform: translateY(-1px);
            color: #fff !important;
        }
        body.dark .biz-card,
        body.dark .biz-empty {
            background: #1a2421;
            border-color: #2d3f38;
        }
        body.dark .biz-card-title,
        body.dark .biz-empty h3 {
            color: #e8f2ef;
        }
        body.dark .biz-card-address {
            color: #a8bbb4;
        }
        body.dark .biz-card-badge--registry {
            color: #93c5fd;
            background: #1e293b;
            border-color: #334155;
        }
        body.dark .biz-card-badge--senami {
            color: #6ee7b7;
            background: #1a3a32;
            border-color: #2d5a4a;
        }
        body.dark .biz-empty p {
            color: #a8bbb4;
        }
        body.dark .biz-card-logo {
            background: #24352f;
        }
        body.dark .biz-card-btn.ghost {
            background: transparent;
            border-color: transparent;
            color: #c8d8d2;
        }
        body.dark .biz-card-actions {
            background: #1e2a26;
            border-color: #2d3f38;
        }
        body.dark .biz-act,
        body.dark .biz-card-btn {
            color: #c8d8d2;
        }
        body.dark .biz-act:hover,
        body.dark .biz-card-btn:hover {
            background: #24352f;
            color: #5eead4;
        }
        body.dark .biz-act--sheet:hover,
        body.dark .biz-card-btn.primary:hover {
            background: #0e7463;
            color: #fff;
        }
        body.dark .biz-card-sector {
            color: #6ee7b7;
            background: linear-gradient(135deg, #1a2e28 0%, #24352f 100%);
            border-color: #2d5a4a;
        }
        body.dark .biz-card-loc,
        body.dark .biz-card-desc {
            color: #a8bbb4;
        }
        body.dark .biz-act {
            background: #24352f;
            border-color: #2d3f38;
            color: #e8f2ef;
        }
        body.dark .biz-act--sheet {
            background: #1a3a32;
            border-color: #2d5a4a;
            color: #5eead4;
        }
        @media (max-width: 640px) {
            .biz-card {
                grid-template-columns: 52px 1fr;
            }
            .biz-card-logo {
                width: 52px;
                height: 52px;
            }
            .biz-card-actions {
                gap: 5px;
            }
            .biz-act {
                padding: 6px 9px;
                font-size: 0.72rem;
            }
        }

        /* Barre supérieure : meta + badges à gauche, actions à droite */
        .result-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
        }

        .result-header {
            flex: 1;
            min-width: 0;
        }

        .result-meta-line {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            margin-bottom: 6px;
        }

        .result-favicon {
            border-radius: 2px;
            flex-shrink: 0;
        }

        .result-url {
            color: var(--gray-500);
            font-size: 0.8rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
        }

        .result-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            align-items: center;
        }

        .result-card-actions {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .result-date {
            margin-top: 8px;
            font-size: 0.75rem;
            color: var(--gray-400);
        }

        /* Boutons d'action (inline, plus de position absolute) */
        .result-favorite,
        .result-quick-read {
            position: relative;
            width: 34px;
            height: 34px;
            border: 1px solid var(--gray-200);
            background: rgba(255, 255, 255, 0.95);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            flex-shrink: 0;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            padding: 0;
        }

        body.dark .result-favorite,
        body.dark .result-quick-read {
            background: rgba(31, 41, 55, 0.95);
            border-color: var(--gray-600);
        }

        /* Icône étoile */
        .result-favorite i {
            font-size: 1rem;
            color: var(--gray-400);
            transition: all 0.3s ease;
        }

        /* Hover effect */
        .result-favorite:hover {
            transform: scale(1.15) rotate(5deg);
            border-color: #fbbf24;
            box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
        }

        .result-favorite:hover i {
            color: #fbbf24;
        }

        /* Active (favori ajouté) */
        .result-favorite.active {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            border-color: #f59e0b;
            box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
        }

        .result-favorite.active i {
            color: white;
            transform: scale(1.1);
        }

        /* Animation au clic */
        .result-favorite:active {
            transform: scale(0.9);
        }

        /* Animation de pulsation pour nouveau favori */
        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            10%, 30% { transform: scale(1.15); }
            20%, 40% { transform: scale(1.05); }
        }

        .result-favorite.just-added {
            animation: heartbeat 0.6s ease;
        }

        /* Tooltip au survol */
        .result-favorite::before {
            content: attr(data-tooltip);
            position: absolute;
            top: -35px;
            right: 0;
            background: var(--gray-800);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        body.dark .result-favorite::before {
            background: var(--gray-700);
        }

        .result-favorite::after {
            content: '';
            position: absolute;
            top: -8px;
            right: 12px;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid var(--gray-800);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }

        body.dark .result-favorite::after {
            border-top-color: var(--gray-700);
        }

        .result-favorite:hover::before,
        .result-favorite:hover::after {
            opacity: 1;
        }

        /* Responsive : boutons d'action plus compacts */
        @media (max-width: 768px) {
            .result-favorite,
            .result-quick-read {
                width: 32px;
                height: 32px;
                border-radius: 8px;
            }
            
            .result-favorite i,
            .result-quick-read i {
                font-size: 0.9rem;
            }
        }

        /* Mode low-data : simplifier le style */
        body.low-data .result-favorite {
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            box-shadow: none;
        }

        body.low-data .result-favorite:hover {
            box-shadow: none;
        }
        
        body.dark .result-card {
            background: var(--gray-800);
            border-color: var(--gray-700);
        }
        
        .result-card:hover {
            border-color: var(--emerald);
            box-shadow: 0 2px 8px rgba(0, 152, 121, 0.1);
        }
        
        .result-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-size: 0.85rem;
            color: var(--gray-600);
            flex-wrap: wrap;
        }
        
        body.dark .result-header {
            color: var(--gray-400);
        }
        
        .result-url {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .badge {
            padding: 2px 8px;
            background: var(--gray-100);
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--gray-600);
        }
        
        body.dark .badge {
            background: var(--gray-700);
            color: var(--gray-400);
        }
        
        .badge-lang {
            background: #fef3c7;
            color: #92400e;
        }
        
        .badge-country {
            background: #dbeafe;
            color: #1e40af;
        }
        
        .badge-type {
            background: #e9d5ff;
            color: #6b21a8;
        }
        
        .speed {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }
        
        .speed-fast {
            background: #10b981;
        }
        
        .speed-medium {
            background: #f59e0b;
        }
        
        .speed-slow {
            background: #ef4444;
        }
        
        .result-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--emerald);
            text-decoration: none;
            display: block;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        
        .result-title:hover {
            text-decoration: underline;
        }
        
        /* Corps du résultat : texte à gauche, miniature à droite */
        .result-body {
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .result-text {
            flex: 1;
            min-width: 0;
        }

        .result-desc {
            color: var(--gray-700);
            font-size: 0.95rem;
            line-height: 1.55;
            margin-bottom: 0;
            overflow: visible;
            white-space: normal;
        }

        .result-desc mark {
            background: #fef08a;
            color: inherit;
            padding: 0 2px;
            border-radius: 2px;
        }

        .procedure-box {
            margin-top: 8px;
            padding: 12px 14px 14px;
            border: 1px solid #d7efe8;
            border-radius: 14px;
            background: linear-gradient(180deg, #f4fbf8 0%, #fff 48%);
        }

        .procedure-kicker {
            margin: 0 0 6px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--emerald, #0e7463);
        }

        .procedure-lead {
            margin: 0 0 10px;
            color: var(--gray-900, #14221e);
            font-size: 0.98rem;
            font-weight: 650;
            line-height: 1.4;
        }

        .procedure-facts {
            display: grid;
            gap: 6px;
            margin: 0 0 12px;
        }

        .procedure-fact {
            display: grid;
            grid-template-columns: 88px minmax(0, 1fr);
            gap: 8px;
            align-items: start;
            font-size: 0.86rem;
            line-height: 1.4;
            color: var(--gray-700);
        }

        .procedure-fact b {
            color: var(--emerald, #0e7463);
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding-top: 2px;
        }

        .procedure-steps,
        ol.ai-highlights {
            list-style: none;
            margin: 8px 0 0;
            padding: 0 0 0 1.9rem;
            display: grid;
            gap: 6px;
            counter-reset: senami-step;
        }

        .procedure-steps li,
        ol.ai-highlights li {
            counter-increment: senami-step;
            position: relative;
            display: block;
            margin: 0;
            padding: 0 0 0 12px;
            border-left: 3px solid var(--emerald, #0e7463);
            border-radius: 0;
            background: none;
            color: var(--gray-800);
            font-size: 0.95rem;
            font-style: italic;
            font-weight: 500;
            line-height: 1.35;
        }

        .procedure-steps li span {
            font-size: inherit;
            font-style: inherit;
            font-weight: inherit;
            line-height: inherit;
        }

        .procedure-steps li::before,
        ol.ai-highlights li::before {
            content: counter(senami-step);
            position: absolute;
            left: -1.9rem;
            top: 0;
            width: 1.45rem;
            height: auto;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: none;
            color: var(--emerald, #0e7463);
            font-size: 0.88rem;
            font-weight: 700;
            font-style: normal;
            line-height: 1.35;
            text-align: right;
            display: block;
        }

        body.dark .procedure-steps li,
        body.dark ol.ai-highlights li {
            color: #e7f3ee;
            background: none;
        }

        .procedure-note {
            margin: 12px 0 0;
            padding-top: 10px;
            border-top: 1px solid #e4f2ec;
            color: var(--gray-600);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .procedure-box--brief .procedure-note {
            margin-top: 10px;
        }

        .procedure-box--brief .procedure-facts:empty + .procedure-note,
        .procedure-box--brief .procedure-note:first-child {
            margin-top: 0;
            padding-top: 0;
            border-top: 0;
        }

        .qr-procedure {
            margin-bottom: 8px;
        }

        .qr-procedure .procedure-box {
            margin: 0 0 16px;
            padding: 16px 16px 18px;
        }

        .qr-procedure .procedure-lead {
            font-size: 1.05rem;
        }

        body.dark .procedure-box {
            border-color: #1d4a40;
            background: linear-gradient(180deg, #10241f 0%, #0d1a17 55%);
        }

        body.dark .procedure-lead {
            color: #f3f7f5;
        }

        body.dark .procedure-fact,
        body.dark .procedure-note {
            color: #d5e3dd;
        }

        body.dark .procedure-note {
            border-top-color: #1d4a40;
        }

        body.dark .result-desc {
            color: var(--gray-300);
        }

        body.dark .result-desc mark {
            background: #854d0e;
            color: #fef9c3;
        }

        .result-title mark {
            background: #fef08a;
            color: inherit;
            padding: 0 2px;
            border-radius: 2px;
        }

        body.dark .result-title mark {
            background: #854d0e;
            color: #fef9c3;
        }

        .result-meta {
            font-size: 0.8rem;
            color: var(--gray-500);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .result-thumb {
            flex-shrink: 0;
            width: 104px;
            height: 104px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--gray-200);
            background: var(--gray-100);
            display: block;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: zoom-in;
            position: relative;
        }

        .result-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .result-thumb:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
            border-color: var(--emerald);
        }

        /* ── Rich snippets ── */
        .result-rich {
            margin-top: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .rs-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            align-items: center;
            font-size: 0.82rem;
            color: var(--gray-600);
        }

        body.dark .rs-meta { color: var(--gray-400); }

        .rs-stars {
            color: #eab308;
            letter-spacing: 1px;
            margin-right: 4px;
        }

        .rs-price {
            color: #047857;
            font-weight: 700;
        }

        body.dark .rs-price { color: #34d399; }

        .senami-locale-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 0 0 12px;
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid var(--gray-200);
            background: linear-gradient(90deg, rgba(0,152,121,.08), rgba(255,255,255,.9));
            font-size: 0.82rem;
            color: var(--gray-700);
            font-weight: 600;
        }

        body.dark .senami-locale-banner {
            background: linear-gradient(90deg, rgba(0,152,121,.15), rgba(30,30,30,.9));
            border-color: var(--gray-700);
            color: var(--gray-200);
        }

        .slb-dismiss {
            border: none;
            background: transparent;
            font-size: 1.1rem;
            cursor: pointer;
            color: var(--gray-500);
            line-height: 1;
            padding: 0 4px;
        }

        .rs-address, .rs-phone, .rs-hours {
            color: inherit;
            text-decoration: none;
        }

        .rs-address:hover, .rs-phone:hover {
            color: var(--emerald);
        }

        .rs-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .rs-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid var(--gray-200);
            background: #fff;
            color: var(--gray-700);
            transition: background 0.15s, border-color 0.15s;
        }

        body.dark .rs-btn {
            background: #1f1f1f;
            border-color: var(--gray-700);
            color: var(--gray-200);
        }

        .rs-btn:hover {
            border-color: var(--emerald);
            color: var(--emerald);
        }

        .rs-btn.rs-wa {
            background: #25D366;
            border-color: #25D366;
            color: #fff;
        }

        .rs-btn.rs-wa:hover {
            background: #1ebe57;
            color: #fff;
        }

        .rs-map-mini {
            margin-top: 4px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--gray-200);
            max-width: 320px;
            height: 120px;
        }

        body.dark .rs-map-mini { border-color: var(--gray-700); }

        .rs-map-mini iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }

        body.low-data .rs-map-mini { display: none; }

        body.dark .result-thumb {
            border-color: var(--gray-700);
            background: var(--gray-800);
        }

        /* Mode économie de données : pas de miniatures web */
        body.low-data .result-thumb {
            display: none !important;
        }

        .qr-image-stage {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .qr-image-full {
            width: 100%;
            max-height: 62vh;
            object-fit: contain;
            background: var(--gray-100);
            border-radius: 12px;
        }
        .qr-image-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .qr-image-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 999px;
            background: var(--emerald);
            color: #fff;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
        }
        .qr-image-btn--ghost {
            background: transparent;
            color: var(--emerald-dark, #0a5c4e);
            border: 1px solid var(--gray-300);
        }

        body.low-data .result-body.has-thumb {
            display: block;
        }

        /* Aperçu grand format au survol */
        .senami-img-hover-preview {
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.96);
            transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
            background: #fff;
            border: 1px solid rgba(0, 152, 121, 0.35);
            border-radius: 12px;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255,255,255,0.4) inset;
            padding: 8px;
            max-width: var(--preview-max-w, 520px);
            max-height: var(--preview-max-h, 420px);
        }
        .senami-img-hover-preview.is-visible {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }
        .senami-img-hover-preview img {
            display: block;
            max-width: calc(var(--preview-max-w, 520px) - 16px);
            max-height: calc(var(--preview-max-h, 420px) - 28px);
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
            background: var(--gray-100, #f3f4f6);
        }
        .senami-img-hover-hint {
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--gray-500, #6b7280);
            text-align: center;
            margin-top: 4px;
            line-height: 1;
        }
        body.dark .senami-img-hover-preview {
            background: var(--gray-800, #1f2937);
            border-color: rgba(0, 184, 148, 0.4);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
        }
        body.dark .senami-img-hover-preview img {
            background: var(--gray-900, #111827);
        }
        body.dark .senami-img-hover-hint {
            color: var(--gray-400);
        }

        @media (hover: none) {
            .senami-img-hover-preview { display: none !important; }
        }
        
        /* ========== PAGINATION SIMPLE ========== */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 32px;
            flex-wrap: wrap;
        }
        
        .pagination-btn {
            padding: 8px 14px;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--gray-700);
            font-family: inherit;
            transition: all 0.2s;
            transition: background 0.2s, color 0.2s, transform 0.15s;
        }
        
        body.dark .pagination-btn {
            background: var(--gray-800);
            border-color: var(--gray-700);
            color: var(--gray-300);
        }
        
        /* Hover pagination */
        .pagination-btn:hover:not(:disabled) {
            background: var(--emerald);
            border-color: var(--emerald);
            color: white; /* 🔥 lisibilité parfaite */
            transform: translateY(-1px);
        }
        
        body.dark .pagination-btn:hover:not(:disabled) {
            background: var(--emerald);
            border-color: var(--emerald);
            color: white;
        }
        
        .pagination-btn.active {
            background: var(--emerald);
            border-color: var(--emerald);
            color: white;
        }
        
        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        
        /* ========== FOOTER ========== */
        .footer {
            background: white;
            border-top: 1px solid var(--gray-200);
            padding: 40px 20px;
            margin-top: 60px;
        }
        
        body.dark .footer {
            background: var(--gray-800);
            border-top-color: var(--gray-700);
        }
        
        .footer-grid {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 40px;
            margin-bottom: 30px;
        }
        
        .footer-section h3 {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--emerald);
        }
        
        .footer-link {
            display: block;
            color: var(--gray-600);
            text-decoration: none;
            margin-bottom: 8px;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        
        body.dark .footer-link {
            color: var(--gray-400);
        }
        
        .footer-link:hover {
            color: var(--emerald);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid var(--gray-200);
            color: var(--gray-600);
            font-size: 0.85rem;
        }
        
        body.dark .footer-bottom {
            border-top-color: var(--gray-700);
            color: var(--gray-400);
        }
        
        /* ========== RESPONSIVE ========== */
        .mobile-only-inline { display: none !important; }
        .sidebar-drawer-head { display: none; }
        .filters-drawer-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 220;
            background: rgba(15, 23, 20, 0.45);
            -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
        }
        .filters-drawer-backdrop:not([hidden]) { display: block; }

        @media (max-width: 900px) {
            .mobile-only-inline { display: inline-flex !important; align-items: center; gap: 6px; }

            .header-container {
                gap: 6px 8px;
                flex-wrap: wrap;
                align-items: center;
                margin: 0 auto;
                padding: 0 10px;
            }

            .sn-brand-row {
                position: static;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                height: auto;
                margin: 0;
                padding: 10px 16px 2px;
                pointer-events: auto;
                background: transparent;
            }
            .sn-brand-row > .logo {
                font-size: 1.05rem;
                margin-right: 0;
            }
            .sn-brand-row > .controls {
                margin-left: auto;
                flex: 0 0 auto;
                flex-wrap: nowrap;
                gap: 4px;
            }

            .sn-frame > .header {
                position: sticky;
                top: 0;
                z-index: 100;
                padding: 6px 10px 8px;
            }

            .search-box {
                order: 3;
                flex: 1 1 100%;
                width: 100%;
                min-width: 0;
                max-width: 100%;
                margin: 0;
                padding: 4px 4px 4px 12px;
            }

            .header .search-box .btn-icon,
            .header .search-box .search-input {
                position: relative;
                z-index: 2;
            }
            .header .search-box .search-input {
                font-size: 16px;
            }
            .header .search-box .btn-icon {
                width: 44px;
                height: 44px;
                min-width: 44px;
                flex: 0 0 44px;
            }

            .filters-bar {
                position: sticky;
                top: var(--senami-header-h, 108px);
                z-index: 90;
                padding: 6px 0;
                background: var(--gray-50, #f9fafb);
            }
            body.dark .filters-bar {
                background: #0a1f1a;
            }

            .filters-container {
                padding: 0 12px;
                gap: 6px;
                scroll-padding-inline: 12px;
            }

            .filter-chip {
                padding: 7px 12px;
                font-size: 0.8rem;
            }

            .filter-chip--filters {
                background: #ecfdf5;
                border-color: #a7f3d0;
                color: #047857;
                font-weight: 600;
            }
            body.dark .filter-chip--filters {
                background: rgba(0, 152, 121, 0.18);
                border-color: rgba(0, 152, 121, 0.35);
                color: #6ee7b7;
            }

            .main {
                grid-template-columns: 1fr;
                padding: 12px;
                gap: 12px;
            }

            /* Tiroir latéral filtres */
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                width: min(320px, 88vw);
                max-height: none;
                height: 100%;
                z-index: 230;
                margin: 0;
                padding: 0 0 24px;
                background: var(--gray-50);
                border-right: 1px solid var(--gray-200);
                box-shadow: 8px 0 40px rgba(0, 0, 0, 0.18);
                transform: translateX(-105%);
                transition: transform 0.28s ease;
                overflow-y: auto;
                overflow-x: hidden;
                display: block;
                -webkit-overflow-scrolling: touch;
            }
            body.dark .sidebar {
                background: #0f1c18;
                border-right-color: var(--gray-700);
            }
            body.filters-open .sidebar {
                transform: translateX(0);
            }
            body.filters-open { overflow: hidden; }

            .sidebar-drawer-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: sticky;
                top: 0;
                z-index: 2;
                padding: 14px 16px;
                background: inherit;
                border-bottom: 1px solid var(--gray-200);
                margin-bottom: 8px;
            }
            body.dark .sidebar-drawer-head {
                border-bottom-color: var(--gray-700);
            }
            .sidebar-drawer-head strong {
                font-size: 1rem;
            }
            .sidebar-drawer-close {
                width: 40px;
                height: 40px;
                border: none;
                border-radius: 10px;
                background: var(--gray-100);
                color: var(--gray-700);
                cursor: pointer;
                font-size: 1rem;
            }
            body.dark .sidebar-drawer-close {
                background: var(--gray-700);
                color: var(--gray-200);
            }

            .sidebar .filter-group {
                min-width: 0;
                flex-shrink: unset;
                margin: 0 12px 12px;
            }

            .content-type-bar {
                overflow: visible;
                margin: 0 0 8px;
                padding: 0;
            }
            .content-type-selector {
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                flex-wrap: unset;
                width: 100%;
                min-width: 0;
                gap: 0;
            }

            .results,
            .results-list,
            .result-card,
            .no-results-container {
                min-width: 0;
                max-width: 100%;
            }
            .result-card-top,
            .result-card-actions,
            .result-meta-line {
                flex-wrap: wrap;
                min-width: 0;
                max-width: 100%;
            }
            .result-title,
            .result-desc,
            .result-url {
                overflow-wrap: anywhere;
                word-break: break-word;
                white-space: normal;
                max-width: 100%;
            }

            .result-body.has-thumb { gap: 12px; }
            .result-thumb {
                width: 72px;
                height: 72px;
                border-radius: 8px;
            }
            .result-desc { font-size: 0.9rem; }

            .job-card {
                grid-template-columns: 36px 1fr;
                padding: 10px;
                gap: 8px 10px;
            }
            .job-card-actions .btn,
            .job-card-actions a { font-size: 0.78rem; }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        @media (max-width: 480px) {
            .result-card { padding: 14px; }
            .result-card-top { flex-wrap: wrap; }
            .result-card-actions { margin-left: auto; }
            .result-title { font-size: 1rem; }
            .job-card-actions { gap: 6px; }
            .sidebar { width: min(100vw - 28px, 320px); }
        }

        /* ========== ANIMATION ULTRA-LÉGÈRE POUR RÉSULTATS UNIQUEMENT ========== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Application sur les cartes de résultats */
        .result-card {
            animation: fadeIn 0.25s ease backwards;
        }

        /* Délais ultra-courts en cascade */
        .result-card:nth-child(1) { animation-delay: 0.02s; }
        .result-card:nth-child(2) { animation-delay: 0.04s; }
        .result-card:nth-child(3) { animation-delay: 0.06s; }
        .result-card:nth-child(4) { animation-delay: 0.08s; }
        .result-card:nth-child(5) { animation-delay: 0.1s; }
        .result-card:nth-child(6) { animation-delay: 0.12s; }
        .result-card:nth-child(7) { animation-delay: 0.14s; }
        .result-card:nth-child(8) { animation-delay: 0.16s; }
        .result-card:nth-child(9) { animation-delay: 0.18s; }
        .result-card:nth-child(10) { animation-delay: 0.2s; }
        
        /* Animation ultra-rapide pour l'affichage */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .no-results-container {
            animation: fadeInUp 0.3s ease-out;
        }

        /* Animation pour l'icône */
        @keyframes scaleIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .no-results-icon {
            animation: scaleIn 0.4s ease-out;
        }

        /* Style des suggestions */
        .suggestion-chip {
            padding: 10px 18px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 24px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        body.dark .suggestion-chip {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }

        .suggestion-chip:hover {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 152, 121, 0.3);
        }

        .suggestion-chip i {
            font-size: 0.85rem;
        }

        /* ================================
        MODULES UTILITAIRES - STYLES
        ================================ */

        /* Conteneur des icônes outils */
        .tools-bar {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-left: 8px;
        }

        .tool-icon {
            width: 36px;
            height: 36px;
            border: 1px solid var(--gray-300);
            background: white;
            color: var(--gray-700);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            font-size: 1rem;
            flex-shrink: 0;
        }

        body.dark .tool-icon {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }

        .tool-icon:hover {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
            transform: scale(1.05);
        }

        .tool-icon.active {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
        }

        /* Popup universel */
        .tool-popup {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
        }

        .tool-popup.active {
            display: flex;
            animation: fadeIn 0.2s ease;
        }

        .tool-popup-content {
            background: white;
            border-radius: 16px;
            max-width: 500px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        body.dark .tool-popup-content {
            background: var(--gray-800);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tool-popup-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        body.dark .tool-popup-header {
            border-bottom-color: var(--gray-700);
        }

        .tool-popup-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--gray-900);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        body.dark .tool-popup-title {
            color: white;
        }

        .tool-popup-close {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--gray-100);
            color: var(--gray-600);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        body.dark .tool-popup-close {
            background: var(--gray-700);
            color: var(--gray-300);
        }

        .tool-popup-close:hover {
            background: var(--emerald);
            color: white;
        }

        .tool-popup-body {
            padding: 24px;
        }

        /* Form elements */
        .tool-input,
        .tool-select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            font-size: 0.95rem;
            font-family: inherit;
            transition: all 0.2s;
            background: white;
            color: var(--gray-900);
        }

        body.dark .tool-input,
        body.dark .tool-select {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: white;
        }

        .tool-input:focus,
        .tool-select:focus {
            outline: none;
            border-color: var(--emerald);
            box-shadow: 0 0 0 3px rgba(0, 152, 121, 0.1);
        }

        .tool-button {
            width: 100%;
            padding: 12px;
            background: var(--emerald);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .tool-button:hover {
            background: var(--emerald-dark);
            transform: translateY(-1px);
        }

        .tool-button:active {
            transform: translateY(0);
        }

        .tool-form-group {
            margin-bottom: 16px;
        }

        .tool-label {
            display: block;
            margin-bottom: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--gray-700);
        }

        body.dark .tool-label {
            color: var(--gray-300);
        }

        .tool-result {
            padding: 16px;
            background: var(--gray-100);
            border-radius: 8px;
            margin-top: 16px;
            text-align: center;
        }

        body.dark .tool-result {
            background: var(--gray-700);
        }

        .tool-result-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--emerald);
            margin-bottom: 4px;
        }

        .tool-result-label {
            font-size: 0.85rem;
            color: var(--gray-600);
        }

        body.dark .tool-result-label {
            color: var(--gray-400);
        }

        /* Inline badges et actions */
        .result-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .result-action-btn {
            padding: 6px 12px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--gray-700);
        }

        body.dark .result-action-btn {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }

        .result-action-btn:hover {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
        }

        .result-action-btn.active {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
        }

        .result-preview {
            margin-top: 12px;
            padding: 16px;
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            display: none;
            animation: fadeIn 0.2s ease;
        }

        body.dark .result-preview {
            background: var(--gray-700);
            border-color: var(--gray-600);
        }

        .result-preview.active {
            display: block;
        }

        .result-preview-close {
            float: right;
            cursor: pointer;
            color: var(--gray-500);
            font-size: 1.2rem;
        }

        .result-preview-close:hover {
            color: var(--emerald);
        }

        /* Liste historique/favoris */
        .tool-list {
            max-height: 300px;
            overflow-y: auto;
        }

        .tool-list-item {
            padding: 12px;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background 0.2s;
        }

        body.dark .tool-list-item {
            border-bottom-color: var(--gray-700);
        }

        .tool-list-item:hover {
            background: var(--gray-50);
        }

        body.dark .tool-list-item:hover {
            background: var(--gray-700);
        }

        .tool-list-item:last-child {
            border-bottom: none;
        }

        .tool-list-text {
            flex: 1;
            color: var(--gray-700);
            cursor: pointer;
        }

        body.dark .tool-list-text {
            color: var(--gray-300);
        }

        .tool-list-action {
            color: var(--gray-500);
            cursor: pointer;
            padding: 4px 8px;
            transition: color 0.2s;
        }

        .tool-list-action:hover {
            color: var(--emerald);
        }

        .tool-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray-500);
        }

        body.dark .tool-empty {
            color: var(--gray-400);
        }

        /* ── Tool row swap (selects côte à côte + bouton swap) ── */
        .tool-row-swap {
            display: flex;
            gap: 10px;
            align-items: flex-end;
        }
        .tool-row-swap select,
        .tool-row-swap .tool-input {
            flex: 1;
        }
        .swap-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--emerald, #0e7463);
            color: white;
            cursor: pointer;
            flex-shrink: 0;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, transform 0.2s;
            margin-bottom: 2px;
        }
        .swap-btn:hover {
            background: #007a62;
            transform: rotate(180deg);
        }
        .input-error {
            border-color: #ef4444 !important;
            animation: shake 0.3s ease;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25%       { transform: translateX(-6px); }
            75%       { transform: translateX(6px); }
        }

        /* ── Météo ── */
        .weather-main {
            text-align: center;
            padding: 16px 0 8px;
        }
        .weather-temp {
            font-size: 3rem;
            font-weight: 800;
            color: var(--emerald, #0e7463);
            line-height: 1;
        }
        .weather-cond {
            font-size: 1.05rem;
            color: var(--gray-700, #374151);
            margin: 6px 0 2px;
        }
        .weather-feels {
            font-size: 0.85rem;
            color: var(--gray-500, #6b7280);
        }
        .weather-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 12px;
        }
        .weather-stat {
            background: var(--gray-50, #f9fafb);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            border: 1px solid var(--gray-100, #f3f4f6);
        }
        body.dark .weather-stat {
            background: var(--gray-700, #374151);
            border-color: var(--gray-600, #4b5563);
        }
        .weather-stat i {
            color: var(--emerald, #0e7463);
            font-size: 1.1rem;
        }
        .weather-stat span {
            font-size: 1rem;
            font-weight: 700;
            color: var(--gray-800, #1f2937);
        }
        body.dark .weather-stat span {
            color: var(--gray-100, #f3f4f6);
        }
        .weather-stat small {
            font-size: 0.74rem;
            color: var(--gray-500, #6b7280);
        }
        .weather-source {
            font-size: 0.72rem;
            color: var(--gray-400, #9ca3af);
            text-align: center;
            margin-top: 12px;
        }

        /* ── Fuseaux horaires ── */
        .tz-local-card {
            background: linear-gradient(135deg, var(--emerald, #0e7463), #006b57);
            border-radius: 14px;
            padding: 18px 20px;
            text-align: center;
            color: white;
            margin-bottom: 8px;
        }
        .tz-local-label {
            font-size: 0.8rem;
            opacity: 0.85;
            margin-bottom: 6px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }
        .tz-local-time {
            font-size: 2.4rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }
        .tz-local-date {
            font-size: 0.82rem;
            opacity: 0.8;
            margin-top: 6px;
            text-transform: capitalize;
        }
        .tz-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--gray-50, #f9fafb);
            border-radius: 12px;
            padding: 14px 16px;
            border: 1.5px solid var(--gray-200, #e5e7eb);
        }
        body.dark .tz-card {
            background: var(--gray-700, #374151);
            border-color: var(--gray-600, #4b5563);
        }
        .tz-flag {
            font-size: 2rem;
            flex-shrink: 0;
            line-height: 1;
        }
        .tz-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .tz-country {
            font-size: 0.78rem;
            color: var(--gray-500, #6b7280);
        }
        .tz-time {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--gray-900, #111827);
            font-variant-numeric: tabular-nums;
            line-height: 1.1;
        }
        body.dark .tz-time {
            color: var(--gray-50, #f9fafb);
        }
        .tz-date {
            font-size: 0.78rem;
            color: var(--gray-500, #6b7280);
            text-transform: capitalize;
        }

        /* ── Traducteur ── */
        .translate-result-text {
            font-size: 1.05rem;
            line-height: 1.6;
            color: var(--gray-800, #1f2937);
            background: var(--gray-50, #f9fafb);
            border-radius: 10px;
            padding: 14px;
            border: 1.5px solid var(--gray-200, #e5e7eb);
            white-space: pre-wrap;
            word-break: break-word;
        }
        body.dark .translate-result-text {
            background: var(--gray-700, #374151);
            border-color: var(--gray-600, #4b5563);
            color: var(--gray-100, #f3f4f6);
        }
        .translate-detected {
            font-size: 0.78rem;
            color: var(--gray-500, #6b7280);
            margin-top: 6px;
        }
        .translate-copy-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: 1.5px solid var(--gray-200, #e5e7eb);
            border-radius: 8px;
            padding: 6px 12px;
            font-size: 0.82rem;
            cursor: pointer;
            color: var(--gray-600, #4b5563);
            margin-top: 8px;
            transition: border-color 0.2s, color 0.2s;
        }
        .translate-copy-btn:hover {
            border-color: var(--emerald, #0e7463);
            color: var(--emerald, #0e7463);
        }
        .translate-source {
            font-size: 0.72rem;
            color: var(--gray-400, #9ca3af);
            margin-top: 8px;
        }

        /* ── Calculateur ── */
        .calc-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        /* ── Compteur de mots ── */
        .wc-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 4px;
        }
        .wc-stat {
            background: var(--gray-50, #f9fafb);
            border: 1.5px solid var(--gray-100, #f3f4f6);
            border-radius: 12px;
            padding: 14px 10px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        body.dark .wc-stat {
            background: var(--gray-700, #374151);
            border-color: var(--gray-600, #4b5563);
        }
        .wc-stat span {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--emerald, #0e7463);
        }
        .wc-stat small {
            font-size: 0.75rem;
            color: var(--gray-500, #6b7280);
        }
        .wc-read-stat {
            grid-column: span 3;
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
            border-color: #bbf7d0;
        }
        body.dark .wc-read-stat {
            background: rgba(0, 152, 121, 0.12);
            border-color: rgba(0, 152, 121, 0.3);
        }
        .wc-read-stat span {
            color: var(--emerald, #0e7463);
        }

        /* ── Ghost button (secondary action) ── */
        .tool-btn-ghost {
            background: none;
            border: 1.5px solid var(--gray-200, #e5e7eb);
            border-radius: 8px;
            padding: 7px 14px;
            font-size: 0.82rem;
            cursor: pointer;
            color: var(--gray-600, #4b5563);
            transition: border-color 0.2s, color 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .tool-btn-ghost:hover {
            border-color: #ef4444;
            color: #ef4444;
        }
        body.dark .tool-btn-ghost {
            border-color: var(--gray-600, #4b5563);
            color: var(--gray-300, #d1d5db);
        }

        /* Responsive mobile */
        @media (max-width: 768px) {
            .tools-bar {
                order: 2;
                gap: 6px;
            }
            
            .tool-icon {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }
            
            .tool-popup-content {
                max-width: 100%;
                margin: 0;
                border-radius: 16px 16px 0 0;
                max-height: 90vh;
            }
            
            .tool-popup {
                align-items: flex-end;
            }
        }

        /* ================================
        TOAST NOTIFICATION
        ================================ */
        #senami-toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: var(--gray-800);
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        body.dark #senami-toast {
            background: var(--gray-700);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        @media (max-width: 768px) {
            #senami-toast {
                bottom: 16px;
                right: 16px;
                left: 16px;
                text-align: center;
                justify-content: center;
            }
        }

        /* ================================
        MENU OUTILS DÉROULANT
        ================================ */

        .tools-dropdown {
            position: relative;
        }

        .tools-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--gray-700);
            transition: all 0.2s;
        }

        body.dark .tools-btn {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }

        .tools-btn:hover {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
        }

        body.dark .tools-btn:hover {
            background: var(--emerald);
        }

        .tools-btn.active {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
        }

        .tools-label {
            font-weight: 600;
        }

        .tools-chevron {
            font-size: 0.7rem;
            transition: transform 0.3s;
        }

        .tools-btn.active .tools-chevron {
            transform: rotate(180deg);
        }

        /* Menu déroulant */
        .tools-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 320px;
            max-height: 600px;
            overflow-y: auto;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 1000;
        }

        body.dark .tools-menu {
            background: var(--gray-800);
            border-color: var(--gray-700);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

        .tools-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Header du menu */
        .tools-menu-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--gray-200);
            font-weight: 700;
            font-size: 1rem;
            color: var(--gray-900);
        }

        body.dark .tools-menu-header {
            border-bottom-color: var(--gray-700);
            color: white;
        }

        /* Catégories */
        .tools-category {
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        body.dark .tools-category {
            border-bottom-color: var(--gray-700);
        }

        .tools-category:last-child {
            border-bottom: none;
        }

        .tools-category-title {
            padding: 8px 20px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--gray-500);
        }

        body.dark .tools-category-title {
            color: var(--gray-400);
        }

        /* Items du menu */
        .tools-menu-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }

        .tools-menu-item:hover {
            background: var(--gray-50);
        }

        body.dark .tools-menu-item:hover {
            background: var(--gray-700);
        }

        .tools-item-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            border-radius: 10px;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        body.dark .tools-item-icon {
            background: var(--gray-700);
        }

        .tools-menu-item:hover .tools-item-icon {
            background: var(--emerald);
            transform: scale(1.05);
        }

        .tools-item-content {
            flex: 1;
        }

        .tools-item-title {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--gray-900);
            margin-bottom: 2px;
        }

        body.dark .tools-item-title {
            color: white;
        }

        .tools-item-desc {
            font-size: 0.8rem;
            color: var(--gray-600);
        }

        body.dark .tools-item-desc {
            color: var(--gray-400);
        }

        /* Responsive */
        @media (max-width: 900px) {
            .tools-btn {
                padding: 8px 10px;
            }
            .tools-label {
                display: none;
            }
            .tools-menu {
                position: fixed;
                top: 64px;
                left: 10px;
                right: 10px;
                width: auto;
                max-width: none;
                max-height: calc(100dvh - 80px);
                overflow-x: hidden;
                overflow-y: auto;
                transform: none;
            }
            .tools-menu.active {
                transform: none;
            }
            .tools-item-content {
                min-width: 0;
            }
            .tools-item-title,
            .tools-item-desc {
                overflow-wrap: anywhere;
            }
            .tool-popup {
                padding: 0;
                align-items: stretch;
                justify-content: stretch;
                animation: none;
            }
            .tool-popup-content {
                width: 100%;
                max-width: 100%;
                height: 100%;
                max-height: 100%;
                border-radius: 0;
                animation: none;
            }
        }

        /* Scrollbar custom */
        .tools-menu::-webkit-scrollbar {
            width: 6px;
        }

        .tools-menu::-webkit-scrollbar-track {
            background: transparent;
        }

        .tools-menu::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 3px;
        }

        body.dark .tools-menu::-webkit-scrollbar-thumb {
            background: var(--gray-600);
        }

        /************************************************************************/
        /************************************************************************/

        /* ================================
        BOUTON LECTURE RAPIDE - À AJOUTER DANS styles.css
        ================================ */

        /* Bouton lecture rapide — styles complémentaires (position gérée par .result-card-actions) */
        .result-quick-read {
            transition:
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease,
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s ease;
        }

        .result-quick-read i {
            font-size: 1rem;
            color: var(--gray-400);
            transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .result-quick-read:hover {
            transform: scale(1.12);
            border-color: var(--emerald);
            box-shadow: 0 6px 20px rgba(0, 152, 121, 0.28);
        }

        .result-quick-read:hover i {
            color: var(--emerald);
            transform: translateY(-1px);
        }

        .result-quick-read:active {
            transform: scale(0.94);
            transition-duration: 0.12s;
        }

        /* Tooltip */
        .result-quick-read::before {
            content: attr(data-tooltip);
            position: absolute;
            top: -35px;
            right: 0;
            background: var(--gray-800);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        body.dark .result-quick-read::before {
            background: var(--gray-700);
        }

        .result-quick-read::after {
            content: '';
            position: absolute;
            top: -8px;
            right: 12px;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid var(--gray-800);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }

        body.dark .result-quick-read::after {
            border-top-color: var(--gray-700);
        }

        .result-quick-read:hover::before,
        .result-quick-read:hover::after {
            opacity: 1;
        }

        /* ================================
        POPUP LECTURE RAPIDE — animation ultra fluide
        ================================ */
        .quick-read-popup {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(8, 18, 15, 0);
            -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition:
                opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.38s linear,
                background 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                -webkit-backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: opacity, background;
        }

        .quick-read-popup.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            background: rgba(8, 18, 15, 0.58);
            -webkit-backdrop-filter: blur(10px) saturate(1.15);
            backdrop-filter: blur(10px) saturate(1.15);
        }

        .quick-read-popup.closing {
            opacity: 0;
            visibility: visible;
            pointer-events: none;
            background: rgba(8, 18, 15, 0);
            -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
        }

        .quick-read-content {
            background: white;
            border-radius: 20px;
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow:
                0 4px 24px rgba(0, 0, 0, 0.08),
                0 28px 80px rgba(0, 0, 0, 0.28);
            overflow: hidden;
            opacity: 0;
            transform: translate3d(0, 28px, 0) scale(0.96);
            transition:
                opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform, opacity;
        }

        .quick-read-popup.active:not(.closing) .quick-read-content {
            opacity: 1;
            transform: translate3d(0, 0, 0) scale(1);
            transition-delay: 0.04s;
        }

        .quick-read-popup.closing .quick-read-content {
            opacity: 0;
            transform: translate3d(0, 16px, 0) scale(0.97);
            transition-duration: 0.28s, 0.32s;
            transition-timing-function: cubic-bezier(0.4, 0, 1, 1), cubic-bezier(0.4, 0, 1, 1);
            transition-delay: 0s;
        }

        body.dark .quick-read-content {
            background: var(--gray-800);
            box-shadow:
                0 4px 24px rgba(0, 0, 0, 0.35),
                0 28px 80px rgba(0, 0, 0, 0.55);
        }

        /* Contenu corps : fondu doux au chargement */
        .quick-read-body > * {
            animation: qrBodyIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes qrBodyIn {
            from {
                opacity: 0;
                transform: translate3d(0, 10px, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .quick-read-popup,
            .quick-read-content,
            .quick-read-body > * {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
            }
        }

        /* Header de la popup */
        .quick-read-header {
            padding: 24px 28px;
            border-bottom: 2px solid var(--gray-100);
            display: flex;
            align-items: flex-start;
            gap: 16px;
            flex-shrink: 0;
        }

        body.dark .quick-read-header {
            border-bottom-color: var(--gray-700);
        }

        .quick-read-favicon {
            width: 40px;
            height: 40px;
            background: var(--emerald);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .quick-read-header-content {
            flex: 1;
            min-width: 0;
        }

        .quick-read-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 6px;
            line-height: 1.4;
        }

        body.dark .quick-read-title {
            color: white;
        }

        .quick-read-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 0.85rem;
            color: var(--gray-600);
        }

        body.dark .quick-read-meta {
            color: var(--gray-400);
        }

        .quick-read-domain {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--emerald);
            font-weight: 500;
        }

        .quick-read-badge {
            padding: 3px 8px;
            background: var(--gray-100);
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        body.dark .quick-read-badge {
            background: var(--gray-700);
        }

        .quick-read-close {
            width: 40px;
            height: 40px;
            border: none;
            background: var(--gray-100);
            color: var(--gray-600);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
            font-size: 1.2rem;
        }

        body.dark .quick-read-close {
            background: var(--gray-700);
            color: var(--gray-300);
        }

        .quick-read-close:hover {
            background: var(--emerald);
            color: white;
            transform: rotate(90deg);
        }

        /* Corps de la popup avec scrollbar custom */
        .quick-read-body {
            padding: 32px 28px;
            overflow-y: auto;
            flex: 1;
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--gray-800);
        }

        body.dark .quick-read-body {
            color: var(--gray-200);
        }

        /* Scrollbar personnalisée */
        .quick-read-body::-webkit-scrollbar {
            width: 10px;
        }

        .quick-read-body::-webkit-scrollbar-track {
            background: var(--gray-100);
        }

        body.dark .quick-read-body::-webkit-scrollbar-track {
            background: var(--gray-700);
        }

        .quick-read-body::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 5px;
        }

        body.dark .quick-read-body::-webkit-scrollbar-thumb {
            background: var(--gray-600);
        }

        .quick-read-body::-webkit-scrollbar-thumb:hover {
            background: var(--emerald);
        }

        /* Contenu de lecture — texte intégral, jamais tronqué */
        .quick-read-text,
        .quick-read-text.qr-full-text {
            font-family: 'Georgia', 'Times New Roman', serif;
            font-size: 1.1rem;
            line-height: 1.9;
            color: var(--gray-800);
            overflow: visible;
            max-height: none;
        }

        .quick-read-text p,
        .quick-read-text li,
        .quick-read-text blockquote {
            overflow: visible;
            white-space: normal;
            word-wrap: break-word;
            overflow-wrap: anywhere;
            display: block;
            -webkit-line-clamp: unset;
            line-clamp: unset;
            max-height: none;
        }

        body.dark .quick-read-text {
            color: var(--gray-200);
        }

        .quick-read-text p {
            margin-bottom: 20px;
        }

        .quick-read-text h1,
        .quick-read-text h2,
        .quick-read-text h3 {
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            color: var(--gray-900);
            margin-top: 32px;
            margin-bottom: 16px;
            line-height: 1.3;
        }

        body.dark .quick-read-text h1,
        body.dark .quick-read-text h2,
        body.dark .quick-read-text h3 {
            color: white;
        }

        .quick-read-text h1 {
            font-size: 2rem;
        }

        .quick-read-text h2 {
            font-size: 1.6rem;
        }

        .quick-read-text h3 {
            font-size: 1.3rem;
        }

        .quick-read-text ul,
        .quick-read-text ol {
            margin: 20px 0 20px 24px;
        }

        .quick-read-text li {
            margin-bottom: 10px;
        }

        .quick-read-text a {
            color: var(--emerald);
            text-decoration: underline;
        }

        .quick-read-text img {
            max-width: 100%;
            border-radius: 12px;
            margin: 24px 0;
        }

        .quick-read-text blockquote {
            border-left: 4px solid var(--emerald);
            padding-left: 20px;
            margin: 24px 0;
            font-style: italic;
            color: var(--gray-600);
        }

        body.dark .quick-read-text blockquote {
            color: var(--gray-400);
        }

        /* État de chargement */
        .quick-read-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            gap: 16px;
        }

        .quick-read-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--gray-200);
            border-top-color: var(--emerald);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        body.dark .quick-read-spinner {
            border-color: var(--gray-700);
            border-top-color: var(--emerald);
        }

        .quick-read-loading-text {
            color: var(--gray-600);
            font-size: 1rem;
            font-weight: 500;
        }

        body.dark .quick-read-loading-text {
            color: var(--gray-400);
        }

        /* Message d'erreur */
        .quick-read-error {
            padding: 40px;
            text-align: center;
        }

        .quick-read-error-icon {
            font-size: 3rem;
            color: var(--gray-400);
            margin-bottom: 16px;
        }

        .quick-read-error-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--gray-700);
            margin-bottom: 8px;
        }

        body.dark .quick-read-error-title {
            color: var(--gray-300);
        }

        .quick-read-error-text {
            color: var(--gray-600);
            margin-bottom: 20px;
        }

        body.dark .quick-read-error-text {
            color: var(--gray-400);
        }

        /* Footer avec actions */
        .quick-read-footer {
            padding: 20px 28px;
            border-top: 2px solid var(--gray-100);
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }

        body.dark .quick-read-footer {
            border-top-color: var(--gray-700);
        }

        .quick-read-action {
            flex: 1;
            padding: 12px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--gray-700);
            transition: all 0.2s;
        }

        body.dark .quick-read-action {
            background: var(--gray-700);
            border-color: var(--gray-600);
            color: var(--gray-300);
        }

        .quick-read-action:hover {
            background: var(--emerald);
            color: white;
            border-color: var(--emerald);
            transform: translateY(-2px);
        }

        .quick-read-action i {
            font-size: 1rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .quick-read-content {
                max-width: 100%;
                max-height: 100vh;
                border-radius: 0;
            }
            
            .quick-read-header {
                padding: 20px;
            }
            
            .quick-read-body {
                padding: 24px 20px;
            }
            
            .quick-read-footer {
                padding: 16px 20px;
                flex-wrap: wrap;
            }
            
            .quick-read-action {
                min-width: calc(50% - 6px);
            }
            
            .quick-read-title {
                font-size: 1.1rem;
            }
            
            .quick-read-text {
                font-size: 1rem;
            }
        }

        /* ================================
           LECTURE RAPIDE — Nouvelles classes
           ================================ */

        /* --- Barre de progression de lecture (haut de popup) --- */
        .qr-progress-bar {
            height: 3px;
            background: var(--gray-100);
            flex-shrink: 0;
            overflow: hidden;
        }
        body.dark .qr-progress-bar {
            background: var(--gray-700);
        }
        .qr-progress-fill {
            height: 100%;
            width: 0%;
            background: var(--emerald);
            transition: width 0.12s linear;
            border-radius: 0 2px 2px 0;
        }

        /* --- Actions dans le header (A- A+ ✕) --- */
        .qr-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            margin-left: auto;
            padding-left: 12px;
        }
        .qr-font-btn {
            width: 34px;
            height: 34px;
            border: 1.5px solid var(--gray-200);
            background: transparent;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.78rem;
            color: var(--gray-600);
            transition: border-color 0.15s, color 0.15s, background 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        .qr-font-btn:hover {
            border-color: var(--emerald);
            color: var(--emerald);
            background: #f0fdf4;
        }
        body.dark .qr-font-btn {
            border-color: var(--gray-600);
            color: var(--gray-300);
        }
        body.dark .qr-font-btn:hover {
            border-color: var(--emerald);
            color: var(--emerald);
            background: rgba(0,152,121,0.12);
        }

        /* --- Boutons navigation prev/next dans le footer --- */
        .qr-nav-btn {
            flex: 1.3 !important;
            min-width: 80px !important;
        }
        .qr-nav-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* --- Position dans la liste (ex: "3 / 12") --- */
        .qr-nav-pos {
            display: inline-flex;
            align-items: center;
            background: var(--gray-100);
            border-radius: 20px;
            padding: 2px 9px;
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--gray-500);
        }
        body.dark .qr-nav-pos {
            background: var(--gray-700);
            color: var(--gray-400);
        }

        /* --- Mise en surbrillance des termes de recherche --- */
        .qr-highlight,
        mark.qr-highlight {
            background: #d1fae5;
            color: #065f46;
            border-radius: 3px;
            padding: 0 2px;
            font-style: normal;
        }
        body.dark .qr-highlight,
        body.dark mark.qr-highlight {
            background: #064e3b;
            color: #6ee7b7;
        }

        /* --- Image OG en bannière --- */
        .qr-og-image {
            width: 100%;
            max-height: 240px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 22px;
            display: block;
        }

        /* --- Description / chapeau --- */
        .qr-description {
            font-size: 1.08em;
            font-weight: 500;
            color: var(--gray-700);
            border-left: 3px solid var(--emerald);
            padding: 10px 16px;
            background: var(--gray-50);
            border-radius: 0 8px 8px 0;
            margin-bottom: 20px;
            line-height: 1.7;
        }
        body.dark .qr-description {
            background: var(--gray-800);
            color: var(--gray-300);
        }

        /* --- Note de source en bas de contenu --- */
        .qr-source-note {
            font-size: 0.78rem;
            color: var(--gray-400);
            border-top: 1px solid var(--gray-100);
            margin-top: 28px;
            padding-top: 14px;
            line-height: 1.6;
        }
        body.dark .qr-source-note {
            border-color: var(--gray-700);
        }
        .qr-source-note a {
            color: var(--emerald);
            text-decoration: none;
        }
        .qr-source-note a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .quick-read-popup {
                padding: 0;
                align-items: stretch;
                justify-content: stretch;
            }
            .quick-read-content {
                width: 100%;
                max-width: none;
                height: 100dvh;
                max-height: 100dvh;
                border-radius: 0;
            }
            .quick-read-header {
                display: grid;
                grid-template-columns: 36px minmax(0, 1fr) auto;
                align-items: start;
                gap: 8px 10px;
                padding: 12px 12px 10px;
            }
            .quick-read-favicon {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                font-size: 1rem;
            }
            .quick-read-title {
                font-size: 1rem;
                line-height: 1.35;
                margin-bottom: 4px;
                overflow-wrap: anywhere;
            }
            .quick-read-meta {
                gap: 6px 8px;
                font-size: 0.78rem;
            }
            .quick-read-domain {
                min-width: 0;
                overflow-wrap: anywhere;
            }
            .qr-header-actions {
                margin-left: 0;
                padding-left: 0;
                gap: 4px;
            }
            .qr-font-btn,
            .quick-read-close {
                width: 36px;
                height: 36px;
            }
            .quick-read-body {
                padding: 14px 14px 18px;
                font-size: 0.98rem;
                line-height: 1.65;
                -webkit-overflow-scrolling: touch;
            }
            .quick-read-text,
            .quick-read-text.qr-full-text {
                font-size: 1rem;
                line-height: 1.7;
            }
            .quick-read-text h1 { font-size: 1.35rem; margin-top: 18px; }
            .quick-read-text h2 { font-size: 1.18rem; margin-top: 16px; }
            .quick-read-text h3 { font-size: 1.05rem; margin-top: 14px; }
            .quick-read-text p { margin-bottom: 14px; }
            .quick-read-text ul,
            .quick-read-text ol { margin: 12px 0 12px 18px; }
            .quick-read-text img,
            .qr-og-image,
            .qr-image-full {
                max-width: 100%;
                height: auto;
                max-height: 42vh;
                margin: 10px 0;
                border-radius: 10px;
            }
            .quick-read-text table,
            .quick-read-text pre,
            .quick-read-text iframe {
                display: block;
                max-width: 100%;
                overflow-x: auto;
            }
            .qr-description {
                font-size: 0.98em;
                padding: 8px 12px;
                margin-bottom: 14px;
            }
            .qr-image-actions {
                display: grid;
                grid-template-columns: 1fr;
            }
            .qr-image-btn {
                justify-content: center;
                width: 100%;
            }
            .quick-read-footer {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px;
                padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
            }
            .quick-read-action,
            .qr-nav-btn {
                flex: none !important;
                min-width: 0 !important;
                width: 100%;
                padding: 10px 4px;
                font-size: 0.75rem;
                gap: 4px;
                white-space: nowrap;
            }
        }

        /* --- Bandeau de fallback --- */
        .qr-fallback-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fef3c7;
            color: #92400e;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 0.88rem;
            font-weight: 500;
            margin-bottom: 18px;
        }
        body.dark .qr-fallback-banner {
            background: #451a03;
            color: #fcd34d;
        }
        .qr-fallback-banner i {
            flex-shrink: 0;
            font-size: 1rem;
        }

        /* Autocomplete (results header) */
        .header .search-box {
            position: relative;
        }
        .header .suggestions {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            padding: 8px;
            box-shadow: 0 12px 32px rgba(0,0,0,0.12);
            display: none;
            max-height: 320px;
            overflow-y: auto;
            z-index: 2000;
        }
        .header .suggestions.active {
            display: block;
        }
        body.dark .header .suggestions {
            background: var(--gray-800);
            border-color: var(--gray-700);
        }
        .header .suggestion-item {
            padding: 10px 14px;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--gray-700);
        }
        body.dark .header .suggestion-item {
            color: var(--gray-300);
        }
        .header .suggestion-item:hover {
            background: rgba(0, 152, 121, 0.08);
        }
        .header .suggestion-item i {
            color: var(--emerald);
            width: 16px;
        }

        /* SENAMI Answer sources (legacy title) */
        .ai-sources-title {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: var(--gray-500);
            margin-bottom: 4px;
        }
        .ai-sources-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .ai-sources-list a {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--emerald-dark, #0a5c4e);
            text-decoration: none;
            font-size: 0.9rem;
        }
        .ai-sources-list a:hover {
            text-decoration: underline;
        }
        .ai-src-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(0, 152, 121, 0.12);
            color: var(--emerald);
            font-size: 0.65rem;
            font-weight: 700;
            flex-shrink: 0;
        }
/* ===== Fiche entreprise � override simple & pro (2026-08-29) ===== */
.biz-sheet-panel {
    width: min(560px, 100%) !important;
    max-height: min(90vh, 780px) !important;
    border-radius: 14px !important;
    border: 1px solid #e2eee9 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}
.biz-sheet-cover,
.biz-sheet-cover-glow,
.biz-sheet-handle,
.biz-sheet-hero-wrap > .biz-sheet-cover,
.biz-sheet-hero {
    display: none !important;
}
.biz-sheet-hero-wrap {
    background: transparent !important;
    border-bottom: 0 !important;
}
.biz-sheet-head {
    margin-top: 0 !important;
    padding: 22px 48px 16px 22px !important;
    border-bottom: 1px solid #eef3f1;
    gap: 14px !important;
}
.biz-sheet-logo {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
    border-radius: 10px !important;
    border: 1px solid #dce6e2 !important;
    box-shadow: none !important;
    background: #eef5f2 !important;
    font-size: 1.3rem !important;
    color: #0d7a64 !important;
}
.biz-sheet-head-main {
    padding-top: 0 !important;
}
.biz-sheet-head-main h2,
.biz-sheet-head-text h2 {
    font-family: inherit !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}
.biz-sheet-head-badge {
    border-radius: 6px !important;
    padding: 3px 8px !important;
}
.biz-sheet-meta-sector {
    display: inline-flex !important;
    align-items: center;
    color: #0d7a64 !important;
    background: #eef7f3 !important;
    border: 1px solid #d0e8df !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.74rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.biz-sheet-meta-sector i { display: none !important; }
.biz-sheet-actions {
    padding: 14px 22px !important;
    border-bottom: 1px solid #eef3f1;
}
.biz-sheet-act {
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
}
.biz-sheet-act--wa {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}
.biz-sheet-act--primary {
    background: #0e7463 !important;
    border-color: #0e7463 !important;
    color: #fff !important;
}
.biz-sheet-content {
    padding: 8px 22px 22px !important;
    gap: 0 !important;
}
.biz-sheet-block,
.biz-sheet-contact-block,
.biz-sheet-aside-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #eef3f1 !important;
    padding: 14px 0 !important;
    margin: 0 !important;
}
.biz-sheet-block:last-child,
.biz-sheet-contact-block:last-child {
    border-bottom: 0 !important;
}
.biz-sheet-block-head {
    margin-bottom: 8px !important;
}
.biz-sheet-block-head i { display: none !important; }
.biz-sheet-block-head h3,
.biz-sheet-block > h3 {
    margin: 0 0 8px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #6b8078 !important;
}
.biz-sheet-tag {
    border-radius: 6px !important;
    background: #eef7f3 !important;
    border: 1px solid #d0e8df !important;
    font-weight: 500 !important;
    color: #0d7a64 !important;
}
.biz-sheet-contact-item {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.biz-sheet-contact-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #eef7f3 !important;
    color: #0d7a64 !important;
}
.biz-sheet-close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid #e2eee9 !important;
    background: #fff !important;
    box-shadow: none !important;
    top: 12px !important;
    right: 12px !important;
}
.biz-sheet-reveal { animation: none !important; }

/* Pagination annuaire bien visible en bas */
.results #pagination.ready,
#pagination.ready {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0 12px;
    padding-top: 8px;
}
