/* ==========================================================================
   Package E: library page, committee roster, reveal safety, print.
   Square corners, Plex Condensed display, hard cuts on colour, short arrivals.
   ========================================================================== */

:root { --hdr-h: 3.6rem; --bar-h: 3.6rem; --e-ease: cubic-bezier(.16,1,.3,1); --e-hair: color-mix(in srgb, currentColor 22%, transparent); }

/* ---------- Reveal: visible by default, the arrival only adds on top ---------- */
.js .reveal { opacity: .4; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .32s var(--e-ease), transform .32s var(--e-ease); }
.js .reveal.in.now, .no-reveal .reveal, .no-reveal .reveal.in { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; } }

/* ---------- Shared section heads on comprendre ---------- */
.e-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1rem 3rem; align-items: end; border-top: 2px solid currentColor; padding-top: 1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.e-head h2 { font-size: var(--fs-2); line-height: .98; margin: 0; }
.e-head p { margin: 0; font-size: var(--fs-4); color: var(--soft); }

/* ---------- #14 Library: poster head, full bleed ---------- */
.lib-top { padding: 0 0 clamp(3rem, 7vw, 5.5rem); --seg: var(--signal); }
.lib-top .lib-head { margin: 0; padding: clamp(2.8rem, 7vw, 6.5rem) 0 clamp(2.4rem, 5vw, 4.5rem); background: var(--p); color: var(--on); transition: none; }
.lib-top[data-seg="tout"] .lib-head { background: #16181B; color: #F6F4EF; }
.lib-head-in { display: block; }
.lib-top .lib-head .kicker { display: flex; align-items: center; gap: .7rem; font-size: var(--fs-5); letter-spacing: .1em; color: inherit; opacity: 1; margin: 0 0 clamp(1.2rem, 3vw, 2.2rem); }
.lib-top .lib-head .kicker::before { content: ''; flex: 0 0 auto; width: .9rem; height: .9rem; background: currentColor; }
.lib-top[data-seg="tout"] .lib-head .kicker::before { background: var(--signal); }
.lib-top .lib-head h1 { font-size: var(--fs-1); line-height: .92; letter-spacing: -.025em; margin: 0; max-width: 17ch; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.lib-top .lib-head [data-d] { font-size: var(--fs-4); line-height: 1.45; max-width: 34rem; margin: clamp(1.4rem, 3vw, 2.4rem) 0 0; opacity: .9; }
.lib-head.swap h1, .lib-head.swap [data-d] { animation: e-arrive .36s var(--e-ease) both; }
.lib-head.swap [data-d] { animation-delay: .06s; }
@keyframes e-arrive { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }

/* Filter bar: pinned under the sticky header, one scrolling row */
.lib-bar { position: sticky; top: var(--hdr-h); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--rule); transition: box-shadow .2s var(--e-ease); }
.lib-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--seg); }
.lib-bar.is-stuck::before { height: 4px; }
.lib-bar.is-stuck { box-shadow: 0 1px 0 var(--rule); }
.lib-bar-in { padding-top: .7rem; padding-bottom: .7rem; }
.lib-top #filters { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding: 0 16px; }
.lib-top #filters::-webkit-scrollbar { display: none; }
.lib-top #filters.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); }
.lib-top #filters.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem); mask-image: linear-gradient(90deg, transparent, #000 3rem); }
.lib-top #filters.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
.lib-top #filters .chip { flex: 0 0 auto; white-space: nowrap; border-radius: 0; font-size: .86rem; font-weight: 600; padding: .5em .85em .5em .65em; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); transition: none; }
.lib-top #filters .chip:hover { border-color: var(--c, var(--ink)); }
.lib-top #filters .chip[aria-pressed="true"] { background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); color: var(--on-c, var(--paper)); }

