/* Remise à zéro légère + styles de base des éléments. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: var(--lh-title); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--color-brand); color: #fff; }

/* Focus clavier toujours visible */
:focus-visible { outline: 2px solid var(--color-brand-deep); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .drawer :focus-visible, .cta-band :focus-visible { outline-color: var(--color-brand-light); }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 200; background: var(--color-ink); color: var(--color-on-dark); padding: .75rem 1.25rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { flex: none; }

/* Emplacement d'image non renseignée (remplaçable depuis l'administration) */
.img-placeholder {
  display: block; width: 100%; height: 100%; min-height: 8rem;
  background: var(--color-sand) url("../images/pattern.svg") center / 96px; opacity: .9;
}

/* Texte long saisi dans l'administration */
.prose { max-width: 68ch; color: var(--color-text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: 7px; height: 7px; rotate: 45deg; background: var(--color-brand-deep); }
.prose blockquote { border-left: 2px solid var(--color-brand-deep); padding: .25em 0 .25em 1.25em; font-family: var(--font-display); font-style: italic; font-size: 1.2em; }
.prose--lead > p:first-child { font-size: 1.15em; }
.prose--light { color: var(--color-on-dark-muted); }
.prose--light a { color: var(--color-brand-light); }
.lead { font-family: var(--font-display); font-size: var(--fs-lead); line-height: 1.4; color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
