/* ============================================================
   Noliae Search — direction Pulse
   Palette : Ink #111111 · Carbon #2A2A2A · Pulse #FF4D2E
             Plâtre #EDEDEA · Paper #FAFAF7
   Typo    : JetBrains Mono (display) · DM Sans (UI/body)
   ============================================================ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/static/fonts/dm-sans-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-var.woff2') format('woff2-variations');
}

:root {
  --ink: #111111;
  --carbon: #2A2A2A;
  --pulse: #FF4D2E;
  --pulse-soft: rgba(255, 77, 46, 0.10);
  --pulse-glow: rgba(255, 77, 46, 0.22);
  --plaster: #EDEDEA;
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --muted: #6B6B6B;
  --visited: #6E4FB4;
  --border: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.14);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 4px 16px rgba(17, 17, 17, 0.06);
  --shadow-pulse: 0 6px 24px var(--pulse-glow);
  --radius: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --ink: #FAFAF7;
  --carbon: #EDEDEA;
  --plaster: #2A2A2A;
  --paper: #0E0E0E;
  --surface: #1A1A1A;
  --muted: #9A9A96;
  --visited: #C3B0E8;
  --border: rgba(250, 250, 247, 0.08);
  --border-strong: rgba(250, 250, 247, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #FAFAF7;
    --carbon: #EDEDEA;
    --plaster: #2A2A2A;
    --paper: #0E0E0E;
    --surface: #1A1A1A;
    --muted: #9A9A96;
    --visited: #C3B0E8;
    --border: rgba(250, 250, 247, 0.08);
    --border-strong: rgba(250, 250, 247, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: var(--ink); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--pulse); }

::selection { background: var(--pulse); color: var(--paper); }

/* Focus visible — accessible et raccord avec Pulse */
:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Header (page résultats)
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.logo-link img { height: 28px; width: auto; }

/* ─── Mini équaliseur dans le header (animé, visible light + dark) ─── */
.logo-eq {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  margin-right: 2px;
}
.logo-eq i {
  display: block;
  width: 2.5px;
  height: 100%;
  border-radius: 1.5px;
  background: var(--ink);  /* s'inverse en dark via --ink */
  animation: logoEq 1.3s ease-in-out infinite;
  transform-origin: center;
}
.logo-eq i:nth-child(2) { background: var(--pulse); animation-delay: -0.55s; }
.logo-eq i:nth-child(3) { background: var(--pulse); animation-delay: -0.4s; }
.logo-eq i:nth-child(4) { background: var(--pulse); animation-delay: -0.25s; }
.logo-eq i:nth-child(1) { animation-delay: -0.7s; }
.logo-eq i:nth-child(5) { animation-delay: -0.1s; }
@keyframes logoEq {
  0%, 100% { transform: scaleY(0.3); opacity: 0.7; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-eq i { animation: none; transform: scaleY(0.7); }
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--pulse);
  border-radius: 50%;
  margin-left: 5px;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--pulse-glow);
}
.brand-dot.brand-dot--lg { width: 12px; height: 12px; margin-left: 8px; }

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--pulse-glow); }
  50%      { transform: scale(1.4); box-shadow: 0 0 0 6px transparent; }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.icon-btn:hover {
  border-color: var(--pulse);
  color: var(--pulse);
  transform: translateY(-1px);
}

/* ============================================================
   Home
   ============================================================ */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Fond unique paper (couvre tout le viewport, light et dark) — pas de gradient */
body.home { background: var(--paper); }
.home::before { content: none; } /* on retire l'aurora qui faisait des bandes */

/* Brand hero : équaliseur + wordmark alignés horizontalement, centrés, tailles cohérentes */
.brand-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-hero__row {
  display: inline-flex;
  align-items: center;     /* alignement vertical eq + wordmark */
  justify-content: center;
  gap: 0.4em;              /* gap proportionnel à font-size */
  line-height: 1;
}

