/* JobLeaf Design System — Base
   Réinitialisation minimale et styles d'élément. Aucune classe de composant. */

/* Plus Jakarta Sans, police variable (200 à 800), servie localement. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

/* D'une page à l'autre, un fondu plutôt qu'un flash blanc (navigateurs qui
   le permettent ; sans effet ailleurs). Aucune animation si la personne les réduit. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ca-color-canvas);
  color: var(--ca-color-text);
  font-family: var(--ca-font-family);
  font-size: var(--ca-font-size-body);
  line-height: var(--ca-line-height-base);
  /* L'espace de Plus Jakarta Sans est étroite, surtout en gras : on l'élargit
     un peu pour que les mots restent séparés à l'œil. */
  word-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--ca-line-height-tight);
  color: var(--ca-color-text);
  /* Casse phrase : jamais de capitalisation mot à mot. */
  text-transform: none;
}

h1 { font-size: var(--ca-font-size-h1); font-weight: var(--ca-font-weight-bold); }
h2 { font-size: var(--ca-font-size-h2); font-weight: var(--ca-font-weight-bold); }
h3 { font-size: var(--ca-font-size-h3); font-weight: var(--ca-font-weight-semibold); }

p { margin: 0; }

a {
  color: var(--ca-color-brand);
  text-underline-offset: 2px;
}

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

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

/* Focus visible de 3 px, exigé sur toutes les vues. */
:focus-visible {
  outline: 3px solid var(--ca-color-focus);
  outline-offset: 2px;
  border-radius: var(--ca-radius-xs);
}

[hidden] { display: none !important; }

.ca-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ca-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: var(--ca-space-3) var(--ca-space-4);
  background: var(--ca-color-surface-raised);
  border: 1px solid var(--ca-color-border);
  border-radius: var(--ca-radius-sm);
  box-shadow: var(--ca-shadow-md);
}
.ca-skip-link:focus { left: var(--ca-space-4); top: var(--ca-space-4); }

/* La motion confirme une action ; elle ne doit jamais ralentir la lecture. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
