/* ═══════════════ Impression ═══════════════
   Les longs formats comme Lignée se photocopiaient mal : navigation, pied de
   page et boutons partaient à l'encre pour rien, et les liens perdaient leur
   destination. */
@media print {
  header, footer, nav, .site-menu, form,
  [data-rlgbs-recherche], [data-rlgbs-connexion],
  audio, video, .no-print { display: none !important; }

  html, body { background: #fff !important; color: #000 !important; font-size: 11.5pt; }
  main { max-width: none !important; padding: 0 !important; }

  /* Les en-têtes en aplat bleu vidaient une cartouche d'encre par article. */
  .bg-royal-deep, .bg-royal, .bg-cream, .bg-royal-soft {
    background: #fff !important; color: #000 !important;
  }
  .text-paper, .text-paper\/70, .text-paper\/80, .text-paper\/65 { color: #000 !important; }

  h1 { font-size: 22pt; margin-bottom: .3cm; }
  h2 { font-size: 15pt; }
  h3 { font-size: 13pt; }
  h1, h2, h3, h4 { page-break-after: avoid; break-after: avoid; }
  p, li, blockquote { orphans: 3; widows: 3; }
  img, figure, blockquote { page-break-inside: avoid; break-inside: avoid; }
  img { max-width: 100% !important; max-height: 9cm; }

  /* Un lien imprimé sans son adresse est un cul-de-sac. */
  .article-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt; color: #444; word-break: break-all;
  }
  a { text-decoration: underline; color: #000 !important; }

  /* Provenance en pied de page, pour qui retrouve la photocopie plus tard. */
  @page { margin: 1.8cm 1.6cm; }
}

/* ═══════════════ Temps de lecture ═══════════════ */
.rlgbs-lecture {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--color-muted);
}

/* ═══════════════ Manifestations : calendrier, dates, galerie ═══════════════
   AJOUT 25/09/2026 — ces classes étaient produites par le générateur et par
   assets/manifestations.js, mais aucune feuille de style ne les décrivait :
   le calendrier se serait affiché en une longue colonne de chiffres. */
.rlgbs-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rlgbs-cal .jour {
  min-height: 4.6rem; padding: .35rem .4rem; border-radius: 6px;
  background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-line);
  display: flex; flex-direction: column; gap: .2rem; overflow: hidden;
}
.rlgbs-cal .jour.vide { background: transparent; box-shadow: none; }
.rlgbs-cal .jour .num { font-size: .78rem; font-weight: 700; color: var(--color-muted); }
.rlgbs-cal .jour.aujour { box-shadow: inset 0 0 0 2px var(--color-royal); }
.rlgbs-cal .jour.aujour .num { color: var(--color-royal); }
.rlgbs-cal .evt {
  display: block; font-size: .7rem; line-height: 1.2; font-weight: 600;
  padding: .2rem .3rem; border-radius: 4px; background: var(--color-royal); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rlgbs-cal .evt:hover { background: var(--color-royal-deep); }
@media (max-width: 640px) {
  .rlgbs-cal { gap: 2px; }
  .rlgbs-cal .jour { min-height: 3.2rem; padding: .2rem; }
  .rlgbs-cal .evt { font-size: 0; height: .5rem; padding: 0; } /* pastille sur mobile */
}

.rlgbs-datebloc {
  flex: none; width: 4.2rem; height: 4.6rem; border-radius: 8px;
  background: var(--color-royal); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rlgbs-datebloc .j { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.rlgbs-datebloc .m { font-size: .68rem; font-weight: 700; letter-spacing: .14em; margin-top: .25rem; }

.rlgbs-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: 1rem; }
.rlgbs-galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--color-cream); }
.rlgbs-galerie img, .rlgbs-galerie video { width: 100%; height: 100%; object-fit: cover; display: block; }

.rlgbs-lightbox {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(5, 12, 30, .9);
}
.rlgbs-lightbox.on { display: flex; }
.rlgbs-lightbox img, .rlgbs-lightbox video { max-width: 100%; max-height: 88vh; border-radius: 6px; }
#rlgbs-lb-x {
  position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1rem;
  background: #fff; color: var(--color-ink); border: 0; border-radius: 6px;
  padding: .5rem .9rem; font-weight: 700; cursor: pointer;
}

