/* a11yNot FR — palette unifiée (chrome du site) */

:root {
  --a11y-ink: #1c2834;
  --a11y-ink-muted: #4a5d6a;
  --a11y-brand: #1a6b6b;
  --a11y-brand-deep: #124f4f;
  --a11y-accent: #2a8fbd;
  --a11y-surface: #eef3f2;
  --a11y-card: #ffffff;
  --a11y-border: #b8cbc8;
  --a11y-radius: 8px;
  --color-primary: #1c2834 !important;
}

h1.smaller {
  font-size: 2.68832em;
}

/* Hiérarchie fluide — scope a11yNot (feuille chargée sur les pages du site) */
.a11ynot-site {
  font-size: clamp(1rem, 0.98rem + 0.12vw, 1.0625rem);
  line-height: 1.55;
}

.a11ynot-site h1,
.a11ynot-site .page-header-title {
  font-size: clamp(1.85rem, 1.5rem + 1.35vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;
}

.a11ynot-site h2,
.a11ynot-site .h2 {
  color: var(--a11y-brand-deep);
  font-size: clamp(1.22rem, 1.08rem + 0.4vw, 1.38rem);
  line-height: 1.3;
}

.a11ynot-site h3,
.a11ynot-site .h3 {
  font-size: clamp(1.1rem, 1.02rem + 0.25vw, 1.2rem);
  line-height: 1.35;
}

.a11ynot-site h4,
.a11ynot-site .h4,
.a11ynot-site .a11ynot-act-case-block-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.a11ynot-site {
  --color-special: var(--a11y-brand);
}

.a11ynot-site .page-header-title {
  color: var(--a11y-ink);
}

.a11ynot-site .page-header-desc {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 42rem;
}

.a11ynot-home-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--a11y-brand);
}

.a11ynot-home-body {
  max-width: 62rem;
}

.a11ynot-fiche-support-lead {
  font-size: 0.98rem;
  color: var(--a11y-ink-muted);
  max-width: 42rem;
  margin: 0 0 0.5rem;
}

.a11ynot-scope .page-header .a11ynot-nav--primary {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--a11y-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.a11ynot-nav-list--segment {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
}

.a11ynot-nav-separator {
  color: var(--a11y-ink-muted);
  font-weight: 400;
  user-select: none;
  line-height: 1;
}

.a11ynot-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a11ynot-nav-list a {
  color: var(--a11y-brand-deep);
  text-decoration: none;
  font-weight: 500;
}

.a11ynot-nav-list a:hover,
.a11ynot-nav-list a:focus-visible {
  color: var(--a11y-accent);
  text-decoration: underline;
  outline: none;
}

.a11ynot-nav-list a[aria-current="page"] {
  color: var(--a11y-ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--a11y-brand);
}

.a11ynot-home-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 36rem) {
  .a11ynot-home-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 52rem) {
  .a11ynot-home-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.a11ynot-home-action--support {
  border-color: var(--a11y-accent);
  background: #f4f9fc;
}

.a11ynot-home-action--reference {
  border-color: #6b5b95;
  background: #f8f6fb;
}

.a11ynot-home-examples-title {
  font-size: clamp(1.2rem, 1.08rem + 0.35vw, 1.35rem);
  margin: 2rem 0 0.65rem;
  color: var(--a11y-brand-deep);
}

.a11ynot-home-examples {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 42rem;
  line-height: 1.55;
}

.a11ynot-scope .a11ynot-act-case-not {
  padding: 0 0.9rem 0.75rem;
  margin: 0;
}

.a11ynot-scope .page-header-act-en {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--a11y-ink-muted);
}

.a11ynot-scope .page-header-act-en [lang="en"] {
  font-style: normal;
  color: var(--a11y-ink);
}

.a11ynot-scope .a11ynot-act-w3c-link {
  font-size: 1rem;
  margin-top: 1rem;
}

.a11ynot-scope .a11ynot-act-case-meta [lang="en"] a {
  font-weight: 600;
}

.a11ynot-scope .a11ynot-act-page-title-demo {
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px dashed var(--a11y-border);
  border-radius: 4px;
}

.a11ynot-home-action {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--a11y-border);
  border-radius: var(--a11y-radius);
  background: var(--a11y-card);
  text-decoration: none;
  color: var(--a11y-ink);
}

.a11ynot-home-action--primary {
  border-color: var(--a11y-brand);
  background: var(--a11y-surface);
}

.a11ynot-home-action:hover,
.a11ynot-home-action:focus-visible {
  border-color: var(--a11y-brand-deep);
  outline: 2px solid var(--a11y-accent);
  outline-offset: 2px;
}

.a11ynot-home-action-label {
  display: block;
  font-weight: 650;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.a11ynot-home-action-meta {
  font-size: 1rem;
  color: var(--a11y-ink-muted);
}

.a11ynot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.a11ynot-card {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--a11y-border);
  border-radius: var(--a11y-radius);
  background: var(--a11y-card);
  height: 100%;
}

.a11ynot-card:hover,
.a11ynot-card:focus-within {
  border-color: var(--a11y-brand);
}

.a11ynot-card-title {
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

.a11ynot-card-title a {
  text-decoration: none;
  color: var(--a11y-ink);
}

.a11ynot-card-title a:hover,
.a11ynot-card-title a:focus-visible {
  color: var(--a11y-brand-deep);
  text-decoration: underline;
}

.a11ynot-card-title code {
  font-size: 0.82em;
  color: var(--a11y-brand);
}

.a11ynot-scope .a11ynot-criterion-block {
  margin-bottom: 2rem;
}

.a11ynot-scope .a11ynot-criterion-block > h2 {
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.28rem);
  color: var(--a11y-brand-deep);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--a11y-border);
}

