/* Éditions de la Craie · collection « 100 ans / 100 dates »
   Styles communs : polices auto-hébergées (aucun appel externe), couleurs, logos, pied de page. */

@font-face { font-family: "Inter Tight"; src: url("polices/intertight/InterTight-variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("polices/dmmono/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("polices/barlowsemicondensed/BarlowSemiCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("polices/barlowsemicondensed/BarlowSemiCondensed-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("polices/barlowsemicondensed/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Antonio"; src: url("polices/antonio/Antonio-variable.ttf") format("truetype"); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  /* fond général : bleu très clair ; le blanc est réservé aux cartes, étiquettes et fiches */
  --fond: #E9F2FE;
  --blanc: #FFFFFF;
  /* nuances des Lumières (couverture) */
  --ciel: #74B1FE;
  --clair: #4A91E8;
  --bleu: #2A72C6;
  --base: #3A81D7;
  --roi: #0154A4;
  --profond: #1D3E66;
  /* textes */
  --encre: #1D3E66;
  --encre-2: #45607F;
  --gris: #5A6E8C;
  --filet: #D2E2F6;
  /* couleurs de la collection */
  --c17: #16A86B;
  --c18: #3A81D7;
  --c19: #E9BE4C;
  --c20: #FF7A2F;
  /* familles */
  --f-titre: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-inter: "Antonio", "Arial Narrow", sans-serif;
  --f-texte: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --gouttiere: 16px;
  --largeur: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 18px/1.5 var(--f-texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--roi); outline-offset: 3px; }
.sombre :focus-visible { outline-color: #FFFFFF; }

.cadre { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
@media (min-width: 720px) { :root { --gouttiere: 32px; } }
@media (min-width: 1200px) { :root { --gouttiere: 48px; } }

/* petites mentions : DM Mono espacé */
.mention { font: 500 12px/1.35 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
/* intertitres : Antonio capitales espacées, gris */
.intertitre { font: 600 15px/1.2 var(--f-inter); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin: 0; }
/* titres : Inter Tight ExtraBold en capitales, interlettrage serré */
.titre-section {
  margin: 0;
  font: 800 clamp(38px, 10vw, 76px)/.92 var(--f-titre);
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--roi);
}

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--blanc); color: var(--roi); padding: 10px 14px;
  font: 500 13px var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.evitement:focus { top: 12px; }

/* ---- logos ---- */
.logo-collection { height: 40px; width: auto; color: var(--roi); }
.logo-collection .reserve { fill: var(--logo-reserve, #FFFFFF); }
.logo-collection text { font-family: "Antonio", "Arial Narrow", sans-serif; }
.logo-editeur { height: 40px; width: auto; color: var(--profond); }
.logo-editeur path, .logo-editeur rect { fill: currentColor; }

/* ---- l'icône « + » des repères : rond plein, plus blanc ---- */
.pastille {
  --p: 30px;
  position: relative; display: inline-block; flex: none;
  width: var(--p); height: var(--p); border-radius: 50%;
  background: var(--pastille, var(--roi));
}
.pastille::before, .pastille::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 46%; height: 2.5px; margin: -1.25px 0 0 -23%;
  background: #FFFFFF; border-radius: 2px;
}
.pastille::after { transform: rotate(90deg); }
.pastille.mini { --p: 1em; vertical-align: -.14em; }
.pastille.mini::before, .pastille.mini::after { height: 2px; margin-top: -1px; }

/* ---- pictogrammes des bandes (ceux de la frise) : couronne, plume, palette, rouage ---- */
.picto { display: inline-block; flex: none; width: 1.3em; height: 1.3em; vertical-align: -.28em; overflow: visible; }
.picto .p { fill: var(--picto-fond, #FFFFFF); }
.picto .ps { fill: none; stroke: var(--picto-fond, #FFFFFF); }

/* ---- fil d'Ariane ---- */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--gris); }
.fil a { display: inline-flex; align-items: center; min-height: 44px; color: var(--roi); text-decoration: none; }
.fil a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fil .sep { color: var(--filet); }
.fil [aria-current] { color: var(--encre-2); }

/* ---- boutons ---- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--roi); color: #FFFFFF; border: 0; cursor: pointer; text-decoration: none;
  font: 800 16px/1 var(--f-titre); letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--profond); transition: transform .2s, box-shadow .2s;
}
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--profond); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--profond); }
.bouton.secondaire { background: #FFFFFF; color: var(--roi); box-shadow: inset 0 0 0 2px var(--roi), 5px 5px 0 var(--filet); }
.bouton.secondaire:hover { box-shadow: inset 0 0 0 2px var(--roi), 7px 7px 0 var(--filet); }


/* ---- pied de page ---- */
.pied { padding: 56px 0 40px; color: var(--encre-2); font-size: 16px; }
.pied .cadre { display: grid; gap: 22px; }
.pied-logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pied .logo-collection { --logo-reserve: var(--fond); }
.pied p { margin: 0; max-width: 46ch; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied-liens a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--roi);
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1.5px;
  background-repeat: no-repeat; background-position: 0 calc(50% + 10px);
}
.pied-liens a:hover { background-size: 0 1.5px; background-position: 100% calc(50% + 10px); transition: background-size .3s; }
.pied .discret { font-size: 14px; color: var(--gris); }
@media (min-width: 900px) {
  .pied .cadre { grid-template-columns: auto 1fr auto; align-items: end; gap: 40px; }
}

/* ---- apparitions au défilement : le contenu est visible par défaut ; l'animation n'est posée
   qu'au moment où l'élément entre à l'écran (classe .surgit, retirée ensuite par le script) ---- */
@keyframes surgit { from { opacity: 0; transform: translateY(18px); } }
@keyframes devoile { from { clip-path: inset(0 0 100% 0); transform: translateY(.25em); } to { clip-path: inset(-.2em -.2em -.2em -.2em); transform: none; } }
.surgit { animation: surgit .7s cubic-bezier(.2,.7,.2,1) both; }
.revele.surgit { animation: devoile .9s cubic-bezier(.7,0,.2,1) both; }

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