/* =========================================================================
   CinéGraph — design system éditorial
   Thème clair par défaut, thème sombre via [data-theme="dark"] (toggle JS).
   ========================================================================= */

:root {
  /* Couleurs — clair (par défaut) */
  --bg: #f7f3ec;
  --bg-raised: #fbf9f5;
  --surface: #ffffff;
  --surface-hover: #f2ede3;
  --ink: #17140f;
  --ink-soft: #3a352c;
  --text-muted: #6b6259;
  --text-dim: #948b7e;
  --hairline: rgba(23, 20, 15, 0.12);
  --hairline-strong: rgba(23, 20, 15, 0.24);
  --accent: #6e1423;
  --accent-ink: #ffffff;
  --accent-soft: #8a3a46;
  --focus-ring: #1b5fae;

  /* Typo */
  --serif: "Bodoni Moda", "Didot", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Échelle */
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1180px;
  --container-narrow: 760px;

  --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #14110f;
  --bg-raised: #1a1613;
  --surface: #1c1815;
  --surface-hover: #241f1a;
  --ink: #f2ede4;
  --ink-soft: #d9d2c6;
  --text-muted: #a89d8f;
  --text-dim: #766c60;
  --hairline: rgba(242, 237, 228, 0.12);
  --hairline-strong: rgba(242, 237, 228, 0.24);
  --accent: #a8a296;
  --accent-ink: #17140f;
  --accent-soft: #c4beac;
  --focus-ring: #6fa8dc;

  --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--paper-texture);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typographie éditoriale ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink);
  margin-top: 0.4rem;
}
.section-intro {
  color: var(--text-muted);
  max-width: 42rem;
  margin-top: 0.6rem;
  font-size: 0.98rem;
}
.editorial-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .btn-ghost:hover { color: var(--accent-soft); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.badge + .badge { margin-left: 0.6rem; }
.badge-accent { color: var(--accent); }
[data-theme="dark"] .badge-accent { color: var(--accent-soft); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
[data-theme="dark"] .logo span { color: var(--accent-soft); }

.main-nav {
  display: flex;
  gap: 1.4rem;
  flex: 1;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
[data-theme="dark"] .main-nav a[aria-current="page"] { border-bottom-color: var(--accent-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.header-search {
  position: relative;
}
.header-search input {
  width: 190px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem 0.45rem 2.1rem;
  font-size: 0.85rem;
  color: var(--ink);
}
.header-search input:focus { border-color: var(--accent); }
.header-search svg {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  pointer-events: none;
}
.theme-toggle, .nav-toggle {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--ink); border-color: var(--hairline-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
.nav-toggle { display: none; }

/* =========================================================================
   Hero (accueil)
   ========================================================================= */
.hero {
  padding: 5.5rem 0 0;
  border-bottom: 1px solid var(--hairline);
}
.hero-inner { max-width: 44rem; margin: 0; text-align: left; }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
[data-theme="dark"] .hero-title em { color: var(--accent-soft); }
.hero-filters {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-top: 1px solid var(--hairline);
}
.hero-filter {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-filter:hover { color: var(--ink); }
.hero-filter.active { color: var(--ink); border-bottom-color: var(--accent); }
[data-theme="dark"] .hero-filter.active { border-bottom-color: var(--accent-soft); }
.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-search {
  margin-top: 2rem;
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
}
.hero-search input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.hero-search input:focus { border-color: var(--accent); }

/* ---------- Bande chiffres clés ---------- */
.stat-band {
  border-bottom: 1px solid var(--hairline);
  padding: 2rem 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item .stat-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
}
.stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* =========================================================================
   Cartes métier
   ========================================================================= */
section.page-section { padding: 3.5rem 0; }
section.page-section + section.page-section { border-top: 1px solid var(--hairline); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.card-metier {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.card-metier:hover, .card-metier:focus-visible {
  border-color: var(--hairline-strong);
  background: var(--surface-hover);
}
.card-metier-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.3;
}
.card-metier-resume {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.card-metier-divider { border: none; border-top: 1px solid var(--hairline); margin: 0.15rem 0; }
.card-metier-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.card-metier-foot span:last-child { text-align: right; }
.card-metier-foot strong {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}
.card-metier-etudes { font-size: 0.76rem; color: var(--text-dim); }
.card-metier-cta { font-size: 0.78rem; color: var(--text-dim); }
.card-metier:hover .card-metier-cta { color: var(--accent); }
[data-theme="dark"] .card-metier:hover .card-metier-cta { color: var(--accent-soft); }

/* ---------- Cartes éditoriales (découverte) ---------- */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.discovery-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.15s ease;
}
.discovery-card:hover { border-color: var(--hairline-strong); }
.discovery-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.discovery-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.discovery-card .link-arrow { font-size: 0.85rem; color: var(--accent); margin-top: auto; }
[data-theme="dark"] .discovery-card .link-arrow { color: var(--accent-soft); }

/* =========================================================================
   Annuaire — barre de filtres
   ========================================================================= */
.filter-bar {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.filter-search { position: relative; flex: 1 1 240px; }
.filter-search svg {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-dim); pointer-events: none;
}
.filter-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem 0.55rem 2.3rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.filter-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-tag:hover { border-color: var(--hairline-strong); color: var(--ink); }
.filter-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }
.filter-group select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
}
.result-count { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; margin-left: auto; }
.empty-state { text-align: center; color: var(--text-muted); padding: 3.5rem 1rem; }

/* =========================================================================
   Fiche métier
   ========================================================================= */
.fiche-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--hairline); }
.fiche-header--flush { padding: 2.5rem 0 0; border-bottom: none; }
.fiche-header h1.section-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section-title--tight { margin-bottom: 1.5rem; }
.section-title--sm { font-size: 1.5rem; }
.section-divider { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--hairline); }
.page-section--flush { padding-top: 2.5rem; }
.breadcrumb { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--ink); }
.fiche-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--ink);
  margin-top: 0.6rem;
}
.fiche-resume { color: var(--text-muted); font-size: 1.02rem; margin-top: 0.7rem; max-width: 42rem; line-height: 1.6; }

