@charset "UTF-8";
/* =========================================================================
   panoramasystemes.com
   Feuille unique. Aucune dependance, aucun import distant.

    1. Jetons
    2. Polices
    3. Reinitialisation
    4. Mise en page
    5. Typographie de lecture
    6. En-tete
    7. Pied de page
    8. Article
    9. Figures
   10. Connecteurs #
   11. Rubrique et sommaires
   12. Partage
   13. Accessibilite et mouvement
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Jetons
   Contrastes verifies sur papier blanc :
     encre    #121212  18,73:1
     gris     #5A5A5A   6,90:1
     rouge    #D70925   5,31:1
   Le gris de TOWeb, #787878, tombait a 4,42:1, sous le seuil AA. Il servait
   pour toutes les legendes d'images. Ne pas le reintroduire.
   ------------------------------------------------------------------------- */
:root {
  --pap:    #FFFFFF;   /* papier */
  --pap-2:  #F7F5F2;   /* fond de section, encarts */
  --enc:    #121212;   /* texte, noir de presse et non noir pur */
  --gris:   #5A5A5A;   /* legendes, dates, texte secondaire */
  --fil:    #DEDEDE;   /* filets */
  --fil-2:  #B8B8B8;   /* filets appuyes */
  --acc:    #D70925;   /* rouge, repris du site TOWeb */
  --acc-2:  #A80019;   /* rouge assombri, pour les survols */

  --page:   62rem;     /* largeur maximale de la page */
  --col:    38rem;     /* colonne de lecture, 608 px */

  --serif:  "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --titre:  "DM Serif Display", "Playfair Display", Georgia, serif;

  --marge:  1.25rem;
}

/* -------------------------------------------------------------------------
   2. Polices
   Auto-hebergees, fabriquees par tools/polices.py. Jamais de Google Fonts
   ni de CDN.
   L'espace fine insecable U+202F n'est dessinee dans aucune des deux
   polices : les insecables du site sont des U+00A0.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-regular.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-italic.woff2") format("woff2");
}
/* Source Serif 4 est variable. Ses deux axes d'origine, wght 200-900 et
   opsz 8-60, pesaient 220 ko a deux fontes. L'axe opsz est fige a 14, la
   taille optique du texte courant, et wght ramene a 400-700 : 63 ko a deux.
   Un vrai italique et un vrai gras, plus aucune simulation par le navigateur. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-var.woff2") format("woff2");
}

/* -------------------------------------------------------------------------
   3. Reinitialisation
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pap);
  color: var(--enc);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

ul, ol { margin: 0; padding: 0; }

/* -------------------------------------------------------------------------
   4. Mise en page
   ------------------------------------------------------------------------- */
.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--marge);
}

.colonne {
  max-width: var(--col);
  margin-left: auto;
  margin-right: auto;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--enc);
  color: var(--pap);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.saut-contenu:focus { left: 0; }

/* -------------------------------------------------------------------------
   5. Typographie de lecture
   ------------------------------------------------------------------------- */
p { margin: 0 0 1.15em; }

.corps > :first-child { margin-top: 0; }
.corps > :last-child  { margin-bottom: 0; }

.corps h2 {
  font-family: var(--titre);
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.2rem 0 0.6rem;
}

.corps h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 2rem 0 0.5rem;
}

.corps a {
  color: var(--enc);
  text-decoration: underline;
  text-decoration-color: var(--fil-2);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
.corps a:hover,
.corps a:focus-visible {
  color: var(--acc-2);
  text-decoration-color: currentColor;
}

.corps ul { margin: 0 0 1.15em; padding-left: 1.1em; }
.corps li { margin-bottom: 0.4em; }

blockquote {
  margin: 1.6rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--acc);
  font-style: italic;
  color: var(--gris);
}

/* -------------------------------------------------------------------------
   6. En-tete
   ------------------------------------------------------------------------- */
.entete {
  border-bottom: 1px solid var(--enc);
  padding: 1.1rem 0 0.9rem;
}

/* Le bandeau de titre. Sur mobile la marque se pose au-dessus du nom, ce qui
   laisse toute la largeur au nom et permet de le composer plus gros. A partir
   de 640 px les deux se rangent sur une ligne. */
.entete__titre {
  margin: 0 0 0.85rem;
}
.entete__titre a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.entete__marque {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  display: block;
}

.entete__nom {
  font-family: var(--titre);
  font-size: 2.625rem;
  line-height: 1;
  text-align: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  list-style: none;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a:focus-visible { border-bottom-color: var(--acc); }
.nav [aria-current="page"] { border-bottom-color: var(--enc); }

/* -------------------------------------------------------------------------
   7. Pied de page
   ------------------------------------------------------------------------- */
.pied {
  border-top: 1px solid var(--fil);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: 0.9375rem;
  color: var(--gris);
}
.pied a { text-decoration: underline; text-decoration-color: var(--fil-2); }
.pied a:hover, .pied a:focus-visible { color: var(--enc); }

/* -------------------------------------------------------------------------
   8. Article
   ------------------------------------------------------------------------- */
.article { padding-top: 2.5rem; }

.surtitre {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.6rem;
}
.surtitre a { text-decoration: none; }
.surtitre a:hover, .surtitre a:focus-visible { text-decoration: underline; }

.article__titre {
  font-family: var(--titre);
  font-size: 2.375rem;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.article__chapo {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--gris);
  margin: 0 0 1.6rem;
}

.notes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fil);
  font-size: 0.9375rem;
  color: var(--gris);
  list-style: none;
}
.notes li { margin-bottom: 0.5em; }

