/* Technothèque (lot L3 de vikunja:2320), chargée après page-d.css par le hub
   et la fiche seulement. Bornée à .techno-page. Pas de thème clair.
   instrument.css reste au calculateur CEE. */

body.home-d .home-d-page.techno-page .page-head h1 {
  overflow-wrap: anywhere;
}

body.home-d .home-d-page.techno-page .cta,
body.home-d .home-d-page.techno-page .secondary,
body.home-d .home-d-page.techno-page .link {
  font-weight: 600;
}

body.home-d .home-d-page.techno-page .techno-hero-tools,
body.home-d .home-d-page.techno-page .techno-detail-top {
  display: grid;
  gap: 28px;
  align-items: start;
  padding-bottom: 28px;
}

body.home-d .home-d-page.techno-page .techno-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  max-width: 720px;
}

body.home-d .home-d-page.techno-page .techno-search .page-field,
body.home-d .home-d-page.techno-page .techno-quick .page-field {
  margin: 0;
}

body.home-d .home-d-page.techno-page .techno-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

body.home-d .home-d-page.techno-page .techno-stats-kicker,
body.home-d .home-d-page.techno-page .techno-stats-note {
  margin: 0;
  color: var(--mute);
  font: 400 11px/1.45 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .techno-stats-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

body.home-d .home-d-page.techno-page .techno-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 0;
  margin: 12px 0;
}