/* Count as an editorial label */
.lib-body { padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.lib-top #count { display: flex; align-items: center; gap: .8rem; font-size: var(--fs-5); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); max-width: none; margin: 0 0 1.2rem; }
.lib-top #count::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
#library .point { scroll-margin-top: calc(var(--hdr-h) + var(--bar-h) + 1rem); }

/* ---------- Demands: numbered manifesto on ink ---------- */
.demands-sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.demands-sec .e-head { border-top-color: #F2F1ED; }
.demands-sec .e-head p { color: #B9BCC2; }
ol.demands { list-style: none; counter-reset: d; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.4vw, 2rem); }
ol.demands li { counter-increment: d; border-top: 1px solid #3A3D42; padding: 1rem 0 2.2rem; display: flex; flex-direction: column; }
ol.demands li::before { content: counter(d, decimal-leading-zero); font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: var(--fs-2); line-height: 1; letter-spacing: -.02em; color: var(--signal); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
ol.demands b { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: var(--fs-4); line-height: 1.2; margin-bottom: .3rem; }
ol.demands span { color: #B9BCC2; font-size: .97rem; line-height: 1.45; }

/* ---------- Glossary: two-column lexicon ---------- */
.gloss-sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.gloss-sec dl.glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); }
.gloss-sec dl.glossary div { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.4rem; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .3rem 1.4rem; align-items: baseline; }
.gloss-sec dl.glossary dt { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: var(--fs-4); line-height: 1.2; }
.gloss-sec dl.glossary dd { margin: 0; color: var(--soft); }

/* ---------- Closer: the last poster, signal red ---------- */
.c-closer { background: var(--signal); color: #fff; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.4rem, 8vw, 6rem); }
.c-closer .closer { font-size: var(--fs-1); line-height: .92; letter-spacing: -.025em; max-width: 13ch; margin: 0; color: #fff; text-wrap: balance; }
.c-closer .btn-row { margin-top: clamp(2rem, 4vw, 3rem); }
.c-closer .btn { border-color: #fff; color: #fff; background: transparent; }
.c-closer .btn:hover { background: #fff; color: var(--signal); }
.c-closer .btn-signal { background: #fff; color: #A31F15; border-color: #fff; }
.c-closer .btn-signal:hover { background: #16181B; border-color: #16181B; color: #fff; }

/* ---------- #12 Committee roster (index #comite) ---------- */
#comite { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.4rem, 8vw, 6rem); }
#comite .comite-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 2rem; border-top: 2px solid #F2F1ED; padding-top: 1rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem); }
#comite .comite-head h2 { font-size: var(--fs-2); line-height: .98; margin: 0; color: #F2F1ED; }
#comite .comite-head .kicker { margin: 0; font-size: var(--fs-5); letter-spacing: .1em; color: #B9BCC2; }
#comite .roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 0 clamp(1.5rem, 5vw, 4.5rem); border-bottom: 1px solid #3A3D42; }
#comite .roster li { border: 0; border-top: 1px solid #3A3D42; padding: .95rem 0 1rem; display: flex; flex-direction: column; gap: .35rem; font-size: 1rem; }
#comite .roster strong { display: block; font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: var(--fs-3); line-height: 1.05; letter-spacing: 0; color: #F2F1ED; }
#comite .roster span { font-size: var(--fs-5); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.5; color: #B9BCC2; }
#comite .roster mark.tbc { letter-spacing: .06em; }
#comite .supporters { max-width: 46rem; margin: 1.6rem 0 0; font-size: .97rem; color: #B9BCC2; }
#comite .supporters a { color: #F2F1ED; }
#comite .comite-closer { font-size: var(--fs-1); line-height: .92; letter-spacing: -.025em; max-width: 13ch; margin: clamp(4rem, 11vw, 9rem) 0 0; color: #F2F1ED; text-wrap: balance; }
#comite .comite-closer::before { content: ''; display: block; width: 3.5rem; height: 8px; background: var(--signal); margin-bottom: clamp(1rem, 2vw, 1.6rem); }

/* Dark mode: ink bands sit close to the page, so give them an edge */
@media (prefers-color-scheme: dark) {
  .lib-top[data-seg="tout"] .lib-head { border-bottom: 1px solid var(--rule); }
}

/* ---------- "Imprimer ce point" text button ---------- */
.point > .print-one { display: inline-flex; align-items: center; gap: .45em; margin-top: 1rem; padding: .2rem 0; border: 0; background: none; color: var(--soft); font: 600 var(--fs-5)/1.4 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; border-radius: 0; }
.point > .print-one::before { content: ''; width: .7em; height: .7em; border: 1.5px solid currentColor; box-shadow: inset 0 -3px 0 0 currentColor; }
.point > .print-one:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  ol.demands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gloss-sec dl.glossary div { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .e-head { grid-template-columns: 1fr; }
  #comite .roster { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .gloss-sec dl.glossary { grid-template-columns: 1fr; }
  .lib-bar-in { padding-right: 0; }
}
@media (max-width: 26rem) {
  ol.demands { grid-template-columns: 1fr; }
  ol.demands li { padding-bottom: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lib-head.swap h1, .lib-head.swap [data-d] { animation: none; }
  .lib-bar { transition: none; }
}

/* ==========================================================================
   Print: a tidy black-on-white handout
   ========================================================================== */
@media print {
  @page { margin: 16mm 15mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }

  .skip, .deadline, .site-header, .nav, .preview-banner, .lib-bar, #filters, .chip, button, .btn-row, .reel, .reel-for, .tile::after, #compteur, .point > .print-one { display: none !important; }
  .reel-h .sr { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; }

  section, .band, .ink, .hero, .hero-x, .numbers, .c-closer, .lib-head, .lib-top .lib-head, .lib-top[data-seg="tout"] .lib-head, .tile, .counter {
    background: #fff !important; color: #000 !important; border-color: #000 !important;
  }
  section, .hero-x, .ink, .c-closer, .demands-sec, .gloss-sec, #comite { padding: 0 0 8mm !important; border: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000 !important; }
  .folio::before { display: none !important; }
  .hero-x .kicker, .hero-x .lead, .hero-x .trust, .hero-x abbr { color: #000 !important; opacity: 1 !important; }
  .hero-side { min-height: 0 !important; }
  .kicker, .section-head p, .e-head p, .trust, .fn, dl.glossary dd, ol.demands span, #comite .roster span, .cmp b, .nums span { color: #333 !important; opacity: 1 !important; }
  h1, h2, h3, .closer, .who { color: #000 !important; page-break-after: avoid; break-after: avoid; }
  .btn { border: 0 !important; padding: 0 !important; background: none !important; color: #000 !important; text-decoration: underline; text-transform: none; letter-spacing: 0; font-size: inherit; }

  /* Library head prints as a title block */
  .lib-top .lib-head { padding: 0 0 6mm !important; border-bottom: 2pt solid #000 !important; margin-bottom: 4mm; }
  .lib-top .lib-head h1, .c-closer .closer, #comite .comite-closer { font-size: 30pt !important; line-height: 1; max-width: none; }
  .lib-top .lib-head .kicker::before, #comite .comite-closer::before { background: #000 !important; }
  .lib-body { padding-top: 0; }

  /* Cards: clean blocks, never split */
  .points { display: block !important; }
  .point { display: block; background: #fff !important; border: .75pt solid #000 !important; border-top: 3pt solid #000 !important; padding: 4mm 5mm !important; margin: 0 0 4mm; page-break-inside: avoid; break-inside: avoid; transform: none !important; }
  .point h3 { font-size: 15pt; }
  .cmp > div, .cmp > div:last-child { background: #fff !important; color: #000 !important; border: .75pt solid #000; }
  .cmp > div *, .cmp > div:last-child b, .cmp > div:last-child span { color: #000 !important; background: transparent !important; }
  .cmp > div:last-child { border-width: 1.5pt; }
  .cmp { gap: 0; }
  .cmp-x { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pt-tab { background: #fff !important; color: #000 !important; border: .75pt solid #000; margin-left: 0 !important; padding-left: .6rem !important; display: inline-block; }
  .point .also { display: none !important; }
  .fn { color: #333 !important; border-top-color: #000 !important; }
  .fn-n { background: #fff !important; color: #000 !important; border: .75pt solid #000; }
  .fn a { text-decoration: none; }
  .fn a .fn-go { display: none; }
  .fn a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; word-break: break-all; }
  mark.tbc { background: none !important; border: .75pt dashed #000; color: #000 !important; }

  /* Demands, glossary, roster: hairlines only */
  ol.demands { grid-template-columns: repeat(2, 1fr); }
  ol.demands li, dl.glossary div, #comite .roster li, #comite .roster { border-color: #000 !important; break-inside: avoid; }
  ol.demands li::before { color: #000 !important; font-size: 18pt; }
  .e-head, #comite .comite-head { border-top-color: #000 !important; }
  #comite .roster strong { color: #000 !important; font-size: 13pt; }
  .card, .sg-steps li, .fl { break-inside: avoid; }
  .site-footer { border-top: 1pt solid #000; color: #000 !important; padding: 4mm 0 0; }

  /* One card only ("Imprimer ce point") */
  body.print-one main :not([data-print-path]):not([data-print-one]):not([data-print-one] *) { display: none !important; }
  body.print-one [data-print-path] { display: block !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: #fff !important; }
  body.print-one [data-print-one] { border-top-width: 5pt !important; padding: 8mm !important; }
  body.print-one [data-print-one] h3 { font-size: 24pt; }
  body.print-one [data-print-one] .ess { font-size: 13pt; }
  body.print-one [data-print-one] .cmp { display: grid !important; }
  body.print-one [data-print-one] .cmp > div { display: block !important; }
}

/* ---------- Committee photos + supporter logos ---------- */
#comite .roster li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: center; text-align: left; }
#comite .roster li > div { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
#comite .roster .pp { width: 56px; height: 56px; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); display: block; }
#comite .roster .pp-ini { display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 14%, var(--paper)); color: var(--ink); font: 700 .95rem/1 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif; letter-spacing: .04em; }
.supporters-logos { margin: 2.6rem 0 0; }
.supporters-logos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.supporters-logos a { display: grid; place-items: center; height: 5.5rem; padding: .9rem 1.1rem; background: #F6F4EF; }
.supporters-logos img { max-width: 100%; max-height: 3.4rem; object-fit: contain; filter: grayscale(1); opacity: .9; transition: filter .2s, opacity .2s; }
.supporters-logos a:hover img, .supporters-logos a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 44rem) { .supporters-logos ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Footer: resources + credit ---------- */
.footer-res { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: baseline; margin: 1rem 0 .4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.footer-res b { font-size: var(--fs-5); text-transform: uppercase; letter-spacing: .08em; margin-right: .4rem; color: var(--ink); }
.site-footer .credit { margin-top: 1rem; font-size: .82rem; }
@media print { .footer-res, .site-footer .credit { display: none; } #comite #comite .roster .pp { display: none; } #comite .roster li { display: block; } }