/* -------------------------------------------------------------------------
   9. Figures
   Les images du site TOWeb plafonnent bas : 12 des 41 sont sous 640 px.
   Une image n'est jamais agrandie au-dela de sa definition. Le generateur
   pose .figure--pleine quand l'image remplit la colonne, .figure--petite
   sinon, auquel cas elle est centree a sa taille naturelle.
   ------------------------------------------------------------------------- */
.figure { margin: 0 0 1.8rem; }

.figure img {
  width: 100%;
  background: var(--pap-2);
}

/* Une image qui ne remplit pas la colonne est bornee a sa definition d'origine,
   portee par --largeur, et centree. Elle retrecit sur petit ecran, elle ne
   grandit jamais.
   Ne pas remplacer par « width: auto » : sur une image en chargement differe,
   la largeur se calcule alors a 0 px tant que le fichier n'est pas arrive.
   L'image n'entre donc jamais dans le champ de vision, et n'est jamais
   chargee. Le blocage est circulaire et silencieux. */
.figure--petite img {
  width: 100%;
  max-width: var(--largeur, 100%);
  margin: 0 auto;
}

.figure figcaption {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--gris);
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   10. Connecteurs #
   Le site est bati sur le symbole « # » comme lien entre domaines. Il est
   rendu visible mais discret : c'est un connecteur, pas un bouton.
   ------------------------------------------------------------------------- */
.lien-domaine {
  color: var(--enc);
  text-decoration: none;
  border-bottom: 1px solid var(--acc);
  white-space: nowrap;
}
.lien-domaine:hover,
.lien-domaine:focus-visible {
  color: var(--acc-2);
  background: var(--pap-2);
}
.lien-domaine__diese { color: var(--acc); }

/* -------------------------------------------------------------------------
   10 bis. Pages : accueil, le livre, a propos
   ------------------------------------------------------------------------- */
.accueil__titre {
  font-family: var(--titre);
  font-size: 2.25rem;
  line-height: 1.1;
  margin: 2.5rem 0 1.8rem;
}

.section { margin-bottom: 2.8rem; }

.section > h2 {
  font-family: var(--titre);
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

/* Le schema des trois sous-systemes est un SVG carre et dense : il est lu
   comme une planche, pas comme une vignette. On lui laisse toute la page. */
.figure--schema {
  margin: 2rem 0 2.5rem;
}
.figure--schema img {
  width: 100%;
  height: auto;
}

.renvoi {
  margin-top: 2rem;
  padding: 0.9rem 1.1rem;
  background: var(--pap-2);
  border-left: 3px solid var(--acc);
  font-size: 0.9375rem;
}
.renvoi a { color: var(--enc); }

.rubriques {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--enc);
}
.rubriques__titre {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.9rem;
}
.rubriques ul { list-style: none; }
.rubriques li { border-bottom: 1px solid var(--fil); }
.rubriques a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  text-decoration: none;
}
.rubriques a:hover .rubriques__nom,
.rubriques a:focus-visible .rubriques__nom { color: var(--acc-2); }
.rubriques__nom {
  font-family: var(--titre);
  font-size: 1.5rem;
  line-height: 1.1;
}
.rubriques__compte {
  font-size: 0.875rem;
  color: var(--gris);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   11. Rubrique et sommaires
   ------------------------------------------------------------------------- */
.rubrique__titre {
  font-family: var(--titre);
  font-size: 2.75rem;
  line-height: 1.05;
  margin: 2.5rem 0 0.75rem;
}

.sommaire {
  list-style: none;
  border-top: 1px solid var(--enc);
}

.sommaire__item { border-bottom: 1px solid var(--fil); }

.sommaire__lien {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem 0;
  text-decoration: none;
}
.sommaire__lien:hover .sommaire__titre,
.sommaire__lien:focus-visible .sommaire__titre { color: var(--acc-2); }

.sommaire__vignette {
  width: 5.5rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--pap-2);
}

.sommaire__titre {
  display: block;
  font-family: var(--titre);
  font-size: 1.375rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.sommaire__extrait {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--gris);
}

/* -------------------------------------------------------------------------
   12. Partage
   Liens simples vers les URL de partage. Aucun SDK, aucun widget tiers :
   ils pistent le lecteur avant meme qu'il clique.
   ------------------------------------------------------------------------- */
.partage {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--fil);
}

.partage__intitule {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-right: 0.3rem;
}

.partage__lien {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid var(--fil-2);
  border-radius: 50%;
  color: var(--enc);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.partage__lien:hover,
.partage__lien:focus-visible {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--pap-2);
}
.partage__lien svg { width: 1.0625rem; height: 1.0625rem; fill: currentColor; }

.partage__retour {
  font-size: 0.8125rem;
  color: var(--gris);
  margin-left: auto;
}

/* -------------------------------------------------------------------------
   13. Accessibilite et mouvement
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

@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;
  }
}

/* -------------------------------------------------------------------------
   Points de rupture
   ------------------------------------------------------------------------- */
@media (min-width: 40em) {          /* 640 px */
  :root { --marge: 2rem; }
  .entete__titre a { flex-direction: row; gap: 0.85rem; }
  .entete__marque { width: 2.5rem; height: 2.5rem; }
  .entete__nom { font-size: 2.875rem; }
  .article__titre { font-size: 3rem; }
  .accueil__titre { font-size: 3rem; }
  .section > h2 { font-size: 2rem; }
  .rubrique__titre { font-size: 3.5rem; }
  .sommaire__lien { grid-template-columns: 8rem 1fr; }
  .sommaire__vignette { width: 8rem; }
}

@media (min-width: 60em) {          /* 960 px */
  body { font-size: 1.1875rem; }
  .article { padding-top: 3.5rem; }
  .entete__marque { width: 3rem; height: 3rem; }
  .entete__nom { font-size: 3.5rem; }
}
