/* ==========================================================================
   Charlotte de Soos — police « ET Book + Cooper Hewitt » (bouton « Police »)
   ET Book (Dmitry Krasny, Bonnie Scranton et Edward Tufte, licence MIT) pour
   les titres et tous les textes ; Cooper Hewitt (Chester Jenkins, licence
   SIL OFL) pour le menu et les petits éléments d’interface : étiquettes,
   liens fléchés, pastilles, dates. Actif quand <html> a la classe
   .police-tufte ; sinon, rien ne change.
   ========================================================================== */

@font-face { font-family: "ET Book"; src: url("../fonts/et-book-romain.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ET Book"; src: url("../fonts/et-book-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "ET Book"; src: url("../fonts/et-book-demi-gras.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "ET Book"; src: url("../fonts/et-book-gras.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooper-hewitt-book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooper-hewitt-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooper-hewitt-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ───── Le bouton : « Aa » écrit en ET Book, vermillon quand la police est active ───── */

:root { --vermillon: #b3261e; }
.bascule__glyphe {
  font-family: "ET Book", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.1rem; font-weight: 400; line-height: 1; letter-spacing: 0;
  transition: color .3s;
}
.bascule--police[aria-pressed="true"] .bascule__glyphe { color: var(--vermillon); }
.bascule--police[aria-pressed="true"]:hover .bascule__glyphe { color: #ff8a7a; }

/* ───── Les familles et les tailles (ET Book a un petit œil : on grandit un peu) ───── */

html.police-tufte {
  --serif: "ET Book", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Cooper Hewitt", "Helvetica Neue", Arial, sans-serif;
  --t-affiche: clamp(2.6rem, 1.3rem + 5vw, 4.95rem);
  --t-titre: clamp(1.95rem, 1.4rem + 2.15vw, 2.85rem);
  --t-chapo: clamp(1.45rem, 1.12rem + 1.3vw, 2.1rem);
  --t-carte: clamp(1.4rem, 1.22rem + .6vw, 1.72rem);
  --t-legende: 1.02rem;
}

/* Tout ce qui se lit : ET Book */
.police-tufte body { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; letter-spacing: 0; }
.police-tufte .affiche, .police-tufte .titre, .police-tufte .chapo, .police-tufte .entree__chapo,
.police-tufte h1, .police-tufte h2, .police-tufte h3, .police-tufte .enseigne, .police-tufte .legende,
.police-tufte .citation blockquote { font-weight: 400; }
.police-tufte .affiche { letter-spacing: -.012em; line-height: 1.08; }
.police-tufte .enseigne { font-size: clamp(1.4rem, 1.18rem + .7vw, 1.85rem); letter-spacing: 0; }
.police-tufte .prose { font-size: 1.125rem; line-height: 1.6; }
.police-tufte .prose--large { font-size: clamp(1.22rem, 1.1rem + .45vw, 1.42rem); line-height: 1.55; }
.police-tufte .prose em { font-size: 1em; }
.police-tufte .carte p:last-child, .police-tufte .rangee__lieu, .police-tufte .presse__extrait,
.police-tufte .citation figcaption, .police-tufte .portrait p, .police-tufte .cloture__texte { font-size: 1.02rem; }

/* Le menu et l’interface : Cooper Hewitt */
.police-tufte .menu__titre, .police-tufte .menu__groupe a, .police-tufte .recits,
.police-tufte .carte__quand, .police-tufte .rangee__date, .police-tufte .etape__date,
.police-tufte .serie__compte, .police-tufte .compteur, .police-tufte .note,
.police-tufte .tarif dt, .police-tufte .infos dt, .police-tufte .champ label, .police-tufte .case,
.police-tufte .pied__bas, .police-tufte .parcours__titre, .police-tufte .maquette { font-family: var(--sans); }

.police-tufte .etiquette, .police-tufte .fleche, .police-tufte .pastille, .police-tufte .bouton, .police-tufte .bascule,
.police-tufte .carte__quand, .police-tufte .rangee__date, .police-tufte .etape__date, .police-tufte .serie__compte,
.police-tufte .compteur, .police-tufte .tarif dt, .police-tufte .infos dt, .police-tufte .champ label,
.police-tufte .pied__bas, .police-tufte .parcours__titre { letter-spacing: .035em; }

.police-tufte .menu__titre { font-size: 1rem; font-weight: 500; letter-spacing: .04em; }
.police-tufte .menu__groupe a { font-size: .9375rem; letter-spacing: .025em; }
.police-tufte .recits { font-size: clamp(.98rem, .92rem + .3vw, 1.1rem); line-height: 1.95; letter-spacing: .02em; }
.police-tufte .note { font-size: .875rem; }
