:root {
  --ink: #142433;
  --muted: #617184;
  --line: #d8e0e7;
  --paper: #f7f9fb;
  --card: #ffffff;
  --navy: #152b3d;
  --blue: #2c74a6;
  --coral: #e45f4d;
  --shadow: 0 10px 30px rgba(22, 48, 70, .08);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 16px/1.65 Georgia, "Times New Roman", serif; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--coral); text-decoration: underline; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { color: #fff; background: var(--navy); border-bottom: 5px solid var(--coral); }
.header-inner { min-height: 148px; padding: 30px 0 27px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; font: 700 clamp(1.55rem, 3vw, 2.2rem)/1.1 Georgia, serif; letter-spacing: -.03em; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--coral); border: 2px solid var(--coral); border-radius: 50%; font: 1.4rem/1 Georgia, serif; }
.tagline { max-width: 475px; margin: 0; color: #c6d3dd; font-size: .96rem; line-height: 1.45; text-align: right; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 70px; padding-top: 62px; padding-bottom: 80px; }
.content-intro { margin-bottom: 46px; }
.eyebrow { margin: 0 0 8px; color: var(--coral); font: 700 .73rem/1.2 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--ink); }
h1 { margin-bottom: 6px; font: 700 clamp(2rem, 4vw, 3.1rem)/1.08 Georgia, serif; letter-spacing: -.045em; }
.intro-copy { margin: 0; color: var(--muted); font-size: 1.05rem; }
.day-group { margin-bottom: 48px; }
.day-heading { display: flex; align-items: center; gap: 17px; margin: 0 0 16px; color: var(--blue); font: 700 .83rem/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.day-heading::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.entry { padding: 25px 0 31px; border-top: 1px solid var(--line); }
.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; color: var(--muted); font: .74rem/1.4 Arial, sans-serif; letter-spacing: .025em; }
.feed-name { color: var(--coral); font-weight: 700; }
.dot { color: #aab7c1; }
.entry h3 { margin-bottom: 11px; font: 700 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 Georgia, serif; letter-spacing: -.025em; }
.entry h3 a { color: var(--ink); }
.entry h3 a:hover { color: var(--blue); text-decoration: none; }
.entry-body { max-width: 710px; color: #394b5b; font-size: 1rem; }
.entry-body p:first-child { margin-top: 0; }
.entry-body img { max-width: 100%; height: auto; }
.entry-more { margin: 15px 0 0; font: 700 .8rem/1.3 Arial, sans-serif; }
.entry-more a { color: var(--blue); }
.sidebar { padding-top: 53px; }
.side-card { padding: 25px 23px 23px; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-heading { display: flex; align-items: center; gap: 9px; border-bottom: 2px solid var(--navy); padding-bottom: 13px; }
.side-heading h2, .side-card h2 { margin: 0; font: 700 1.08rem/1.25 Arial, sans-serif; letter-spacing: -.02em; }
.side-icon { color: var(--coral); font: 1.3rem/1 Arial, sans-serif; }
.side-lede, .side-note p { margin: 15px 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.subscriptions { padding: 0; margin: 17px 0 0; list-style: none; }
.subscriptions li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf1f4; font: .9rem/1.3 Arial, sans-serif; }
.feed-link { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.feed-bullet { width: 7px; height: 7px; flex: 0 0 7px; background: var(--coral); border-radius: 50%; }
.rss-link { color: var(--blue); font-size: .67rem; font-weight: 700; letter-spacing: .05em; }
.atom-link { font: 700 .82rem/1.3 Arial, sans-serif; }
.site-footer { color: #aebdca; background: var(--navy); font: .78rem/1.4 Arial, sans-serif; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 78px; }
.footer-separator { color: var(--coral); }
.footer-powered { margin-left: auto; }
.site-footer a { color: #fff; }
@media (max-width: 760px) { .wrap { width: min(100% - 32px, 620px); } .header-inner { min-height: 0; display: block; padding: 25px 0 22px; } .tagline { margin: 18px 0 0; text-align: left; } .page-grid { display: block; padding-top: 40px; } .sidebar { padding-top: 10px; } .content-intro { margin-bottom: 33px; } .footer-powered { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: no-preference) { a { transition: color .16s ease; } }

/* --- Troncature des longues entrées --- */
.entry-toggle { position: absolute; opacity: 0; pointer-events: none; }

.entry-body.is-long {
  position: relative;
  max-height: 38em;            /* ≈ 7500 caractères */
  overflow: hidden;
}
.entry-body.is-long::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6em;
  background: linear-gradient(to bottom, rgba(247,249,251,0), var(--paper));
  pointer-events: none;
}
.entry-toggle:checked + .entry-body.is-long { max-height: none; overflow: visible; }
.entry-toggle:checked + .entry-body.is-long::after { display: none; }

.entry-readmore {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
  font: 700 .82rem/1.3 Arial, sans-serif;
  cursor: pointer;
  user-select: none;
}
.entry-readmore:hover { background: var(--coral); }
.entry-toggle:focus-visible ~ .entry-readmore { outline: 2px solid var(--coral); outline-offset: 2px; }

.entry-readmore .label-less { display: none; }
.entry-toggle:checked ~ .entry-readmore .label-more { display: none; }
.entry-toggle:checked ~ .entry-readmore .label-less { display: inline; }

.entry-body iframe, .entry-body video { max-width: 100%; }
.entry-body pre { overflow-x: auto; }


/* --- Pagination --- */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 40px 0 10px; padding-top: 22px; border-top: 2px solid var(--navy);
  font: 700 .85rem/1.3 Arial, sans-serif;
}
.pager-pages { display: flex; gap: 6px; }
.pager-pages a, .pager-pages strong {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 3px; color: var(--blue);
}
.pager-pages a:hover { border-color: var(--coral); color: var(--coral); text-decoration: none; }
.pager-pages strong { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager-prev, .pager-next { color: var(--blue); }
.pager-prev:empty, .pager-next:empty { display: none; }

/* --- Pagination par jour --- */
.day-page { display: none; scroll-margin-top: 24px; }
.day-page:target, .day-page.is-first { display: block; }
.content:has(.day-page:target) .day-page.is-first:not(:target) { display: none; }

.day-heading time::first-letter { text-transform: uppercase; }
.day-count { margin-left: auto; order: 2; color: var(--muted); font-weight: 400; letter-spacing: .02em; text-transform: none; }

.pager-pos { color: var(--muted); font-weight: 400; }
.pager-prev, .pager-next { max-width: 40%; }
.pager-next { text-align: right; }

/* Archives (sidebar) */
.day-list { max-height: 360px; overflow-y: auto; padding: 0; margin: 14px 0 0; list-style: none; }
.day-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf1f4; font: .85rem/1.3 Arial, sans-serif; }
.day-list a::first-letter { text-transform: uppercase; }
.day-list span { color: var(--muted); font-size: .75rem; }
