@font-face {
  font-family: "Fraunces";
  src: url("/polices/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/polices/fraunces-var-italique.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/polices/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/polices/caveat-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  * {
    margin: 0;
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--fond);
    color: var(--texte);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cible) + var(--e-8));
    -webkit-tap-highlight-color: transparent;
  }
  body {
    min-height: 100dvh;
    font-family: var(--police-texte);
    font-size: var(--t-3);
    line-height: var(--interligne-texte);
    font-weight: var(--graisse-normal);
    font-feature-settings: "ss01", "cv11", "calt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
  }
  img,
  svg,
  video,
  canvas {
    display: block;
    max-width: 100%;
  }
  img {
    height: auto;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
  }
  button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  ul[class],
  ol[class] {
    list-style: none;
    padding: 0;
  }
  a {
    color: var(--accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    transition: text-decoration-thickness var(--d-vite) var(--c-sortie), color var(--d-vite) var(--c-sortie);
    &:hover {
      text-decoration-thickness: 0.16em;
    }
  }
  hr {
    border: 0;
    border-top: 1px solid var(--trait);
  }
  ::selection {
    background: var(--balise);
    color: var(--c-sur-balise);
  }
  [hidden] {
    display: none !important;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(85% 45% at 50% -14%, var(--lueur), transparent 72%);
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: var(--z-grain);
    pointer-events: none;
    opacity: var(--grain-force);
    background: var(--texte);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='3' stitchTiles='stitch' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.45' result='g'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .34' numOctaves='2' seed='11' stitchTiles='stitch' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -8 3.1' result='f'/%3E%3CfeMerge%3E%3CfeMergeNode in='g'/%3E%3CfeMergeNode in='f'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E") 0 0 / 240px 240px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='3' stitchTiles='stitch' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.45' result='g'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .34' numOctaves='2' seed='11' stitchTiles='stitch' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -8 3.1' result='f'/%3E%3CfeMerge%3E%3CfeMergeNode in='g'/%3E%3CfeMergeNode in='f'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E") 0 0 / 240px 240px;
  }
  h1,
  h2,
  h3,
  h4,
  .t-affiche,
  .t-accroche,
  .t-titre,
  .t-sous-titre {
    font-family: var(--police-titre);
    font-weight: 560;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: var(--interligne-titre);
    letter-spacing: -0.012em;
    text-wrap: balance;
  }
  .t-affiche {
    font-size: var(--t-8);
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 620;
  }
  h1,
  .t-accroche {
    font-size: var(--t-7);
    line-height: var(--interligne-serre);
    letter-spacing: -0.022em;
  }
  h2,
  .t-titre {
    font-size: var(--t-6);
  }
  h3,
  .t-sous-titre {
    font-size: var(--t-5);
  }
  h4 {
    font-size: var(--t-4);
  }
  :is(h1, h2, h3, h4, .t-affiche, .t-accroche, .t-titre, .t-sous-titre) em {
    font-style: italic;
    font-weight: 480;
    color: var(--accent);
  }
  p,
  li {
    text-wrap: pretty;
  }
  p {
    max-width: 62ch;
  }
  small,
  .t-legende {
    font-size: var(--t-2);
    color: var(--texte-doux);
  }
  strong,
  b {
    font-weight: var(--graisse-fort);
  }
  .t-surtitre {
    font-family: var(--police-texte);
    font-size: var(--t-1);
    font-weight: var(--graisse-fort);
    letter-spacing: var(--approche-capitales);
    text-transform: uppercase;
    color: var(--texte-doux);
  }
  .t-grand {
    font-size: var(--t-4);
  }
  .t-doux {
    color: var(--texte-doux);
  }
  .t-discret {
    color: var(--texte-discret);
    font-size: var(--t-2);
  }
  .t-main {
    font-family: var(--police-main);
    font-size: 1.3em;
    line-height: 1.1;
    font-weight: 600;
    color: var(--or);
  }
  .t-chiffres {
    font-variant-numeric: tabular-nums lining-nums;
  }
  .t-balise::after,
  .t-touche::after {
    content: "";
    display: block;
    width: var(--balise-largeur);
    height: calc(2 * var(--balise-barre) + var(--balise-ecart));
    margin-top: 0.4rem;
    background:
      linear-gradient(var(--balise), var(--balise)) left top / 100% var(--balise-barre) no-repeat,
      linear-gradient(var(--balise-bas), var(--balise-bas)) left bottom / 100% var(--balise-barre) no-repeat;
    rotate: var(--balise-inclinaison);
    transform-origin: left center;
    animation: kl-balise calc(var(--d-instant) + var(--d-decalage)) var(--c-sortie) both;
  }
  .t-balise--ligne::after {
    display: inline-block;
    margin: 0 0 0 0.35em;
    vertical-align: 0.1em;
  }
  @keyframes kl-balise {
    0% {
      background-size: 0 var(--balise-barre), 0 var(--balise-barre);
    }
    28.6% {
      background-size: 40% var(--balise-barre), 0 var(--balise-barre);
    }
    71.4% {
      background-size: 100% var(--balise-barre), 60% var(--balise-barre);
    }
    100% {
      background-size: 100% var(--balise-barre), 100% var(--balise-barre);
    }
  }
  :focus {
    outline: none;
  }
  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--r-1);
    box-shadow: 0 0 0 4px var(--balise);
  }
  :is(h1, h2, h3, main, [role="main"])[tabindex="-1"]:focus-visible {
    outline: none;
    box-shadow: none;
  }
  .page {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-top: var(--e-6);
    padding-bottom: var(--e-12);
    padding-left: max(var(--marge-page), env(safe-area-inset-left));
    padding-right: max(var(--marge-page), env(safe-area-inset-right));
  }
  .colonne {
    width: 100%;
    max-width: var(--colonne);
    margin-inline: auto;
  }
  .avec-nav {
    padding-bottom: calc(var(--nav-hauteur) + var(--e-10) + env(safe-area-inset-bottom));
  }
  .pile {
    display: flex;
    flex-direction: column;
    gap: var(--pile-ecart, var(--e-4));
  }
  .pile--serree {
    --pile-ecart: var(--e-2);
  }
  .pile--ample {
    --pile-ecart: var(--e-8);
  }
  .grappe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--grappe-ecart, var(--e-2));
  }
  .grappe--espacee {
    justify-content: space-between;
  }
  .grille {
    display: grid;
    gap: var(--e-4);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grille-min, 17.5rem)), 1fr));
  }
  .sr-seul {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .lien-evitement {
    position: fixed;
    top: var(--e-2);
    left: var(--e-2);
    z-index: var(--z-toast);
    padding: var(--e-3) var(--e-4);
    background: var(--accent);
    color: var(--sur-accent);
    border-radius: var(--r-2);
    font-weight: var(--graisse-fort);
    text-decoration: none;
    transform: translateY(-200%);
    &:focus-visible {
      transform: none;
    }
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }
  ::view-transition-new(root) {
    animation: kl-encre var(--d-ample) var(--c-sortie) both;
  }
  @keyframes kl-encre {
    from {
      clip-path: circle(0 at var(--encre-x, 50%) var(--encre-y, 100%));
    }
    to {
      clip-path: circle(150vmax at var(--encre-x, 50%) var(--encre-y, 100%));
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      animation-delay: 0s !important;
      transition-property: opacity, color, background-color, border-color, outline-color, text-decoration-color, fill, stroke !important;
      transition-duration: var(--d-instant) !important;
      transition-delay: 0s !important;
    }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
      animation: none !important;
    }
  }
  :root[data-calme] {
    scroll-behavior: auto;
  }
  :root[data-calme] *,
  :root[data-calme] *::before,
  :root[data-calme] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-property: opacity, color, background-color, border-color, outline-color, text-decoration-color, fill, stroke !important;
    transition-duration: var(--d-instant) !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  :root[data-calme]::view-transition-group(*),
  :root[data-calme]::view-transition-old(*),
  :root[data-calme]::view-transition-new(*) {
    animation: none !important;
  }
  :root[data-calme] body::after {
    opacity: 0;
  }
  @media (prefers-contrast: more) {
    :root {
      --trait: var(--trait-fort);
      --trait-fort: var(--texte);
      --texte-doux: var(--texte);
      --texte-discret: var(--texte);
      --grain-force: 0;
    }
    body::before,
    body::after {
      display: none;
    }
    .courbes {
      background-image: none !important;
    }
    a {
      text-decoration-thickness: 0.12em;
    }
  }
  @media (forced-colors: active) {
    :focus-visible {
      outline-color: Highlight;
      box-shadow: none;
    }
    .t-balise::after,
    .t-touche::after {
      forced-color-adjust: none;
    }
  }
}
