/* Extrait de templates/category_results.html : fichier mis en cache par le navigateur. */
  body { background: var(--ct-bg, #F5F8FC); }
  .cr-root { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ct-ink, #0B1B45); max-width: 560px; margin: 0 auto; padding: 0 12px calc(96px + env(safe-area-inset-bottom)); }
  .cr-head { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; margin: 0 -12px; }
  .cr-head h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
  .cr-back { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: inherit; }
  .cr-back svg { width: 22px; height: 22px; }

  .cr-hero { position: relative; overflow: hidden; border-radius: 14px; min-height: 144px; color: #fff; background: #1F6FE5; }
  .cr-hero-img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: right center; }
  .cr-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #1E6FE8 0%, #1E6FE8 38%, rgba(30,111,232,.55) 58%, rgba(30,111,232,0) 78%); }
  .cr-hero-body { position: relative; z-index: 2; padding: 14px 16px 16px; max-width: 62%; }
  .cr-hero.plain .cr-hero-body { max-width: none; }
  .cr-hero-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
  .cr-hero-ic svg { width: 26px; height: 26px; }
  .cr-hero h2 { margin: 0 0 3px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
  .cr-hero p { margin: 0; font-size: 13px; line-height: 1.3; opacity: .95; }

  .cr-search { display: flex; align-items: center; gap: 10px; height: 40px; margin: 12px 0 14px; padding: 0 14px; background: #EAF0FA; border-radius: 12px; color: var(--ct-slate, #64748B); }
  .cr-search svg { width: 18px; height: 18px; flex: none; }
  .cr-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ct-ink, #0B1B45); }
  .cr-search input::placeholder { color: var(--ct-slate, #64748B); }

  .cr-bar { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; padding: 0 2px; }
  .cr-count { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
  .cr-sort { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; background: #fff; border: 1px solid var(--ct-line, #E7ECF3); border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: inherit; cursor: pointer; }
  .cr-sort svg { width: 15px; height: 15px; }
  .cr-menu { position: absolute; right: 0; top: 42px; z-index: 5; min-width: 168px; background: #fff; border: 1px solid var(--ct-line, #E7ECF3); border-radius: 12px; box-shadow: 0 8px 24px rgba(11,27,69,.14); padding: 4px; }
  .cr-menu[hidden] { display: none; }
  .cr-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; font: inherit; font-size: 13.5px; border-radius: 8px; color: inherit; cursor: pointer; }
  .cr-menu button.on { color: var(--ct-blue, #1163F4); font-weight: 700; background: #F0F5FF; }

  .cr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cr-card { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--ct-line, #E7ECF3); border-radius: 14px; padding: 12px; box-shadow: 0 2px 8px rgba(20,60,140,.05); }
  .cr-card[hidden] { display: none; }
  .cr-avatar { flex: none; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: #EAF0FA; display: block; }
  .cr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cr-info { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: block; }
  .cr-info strong { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .cr-job { display: block; margin: 1px 0 3px; font-size: 12.5px; color: var(--ct-slate, #64748B); }
  .cr-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ct-slate, #64748B); }
  .cr-meta svg { width: 13px; height: 13px; flex: none; }
  .cr-meta .star { color: #F7B718; }
  .cr-meta .pin { color: var(--ct-blue, #1163F4); }
  .cr-meta .dot { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; flex: none; margin: 0 2px; }
  .cr-meta.on { color: #16A34A; }
  .cr-meta.on .dot { background: #16A34A; }
  .cr-side { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
  .cr-fav { width: 30px; height: 30px; margin: -4px -4px 0 0; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ct-ink, #0B1B45); cursor: pointer; }
  .cr-fav svg { width: 22px; height: 22px; }
  a.cr-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 999px; background: #E8F0FE; color: var(--ct-blue, #1163F4); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .cr-empty { text-align: center; color: var(--ct-slate, #64748B); font-size: 14px; padding: 26px 8px; background: #fff; border: 1px dashed var(--ct-line, #E7ECF3); border-radius: 14px; }
  @media (max-width: 359px) { .cr-avatar { width: 60px; height: 60px; } a.cr-btn { padding: 0 10px; font-size: 12px; } .cr-hero h2 { font-size: 19px; } }
  /* ---- Ordinateur : grand bandeau et cartes en grille ---- */
  @media (min-width: 1024px) {
    .cr-root { max-width: 1180px; padding: 0 32px 72px; }
    .cr-head { justify-content: flex-start; gap: 14px; height: auto; margin: 30px 0 18px; }
    .cr-back { position: static; transform: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(20,60,140,.10); }
    .cr-head h1 { font-size: 30px; letter-spacing: -.02em; }
    .cr-hero { min-height: 230px; border-radius: 24px; display: flex; align-items: center; }
    .cr-hero-img { width: 55%; }
    .cr-hero-body { padding: 30px 40px; max-width: 52%; }
    .cr-hero-ic { width: 60px; height: 60px; margin-bottom: 14px; } .cr-hero-ic svg { width: 32px; height: 32px; }
    .cr-hero h2 { font-size: 38px; margin-bottom: 8px; }
    .cr-hero p { font-size: 16px; }
    .cr-search { max-width: 520px; height: 48px; margin: 24px 0 18px; background: #fff; border: 1px solid var(--ct-line, #E7ECF3); }
    .cr-count { font-size: 18px; }
    .cr-bar { margin-bottom: 16px; }
    .cr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .cr-card { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 18px 18px; border-radius: 20px;
      transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease; }
    .cr-avatar { width: 96px; height: 96px; transition: box-shadow .3s ease, transform .3s ease; }
    .cr-info { width: 100%; }
    .cr-info strong { font-size: 17px; }
    .cr-info .tier-badge { margin: 5px auto 2px; }
    .cr-meta { justify-content: center; }
    .cr-side { width: 100%; align-items: stretch; }
    .cr-fav { position: absolute; top: 14px; right: 14px; margin: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(11,18,32,.12); }
    .cr-fav svg { width: 18px; height: 18px; }
    a.cr-btn { width: 100%; height: 42px; margin-top: 6px; transition: background .25s ease, color .25s ease; }
    .cr-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(20,60,140,.15); border-color: #BFD3FB; }
    .cr-card:hover .cr-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1163F4; transform: scale(1.04); }
    .cr-card:hover a.cr-btn { background: var(--ct-blue, #1163F4); color: #fff; }
  }
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .cr-hero { animation: crHero .7s cubic-bezier(.2,.8,.2,1) backwards; }
    .cr-hero-img { animation: crImg 1.1s cubic-bezier(.2,.8,.2,1) backwards; }
    .cr-card { animation: crIn .55s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 60ms + .15s); }
    .cr-meta.on .dot { animation: crPing 2s ease-out infinite; }
    @keyframes crHero { from { opacity: 0; transform: translateY(16px); } }
    @keyframes crImg { from { opacity: 0; transform: scale(1.08); } }
    @keyframes crIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
    @keyframes crPing { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } }
  }
