:root {
  --ink: #10283d;
  --ink-soft: #506474;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --line: #d8dfdd;
  --orange: #f05a28;
  --orange-deep: #cf3f12;
  --teal: #0d6f73;
  --blue: #174a75;
  --violet: #553b78;
  --lime: #477a4b;
  --shadow: 0 18px 42px rgba(16, 40, 61, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header, main, .site-footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; font-weight: 760; letter-spacing: -0.035em; }
.brand-public { font-size: .69rem; letter-spacing: .035em; }
.brand-ia { display: inline-grid; width: 22px; height: 22px; place-items: center; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 6px; font-size: .77rem; letter-spacing: -.05em; }
.brand-divider { width: 1px; height: 24px; margin-inline: 5px; background: var(--line); }
.assistant-link, .catalogue-help, .site-footer a { font-size: .88rem; font-weight: 680; }
.assistant-link span, .catalogue-help span, .site-footer a span { margin-left: 4px; color: var(--orange); }

.intro {
  display: grid;
  grid-template-columns: 58px minmax(0, 760px) 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(42px, 5vw, 72px) 0 clamp(34px, 4vw, 54px);
}

.intro-mark { margin: 4px 0 0; color: var(--orange); font-size: 3.1rem; font-weight: 300; line-height: .7; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 0; font-size: clamp(2.35rem, 4.6vw, 4.25rem); font-weight: 760; letter-spacing: -.06em; line-height: .96; text-wrap: balance; }
.intro-copy { max-width: 640px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.17rem); }
.availability { justify-self: end; max-width: 155px; margin: 9px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.35; }
.availability span { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #56a050; }

h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.04em; line-height: 1; }

