/* ==========================================================================
   Candivio — base.css
   Réinitialisation légère, typographie, liens, focus. Dépend de tokens.css.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--cv-font);
  font-size: var(--cv-fs-body);
  line-height: var(--cv-lh-ui);
  color: var(--cv-navy-800);
  background: var(--cv-canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: var(--cv-lh-title); color: var(--cv-navy-800); }
h1 { font-size: var(--cv-fs-display); font-weight: var(--cv-fw-bold); }
h2 { font-size: var(--cv-fs-h2); font-weight: var(--cv-fw-bold); }
h3 { font-size: var(--cv-fs-h3); font-weight: var(--cv-fw-semibold); }
p  { margin: 0; }

a { color: var(--cv-blue-700); text-underline-offset: 2px; }
a:hover { color: var(--cv-blue-800); }

img, svg { display: block; max-width: 100%; }
svg { flex: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--cv-focus-ring); border-radius: var(--cv-radius-sm); }

/* L'attribut hidden l'emporte toujours sur le display d'un composant (.cv-notice, .cv-btn…). */
[hidden] { display: none !important; }

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

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