/* Privacy — socle commun aux écrans redessinés (design/BRIEF.md). Valeurs : design/tokens.css.
   Polices : Le Murmure — Jérémy Landes & Alex Slobzheninov, Velvetyne Type Foundry, SIL OFL 1.1.
             League Mono — Tyler Finck, The League of Moveable Type, SIL OFL 1.1.
   Détail des licences : design/CREDITS.md. */

@font-face {
  font-family: "Le Murmure";
  src: url("/polices/LeMurmure-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "League Mono";
  src: url("/polices/LeagueMono-VF.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

@view-transition { navigation: auto; }

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

html { background: var(--chambre); color-scheme: dark; }

body {
  margin: 0;
  background: var(--chambre);
  color: var(--baryte);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: var(--interligne-texte);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--inactinique);
  outline-offset: 3px;
}

/* Action primaire : la seule surface ambre d'un écran. */
.action-primaire {
  appearance: none;
  width: 100%;
  min-height: var(--hauteur-action);
  padding: var(--espace-2) var(--espace-3);
  border: 0;
  border-radius: var(--rayon-action);
  background: var(--inactinique);
  color: var(--chambre);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.action-primaire:disabled { background: var(--lame); color: var(--baryte); cursor: default; }

/* Lien ou bouton texte, souligné. */
.lien {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  padding: 0;
  border: 0;
  background: none;
  color: var(--baryte);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  cursor: pointer;
}
.lien:hover { text-decoration-color: var(--inactinique); }

.mention {
  margin: 0;
  font-size: var(--taille-mention);
  line-height: var(--interligne-mention);
  letter-spacing: var(--approche-mention);
  color: var(--gris-charte);
}

/* Le diaphragme (includes/design.php) */
.lame {
  transform-origin: 0 0; /* le pivot de la lamelle, sur la bague */
  transition: transform var(--duree-ouverture) var(--courbe-ouverture);
}
.lame-fond { fill: var(--lame); }
.lame-arete { fill: none; stroke: var(--chambre); stroke-width: 1.6; stroke-linecap: round; }
.bague { fill: none; stroke: var(--lame); stroke-width: 3; }

@media (prefers-reduced-motion: reduce) {
  .lame { transition: none; }
}

/* Grain : 3 %, ne capte aucun clic. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