.catalogue { margin-bottom: clamp(70px, 10vw, 130px); padding: clamp(30px, 5vw, 58px); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.catalogue-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.catalogue-heading p { margin: 9px 0 0; color: var(--ink-soft); font-size: .86rem; }
.catalogue-help { padding-top: 5px; white-space: nowrap; }

.finder { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 28px; align-items: center; padding: 27px 0 20px; }
.search-field { display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0 14px; background: var(--paper); border: 1px solid transparent; border-radius: 12px; transition: border-color .2s ease, background .2s ease; }
.search-field:focus-within { background: white; border-color: var(--ink); }
.search-icon { position: relative; width: 16px; height: 16px; margin-right: 11px; border: 1.8px solid var(--ink); border-radius: 50%; opacity: .65; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.8px; content: ""; background: var(--ink); transform: rotate(45deg); }
.search-field input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-field input::placeholder { color: #74838c; }
.search-field button { width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; font-size: 1.35rem; line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.filter { min-height: 44px; padding: 7px 13px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .76rem; font-weight: 650; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.filter:hover, .filter[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: 154px; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tool-tile { position: relative; min-width: 0; overflow: hidden; background: var(--tile-soft); border-radius: 15px; box-shadow: 0 1px 0 rgba(16, 40, 61, .08); transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; }
.tool-tile::after { position: absolute; right: -55px; bottom: -80px; width: 190px; height: 190px; content: ""; background: var(--tile); border-radius: 50%; opacity: .1; }
.tool-tile:hover, .tool-tile:focus-within { z-index: 1; box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-tile > a { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; flex-direction: column; padding: 18px; }
.tile-symbol { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--tile); border-radius: 11px; }
.tile-symbol svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tile-category { margin-top: auto; margin-bottom: 6px; color: var(--tile); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tile-name { font-size: 1.03rem; font-weight: 760; letter-spacing: -.035em; line-height: 1.04; }
.tile-description { margin-top: 7px; color: var(--ink-soft); font-size: .78rem; line-height: 1.32; }
.tile-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--tile); font-size: .75rem; font-weight: 760; }
.tile-cta::after { content: "↗"; font-size: 1rem; }
.tile--lead { grid-column: span 2; grid-row: span 2; background: var(--tile); }
.tile--lead::after { right: -90px; bottom: -100px; width: 350px; height: 350px; background: white; opacity: .11; }
.tile--lead .tile-symbol { color: var(--tile); background: white; }.tile--lead .tile-category, .tile--lead .tile-description, .tile--lead .tile-cta { color: white; }.tile--lead .tile-name { max-width: 350px; color: white; font-size: clamp(2rem, 3.6vw, 3.35rem); }.tile--lead .tile-description { max-width: 330px; font-size: .98rem; }.tile--lead .tile-cta { margin-top: 20px; }
.tile--wide { grid-column: span 2; }.tile--wide .tile-name { font-size: 1.34rem; }.tile--wide .tile-description { max-width: 410px; }
.tile--tall { grid-row: span 2; }.tile--tall .tile-description { font-size: .85rem; }
.empty-state { padding: 58px 0 20px; text-align: center; }
.empty-state p { color: var(--ink-soft); }
.empty-state button { padding: 10px 15px; color: white; background: var(--ink); border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0 40px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: .82rem; }
.site-footer p { margin: 0; }.site-footer strong { color: var(--ink); }.site-footer a { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brice-launcher { position: fixed; z-index: 10; right: clamp(18px, 3vw, 38px); bottom: clamp(18px, 3vw, 38px); display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 18px 0 14px; color: white; background: var(--ink); border: 0; border-radius: 999px; box-shadow: 0 14px 28px rgba(16, 40, 61, .22); cursor: pointer; font-size: .88rem; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.brice-launcher:hover, .brice-launcher[aria-expanded="true"] { background: var(--blue); box-shadow: 0 18px 34px rgba(16, 40, 61, .28); transform: translateY(-2px); }
.brice-launcher svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.brice-panel { position: fixed; z-index: 11; right: clamp(16px, 3vw, 38px); bottom: clamp(78px, 8vw, 98px); width: min(390px, calc(100vw - 32px)); padding: 20px; color: var(--ink); background: var(--surface); border-radius: 16px; box-shadow: 0 24px 56px rgba(16, 40, 61, .2); }
.brice-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.brice-heading h2 { max-width: 270px; margin: 3px 0 0; font-size: 1.3rem; line-height: 1.06; }
.brice-name { margin: 0; color: var(--orange-deep); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brice-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; margin: -4px -4px 0 0; padding: 0; color: var(--ink-soft); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.55rem; line-height: 1; }
.brice-close:hover { color: var(--ink); background: var(--paper); }
.brice-messages { display: grid; gap: 9px; max-height: min(38vh, 280px); margin: 16px 0 13px; overflow-y: auto; overscroll-behavior: contain; }
.brice-message { width: fit-content; max-width: 92%; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.42; }
.brice-message--assistant { background: var(--paper); }
.brice-message--user { justify-self: end; color: white; background: var(--blue); }
.brice-recommendations { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.brice-recommendation { display: grid; gap: 5px; padding: 10px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .83rem; line-height: 1.4; }
.brice-recommendation:last-child { padding-bottom: 0; border-bottom: 0; }
.brice-tool-link { width: fit-content; color: var(--blue); font-size: .82rem; font-weight: 780; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brice-tool-link:hover { color: var(--orange-deep); }
.brice-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.brice-suggestions button { padding: 6px 9px; color: var(--blue); background: #e6f0f7; border: 0; border-radius: 999px; cursor: pointer; font-size: .72rem; font-weight: 720; line-height: 1.25; }
.brice-suggestions button:hover { color: white; background: var(--blue); }
.brice-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.brice-form input { min-width: 0; padding: 11px 12px; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 10px; font-size: .86rem; }
.brice-form input:focus { background: white; border-color: var(--ink); outline: 0; }
.brice-form button { min-height: 42px; padding: 0 13px; color: white; background: var(--orange-deep); border: 0; border-radius: 10px; cursor: pointer; font-size: .8rem; font-weight: 760; }
.brice-form button:hover { background: var(--orange); }
.brice-form button:disabled, .brice-suggestions button:disabled { cursor: wait; opacity: .58; }
.brice-note, .brice-status { margin: 10px 0 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.35; }
.brice-status:not(:empty) { color: var(--orange-deep); font-weight: 680; }

@media (max-width: 880px) {
  .intro { grid-template-columns: 42px minmax(0, 1fr); }.availability { grid-column: 2; justify-self: start; max-width: none; }
  .finder { grid-template-columns: 1fr; gap: 14px; }.filters { justify-content: flex-start; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 164px; }.tile--lead { grid-column: span 2; }
}

@media (max-width: 620px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 1180px); }.site-header { min-height: 68px; }.assistant-link { font-size: .75rem; }
  .intro { gap: 15px; padding-top: 52px; }.intro-mark { font-size: 2.35rem; }.intro-copy { font-size: 1rem; }
  .catalogue-heading, .site-footer { display: block; }.catalogue-help { display: inline-block; margin-top: 17px; }
  .catalogue { width: calc(100% + 32px); margin-left: -16px; padding: 27px 16px; }.filters { flex-wrap: nowrap; width: calc(100% + 32px); margin-left: -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: thin; }.filter { flex: 0 0 auto; }.tool-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(174px, auto); }.tool-tile, .tile--lead, .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; min-height: 174px; }.tool-tile > a { min-height: 174px; }.tile--lead { min-height: 238px; }.tile--lead > a { min-height: 238px; }.tile--lead .tile-name { font-size: 2.25rem; }.tile--lead .tile-description { font-size: .9rem; }
  .site-footer { padding-top: 22px; }.site-footer a { display: inline-block; margin-top: 12px; }
  .brice-panel { right: 16px; bottom: 78px; padding: 18px; }.brice-launcher { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
