/* Base : polices hébergées, remise à zéro, éléments de texte. Aucune ressource externe. */

@font-face { font-family: 'Fredoka'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../fonts/Fredoka-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/NunitoSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../fonts/NunitoSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/NunitoSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-style: italic; font-display: swap;
  src: url('../fonts/NunitoSans-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Amiri'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/Amiri-Regular.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 400 var(--t-base)/var(--interligne-texte) var(--police-texte);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; color: var(--vert-nuit); line-height: var(--interligne-titre); margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; }
a { color: var(--vert-foret); }
a:hover { color: var(--vert-nuit); }
[lang="ar"], .arabe { font-family: var(--police-arabe); direction: rtl; }

/* Focus visible : anneau ambre, partout. Filet vert nuit à l'intérieur : l'ambre seul ne fait que 1,6:1 sur la crème
   (3:1 demandé pour un repère d'interface) ; sur fond sombre le filet disparaît, l'ambre suffit (8,7:1). */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ambre);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--vert-nuit);
  border-radius: var(--r-petit);
}

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

/* Interrupteur Premium (D8) : tout élément marqué data-premium-only disparaît
   tant que <html data-premium="on"> n'est pas posé (voir js/reglages.js). */
html:not([data-premium="on"]) [data-premium-only] { display: none !important; }
