/* Base de ToonFlix : police, remise à zéro, fond, styles de texte, logo. */

/* Inter 4.1 (licence OFL, voir /polices/LICENCE-Inter.txt), servie par le site lui-même. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/polices/InterVariable.woff2") format("woff2");
}

/* Remise à zéro */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--fond);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-weight: var(--corps-graisse);
  font-size: var(--corps-taille);
  line-height: var(--corps-interligne);
  /* Le kit Figma est dessiné avec l'Inter « texte » à toutes les tailles : pas de bascule
     automatique vers le dessin « Display », plus étroit, pour les grands titres et les rangs. */
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--primaire-survol);
  outline-offset: 2px;
}

::selection {
  background: var(--primaire);
  color: var(--sur-primaire);
}

@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;
  }
}

/* Styles de texte du kit */
.titre-hero {
  font-weight: var(--titre-hero-graisse);
  font-size: var(--titre-hero-taille);
  line-height: var(--titre-hero-interligne);
}

.titre-ecran {
  font-weight: var(--titre-ecran-graisse);
  font-size: var(--titre-ecran-taille);
  line-height: var(--titre-ecran-interligne);
}

.titre-rangee {
  font-weight: var(--titre-rangee-graisse);
  font-size: var(--titre-rangee-taille);
  line-height: var(--titre-rangee-interligne);
}

.corps {
  font-weight: var(--corps-graisse);
  font-size: var(--corps-taille);
  line-height: var(--corps-interligne);
}

.petit {
  font-weight: var(--petit-graisse);
  font-size: var(--petit-taille);
  line-height: var(--petit-interligne);
}

.libelle {
  font-weight: var(--libelle-graisse);
  font-size: var(--libelle-taille);
  line-height: var(--libelle-interligne);
}

.legende {
  font-weight: var(--legende-graisse);
  font-size: var(--legende-taille);
  line-height: var(--legende-interligne);
  letter-spacing: var(--legende-approche);
}

.chiffre-chapitres {
  font-weight: var(--chapitres-graisse);
  font-size: var(--chapitres-taille);
  font-variant-numeric: tabular-nums;
}

.rang {
  font-weight: var(--rang-graisse);
  font-size: var(--rang-taille);
  line-height: var(--rang-interligne);
}

/* Réservé aux lecteurs d'écran */
.hors-ecran {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Logo : la hauteur fixe la taille, la largeur suit le dessin */
.logo {
  width: auto;
  flex: none;
}

.logo--complet,
.logo--monogramme {
  height: 32px;
}

.logo--mot {
  height: 24px;
}