body.home-d .home-d-page.techno-page .techno-figures > div {
  min-width: 0;
  margin-right: 22px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-figures > div:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

body.home-d .home-d-page.techno-page .techno-figures b {
  display: block;
  color: var(--ink);
  font: 400 clamp(1.5rem, 3vw, 2.4rem)/1 var(--mono);
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

body.home-d .home-d-page.techno-page .techno-figures span {
  display: block;
  margin-top: 8px;
  color: var(--mute);
  font: 400 11px/1.35 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .techno-section {
  padding: clamp(36px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-section-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

body.home-d .home-d-page.techno-page .techno-section-hd h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

body.home-d .home-d-page.techno-page .techno-toolbar {
  align-items: end;
}

body.home-d .home-d-page.techno-page .techno-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

body.home-d .home-d-page.techno-page .techno-quick {
  min-width: min(100%, 240px);
}

body.home-d .home-d-page.techno-page .techno-count {
  margin-left: 10px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
}

body.home-d .home-d-page.techno-page .techno-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 28px;
  border-top: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page article.tech-card {
  min-width: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page article.tech-card > div {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home-d .home-d-page.techno-page .techno-card-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-card-media img,
body.home-d .home-d-page.techno-page .techno-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-d .home-d-page.techno-page .techno-card-body {
  padding: 14px 0 18px;
}

body.home-d .home-d-page.techno-page .techno-card-body h3,
body.home-d .home-d-page.techno-page .techno-card-body h3 a {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.15;
  text-decoration: none;
}

body.home-d .home-d-page.techno-page .techno-card-body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.home-d .home-d-page.techno-page .techno-maker,
body.home-d .home-d-page.techno-page .techno-meta,
body.home-d .home-d-page.techno-page .techno-meta dd {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

body.home-d .home-d-page.techno-page .techno-desc {
  margin: 8px 0 0;
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.home-d .home-d-page.techno-page .techno-tags a {
  text-decoration: none;
}

body.home-d .home-d-page.techno-page .techno-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

body.home-d .home-d-page.techno-page .techno-chip a {
  color: var(--mute);
  text-decoration: none;
}

body.home-d .home-d-page.techno-page .techno-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
}

body.home-d .home-d-page.techno-page .techno-meta div {
  min-width: 0;
}

body.home-d .home-d-page.techno-page .techno-meta dt {
  color: var(--mute);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .techno-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

body.home-d .home-d-page.techno-page .techno-split {
  display: grid;
  gap: 36px;
  align-items: start;
}

body.home-d .home-d-page.techno-page .techno-figure {
  margin: 0 0 28px;
  max-width: 68ch;
}

body.home-d .home-d-page.techno-page .techno-figure img {
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg2);
  border: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .in-prose,
body.home-d .home-d-page.techno-page .techno-prose {
  max-width: 68ch;
  overflow-wrap: anywhere;
}

body.home-d .home-d-page.techno-page .techno-prose h2,
body.home-d .home-d-page.techno-page .in-prose h2 {
  font-family: var(--display);
}

body.home-d .home-d-page.techno-page .techno-side {
  display: grid;
  gap: 16px;
}

body.home-d .home-d-page.techno-page .techno-side .page-panel p.mono {
  margin: 0 0 10px;
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.home-d .home-d-page.techno-page .techno-side-list li {
  border-top: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-side-list a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}

body.home-d .home-d-page.techno-page .techno-side-list small,
body.home-d .home-d-page.techno-page .techno-company small {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

body.home-d .home-d-page.techno-page .techno-company {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-company li {
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-company a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}

body.home-d .home-d-page.techno-page .techno-company img,
body.home-d .home-d-page.techno-page .techno-mono-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
  grid-row: span 2;
  border: 1px solid var(--line);
  background: var(--panel);
}

body.home-d .home-d-page.techno-page .techno-mono-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
}

body.home-d .home-d-page.techno-page .techno-domains {
  display: grid;
  gap: 0 28px;
}

body.home-d .home-d-page.techno-page .techno-domain {
  min-width: 0;
  margin: 0;
  border-radius: 2px;
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-domain .mono {
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-domain h3 {
  margin: 8px 0;
  font-size: 1.45rem;
}

body.home-d .home-d-page.techno-page .techno-domain p,
body.home-d .home-d-page.techno-page .techno-domain dd {
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-domain dl {
  margin: 12px 0 0;
}

body.home-d .home-d-page.techno-page .techno-domain dt {
  color: var(--ink);
  font-weight: 600;
}

body.home-d .home-d-page.techno-page .techno-about {
  display: grid;
  gap: 28px;
}

body.home-d .home-d-page.techno-page .techno-about .mono {
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-about-list {
  margin: 0;
}

body.home-d .home-d-page.techno-page .techno-about-list div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-about-list dt {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .techno-about-list dd {
  margin: 6px 0 0;
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-faq {
  border-top: 1px solid var(--line);
  max-width: 68ch;
}

body.home-d .home-d-page.techno-page .techno-faq details {
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-faq summary {
  padding: 14px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

body.home-d .home-d-page.techno-page .techno-faq p {
  margin: 0 0 14px;
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 22px;
}

body.home-d .home-d-page.techno-page .pagination-info {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
}

body.home-d .home-d-page.techno-page .pagination-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.home-d .home-d-page.techno-page .pagination-container a,
body.home-d .home-d-page.techno-page .pagination-container span {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--mute);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
}

body.home-d .home-d-page.techno-page .pagination-container a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--volt);
}

body.home-d .home-d-page.techno-page .techno-empty {
  padding: 28px 0;
  color: var(--mute);
}

body.home-d .home-d-page.techno-page #filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: 100vh;
  overflow: hidden;
  background: var(--bg2);
  color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: none;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}

body.home-d .home-d-page.techno-page #filter-panel.active {
  transform: translateX(0);
}

body.home-d .home-d-page.techno-page .filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .filter-panel-header p {
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .filter-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

body.home-d .home-d-page.techno-page .filter-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 24px;
}

body.home-d .home-d-page.techno-page #filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

body.home-d .home-d-page.techno-page #filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.home-d .home-d-page.techno-page .techno-filter-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

body.home-d .home-d-page.techno-page .techno-filter-group summary {
  cursor: pointer;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .techno-filter-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

body.home-d .home-d-page.techno-page .techno-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .techno-check-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 240px;
  margin-top: 10px;
  overflow-y: auto;
}

body.home-d .home-d-page.techno-page .techno-check-tags label {
  cursor: pointer;
}

body.home-d .home-d-page.techno-page .techno-check-tags span {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.home-d .home-d-page.techno-page .techno-check-tags input:checked + span {
  border-color: var(--volt);
}

body.home-d .home-d-page.techno-page .fiche-evolutions {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--mute);
}

body.home-d .home-d-page.techno-page .fiche-evolutions a {
  color: var(--ink);
}

body.home-d .home-d-page.techno-page .in-prose table,
body.home-d .home-d-page.techno-page .techno-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

body.home-d .home-d-page.techno-page .in-prose pre,
body.home-d .home-d-page.techno-page .techno-prose pre {
  overflow-x: auto;
}

body.home-d .home-d-page.techno-page .in-prose [style*="color"],
body.home-d .home-d-page.techno-page .techno-prose [style*="color"] {
  color: inherit !important;
}

body.home-d .home-d-page.techno-page .in-prose [style*="background"],
body.home-d .home-d-page.techno-page .techno-prose [style*="background"] {
  background: transparent !important;
}

body.home-d .home-d-page.techno-page .page-prose p.fiche-verify-notice a {
  color: #0b1012;
  text-decoration-color: #0b1012;
}

@media (min-width: 800px) {
  body.home-d .home-d-page.techno-page .techno-cards,
  body.home-d .home-d-page.techno-page .techno-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.home-d .home-d-page.techno-page .techno-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home-d .home-d-page.techno-page .techno-hero-tools,
  body.home-d .home-d-page.techno-page .techno-detail-top,
  body.home-d .home-d-page.techno-page .techno-split,
  body.home-d .home-d-page.techno-page .techno-about {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  }
}

@media (max-width: 700px) {
  body.home-d .home-d-page.techno-page .techno-search,
  body.home-d .home-d-page.techno-page .techno-hero-tools,
  body.home-d .home-d-page.techno-page .techno-detail-top,
  body.home-d .home-d-page.techno-page .techno-split,
  body.home-d .home-d-page.techno-page .techno-about,
  body.home-d .home-d-page.techno-page .techno-cards,
  body.home-d .home-d-page.techno-page .techno-domains {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-d .home-d-page.techno-page .techno-search .cta,
  body.home-d .home-d-page.techno-page .techno-actions .secondary,
  body.home-d .home-d-page.techno-page .techno-actions .cta {
    width: 100%;
  }

  body.home-d .home-d-page.techno-page #filter-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    border-left: 0;
    border-top: 1px solid var(--line);
    transform: translateY(100%);
  }

  body.home-d .home-d-page.techno-page #filter-panel.active {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-d .home-d-page.techno-page #filter-panel,
  body.home-d .home-d-page.techno-page #filter-overlay,
  body.home-d .home-d-page.techno-page .link {
    transition: none;
  }
}

/* Titres saisis dans les détails techniques : sous le niveau des titres de section. */
body.home-d .home-d-page.techno-page .technical-details-formatted h1,
body.home-d .home-d-page.techno-page .technical-details-formatted h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 1.6em 0 .5em;
}
body.home-d .home-d-page.techno-page .technical-details-formatted h3,
body.home-d .home-d-page.techno-page .technical-details-formatted h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 1.4em 0 .4em;
}

/* Tailwind .hidden perd contre les règles de lot (display:flex) : on le rétablit. */
body.home-d .home-d-page.techno-page .hidden {
  display: none;
}

/* Avis de tri / mélange : bandeau fixe sobre, hors du flux de la grille. */
body.home-d .home-d-page.techno-page #sort-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}
body.home-d .home-d-page.techno-page #sort-notification.hidden {
  display: none;
}
body.home-d .home-d-page.techno-page #sort-notification p {
  margin: 0;
}
body.home-d .home-d-page.techno-page #notification-icon {
  display: none;
}