/* ─── Équaliseur animé 5 barres (style charte Noliae) ─── */
/* Eq dimensionné en EM : hauteur = ~75% de la cap-height du wordmark, gap proportionnel */
.brand-eq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;             /* gap entre barres relatif à la font */
  height: 0.78em;          /* match approx cap-height du wordmark */
  margin: 0;
  filter: drop-shadow(0 6px 30px var(--pulse-glow));
  /* font-size hérite du parent .brand-hero__row qui suit .brand-wordmark */
  font-size: clamp(3rem, 7vw, 4.5rem);
}
.brand-eq .bar {
  width: 0.14em !important;
  border-radius: 0.07em !important;
  height: 100% !important;
}
@media (max-width: 600px) {
  .brand-wordmark { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .brand-tagline { font-size: 0.95rem !important; }
  .brand-eq { font-size: clamp(2rem, 9vw, 2.6rem); }
}
.brand-eq .bar {
  display: block;
  width: 10px;
  height: 100%;
  border-radius: 5px;
  background: var(--pulse);
  transform-origin: center;
  animation: brandEq 1.4s ease-in-out infinite;
  will-change: transform, opacity;
}
.brand-eq .bar-1 { background: var(--ink); animation-delay: -0.7s; }
.brand-eq .bar-2 { animation-delay: -0.55s; }
.brand-eq .bar-3 { animation-delay: -0.4s; }
.brand-eq .bar-4 { animation-delay: -0.25s; }
.brand-eq .bar-5 { background: var(--ink); animation-delay: -0.1s; }
@keyframes brandEq {
  0%, 100% { transform: scaleY(0.28); opacity: 0.55; }
  50%      { transform: scaleY(1);     opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-eq .bar { animation: none; transform: scaleY(0.7); }
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: -0.06em;
  margin: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  animation: brandFadeUp 0.6s ease-out both;
  animation-delay: 0.1s;
}
.brand-tagline {
  color: var(--muted);
  margin: 1rem 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  animation: brandFadeUp 0.7s ease-out both;
  animation-delay: 0.25s;
}
@keyframes brandFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Aurora animée en arrière-plan ─── */
.home-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: auroraFloat 18s ease-in-out infinite;
}
.home-aurora, .aurora-blob, .aurora-blob--1, .aurora-blob--2, .aurora-blob--3 { display: none !important; }
@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-50px, 30px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
}

/* ============================================================
   Search box
   ============================================================ */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
}
.search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-form:hover { border-color: var(--ink); }
.search-form:focus-within {
  border-color: var(--pulse);
  box-shadow: var(--shadow-pulse);
  transform: translateY(-1px);
}
.search-input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-btn {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease);
}
.search-btn:hover { background: var(--pulse); }
.search-btn svg { transition: transform 0.2s var(--ease); }
.search-btn:hover svg { transform: scale(1.15); }

/* Header version : compact */
.search-form--inline {
  max-width: 620px;
  margin-left: 1rem;
}
.search-form--inline .search-input { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.search-form--inline .search-btn { padding: 0 1.1rem; }

/* Autocomplete dropdown */
.suggest-list {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0; padding: 0.4rem 0;
  z-index: 60;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.suggest-list.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.suggest-list li {
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--carbon);
  transition: background 0.1s var(--ease);
}
.suggest-list li:hover,
.suggest-list li[aria-selected="true"] {
  background: var(--plaster);
  color: var(--ink);
}
.suggest-list li svg { color: var(--muted); flex-shrink: 0; }

/* ============================================================
   Promises grid (home)
   ============================================================ */
.promises, .promises-row {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 720px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.promises li, .promises-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--carbon);
  backdrop-filter: blur(8px);
  transition: all 0.15s var(--ease);
  animation: brandFadeUp 0.6s ease-out both;
}
.promises-row li:nth-child(1) { animation-delay: 0.4s; }
.promises-row li:nth-child(2) { animation-delay: 0.5s; }
.promises-row li:nth-child(3) { animation-delay: 0.6s; }
.promises-row li:nth-child(4) { animation-delay: 0.7s; }
.promises li:hover, .promises-row li:hover {
  border-color: var(--pulse);
  background: var(--pulse-soft);
  transform: translateY(-2px);
  color: var(--ink);
}
.promises svg, .promises-row svg {
  width: 14px; height: 14px;
  color: var(--pulse);
  flex-shrink: 0;
}

