
    /* ── DRAPEAUX EMOJI SUR WINDOWS ──
       Segoe UI Emoji n'a pas de drapeaux → 🇨🇦 s'affiche « CA » sur Windows/Edge.
       Police Twemoji (CC-BY 4.0, auto-hébergée) limitée aux indicateurs régionaux,
       activée par html.no-flag-emoji (détection en fin de <head>). */
    @font-face {
      font-family: 'Twemoji Country Flags';
      src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2');
      unicode-range: U+1F1E6-1F1FF;
      font-display: swap;
    }
    html.no-flag-emoji body,
    html.no-flag-emoji .geo-flag,
    html.no-flag-emoji .dash-flag,
    html.no-flag-emoji .doodle-flag {
      font-family: 'Twemoji Country Flags', 'Outfit', sans-serif;
    }

    /* ── THÈME BORÉAL — Jour (défaut) ── */
    :root, [data-theme="light"], .theme-jour {
      --bg: #e8f0e4;
      --sky-top: #87ceeb; --sky-mid: #b8d8e8; --sky-bottom: #e8f0e4;
      --surface: rgba(255,255,255,0.65);
      --border: rgba(31,51,41,0.15);
      --accent: #1f3329;
      --accent-dim: rgba(31,51,41,0.1);
      --text: #1f3329;
      --muted: #6b7d72;
      --green: #2d6a4f;
      --green-dim: rgba(45,106,79,0.2);
      --shadow: rgba(0,0,0,0.08);
      --modal-overlay: rgba(31,51,41,0.4);
      --logo-text: #1f3329;
      --forest-back: #5a7560; --forest-front: #2d4a38;
      --glass-bg: rgba(255,255,255,0.65); --glass-border: rgba(31,51,41,0.2);
      --accent-text: #fff5e0;
      --sun-color: #ffd89b;
    }
    /* ── Aube (05h-10h) ── */
    [data-boreal="aube"], .theme-aube {
      --bg: #e8c8a8;
      --sky-top: #c8dce8; --sky-mid: #f2d4b8; --sky-bottom: #e8c8a8;
      --surface: rgba(255,255,255,0.7);
      --border: rgba(31,51,41,0.15);
      --accent: #1f3329;
      --accent-dim: rgba(31,51,41,0.1);
      --text: #1f3329;
      --muted: #6b7d72;
      --green: #2d6a4f;
      --green-dim: rgba(45,106,79,0.2);
      --shadow: rgba(0,0,0,0.1);
      --modal-overlay: rgba(31,51,41,0.4);
      --logo-text: #1f3329;
      --forest-back: #5a7560; --forest-front: #2d4a38;
      --glass-bg: rgba(255,255,255,0.7); --glass-border: rgba(31,51,41,0.2);
      --accent-text: #fff5e0;
      --sun-color: #ffb870;
    }
    /* ── Crépuscule (17h-21h) ── */
    [data-boreal="crepuscule"], .theme-crepuscule {
      --bg: #f4a76a;
      --sky-top: #4a3a5c; --sky-mid: #d4645a; --sky-bottom: #f4a76a;
      --surface: rgba(74,58,92,0.45);
      --border: rgba(255,245,224,0.2);
      --accent: #fff5e0;
      --accent-dim: rgba(255,245,224,0.15);
      --text: #fff5e0;
      --muted: rgba(255,245,224,0.6);
      --green: #4ade80;
      --green-dim: rgba(74,222,128,0.3);
      --shadow: rgba(0,0,0,0.2);
      --modal-overlay: rgba(42,26,58,0.6);
      --logo-text: #fff5e0;
      --forest-back: #3d4a3e; --forest-front: #1f2a22;
      --glass-bg: rgba(74,58,92,0.45); --glass-border: rgba(255,245,224,0.25);
      --accent-text: #4a3a5c;
      --sun-color: #f4a76a;
    }
    @keyframes toastSlide {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    /* ── Minimal (blanc épuré, façon Google) ── */
    [data-boreal="minimal"], .theme-minimal {
      --bg: #ffffff;
      --sky-top: #ffffff; --sky-mid: #ffffff; --sky-bottom: #ffffff;
      --surface: #ffffff;
      --border: #dadce0;
      --accent: #1a73e8;
      --accent-dim: rgba(26,115,232,0.08);
      --text: #202124;
      --muted: #5f6368;
      --green: #34a853;
      --green-dim: rgba(52,168,83,0.15);
      --shadow: rgba(60,64,67,0.10);
      --modal-overlay: rgba(0,0,0,0.4);
      --logo-text: #202124;
      --forest-back: transparent; --forest-front: transparent;
      --glass-bg: #ffffff; --glass-border: #dadce0;
      --accent-text: #ffffff;
      --sun-color: #fbbc04;
    }
    /* Cache tous les éléments décoratifs en mode minimal */
    .theme-minimal .etoile,
    [data-boreal="minimal"] .etoile,
    .theme-minimal .brume,
    [data-boreal="minimal"] .brume,
    .theme-minimal .feu-camp,
    [data-boreal="minimal"] .feu-camp,
    .theme-minimal .foret-back,
    [data-boreal="minimal"] .foret-back,
    .theme-minimal .foret-front,
    [data-boreal="minimal"] .foret-front,
    .theme-minimal .soleil,
    [data-boreal="minimal"] .soleil,
    .theme-minimal .lune,
    [data-boreal="minimal"] .lune,
    .theme-minimal .montagnes,
    [data-boreal="minimal"] .montagnes,
    .theme-minimal .nuages,
    [data-boreal="minimal"] .nuages,
    .theme-minimal .ciel,
    [data-boreal="minimal"] .ciel { display: none !important; }
    /* Fond uni blanc en mode minimal */
    .theme-minimal body,
    body[data-boreal="minimal"],
    html[data-boreal="minimal"] body {
      background: #ffffff !important;
    }
    .theme-minimal .wrapper,
    [data-boreal="minimal"] .wrapper {
      background: #ffffff;
    }

    /* ── Nuit (21h-05h) ── */
    [data-boreal="nuit"], .theme-nuit {
      --bg: #0a1a24;
      --sky-top: #050b14; --sky-mid: #0a1a24; --sky-bottom: #0d2018;
      --surface: rgba(15,37,48,0.5);
      --border: rgba(200,220,210,0.15);
      --accent: #f4f8f6;
      --accent-dim: rgba(244,248,246,0.1);
      --text: #f4f8f6;
      --muted: rgba(200,220,210,0.55);
      --green: #4ade80;
      --green-dim: rgba(74,222,128,0.3);
      --shadow: rgba(0,0,0,0.4);
      --modal-overlay: rgba(5,11,20,0.7);
      --logo-text: #f4f8f6;
      --forest-back: #0a1a12; --forest-front: #041008;
      --glass-bg: rgba(15,37,48,0.5); --glass-border: rgba(200,220,210,0.25);
      --accent-text: #0a1a24;
      --sun-color: #ffeacc;
    }
    /* ── Galaxie (photographie étoilée embarquée, même ambiance qu'AubeNavigator) ── */
    [data-boreal="galaxie"], .theme-galaxie {
      --bg: #0a1626;
      --sky-top: #0a1626; --sky-mid: #0a1626; --sky-bottom: #0a1626;
      --surface: rgba(10,22,38,0.55);
      --border: rgba(255,255,255,0.15);
      --accent: #eaf1ff;
      --accent-dim: rgba(234,241,255,0.1);
      --text: #eaf1ff;
      --muted: #a9bcd8;
      --green: #9fd3f2;
      --green-dim: rgba(159,211,242,0.25);
      --shadow: rgba(0,0,0,0.45);
      --modal-overlay: rgba(4,10,20,0.7);
      --logo-text: #eaf1ff;
      --forest-back: rgba(16,32,54,0.6); --forest-front: rgba(8,18,30,0.8);
      --glass-bg: rgba(10,22,38,0.55); --glass-border: rgba(255,255,255,0.15);
      --accent-text: #0a1626;
      --sun-color: #d9e2f5;
    }
    /* Photo en calque fixe (body::before) plutôt que background-attachment:fixed,
       cassé sur iOS Safari ; la forêt reste en silhouettes translucides. */
    body.theme-galaxie,
    body[data-boreal="galaxie"],
    html[data-boreal="galaxie"] body {
      background: #0a1626 !important;
    }
    body.theme-galaxie::before,
    html[data-boreal="galaxie"] body::before {
      content: ""; position: fixed; inset: 0; z-index: -1;
      background: #0a1626 url("/galaxie.jpg") center / cover no-repeat;
      pointer-events: none;
    }
    /* Sur téléphone la photo est de toute façon recadrée/étirée : version
       1280px à 149 Ko au lieu de 538 Ko — même rendu, 4G soulagée */
    @media (max-width: 768px) {
      body.theme-galaxie::before,
      html[data-boreal="galaxie"] body::before {
        background-image: url("/galaxie-mobile.jpg");
      }
    }
    /* ── CONTRASTE FORT sur thèmes clairs (minimal/jour/aube) ──
       Texte noir + halo blanc pour les éléments qui paraissaient pâles */
    .theme-minimal .svc-link, [data-boreal="minimal"] .svc-link,
    .theme-jour .svc-link, [data-boreal="jour"] .svc-link,
    .theme-aube .svc-link, [data-boreal="aube"] .svc-link,
    .theme-minimal .hero-tagline, [data-boreal="minimal"] .hero-tagline,
    .theme-jour .hero-tagline, [data-boreal="jour"] .hero-tagline,
    .theme-aube .hero-tagline, [data-boreal="aube"] .hero-tagline,
    .theme-minimal .filter-btn, [data-boreal="minimal"] .filter-btn,
    .theme-jour .filter-btn, [data-boreal="jour"] .filter-btn,
    .theme-aube .filter-btn, [data-boreal="aube"] .filter-btn,
    .theme-minimal .suggestions-label, [data-boreal="minimal"] .suggestions-label,
    .theme-jour .suggestions-label, [data-boreal="jour"] .suggestions-label,
    .theme-aube .suggestions-label, [data-boreal="aube"] .suggestions-label,
    .theme-minimal .footer a, [data-boreal="minimal"] .footer a,
    .theme-jour .footer a, [data-boreal="jour"] .footer a,
    .theme-aube .footer a, [data-boreal="aube"] .footer a,
    .theme-minimal .logo-sub, [data-boreal="minimal"] .logo-sub,
    .theme-jour .logo-sub, [data-boreal="jour"] .logo-sub,
    .theme-aube .logo-sub, [data-boreal="aube"] .logo-sub,
    .theme-minimal .home-greeting, [data-boreal="minimal"] .home-greeting,
    .theme-jour .home-greeting, [data-boreal="jour"] .home-greeting,
    .theme-aube .home-greeting, [data-boreal="aube"] .home-greeting {
      color: #000 !important;
      text-shadow:
        -1px -1px 0 #fff, 1px -1px 0 #fff,
        -1px  1px 0 #fff, 1px  1px 0 #fff,
        -1px  0   0 #fff, 1px  0   0 #fff,
         0  -1px 0 #fff, 0   1px 0 #fff;
    }

    .skip-to-content {
      position: absolute; top: -100px; left: 0; z-index: 999;
      background: var(--accent); color: #fff; padding: 8px 16px;
      font-size: 0.85rem; text-decoration: none; border-radius: 0 0 6px 0;
    }
    .skip-to-content:focus { top: 0; }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    html, body, .modal, .modal-input, .search-box, .autocomplete,
    .knowledge-panel, .ai-summary, .filter-btn, .pill, .auth-btn,
    .topbar, footer, .result-card { transition: background-color 0.8s, color 0.6s, border-color 0.6s; }
    /* Respecte la préférence système « réduire les animations » (accessibilité + économie batterie) */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    }
    body {
      background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
      color: var(--text);
      font-family: 'Outfit', sans-serif; font-weight: 300;
      min-height: 100vh; overflow-x: hidden;
      display: flex; flex-direction: column;
      transition: background 1.5s ease, color 0.8s ease;
      position: relative;
    }

    /* ── FORÊT BORÉALE ── */
    .foret-boreale {
      position: fixed; bottom: 0; left: 0; width: 100%; height: 140px;
      pointer-events: none; z-index: 3;
      transition: opacity 0.5s;
    }
    body.results-active .foret-boreale { opacity: 0.3; }

    /* ── ÉTOILES ── */
    .etoile {
      position: fixed; background: #fff; border-radius: 50%;
      opacity: 0; transition: opacity 1.5s ease;
      pointer-events: none; z-index: 0;
    }
    .etoile.doree { background: #ffeacc; }
    .theme-nuit .etoile, [data-boreal="nuit"] .etoile { opacity: 1; animation: twinkle 3s ease-in-out infinite; }
    .theme-crepuscule .etoile, [data-boreal="crepuscule"] .etoile { opacity: 0.6; animation: twinkle 4s ease-in-out infinite; }
    @keyframes twinkle { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }

    /* ── FEU DE CAMP ── */
    .feu-camp {
      position: fixed; bottom: 45px; left: 38%;
      width: 5px; height: 5px; background: #ffeacc; border-radius: 50%;
      box-shadow: 0 0 8px #ffeacc, 0 0 20px rgba(255,234,204,0.4);
      opacity: 0; transition: opacity 1.5s ease; z-index: 2;
      pointer-events: none;
    }
    .theme-nuit .feu-camp, [data-boreal="nuit"] .feu-camp { opacity: 1; animation: feuFlicker 2s ease-in-out infinite; }
    @keyframes feuFlicker { 0%,100%{opacity:0.8;box-shadow:0 0 8px #ffeacc,0 0 20px rgba(255,234,204,0.4)} 50%{opacity:1;box-shadow:0 0 12px #ffeacc,0 0 30px rgba(255,234,204,0.5)} }

    /* ── BRUME ── */
    .brume {
      position: fixed; height: 8px;
      background: rgba(255,255,255,0.3); border-radius: 50%;
      filter: blur(6px); opacity: 0; transition: opacity 2s ease;
      pointer-events: none; z-index: 1;
    }
    .theme-aube .brume, [data-boreal="aube"] .brume { opacity: 1; animation: derive 80s linear infinite; }
    @keyframes derive { 0%{transform:translateX(-150px)} 100%{transform:translateX(calc(100vw + 150px))} }

    /* ── GLASSMORPHISM ── */
    .search-box, .pill {
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    .hw-card {
      background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border: 0.5px solid var(--glass-border);
    }
    .theme-nuit .hw-card, .theme-crepuscule .hw-card, .theme-galaxie .hw-card, [data-boreal="nuit"] .hw-card, [data-boreal="crepuscule"] .hw-card, [data-boreal="galaxie"] .hw-card {
      background: rgba(15,37,48,0.7);
    }
    .theme-jour .hw-card, .theme-aube .hw-card, [data-boreal="jour"] .hw-card, [data-boreal="aube"] .hw-card {
      background: rgba(255,255,255,0.75);
    }
    @media (max-width: 640px) {
      .search-box, .hw-card, .pill {
        backdrop-filter: none; -webkit-backdrop-filter: none;
      }
    }

    /* ── FADE-IN ANIMATION ── */
    @keyframes fadeInUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
    .fade-in-1 { animation: fadeInUp 0.6s ease 0.1s both; }
    .fade-in-2 { animation: fadeInUp 0.6s ease 0.2s both; }
    .fade-in-3 { animation: fadeInUp 0.6s ease 0.35s both; }
    .fade-in-4 { animation: fadeInUp 0.6s ease 0.5s both; }

    /* ── SERVICES BAR ── */
    .services-bar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 55;
      display: flex; align-items: center; gap: 0;
      background: transparent; border-bottom: 1px solid rgba(255,255,255,0.08);
      padding: 0 56px 0 20px; height: 34px; overflow-x: auto;
      font-family: 'DM Mono', monospace; font-size: 0.63rem;
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .theme-jour .services-bar, [data-boreal="jour"] .services-bar,
    .theme-aube .services-bar, [data-boreal="aube"] .services-bar {
      border-bottom-color: rgba(0,0,0,0.06);
    }
    .services-bar::-webkit-scrollbar { display: none; }
    .svc-link {
      display: flex; align-items: center; gap: 5px;
      padding: 7px 12px; color: var(--muted); text-decoration: none;
      white-space: nowrap; transition: color 0.15s; letter-spacing: 0.03em;
    }
    .svc-link:hover { color: var(--text); }
    .svc-link.svc-active { color: var(--accent); }
    .svc-link svg { flex-shrink: 0; }
    .svc-sep { width: 1px; height: 14px; background: var(--border); margin: 0 2px; flex-shrink: 0; }
    body { padding-top: 34px; }

    /* ── APP LAUNCHER (grille « toutes les apps ») ── */
    .svc-apps-btn {
      position: fixed; top: 0; right: 0; height: 34px; width: 48px;
      display: flex; align-items: center; justify-content: center;
      border: none; border-left: 1px solid var(--border); cursor: pointer;
      color: var(--muted); z-index: 57; background: var(--surface);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .svc-apps-btn:hover { color: var(--text); }
    .apps-panel {
      display: none; position: fixed; top: 42px; right: 8px;
      z-index: 800; /* au-dessus de la barre de recherche (500) et des top-controls (600) */
      width: min(360px, calc(100vw - 16px));
      background: var(--surface); backdrop-filter: blur(24px) saturate(1.5);
      -webkit-backdrop-filter: blur(24px) saturate(1.5);
      border: 1px solid var(--border); border-radius: 16px;
      box-shadow: 0 16px 48px rgba(0,0,0,0.28); padding: 14px;
      max-height: calc(100vh - 56px); overflow-y: auto;
    }
    .apps-panel.open { display: block; animation: fadeInUp 0.18s ease; }
    .apps-panel-title {
      font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--muted); margin: 0 4px 10px;
    }
    .apps-panel-title.apps-section-2 { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
    .apps-empty { padding: 6px 8px 4px; font-size: 0.72rem; color: var(--muted); opacity: 0.8; }
    .apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px; }
    .apps-tile {
      display: flex; flex-direction: column; align-items: center; gap: 7px;
      padding: 13px 6px; border-radius: 12px; text-decoration: none;
      color: var(--text); transition: background 0.15s, transform 0.1s;
    }
    .apps-tile:hover { background: rgba(127,127,127,0.14); transform: translateY(-1px); }
    .apps-tile .apps-ico {
      width: 38px; height: 38px; border-radius: 11px; display: flex;
      align-items: center; justify-content: center;
      background: rgba(127,127,127,0.12); color: var(--accent);
    }
    .apps-tile .apps-ico svg { width: 20px; height: 20px; }
    .apps-tile .apps-ico .apps-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
    .apps-tile span { font-size: 0.7rem; text-align: center; line-height: 1.15; }

    /* ── LAYOUT ── */
    .wrapper {
      display: flex; flex-direction: column; align-items: center;
      flex: 1 0 auto; padding: 0 20px;
      transition: padding-top 0.35s ease;
    }
    .wrapper.home-mode { padding-top: 26vh; }
    .wrapper.results-mode { padding-top: 0; }

    /* ── LOGO ── */
    .logo-block { text-align: center; transition: all 0.35s ease; }
    .wrapper.home-mode .logo-block { margin-bottom: 36px; opacity: 1; }
    .wrapper.results-mode .logo-block { height: 0; opacity: 0; overflow: hidden; margin: 0; }

    .logo-mark { display: flex; align-items: center; justify-content: center; gap: 14px; }
    .boreal-orb {
      width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
      background: radial-gradient(circle, #fff 0%, var(--sun-color) 50%, transparent 90%);
      box-shadow: 0 0 20px var(--sun-color), 0 0 40px rgba(255,216,155,0.2);
      transition: background 1.5s ease, box-shadow 1.5s ease;
    }
    .theme-nuit .boreal-orb, [data-boreal="nuit"] .boreal-orb,
    .theme-galaxie .boreal-orb, [data-boreal="galaxie"] .boreal-orb {
      background: radial-gradient(circle, #fff 0%, #d4d8f0 45%, rgba(200,210,240,0.3) 75%, transparent 95%);
      box-shadow: 0 0 16px rgba(255,255,255,0.5), 0 0 40px rgba(200,210,240,0.2);
      width: 26px; height: 26px;
    }
    .logo-title {
      font-family: 'Cormorant Garamond', serif; font-weight: 400;
      font-size: clamp(2.2rem, 5vw, 2.9rem); letter-spacing: 0.02em;
      color: var(--text); line-height: 1;
    }
    .logo-sub {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.45em; text-transform: uppercase;
      color: var(--muted); margin-top: 8px;
    }

    /* ── TOPBAR ── */
    .topbar {
      display: none; width: 100%; max-width: 1000px;
      align-items: center; gap: 16px; padding: 16px 0;
      border-bottom: 1px solid var(--glass-border); margin-bottom: 20px;
    }
    .wrapper.results-mode .topbar { display: flex; }
    .topbar-logo {
      display: flex; align-items: center; gap: 8px;
      cursor: pointer; flex-shrink: 0; text-decoration: none;
    }
    .topbar-logo svg { width: 22px; height: 22px; }
    .topbar-logo-text {
      font-family: 'Cormorant Garamond', serif; font-weight: 300;
      font-size: 1.3rem; color: var(--text); white-space: nowrap;
    }

    /* ── SEARCH BAR ── */
    .search-wrap {
      width: 100%; max-width: 720px; position: relative;
      transition: max-width 0.4s ease;
      z-index: 500; /* au-dessus du results-layout quand autocomplete ouverte */
    }
    .wrapper.results-mode .search-wrap { max-width: 100%; flex: 1; }

    /* ── ONGLETS INTERNES ── */
    .aube-tabs {
      display: none;
      width: 100%; max-width: 1100px;
      gap: 4px; margin-bottom: 10px; padding: 0 2px;
      overflow-x: auto; scrollbar-width: none;
      flex-wrap: nowrap;
    }
    .aube-tabs::-webkit-scrollbar { display: none; }
    /* Afficher les onglets dès qu'il y en a au moins un (mode results OU home) */
    .aube-tabs.has-tabs { display: flex; }
    .wrapper.home-mode .aube-tabs.has-tabs { margin-top: 14px; }
    .aube-tab {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 10px 6px 12px; border-radius: 8px 8px 0 0;
      background: var(--glass-bg); border: 1px solid var(--border);
      border-bottom: none;
      font-family: 'Outfit', sans-serif; font-size: 0.74rem; color: var(--muted);
      cursor: pointer; transition: all 0.15s;
      white-space: nowrap; max-width: 180px;
      flex-shrink: 0;
    }
    .aube-tab:hover { color: var(--text); background: var(--surface); }
    .aube-tab[draggable="true"] { cursor: grab; }
    .aube-tab[draggable="true"]:active { cursor: grabbing; }
    .aube-tab.dragging {
      opacity: 0.4;
      transform: scale(0.95);
      transition: opacity 0.1s, transform 0.1s;
    }
    .aube-tab.drag-over-left {
      box-shadow: inset 3px 0 0 var(--accent);
    }
    .aube-tab.drag-over-right {
      box-shadow: inset -3px 0 0 var(--accent);
    }
    .aube-tab.active {
      background: var(--surface); color: var(--text); border-color: var(--accent);
      font-weight: 500;
    }
    .aube-tab-label {
      overflow: hidden; text-overflow: ellipsis; max-width: 140px;
    }
    .aube-tab-close {
      border: none; background: transparent; color: var(--muted);
      width: 18px; height: 18px; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 0.9rem; line-height: 1;
      transition: background 0.1s;
    }
    .aube-tab-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
    .aube-tab-new {
      border: 1px dashed var(--border); background: transparent;
      color: var(--muted); padding: 6px 12px; border-radius: 8px 8px 0 0;
      cursor: pointer; font-size: 0.82rem; transition: all 0.15s;
      flex-shrink: 0; border-bottom: none;
    }
    .aube-tab-new:hover { color: var(--accent); border-color: var(--accent); }

    .search-box {
      display: flex; align-items: center;
      background: var(--glass-bg); border: 0.5px solid var(--glass-border);
      border-radius: 32px; padding: 0 10px 0 24px; gap: 8px;
      transition: border-color 0.3s, box-shadow 0.3s, background 0.8s, min-height 0.3s;
      min-height: 58px;
    }
    .wrapper.home-mode .search-box {
      box-shadow: 0 8px 32px var(--shadow);
    }
    .theme-nuit .search-box, .theme-crepuscule .search-box, .theme-galaxie .search-box, [data-boreal="nuit"] .search-box, [data-boreal="crepuscule"] .search-box, [data-boreal="galaxie"] .search-box {
      background: rgba(15,37,48,0.65);
    }
    .theme-jour .search-box, .theme-aube .search-box, [data-boreal="jour"] .search-box, [data-boreal="aube"] .search-box {
      background: rgba(255,255,255,0.75);
    }
    .search-box:hover { box-shadow: 0 4px 20px var(--shadow); }
    .search-box:focus-within { border-color: var(--accent); }

    #search-input {
      flex: 1; background: none; border: none; outline: none;
      color: var(--text); font-family: 'Outfit', sans-serif;
      font-weight: 300; font-size: 1.1rem; padding: 14px 0;
      min-width: 0; /* permet à l'input de rétrécir : la loupe ne sort plus à droite */
    }
    /* Pas de ✕ natif WebKit en double (on a notre clear-btn) */
    #search-input::-webkit-search-cancel-button,
    #search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
    .wrapper.results-mode #search-input {
      font-size: 0.95rem; padding: 10px 0;
    }
    #search-input::placeholder { color: var(--muted); }

    .clear-btn {
      background: none; border: none; cursor: pointer;
      color: var(--muted); font-size: 1.1rem; padding: 4px 8px;
      /* visibility (et non display) : l'espace est réservé en permanence →
         rien ne bouge quand le ✕ apparaît pendant la frappe */
      display: block; visibility: hidden; flex-shrink: 0; transition: color 0.2s;
    }
    .clear-btn:hover { color: var(--text); }
    .clear-btn.visible { visibility: visible; }

    .camera-btn, .mic-btn {
      background: none; border: none; cursor: pointer;
      color: var(--muted); padding: 4px 6px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: color 0.2s; border-radius: 4px;
    }
    .camera-btn:hover, .mic-btn:hover { color: var(--accent); }
    .camera-btn svg, .mic-btn svg { width: 20px; height: 20px; }
    .mic-btn.listening { color: #ef4444; animation: pulse 1s infinite; }
    @keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

    .search-btn {
      background: var(--accent); border: none; border-radius: 50%;
      width: 42px; height: 42px; display: flex; align-items: center;
      justify-content: center; cursor: pointer; flex-shrink: 0;
      transition: opacity 0.2s, transform 0.2s; color: var(--accent-text);
    }
    .search-btn:hover { opacity: 0.9; transform: scale(1.05); }
    .search-btn svg { width: 17px; height: 17px; stroke: var(--accent-text); }

    /* ── REVERSE IMAGE SEARCH MODAL ── */
    .reverse-overlay {
      display: none; position: fixed; inset: 0; z-index: 10000;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      align-items: center; justify-content: center;
      padding: 20px;
    }
    .reverse-overlay.open { display: flex; }
    .reverse-modal {
      background: var(--bg, #fff);
      border: 1px solid var(--border);
      border-radius: 14px; padding: 0; width: 560px; max-width: 95vw;
      overflow: hidden; animation: fadeIn 0.2s ease;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.2);
    }
    .reverse-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 24px; border-bottom: 1px solid var(--border);
    }
    .reverse-header h2 {
      font-family: 'Cormorant Garamond', serif; font-weight: 400;
      font-size: 1.2rem; color: var(--text); margin: 0;
      display: flex; align-items: center; gap: 10px;
    }
    .reverse-header h2 svg { width: 20px; height: 20px; color: var(--accent); }
    .reverse-close {
      background: none; border: none; color: var(--muted);
      font-size: 1.3rem; cursor: pointer; padding: 0 4px;
    }
    .reverse-close:hover { color: var(--text); }
    .reverse-body { padding: 24px; }

    .reverse-tabs {
      display: flex; gap: 0; margin-bottom: 20px;
      border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
    }
    .reverse-tab {
      flex: 1; padding: 10px 16px; font-family: 'DM Mono', monospace;
      font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--muted); background: transparent; border: none;
      cursor: pointer; transition: all 0.15s; text-align: center;
    }
    .reverse-tab:not(:last-child) { border-right: 1px solid var(--border); }
    .reverse-tab:hover { color: var(--text); }
    .reverse-tab.active {
      color: var(--accent-text); background: var(--accent);
      font-weight: 600;
    }

    .reverse-url-input {
      width: 100%; background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; padding: 12px 16px; color: var(--text);
      font-family: 'Outfit', sans-serif; font-size: 0.88rem;
      outline: none; transition: border-color 0.2s;
    }
    .reverse-url-input:focus { border-color: var(--accent); }
    .reverse-url-input::placeholder { color: var(--muted); }

    .reverse-search-btn {
      width: 100%; margin-top: 12px; padding: 11px;
      background: var(--accent); border: none; border-radius: 8px;
      color: var(--accent-text); font-family: 'Outfit', sans-serif; font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer; transition: opacity 0.15s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .reverse-search-btn:hover { opacity: 0.85; }
    .reverse-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .reverse-search-btn svg { width: 16px; height: 16px; }

    .reverse-dropzone {
      border: 2px dashed var(--border); border-radius: 12px;
      padding: 40px 20px; text-align: center; cursor: pointer;
      transition: all 0.2s; position: relative;
    }
    .reverse-dropzone:hover, .reverse-dropzone.dragover {
      border-color: var(--accent); background: var(--accent-dim);
    }
    .reverse-dropzone svg { width: 40px; height: 40px; color: var(--muted); margin-bottom: 12px; }
    .reverse-dropzone-text {
      font-size: 0.85rem; color: var(--muted); line-height: 1.6;
    }
    .reverse-dropzone-text strong { color: var(--accent); }
    .reverse-dropzone-hint {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); margin-top: 8px; opacity: 0.7;
    }
    .reverse-dropzone input[type="file"] {
      position: absolute; inset: 0; opacity: 0; cursor: pointer;
    }

    .reverse-preview {
      display: none; margin-top: 16px; padding: 12px;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; text-align: center;
    }
    .reverse-preview.visible { display: block; }
    .reverse-preview img {
      max-width: 100%; max-height: 200px; border-radius: 6px;
      object-fit: contain;
    }
    .reverse-preview-name {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--muted); margin-top: 8px;
    }

    /* Reverse results panel */
    .reverse-results {
      display: none; margin-top: 16px;
    }
    .reverse-results.visible { display: block; }
    .reverse-engines {
      display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
    }
    .reverse-engine-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      color: var(--text); background: var(--surface);
      border: 1px solid var(--border); border-radius: 6px;
      padding: 7px 14px; cursor: pointer; text-decoration: none;
      transition: all 0.15s;
    }
    .reverse-engine-btn:hover {
      border-color: var(--accent); color: var(--accent);
    }
    .reverse-engine-btn img { width: 16px; height: 16px; border-radius: 3px; }
    .reverse-engines-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
      margin-bottom: 8px;
    }
    .reverse-similar-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
      margin: 16px 0 10px;
    }
    .reverse-loader {
      display: flex; align-items: center; gap: 10px;
      color: var(--muted); font-size: 0.75rem;
      font-family: 'DM Mono', monospace; padding: 20px 0;
    }
    .reverse-loader .loader-spinner {
      width: 18px; height: 18px; border: 2px solid var(--border);
      border-top-color: var(--accent); border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    /* ── AUTOCOMPLETE ── */
    /* FOND OPAQUE FORCÉ : aucune transparence quelle que soit la règle qui tente d'override */
    .autocomplete {
      position: absolute; top: calc(100% + 6px); left: 0; right: 0;
      border: 1px solid rgba(0,0,0,0.12);
      border-radius: 14px; overflow: hidden; z-index: 1100;
      display: none;
      box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.16);
      max-height: 360px; overflow-y: auto;
      pointer-events: auto;
      background-color: #ffffff !important;
      opacity: 1 !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    /* Thèmes sombres → fond opaque sombre */
    body.theme-nuit .autocomplete,
    body.theme-crepuscule .autocomplete,
    body.theme-galaxie .autocomplete,
    html[data-boreal="nuit"] .autocomplete,
    html[data-boreal="crepuscule"] .autocomplete,
    html[data-boreal="galaxie"] .autocomplete {
      background-color: #0f2530 !important;
      border-color: rgba(255,255,255,0.12);
    }
    /* En mode résultats, pleine largeur */
    .wrapper.results-mode .autocomplete { left: 0; right: 0; width: 100%; }
    .autocomplete.open { display: block; }
    /* Backdrop invisible mais cliquable pour fermer l'autocomplete */
    .ac-backdrop {
      display: none; position: fixed; inset: 0; z-index: 1050;
      background: transparent;
      pointer-events: none;
    }
    .ac-backdrop.open { display: block; }
    /* Plus de grisage : l'autocomplete est suffisamment opaque */
    .results-dimmed .results-layout { opacity: 1; pointer-events: auto; }
    .ac-item {
      padding: 11px 16px; font-size: 0.88rem; color: var(--text);
      cursor: pointer; transition: background 0.1s;
      display: flex; align-items: center; gap: 10px;
      width: 100%; border: none;
      background-color: transparent;
      text-align: left; font-family: inherit;
      appearance: none; -webkit-appearance: none;
      text-decoration: none; user-select: none;
      box-sizing: border-box;
    }
    .ac-item:visited, .ac-item:link { color: var(--text); text-decoration: none; }
    .ac-item:hover, .ac-item.active { background-color: var(--accent-dim) !important; }
    .ac-item + .ac-item { border-top: 1px solid rgba(127,127,127,0.08); }
    /* Enfants héritent de pointer-events auto — permet clic sur texte/icône */
    .ac-icon { width: 14px; height: 14px; opacity: 0.4; flex-shrink: 0; }
    .ac-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* Enrichissement entité (style Brave/Google) */
    .ac-item.ac-entity {
      padding: 12px 16px;
      align-items: center;
      gap: 14px;
    }
    .ac-entity-logo {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--border);
      flex-shrink: 0;
      object-fit: cover;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
      transition: transform 0.15s;
    }
    /* Drapeaux : pas de cropping circulaire — afficher en entier dans un disque blanc */
    .ac-entity-logo.ac-flag {
      object-fit: contain;
      background: #fff;
      padding: 4px;
    }
    .ac-item.ac-entity:hover .ac-entity-logo {
      transform: scale(1.04);
    }
    .ac-entity-body {
      display: flex;
      flex-direction: column;
      min-width: 0;
      flex: 1;
      gap: 2px;
    }
    .ac-entity-title {
      font-size: 1rem;
      color: var(--text);
      font-weight: 600;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: -0.005em;
    }
    .ac-entity-desc {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 400;
    }

    /* ── FILTERS ── */
    .filters-wrap {
      width: 100%; max-width: 720px;
      transition: max-width 0.35s ease;
    }
    .wrapper.home-mode .filters-wrap { display: none; }
    .wrapper.results-mode .filters-wrap {
      max-width: 1100px;
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 8px;
    }
    .filters {
      display: flex; gap: 6px; margin-top: 20px; margin-bottom: 24px; flex-wrap: wrap;
      justify-content: center;
    }
    .wrapper.results-mode .filters {
      justify-content: flex-start; margin-top: 10px; margin-bottom: 10px;
    }
    .filter-btn {
      font-family: 'Outfit', sans-serif; font-size: 0.9rem;
      letter-spacing: 0; text-transform: none;
      color: var(--muted); background: transparent;
      border: 1px solid transparent; border-radius: 20px;
      padding: 7px 16px; cursor: pointer; transition: all 0.15s;
      opacity: 1; font-weight: 500;
    }
    .filter-btn:hover { color: var(--text); background: var(--glass-bg); }
    .filter-btn.active {
      color: var(--accent-text); background: var(--accent); border-color: var(--accent);
      font-weight: 600;
    }

    /* ── SEARCH CONTROLS (sort, time, location) ── */
    .search-controls {
      display: none; align-items: center; justify-content: space-between;
      margin-top: 8px; gap: 8px; flex-wrap: wrap;
    }
    .wrapper.results-mode .search-controls { display: flex; }
    .sc-group { display: flex; gap: 6px; align-items: center; }
    .sc-select {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-radius: 20px; padding: 7px 16px; color: var(--text);
      font-family: 'DM Mono', monospace; font-size: 0.72rem;
      outline: none; cursor: pointer; transition: all 0.15s;
      font-weight: 500;
    }
    .sc-select:hover { border-color: var(--accent); transform: translateY(-1px); }
    .sc-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

    /* ── PAGINATION NUMEROTEE ── */
    .pagination-numbered, .pagination {
      display: flex; align-items: center; justify-content: center;
      gap: 8px; flex-wrap: wrap; margin: 32px 0 24px;
    }
    .pagination-info {
      width: 100%; text-align: center; margin-bottom: 14px;
      font-family: 'DM Mono', monospace; font-size: 0.78rem;
      color: var(--text); font-weight: 600;
      letter-spacing: 0.05em; opacity: 0.9;
    }
    .page-btn {
      min-width: 42px; height: 42px; padding: 0 14px;
      background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25);

      border-radius: 10px; color: var(--text); cursor: pointer;
      font-family: 'DM Mono', monospace; font-size: 0.85rem; font-weight: 700;
      transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center;
    }
    .theme-jour .page-btn, .theme-aube .page-btn,
    [data-boreal="jour"] .page-btn, [data-boreal="aube"] .page-btn {
      background: rgba(255,255,255,0.95); border-color: rgba(31,51,41,0.3); color: #1f3329;
    }
    .theme-nuit .page-btn, .theme-crepuscule .page-btn, .theme-galaxie .page-btn,
    [data-boreal="nuit"] .page-btn, [data-boreal="crepuscule"] .page-btn, [data-boreal="galaxie"] .page-btn {
      background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); color: #fff;
    }
    .page-btn:hover:not(:disabled) {
      border-color: var(--accent); transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(79,142,247,0.25);
    }
    .page-btn.active {
      background: var(--accent) !important; color: var(--accent-text) !important;
      border-color: var(--accent) !important; font-weight: 700;
      box-shadow: 0 4px 14px rgba(79,142,247,0.35);
    }
    .page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .page-btn.page-nav, .page-btn.arrow { padding: 0 16px; font-size: 0.9rem; }
    .page-dots { color: var(--text); font-family: 'DM Mono', monospace; font-size: 1rem; padding: 0 4px; opacity: 0.7; font-weight: 700; }
    .sc-location {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); display: flex; align-items: center; gap: 4px;
    }

    /* ── SUGGESTIONS ── */
    .suggestions { margin-top: 40px; text-align: center; }
    .wrapper.results-mode .suggestions { display: none; }
    .suggestions-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      letter-spacing: 0.25em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 12px;
    }
    .suggestion-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
    .pill {
      background: var(--glass-bg); border: 0.5px solid var(--glass-border);
      border-radius: 20px; padding: 7px 16px; font-size: 0.78rem;
      color: var(--text); cursor: pointer; transition: all 0.2s;
      opacity: 0.8;
    }
    .pill:hover { opacity: 1; transform: translateY(-1px); }

    /* ── RECHERCHES RÉCENTES (home page) ── */
    .home-recent {
      margin-top: 28px; width: 100%; max-width: 680px;
      margin-left: auto; margin-right: auto;
      display: none;
    }
    .home-recent.ready { display: block; }
    .wrapper.results-mode .home-recent { display: none; }
    .hr-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      letter-spacing: 0.25em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 10px; text-align: center;
    }
    .hr-list {
      display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    }
    .hr-item {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px; border-radius: 999px;
      background: var(--glass-bg); border: 1px solid var(--border);
      color: var(--text); font-family: 'Outfit', sans-serif;
      font-size: 0.78rem; cursor: pointer;
      transition: all 0.12s; text-decoration: none;
    }
    .hr-item:hover {
      background: var(--accent-dim); border-color: var(--accent); color: var(--accent);
    }
    .hr-item svg { width: 11px; height: 11px; opacity: 0.5; }

    /* ── NAVIGATION CLAVIER (j/k) ── */
    .result-card.kb-focus,
    .news-card.kb-focus {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
      border-radius: 12px;
    }

    /* ── À DÉCOUVRIR AUJOURD'HUI (home page) ── */
    .home-personalities {
      margin-top: 44px;
      width: 100%; max-width: 1100px;
      margin-left: auto; margin-right: auto;
      display: none;
    }
    .home-personalities.ready { display: block; }
    .wrapper.results-mode .home-personalities { display: none; }
    .hp-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      letter-spacing: 0.25em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 22px; text-align: center;
    }
    .hp-grid { display: flex; flex-direction: column; gap: 28px; }
    .hd-section { display: block; }
    .hd-section-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 12px;
      text-align: left; padding: 0 4px;
    }
    .hd-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
    @media (max-width: 700px) { .hd-row { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 400px) { .hd-row { grid-template-columns: 1fr; } }
    .hd-card {
      display: flex; flex-direction: column;
      text-decoration: none; color: var(--text);
      padding: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
      cursor: pointer;
    }
    .hd-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px var(--shadow);
    }
    .hd-photo {
      width: 100%; aspect-ratio: 1 / 1;
      object-fit: cover; object-position: center 18%;
      border-radius: 50%;
      background: var(--glass-bg);
      max-width: 90px;
      margin: 0 auto 8px;
      display: block;
    }
    .hd-photo-square {
      border-radius: 8px; max-width: 100%;
      aspect-ratio: 4 / 3;
      object-position: center;
    }
    .hd-name {
      font-size: 0.85rem; text-align: center;
      line-height: 1.3; font-weight: 500;
      max-height: 2.6em; overflow: hidden;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      color: var(--text);
      font-family: 'Outfit', sans-serif;
    }
    .hd-sub {
      font-size: 0.7rem; text-align: center;
      color: var(--muted); margin-top: 3px;
      max-height: 2.4em; overflow: hidden;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      font-family: 'Outfit', sans-serif;
    }
    .hd-refresh-wrap { text-align: center; margin-top: 8px; }
    .hd-refresh {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 8px 18px;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 999px;
      font-family: 'Outfit', sans-serif; font-size: 0.82rem;
      cursor: pointer;
      transition: all 0.15s;
    }
    .hd-refresh:hover {
      border-color: var(--accent); color: var(--accent);
      background: var(--accent-dim);
    }
    .hd-refresh svg { width: 14px; height: 14px; }

    /* ── RESULTS LAYOUT ── */
    .results-layout {
      width: 100%; max-width: 1000px; margin-top: 20px;
      display: none; gap: 28px; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }
    .wrapper.results-mode .results-layout { display: flex; }
    .results-main { flex: 1; min-width: 0; }
    .results-sidebar {
      width: 320px; flex-shrink: 0;
      position: sticky; top: 14px; align-self: flex-start;
      max-height: calc(100vh - 28px); overflow-y: auto;
      z-index: 1; /* reste sous la search-wrap (z-index 500) et l'autocomplete (1100) */
    }
    .results-sidebar::-webkit-scrollbar { width: 6px; }
    .results-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    /* Full width for image results */
    .results-layout.images-mode { max-width: 1200px; }
    .results-layout.images-mode .results-sidebar { display: none; }
    .results-layout.images-mode .results-main { max-width: 100%; }
    /* Wider layout for video results — grille 3/4 colonnes */
    .results-layout.videos-mode { max-width: 1400px; }
    .results-layout.videos-mode .results-sidebar { display: none; }
    .results-layout.videos-mode .results-main { max-width: 100%; }

    .results-meta {
      font-family: 'Outfit', sans-serif; font-size: 0.8rem;
      letter-spacing: 0; color: var(--muted); margin-bottom: 16px;
    }

    /* ── AI SUMMARY ── */
    .ai-summary {
      background: var(--surface); border: 1px solid var(--border);
      border-left: 3px solid var(--accent); border-radius: 8px;
      padding: 16px 20px; margin-bottom: 20px; display: none;
    }
    .ai-summary.visible { display: block; animation: fadeIn 0.3s ease; }
    .ai-summary-header {
      display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
      font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
    }
    .ai-summary-header svg { width: 14px; height: 14px; }
    .ai-summary-body { font-size: 0.85rem; color: var(--text); line-height: 1.7; }
    .ai-summary-sources {
      margin-top: 14px; padding-top: 12px;
      border-top: 1px solid var(--border);
      display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    }
    .ai-summary-sources:empty { display: none; }
    .ai-sources-label {
      font-family: 'Outfit', sans-serif; font-size: 0.66rem; font-weight: 600;
      letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--muted); margin-right: 6px;
    }
    .ai-source-pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px 4px 4px; border-radius: 12px;
      background: var(--glass-bg); border: 1px solid var(--border);
      color: var(--text); font-size: 0.7rem; text-decoration: none;
      transition: all 0.12s;
    }
    .ai-source-pill:hover {
      border-color: var(--accent); transform: translateY(-1px);
    }
    .ai-source-num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 16px; height: 16px; border-radius: 50%;
      background: var(--accent); color: var(--accent-text);
      font-size: 0.6rem; font-weight: 600;
    }
    .ai-source-favicon {
      width: 12px; height: 12px; border-radius: 2px;
    }
    .ai-summary-body.loading {
      height: 48px; border-radius: 6px;
      background: linear-gradient(90deg, var(--surface) 25%, #22253a 50%, var(--surface) 75%);
      background-size: 200% 100%; animation: shimmer 1.5s infinite;
    }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    /* ── KNOWLEDGE PANEL ── */
    .knowledge-panel {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 20px;
      animation: fadeIn 0.3s ease;
    }
    .kp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
    .kp-flag {
      width: 48px; height: 34px; border-radius: 4px; object-fit: cover;
      border: 1px solid var(--border);
    }
    .kp-name {
      font-family: 'Outfit', sans-serif; font-weight: 600;
      font-size: 1.55rem; color: var(--text); line-height: 1.25;
    }
    .kp-official { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
    .kp-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
    .kp-row {
      display: flex; justify-content: space-between; padding: 5px 0;
      font-size: 0.78rem;
    }
    .kp-label { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.65rem; }
    .kp-value { color: var(--text); text-align: right; max-width: 58%; }
    .kp-summary {
      font-size: 0.78rem; color: var(--muted); line-height: 1.6;
      margin-top: 12px;
    }
    .kp-source {
      font-family: 'DM Mono', monospace; font-size: 0.55rem;
      color: var(--muted); margin-top: 10px;
    }
    .kp-weather {
      margin-top: 14px; padding-top: 14px;
      border-top: 1px solid var(--border);
    }
    .kp-weather-card {
      background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(139,92,246,0.06));
      border: 1px solid rgba(79,142,247,0.18);
      border-radius: 10px; padding: 12px 14px;
    }
    .kp-weather-head {
      display: flex; justify-content: space-between; align-items: baseline;
      margin-bottom: 4px;
    }
    .kp-weather-city {
      font-family: 'Outfit', sans-serif; font-weight: 500;
      font-size: 0.85rem; color: var(--text);
    }
    .kp-weather-temp {
      font-family: 'Cormorant Garamond', serif; font-weight: 600;
      font-size: 1.3rem; color: var(--accent);
    }
    .kp-weather-cond {
      font-size: 0.78rem; color: var(--muted); margin-bottom: 8px;
    }
    .kp-weather-extra {
      display: flex; gap: 14px; font-size: 0.72rem;
      color: var(--text); opacity: 0.85;
    }
    .kp-weather-link {
      display: block; margin-top: 10px; font-family: 'DM Mono', monospace;
      font-size: 0.62rem; color: var(--accent); text-decoration: none;
      letter-spacing: 0.03em;
    }
    .kp-weather-link:hover { text-decoration: underline; }
    .kp-wiki-image {
      margin: 12px 0; border-radius: 10px; overflow: hidden;
      background: var(--border);
      max-height: 360px;
    }
    .kp-wiki-image img {
      width: 100%; height: auto; display: block;
      max-height: 360px;
      object-fit: contain;
      object-position: center top;
    }
    .kp-related {
      margin-top: 12px; padding-top: 12px;
      border-top: 1px solid var(--border);
    }
    .kp-related-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
    }
    .kp-related-pill {
      display: inline-block; margin: 3px 4px 3px 0;
      padding: 5px 11px; border-radius: 14px;
      background: var(--glass-bg); border: 1px solid var(--border);
      color: var(--text); font-size: 0.72rem; font-weight: 500;
      text-decoration: none; transition: all 0.12s;
    }
    .kp-related-pill:hover {
      color: var(--accent); border-color: var(--accent);
      transform: translateY(-1px);
    }
    /* ── DÉTAILS ENRICHIS DE LA FICHE (âge, conjoint, profession...) ── */
    .kp-details {
      margin-top: 12px; padding-top: 10px;
      border-top: 1px solid var(--border);
      display: flex; flex-direction: column; gap: 6px;
    }
    .kp-detail-row {
      display: flex; align-items: baseline; gap: 10px;
      font-size: 0.78rem;
    }
    .kp-detail-label {
      color: var(--muted);
      min-width: 90px;
      font-family: 'DM Mono', monospace;
      font-size: 0.66rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .kp-detail-value {
      flex: 1; color: var(--text);
      line-height: 1.4;
    }
    .kp-detail-value a {
      color: var(--accent); text-decoration: none;
    }
    .kp-detail-value a:hover { text-decoration: underline; }

    /* ── PERSONNES / ENTITÉS LIÉES (avec photos) ── */
    .kp-people {
      margin-top: 14px; padding-top: 14px;
      border-top: 1px solid var(--border);
    }
    .kp-people-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 10px;
    }
    .kp-people-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }
    .kp-person-card {
      display: flex; flex-direction: column; align-items: center;
      text-decoration: none; color: var(--text);
      padding: 6px 4px; border-radius: 10px;
      transition: background 0.12s;
    }
    .kp-person-card:hover { background: var(--glass-bg); }
    .kp-person-photo {
      width: 58px; height: 58px; border-radius: 50%;
      object-fit: cover; object-position: center 18%;
      border: 1px solid var(--border);
      background: var(--glass-bg);
    }
    .kp-person-name {
      font-size: 0.7rem; text-align: center;
      margin-top: 6px; line-height: 1.2;
      max-height: 2.4em; overflow: hidden;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      color: var(--text);
    }
    /* ── RACCOURCIS CLAVIER ── */
    #kbd-help-overlay {
      position: fixed; inset: 0; z-index: 99999;
      background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
      display: flex; align-items: center; justify-content: center;
      animation: fadeIn 0.15s ease;
    }
    #kbd-help-overlay .kbd-help-modal {
      background: var(--surface); border: 1px solid var(--glass-border);
      border-radius: 14px; padding: 24px 28px; max-width: 420px;
      width: 90vw; backdrop-filter: blur(18px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    }
    .kbd-help-title {
      font-family: 'Cormorant Garamond', serif; font-weight: 500;
      font-size: 1.25rem; color: var(--text); margin-bottom: 16px;
      text-align: center;
    }
    .kbd-help-row {
      display: flex; align-items: center; gap: 10px; padding: 8px 0;
      border-bottom: 1px solid var(--border); font-size: 0.85rem;
      color: var(--text);
    }
    .kbd-help-row:last-of-type { border-bottom: none; }
    .kbd-help-row kbd {
      font-family: 'DM Mono', monospace; font-size: 0.75rem;
      background: var(--glass-bg); border: 1px solid var(--border);
      border-radius: 4px; padding: 2px 8px; min-width: 24px;
      text-align: center; color: var(--text);
    }
    .kbd-help-row span { flex: 1; color: var(--muted); margin-left: auto; }
    .kbd-help-close {
      display: block; margin: 16px auto 0; padding: 8px 20px;
      background: var(--accent); color: var(--accent-text);
      border: none; border-radius: 8px; cursor: pointer;
      font-family: 'DM Mono', monospace; font-size: 0.75rem;
    }
    .kbd-help-close:hover { opacity: 0.85; }
    /* Focus visible on result links */
    .result-title:focus, .news-title:focus, .video-card-title:focus {
      outline: 2px solid var(--accent); outline-offset: 3px;
      border-radius: 3px;
    }
    /* ── BOOK CARD (Open Library) ── */
    .book-card {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
 border-radius: 14px; padding: 18px;
      animation: fadeIn 0.3s ease; margin-bottom: 14px;
    }
    .book-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
    .book-cover {
      width: 90px; height: 132px; object-fit: cover;
      border-radius: 6px; flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .book-head-info { flex: 1; min-width: 0; }
    .book-title {
      font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
      color: var(--text); font-weight: 500; line-height: 1.2;
    }
    .book-authors { font-size: 0.8rem; color: var(--muted); margin-top: 4px; font-style: italic; }
    .book-meta { font-size: 0.72rem; color: var(--text); margin-top: 4px; opacity: 0.85; }
    .book-desc { font-size: 0.82rem; color: var(--text); line-height: 1.5; margin-bottom: 10px; opacity: 0.9; }
    .book-subjects { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
    .book-subject {
      font-size: 0.65rem; padding: 2px 8px; border-radius: 999px;
      background: var(--accent-dim, rgba(79,142,247,0.1)); color: var(--accent);
      font-family: 'DM Mono', monospace;
    }
    .book-link {
      display: block; text-align: center; font-size: 0.78rem;
      color: var(--accent); text-decoration: none;
      padding: 6px 0; margin-top: 6px;
    }
    .book-link:hover { text-decoration: underline; }

    /* ── MOVIE/TV CARD (TMDB) ── */
    .movie-card {
      border: 1px solid var(--glass-border);
      border-radius: 14px; padding: 16px; overflow: hidden;
      animation: fadeIn 0.3s ease; margin-bottom: 14px; position: relative;
      background: var(--surface);
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
    .movie-type-badge {
      position: absolute; top: 10px; right: 10px;
      background: rgba(0,0,0,0.7); color: #fff;
      font-size: 0.65rem; padding: 4px 8px; border-radius: 999px;
      font-family: 'DM Mono', monospace; letter-spacing: 0.03em;
      backdrop-filter: blur(4px);
    }
    .movie-body { display: flex; gap: 12px; margin-bottom: 12px; }
    .movie-poster {
      width: 90px; height: 135px; object-fit: cover;
      border-radius: 8px; flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    .movie-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
    .movie-title {
      font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
      color: var(--text); font-weight: 500; line-height: 1.2;
    }
    .movie-meta { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); }
    .movie-rating { font-size: 0.82rem; color: #f59e0b; font-weight: 600; }
    .movie-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
    .movie-genre {
      font-size: 0.62rem; padding: 2px 6px; border-radius: 999px;
      background: var(--accent-dim, rgba(79,142,247,0.12)); color: var(--accent);
      font-family: 'DM Mono', monospace;
    }
    .movie-overview {
      font-size: 0.82rem; color: var(--text); line-height: 1.5;
      margin-bottom: 10px; opacity: 0.9;
    }
    .movie-crew { font-size: 0.76rem; color: var(--text); margin-bottom: 4px; opacity: 0.85; }
    .movie-crew b { font-weight: 600; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.64rem; letter-spacing: 0.03em; text-transform: uppercase; }
    .movie-providers-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin: 10px 0 6px;
    }
    .movie-providers { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
    .movie-provider {
      font-size: 0.7rem; padding: 3px 8px; border-radius: 6px;
      background: var(--bg); border: 1px solid var(--border);
      color: var(--text); font-family: 'Outfit', sans-serif;
    }

    /* ── RECIPE CARD ── */
    .recipe-card {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
 border-radius: 14px; padding: 16px;
      animation: fadeIn 0.3s ease; margin-bottom: 14px;
    }
    .recipe-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
    .recipe-emoji { font-size: 2rem; }
    .recipe-title {
      font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
      color: var(--text); font-weight: 500;
    }
    .recipe-subtitle {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
    }
    .recipe-sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .recipe-site {
      display: flex; align-items: center; gap: 8px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 10px 12px;
      text-decoration: none; color: var(--text); font-size: 0.82rem;
      transition: background 0.15s, border-color 0.15s;
    }
    .recipe-site:hover {
      background: var(--accent-dim, rgba(79,142,247,0.08));
      border-color: var(--accent);
    }

    /* ── SPORTS CARD (matchs) ── */
    .sports-card {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
 border-radius: 14px; padding: 18px;
      animation: fadeIn 0.3s ease; margin-bottom: 14px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .sports-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
    .sports-badge {
      width: 52px; height: 52px; object-fit: contain;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 5px; flex-shrink: 0;
    }
    .sports-title-block { flex: 1; min-width: 0; }
    .sports-team-name {
      font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
      color: var(--text); font-weight: 500; line-height: 1.2;
    }
    .sports-league {
      font-family: 'DM Mono', monospace; font-size: 0.7rem;
      color: var(--muted); margin-top: 4px; letter-spacing: 0.02em;
    }
    .sports-matches-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
    }
    .sport-match {
      padding: 10px 12px; background: var(--surface);
      border: 1px solid var(--border); border-radius: 10px;
      margin-bottom: 6px;
    }
    .sport-match-date {
      font-family: 'DM Mono', monospace; font-size: 0.64rem;
      color: var(--muted); margin-bottom: 6px; letter-spacing: 0.03em;
    }
    .sport-match-teams {
      display: grid; grid-template-columns: 1fr auto 1fr;
      gap: 8px; align-items: center;
    }
    .sport-team {
      display: flex; align-items: center; gap: 6px;
      font-size: 0.78rem; color: var(--text);
      min-width: 0;
    }
    .sport-team:last-child { justify-content: flex-end; flex-direction: row-reverse; }
    .sport-team img {
      width: 24px; height: 24px; object-fit: contain;
      flex-shrink: 0; border-radius: 4px;
    }
    .sport-team-placeholder {
      width: 24px; height: 24px; background: var(--border);
      border-radius: 4px; flex-shrink: 0;
    }
    .sport-team span {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sport-match-score {
      display: flex; align-items: center; gap: 4px;
      font-family: 'Outfit', sans-serif; font-weight: 600;
      font-size: 0.95rem; color: var(--muted);
    }
    .sport-score { color: var(--muted); min-width: 18px; text-align: center; }
    .sport-score.win { color: var(--text); font-weight: 700; }
    .sport-score-sep { color: var(--muted); font-size: 0.7rem; opacity: 0.6; }
    .sports-website {
      display: block; text-align: center; font-size: 0.78rem;
      color: var(--accent); text-decoration: none;
      padding: 6px 0; margin-top: 8px;
    }
    .sports-website:hover { text-decoration: underline; }

    /* ── COUPE DU MONDE 2026 — widget compétition (style Google) ── */
    .wc26 {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
      border-radius: 14px; padding: 16px 16px 10px; margin-bottom: 18px;
      animation: fadeIn 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .wc26-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .wc26-trophy { font-size: 1.7rem; line-height: 1; }
    .wc26-title {
      font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
      font-weight: 600; color: var(--text); line-height: 1.15;
    }
    .wc26-sub {
      font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--muted);
      letter-spacing: 0.05em; text-transform: uppercase; margin-top: 3px;
    }
    .wc26-live-pill {
      margin-left: auto; background: #E30613; color: #fff; font-size: 0.62rem;
      font-weight: 700; padding: 3px 9px; border-radius: 11px;
      letter-spacing: 0.5px; white-space: nowrap; animation: wc26pulse 1.6s infinite;
    }
    @keyframes wc26pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
    .wc26-tabs {
      display: flex; gap: 4px; border-bottom: 1px solid var(--border);
      margin-bottom: 12px; overflow-x: auto; scrollbar-width: none;
    }
    .wc26-tabs::-webkit-scrollbar { display: none; }
    .wc26-tab {
      background: none; border: none; cursor: pointer; padding: 8px 12px;
      font-family: 'Outfit', sans-serif; font-size: 0.8rem; color: var(--muted);
      border-bottom: 2px solid transparent; white-space: nowrap;
    }
    .wc26-tab.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
    .wc26-sec {
      font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--muted); margin: 12px 0 7px;
    }
    .wc26-body > .wc26-sec:first-child { margin-top: 0; }
    .wc26-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 8px; }
    .wc26-m { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
    .wc26-m.live { border-color: #E30613; box-shadow: 0 0 0 1px rgba(227,6,19,0.25); }
    .wc26-m-meta {
      font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--muted);
      letter-spacing: 0.03em; margin-bottom: 6px;
      display: flex; gap: 6px; align-items: center; justify-content: space-between;
    }
    .wc26-m-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wc26-m-live { color: #E30613; font-weight: 700; animation: wc26pulse 1.6s infinite; flex-shrink: 0; }
    .wc26-l { display: flex; align-items: center; gap: 7px; padding: 2px 0; font-size: 0.8rem; color: var(--text); }
    .wc26-l img { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
    .wc26-flag-ph { width: 20px; height: 20px; border-radius: 3px; background: var(--border); flex-shrink: 0; display: inline-block; }
    .wc26-l .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .wc26-l .sc { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--muted); min-width: 16px; text-align: right; }
    .wc26-l.win .sc, .wc26-l.win .nm { color: var(--text); font-weight: 700; }
    .wc26-goals { font-size: 0.64rem; color: var(--muted); margin-top: 5px; line-height: 1.55; }
    .wc26-red { font-size: 0.58rem; letter-spacing: -1px; }
    .wc26-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 10px; }
    .wc26-g { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; overflow-x: auto; }
    .wc26-gt { width: 100%; border-collapse: collapse; }
    .wc26-gt th {
      font-family: 'DM Mono', monospace; font-size: 0.56rem; color: var(--muted);
      font-weight: 500; text-align: center; padding: 3px 2px; letter-spacing: 0.04em;
    }
    .wc26-gt th.t { text-align: left; font-size: 0.66rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; }
    .wc26-gt td { padding: 4px 2px; text-align: center; color: var(--text); font-size: 0.72rem; }
    .wc26-gt td.t { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
    .wc26-gt td.t img { width: 16px; height: 16px; object-fit: contain; border-radius: 2px; vertical-align: -3px; margin-right: 4px; }
    .wc26-gt td.rk { color: var(--muted); font-size: 0.64rem; }
    .wc26-gt tr.q td.rk { box-shadow: inset 3px 0 0 #2e9e5b; }
    .wc26-gt td.pts { font-weight: 700; }
    .wc26-note { font-size: 0.64rem; color: var(--muted); margin-top: 9px; line-height: 1.5; }
    .wc26-scor { display: flex; flex-direction: column; gap: 6px; }
    .wc26-srow {
      display: flex; align-items: center; gap: 10px; background: var(--surface);
      border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px;
      font-size: 0.8rem; color: var(--text);
    }
    .wc26-srow .rk { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); width: 18px; flex-shrink: 0; }
    .wc26-srow img { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
    .wc26-srow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wc26-srow .tm { color: var(--muted); font-size: 0.68rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wc26-srow .gg { margin-left: auto; font-family: 'Outfit', sans-serif; font-weight: 700; white-space: nowrap; }
    .wc26-foot {
      font-family: 'DM Mono', monospace; font-size: 0.58rem; color: var(--muted);
      margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border);
      display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    }
    .wc26-foot a { color: var(--accent); text-decoration: none; }
    .wc26-foot a:hover { text-decoration: underline; }
    .wc26-more {
      display: block; width: 100%; text-align: center; background: none;
      border: 1px dashed var(--border); border-radius: 10px; color: var(--muted);
      font-size: 0.72rem; padding: 8px; margin-top: 10px; cursor: pointer;
      font-family: 'Outfit', sans-serif;
    }
    .wc26-more:hover { color: var(--text); border-color: var(--muted); }
    .wc26-loading { font-size: 0.75rem; color: var(--muted); padding: 6px 2px; }
    .wc26-empty { font-size: 0.72rem; color: var(--muted); }
    @media (max-width: 640px) {
      .wc26 { padding: 12px 12px 8px; }
      .wc26-title { font-size: 1.1rem; }
      .wc26-mgrid, .wc26-ggrid { grid-template-columns: 1fr; }
    }

    /* ── BUSINESS CARD (curated) ── */
    .business-card {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
 border-radius: 14px; padding: 20px;
      animation: fadeIn 0.3s ease; margin-bottom: 14px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .biz-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
    .biz-logo {
      width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
      background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; padding: 6px;
    }
    .biz-title-block { flex: 1; min-width: 0; }
    .biz-name {
      font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
      color: var(--text); font-weight: 500; line-height: 1.2;
    }
    .biz-tagline { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
    .biz-category {
      display: inline-block; font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); background: var(--accent-dim, rgba(79,142,247,0.1));
      padding: 3px 8px; border-radius: 999px; margin-top: 6px;
    }
    .biz-desc { font-size: 0.85rem; color: var(--text); line-height: 1.5; margin-bottom: 14px; }
    .biz-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .biz-meta-row { display: flex; justify-content: space-between; font-size: 0.78rem; }
    .biz-meta-label { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.03em; }
    .biz-meta-val { color: var(--text); text-align: right; }
    .biz-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .biz-link {
      color: var(--accent); text-decoration: none; font-size: 0.82rem;
      display: block; padding: 6px 10px; border-radius: 6px;
      background: var(--surface); transition: background 0.15s;
    }
    .biz-link:hover { background: var(--accent-dim, rgba(79,142,247,0.1)); }
    .biz-apps-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
    }
    .biz-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .biz-activities { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
    .biz-activity {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 10px 12px;
    }
    .biz-activity-name {
      font-family: 'Outfit', sans-serif; font-size: 0.85rem;
      font-weight: 600; color: var(--text); margin-bottom: 3px;
    }
    .biz-activity-desc {
      font-size: 0.75rem; color: var(--muted); line-height: 1.4;
    }
    .biz-app {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 6px; padding: 6px 10px; font-size: 0.72rem;
      color: var(--text); text-decoration: none;
      font-family: 'Outfit', sans-serif; transition: all 0.15s;
    }
    .biz-app:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
    .biz-map {
      width: 100%; height: 180px; border-radius: 10px;
      overflow: hidden; margin-bottom: 6px; border: 1px solid var(--border);
    }
    .biz-maps-link {
      display: block; text-align: center; font-size: 0.78rem;
      color: var(--accent); text-decoration: none;
      padding: 6px 0; margin-bottom: 14px;
    }
    .biz-maps-link:hover { text-decoration: underline; }
    .biz-hours-display { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
    .biz-hour-row {
      display: flex; justify-content: space-between;
      font-size: 0.78rem; padding: 3px 0;
    }
    .biz-hour-row span:first-child { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.7rem; }
    .biz-hour-row span:last-child { color: var(--text); }
    .biz-photos {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
      margin-bottom: 14px;
    }
    .biz-photos a { display: block; overflow: hidden; border-radius: 6px; }
    .biz-photos img {
      width: 100%; height: 70px; object-fit: cover;
      transition: transform 0.2s;
    }
    .biz-photos a:hover img { transform: scale(1.08); }

    /* ── BUSINESS SUBMIT FORM ── */
    .biz-field { display: flex; flex-direction: column; gap: 4px; }
    .biz-field label {
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase;
    }
    .biz-field input, .biz-field textarea, .biz-field select {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; padding: 10px 12px; color: var(--text);
      font-family: 'Outfit', sans-serif; font-size: 0.88rem;
      outline: none; transition: border-color 0.2s;
      resize: vertical;
    }
    .biz-field input:focus, .biz-field textarea:focus, .biz-field select:focus { border-color: var(--accent); }
    .biz-section-label {
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); margin-top: 8px;
      padding-bottom: 4px; border-bottom: 1px solid var(--border);
    }
    .biz-hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    @media (max-width: 600px) { .biz-hours-grid { grid-template-columns: 1fr; } }
    .biz-hours-row {
      display: flex; align-items: center; gap: 8px;
      font-size: 0.78rem;
    }
    .biz-hours-row span { min-width: 70px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.7rem; }
    .biz-hours-row input { flex: 1; padding: 6px 10px !important; }
    .biz-geocode-btn {
      padding: 10px; border-radius: 8px; border: 1px dashed var(--accent);
      background: transparent; color: var(--accent);
      font-family: 'Outfit', sans-serif; font-size: 0.85rem;
      cursor: pointer; transition: all 0.15s;
    }
    .biz-geocode-btn:hover { background: var(--accent-dim, rgba(79,142,247,0.08)); }
    .biz-upload-zone { display: flex; flex-direction: column; gap: 6px; }
    .biz-upload-btn {
      padding: 10px; border-radius: 8px; border: 1px dashed var(--border);
      background: var(--surface); color: var(--text);
      font-family: 'Outfit', sans-serif; font-size: 0.85rem;
      cursor: pointer; transition: all 0.15s;
    }
    .biz-upload-btn:hover { border-color: var(--accent); background: var(--accent-dim, rgba(79,142,247,0.08)); }
    .biz-upload-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
    .biz-upload-preview-item {
      position: relative; width: 70px; height: 70px;
      border-radius: 6px; overflow: hidden; border: 1px solid var(--border);
    }
    .biz-upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
    .biz-upload-preview-item button {
      position: absolute; top: 2px; right: 2px;
      background: rgba(0,0,0,0.7); color: #fff; border: none;
      width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
      font-size: 11px; line-height: 1;
    }
    .biz-upload-progress {
      font-family: 'DM Mono', monospace; font-size: 0.7rem;
      color: var(--muted); padding: 4px 0;
    }
    .biz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 600px) { .biz-field-row { grid-template-columns: 1fr; } }

    /* Admin queue rows */
    .biz-pending-row {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 14px; margin-bottom: 10px;
    }
    .biz-pending-head {
      display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px;
    }
    .biz-pending-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
    .biz-pending-meta { font-size: 0.72rem; color: var(--muted); font-family: 'DM Mono', monospace; }
    .biz-pending-desc { font-size: 0.8rem; color: var(--text); opacity: 0.85; margin-bottom: 10px; line-height: 1.4; }
    .biz-pending-actions { display: flex; gap: 8px; }
    .biz-btn-approve, .biz-btn-reject {
      padding: 6px 12px; border-radius: 6px; border: none;
      font-size: 0.78rem; font-family: 'DM Mono', monospace;
      cursor: pointer; letter-spacing: 0.03em;
    }
    .biz-btn-approve { background: #22c55e; color: #fff; }
    .biz-btn-approve:hover { background: #16a34a; }
    .biz-btn-reject { background: transparent; color: #ef4444; border: 1px solid #ef4444; }
    .biz-btn-reject:hover { background: #ef4444; color: #fff; }

    /* ── PLACE CARD ── */
    .place-card {
      background: var(--glass-bg); border: 1px solid var(--glass-border);
 border-radius: 12px; padding: 18px;
      animation: fadeIn 0.3s ease; margin-bottom: 12px;
    }
    .pc-name {
      font-family: 'Cormorant Garamond', serif; font-weight: 500;
      font-size: 1.2rem; color: var(--text); margin-bottom: 4px;
    }
    .pc-cat {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
      margin-bottom: 14px;
    }
    .pc-open { color: var(--green); font-weight: 600; }
    .pc-closed { color: #ef4444; font-weight: 600; }
    .pc-map {
      width: 100%; height: 220px; border-radius: 10px; border: 1px solid var(--border);
      margin-bottom: 14px; overflow: hidden; position: relative;
      box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
    .pc-map iframe { width: 100%; height: 100%; border: none; display: block; }
    .pc-map-link {
      position: absolute; top: 8px; right: 8px;
      background: rgba(255,255,255,0.95); color: #1a1a1a;
      padding: 4px 10px; border-radius: 16px;
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      font-weight: 600; text-decoration: none;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      transition: transform 0.12s;
    }
    .pc-map-link:hover { transform: scale(1.04); text-decoration: none; }
    .pc-row {
      display: flex; align-items: flex-start; gap: 10px; padding: 6px 0;
      font-size: 0.78rem; border-bottom: 1px solid rgba(255,255,255,.04);
    }
    .pc-row:last-child { border-bottom: none; }
    .pc-icon { font-size: 0.85rem; flex-shrink: 0; width: 20px; text-align: center; }
    .pc-val { flex: 1; color: var(--text); }
    .pc-val a { color: var(--accent); text-decoration: none; }
    .pc-val a:hover { text-decoration: underline; }
    .pc-btn {
      display: block; width: 100%; margin-top: 12px; padding: 10px;
      background: var(--accent); color: var(--accent-text); border: none;
      border-radius: 8px; font-family: 'DM Mono', monospace; font-size: 0.72rem;
      cursor: pointer; text-align: center; text-decoration: none;
      transition: opacity 0.2s;
    }
    .pc-btn:hover { opacity: 0.85; }
    .kp-source a { color: var(--accent); text-decoration: none; }
    .kp-source a:hover { text-decoration: underline; }

    /* ── Couleurs SERP façon Google (titres bleus, extraits gris, Arial) ── */
    :root {
      --serp-link: #1a0dab;
      --serp-link-visited: #681da8;
      --serp-text: #4d5156;
      --serp-source: #202124;
    }
    .theme-nuit, [data-boreal="nuit"],
    .theme-crepuscule, [data-boreal="crepuscule"],
    .theme-galaxie, [data-boreal="galaxie"] {
      --serp-link: #8ab4f8;
      --serp-link-visited: #c58af9;
      --serp-text: #bdc1c6;
      --serp-source: #dadce0;
    }

    /* ── RESULT CARDS ── */
    .result-card {
      padding: 13px 14px; margin-bottom: 9px;
      border: none; border-radius: 12px;
      background: transparent;
      animation: fadeIn 0.3s ease both;
      transition: background-color 0.18s ease;
    }
    .result-card:hover { background: var(--accent-dim); transform: none; box-shadow: none; }
    .result-card:last-child { margin-bottom: 0; }
    .result-source {
      font-family: arial, sans-serif; font-size: 14px;
      color: var(--serp-source); margin-bottom: 4px;
      display: flex; align-items: center; gap: 6px;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      font-weight: 400; letter-spacing: normal;
    }
    .result-favicon {
      width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0;
      background: var(--border);
    }
    .result-title {
      font-family: arial, sans-serif; font-weight: 400;
      font-size: 20px; color: var(--serp-link); text-decoration: none;
      display: block; margin-bottom: 6px; line-height: 1.3;
    }
    .result-title:visited { color: var(--serp-link-visited); }
    .result-title:hover { text-decoration: underline; }
    /* ── INTER HYBRID BANNER (résultats Inter dans l'onglet Tout) ── */
    .inter-hybrid {
      background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(79,142,247,0.02));
      border: 1px solid rgba(79,142,247,0.25);
      border-radius: 12px;
      padding: 12px 16px 14px;
      margin: 0 0 18px;
      font-family: 'Outfit', sans-serif;
    }
    .inter-hybrid-header {
      display: flex; align-items: center; gap: 8px;
      font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em;
      text-transform: uppercase; color: var(--accent);
      margin-bottom: 10px;
    }
    .inter-hybrid-header::before { content: '★'; font-size: 0.9rem; }
    .inter-hybrid-list { display: flex; flex-direction: column; gap: 6px; }
    .inter-hybrid-item {
      display: block; padding: 6px 8px; border-radius: 6px;
      text-decoration: none; color: var(--text);
      transition: background 0.1s;
    }
    .inter-hybrid-item:hover { background: rgba(79,142,247,0.08); }
    .inter-hybrid-item-title {
      font-family: arial, sans-serif;
      font-size: 16px; font-weight: 400; color: var(--serp-link);
      margin-bottom: 2px;
    }
    .inter-hybrid-item-snippet {
      font-family: arial, sans-serif;
      font-size: 13px; color: var(--serp-text);
      overflow: hidden; text-overflow: ellipsis;
      display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    }

    .result-snippet {
      font-family: arial, sans-serif;
      font-size: 14px; color: var(--serp-text); line-height: 1.58;
      font-weight: 400; opacity: 1;
    }
    /* Neutralise les <mark> si SearXNG en renvoie directement */
    .result-snippet mark, .news-snippet mark,
    .result-snippet b, .news-snippet b,
    .result-snippet strong, .news-snippet strong {
      background: transparent; color: inherit;
      font-weight: inherit; padding: 0;
    }
    .result-card { position: relative; }
    .result-date {
      font-family: arial, sans-serif; font-size: 12px;
      color: var(--serp-text); opacity: 0.9; font-weight: 400;
    }
    .result-date::before { content: ' · '; opacity: 0.5; }
    .result-badge {
      display: inline-block; margin-left: 8px; padding: 1px 7px;
      border-radius: 4px; font-family: 'DM Mono', monospace;
      font-size: 0.56rem; font-weight: 600; letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .result-badge.sci {
      background: rgba(22, 163, 74, 0.15); color: #16a34a;
      border: 1px solid rgba(22, 163, 74, 0.3);
    }

    /* ── NEWS TRENDING (Sources en vedette) ── */
    .news-trending {
      margin: 10px 0 22px;
      padding: 14px 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
    }
    .news-trending-label {
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted, #9aa4b2);
      margin-bottom: 10px;
      font-weight: 600;
    }
    .news-trending-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .news-trending-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px 5px 8px;
      background: var(--surface2, rgba(255,255,255,0.04));
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 0.78rem;
      font-family: 'DM Mono', monospace;
      color: var(--text, inherit);
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
      white-space: nowrap;
      cursor: pointer;
      font-weight: 500;
    }
    .news-trending-pill:hover {
      background: var(--accent-dim, rgba(79,142,247,0.12));
      border-color: var(--accent, #4f8ef7);
    }
    .news-trending-pill:active { transform: scale(0.97); }
    .news-trending-pill.active {
      background: var(--accent, #4f8ef7);
      border-color: var(--accent, #4f8ef7);
      color: #fff;
    }
    .news-trending-pill.active .news-trending-count {
      background: #fff;
      color: var(--accent, #4f8ef7);
    }
    .news-trending-clear {
      display: inline-flex;
      align-items: center;
      padding: 5px 10px;
      background: transparent;
      border: 1px dashed var(--border);
      border-radius: 999px;
      color: var(--muted, #9aa4b2);
      font-size: 0.72rem;
      font-family: 'DM Mono', monospace;
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s;
    }
    .news-trending-clear:hover {
      color: #ef4444;
      border-color: #ef4444;
    }
    .news-trending-pill img {
      width: 14px; height: 14px; border-radius: 3px;
      background: var(--border); flex-shrink: 0;
    }
    .news-trending-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 20px; height: 18px;
      padding: 0 6px;
      background: var(--accent, #4f8ef7);
      color: #fff;
      border-radius: 9px;
      font-size: 0.68rem;
      font-weight: 700;
      margin-left: 2px;
    }

    /* ── NEWS CARDS ── */
    .news-card {
      display: flex; gap: 14px; padding: 14px 0;
      border-bottom: 1px solid var(--border);
      animation: fadeIn 0.3s ease both;
    }
    .news-card:last-child { border-bottom: none; }
    .news-body { flex: 1; min-width: 0; }
    .news-source {
      display: flex; align-items: center; gap: 6px;
      font-family: 'DM Mono', monospace; font-size: 0.75rem;
      color: var(--green-dim); margin-bottom: 5px;
      font-weight: 600; letter-spacing: 0.02em;
    }
    .news-source img {
      width: 14px; height: 14px; border-radius: 3px;
      background: var(--border); flex-shrink: 0;
    }
    .news-title {
      font-family: 'Outfit', sans-serif; font-weight: 600;
      font-size: 1rem; color: var(--accent); text-decoration: none;
      display: block; margin-bottom: 6px; line-height: 1.35;
    }
    .news-title:hover { text-decoration: underline; }
    .news-snippet {
      font-size: 0.84rem; color: var(--text);
      line-height: 1.55; font-weight: 400; opacity: 0.95;
    }
    .news-date {
      font-family: 'DM Mono', monospace; font-size: 0.72rem;
      color: var(--text); margin-top: 6px; opacity: 0.78; font-weight: 500;
    }
    .news-source {
      font-weight: 600 !important; opacity: 1 !important;
    }
    .news-thumb {
      width: 120px; height: 80px; border-radius: 6px; object-fit: cover;
      flex-shrink: 0; background: var(--border);
    }

    /* ── INSTANT WIDGETS (calc, weather) ── */
    .calc-widget, .weather-widget {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 16px 20px; margin-bottom: 16px;
      animation: fadeIn 0.3s ease;
    }
    .calc-widget { border-left: 3px solid var(--green); }
    .calc-label {
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
    }
    .calc-expr { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
    .calc-result {
      font-family: 'DM Mono', monospace; font-size: 1.6rem;
      color: var(--text); margin-top: 2px; font-weight: 300;
    }
    .weather-widget {
      border-left: 3px solid #38bdf8;
      display: flex; align-items: center; gap: 16px;
    }
    .weather-icon { font-size: 2.4rem; line-height: 1; }
    .weather-temp { font-size: 1.8rem; font-weight: 200; color: var(--text); }
    .weather-city { font-size: 0.82rem; color: var(--muted); }
    .weather-details {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--muted); line-height: 1.6;
    }
    .weather-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      letter-spacing: 0.1em; text-transform: uppercase; color: #38bdf8;
      margin-bottom: 4px;
    }

    /* ── RÉSUMÉ D'ARTICLE INLINE (sous le résultat) ── */
    .result-summary {
      margin-top: 10px; padding: 12px 14px;
      background: var(--accent-dim, rgba(79,142,247,0.08));
      border-left: 3px solid var(--accent);
      border-radius: 8px;
      font-family: 'Outfit', sans-serif;
      font-size: 0.86rem;
      color: var(--text); line-height: 1.5;
      white-space: pre-wrap;
      animation: fadeIn 0.2s ease;
    }
    .result-summary-loading {
      margin-top: 10px; padding: 12px 14px;
      background: var(--glass-bg);
      border-left: 3px solid var(--muted);
      border-radius: 8px;
      font-family: 'DM Mono', monospace; font-size: 0.78rem;
      color: var(--muted);
    }
    .result-summary-loading::after {
      content: '...'; animation: dots 1.2s steps(4) infinite;
    }
    @keyframes dots { 0%,20% { content:'.'; } 40% { content:'..'; } 60%,100% { content:'...'; } }
    .result-summary-label {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 6px;
    }

    /* ── PASTILLE FIABILITÉ SOURCE ── */
    .src-trust {
      display: inline-flex; align-items: center;
      margin-left: 6px; vertical-align: middle;
    }
    .src-trust-dot {
      display: inline-block; width: 6px; height: 6px;
      border-radius: 50%;
    }
    .src-trust-dot.trust-high { background: #16a34a; }
    .src-trust-dot.trust-medium { background: #f59e0b; }
    .src-trust-dot.trust-low { background: #ef4444; }

    /* ── FILTRES DATE RAPIDES (boutons au-dessus des résultats) ── */
    .quick-date-filters {
      display: flex; gap: 6px; flex-wrap: wrap;
      margin: 10px 0 14px;
    }
    .quick-date-btn {
      padding: 4px 11px; border-radius: 999px;
      border: 1px solid var(--border);
      background: transparent; color: var(--muted);
      font-family: 'Outfit', sans-serif; font-size: 0.75rem;
      cursor: pointer; transition: all 0.12s;
    }
    .quick-date-btn:hover {
      color: var(--text); border-color: var(--accent);
    }
    .quick-date-btn.active {
      background: var(--accent); color: var(--accent-text);
      border-color: var(--accent); font-weight: 500;
    }

    /* ── RÉPONSE DÉTAILLÉE (Perplexity-style) ── */
    .ai-detailed-btn {
      margin-top: 10px; padding: 6px 14px;
      background: transparent;
      border: 1px solid var(--accent);
      color: var(--accent);
      border-radius: 999px;
      font-family: 'Outfit', sans-serif; font-size: 0.78rem;
      cursor: pointer; transition: all 0.12s;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .ai-detailed-btn:hover {
      background: var(--accent); color: var(--accent-text);
    }
    .ai-detailed-btn svg { width: 12px; height: 12px; }
    .ai-detailed-btn:disabled {
      opacity: 0.6; cursor: wait;
    }
    .ai-detailed {
      margin-top: 14px; padding-top: 14px;
      border-top: 1px solid var(--border);
      font-family: 'Outfit', sans-serif; font-size: 0.92rem;
      color: var(--text); line-height: 1.65;
      animation: fadeIn 0.25s ease;
    }
    .ai-detailed-header {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 10px;
      display: flex; align-items: center; gap: 6px;
    }
    .ai-citation {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 18px; height: 18px; padding: 0 5px;
      background: var(--accent-dim, rgba(79,142,247,0.15));
      color: var(--accent);
      border: 1px solid var(--accent);
      border-radius: 4px;
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      font-weight: 600; line-height: 1;
      cursor: pointer; margin: 0 2px;
      vertical-align: 1px;
      transition: all 0.12s;
      text-decoration: none;
    }
    .ai-citation:hover {
      background: var(--accent); color: var(--accent-text);
      transform: scale(1.1);
    }

    /* ── FEATURED SNIPPET (answer box Google-style) ── */
    .featured-snippet {
      margin: 14px 0 20px;
      padding: 18px 20px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .fs-question {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem; font-weight: 500;
      color: var(--text); margin-bottom: 10px;
      opacity: 0.85;
    }
    .fs-answer {
      font-family: 'Outfit', sans-serif;
      font-size: 1.05rem; font-weight: 400;
      color: var(--text); line-height: 1.55;
    }
    .fs-answer b, .fs-answer strong {
      font-weight: 600;
      background: linear-gradient(transparent 60%, var(--accent-dim) 60%);
      padding: 0 2px;
    }
    .fs-source {
      display: flex; align-items: center; gap: 8px;
      margin-top: 12px; padding-top: 10px;
      border-top: 1px solid var(--border);
      font-size: 0.75rem; color: var(--muted);
    }
    .fs-source a { color: var(--accent); text-decoration: none; font-weight: 500; }
    .fs-source a:hover { text-decoration: underline; }
    .fs-source img { width: 14px; height: 14px; border-radius: 2px; }

    /* ── SPELL CORRECTION ("Voulais-tu dire…") ── */
    .spell-correction {
      margin: 10px 0 16px;
      padding: 12px 14px;
      background: var(--accent-dim, rgba(79,142,247,0.08));
      border-left: 3px solid var(--accent);
      border-radius: 8px;
      font-family: 'Outfit', sans-serif;
      font-size: 0.92rem;
      color: var(--text);
    }
    .spell-correction a {
      color: var(--accent); font-weight: 600;
      text-decoration: none; font-style: italic;
    }
    .spell-correction a:hover { text-decoration: underline; }

    /* ── INLINE MONUMENTS (AubeMonument — quand requête = ville) ── */
    .inline-monuments {
      margin: 14px 0 22px;
    }
    .inline-monuments-label {
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
      display: flex; align-items: center; gap: 8px;
    }
    .inline-monuments-label a {
      margin-left: auto; color: var(--accent);
      text-decoration: none; font-size: 0.68rem;
      text-transform: none; letter-spacing: 0;
    }
    .inline-monuments-label a:hover { text-decoration: underline; }
    .inline-monuments-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
    @media (max-width: 900px) {
      .inline-monuments-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 600px) {
      .inline-monuments-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .inline-monument-card {
      display: flex; flex-direction: column;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px; overflow: hidden;
      text-decoration: none; color: var(--text);
      transition: transform 0.12s, border-color 0.12s;
      position: relative;
    }
    .inline-monument-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }
    .inline-monument-thumb {
      width: 100%; aspect-ratio: 4 / 3;
      object-fit: cover; background: var(--glass-bg);
      display: block;
    }
    .inline-monument-unesco {
      position: absolute; top: 6px; right: 6px;
      background: rgba(0, 102, 204, 0.92); color: #fff;
      font-family: 'DM Mono', monospace; font-size: 0.56rem;
      letter-spacing: 0.05em; text-transform: uppercase;
      padding: 3px 6px; border-radius: 4px;
    }
    .inline-monument-name {
      padding: 8px 10px;
      font-family: 'Outfit', sans-serif;
      font-size: 0.78rem; line-height: 1.3;
      color: var(--text);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ── INLINE VIDEOS (carrousel 3 vidéos) ── */
    .inline-videos {
      margin: 14px 0 22px;
    }
    .inline-videos-label {
      font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
      display: flex; align-items: center; gap: 8px;
    }
    .inline-videos-label a {
      margin-left: auto; color: var(--accent);
      text-decoration: none; font-size: 0.68rem;
      text-transform: none; letter-spacing: 0;
    }
    .inline-videos-label a:hover { text-decoration: underline; }
    .inline-videos-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    @media (max-width: 700px) {
      .inline-videos-grid { grid-template-columns: 1fr; }
    }
    .inline-video-card {
      display: flex; flex-direction: column;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px; overflow: hidden;
      text-decoration: none; color: var(--text);
      transition: transform 0.12s, border-color 0.12s;
    }
    .inline-video-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }
    .inline-video-thumb-wrap {
      position: relative;
      width: 100%; aspect-ratio: 16 / 9;
      background: #000; overflow: hidden;
    }
    .inline-video-thumb-wrap img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .inline-video-duration {
      position: absolute; bottom: 6px; right: 6px;
      background: rgba(0,0,0,0.8); color: #fff;
      font-family: 'DM Mono', monospace; font-size: 0.66rem;
      padding: 2px 6px; border-radius: 4px;
    }
    .inline-video-play {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.0); transition: background 0.2s;
    }
    .inline-video-card:hover .inline-video-play { background: rgba(0,0,0,0.25); }
    .inline-video-play svg {
      width: 40px; height: 40px;
      opacity: 0; transition: opacity 0.2s;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    }
    .inline-video-card:hover .inline-video-play svg { opacity: 1; }
    .inline-video-body {
      padding: 10px 12px 12px;
      display: flex; flex-direction: column; gap: 6px;
      flex: 1;
    }
    .inline-video-title {
      font-family: 'Outfit', sans-serif;
      font-size: 0.85rem; font-weight: 500;
      color: var(--text); line-height: 1.35;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .inline-video-meta {
      display: flex; align-items: center; gap: 6px;
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      color: var(--muted); margin-top: auto;
    }
    .inline-video-meta img {
      width: 12px; height: 12px; border-radius: 2px;
    }

    /* ── INLINE NEWS (carrousel d'actualités récentes) ── */
    .inline-news {
      margin: 18px 0 28px;
    }
    .inline-news-label {
      font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 14px;
      display: flex; align-items: center; gap: 8px;
    }
    .inline-news-label a {
      margin-left: auto; color: var(--accent);
      text-decoration: none; font-size: 0.68rem;
      text-transform: none; letter-spacing: 0;
    }
    .inline-news-label a:hover { text-decoration: underline; }
    .inline-news-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    @media (max-width: 700px) {
      .inline-news-grid { grid-template-columns: 1fr; }
    }
    .inline-news-card {
      display: flex; flex-direction: column;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px; overflow: hidden;
      text-decoration: none; color: var(--text);
      transition: transform 0.12s, border-color 0.12s;
    }
    .inline-news-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }
    .inline-news-thumb {
      width: 100%; aspect-ratio: 16 / 9;
      object-fit: cover; background: var(--glass-bg);
      display: block;
    }
    .inline-news-body {
      padding: 12px 14px 14px;
      display: flex; flex-direction: column; gap: 8px;
      flex: 1;
    }
    .inline-news-title {
      font-family: 'Outfit', sans-serif;
      font-size: 0.85rem; font-weight: 500;
      color: var(--text); line-height: 1.35;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .inline-news-meta {
      display: flex; align-items: center; gap: 6px;
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      color: var(--muted);
      margin-top: auto;
    }
    .inline-news-meta img {
      width: 12px; height: 12px; border-radius: 2px;
    }

    /* ── INLINE IMAGES (mini strip après l'IA) ── */
    .inline-images {
      margin: 14px 0 22px;
    }
    .inline-images-label {
      font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
      display: flex; align-items: center; gap: 8px;
    }
    .inline-images-label a {
      margin-left: auto; color: var(--accent);
      text-decoration: none; font-size: 0.68rem;
      text-transform: none; letter-spacing: 0;
    }
    .inline-images-label a:hover { text-decoration: underline; }
    .inline-images-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
    }
    @media (max-width: 900px) {
      .inline-images-grid { grid-template-columns: repeat(4, 1fr); }
    }
    @media (max-width: 600px) {
      .inline-images-grid { grid-template-columns: repeat(3, 1fr); }
    }
    .inline-image-item {
      position: relative; display: block;
      aspect-ratio: 1 / 1;
      border-radius: 10px; overflow: hidden;
      border: 1px solid var(--border);
      background: var(--glass-bg);
      transition: transform 0.12s, border-color 0.12s;
      cursor: pointer;
    }
    .inline-image-item:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }
    .inline-image-item img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
    }

    /* ── PEOPLE ALSO ASK (accordéon de questions) ── */
    .people-also-ask {
      margin: 18px 0 24px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface);
      overflow: hidden;
    }
    .paa-header {
      padding: 12px 16px 4px;
      font-family: 'Outfit', sans-serif;
      font-size: 1.1rem; font-weight: 600;
      color: var(--text);
    }
    .paa-item {
      border-top: 1px solid var(--border);
    }
    .paa-item:first-of-type { border-top: none; }
    .paa-question {
      width: 100%; border: none; background: transparent;
      padding: 14px 16px;
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; cursor: pointer;
      font-family: 'Outfit', sans-serif;
      font-size: 0.92rem; font-weight: 500;
      color: var(--text); text-align: left;
      transition: background 0.12s;
    }
    .paa-question:hover { background: var(--glass-bg); }
    .paa-question .paa-chevron {
      flex-shrink: 0; width: 14px; height: 14px;
      color: var(--muted);
      transition: transform 0.2s;
    }
    .paa-item.open .paa-chevron { transform: rotate(180deg); }
    .paa-answer {
      padding: 0 16px;
      max-height: 0; overflow: hidden;
      transition: max-height 0.2s ease, padding 0.2s;
      font-size: 0.86rem; line-height: 1.6;
      color: var(--text); opacity: 0.92;
    }
    .paa-item.open .paa-answer {
      max-height: 400px; padding: 0 16px 14px;
    }
    .paa-source {
      margin-top: 8px; font-size: 0.72rem;
      color: var(--muted);
    }
    .paa-source a { color: var(--accent); text-decoration: none; }
    .paa-source a:hover { text-decoration: underline; }

    /* ── MODÉRATION : écran de blocage + bandeau d'aide ── */
    .moderation-blocked {
      max-width: 640px; margin: 48px auto 32px;
      padding: 32px 28px;
      background: var(--surface, rgba(255,255,255,0.04));
      border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
      border-left: 4px solid #d94a4a;
      border-radius: 14px;
      animation: fadeIn 0.4s ease;
    }
    .moderation-blocked h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.45rem; margin: 0 0 14px;
      color: var(--text);
    }
    .moderation-blocked p {
      font-family: 'Outfit', sans-serif; font-size: 0.92rem;
      line-height: 1.55; color: var(--text); opacity: 0.88;
      margin: 0 0 18px;
    }
    .moderation-resources {
      margin-top: 18px; padding-top: 16px;
      border-top: 1px solid var(--border, rgba(255,255,255,0.08));
    }
    .moderation-resources-label {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--muted); margin-bottom: 10px;
    }
    .moderation-resource {
      display: block; padding: 10px 14px;
      background: var(--bg, rgba(0,0,0,0.18));
      border: 1px solid var(--border, rgba(255,255,255,0.06));
      border-radius: 8px; margin-bottom: 6px;
      color: var(--text); text-decoration: none;
      font-size: 0.86rem; transition: all 0.15s;
    }
    .moderation-resource:hover {
      border-color: var(--accent); transform: translateX(2px);
    }
    .moderation-resource-name { font-weight: 500; }
    .moderation-resource-country {
      font-size: 0.7rem; opacity: 0.6; margin-left: 8px;
    }
    /* Bandeau d'aide (warn — détresse) */
    .moderation-warn {
      max-width: 720px; margin: 0 auto 18px;
      padding: 16px 20px;
      background: linear-gradient(135deg, rgba(108,180,240,0.08), rgba(108,180,240,0.04));
      border: 1px solid rgba(108,180,240,0.3);
      border-left: 3px solid #6cb4f0;
      border-radius: 12px;
      animation: fadeIn 0.4s ease;
    }
    .moderation-warn-msg {
      font-size: 0.88rem; line-height: 1.5;
      color: var(--text); margin-bottom: 10px;
    }
    .moderation-warn-resources { display: flex; flex-wrap: wrap; gap: 8px; }
    .moderation-warn-resources a {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px; border-radius: 18px;
      background: var(--accent-dim, rgba(108,180,240,0.12));
      border: 1px solid rgba(108,180,240,0.3);
      color: var(--text); text-decoration: none;
      font-family: 'DM Mono', monospace; font-size: 0.72rem;
      transition: all 0.15s;
    }
    .moderation-warn-resources a:hover {
      background: rgba(108,180,240,0.2); transform: translateY(-1px);
    }
    /* Modale signalement */
    .report-overlay {
      display: none; position: fixed; inset: 0; z-index: 11000;
      background: rgba(0,0,0,0.6); align-items: center; justify-content: center;
    }
    .report-overlay.open { display: flex; }
    .report-modal {
      background: var(--surface); border: 1px solid var(--glass-border);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-radius: 14px; padding: 24px 26px;
      width: 460px; max-width: 92vw;
      box-shadow: 0 20px 60px var(--shadow);
    }
    .report-modal h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem; margin: 0 0 6px;
    }
    .report-modal-sub {
      font-size: 0.78rem; color: var(--muted); margin-bottom: 18px;
    }
    .report-field { margin-bottom: 14px; }
    .report-field label {
      display: block; font-size: 0.7rem; text-transform: uppercase;
      letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px;
    }
    .report-field input, .report-field select, .report-field textarea {
      width: 100%; box-sizing: border-box;
      background: var(--bg); border: 1px solid var(--glass-border);
      border-radius: 8px; padding: 8px 12px;
      color: var(--text); font-family: 'Outfit', sans-serif;
      font-size: 0.88rem; outline: none; transition: border-color 0.15s;
    }
    .report-field textarea { resize: vertical; min-height: 70px; }
    .report-field input:focus, .report-field select:focus, .report-field textarea:focus {
      border-color: var(--accent);
    }
    .report-actions {
      display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px;
    }
    .report-actions button {
      padding: 8px 16px; border-radius: 8px;
      font-family: 'DM Mono', monospace; font-size: 0.74rem;
      cursor: pointer; transition: all 0.15s; border: none;
    }
    .report-cancel {
      background: transparent; border: 1px solid var(--glass-border);
      color: var(--text);
    }
    .report-submit {
      background: var(--accent); color: var(--accent-text, #fff);
    }
    .report-msg {
      font-size: 0.82rem; padding: 10px 12px; margin-top: 10px;
      border-radius: 8px; display: none;
    }
    .report-msg.ok { display: block; background: rgba(80,180,120,0.15); color: #6dd396; }
    .report-msg.error { display: block; background: rgba(217,74,74,0.15); color: #ed8a8a; }

    /* ── ÉTAT VIDE (0 résultats) ── */
    .empty-state {
      text-align: center; padding: 56px 24px 24px;
      animation: fadeIn 0.35s ease;
    }
    .empty-state-icon {
      width: 64px; height: 64px;
      color: var(--muted); opacity: 0.5;
      margin-bottom: 18px;
    }
    .empty-state-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.4rem; color: var(--text);
      font-weight: 500; margin-bottom: 8px;
    }
    .empty-state-sub {
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem; text-transform: uppercase;
      letter-spacing: 0.1em; color: var(--muted);
      margin: 18px 0 10px;
    }
    .empty-state-tips {
      list-style: none; padding: 0; margin: 0 auto;
      max-width: 360px;
    }
    .empty-state-tips li {
      font-family: 'Outfit', sans-serif;
      font-size: 0.88rem; color: var(--text);
      padding: 8px 0; line-height: 1.5;
      border-bottom: 1px dashed var(--border);
      opacity: 0.85;
    }
    .empty-state-tips li:last-child { border-bottom: none; }
    .empty-state-tips li::before {
      content: '→ '; color: var(--accent); font-weight: bold;
    }

    /* ── MICRO-ANIMATIONS (hover, transitions douces) ── */
    .result-card, .news-card, .inline-news-card, .inline-video-card {
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
    }
    .news-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }
    /* Fonction d'entrée plus douce */
    .result-card, .news-card {
      animation: resultFadeIn 0.4s cubic-bezier(0.2, 0.8, 0.3, 1) both;
    }
    @keyframes resultFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    /* Kp-person-card (recherches associées) micro-animation */
    .kp-person-card {
      transition: transform 0.15s ease, background 0.15s ease;
    }
    .kp-person-photo {
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .kp-person-card:hover .kp-person-photo {
      border-color: var(--accent);
      box-shadow: 0 4px 12px rgba(79,142,247,0.2);
    }

    /* ── THÈME SOMBRE : fix pour nouveaux éléments (sitelinks, fiches enrichies, featured snippet) ── */
    .theme-nuit .empty-state-tips li,
    [data-boreal="nuit"] .empty-state-tips li,
    .theme-crepuscule .empty-state-tips li,
    [data-boreal="crepuscule"] .empty-state-tips li,
    .theme-galaxie .empty-state-tips li,
    [data-boreal="galaxie"] .empty-state-tips li {
      border-bottom-color: rgba(255,255,255,0.1);
    }
    .theme-nuit .featured-snippet,
    [data-boreal="nuit"] .featured-snippet,
    .theme-crepuscule .featured-snippet,
    [data-boreal="crepuscule"] .featured-snippet,
    .theme-galaxie .featured-snippet,
    [data-boreal="galaxie"] .featured-snippet {
      background: rgba(20, 40, 52, 0.7);
    }
    .theme-nuit .inline-news-card,
    .theme-nuit .inline-video-card,
    [data-boreal="nuit"] .inline-news-card,
    [data-boreal="nuit"] .inline-video-card,
    .theme-crepuscule .inline-news-card,
    .theme-crepuscule .inline-video-card,
    [data-boreal="crepuscule"] .inline-news-card,
    [data-boreal="crepuscule"] .inline-video-card,
    .theme-galaxie .inline-news-card,
    .theme-galaxie .inline-video-card,
    [data-boreal="galaxie"] .inline-news-card,
    [data-boreal="galaxie"] .inline-video-card {
      background: rgba(15, 37, 48, 0.6);
    }
    .theme-nuit .kp-detail-value a,
    [data-boreal="nuit"] .kp-detail-value a,
    .theme-crepuscule .kp-detail-value a,
    [data-boreal="crepuscule"] .kp-detail-value a,
    .theme-galaxie .kp-detail-value a,
    [data-boreal="galaxie"] .kp-detail-value a {
      color: #6ba6ff;
    }

    /* ── SITELINKS (sous-pages d'un gros site, style Google) ── */
    .sitelinks {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 4px 16px;
      margin-top: 10px; margin-bottom: 4px;
      padding-left: 0;
    }
    @media (max-width: 600px) {
      .sitelinks { grid-template-columns: 1fr; }
    }
    .sitelink {
      display: block;
      padding: 4px 0;
      text-decoration: none;
      color: var(--serp-link);
      font-family: arial, sans-serif;
      font-size: 14px;
      border-bottom: 1px dotted transparent;
      transition: border-color 0.12s, color 0.12s;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .sitelink:visited { color: var(--serp-link-visited); }
    .sitelink:hover {
      text-decoration: underline;
      border-bottom-color: var(--accent);
    }
    .sitelink-title { font-weight: 400; }

    /* ── RELATED SEARCHES (style léger, façon Google) ── */
    .related-searches {
      margin-top: 24px;
      padding: 0;
      border: none;
      background: transparent;
    }
    .related-label {
      font-family: 'Outfit', sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 12px;
      letter-spacing: 0;
      text-transform: none;
    }
    .related-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .related-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--glass-bg);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 7px 14px;
      font-size: 0.82rem;
      color: var(--text);
      cursor: pointer;
      transition: background 0.12s, border-color 0.12s, color 0.12s;
      font-family: 'Outfit', sans-serif;
      text-align: left;
      white-space: nowrap;
    }
    .related-pill:hover {
      background: var(--accent-dim, rgba(79,142,247,0.08));
      border-color: var(--accent);
      color: var(--accent);
    }
    .related-pill svg { color: var(--muted); width: 12px; height: 12px; }
    .related-pill:hover svg { color: var(--accent); }

    /* ── SITE PREVIEW ── */
    .site-preview {
      display: none; position: absolute; right: -320px; top: 0;
      width: 300px; height: 200px; z-index: 50;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; overflow: hidden;
      box-shadow: 0 8px 24px var(--shadow);
    }
    .site-preview.visible { display: block; animation: fadeIn 0.2s ease; }
    .site-preview img { width: 100%; height: 100%; border: none; object-fit: cover; }
    @media (max-width: 1200px) { .site-preview { display: none !important; } }

    /* ── PAGINATION ── */
    .pagination {
      display: flex; align-items: center; justify-content: center;
      gap: 4px; margin-top: 24px; padding-bottom: 20px;
    }
    .pagination-info {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); text-align: center; margin-bottom: 8px;
    }
    .page-btn {
      font-family: 'DM Mono', monospace; font-size: 0.78rem;
      color: var(--muted); background: none; border: 1px solid transparent;
      border-radius: 6px; width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.15s;
    }
    .page-btn:hover { color: var(--text); border-color: var(--border); }
    .page-btn.active {
      color: var(--accent); border-color: var(--accent);
      background: var(--accent-dim); font-weight: 400;
    }
    .page-btn.arrow { font-size: 1rem; }
    .page-btn:disabled { opacity: 0.3; cursor: default; }

    /* ── HISTORY ITEMS ── */
    .history-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 0; border-bottom: 1px solid var(--border);
      cursor: pointer; transition: opacity 0.15s;
    }
    .history-item:hover { opacity: 0.7; }
    .history-item:last-child { border-bottom: none; }
    .history-query {
      flex: 1; font-size: 0.85rem; color: var(--accent);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .history-meta {
      display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    }
    .history-date {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted);
    }
    .history-cat {
      font-family: 'DM Mono', monospace; font-size: 0.52rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); background: var(--accent-dim);
      border-radius: 4px; padding: 2px 6px;
    }
    .history-clear {
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      color: var(--muted); background: none; border: none;
      cursor: pointer; margin-top: 12px; padding: 0;
    }
    .history-clear:hover { color: #ef4444; }

    /* ── LOADER ── */
    #loader {
      display: none; align-items: center; gap: 10px;
      margin-top: 40px; color: var(--muted); font-size: 0.75rem;
      font-family: 'DM Mono', monospace;
    }
    #loader.active { display: flex; }
    .loader-spinner {
      width: 20px; height: 20px; border: 2px solid var(--border);
      border-top-color: var(--accent); border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── PROGRESS BAR FINE EN HAUT (YouTube style) ── */
    #top-progress {
      position: fixed; top: 0; left: 0; height: 3px;
      background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
      background-size: 200% 100%;
      z-index: 9999; width: 0; opacity: 0;
      transition: width 0.3s ease, opacity 0.3s;
      box-shadow: 0 0 8px var(--accent);
    }
    #top-progress.loading {
      opacity: 1;
      animation: progressShine 1.5s linear infinite;
    }
    @keyframes progressShine { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

    /* ── SKELETON LOADER ── */
    .skeleton-results {
      display: none; padding: 8px 0;
    }
    .skeleton-results.active { display: block; }
    .skeleton-card {
      padding: 16px 18px; margin-bottom: 8px;
      border-radius: 12px; background: var(--glass-bg);
      border: 0.5px solid var(--glass-border);
      backdrop-filter: blur(10px);
    }
    .skeleton-line {
      height: 10px; border-radius: 4px; margin-bottom: 8px;
      background: linear-gradient(90deg, var(--border) 0%, rgba(255,255,255,0.08) 50%, var(--border) 100%);
      background-size: 200% 100%;
      animation: skeleton-shine 1.2s ease-in-out infinite;
    }
    .skeleton-line.short { width: 30%; }
    .skeleton-line.medium { width: 60%; }
    .skeleton-line.long { width: 90%; }
    @keyframes skeleton-shine {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ── FOOTER ── */
    footer {
      width: 100%; flex-shrink: 0; text-align: center; padding: 20px 20px 28px;
      font-family: 'DM Mono', monospace; font-size: 0.55rem;
      letter-spacing: 0.15em; color: var(--text);
      position: relative; z-index: 5; opacity: 0.7;
    }
    .footer-links { margin-bottom: 4px; }
    .footer-links a {
      color: var(--text); text-decoration: none; margin: 0 6px;
      transition: color 0.15s; opacity: 0.8;
    }
    .footer-links a:hover { opacity: 1; }
    .footer-privacy { margin-top: 3px; font-size: 0.5rem; }
    .footer-location {
      margin-bottom: 6px; font-size: 0.6rem;
      opacity: 0.55; font-style: italic; letter-spacing: 0.1em;
    }
    .footer-location:empty { display: none; }

    /* ── SCROLLBAR ── */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    /* ── TOP-RIGHT CONTROLS ── */
    .top-controls {
      position: fixed;
      top: calc(46px + env(safe-area-inset-top, 0px));
      right: 20px; z-index: 60;
      display: flex; align-items: center; gap: 12px;
    }
    /* Menu utilisateur ouvert → la pilule passe AU-DESSUS de la search-wrap (z-index 500)
       sinon la barre de recherche coupe le dropdown en deux */
    .top-controls:has(.user-dropdown.open),
    .top-controls:focus-within { z-index: 600; }
    .theme-toggle {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 6px; width: 34px; height: 34px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
    }
    .theme-toggle:hover { border-color: var(--accent); }
    .theme-toggle svg { width: 16px; height: 16px; }
    .theme-icon-moon, .theme-icon-sun { transition: opacity 0.2s; }
    [data-theme="dark"] .theme-icon-moon { display: block; }
    [data-theme="dark"] .theme-icon-sun { display: none; }
    [data-theme="light"] .theme-icon-moon { display: none; }
    [data-theme="light"] .theme-icon-sun { display: block; }

    /* ── TAILLE DE POLICE (A-, A, A+) ── */
    .font-size-toggle {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 6px; width: 34px; height: 34px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
      position: relative;
    }
    .font-size-toggle:hover { border-color: var(--accent); }
    .font-size-toggle::after {
      content: attr(data-size-label);
      position: absolute; bottom: -4px; right: -4px;
      background: var(--accent); color: var(--accent-text);
      font-family: 'DM Mono', monospace; font-size: 0.56rem;
      padding: 1px 4px; border-radius: 4px; line-height: 1;
    }
    /* 3 niveaux de zoom texte (appliqués via data-font-size sur <html>) */
    html[data-font-size="small"]  { font-size: 14px; }
    html[data-font-size="normal"] { font-size: 16px; }
    html[data-font-size="large"]  { font-size: 18px; }
    html[data-font-size="xlarge"] { font-size: 20px; }



    .auth-area {
      display: flex; align-items: center; gap: 8px;
    }
    .auth-btn {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); background: var(--accent-dim);
      border: 1px solid var(--accent); border-radius: 6px;
      padding: 6px 14px; cursor: pointer; transition: all 0.15s;
    }
    .auth-btn:hover { background: var(--accent); color: #fff; }

    /* ── USER MENU ── */
    .user-menu-wrap { position: relative; }
    .user-avatar {
      width: 34px; height: 34px; border-radius: 50%;
      background: var(--accent); color: #fff; border: none;
      font-family: 'Outfit', sans-serif; font-weight: 400;
      font-size: 0.85rem; cursor: pointer; display: flex;
      align-items: center; justify-content: center;
      transition: opacity 0.15s;
    }
    .user-avatar:hover { opacity: 0.85; }
    .user-dropdown {
      display: none; position: absolute; top: calc(100% + 6px); right: 0;
      background: var(--surface); border: 1px solid var(--glass-border);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-radius: 10px; min-width: 220px; padding: 8px 0;
      box-shadow: 0 12px 32px var(--shadow); z-index: 100;
      max-height: calc(100vh - 110px - env(safe-area-inset-top, 0px));
      overflow-y: auto; /* petit écran : le menu scrolle au lieu de passer sous la barre */
    }
    .theme-nuit .user-dropdown, .theme-crepuscule .user-dropdown, .theme-galaxie .user-dropdown,
    [data-boreal="nuit"] .user-dropdown, [data-boreal="crepuscule"] .user-dropdown, [data-boreal="galaxie"] .user-dropdown { background: rgba(10,26,36,0.92); }
    .theme-jour .user-dropdown, .theme-aube .user-dropdown,
    [data-boreal="jour"] .user-dropdown, [data-boreal="aube"] .user-dropdown { background: rgba(255,255,255,0.96); }
    .user-dropdown.open { display: block; animation: fadeIn 0.15s ease; }
    .ud-header {
      padding: 12px 16px; border-bottom: 1px solid var(--border);
    }
    .ud-name {
      font-size: 0.88rem; font-weight: 400; color: var(--text);
    }
    .ud-email {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--muted); margin-top: 2px;
    }
    .ud-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 16px; font-size: 0.8rem; color: var(--text);
      cursor: pointer; transition: background 0.1s; border: none;
      background: none; width: 100%; text-align: left;
      font-family: 'Outfit', sans-serif;
    }
    .ud-item:hover { background: var(--accent-dim); }
    .ud-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
    .ud-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
    .ud-item.danger { color: #ef4444; }
    .ud-item.danger svg { color: #ef4444; }

    /* ── IMAGE GRID (Google Images style) ── */
    .img-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 6px;
      width: 100%;
    }
    @media (max-width: 600px) {
      .img-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    }
    .img-card {
      position: relative; overflow: hidden;
      border-radius: 10px; cursor: pointer;
      background: var(--surface);
      animation: fadeIn 0.3s ease both;
      border: 1px solid var(--border);
    }
    .img-card img.img-thumb {
      width: 100%; height: 220px; object-fit: cover; display: block;
      transition: transform 0.25s ease; background: var(--border);
      image-rendering: auto;
    }
    .img-res-badge {
      position: absolute; top: 8px; left: 8px;
      background: rgba(0,0,0,0.7);
      color: #fff;
      font-size: 0.65rem;
      font-family: 'DM Mono', monospace;
      padding: 3px 7px;
      border-radius: 999px;
      letter-spacing: 0.03em;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      pointer-events: none;
      z-index: 2;
    }
    .img-res-badge.hd {
      background: linear-gradient(135deg, #f59e0b, #ef4444);
      font-weight: 700;
    }
    .img-card:hover img.img-thumb { transform: scale(1.03); }
    .img-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.8));
      padding: 20px 10px 10px;
      opacity: 0; transition: opacity 0.2s;
    }
    .img-card:hover .img-overlay { opacity: 1; }
    .img-source-favicon {
      display: flex; align-items: center; gap: 5px;
      font-size: 0.65rem; color: #fff;
      font-family: 'DM Mono', monospace;
      margin-bottom: 4px;
    }
    .img-source-favicon img { width: 12px; height: 12px; border-radius: 2px; }
    .img-title {
      font-size: 0.75rem; color: #fff;
      white-space: nowrap; overflow: hidden;
      text-overflow: ellipsis;
    }

    /* ── IMAGE FILTERS BAR ── */
    .img-filters {
      display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
      align-items: center;
    }
    .img-filter-label {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
      margin-right: 2px;
    }
    .img-filter-btn {
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      letter-spacing: 0.05em;
      color: var(--muted); background: transparent;
      border: 1px solid transparent; border-radius: 5px;
      padding: 3px 10px; cursor: pointer; transition: all 0.15s;
    }
    .img-filter-btn:hover { color: var(--text); }
    .img-filter-btn.active {
      color: var(--accent); border-color: var(--accent);
      background: var(--accent-dim);
    }
    .img-filter-sep {
      width: 1px; height: 16px; background: var(--border); margin: 0 4px;
    }

    /* ── IMAGE MODAL (Google Images side panel) ── */
    .img-modal-overlay {
      display: none; position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.85);
      align-items: center; justify-content: center;
    }
    .img-modal-overlay.open { display: flex; }
    .img-modal-content {
      background: var(--surface); border-radius: 12px;
      max-width: 90vw; max-height: 90vh;
      display: grid; grid-template-columns: 1fr 320px;
      overflow: hidden; position: relative;
      box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    }
    @media (max-width: 768px) {
      .img-modal-content {
        grid-template-columns: 1fr;
        max-width: 95vw; max-height: 95vh;
      }
    }
    .img-modal-left {
      display: flex; align-items: center; justify-content: center;
      background: #000; min-height: 300px; max-height: 90vh; overflow: hidden;
    }
    .img-modal-left img {
      max-height: 90vh; max-width: 100%; object-fit: contain;
    }
    .img-modal-right {
      padding: 24px; display: flex; flex-direction: column;
      gap: 12px; border-left: 1px solid var(--border);
      overflow-y: auto;
    }
    @media (max-width: 768px) {
      .img-modal-right { border-left: none; border-top: 1px solid var(--border); }
    }
    .img-modal-title {
      font-family: 'Outfit', sans-serif; font-weight: 400;
      font-size: 1rem; color: var(--text); line-height: 1.4;
    }
    .img-modal-domain {
      display: flex; align-items: center; gap: 8px;
      font-family: 'DM Mono', monospace; font-size: 0.7rem;
      color: var(--green-dim);
    }
    .img-modal-domain img { width: 16px; height: 16px; border-radius: 3px; }
    .img-modal-visit {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: 'DM Mono', monospace; font-size: 0.72rem;
      color: var(--accent); text-decoration: none;
      background: var(--accent-dim); border: 1px solid var(--accent);
      border-radius: 6px; padding: 8px 14px; transition: all 0.15s;
    }
    .img-modal-visit:hover { background: var(--accent); color: #fff; }
    .img-modal-viewimg {
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      color: var(--muted); text-decoration: none;
      padding: 6px 14px; border: 1px solid var(--border);
      border-radius: 6px; text-align: center; transition: all 0.15s;
    }
    .img-modal-viewimg:hover { color: var(--text); border-color: var(--muted); }
    .img-modal-size {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); margin-top: auto;
    }
    .img-modal-close {
      position: absolute; top: 12px; right: 12px; z-index: 10;
      background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
      width: 36px; height: 36px; display: flex; align-items: center;
      justify-content: center; cursor: pointer; color: #fff;
      font-size: 1.2rem; transition: background 0.15s;
    }
    .img-modal-close:hover { background: rgba(0,0,0,0.9); }
    .img-modal-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      background: rgba(0,0,0,0.5); border: none; border-radius: 50%;
      width: 40px; height: 40px; display: flex; align-items: center;
      justify-content: center; cursor: pointer; color: #fff;
      font-size: 1.3rem; transition: background 0.15s; z-index: 10;
    }
    .img-modal-nav:hover { background: rgba(0,0,0,0.8); }
    .img-modal-nav.prev { left: 12px; }
    .img-modal-nav.next { right: 340px; }
    @media (max-width: 768px) {
      .img-modal-nav.next { right: 12px; }
    }

    /* ── VIDEO CARDS ── */
    .video-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 22px;
    }
    @media (min-width: 900px) {
      .video-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (min-width: 1200px) {
      .video-grid { grid-template-columns: repeat(4, 1fr); }
    }
    .video-card {
      border-radius: 8px; overflow: hidden;
      border: 1px solid var(--border); background: var(--surface);
      transition: border-color 0.15s; animation: fadeIn 0.3s ease both;
    }
    .video-card:hover { border-color: var(--accent); }
    .video-thumb {
      position: relative; width: 100%; height: 0;
      padding-bottom: 56.25%; background: var(--border); overflow: hidden;
    }
    .video-thumb img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover;
    }
    .video-play {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 48px; height: 48px; border-radius: 50%;
      background: rgba(0,0,0,0.7); display: flex;
      align-items: center; justify-content: center;
      pointer-events: none;
    }
    .video-play::after {
      content: ''; display: block;
      border-style: solid; border-width: 8px 0 8px 14px;
      border-color: transparent transparent transparent #fff;
      margin-left: 3px;
    }
    .video-card-info { padding: 10px 12px; }
    .video-card-title {
      font-size: 0.85rem; font-weight: 400; color: var(--text);
      text-decoration: none; display: block; line-height: 1.3;
      display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden;
    }
    .video-card-title:hover { color: var(--accent); }
    .video-card-source {
      font-family: 'DM Mono', monospace; font-size: 0.58rem;
      color: var(--green-dim); margin-top: 4px;
    }
    .video-duration {
      position: absolute; bottom: 6px; right: 6px;
      background: rgba(0,0,0,0.8); color: #fff;
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      padding: 1px 5px; border-radius: 3px; letter-spacing: 0.03em;
    }
    .video-channel {
      font-size: 0.72rem; color: var(--muted); margin-top: 2px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .video-trusted {
      display: inline-flex; align-items: center; justify-content: center;
      width: 14px; height: 14px; margin-left: 4px;
      background: #22c55e; color: #fff;
      border-radius: 50%;
      font-size: 0.6rem; font-weight: 700;
      vertical-align: middle;
    }

    /* ── AUTH MODAL ── */
    .modal-overlay {
      display: none; position: fixed; inset: 0; z-index: 10000;
      background: var(--modal-overlay); align-items: center; justify-content: center;
    }
    .modal-overlay.open { display: flex; }
    .modal {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 28px 32px; width: 360px; max-width: 90vw;
    }
    .modal h2 {
      font-family: 'Cormorant Garamond', serif; font-weight: 400;
      font-size: 1.3rem; color: var(--text); margin-bottom: 18px;
    }
    .modal-input {
      width: 100%; background: var(--bg); border: 1px solid var(--border);
      border-radius: 6px; padding: 10px 14px; color: var(--text);
      font-family: 'Outfit', sans-serif; font-size: 0.88rem;
      margin-bottom: 10px; outline: none;
    }
    .modal-input:focus { border-color: var(--accent); }
    .modal-submit {
      width: 100%; background: var(--accent); border: none;
      border-radius: 6px; padding: 10px; color: #fff;
      font-family: 'Outfit', sans-serif; font-size: 0.88rem;
      cursor: pointer; margin-top: 4px; transition: opacity 0.15s;
    }
    .modal-submit:hover { opacity: 0.85; }
    .modal-toggle {
      text-align: center; margin-top: 12px; font-size: 0.75rem; color: var(--muted);
    }
    .modal-toggle a {
      color: var(--accent); cursor: pointer; text-decoration: none;
    }
    .modal-toggle a:hover { text-decoration: underline; }
    .modal-error {
      color: #f87171; font-size: 0.75rem; margin-bottom: 8px;
      display: none; font-family: 'DM Mono', monospace;
    }
    .modal-error.visible { display: block; }
    .modal-close {
      float: right; background: none; border: none; color: var(--muted);
      font-size: 1.2rem; cursor: pointer; margin-top: -8px;
    }

    /* ── GENERIC PANEL MODAL ── */
    .panel-overlay {
      display: none; position: fixed; inset: 0; z-index: 10000;
      background: var(--modal-overlay); align-items: center; justify-content: center;
    }
    .panel-overlay.open { display: flex; }
    .panel {
      background: var(--surface); border: 1px solid var(--glass-border);
      backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
      border-radius: 14px; padding: 24px 28px; width: 400px; max-width: 92vw;
      max-height: 80vh; overflow-y: auto;
      box-shadow: 0 20px 60px var(--shadow);
    }
    .theme-nuit .panel, .theme-crepuscule .panel, .theme-galaxie .panel,
    [data-boreal="nuit"] .panel, [data-boreal="crepuscule"] .panel, [data-boreal="galaxie"] .panel { background: rgba(10,26,36,0.94); }
    .theme-jour .panel, .theme-aube .panel,
    [data-boreal="jour"] .panel, [data-boreal="aube"] .panel { background: rgba(255,255,255,0.96); }
    .panel-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 18px;
    }
    .panel-header h2 {
      font-family: 'Cormorant Garamond', serif; font-weight: 400;
      font-size: 1.2rem; color: var(--text); margin: 0;
    }
    .panel-close {
      background: none; border: none; color: var(--muted);
      font-size: 1.3rem; cursor: pointer; padding: 0 4px;
    }
    .panel-close:hover { color: var(--text); }
    .panel-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px 0; border-bottom: 1px solid var(--border);
      font-size: 0.82rem;
    }
    .panel-row:last-child { border-bottom: none; }
    .panel-label {
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      color: var(--muted); letter-spacing: 0.05em;
    }
    .panel-value { color: var(--text); text-align: right; max-width: 60%; }
    .panel-placeholder {
      text-align: center; padding: 28px 0; color: var(--muted);
      font-size: 0.82rem;
    }
    .panel-placeholder svg {
      width: 32px; height: 32px; margin-bottom: 10px; opacity: 0.4;
    }
    .panel-btn-disabled {
      width: 100%; padding: 10px; margin-top: 14px;
      background: var(--border); border: none; border-radius: 6px;
      color: var(--muted); font-family: 'Outfit', sans-serif;
      font-size: 0.82rem; cursor: not-allowed; position: relative;
    }
    .panel-btn-disabled:hover::after {
      content: attr(data-tooltip); position: absolute;
      bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 6px; padding: 4px 10px; font-size: 0.7rem;
      color: var(--text); white-space: nowrap;
    }
    .panel-theme-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 0;
    }
    .panel-theme-label { font-size: 0.85rem; color: var(--text); }
    .panel-theme-toggle {
      width: 48px; height: 26px; border-radius: 13px;
      background: var(--border); border: none; cursor: pointer;
      position: relative; transition: background 0.2s;
    }
    .panel-theme-toggle.active { background: var(--accent); }
    .panel-theme-toggle::after {
      content: ''; position: absolute; top: 3px; left: 3px;
      width: 20px; height: 20px; border-radius: 50%;
      background: #fff; transition: transform 0.2s;
    }
    .panel-theme-toggle.active::after { transform: translateX(22px); }

    /* ── PROFILE PANEL ── */
    .profile-header {
      display: flex; align-items: center; gap: 16px;
      padding: 4px 0 18px; border-bottom: 1px solid var(--glass-border); margin-bottom: 14px;
    }
    .profile-avatar {
      width: 56px; height: 56px; border-radius: 50%;
      background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', serif; font-weight: 500;
      font-size: 1.6rem; flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(79,142,247,0.25);
      position: relative;
    }
    .profile-avatar::after {
      content: ''; position: absolute; bottom: 2px; right: 2px;
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--green); border: 2px solid var(--surface);
    }
    .profile-avatar-img {
      width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
      display: block;
    }
    .profile-avatar-wrap { position: relative; flex-shrink: 0; }
    .profile-avatar-edit {
      position: absolute; bottom: -2px; right: -2px;
      width: 24px; height: 24px; border-radius: 50%;
      background: var(--accent); color: #fff; border: 2px solid var(--surface);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: transform 0.15s;
      z-index: 2;
    }
    .profile-avatar-edit:hover { transform: scale(1.08); }
    .profile-avatar-edit svg { width: 12px; height: 12px; }
    .profile-avatar-remove {
      background: transparent; border: none; color: var(--muted);
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      letter-spacing: 0.05em; cursor: pointer; padding: 0;
      text-decoration: underline; opacity: 0.8;
    }
    .profile-avatar-remove:hover { color: #ef4444; opacity: 1; }
    .profile-info { flex: 1; min-width: 0; }
    .profile-name {
      font-size: 1rem; font-weight: 400; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .profile-email {
      font-family: 'DM Mono', monospace; font-size: 0.7rem;
      color: var(--muted); margin-top: 2px;
    }
    .profile-badge {
      display: inline-block; padding: 3px 10px; border-radius: 20px;
      font-family: 'DM Mono', monospace; font-size: 0.58rem; font-weight: 600;
      letter-spacing: 0.08em; margin-top: 6px;
      background: linear-gradient(135deg, var(--accent-dim), rgba(139,92,246,0.15));
      color: var(--accent);
      border: 1px solid var(--glass-border);
    }
    .profile-apps-title {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase;
      margin: 18px 0 10px;
    }
    /* Accès rapide : grille 2x2 de liens utiles */
    .profile-quick-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
      margin-bottom: 4px;
    }
    .profile-quick {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 12px; border-radius: 8px;
      background: var(--surface, rgba(255,255,255,0.04));
      border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
      color: var(--text); text-decoration: none;
      font-size: 0.82rem; font-family: 'Outfit', sans-serif;
      transition: all 0.15s;
    }
    .profile-quick:hover { border-color: var(--accent); transform: translateY(-1px); }
    .profile-quick svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
    /* Préférences rapides : ligne label + select/toggle */
    .profile-pref-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 12px; border-radius: 8px;
      background: var(--surface, rgba(255,255,255,0.03));
      border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
      margin-bottom: 6px;
    }
    .profile-pref-label { font-size: 0.84rem; color: var(--text); }
    .profile-pref-select {
      background: var(--bg); border: 1px solid var(--glass-border);
      border-radius: 6px; padding: 4px 10px; color: var(--text);
      font-family: 'DM Mono', monospace; font-size: 0.72rem;
      outline: none; cursor: pointer;
    }
    .profile-pref-toggle {
      background: var(--bg); border: 1px solid var(--glass-border);
      border-radius: 6px; padding: 4px 14px; color: var(--text);
      font-family: 'DM Mono', monospace; font-size: 0.7rem;
      cursor: pointer; transition: all 0.15s;
    }
    .profile-pref-toggle:hover { border-color: var(--accent); }
    .profile-pref-toggle.danger { color: #ed8a8a; border-color: rgba(217,74,74,0.3); }
    .profile-pref-toggle.danger:hover { border-color: #d94a4a; background: rgba(217,74,74,0.08); }
    /* Sessions actives */
    .profile-sessions-row {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; padding: 10px 14px; border-radius: 8px;
      background: var(--surface); border: 1px solid var(--glass-border);
    }
    .profile-sessions-info { font-size: 0.84rem; }
    /* Zone dangereuse */
    .profile-danger-zone {
      margin-top: 22px; padding: 14px;
      border: 1px dashed rgba(217,74,74,0.3); border-radius: 10px;
      background: rgba(217,74,74,0.04);
    }
    .profile-danger-title {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: #ed8a8a; letter-spacing: 0.15em; text-transform: uppercase;
      margin-bottom: 8px;
    }
    .profile-danger-btn {
      width: 100%; padding: 9px 12px; border-radius: 6px;
      background: transparent; border: 1px solid rgba(217,74,74,0.4);
      color: #ed8a8a; font-family: 'DM Mono', monospace;
      font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
      cursor: pointer; transition: all 0.15s;
    }
    .profile-danger-btn:hover { background: rgba(217,74,74,0.08); border-color: #d94a4a; }
    /* Sécurité : lien vers AubeMail */
    .profile-security-link {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px; border-radius: 8px;
      background: var(--surface); border: 1px solid var(--glass-border);
      color: var(--text); text-decoration: none;
      font-size: 0.86rem; transition: all 0.15s;
    }
    .profile-security-link:hover { border-color: var(--accent); transform: translateY(-1px); }
    .profile-security-link svg { width: 14px; height: 14px; opacity: 0.7; flex-shrink: 0; }
    .profile-security-link span:first-of-type { flex: 1; }
    .profile-security-arrow { color: var(--muted); font-size: 0.9rem; }
    /* Mes données : 2 boutons d'action RGPD */
    .profile-data-actions {
      display: flex; gap: 6px; flex-wrap: wrap;
    }
    .profile-data-btn {
      flex: 1; min-width: 130px;
      padding: 8px 12px; border-radius: 6px;
      background: var(--surface); border: 1px solid var(--glass-border);
      color: var(--text); font-family: 'DM Mono', monospace;
      font-size: 0.66rem; text-transform: uppercase;
      letter-spacing: 0.08em; cursor: pointer;
      transition: all 0.15s;
    }
    .profile-data-btn:hover { border-color: var(--accent); color: var(--accent); }
    .profile-data-btn.danger:hover { border-color: #d94a4a; color: #ed8a8a; }
    .profile-app {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; margin-bottom: 6px;
      font-size: 0.85rem; color: var(--text);
      text-decoration: none;
      background: var(--glass-bg); border: 0.5px solid var(--glass-border);
      backdrop-filter: blur(8px);
      border-radius: 10px;
      transition: all 0.2s;
    }
    .profile-app:hover {
      transform: translateX(2px);
      border-color: var(--accent);
    }
    .profile-app-icon {
      width: 32px; height: 32px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.9rem; flex-shrink: 0;
    }
    .profile-app-name { flex: 1; font-weight: 500; }
    .profile-app-status {
      font-family: 'DM Mono', monospace; font-size: 0.55rem;
      color: var(--green); letter-spacing: 0.05em;
      display: inline-flex; align-items: center; gap: 5px;
      text-transform: uppercase;
    }
    .profile-app-status::before {
      content: ''; width: 6px; height: 6px; border-radius: 50%;
      background: var(--green); box-shadow: 0 0 6px var(--green);
      animation: pulse 2s infinite;
    }
    .profile-app-status.link {
      color: var(--accent); cursor: pointer;
    }
    .profile-app-status.link::before { display: none; }
    .profile-logout-btn {
      width: 100%; padding: 10px; margin-top: 16px;
      background: none; border: 1px solid #ef4444; border-radius: 6px;
      color: #ef4444; font-family: 'Outfit', sans-serif;
      font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
    }
    .profile-logout-btn:hover {
      background: #ef4444; color: #fff;
    }
    .profile-login-msg {
      text-align: center; padding: 20px 0; color: var(--muted); font-size: 0.85rem;
    }
    .profile-login-btn {
      display: block; width: 100%; padding: 10px; margin-top: 12px;
      background: var(--accent); border: none; border-radius: 6px;
      color: #fff; font-family: 'Outfit', sans-serif;
      font-size: 0.85rem; cursor: pointer; transition: opacity 0.2s;
    }
    .profile-login-btn:hover { opacity: 0.85; }

    /* ── HERO TAGLINE ── */
    .hero-tagline {
      text-align: center;
      margin: 20px auto 28px;
      max-width: 600px;
      padding: 0 20px;
      display: none;
    }
    .wrapper.home-mode .hero-tagline { display: block; }
    .wrapper.results-mode .hero-tagline { display: none; }
    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 2.5vw, 1.4rem);
      font-weight: 400;
      color: var(--text);
      margin: 0 0 6px;
      line-height: 1.3;
      letter-spacing: 0.01em;
      opacity: 0.85;
    }
    .hero-sub {
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      color: var(--muted);
      margin: 0;
      letter-spacing: 0.04em;
      opacity: 0.7;
    }

    /* ── DOODLE DU JOUR ── */
    .doodle {
      width: 100%; max-width: 620px; margin-bottom: 14px;
      display: none;
    }
    .wrapper.home-mode .doodle.active { display: block; }
    .wrapper.results-mode .doodle { display: none; }
    .doodle-card {
      display: flex; align-items: center; gap: 14px;
      background: var(--glass-bg); border: 0.5px solid var(--glass-border);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border-radius: 14px; padding: 14px 18px;
      cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
      position: relative; overflow: hidden;
    }
    .doodle-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow); }
    .doodle-icon {
      font-size: 2.2rem; line-height: 1; flex-shrink: 0;
      animation: doodlePulse 3s ease-in-out infinite;
    }
    @keyframes doodlePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
    .doodle-info { flex: 1; min-width: 0; }
    .doodle-title {
      font-family: 'Cormorant Garamond', serif; font-weight: 400;
      font-size: 1.05rem; color: var(--text); line-height: 1.2;
    }
    .doodle-sub {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); margin-top: 3px; letter-spacing: 0.05em;
    }
    .doodle-flag {
      font-size: 1.3rem; flex-shrink: 0; margin-left: auto; opacity: 0.7;
    }
    /* ── DOODLE 1er MAI (animations festives) ── */
    .doodle-card.doodle-may1 {
      background: linear-gradient(135deg, rgba(220,38,38,0.10), rgba(255,200,200,0.03));
      border-color: rgba(220,38,38,0.4);
    }
    .doodle-card.doodle-may1 .doodle-icon {
      animation: may1Swing 2.4s ease-in-out infinite;
      transform-origin: 50% 80%;
    }
    @keyframes may1Swing {
      0%, 100% { transform: rotate(-12deg) scale(1); }
      50%      { transform: rotate( 12deg) scale(1.15); }
    }
    .may1-fly {
      position: absolute; bottom: -4px; pointer-events: none;
      font-size: 0.95rem; opacity: 0;
      animation: may1FloatUp 5s ease-in-out infinite;
    }
    .may1-fly.f1 { left: 14%; animation-delay: 0s;   }
    .may1-fly.f2 { left: 32%; animation-delay: 1.2s; }
    .may1-fly.f3 { left: 56%; animation-delay: 2.4s; }
    .may1-fly.f4 { left: 78%; animation-delay: 3.6s; }
    @keyframes may1FloatUp {
      0%   { transform: translateY(0)    rotate(-12deg); opacity: 0; }
      15%  { opacity: 0.9; }
      85%  { opacity: 0.9; }
      100% { transform: translateY(-58px) rotate(12deg);  opacity: 0; }
    }
    .doodle-card.doodle-may1 .doodle-flag {
      animation: may1FlagWave 1.8s ease-in-out infinite;
    }
    @keyframes may1FlagWave {
      0%, 100% { transform: rotate(-8deg); }
      50%      { transform: rotate( 8deg); }
    }

    .doodle-sparkle {
      position: absolute; pointer-events: none; font-size: 0.7rem;
      opacity: 0; animation: sparkle 4s ease-in-out infinite;
    }
    .doodle-sparkle:nth-child(1) { top: 8px; left: 12%; animation-delay: 0s; }
    .doodle-sparkle:nth-child(2) { bottom: 10px; right: 25%; animation-delay: 1.5s; }
    .doodle-sparkle:nth-child(3) { top: 50%; right: 10%; animation-delay: 3s; }
    @keyframes sparkle { 0%,100%{opacity:0;transform:scale(0.5)} 50%{opacity:1;transform:scale(1)} }

    /* ── HOME GREETING ── */
    .home-greeting {
      font-family: 'Outfit', sans-serif; font-weight: 200;
      font-size: 0.85rem; color: var(--muted); margin-top: 8px;
      opacity: 0.8;
    }

    /* ── ANALYTICS ── */
    .analytics-tabs {
      display: flex; gap: 0; margin-bottom: 16px;
      border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
    }
    .analytics-tab {
      flex: 1; padding: 7px 0; text-align: center;
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      background: none; border: none; color: var(--muted); cursor: pointer;
      transition: all 0.15s; letter-spacing: 0.03em;
    }
    .analytics-tab:not(:last-child) { border-right: 1px solid var(--border); }
    .analytics-tab.active { background: var(--accent); color: #fff; }
    .analytics-stats {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
    }
    .analytics-stat {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 12px; text-align: center;
    }
    .analytics-stat-value {
      font-size: 1.4rem; font-weight: 300; color: var(--accent);
    }
    .analytics-stat-label {
      font-family: 'DM Mono', monospace; font-size: 0.55rem;
      color: var(--muted); margin-top: 2px; letter-spacing: 0.05em;
    }
    .analytics-section {
      margin-bottom: 16px;
    }
    .analytics-section-title {
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
      margin-bottom: 8px;
    }
    .analytics-bar-row {
      display: flex; align-items: center; gap: 8px; padding: 4px 0;
      font-size: 0.78rem;
    }
    .analytics-bar-rank {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); width: 18px; text-align: right; flex-shrink: 0;
    }
    .analytics-bar-query {
      flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
      white-space: nowrap; color: var(--text); cursor: pointer;
    }
    .analytics-bar-query:hover { color: var(--accent); }
    .analytics-bar-wrap {
      width: 90px; height: 14px; background: var(--border);
      border-radius: 3px; overflow: hidden; flex-shrink: 0;
    }
    .analytics-bar-fill {
      height: 100%; border-radius: 3px; background: var(--accent);
      transition: width 0.4s ease;
    }
    .analytics-bar-count {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); width: 28px; text-align: right; flex-shrink: 0;
    }
    .analytics-chart {
      display: flex; align-items: flex-end; gap: 3px;
      height: 80px; padding: 4px 0;
    }
    .analytics-chart-bar {
      flex: 1; background: var(--accent); border-radius: 2px 2px 0 0;
      min-height: 2px; transition: height 0.4s ease; position: relative;
    }
    .analytics-chart-bar:hover { opacity: 0.8; }
    .analytics-chart-bar::after {
      content: attr(data-label);
      position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
      font-family: 'DM Mono', monospace; font-size: 0.45rem; color: var(--muted);
      white-space: nowrap;
    }
    .analytics-chart-wrap { margin-bottom: 24px; }
    .analytics-trending-badge {
      font-family: 'DM Mono', monospace; font-size: 0.55rem;
      color: var(--green); margin-left: 4px;
    }
    .analytics-cat-row {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 6px; padding: 5px 10px; margin: 3px; font-size: 0.72rem;
    }
    .analytics-cat-dot {
      width: 8px; height: 8px; border-radius: 50%;
    }
    .analytics-cat-count {
      font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--muted);
    }

    /* ── DASHBOARD EXTRAS ── */
    .dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
    .dash-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
    .dash-stat-value { font-size: 1.3rem; font-weight: 300; color: var(--accent); }
    .dash-stat-label { font-family: 'DM Mono', monospace; font-size: 0.5rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; }
    .dash-live { display: inline-flex; align-items: center; gap: 5px; font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--green); margin-bottom: 12px; }
    .dash-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
    .dash-map-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.78rem; border-bottom: 1px solid var(--border); }
    .dash-map-row:last-child { border-bottom: none; }
    .dash-flag { font-size: 1.1rem; }
    .dash-map-name { flex: 1; color: var(--text); }
    .dash-map-bar { width: 80px; height: 12px; background: var(--border); border-radius: 3px; overflow: hidden; }
    .dash-map-fill { height: 100%; border-radius: 3px; }
    .dash-map-count { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--muted); width: 40px; text-align: right; }
    .dash-device-bar { display: flex; height: 20px; border-radius: 6px; overflow: hidden; margin: 8px 0; }
    .dash-device-seg { display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 0.55rem; color: #fff; }

    /* ── DASHBOARD ADMIN : FORCÉ EN THÈME CLAIR (lecture longue, peu importe le thème global) ── */
    #panel-dashboard .panel {
      background: #ffffff !important;
      color: #1a2840 !important;
      max-width: 720px; max-height: 90vh; width: 92vw;
    }
    #panel-dashboard .panel h2,
    #panel-dashboard .panel h3,
    #panel-dashboard .panel h4 { color: #0c1a2e !important; }
    #panel-dashboard .panel-close { color: #5a6b85 !important; }
    #panel-dashboard .dash-stat { background: #f8fafd !important; border-color: #e2e8f0 !important; }
    #panel-dashboard .dash-stat-value { color: #4f8ef7 !important; }
    #panel-dashboard .dash-stat-label { color: #5a6b85 !important; }
    #panel-dashboard .dash-map-name { color: #1a2840 !important; }
    #panel-dashboard .dash-map-bar { background: #e2e8f0 !important; }
    #panel-dashboard .dash-map-count { color: #5a6b85 !important; }
    #panel-dashboard .dash-map-row { border-bottom-color: #e2e8f0 !important; }
    #panel-dashboard .console-tabs { border-bottom-color: #e2e8f0 !important; }
    #panel-dashboard .console-tab { color: #5a6b85 !important; }
    #panel-dashboard .console-tab.active { color: #4f8ef7 !important; border-bottom-color: #4f8ef7 !important; }
    #panel-dashboard a { color: #4f8ef7 !important; }
    #panel-dashboard p, #panel-dashboard li, #panel-dashboard div { color: inherit; }
    #panel-dashboard hr { border-color: #e2e8f0 !important; }

    /* ── SCROLL TO TOP ──
       Côté GAUCHE : la colonne bas-droite est déjà prise par le FAB apps
       mobile (56px) + le drapeau geo-flag — sinon les boutons s'empilent. */
    .scroll-top {
      position: fixed; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); left: 19px; z-index: 90;
      width: 42px; height: 42px; border-radius: 50%;
      background: var(--accent); border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 12px var(--shadow);
      opacity: 0; visibility: hidden; pointer-events: none;
      transform: translateY(12px) scale(0.85);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
      -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    }
    .scroll-top.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .scroll-top.visible:hover { transform: scale(1.1); }
    .scroll-top.visible:active { transform: scale(0.92); }
    .scroll-top svg { width: 18px; height: 18px; color: #fff; }
    @media (max-width: 768px) {
      .scroll-top {
        width: 46px; height: 46px; left: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
      }
      .scroll-top svg { width: 20px; height: 20px; }
    }

    /* ── CONSOLE TABS ── */
    .console-tabs {
      display: flex; gap: 0; margin-bottom: 14px;
      border-bottom: 1px solid var(--border); flex-shrink: 0;
      overflow-x: auto;
    }
    .ctab {
      padding: 8px 14px; background: none; border: none;
      color: var(--muted); cursor: pointer; font-family: 'DM Mono', monospace;
      font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase;
      border-bottom: 2px solid transparent; transition: all 0.15s;
      white-space: nowrap;
    }
    .ctab:hover { color: var(--text); }
    .ctab.active { color: var(--accent); border-bottom-color: var(--accent); }
    .ctab.admin-only::after {
      content: '👑'; margin-left: 4px; font-size: 0.6rem;
    }
    .perf-row, .err-row, .health-row, .activity-row {
      display: flex; align-items: center; gap: 10px;
      padding: 6px 0; font-size: 0.75rem;
      border-bottom: 1px solid rgba(255,255,255,.03);
      font-family: 'DM Mono', monospace;
    }
    .perf-row:last-child, .err-row:last-child, .health-row:last-child, .activity-row:last-child { border-bottom: none; }
    .perf-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 0.65rem; }
    .perf-ms { color: var(--muted); width: 60px; text-align: right; font-size: 0.65rem; }
    .perf-status { width: 40px; text-align: right; font-size: 0.65rem; }
    .perf-status.ok { color: var(--green); }
    .perf-status.warn { color: #f59e0b; }
    .perf-status.err { color: #ef4444; }
    .err-type { width: 70px; padding: 2px 6px; border-radius: 4px; font-size: 0.55rem; text-align: center; }
    .err-type.JS { background: rgba(239,68,68,.2); color: #ef4444; }
    .err-type.HTTP { background: rgba(245,158,11,.2); color: #f59e0b; }
    .err-type.Network { background: rgba(139,92,246,.2); color: #8b5cf6; }
    .err-type.Promise { background: rgba(236,72,153,.2); color: #ec4899; }
    .err-msg { flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 0.65rem; }
    .err-time, .activity-time, .health-ms { color: var(--muted); font-size: 0.55rem; min-width: 50px; text-align: right; }
    .health-name { flex: 1; color: var(--text); font-size: 0.7rem; }
    .health-dot { width: 10px; height: 10px; border-radius: 50%; }
    .health-dot.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
    .health-dot.err { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
    .health-dot.loading { background: #f59e0b; animation: pulse 1s infinite; }
    .activity-action { color: var(--accent); font-size: 0.65rem; min-width: 80px; }
    .activity-detail { flex: 1; color: var(--text); font-size: 0.65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pv-empty { text-align: center; color: var(--muted); padding: 20px; font-size: 0.8rem; font-style: italic; }
    .pv-store-row:hover { background: rgba(79,142,247,.08) !important; }

    /* ── PRIVACY CONSOLE ── */
    .pv-section {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 14px; margin-bottom: 12px;
    }
    .pv-section-title {
      font-family: 'DM Mono', monospace; font-size: 0.62rem;
      color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
      margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
    }
    .pv-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 7px 0; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,.03);
    }
    .pv-row:last-child { border-bottom: none; }
    .pv-label { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.68rem; }
    .pv-value { color: var(--text); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
    .pv-value.good { color: var(--green); font-family: 'DM Mono', monospace; font-size: 0.7rem; }
    .pv-value.bad { color: #ef4444; font-family: 'DM Mono', monospace; font-size: 0.7rem; }
    .pv-value.neutral { font-family: 'DM Mono', monospace; font-size: 0.7rem; }
    .pv-hint {
      font-size: 0.7rem; color: var(--muted); margin-top: 8px;
      padding: 8px 10px; background: rgba(255,255,255,.02);
      border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0;
      line-height: 1.5;
    }
    .pv-action-btn {
      background: var(--accent); border: none; color: var(--accent-text);
      padding: 6px 14px; border-radius: 6px; font-family: 'DM Mono', monospace;
      font-size: 0.65rem; cursor: pointer; transition: opacity 0.2s;
    }
    .pv-action-btn:hover { opacity: 0.85; }
    .pv-action-btn.danger { background: #ef4444; color: #fff; }
    .pv-badge {
      display: inline-block; padding: 2px 8px; border-radius: 4px;
      font-family: 'DM Mono', monospace; font-size: 0.55rem;
      background: var(--green-dim); color: var(--green);
    }
    .pv-badge.warning { background: rgba(245,158,11,.2); color: #f59e0b; }
    .pv-list-item {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--text); padding: 4px 0;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .pv-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .pv-stat-mini {
      background: rgba(255,255,255,.03); border-radius: 6px;
      padding: 8px; text-align: center;
    }
    .pv-stat-mini-val { font-size: 1.2rem; font-weight: 300; color: var(--accent); }
    .pv-stat-mini-lbl { font-family: 'DM Mono', monospace; font-size: 0.5rem; color: var(--muted); letter-spacing: 0.05em; }

    /* ── FAVORITES ── */
    .fav-item {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 10px 0; border-bottom: 1px solid var(--border);
    }
    .fav-item:last-child { border-bottom: none; }
    .fav-info { flex: 1; min-width: 0; }
    .fav-title {
      font-size: 0.82rem; color: var(--accent);
      text-decoration: none; display: block;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .fav-title:hover { text-decoration: underline; }
    .fav-domain {
      font-family: 'DM Mono', monospace; font-size: 0.6rem;
      color: var(--muted); margin-top: 2px;
    }
    .fav-remove {
      background: none; border: none; color: var(--muted);
      cursor: pointer; font-size: 0.9rem; padding: 2px 6px; flex-shrink: 0;
    }
    .fav-remove:hover { color: #ef4444; }

    /* ── RESULT ACTION BUTTONS ── */
    .result-actions {
      display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px;
    }
    .result-action-btn {
      display: inline-flex; align-items: center; gap: 4px;
      background: none; border: 1px solid var(--border); border-radius: 14px;
      color: var(--muted); font-family: 'Outfit', sans-serif;
      font-size: 0.68rem; padding: 3px 10px; cursor: pointer;
      transition: all 0.15s;
    }
    .result-action-btn:hover { color: var(--accent); border-color: var(--accent); }
    .result-action-btn svg { width: 11px; height: 11px; }
    .result-action-btn.copied { color: var(--green); border-color: var(--green); }
    .result-share-wrap { position: relative; display: inline-block; }
    .result-card { position: relative; z-index: 1; }
    .result-card:has(.result-share-menu.open),
    .news-card:has(.result-share-menu.open) { z-index: 500; }
    .result-share-menu {
      display: none; position: absolute; bottom: calc(100% + 4px); left: 0;
      background: #ffffff !important; border: 1px solid var(--glass-border);
      border-radius: 10px; min-width: 220px; padding: 6px 0;
      box-shadow: 0 12px 30px rgba(0,0,0,0.18); z-index: 1000;
    }
    .theme-nuit .result-share-menu, .theme-crepuscule .result-share-menu, .theme-galaxie .result-share-menu,
    [data-boreal="nuit"] .result-share-menu, [data-boreal="crepuscule"] .result-share-menu, [data-boreal="galaxie"] .result-share-menu {
      background: #1a2830 !important;
    }
    .result-share-menu.open { display: block; animation: fadeIn 0.15s ease; }
    .result-share-opt {
      display: block; padding: 9px 14px; font-size: 0.78rem;
      color: var(--text); text-decoration: none;
      transition: background 0.1s;
    }
    .result-share-opt:hover { background: var(--accent-dim); }

    /* ── SHORTCUTS HELP ── */
    .shortcut-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.8rem;
    }
    .shortcut-row:last-child { border-bottom: none; }
    .shortcut-key {
      font-family: 'DM Mono', monospace; font-size: 0.68rem;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 4px; padding: 2px 8px; color: var(--accent);
    }

    /* ── SHORTCUTS TOGGLE BUTTON ── */
    .shortcuts-btn {
      position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 24px; z-index: 90;
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--surface); border: 1px solid var(--border);
      color: var(--muted); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-family: 'DM Mono', monospace; font-size: 0.75rem; font-weight: 600;
      transition: color 0.15s;
    }
    .shortcuts-btn:hover { color: var(--accent); border-color: var(--accent); }

    /* ── HOME WEATHER ── */
    .home-weather {
      width: 100%; max-width: 620px; margin-bottom: 16px;
      display: none; /* shown by JS */
    }
    .wrapper.home-mode .home-weather { display: block; }
    .wrapper.results-mode .home-weather { display: none; }
    .hw-card {
      display: flex; align-items: center; gap: 14px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 14px 18px;
      font-size: 0.82rem; color: var(--text);
    }
    .hw-icon { font-size: 2rem; line-height: 1; }
    .hw-temp { font-size: 1.5rem; font-weight: 300; }
    .hw-city { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--muted); }
    .hw-desc { font-size: 0.78rem; color: var(--muted); }
    .hw-details { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--muted); margin-left: auto; text-align: right; line-height: 1.6; }

    /* ── MODE LECTURE ── */
    .reader-overlay {
      display: none; position: fixed; inset: 0; z-index: 250;
      background: var(--bg); overflow-y: auto; padding: 0;
    }
    .reader-overlay.open { display: block; }
    .reader-bar {
      position: sticky; top: 0; z-index: 2;
      display: flex; align-items: center; gap: 12px;
      padding: 12px 20px; background: var(--surface);
      border-bottom: 1px solid var(--border);
    }
    .reader-close {
      background: none; border: none; color: var(--muted);
      font-size: 1.3rem; cursor: pointer; padding: 4px 8px;
    }
    .reader-close:hover { color: var(--text); }
    .reader-domain {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--accent); flex: 1; overflow: hidden;
      text-overflow: ellipsis; white-space: nowrap;
    }
    .reader-body {
      max-width: 680px; margin: 32px auto; padding: 0 20px 60px;
      font-size: 1.05rem; line-height: 1.8; color: var(--text);
    }
    .reader-body h1 {
      font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
      font-weight: 400; margin-bottom: 8px;
    }
    .reader-body .reader-source {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--muted); margin-bottom: 24px;
    }
    .reader-body .reader-text { line-height: 1.9; }
    .reader-body .reader-text p { margin-bottom: 16px; }
    .reader-loading { text-align: center; padding: 60px 0; color: var(--muted); }

    /* ── READ BTN on results ── */
    .result-read-btn {
      display: inline-flex; align-items: center; gap: 4px;
      background: none; border: 1px solid var(--border); border-radius: 4px;
      color: var(--muted); font-family: 'DM Mono', monospace;
      font-size: 0.58rem; padding: 2px 7px; cursor: pointer;
      margin-left: 8px; transition: all 0.15s;
    }
    .result-read-btn:hover { color: var(--accent); border-color: var(--accent); }
    .result-read-btn svg { width: 11px; height: 11px; }

    /* ── OFFLINE GAME ── */
    #offline-game {
      position: fixed; inset: 0; z-index: 9000;
      background: var(--bg);
      display: flex; align-items: center; justify-content: center;
      flex-direction: column;
    }
    /* Quand le jeu hors-ligne est actif, rien de la page ne doit flotter par-dessus
       (la search-wrap a z-index 500 et passait au-dessus de l'ancien z-index 300) */
    body.game-active .wrapper { visibility: hidden; }
    .offline-game-wrap { text-align: center; }
    .offline-msg {
      font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
      color: var(--text); margin-bottom: 16px;
    }
    #game-canvas {
      border: 1px solid var(--border); border-radius: 8px;
      background: var(--surface); max-width: 95vw; cursor: pointer;
    }
    .offline-hint {
      font-family: 'DM Mono', monospace; font-size: 0.65rem;
      color: var(--muted); margin-top: 10px; letter-spacing: 0.05em;
    }
    .offline-score {
      font-family: 'DM Mono', monospace; font-size: 0.75rem;
      color: var(--accent); margin-top: 8px;
    }

    /* ── MOBILE ── */
    @media (max-width: 768px) {
      /* clamp : plancher fixe en px → la barre ne remonte plus dans les boutons
         du haut quand le clavier s'ouvre (le vh rétrécit dans l'app) */
      .wrapper.home-mode { padding-top: 14vh; padding-top: clamp(96px, 14vh, 180px); }
      /* Pendant la frappe : on masque les boutons flottants (avatar, apps, FAB)
         pour que rien ne se juxtapose à la barre ni aux suggestions */
      body.kb-open .top-controls,
      body.kb-open .scroll-top,
      body.kb-open .svc-apps-btn,
      body.kb-open .mobile-apps-fab { opacity: 0; pointer-events: none; transition: opacity 0.15s; }
      .search-wrap { max-width: 100%; }
      .search-box { min-height: 52px; padding: 0 8px 0 16px; }
      #search-input { font-size: 1rem; }
      /* Résultats principaux EN PREMIER sur mobile, fiches (Wikipedia, business, sports) APRÈS */
      .results-layout { flex-direction: column; gap: 18px; }
      .results-sidebar {
        width: 100%;
        position: static;         /* plus de sticky sur mobile */
        max-height: none;
        order: 2;                 /* force après les résultats */
        margin-top: 10px;
      }
      .results-main { order: 1; }
      .topbar {
        position: sticky;
        top: env(safe-area-inset-top, 0px);
        z-index: 50;
        padding: 10px 12px;
        /* Pas de RECTANGLE posé sur le ciel (vu sur téléphone, 2026-08-02) :
           voile translucide flouté au lieu d'une boîte opaque, sans bordure
           ni ombre — le logo flotte, la lisibilité en défilement vient du
           blur. Repli : sans color-mix, le fond plein déclaré juste avant. */
        background: var(--bg);
        background: color-mix(in srgb, var(--bg) 55%, transparent);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        border-bottom: none;
        box-shadow: none;
        margin-left: -16px; margin-right: -16px;
        padding-left: 16px; padding-right: 16px;
        /* Réserve la place de la rangée haut-droite (pilule T/thème/avatar
           + lanceur grille 38px) : hauteur ≥ rangée (10px top + 38px) et
           padding-right pour que le logo ne passe pas dessous */
        min-height: 58px; box-sizing: border-box;
        padding-right: 184px;
      }
      /* En mode résultats, la search bar respire sous le bandeau (elle venait
         se coller à son bord, vu sur téléphone). */
      .wrapper.results-mode .search-wrap { margin-top: 18px; }
      .top-controls {
        /* absolute (pas fixed) : la pilule défile avec la page au lieu de
           flotter par-dessus les résultats et les puces de recherche.
           Pas de cadre : chaque bouton a déjà sa propre surface — un fond
           + bordure autour du groupe faisait une boîte visible. */
        position: absolute;
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 56px; /* laisse le coin au lanceur d'apps (grille) */
        gap: 6px;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0; border-radius: 0;
        max-width: calc(100vw - 66px);
      }
      /* Tailles fixes en px (pas rem) → ne grossissent pas avec font-size toggle */
      .user-avatar { width: 30px !important; height: 30px !important; flex-shrink: 0; }
      .theme-toggle, .font-size-toggle { width: 30px !important; height: 30px !important; flex-shrink: 0; }
      /* Déconnecté : « CONNEXION » en toutes lettres rend la pilule trop large —
         à 360px elle montait sur le nom L'Aube Étoilée (mesuré : 44px de
         chevauchement). Icône personne compacte, l'aria-label garde le sens. */
      .auth-btn {
        width: 30px; height: 30px; padding: 0;
        font-size: 0; letter-spacing: 0; flex-shrink: 0;
        text-align: center; border-radius: 8px;
      }
      /* Glyphe plutôt que masque SVG : le JS pose un display inline qui casse
         le centrage flex, et l'emoji rend partout (le site en use déjà : 📍) */
      .auth-btn::before {
        content: "👤";
        font-size: 15px; line-height: 28px;
      }
      /* Boutons dans la barre de recherche : forcés en px (touch target ≥40px) */
      .search-btn { width: 42px !important; height: 42px !important; flex: 0 0 42px !important; }
      .search-btn svg { width: 17px !important; height: 17px !important; }
      .camera-btn, .mic-btn { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; padding: 0 !important; }
      .camera-btn svg, .mic-btn svg { width: 19px !important; height: 19px !important; }
      .clear-btn { font-size: 1.1rem !important; padding: 4px 6px !important; flex: 0 0 auto; }
      /* La taille du texte dans l'input grossit (c'est voulu pour l'accessibilité)
         mais la box ne doit pas déborder horizontalement */
      .search-box { padding: 0 6px 0 18px; gap: 4px; }
      /* Min-height de la search-box conservé même quand le font grossit (évite que la box explose en hauteur) */
      .search-box { min-height: 56px; max-height: 64px; }
      #search-input { padding: 12px 0 !important; }
      .font-size-toggle::after {
        bottom: -3px; right: -2px;
        font-size: 9px !important;
        padding: 1px 3px;
      }
      .services-bar { display: none; } /* Caché sur mobile */
      /* Lanceur « toutes les applications » : conservé sur mobile, mais plus
         collé à top:0 (il passait SOUS la barre de statut du téléphone).
         Bouton rond dans la rangée du haut, à droite de la pilule, qui
         défile avec la page comme elle. */
      .svc-apps-btn {
        position: absolute;
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 10px;
        width: 38px; height: 38px;
        border-radius: 12px;
        border: 1px solid var(--border);
        border-left: 1px solid var(--border);
        background: var(--surface);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        z-index: 60;
      }
      /* Le panneau qu'il ouvre démarre sous la rangée du haut, zone sûre incluse.
         max-height recalculée : la base (100vh - 56px) déborde de 6px avec ce top,
         et 100dvh suit la barre d'adresse mobile qui se replie */
      .apps-panel {
        top: calc(54px + env(safe-area-inset-top, 0px));
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
      }
      /* Raccourcis clavier inutiles au tactile → libère le coin bas-gauche
         pour le bouton remonter. (Règle placée APRÈS la base .shortcuts-btn
         { display:flex } — même spécificité, l'ordre décide.) */
      .shortcuts-btn { display: none; }
      .mobile-apps-btn {
        display: none !important;
        width: 40px; height: 40px;
        background: var(--accent); color: var(--accent-text);
        border: none; border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      }
      .mobile-apps-btn svg { width: 20px; height: 20px; }
      body {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
      }
      /* HOME MOBILE : centrage vertical du contenu (élimine le grand vide au milieu) */
      .wrapper.home-mode {
        padding-top: 70px;
        min-height: calc(100vh - 160px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch; /* stretch = enfants prennent toute la largeur (sinon search bar shrink-to-fit) */
        text-align: center;
        gap: 12px;
      }
      /* Force la largeur des éléments interactifs à 100% pour qu'ils ne shrinkent pas */
      .wrapper.home-mode .search-wrap,
      .wrapper.home-mode .home-weather,
      .wrapper.home-mode .hero-tagline {
        width: 100%; box-sizing: border-box;
      }
      .wrapper.home-mode .logo-block { margin-bottom: 12px; }
      /* Widget météo compact : on cache les détails (humidité/vent/ressenti) */
      .home-weather .hw-details { display: none; }
      .home-weather { max-width: 92%; margin-bottom: 8px; }
      .hw-card { padding: 9px 14px; gap: 10px; }
      .hw-temp { font-size: 1.2rem; }
      .hw-icon { font-size: 1.5rem; }
      /* Typo home compactée */
      .logo-title { font-size: 1.6rem; }
      .logo-sub { font-size: 0.6rem; letter-spacing: 0.3em; }
      .home-greeting { font-size: 0.7rem; margin-top: 4px; }
      .hero-tagline { margin: 8px auto 4px; }
      .hero-title { font-size: 0.95rem; line-height: 1.3; }
      .hero-sub { font-size: 0.7rem; line-height: 1.4; }
      .filters { gap: 4px; margin-top: 12px; margin-bottom: 16px; }
      .filter-btn { padding: 4px 10px; font-size: 0.62rem; }
      /* Footer plus compact pour ne pas être loin du contenu */
      footer { padding: 14px 16px 22px; }
    }
    @media (min-width: 769px) {
      .mobile-apps-btn { display: none !important; }
    }
    @media (max-width: 480px) {
      .services-bar { display: none; }
    }

    /* Mobile apps button */
    .mobile-apps-btn {
      display: none; align-items: center; justify-content: center;
      width: 32px; height: 32px; background: none; border: 1px solid var(--border);
      border-radius: 8px; cursor: pointer; color: var(--text); font-size: 0.8rem;
      transition: all 0.15s;
    }
    .mobile-apps-btn:hover { border-color: var(--accent); }

    /* FAB fallback mobile : bouton rond flottant en bas à droite si la barre du haut est cachée */
    .mobile-apps-fab {
      display: none;
      position: fixed;
      bottom: calc(20px + env(safe-area-inset-bottom, 0px));
      right: 16px;
      width: 56px; height: 56px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--accent-text);
      border: none;
      box-shadow: 0 4px 16px rgba(0,0,0,0.25);
      cursor: pointer;
      z-index: 58;
      align-items: center; justify-content: center;
      transition: transform 0.1s;
    }
    .mobile-apps-fab:active { transform: scale(0.92); }
    .mobile-apps-fab svg { width: 24px; height: 24px; }
    /* FAB activé sur mobile : seul accès aux apps Aube quand la barre du haut est cachée */
    @media (max-width: 768px) {
      .mobile-apps-fab { display: flex; }
    }
    /* Drapeau du pays détecté — coin bas-droite (au-dessus du FAB apps sur mobile) */
    .geo-flag {
      display: none;
      position: fixed;
      bottom: calc(18px + env(safe-area-inset-bottom, 0px));
      right: 16px;
      z-index: 57;
      font-size: 1.25rem; line-height: 1;
      padding: 5px 9px;
      border-radius: 10px;
      background: var(--surface, #fff);
      border: 1px solid var(--border, #e2e8f0);
      box-shadow: 0 2px 10px rgba(0,0,0,0.14);
      cursor: default; user-select: none;
    }
    body.kb-open .geo-flag { opacity: 0; pointer-events: none; }
    @media (max-width: 768px) {
      /* Mobile : le drapeau est un DOUBLON (la ville est déjà écrite dans la
         barre « Pertinence · Montréal, Canada ») et il flottait PAR-DESSUS le
         texte des résultats (vu dans AubeNavigator mobile, 2026-08-02).
         !important : setGeoFlag() pose un display inline. */
      .geo-flag { display: none !important; }
      /* La fin des résultats doit pouvoir défiler AU-DESSUS du FAB apps :
         sans cette marge, les dernières lignes restent sous la bulle. */
      .wrapper.results-mode { padding-bottom: 110px; }
    }

    /* ── MOBILE APPS MODAL (toutes les Aubes en grille) ── */
    .mobile-apps-modal {
      display: none; position: fixed; inset: 0; z-index: 9999;
    }
    .mobile-apps-modal.open { display: block; }
    .mobile-apps-backdrop {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      animation: fadeIn 0.2s;
    }
    .mobile-apps-drawer {
      position: absolute; bottom: 0; left: 0; right: 0;
      max-height: 85vh; overflow-y: auto;
      background: var(--bg);
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      padding: 0;
      animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .mobile-apps-header {
      position: sticky; top: 0;
      display: flex; justify-content: space-between; align-items: center;
      padding: 18px 20px 12px;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
    }
    .mobile-apps-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem; color: var(--text);
    }
    .mobile-apps-close {
      background: transparent; border: none;
      font-size: 1.8rem; line-height: 1;
      color: var(--muted); cursor: pointer;
      width: 40px; height: 40px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
    }
    .mobile-apps-close:hover { background: var(--surface); color: var(--text); }
    .mobile-apps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      padding: 16px 14px 24px;
    }
    @media (max-width: 360px) { .mobile-apps-grid { grid-template-columns: repeat(2, 1fr); } }
    .mobile-app-tile {
      display: flex; flex-direction: column; align-items: center;
      gap: 6px; padding: 14px 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      text-decoration: none;
      transition: transform 0.1s, border-color 0.15s;
    }
    .mobile-app-tile:hover, .mobile-app-tile:active {
      transform: scale(0.96);
      border-color: var(--accent);
    }
    .mobile-app-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem; font-weight: 600;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .mobile-app-name {
      font-family: 'Outfit', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--text);
    }
    .mobile-app-desc {
      font-family: 'DM Mono', monospace;
      font-size: 0.58rem;
      color: var(--muted);
      text-align: center;
    }
  