/* ===========================================================
   inforue.fr — styles complémentaires à Tailwind
   Tout ce qui ne s'exprime pas bien en classes utilitaires.
   =========================================================== */

/* --- Polices auto-hébergées -------------------------------
   Atkinson Hyperlegible — Braille Institute of America,
   dessinée pour la lecture en basse vision. SIL Open Font License 1.1.
   Bricolage Grotesque — Atelier Triay. SIL Open Font License 1.1.
   Sous-ensemble latin uniquement. 84 Ko au total.
   ----------------------------------------------------------- */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/assets/polices/atkinson-hyperlegible-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/assets/polices/atkinson-hyperlegible-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/polices/bricolage-grotesque-variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Base typographique volontairement haute : lunettes cassées,
   petits écrans, lecture en plein soleil. */
html            { font-size: 18px; }
html.grand      { font-size: 21px; }
html.tres-grand { font-size: 25px; }

body { -webkit-text-size-adjust: 100%; }

/* Cible tactile : jamais moins de 56px. Mains froides, gants,
   téléphone à écran fissuré. */
.tap { min-height: 3.5rem; }

/* Seule ornementation de la page : un filet fin */
.filet { border-color: #2B2F34; }

:focus-visible {
  outline: 3px solid #ECEBE7;
  outline-offset: 2px;
}

/* Indicateurs de fraîcheur des données */
.pastille        { display: inline-block; width: .55rem; height: .55rem; border-radius: 9999px; flex-shrink: 0; }
.pastille-recente     { background: #4ADE80; }
.pastille-a-confirmer { background: #FACC15; }
.pastille-ancienne    { background: #E0362A; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* --- Impression -------------------------------------------
   Les pages « ville » doivent tenir sur une feuille A4 en noir
   et blanc, pour être distribuées en maraude.
   ----------------------------------------------------------- */
@media print {
  .sans-impression { display: none !important; }

  html { font-size: 11pt; }
  body {
    background: #fff !important;
    color: #000 !important;
    padding-bottom: 0 !important;
  }

  a { color: #000 !important; text-decoration: underline; }

  /* Les liens n'ont aucun intérêt sur papier : pas de soulignement
     parasite ni d'URL ajoutée. Les numéros sont déjà écrits en clair. */
  a { text-decoration: none; }

  section, article, li { break-inside: avoid; }

  .filet,
  [class*="border-"] { border-color: #999 !important; }

  .bg-ardoise,
  .bg-encre { background: #fff !important; }
}
