/* Cap Impôt : feuille de style commune
   Mise en page : une carte de navigation. Bandeaux marine pour le cap (en-tête, accueil, contact),
   pages claires pour la route, codes de formulaires (T4, RL-1, TP-1) en chasse fixe, comme des balises. */

:root {
  /* Couleurs */
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --fg: #13233D;
  --fg-muted: #4B5B74;
  --line: #D3DCE8;
  --brand: #0B2545;          /* marine : bandeaux */
  --brand-fg: #F2F6FB;
  --brand-muted: #A9BCD6;
  --brand-line: #2A4569;
  --accent: #C8213A;         /* rouge balise : actions, aiguille */
  --accent-hover: #A81A30;
  --accent-fg: #FFFFFF;
  --accent-text: #B01E34;
  --link: #1D4E89;
  --chip-bg: #E6EDF6;
  --chip-fg: #1D3557;
  --todo-bg: rgba(255, 196, 0, 0.32);
  --todo-line: #9A6E00;
  --focus: #1D4E89;
  --shadow: rgba(11, 37, 69, 0.30);

  /* Typographie */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
  --t-3xl: clamp(2.375rem, 1.5rem + 3.8vw, 4.25rem);

  /* Espaces */
  --radius: 12px;
  --wrap: 72rem;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1422;
    --surface: #0F1E33;
    --fg: #E6EDF6;
    --fg-muted: #A5B4C9;
    --line: #22385A;
    --brand: #0E2A4F;
    --brand-fg: #F2F6FB;
    --brand-muted: #9FB3CF;
    --brand-line: #2C4B78;
    --accent: #D8344C;
    --accent-hover: #E4566B;
    --accent-fg: #FFFFFF;
    --accent-text: #F06A7E;
    --link: #8DB9F0;
    --chip-bg: #17305A;
    --chip-fg: #D6E3F5;
    --todo-bg: rgba(255, 196, 0, 0.24);
    --todo-line: #E2B23F;
    --focus: #8DB9F0;
    --shadow: rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A1422;
  --surface: #0F1E33;
  --fg: #E6EDF6;
  --fg-muted: #A5B4C9;
  --line: #22385A;
  --brand: #0E2A4F;
  --brand-fg: #F2F6FB;
  --brand-muted: #9FB3CF;
  --brand-line: #2C4B78;
  --accent: #D8344C;
  --accent-hover: #E4566B;
  --accent-fg: #FFFFFF;
  --accent-text: #F06A7E;
  --link: #8DB9F0;
  --chip-bg: #17305A;
  --chip-fg: #D6E3F5;
  --todo-bg: rgba(255, 196, 0, 0.24);
  --todo-line: #E2B23F;
  --focus: #8DB9F0;
  --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
}

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--f-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); font-weight: 760; }
h2 { font-size: var(--t-2xl); font-weight: 720; }
h3 { font-size: var(--t-lg); font-weight: 650; line-height: 1.25; letter-spacing: -0.005em; }

p, ul, ol, dl, dd, figure { margin: 0; }

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.band :focus-visible,
.site-header :focus-visible { outline-color: var(--brand-fg); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Petits éléments ---------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.band .eyebrow,
.site-header .eyebrow { color: var(--brand-muted); }

.code {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 0.05em 0.45em;
  border-radius: 4px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  white-space: nowrap;
}
.band .code {
  background: var(--brand-line);
  color: var(--brand-fg);
}

/* Zones à compléter avant la mise en ligne */
.todo {
  background: var(--todo-bg);
  color: inherit;
  outline: 1.5px dashed var(--todo-line);
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.2em;
}

.apercu {
  background: var(--todo-bg);
  border-bottom: 1.5px dashed var(--todo-line);
  color: var(--fg);
  font-size: var(--t-sm);
}
.apercu .wrap { padding-block: 0.55rem; }

.small {
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
.band .small { color: var(--brand-muted); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.65em 1.25em;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: var(--t-base);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: transparent;
  border-color: currentColor;
  text-decoration: underline;
}
.btn-small {
  min-height: 2.5rem;
  padding: 0.45em 1em;
  font-size: var(--t-sm);
}

/* ---------- Bouton flottant « Prendre rendez-vous » ----------
   Caché en haut de page et dans les zones marquées data-sans-fab (contact, pied de page). */

.fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.65em 1.25em;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: var(--t-base);
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 24px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, background-color 0.15s ease;
}
.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}
.fab:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.fab svg { width: 1.2em; height: 1.2em; flex: none; }
@media (max-width: 480px) {
  .fab { font-size: var(--t-sm); min-height: 2.5rem; padding: 0.55em 1em; }
}