.fiche-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}
.sidebar-quickfacts { order: -1; }
.fiche-main .modal-section,
.fiche-main .fiche-block { margin-bottom: 2.2rem; }
.fiche-block h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
[data-theme="dark"] .fiche-block h2 { color: var(--accent-soft); }
.fiche-block p { color: var(--ink-soft); line-height: 1.7; font-size: 0.98rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-list li {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sidebar-quickfacts {
  position: sticky;
  top: 130px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quickfact-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.quickfact-row span:first-child { color: var(--text-dim); }
.quickfact-row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.quickfact-salary {
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
}
.quickfact-salary h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 0.3rem; }
.quickfact-salary .amount { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.quickfact-salary .amount small { font-family: var(--sans); font-weight: 400; font-size: 0.68rem; color: var(--text-dim); }
.quickfact-salary .net { font-size: 0.82rem; color: var(--text-muted); }

.similar-metiers { padding: 3rem 0; border-top: 1px solid var(--hairline); }

/* =========================================================================
   Salaires — tableau
   ========================================================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
.table-salaires { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table-salaires th, .table-salaires td { padding: 0.75rem 1rem; text-align: left; white-space: nowrap; }
.table-salaires thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  user-select: none;
}
.table-salaires thead th:hover { color: var(--ink); }
.table-salaires tbody tr { border-bottom: 1px solid var(--hairline); }
.table-salaires tbody tr:last-child { border-bottom: none; }
.table-salaires tbody tr:hover { background: var(--surface-hover); }
.table-salaires td a { font-weight: 500; }
.table-salaires td a:hover { color: var(--accent); }
[data-theme="dark"] .table-salaires td a:hover { color: var(--accent-soft); }
.table-salaires .num { text-align: right; font-family: var(--mono); }

/* =========================================================================
   Études — cartes + timeline
   ========================================================================= */
.etudes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 3rem; }
.etudes-card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.3rem; }
.etudes-card-count { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.6rem; }
.etudes-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.etudes-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.etudes-card li { font-size: 0.86rem; color: var(--text-muted); }
.etudes-card li a:hover { color: var(--accent); }
[data-theme="dark"] .etudes-card li a:hover { color: var(--accent-soft); }

.timeline { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--hairline-strong); margin-left: 0.5rem; }
.timeline-step { position: relative; padding: 0 0 2rem 1.6rem; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.2rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
[data-theme="dark"] .timeline-step::before { background: var(--accent-soft); }
.timeline-step h4 { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.timeline-step p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.25rem; line-height: 1.55; }

/* =========================================================================
   À propos / Contact
   ========================================================================= */
.about-copy p { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; margin-bottom: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.contact-form .btn { align-self: flex-start; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.82rem; color: var(--text-dim); }
.form-row input, .form-row textarea {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.footer-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 1.5rem; line-height: 1.6; max-width: 46rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .fiche-layout { grid-template-columns: 1fr; }
  .sidebar-quickfacts { position: static; order: -1; }
  .discovery-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1.5rem 1rem;
  }
  .main-nav.open a { padding: 0.6rem 0; border-bottom: 1px solid var(--hairline); }
  .main-nav.open a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .header-search input { width: 140px; }
  .site-header-inner { position: relative; }
}

@media (max-width: 640px) {
  .site-header-inner { flex-wrap: wrap; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-search { flex: none; }
  .result-count { margin-left: 0; }
  .footer-grid { flex-direction: column; }
}