.home-hint {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.kbd {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  padding: 2px 6px;
  background: var(--plaster);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ============================================================
   Results
   ============================================================ */
.results-layout {
  display: grid;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}
.results-layout--web {
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 320px);
}
.results-layout--images {
  grid-template-columns: 220px minmax(0, 1fr);
}

/* ============================================================
   Sidebar gauche : tabs + filtres
   ============================================================ */
.filters {
  position: sticky;
  top: 5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--carbon);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.tab:hover { background: var(--plaster); color: var(--ink); }
.tab--active {
  background: var(--ink);
  color: var(--paper);
}
.tab--active:hover { background: var(--ink); color: var(--paper); }
.tab svg { flex-shrink: 0; opacity: 0.8; }

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.filter-group fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.filter-group legend {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.filter-radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--carbon);
  transition: background 0.1s var(--ease), color 0.1s var(--ease);
}
.filter-radio:hover { background: var(--plaster); color: var(--ink); }
.filter-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  margin: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s var(--ease);
}
.filter-radio input:checked {
  border-color: var(--pulse);
}
.filter-radio input:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--pulse);
  border-radius: 50%;
}
.filter-radio:has(input:checked) { color: var(--ink); font-weight: 500; }
.filter-apply {
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
}
.results-main { min-width: 0; }
.results-meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}
.results-meta strong { color: var(--ink); font-weight: 500; }

.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.results-list { list-style: none; padding: 0; margin: 0; }
.result {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.result:last-child { border-bottom: 0; }

.result-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.result-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--plaster);
  object-fit: cover;
}
.result-host {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--carbon);
  letter-spacing: 0.01em;
}
.result-host .path {
  color: var(--muted);
  margin-left: 0.25rem;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.result-title a { color: var(--pulse); }
.result-title a:visited { color: var(--visited); }
.result-title a:hover { text-decoration: underline; text-underline-offset: 3px; }


.result-snippet {
  color: var(--carbon);
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-engines { margin: 0; display: flex; gap: 0.3rem; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--plaster);
  color: var(--carbon);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.15s var(--ease);
}
.chip:hover { border-color: var(--pulse); color: var(--pulse); }
.chip--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

/* ─── Sitelinks Google-style — autres pages du même domaine ─── */
.result-sitelinks {
  list-style: none;
  margin: 0.5rem 0 0.7rem;
  padding: 0 0 0 0.85rem;
  border-left: 2px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}
.result-sitelink { min-width: 0; }
.result-sitelink__title {
  display: block;
  font-size: 0.85rem;
  color: var(--pulse);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-sitelink__title:visited { color: var(--visited); }
.result-sitelink__title:hover { text-decoration: underline; text-underline-offset: 2px; }
.result-sitelink__snippet {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 1px 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .result-sitelinks { grid-template-columns: 1fr; }
}

/* ============================================================
   Sidebar (infobox Wikipedia)
   ============================================================ */
.sidebar { min-width: 0; }
.infobox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 5rem;
  box-shadow: var(--shadow-sm);
}
.infobox-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--plaster);
}
.infobox-body { padding: 1.25rem 1.25rem 1rem; }
.infobox-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.infobox-extract {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--carbon);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.infobox-source {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.infobox-source a { color: var(--pulse); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 3rem 0 0;
  list-style: none;
  padding: 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.15s var(--ease);
}
.pagination a:hover { border-color: var(--pulse); color: var(--pulse); }
.pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pagination .gap { border: 0; background: transparent; color: var(--muted); min-width: 24px; }

/* ============================================================
   About page
   ============================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.prose h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}
.prose p { font-size: 1.02rem; line-height: 1.65; color: var(--carbon); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; color: var(--carbon); }
.prose code {
  font-family: var(--font-display);
  font-size: 0.88em;
  background: var(--plaster);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.bangs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
  list-style: none;
  padding: 0;
}
.bangs-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bangs-grid code {
  font-family: var(--font-display);
  color: var(--pulse);
  background: transparent;
  padding: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: auto;
  background: var(--paper);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer .dot { color: var(--border-strong); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--pulse); }

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Masonry (images grid)
   ============================================================ */
/* Masonry images : colonnes adaptatives à la largeur dispo (pleine page) */
.masonry {
  column-count: 6;
  column-gap: 0.6rem;
}
@media (max-width: 1900px) { .masonry { column-count: 5; } }
@media (max-width: 1500px) { .masonry { column-count: 4; } }
@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 720px)  { .masonry { column-count: 2; } }
@media (max-width: 400px)  { .masonry { column-count: 1; } }