/* ---------- En-tête ---------- */

.site-header {
  background: var(--brand);
  color: var(--brand-fg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-fg);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 760;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.025em;
}
.logo-mark { width: 3rem; height: 3rem; flex: none; }
@media (max-width: 480px) {
  .logo { font-size: 1.5rem; gap: 0.5rem; }
  .logo-mark { width: 2.5rem; height: 2.5rem; }
}
.logo-ring { fill: none; stroke: var(--brand-fg); stroke-width: 7; stroke-linecap: round; }
.logo-hub { fill: var(--brand-fg); }
.needle-n { fill: var(--accent); }
.needle-s { fill: var(--brand-muted); }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.nav a {
  color: var(--brand-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-sm);
}
.nav a:not(.btn):hover { text-decoration: underline; }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.nav .btn { color: var(--accent-fg); }
.nav .lang {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  padding: 0.2em 0.5em;
  border: 1px solid var(--brand-muted);
  border-radius: 4px;
}
.nav .lang:hover { text-decoration: none; border-color: var(--brand-fg); }
@media (max-width: 800px) {
  .js .nav .lang { border: 0; border-top: 1px solid var(--brand-line); border-radius: 0; padding: 0.75rem 0; font-size: var(--t-base); }
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--brand-fg);
  background: transparent;
  border: 1.5px solid var(--brand-muted);
  border-radius: 6px;
  padding: 0.4em 0.9em;
  cursor: pointer;
}

@media (max-width: 800px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) {
    padding-block: 0.75rem;
    border-top: 1px solid var(--brand-line);
    font-size: var(--t-base);
  }
  .js .nav .btn { margin-top: 0.75rem; }
}

/* ---------- Bandeaux ---------- */

.band {
  background: var(--brand);
  color: var(--brand-fg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
.hero-text {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}
.lead {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--brand-muted);
  max-width: 36em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-facts {
  list-style: none;
  padding: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: var(--t-sm);
  color: var(--brand-muted);
  border-top: 1px solid var(--brand-line);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Boussole */
.compass {
  justify-self: center;
  width: min(100%, 22rem);
  display: grid;
  gap: 0.9rem;
  text-align: center;
}
.compass svg { width: 100%; height: auto; display: block; }
.compass figcaption {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-size: var(--t-sm);
  color: var(--brand-muted);
}
.c-ring { fill: none; stroke: var(--brand-line); stroke-width: 2; }
.c-ticks {
  fill: none;
  stroke: var(--brand-muted);
  stroke-width: 7;
  stroke-dasharray: 1.2 7.1776;
  stroke-dashoffset: 0.6;
  opacity: 0.7;
}
.c-ticks-major {
  fill: none;
  stroke: var(--brand-fg);
  stroke-width: 13;
  stroke-dasharray: 2.4 47.8655;
  stroke-dashoffset: 1.2;
}
.c-card {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  fill: var(--brand-fg);
  text-anchor: middle;
  dominant-baseline: central;
}
.c-mark { fill: var(--accent); }
.c-hub { fill: var(--brand-fg); stroke: var(--brand); stroke-width: 3; }
.needle {
  transform-box: view-box;
  transform-origin: 120px 120px;
  transform: rotate(297deg);
  animation: cap-swing 1.9s cubic-bezier(0.2, 0.75, 0.25, 1) 0.3s both;
}
@keyframes cap-swing {
  0% { transform: rotate(0deg); }
  65% { transform: rotate(304deg); }
  100% { transform: rotate(297deg); }
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .compass { width: min(100%, 15rem); }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section > .wrap {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
}
.section-lead {
  color: var(--fg-muted);
  font-size: var(--t-lg);
  line-height: 1.5;
}

/* Situations */
.situations {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
.situation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}
.situation p { color: var(--fg-muted); }
.situations-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

/* Carte mise en avant : renvoi vers la page Nouveaux arrivants */
.situation-feature {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}
.situation-feature .feature-text {
  display: grid;
  gap: 0.6rem;
  flex: 1 1 22rem;
  min-width: 0;
}
.situation-feature p { color: var(--brand-muted); max-width: 40rem; }
.situation-feature .code {
  background: var(--brand-line);
  color: var(--brand-fg);
}
.situation-feature :focus-visible { outline-color: var(--brand-fg); }

/* Calendrier fiscal (page Travailleurs autonomes) */
.calendar {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}
.cal-list {
  list-style: none;
  padding: 0;
  display: grid;
}
.cal-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-top: 1px solid var(--brand-line);
  color: var(--brand-fg);
}
.cal-date {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--brand-fg);
  white-space: nowrap;
}
.cal-note {
  font-size: var(--t-sm);
  color: var(--brand-muted);
}

/* Liste à cocher */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem 2rem;
  align-content: start;
}
.checklist li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}
.checklist li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.38em;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

