:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #172338;
  background: #f7f7f9;
  font-synthesis: none;
  line-height: 1.5;
  --ink: #172338;
  --muted: #526075;
  --blue: #1e5eff;
  --border: #d6dce6;
  --ed: #6b4c9a;
  --droite: #2166ac;
  --centre: #9a6700;
  --gauche: #b2182b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #164dd6;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select {
  font: inherit;
}
button,
select,
input {
  min-height: 44px;
}
button,
select {
  cursor: pointer;
}
button {
  background: #fff;
  color: var(--ink);
  border: 1px solid #a8b4c8;
  border-radius: 5px;
  padding: 0.5rem 0.85rem;
}
button:hover {
  border-color: var(--blue);
  background: #f1f5ff;
}
button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
input,
select {
  background: #fff;
  border: 1px solid #a8b4c8;
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
  max-width: 100%;
}
input[type="checkbox"] {
  min-height: 24px;
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
:focus-visible {
  outline: 3px solid #1e5eff;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 1rem;
  background: #fff;
  padding: 1rem;
  z-index: 10;
}
.skip-link:focus {
  top: 0.5rem;
}
.site-header {
  max-width: 1280px;
  margin: auto;
  padding: 1.3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand strong {
  color: var(--blue);
}
.brand span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0;
  margin-top: 0.35rem;
  font-weight: 500;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.site-footer {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p {
  max-width: 57ch;
}
.site-footer nav {
  max-width: 420px;
  align-content: flex-start;
}
main {
  max-width: 1200px;
  margin: 1.7rem auto 0;
  padding: 0 1rem;
  min-height: 60vh;
}
h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 0 0 0.65rem;
  max-width: 36ch;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 1.8rem 0 0.65rem;
}
h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.5rem;
}
p {
  margin: 0.6rem 0;
}
.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 80ch;
}
.freshness {
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.83rem;
  margin: 1rem 0;
}
.notice {
  background: #eef3ff;
  border-left: 4px solid #1e5eff;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.notice.warning {
  background: #fff5df;
  border-color: #9a6700;
}
.chart-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 1rem;
}
.filters {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.filters label,
.advanced-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  flex: 1;
  min-width: 140px;
}
.filters label input,
.filters label select,
.advanced-grid select {
  font-size: 0.88rem;
  font-weight: 400;
  width: 100%;
}
.filters label.date {
  flex: 0 1 155px;
}
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.6rem 0;
}
.actions button,
.actions a {
  font-size: 0.82rem;
}
.actions a {
  padding: 0.5rem;
}
.quiet {
  color: var(--muted);
  font-size: 0.85rem;
}
.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400 !important;
  min-width: auto !important;
}
.advanced {
  padding: 0.5rem 0 0.8rem;
  border-bottom: 1px solid var(--border);
}
summary {
  cursor: pointer;
  min-height: 36px;
  display: list-item;
}
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 0.6rem 0;
}
.chart {
  height: 390px;
  width: 100%;
}
.chart.multiple {
  height: 660px;
}
.legend {
  display: flex;
  gap: 0.4rem 1.2rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
.legend label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.swatch {
  width: 24px;
  height: 4px;
  display: inline-block;
}
.chart-caption {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 100ch;
  margin: 0.75rem 0;
}
.chart-caption p {
  margin: 0.2rem 0;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 220px;
  background: #f7f9fc;
  border-radius: 4px;
  padding: 2rem;
  color: var(--muted);
}
.empty strong {
  font-size: 1.1rem;
  color: var(--ink);
}
.empty p {
  max-width: 65ch;
}
.selection {
  border-top: 1px solid var(--border);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}
.selection label {
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin: 0.7rem 0;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e2e6ed;
  vertical-align: top;
}
thead th {
  font-size: 0.8rem;
  background: #eff2f8;
  color: #38475e;
}
th[scope="row"] {
  font-weight: 600;
}
td.number,
th.number {
  text-align: right;
  white-space: nowrap;
}
tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}
caption {
  text-align: left;
  padding: 0.8rem;
  font-weight: 600;
}
.group-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.group-label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.survey-table thead th {
  max-width: 230px;
  min-width: 165px;
}
.survey-table thead th:first-child {
  min-width: 150px;
}
.survey-table th[scope="row"] {
  position: sticky;
  left: 0;
  background: #fff;
}
.survey-table .detail-cell {
  min-width: 200px;
}
.survey-table td details ul {
  padding-left: 1rem;
  font-size: 0.8rem;
}
.prose {
  max-width: 78ch;
}
.prose li {
  margin: 0.4rem 0;
}
.definition {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 0.4rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
}
.definition a {
  overflow-wrap: anywhere;
}
.source-list {
  padding-left: 1.2rem;
}
.source-list li {
  padding: 0.35rem 0;
}
.source-list small {
  display: block;
  color: var(--muted);
}
.catalog-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.catalog-controls label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}
.catalog-controls input {
  width: 320px;
}
.pagination {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-end;
  margin: 1rem 0;
}
.version {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.versions li {
  margin: 0.7rem 0;
}
.error {
  color: #972026;
  background: #fff0f0;
  border-left: 4px solid #b2182b;
  padding: 1rem;
}
.loading {
  padding: 2rem 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.badge {
  display: inline-block;
  background: #eff2f8;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
}
.second-tour {
  border-top: 2px solid var(--border);
  margin-top: 2rem;
  padding-top: 0.4rem;
}
.mobile-scenario {
  display: none;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.quality-grid div {
  background: #fff;
  border-bottom: 3px solid var(--border);
  padding: 0.8rem;
}
.quality-grid strong {
  font-size: 1.6rem;
  display: block;
}
.quality-grid span {
  font-size: 0.82rem;
}
.survey-cards {
  display: none;
}
.source-row {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.source-row h2 {
  margin-top: 0;
}
.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.download-grid a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  padding: 0.7rem 1rem;
}
.help {
  font-size: 0.85rem;
  color: var(--muted);
}
.date-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.date-links button {
  min-height: 34px;
  padding: 0.2rem 0.5rem;
}
.export-note {
  white-space: normal;
}
.fixed-notice {
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 850px) {
  .site-header {
    padding: 1rem;
    gap: 1rem;
    align-items: flex-start;
  }
  .site-header nav {
    gap: 0.6rem 1rem;
    justify-content: flex-end;
  }
  .site-footer {
    margin: 2rem 1rem 0;
    flex-direction: column;
    gap: 1rem;
  }
  .chart-panel {
    padding: 0.8rem;
  }
  main {
    margin-top: 1.2rem;
  }
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-table {
    display: none;
  }
  .survey-cards {
    display: block;
  }
  .survey-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1rem;
    margin: 0.7rem 0;
  }
  .survey-card h2 {
    margin: 0 0 0.5rem;
  }
  .survey-card p {
    font-size: 0.85rem;
  }
  .mobile-scenario {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 0;
  }
  .survey-table th[scope="row"] {
    font-size: 0.8rem;
    min-width: 120px;
  }
  .definition {
    grid-template-columns: 120px 1fr;
  }
}
@media (max-width: 520px) {
  .site-header {
    display: block;
  }
  .brand {
    display: inline-block;
    font-size: 1.4rem;
  }
  .site-header nav {
    justify-content: flex-start;
    margin-top: 1rem;
    gap: 0.5rem 1rem;
  }
  .site-header nav a {
    font-size: 0.8rem;
  }
  main {
    padding: 0 0.75rem;
  }
  .chart {
    height: 330px;
  }
  .chart.multiple {
    height: 700px;
  }
  .chart-panel {
    border-radius: 5px;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding: 0.65rem;
  }
  .filters {
    gap: 0.5rem;
  }
  .filters label {
    min-width: 130px;
  }
  .filters label.date {
    flex: 1 1 130px;
  }
  .legend {
    gap: 0.4rem 0.8rem;
  }
  .legend label {
    font-size: 0.78rem;
  }
  .definition {
    display: block;
  }
  .definition dt {
    margin-top: 0.6rem;
  }
  .catalog-controls input {
    width: 100%;
  }
  .catalog-controls label {
    width: 100%;
  }
  th,
  td {
    padding: 0.55rem 0.6rem;
  }
  .freshness {
    gap: 0.3rem;
    font-size: 0.77rem;
  }
  .site-footer nav {
    gap: 0.7rem 1rem;
  }
  .selection select {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header nav,
  .filters,
  .advanced,
  .actions,
  .site-footer nav,
  .date-links {
    display: none;
  }
  .chart-panel {
    border: 0;
    padding: 0;
  }
  body {
    background: #fff;
  }
  .table-wrap {
    overflow: visible;
  }
  main {
    max-width: none;
  }
  .chart {
    break-inside: avoid;
  }
}

.legend {
  border: 0;
  padding: 0;
}

.to-verify {
  margin-top: 2rem;
}
.review-list > li {
  margin-bottom: 1rem;
}
.review-list ul {
  margin: 0.25rem 0;
}

.primary-sources {
  margin-top: 0.5rem;
}
.primary-sources label {
  display: block;
}
.primary-sources textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0.25rem 0;
  font: inherit;
}

.conditions-table td,
.conditions-table th {
  vertical-align: top;
  min-width: 9rem;
}
.conditions-table td.primary-sources {
  min-width: 18rem;
}
.missing {
  color: #9a3412;
  font-style: italic;
}