.tile {
  break-inside: avoid;
  margin: 0 0 0.6rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plaster);
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pulse);
  border-color: var(--pulse);
}
.tile img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--plaster);
}
.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.7rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.tile:hover .tile-caption { opacity: 1; }
.tile-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-source {
  font-family: var(--font-display);
  font-size: 0.68rem;
  opacity: 0.75;
  color: var(--pulse);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lightbox-in 0.18s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-figure {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #1a1a1a;
}
.lightbox-caption {
  color: #f5f5f0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 800px;
}
.lightbox-title { font-size: 0.92rem; opacity: 0.95; }
.lightbox-source {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--pulse);
}
.lightbox-source:hover { color: #fff; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--pulse);
  border-color: var(--pulse);
  transform: scale(1.05);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

body.lightbox-open { overflow: hidden; }

/* ============================================================
   Responsive (override)
   ============================================================ */
/* ─────────────────────────────────────────────────────────────────────
   Filters shell — responsive (desktop = aside ouverte, mobile = dropdown)
   ────────────────────────────────────────────────────────────────────── */
.filters-shell { min-width: 0; }
/* Desktop : summary mobile masqué, aside.filters apparaît comme avant */
.filters-shell__summary { display: none; }
.filters-shell > .filters { display: flex; flex-direction: column; }

@media (max-width: 1080px) {
  .results-layout--web,
  .results-layout--images { grid-template-columns: 1fr !important; padding: 1rem; }

  /* Le <details> devient un toggle compact en haut des résultats */
  .filters-shell {
    margin: 0 0 1rem;
    border-radius: 12px;
    border: 1px solid var(--line, rgba(255,255,255,0.1));
    background: var(--surface, rgba(255,255,255,0.04));
    overflow: hidden;
  }
  .filters-shell__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: var(--ink-soft, rgba(255,255,255,0.92));
  }
  .filters-shell__summary::-webkit-details-marker { display: none; }
  .filters-shell__summary:hover { background: rgba(255,255,255,0.04); }
  .filters-shell__icon { display: inline-flex; opacity: 0.7; }
  .filters-shell__label { font-weight: 700; }
  .filters-shell__chip {
    font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 999px;
    background: var(--pulse-soft, rgba(255,77,46,0.15));
    color: var(--pulse, #FF4D2E);
  }
  .filters-shell__caret {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.5;
    transition: transform .15s ease;
  }
  .filters-shell[open] .filters-shell__caret { transform: rotate(180deg); }

  /* Quand ouvert : sidebar en colonne dans le panel */
  .filters-shell > .filters {
    padding: 6px 14px 14px;
    border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  }
  .filters-shell .tabs { flex-direction: row; gap: 0.5rem; margin-bottom: 0.5rem; }
  .filters-shell .filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  .filters-shell fieldset { margin: 0; padding: 0; border: 0; }
}

@media (max-width: 480px) {
  .filters-shell__chip:nth-of-type(2) { display: none; } /* enlève le chip "période" si écran ultra étroit */
  .filters-shell .filter-group { grid-template-columns: 1fr; } /* fieldsets empilés sur petits écrans */
  .infobox-thumb { height: 200px; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem; }
  .search-form--inline { width: 100%; margin-left: 0; order: 3; }
  .results-layout { padding: 1rem; }
  .brand-symbol { width: 160px; }
  .home-main { padding: 2rem 1rem 4rem; }
  .promises { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Noliae IA — Panel résumé en haut des résultats
   ============================================================ */
.ai-synthesis {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 18px 22px 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--pulse-soft) 100%);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--pulse);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  animation: aiFadeIn 0.4s ease-out;
}
@keyframes aiFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ai-synthesis__header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.ai-synthesis__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 5px 12px 5px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.3px;
}
.ai-synthesis__bars {
  display: inline-flex; align-items: center; gap: 2.5px; height: 14px;
}
.ai-synthesis__bars span {
  display: block; width: 2.5px; height: 100%; border-radius: 1.5px;
  background: var(--pulse); transform-origin: center;
  animation: aiBars 1.2s ease-in-out infinite;
}
.ai-synthesis__bars span:nth-child(1) { background: #fff; animation-delay: -0.6s; }
.ai-synthesis__bars span:nth-child(2) { animation-delay: -0.45s; }
.ai-synthesis__bars span:nth-child(3) { animation-delay: -0.3s; }
.ai-synthesis__bars span:nth-child(4) { animation-delay: -0.15s; }
.ai-synthesis__bars span:nth-child(5) { background: #fff; animation-delay: 0s; }
@keyframes aiBars {
  0%, 100% { transform: scaleY(0.3); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-synthesis__bars span { animation: none; transform: scaleY(0.7); }
}
.ai-synthesis__meta {
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.ai-synthesis__cached {
  color: var(--pulse); font-weight: 700;
}
.ai-synthesis__text {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 450;
}
.ai-synthesis__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* ============================================================
   POLISH v2 — Sidebar, tabs, AI panel header, results
   ============================================================ */

/* AI badge : couleurs HARDCODÉES (pas via --ink qui s'inverse en dark) */
.ai-synthesis__badge {
  background: #111111 !important;
  color: #ffffff !important;
  padding: 6px 14px 6px 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  white-space: nowrap !important;
}
/* Dark mode : on bascule sur Pulse plein (contraste différent du fond noir global) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ai-synthesis__badge {
    background: var(--pulse) !important;
    color: #ffffff !important;
  }
}
[data-theme="dark"] .ai-synthesis__badge {
  background: var(--pulse) !important;
  color: #ffffff !important;
}
/* En dark mode le fond du badge est orange → les bars internes (qui sont orange par défaut)
   doivent passer en blanc pour rester visibles */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ai-synthesis__badge .ai-synthesis__bars span {
    background: #ffffff !important;
  }
}
[data-theme="dark"] .ai-synthesis__badge .ai-synthesis__bars span {
  background: #ffffff !important;
}
.ai-synthesis__bars { height: 13px !important; gap: 2.5px !important; }
.ai-synthesis__bars span { width: 2.5px !important; }

/* ─── Sidebar filtres ─── */
.filters {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  height: fit-content;
  position: sticky; top: 80px;
}

/* ─── Tabs Web/Images : pills horizontales façon Google ─── */
.tabs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 4px !important;
  background: var(--plaster);
  border-radius: 999px !important;
  width: 100%;
}
.tab {
  flex: 1 1 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
  min-height: 36px;
}
.tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.tab:hover { color: var(--ink); }
/* Tab actif : couleurs FIXES (pas via --ink qui s'inverse en dark) */
.tab--active {
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.tab--active svg { color: var(--pulse) !important; }
/* Dark mode : inverse le contraste (active = blanc sur fond foncé global) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab--active {
    background: var(--pulse) !important;
    color: #ffffff !important;
  }
  :root:not([data-theme="light"]) .tab--active svg { color: #ffffff !important; }
}
[data-theme="dark"] .tab--active {
  background: var(--pulse) !important;
  color: #ffffff !important;
}
[data-theme="dark"] .tab--active svg { color: #ffffff !important; }

/* ─── Fieldset filtres ─── */
.filter-group { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: none; }
.filter-group fieldset {
  border: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.filter-group legend {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  padding: 0 0 8px; margin: 0;
}

/* Radio custom : pill cliquable avec accent Pulse quand sélectionné */
.filter-radio {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px; color: var(--carbon);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
  user-select: none;
}
.filter-radio:hover { background: var(--plaster); color: var(--ink); }
.filter-radio input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  position: relative;
  margin: 0;
  transition: border-color 0.15s var(--ease);
}
.filter-radio input[type="radio"]:checked {
  border-color: var(--pulse);
}
.filter-radio input[type="radio"]:checked::after {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pulse);
}
.filter-radio:has(input:checked) {
  color: var(--ink); font-weight: 700;
  background: var(--pulse-soft);
}

/* ─── Layout résultats : pleine largeur responsive (sidebar + main) ─── */
.results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}
/* Sur grands écrans : grille triple colonne (sidebar | results | infobox sidebar) */
.results-layout--web {
  grid-template-columns: 260px minmax(0, 1fr) 320px;
}
.results-layout--images {
  grid-template-columns: 260px minmax(0, 1fr);
}
@media (max-width: 1280px) {
  .results-layout--web { grid-template-columns: 240px minmax(0, 1fr); }
  .results-layout--web .sidebar { display: none; } /* infobox passe sous les résultats */
}
@media (max-width: 920px) {
  .results-layout,
  .results-layout--web,
  .results-layout--images {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .filters { position: static; }
}
.results-main { min-width: 0; max-width: 880px; }
@media (min-width: 921px) {
  .results-layout--images .results-main { max-width: none; } /* images = pleine largeur */
}

.results-main { min-width: 0; }
.results-meta {
  font-size: 13px; color: var(--muted);
  margin: 0 0 16px;
}
.results-meta strong { color: var(--ink); font-weight: 700; }

/* ─── Results list — style ChatGPT/Brave ─── */
.results-list { list-style: none; padding: 0; margin: 0; }
.results-list > li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.results-list > li:last-child { border-bottom: none; }
.results-list a.result-title {
  display: block;
  font-size: 17px; font-weight: 700;
  color: var(--pulse);
  line-height: 1.35;
  margin: 6px 0;
  transition: color 0.15s var(--ease);
}
.results-list a.result-title:hover {
  color: var(--pulse-dark, #E63A1F);
  text-decoration: underline;
}
.results-list a.result-title:visited { color: var(--visited); }
.results-list .result-host {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.results-list .result-host img { width: 14px; height: 14px; border-radius: 3px; }
.results-list .result-snippet {
  font-size: 14px; color: var(--carbon); line-height: 1.55;
  margin: 6px 0 8px;
}
.result-engine {
  display: inline-block;
  font-size: 10.5px; font-weight: 600;
  background: var(--plaster); color: var(--muted);
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ─── Chip Noliae : badge spécial quand le résultat vient de notre index ─── */
.chip--noliae {
  background: #111111 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  border: 1px solid var(--pulse) !important;
}
[data-theme="dark"] .chip--noliae,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip--noliae {
    background: var(--pulse) !important;
    color: #ffffff !important;
    border-color: var(--pulse) !important;
  }
}

/* ─── Bouton « Mon compte » header (style pill orange) ─── */
.account-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--ink); color: #fff !important;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.account-btn:hover {
  background: var(--pulse); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,77,46,0.3);
}
@media (max-width: 600px) {
  .account-btn span { display: none; }  /* icône seule en mobile */
  .account-btn { padding: 7px; width: 32px; height: 32px; justify-content: center; }
}
[data-theme="dark"] .account-btn {
  background: var(--pulse); color: #fff !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .account-btn {
    background: var(--pulse); color: #fff !important;
  }
}

