/* Pages transversales : recherche, 404, pages institutionnelles. */

.tv-h1 { font-size: clamp(40px, 6cqi, 64px); }
.tv-narrow { max-width: 760px; }

/* ---------- Champ de recherche ---------- */
.tv-search { display: flex; gap: 8px; max-width: 760px; }
.tv-search__field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px;
  border-radius: 999px; background: var(--sf); border: 2px solid var(--ink);
}
.tv-search__field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px 'Archivo', system-ui, sans-serif; color: var(--ink);
}
.tv-search__field:focus-within { box-shadow: 0 0 0 3px var(--hl); }
.tv-search__icon { position: relative; width: 18px; height: 18px; flex: none; }
.tv-search__icon::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; }
.tv-search__icon::after { content: ""; position: absolute; right: 0; bottom: 2px; width: 8px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.tv-search__btn {
  flex: none; min-height: 56px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--hero); color: #fff;
  font: 800 16px 'Archivo', system-ui, sans-serif; cursor: pointer;
}
.tv-search--light { position: relative; max-width: 620px; }
.tv-search--light .tv-search__field { background: #fff; border: 0; padding: 0 18px; }
.tv-search--light .tv-search__field input { color: #0A1F4D; }
.tv-search--light .tv-search__btn { background: var(--sky); color: #0A1F4D; }

/* ---------- Résultats ---------- */
.tv-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tv-chips::-webkit-scrollbar { display: none; }
.tv-chip {
  flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--sf); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700;
}
.tv-chip:hover { color: var(--ink); border-color: var(--sky); }
.tv-chip[aria-current="page"] { background: var(--hero); border-color: var(--hero); color: #fff; }
.tv-chip span { font-weight: 500; opacity: .7; }
.tv-quick {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--hero); color: #fff;
  text-decoration: none; max-width: 760px;
}
.tv-quick:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--sky); }
.tv-quick__in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tv-quick__k { font-size: 15px; font-weight: 700; text-transform: uppercase; color: #C7D6EE; }
.tv-quick strong { font-stretch: 62%; font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.tv-quick__d { font-size: 15px; color: #D6E2F5; }
.tv-quick__arrow { font-weight: 800; font-size: 20px; }
.tv-list { display: flex; flex-direction: column; max-width: 760px; background: var(--sf); border: 1px solid var(--line); border-radius: 20px; padding: 4px 18px; }
.tv-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.tv-list a:first-child { border-top: 0; }
.tv-list a:hover strong { text-decoration: underline; }
.tv-list strong { font-size: 18px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.tv-list .mut, .tv-recents .mut { font-size: 15px; }
.tv-list__c { font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.tv-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; max-width: 760px; }
.tv-shortcuts a {
  display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 16px; border-radius: 16px;
  background: var(--sf); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 800;
}
.tv-shortcuts a:hover { color: var(--ink); border-color: var(--sky); }

/* ---------- 404 ---------- */
.tv-404 { padding: 24px clamp(16px, 4cqi, 40px); }
.tv-404__n { font-stretch: 62%; font-weight: 900; font-size: clamp(140px, 28cqi, 260px); line-height: .8; }
.tv-404__h { margin: 12px 0 6px; font-stretch: 62%; font-weight: 900; font-size: clamp(32px, 5cqi, 52px); line-height: .92; text-transform: uppercase; }
.tv-404__p { margin: 0 0 16px; font-size: 17px; color: #D6E2F5; max-width: 520px; }
.tv-next {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--sf);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.tv-next:hover { color: var(--ink); border-color: var(--sky); }
.tv-next__in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tv-next strong { font-stretch: 62%; font-weight: 900; font-size: 32px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.tv-next .mut { font-size: 15px; }
.tv-next__go { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--hero); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.tv-recents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.tv-recents a {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 20px; background: var(--sf);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0;
}
.tv-recents a:hover { color: var(--ink); border-color: var(--sky); }
.tv-recents strong { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- Pages institutionnelles ---------- */
.tv-text { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.tv-text__bloc { display: flex; flex-direction: column; gap: 8px; }
.tv-text__bloc h2 { margin: 10px 0 0; font-stretch: 62%; font-weight: 900; font-size: 28px; line-height: .95; text-transform: uppercase; }
.tv-text__bloc p { margin: 0; font-size: 18px; line-height: 1.7; text-wrap: pretty; overflow-wrap: break-word; }
.tv-text__more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tv-text__more a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--sf);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700;
}
.tv-text__more a:hover { color: var(--ink); border-color: var(--sky); }