.a11ynot-scope .a11ynot-list-intro {
  margin-bottom: 1rem;
  color: var(--a11y-ink-muted);
}

.a11ynot-scope .a11ynot-brand a {
  color: var(--a11y-brand);
  font-weight: 650;
}

.a11ynot-scope .a11ynot-doc {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--a11y-border);
  border-radius: var(--a11y-radius);
  background: var(--a11y-surface);
}

.a11ynot-scope .a11ynot-fiche-support {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--a11y-brand);
  border-radius: var(--a11y-radius);
  background: #f6fbfa;
}

.a11ynot-scope .a11ynot-fiche-disclaimer {
  font-size: 1rem;
  color: var(--a11y-ink-muted);
  margin: 0 0 0.75rem;
}

.a11ynot-scope .a11ynot-fiche-standalone {
  font-size: 1rem;
  margin: 0.75rem 0 0;
}

.a11ynot-scope .a11ynot-fiche-body details {
  margin-top: 0.75rem;
}

.a11ynot-scope .a11ynot-fiche-support > .h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.28rem);
  color: var(--a11y-brand-deep);
  margin: 0 0 0.5rem;
}

.a11ynot-scope .a11ynot-fiche-body h2:first-child,
.a11ynot-scope article.a11ynot-fiche-support h2:first-child {
  margin-top: 0;
}

.a11ynot-scope .a11ynot-card-desc {
  color: var(--a11y-ink-muted);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.a11ynot-scope .a11ynot-rgaa-chain {
  margin: 1.5rem 0;
}

.a11ynot-scope .a11ynot-act-case {
  margin: 1rem 0 1.25rem;
  padding: 0;
  border: 1px solid var(--a11y-border);
  background: var(--a11y-card);
  border-radius: var(--a11y-radius);
  overflow: hidden;
}

.a11ynot-scope .a11ynot-act-case-head {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: var(--a11y-surface);
  border-bottom: 1px solid var(--a11y-border);
}

.a11ynot-scope .a11ynot-act-case-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0.45rem 0 0.25rem;
  color: var(--a11y-ink);
}

.a11ynot-scope .a11ynot-act-case-meta {
  margin: 0;
  color: var(--a11y-ink-muted);
}

.a11ynot-scope .a11ynot-act-case-block {
  padding: 0.65rem 0.9rem 0.75rem;
}

.a11ynot-scope .a11ynot-act-case-block + .a11ynot-act-case-block {
  border-top: 1px dashed var(--a11y-border);
}

.a11ynot-scope .a11ynot-act-case-block-title {
  font-weight: 650;
  margin: 0 0 0.5rem;
  color: var(--a11y-brand-deep);
  font-size: 1.05rem;
}

.a11ynot-scope .a11ynot-badge--act-failed {
  background: #fdebd0;
  color: #7c4a03;
}

.a11ynot-scope .a11ynot-badge--act-passed {
  background: #d4ebe9;
  color: var(--a11y-brand-deep);
}

.a11ynot-scope .a11ynot-act-case--failed {
  border-left-color: #b45309;
}

.a11ynot-scope .a11ynot-act-case--passed {
  border-left-color: var(--a11y-brand);
}

.a11ynot-scope .a11ynot-act-case-label {
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--a11y-ink-muted);
}

.a11ynot-scope .a11ynot-act-case-preview {
  margin: 0.5rem 0 0.65rem;
  padding: 0.85rem 1rem;
}

.a11ynot-scope .a11ynot-act-case-preview-note {
  color: var(--a11y-ink-muted);
  margin: 0 0 0.65rem;
}

.a11ynot-scope .a11ynot-act-case-code-heading {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--a11y-ink-muted);
  margin: 0.5rem 0 0.25rem;
}

.a11ynot-scope .a11ynot-act-case pre {
  margin: 0;
  font-size: 1rem;
  overflow-x: auto;
  line-height: 1.45;
}

.a11ynot-scope .a11ynot-act-case-not {
  font-size: 1rem;
  margin: 0.5rem 0 0;
}

.a11ynot-scope .a11ynot-wcag-sc-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.a11ynot-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
}

.a11ynot-badge--heritage {
  background: #e4e8ea;
  color: #444;
}

.a11ynot-badge--actuel {
  background: #d4ebe9;
  color: var(--a11y-brand-deep);
}

.a11ynot-badge--nouveau {
  background: #e3efe3;
  color: #2d5a2d;
}

.a11ynot-scope .a11ynot-credits {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--a11y-ink-muted);
}

.a11ynot-scope .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tableaux markdown / thème — remplace rouge/violet higo */
.a11ynot-site table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.45;
}

.a11ynot-site table caption {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.a11ynot-site table th,
.a11ynot-site table td {
  border: 1px solid var(--a11y-border);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  background: var(--a11y-card);
  color: var(--a11y-ink);
}

.a11ynot-site table th {
  background: var(--a11y-brand-deep);
  color: #fff;
  font-weight: 600;
}

.a11ynot-site table thead th a,
.a11ynot-site table tbody th a {
  color: #e8f6f4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.a11ynot-site table thead th a:hover,
.a11ynot-site table thead th a:focus-visible,
.a11ynot-site table tbody th a:hover,
.a11ynot-site table tbody th a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

.a11ynot-site table tbody tr:nth-child(even) td {
  background: var(--a11y-surface);
}

.a11ynot-site table a {
  color: var(--a11y-brand-deep);
}

body:has(.a11ynot-site) .main-nav .menu,
body:has(.a11ynot-site) .main-nav .nav-toggle {
  display: none;
}

body:has(.a11ynot-site) header.container--xl {
  border-bottom: 2px solid var(--a11y-brand);
  margin-bottom: 0.5rem;
}