/* ─── Mini header sur la home (style Google : liens left + compte right) ─── */
.home-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  z-index: 10;
}
.home-header__links { display: flex; align-items: center; gap: 20px; }
.home-header__links a {
  font-size: 13px; color: var(--muted); font-weight: 500;
  text-decoration: none; transition: color 0.15s var(--ease);
}
.home-header__links a:hover { color: var(--ink); text-decoration: underline; }
.home-header__actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 600px) {
  .home-header { padding: 12px 16px; }
  .home-header__links { gap: 14px; }
  .home-header__links a { font-size: 12px; }
}

/* ─── Brand intro card : présentation Noliae quand query contient "noliae" ─── */
.brand-intro {
  margin: 0 0 1.75rem;
  padding: 22px 24px;
  background: linear-gradient(160deg, #1e1e1e 0%, #111111 100%);
  color: #fff;
  border-radius: 16px;
  border: 1px solid var(--pulse);
  box-shadow: 0 8px 32px rgba(255,77,46,0.15);
  position: relative;
  overflow: hidden;
}
.brand-intro::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,77,46,0.07), transparent 60%);
  pointer-events: none;
}
.brand-intro__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: relative; }
.brand-intro__head h2 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.brand-intro__head p { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,0.7); }
.brand-intro__eq {
  display: inline-flex; align-items: center; gap: 4px; height: 36px;
}
.brand-intro__eq i {
  display: block; width: 5px; height: 100%; border-radius: 2.5px;
  background: var(--pulse); animation: brandEq 1.4s ease-in-out infinite;
}
.brand-intro__eq i:nth-child(1) { background: #fff; animation-delay: -.7s; }
.brand-intro__eq i:nth-child(2) { animation-delay: -.55s; }
.brand-intro__eq i:nth-child(3) { animation-delay: -.4s; }
.brand-intro__eq i:nth-child(4) { animation-delay: -.25s; }
.brand-intro__eq i:nth-child(5) { background: #fff; animation-delay: -.1s; }
.brand-intro__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; position: relative;
}
.brand-intro__card {
  display: block; padding: 14px 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #fff !important; text-decoration: none;
  transition: all 0.15s var(--ease);
}
.brand-intro__card:hover {
  background: rgba(255,255,255,0.12); border-color: var(--pulse);
  transform: translateY(-2px);
}
.brand-intro__card--current {
  background: rgba(255, 77, 46, 0.18);
  border-color: var(--pulse);
  box-shadow: 0 0 0 1px var(--pulse), 0 4px 16px rgba(255, 77, 46, 0.25);
}
.brand-intro__card--current h3 { color: #fff !important; }
.brand-intro__card--current p { color: rgba(255, 255, 255, 0.92) !important; }
.brand-intro__icon { font-size: 22px; display: block; margin-bottom: 6px; }
/* Icônes SVG officielles de la charte Noliae (services/*.svg) */
.brand-intro__icon--img {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper, #FAFAF7);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}
.brand-intro__card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: #fff !important; }
.brand-intro__card p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,0.75); }
.brand-intro__card code { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.1); color: var(--pulse); word-break: break-all; overflow-wrap: break-word; }
.brand-intro__cta { font-size: 10.5px; font-weight: 800; color: var(--pulse); letter-spacing: 0.5px; text-transform: uppercase; }
.brand-intro__foot { margin: 16px 0 0; font-size: 11px; color: rgba(255,255,255,0.55); text-align: center; position: relative; }
/* Grid plus dense — accueille 8 apps confortablement (2 lignes × 4 sur desktop) */
.brand-intro__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ─────────────────────────────────────────────────────────────────────
   App Launcher Noliae — 9 dots Google-style
   ────────────────────────────────────────────────────────────────────── */