/* ═══════════════ Accueil : « Ce pour quoi je milite » (25/09/2026) ═══════════════ */
.lc { position: relative; background: linear-gradient(180deg, #f4f6fb 0%, #e9eef8 100%); overflow: hidden; }
.lc::before { /* fine ligne bleue en tête de section */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #001f6b, #0033a0 50%, #001f6b);
}
.lc-wrap { max-width: 72rem; margin: 0 auto; padding: 4.5rem 1rem 5rem; }
@media (min-width: 640px) { .lc-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
.lc-tete { max-width: 46rem; }
.lc-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #0033a0;
}
.lc-kfleur { width: .8rem; height: 1rem; fill: currentColor; }
.lc-h2 {
  margin: .6rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.02; color: #0b1730;
}
.lc-intro { margin: 1.1rem 0 0; font-size: 1.08rem; line-height: 1.7; color: #4a5870; }

/* Carte vedette : l'indépendance */
.lc-une {
  position: relative; overflow: hidden; margin-top: 2.6rem; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, #0a3fb8 0%, #0033a0 35%, #001f6b 100%);
  color: #fff; box-shadow: 0 22px 50px -24px rgba(0, 31, 107, .65);
}
.lc-une-in { position: relative; z-index: 1; padding: 2.2rem 1.6rem 2.4rem; max-width: 44rem; }
@media (min-width: 720px) { .lc-une-in { padding: 3rem 3rem 3.2rem; } }
.lc-filigrane {
  position: absolute; right: -2.5rem; bottom: -3rem; width: 15rem; height: 19rem;
  fill: #fff; opacity: .08; pointer-events: none;
}
@media (min-width: 720px) { .lc-filigrane { right: 2rem; width: 17rem; height: 21rem; opacity: .1; } }
.lc-une .lc-num { color: rgba(255,255,255,.55); }
.lc-une-titre {
  margin: .5rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.05;
}
.lc-une-texte { margin: 1rem 0 0; font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,.88); }

/* Grille des autres combats */
.lc-grille { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .lc-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lc-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lc-carte {
  position: relative; display: flex; flex-direction: column; border-radius: 14px;
  background: #fff; padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 0 0 1px #cfd7e6, 0 6px 18px -12px rgba(11, 23, 48, .25);
  border-top: 4px solid #0033a0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lc-carte:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #9fb3dc, 0 16px 30px -16px rgba(0, 31, 107, .4); }
@media (prefers-reduced-motion: reduce) { .lc-carte { transition: none; } .lc-carte:hover { transform: none; } }
.lc-carte-tete { display: flex; align-items: center; justify-content: space-between; }
.lc-num {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.9rem;
  line-height: 1; color: #c5d2ec; letter-spacing: .02em;
}
.lc-fleur { width: 1rem; height: 1.25rem; fill: #0033a0; opacity: .85; }
.lc-titre {
  margin: .9rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
  font-size: 1.5rem; line-height: 1.15; color: #0b1730;
}
.lc-texte { margin: .6rem 0 0; font-size: .93rem; line-height: 1.65; color: #4a5870; }

@media print {
  .lc { background: #fff; } .lc::before, .lc-filigrane { display: none; }
  .lc-une { background: #fff; color: #000; box-shadow: none; border: 2px solid #000; }
  .lc-une-texte, .lc-une .lc-num { color: #000; }
  .lc-carte { box-shadow: none; border: 1px solid #999; }
}

/* Logo 2026-10-09 : sur téléphone, le nom tient entre la fleur et les boutons. */
@media (max-width: 430px) {
  header a > span.leading-tight > span.font-display { font-size: .98rem !important; line-height: 1.1; letter-spacing: -.01em; }
  header a.flex.min-w-0 { gap: .35rem; }
  header a.flex.min-w-0 > span.size-9 { width: 1.45rem; }
  header a.flex.min-w-0 > span.size-9 svg { width: 1.4rem !important; height: 1.87rem !important; }
}