/* Bell’Shaïn — base v3 (PRD 2, R0-5).
   Polices auto-hébergées (mêmes fichiers que R0-3) et socle de body.v3.
   Tout est limité à body.v3 : sans cette classe, ce fichier ne change rien.
   Les valeurs viennent de tokens.css. */

@layer base, components;

/* ---------- Polices (copie des @font-face de style.css, chemins relatifs à css/v3/) ---------- */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/cormorant-garamond-latin-500-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:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/cormorant-garamond-latin-ext-500-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}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/cormorant-garamond-latin-600-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:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/cormorant-garamond-latin-ext-600-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}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/montserrat-latin-400-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:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/montserrat-latin-ext-400-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}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/montserrat-latin-500-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:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/montserrat-latin-ext-500-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}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/montserrat-latin-600-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:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/montserrat-latin-ext-600-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}

@layer base {
  body.v3,
  body.v3 *,
  body.v3 *::before,
  body.v3 *::after {
    box-sizing: border-box;
  }

  body.v3 {
    margin: 0;
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--font-text);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-text);
    -webkit-font-smoothing: antialiased;
  }

  body.v3 :is(h1, h2, h3, h4) {
    margin: 0;
    font-family: var(--font-title);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-title);
    font-variant-numeric: lining-nums;
    color: var(--c-ink);
  }
  body.v3 h1 { font-size: var(--fs-h1); }
  body.v3 h2 { font-size: var(--fs-h2); }
  body.v3 h3 { font-size: var(--fs-h3); font-weight: var(--fw-medium); }

  body.v3 :is(p, ul, ol, dl, dd) { margin: 0; }
  body.v3 img,
  body.v3 svg { display: block; max-width: 100%; }

  /* Lien dans un texte : toujours souligné (WCAG 1.4.1, pas la couleur seule). */
  body.v3 a { color: inherit; text-underline-offset: var(--space-1); }

  /* Focus visible : contour encre sur fond clair, doré clair sur fond sombre (.surface-dark). */
  body.v3 :focus-visible {
    outline: var(--focus-width) solid var(--c-focus);
    outline-offset: var(--focus-offset);
  }
  body.v3 .surface-dark :focus-visible { outline-color: var(--c-focus-on-dark); }

  /* Masqué à l’écran, lu par les lecteurs d’écran. Le lien d’évitement réapparaît au focus. */
  body.v3 .visually-hidden,
  body.v3 .skip-link:not(:focus) {
    position: absolute;
    width: var(--border-1);
    height: var(--border-1);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.v3 .skip-link:focus {
    position: absolute;
    left: var(--space-4);
    top: var(--space-4);
    z-index: var(--z-modal);
    padding: var(--space-3) var(--space-4);
    background: var(--c-paper);
    color: var(--c-ink);
  }

  /* Garde mouvement (PRD 2 §9) : aucune transition ni animation si l’utilisatrice le demande. */
  @media (prefers-reduced-motion: reduce) {
    body.v3 *,
    body.v3 *::before,
    body.v3 *::after {
      animation: none;
      transition: none;
      scroll-behavior: auto;
    }
  }
}