/* Appel à l'action en bandeau */
.cta-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: 46rem;
  padding-block: var(--space-section);
}
.cta-inner .lead { color: var(--brand-muted); }
.codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Étapes : une vraie séquence, d'où la numérotation */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  counter-reset: etape;
}
.step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 1.4rem;
  border-top: 2px dashed var(--line);
  counter-increment: etape;
  min-width: 0;
}
.step::before {
  content: "Étape " counter(etape);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.step::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.step p { color: var(--fg-muted); }
.steps-en .step::before { content: "Step " counter(etape); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Tarifs */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
.prices-block {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.prices {
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--fg);
}
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.price-name {
  font-weight: 700;
  font-size: var(--t-lg);
  line-height: 1.3;
}
.price-detail {
  grid-column: 1;
  color: var(--fg-muted);
  font-size: var(--t-sm);
}
.price-amount {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  text-align: right;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .price { grid-template-columns: minmax(0, 1fr); }
  .price-amount {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
}

/* À propos */
.commitments {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.commitments li {
  display: grid;
  gap: 0.3rem;
}
.commitments p { color: var(--fg-muted); }
.bio {
  display: grid;
  gap: 1rem;
  font-size: var(--t-lg);
  line-height: 1.55;
}

/* Questions fréquentes : toutes visibles, sans clic */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.qa {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.qa p { color: var(--fg-muted); }
@media (max-width: 760px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: start;
  padding-block: var(--space-section);
}
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
}
.contact-text {
  display: grid;
  gap: 1.25rem;
}
.contact-text .lead { color: var(--brand-muted); }
.contact-list {
  display: grid;
  gap: 1.1rem;
}
.contact-list div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--brand-line);
}
.contact-list dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.contact-list dd {
  font-size: var(--t-lg);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.notice {
  font-size: var(--t-sm);
  color: var(--brand-muted);
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: var(--t-sm);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 3rem;
  padding-block: 2rem 2.5rem;
}
.footer-brand {
  display: grid;
  gap: 0.3rem;
  max-width: 28rem;
}
.footer-brand strong {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--fg);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.footer-logo svg { width: 2.25rem; height: 2.25rem; flex: none; }
.footer-ring { fill: none; stroke: var(--fg); stroke-width: 7; stroke-linecap: round; }
.footer-hub { fill: var(--fg); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Pages intérieures ---------- */

.page-head .wrap {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.page-head h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem); }
.page-head .lead { max-width: 40em; }

/* Lexique */
.lexique-body {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: var(--space-section);
}
.search {
  display: grid;
  gap: 0.5rem;
  max-width: 30rem;
}
.search label { font-weight: 600; }
.search input {
  font: inherit;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  width: 100%;
}
.search input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.groupe {
  display: grid;
  gap: 1rem;
}
.groupe h2 { font-size: var(--t-xl); }
.termes {
  display: grid;
  border-top: 2px solid var(--fg);
}
.terme {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.terme-nom {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.terme-nom .code {
  justify-self: start;
  font-size: 0.95rem;
}
.terme-nom strong { line-height: 1.3; }
.terme-def {
  display: grid;
  gap: 0.6rem;
  max-width: 42rem;
}
.terme-fr {
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
.fr-label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-right: 0.6em;
}
@media (max-width: 640px) {
  .terme { grid-template-columns: minmax(0, 1fr); }
}

/* Document (politique de confidentialité) */
.doc {
  padding-block: var(--space-section);
}
.doc-inner {
  max-width: 50rem;
  display: grid;
  gap: 2.25rem;
}
.doc section {
  display: grid;
  gap: 0.75rem;
}
.doc h2 { font-size: var(--t-xl); }
.doc ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.alert {
  background: var(--todo-bg);
  border: 1.5px dashed var(--todo-line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
