/* Identity sources: sources/spec/DESIGN.md, AGENTS.md and app/content/identite.json.
 * Existing theme tokens supply both colour schemes and the local font fallbacks. */
.ueah-editorial {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  margin-block: 1.5rem;
  color: var(--ueah-texte, #101010);
  font-family: var(--ueah-police-texte, sans-serif);
  overflow-wrap: anywhere;
}
.ueah-editorial *, .ueah-editorial *::before, .ueah-editorial *::after { box-sizing: border-box; }
.ueah-editorial :is(h2, h3, h4) {
  margin-block: 0 1rem;
  max-width: 100%;
  font-family: var(--ueah-police-titres, sans-serif);
  line-height: 1.2;
  text-wrap: pretty;
}
.ueah-editorial :is(p, blockquote, figure, ul, ol, dl) { margin-block: 0 1rem; }
.ueah-editorial :is(blockquote, figure) { margin-inline: 0; }
.ueah-editorial > :last-child { margin-bottom: 0; }
.ueah-editorial :is(img, video) { display: block; max-width: 100%; height: auto; }
.ueah-editorial img { width: auto; }
.ueah-editorial a { color: inherit; text-underline-offset: .16em; }
.ueah-editorial :is(button, input, select, textarea) { max-width: 100%; font: inherit; }
.ueah-editorial :is(button, input, select, textarea):focus-visible,
.ueah-editorial a:focus-visible {
  outline: 3px solid var(--ueah-accent-focus, #101010);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ueah-accent-focus-contraste, #fff);
}
.ueah-editorial button {
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid currentColor;
  background: var(--ueah-fond, #fff);
  color: inherit;
  white-space: normal;
  cursor: pointer;
}
.ueah-mise-en-valeur, .ueah-encadre, .ueah-citation, .ueah-flash {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--ueah-brume, #dee7ed);
}
.ueah-mise-en-valeur, .ueah-citation { background: var(--ueah-sable, #c4b3a9); }
.ueah-citation blockquote { padding: 0; border: 0; font-size: 1.25em; }
.ueah-citation cite { font-size: 1rem; }
.ueah-encadre { border-inline-start: .25rem solid currentColor; }
.ueah-grid, .ueah-chiffres-cles > dl, .ueah-tuiles > ul, .ueah-partenaires > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}
.ueah-grid > *, .ueah-chiffres-cles > dl > *, .ueah-tuiles li, .ueah-partenaires li { min-width: 0; }
.ueah-card { padding: 1rem; background: var(--ueah-brume, #dee7ed); }
.ueah-card :last-child { margin-bottom: 0; }
.ueah-chiffres-cles dd { margin: 0; }
.ueah-number {
  display: inline-block;
  position: relative;
  max-width: 100%;
  margin-bottom: .25rem;
  padding-bottom: .12em;
  font-family: var(--ueah-police-titres, sans-serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ueah-number::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: .06em;
  background: currentColor;
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .ueah-number[data-ueah-animated="true"]::after { animation: ueah-number-underline .65s ease-out 1; }
}
@keyframes ueah-number-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ueah-flash { border: 1px solid currentColor; }
.ueah-flash [data-ueah-dismiss] { display: block; margin-top: 1rem; }
.ueah-telechargements ul { padding-inline-start: 1.25rem; }
.ueah-telechargements li + li { margin-top: 1rem; }
.ueah-editorial .ueah-credit { margin-top: .5rem; font-size: .875rem; }
@media (prefers-reduced-motion: reduce) {
  .ueah-editorial *, .ueah-editorial *::before, .ueah-editorial *::after { animation: none !important; transition: none !important; }
}
.ueah-faq-editor__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