.app-launcher { position: relative; display: inline-flex; }
.app-launcher__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; transition: all .2s;
}
.app-launcher__btn:hover { background: var(--paper); transform: scale(1.05); }
.app-launcher__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--surface, #1c1c1c); color: #fff;
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  padding: 14px; z-index: 1000;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .18s, transform .18s;
}
.app-launcher.is-open .app-launcher__menu { opacity: 1; pointer-events: auto; transform: none; }
.app-launcher__head { padding: 4px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 10px; }
.app-launcher__head strong { display: block; font-size: 13px; font-weight: 800; }
.app-launcher__head small { display: block; font-size: 11px; opacity: .55; margin-top: 2px; }
.app-launcher__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 10px; text-decoration: none;
  color: rgba(255,255,255,.92); transition: background .15s;
}
.app-tile:hover { background: rgba(255,255,255,.06); }
.app-tile__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  background: #FAFAF7;
  object-fit: contain;
}
.app-tile__name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.app-tile__name small { display: block; font-size: 9px; font-weight: 700; color: var(--pulse); margin-top: 2px; letter-spacing: .4px; text-transform: uppercase; }
.app-tile--soon .app-tile__icon { opacity: .55; }
.app-tile__eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.app-tile__eq i { display: block; width: 3px; background: #FF4D2E; border-radius: 1.5px; animation: appTileEq 1.4s ease-in-out infinite; }
.app-tile__eq i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.app-tile__eq i:nth-child(2) { height: 90%; animation-delay: -.4s; }
.app-tile__eq i:nth-child(3) { height: 70%; animation-delay: -.6s; }
.app-tile__eq i:nth-child(4) { height: 100%; animation-delay: -.8s; }
.app-tile__eq i:nth-child(5) { height: 50%; animation-delay: -1s; }
@keyframes appTileEq { 0%,100% { transform: scaleY(.45) } 50% { transform: scaleY(1) } }
.app-launcher__foot { padding-top: 10px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.06); text-align: center; opacity: .55; }

/* Mode clair */
@media (prefers-color-scheme: light) {
  body:not(.dark) .app-launcher__menu { background: #f3f4f6; color: #111; border-color: rgba(0,0,0,.08); }
  body:not(.dark) .app-tile { color: #1a1a1a; }
  body:not(.dark) .app-tile:hover { background: rgba(0,0,0,.05); }
  body:not(.dark) .app-tile__icon { border: 1px solid rgba(0,0,0,.08); }
}

/* ─── Add search engine ─── */
.add-engine { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.add-engine__btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--plaster); border-radius: 3px; padding: 7px 14px; font-size: 12px; color: var(--smoke); cursor: pointer; transition: border-color .2s, color .2s; font-family: inherit; }
.add-engine__btn:hover { border-color: var(--ink); color: var(--ink); }
.add-engine__btn.done { border-color: #10B981; color: #10B981; }
.add-engine__tip { font-size: 12px; color: var(--smoke); max-width: 420px; text-align: center; line-height: 1.5; }
.add-engine__tip code { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--plaster); padding: 1px 5px; border-radius: 2px; }

/* ─── Search tabs bar (Web / Images) ─── */
/* ─── Search tabs bar — Google-style ─── */
.search-tabs-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0,0,0,.1);
  background: var(--paper, #FAFAF7);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.search-tabs-bar::-webkit-scrollbar { display: none; }
.search-tab {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
  letter-spacing: .01em;
}
.search-tab:hover { color: #111; border-bottom-color: rgba(0,0,0,.15); }
.search-tab svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .7; }
.search-tab--active {
  color: var(--pulse, #FF4D2E) !important;
  border-bottom-color: var(--pulse, #FF4D2E) !important;
  font-weight: 600;
}
.search-tab--active svg { opacity: 1; }

/* dark */
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .search-tabs-bar { background: var(--surface, #111); border-bottom-color: rgba(255,255,255,.08); }
  body:not([data-theme="light"]) .search-tab { color: rgba(255,255,255,.55); }
  body:not([data-theme="light"]) .search-tab:hover { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
  body:not([data-theme="light"]) .search-tab--active { color: #FF4D2E !important; border-bottom-color: #FF4D2E !important; }
}
[data-theme="dark"] .search-tabs-bar { background: var(--surface, #111); border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .search-tab { color: rgba(255,255,255,.55); }
[data-theme="dark"] .search-tab:hover { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
[data-theme="dark"] .search-tab--active { color: #FF4D2E !important; border-bottom-color: #FF4D2E !important; }
