/* ContreLaCour, feuille de style */
:root {
  --paper: #f7f3ea;
  --paper-2: #efe9dc;
  --card: #fbf8f2;
  --ink: #1d1b17;
  --ink-2: #4a463e;
  --muted: #7a7366;
  --rule: #d8cfbe;
  --accent: #7d1d16;
  --accent-soft: #f1e1d9;
  --note: #eef0e6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --measure: 690px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15140f; --paper-2: #1d1b15; --card: #1a1813; --ink: #ece5d6; --ink-2: #c7bfae;
    --muted: #958c7b; --rule: #3a362c; --accent: #e08b72; --accent-soft: #33221b; --note: #22251c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15140f; --paper-2: #1d1b15; --card: #1a1813; --ink: #ece5d6; --ink-2: #c7bfae;
  --muted: #958c7b; --rule: #3a362c; --accent: #e08b72; --accent-soft: #33221b; --note: #22251c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-family: var(--sans); font-size: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- en-tête ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-top { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.masthead-date::first-letter { text-transform: uppercase; }
.masthead-tools { display: flex; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.brand { text-align: center; padding-top: 6px; padding-bottom: 22px; }
.logo { font-family: var(--serif); font-weight: 650; font-size: clamp(44px, 8vw, 84px); letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: var(--ink); }
.logo i { font-weight: 400; color: var(--accent); padding: 0 0.02em; }
.logo-sm { font-size: 30px; }
.tagline { margin: 10px 0 0; font-style: italic; color: var(--ink-2); font-size: 18px; }
.nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; justify-content: center; align-items: center; gap: 4px 26px; flex-wrap: wrap; padding-top: 11px; padding-bottom: 11px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-sep { width: 1px; height: 16px; background: var(--rule); }

/* ---------- éléments communs ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 8px; }
.kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; text-decoration: none; }
.kicker:hover { text-decoration: underline; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 3px double var(--ink); padding-top: 12px; margin: 56px 0 26px; }
.section-head h2 { margin: 0; font-size: 15px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.section-head a { font-family: var(--sans); font-size: 14px; color: var(--accent); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--sans); font-size: 13px; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; color: var(--ink-2); background: var(--card); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip span { color: var(--muted); margin-left: 4px; }
.chip-tag { background: transparent; }

.annonce { margin: 28px auto 0; max-width: 820px; text-align: center; font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); background: var(--accent-soft); border-radius: 6px; padding: 12px 18px; }
.annonce-label { display: inline-block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--accent); margin-right: 10px; }

/* ---------- à la une ---------- */
.une { display: grid; grid-template-columns: 1.65fr 1fr; gap: 48px; margin-top: 40px; }
.une-title { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.02em; margin: 4px 0 16px; font-weight: 500; }
.une-title a, .une-second h3 a, .card-title a { text-decoration: none; }
.une-title a:hover, .une-second h3 a:hover, .card-title a:hover { color: var(--accent); }
.une-chapo { font-size: 21px; color: var(--ink-2); margin: 0 0 16px; }
.lire { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lire::after { content: " →"; }
.une-side { border-left: 1px solid var(--rule); padding-left: 32px; display: flex; flex-direction: column; }
.une-second { padding: 0 0 24px; }
.une-second + .une-second { border-top: 1px solid var(--rule); padding-top: 24px; }
.une-second h3 { font-size: 25px; line-height: 1.18; margin: 2px 0 10px; font-weight: 500; letter-spacing: -0.01em; }
.une-second p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- dossiers ---------- */
.dossiers-band { background: var(--paper-2); margin-top: 64px; padding: 2px 0 56px; }
.dossiers-band .section-head { margin-top: 44px; }
.dossiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.dossier { background: var(--card); padding: 22px 24px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: background .15s; }
.dossier:hover { background: var(--paper); }
.dossier-count { font-family: var(--sans); font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.dossier-name { font-size: 26px; font-weight: 500; line-height: 1.15; }
.dossier-desc { color: var(--ink-2); font-size: 16px; line-height: 1.45; }

/* ---------- grilles d'articles ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.card { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding-top: 18px; }
.card-title { font-size: 23px; line-height: 1.2; margin: 0 0 10px; font-weight: 500; letter-spacing: -0.01em; }
.card-chapo { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin: 56px 0 24px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14px; }
.pagination a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pagination-num { color: var(--muted); }

/* ---------- listes ---------- */
.list-head { padding-top: 48px; padding-bottom: 8px; }
.crumbs { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 8px; font-weight: 600; }
.crumbs a { text-decoration: none; }
.list-head h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 500; }
.list-desc { font-size: 21px; color: var(--ink-2); max-width: 760px; margin: 0 0 20px; font-style: italic; }
.list-head + .wrap .grid { margin-top: 28px; }

/* ---------- article ---------- */
.article { max-width: calc(var(--measure) + 48px); margin: 0 auto; padding: 56px 24px 0; }
.article-head { margin-bottom: 30px; }
.article-head .meta { justify-content: flex-start; }
.article-head h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0 16px; font-weight: 500; }
.byline { font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin: 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.archive-note { font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); background: var(--paper-2); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 0 0 32px; }
.prose { font-size: 20px; line-height: 1.68; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 30px; line-height: 1.2; margin: 1.8em 0 .6em; font-weight: 500; letter-spacing: -0.01em; }
.prose h3 { font-size: 24px; line-height: 1.25; margin: 1.6em 0 .5em; font-weight: 500; }
.prose h4, .prose h5 { font-family: var(--sans); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin: 1.8em 0 .6em; font-weight: 600; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose .encadre { clear: both; background: var(--note); border-radius: 4px; padding: 18px 22px; margin: 1.6em 0; font-size: 18px; }
.prose .encadre-tick { background: var(--accent-soft); }
.prose .encadre > :last-child { margin-bottom: 0; }
.prose .video, .prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; background: var(--paper-2); clear: both; }
.prose .embed { aspect-ratio: 4 / 3; }
.prose .video iframe, .prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .media-perdu { font-family: var(--sans); font-size: 13.5px; color: var(--muted); border: 1px dashed var(--rule); padding: 10px 14px; border-radius: 4px; }
.prose .tweet { font-style: normal; font-size: 17px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 1.5em 0; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 6px 10px; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.pn { text-decoration: none; font-size: 19px; line-height: 1.3; }
.pn span { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.pn:hover { color: var(--accent); }
.pn-next { text-align: right; }
.related-band { background: var(--paper-2); margin-top: 72px; padding: 2px 0 56px; }
.related-band .section-head { margin-top: 44px; }
.grid-3 .card { border-top-color: var(--ink); }

/* ---------- archives ---------- */
.archives-layout { display: grid; grid-template-columns: 280px 1fr; gap: 56px; margin-top: 28px; }
.archives-side h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.archives-side h2 + * { margin-bottom: 36px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 16px; border-left: 1px solid var(--rule); margin: 4px 0 6px 4px; }
.tree li { font-size: 17px; margin: 4px 0; }
.tree a { text-decoration: none; }
.tree a:hover { color: var(--accent); }
.tree span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.years { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--sans); font-size: 15px; margin: 0 0 12px; position: sticky; top: 0; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--rule); z-index: 1; }
.years a { color: var(--accent); text-decoration: none; font-weight: 600; }
.year h2 { font-size: 40px; font-weight: 500; margin: 36px 0 10px; }
.year h2 a { text-decoration: none; }
.year h2 span { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.35; }
.timeline time { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.timeline a { text-decoration: none; }
.timeline a:hover { color: var(--accent); }
.tl-cat { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- recherche ---------- */
.search input { width: 100%; max-width: 720px; font: inherit; font-size: 22px; padding: 14px 18px; border: 1px solid var(--rule); border-bottom: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 4px 4px 0 0; }
.search input:focus { outline: none; border-bottom-color: var(--accent); }
.results { list-style: none; padding: 0; margin: 12px 0 40px; max-width: 820px; }
.results li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.results h3 { margin: 0 0 6px; font-size: 24px; font-weight: 500; line-height: 1.2; }
.results h3 a { text-decoration: none; }
.results h3 a:hover { color: var(--accent); }
.results p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- pied de page ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--ink); padding: 36px 0 28px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.related-band + .footer, .dossiers-band + .footer { margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { max-width: 420px; margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; max-width: 520px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }

/* ---------- adaptatif ---------- */
@media (max-width: 980px) {
  .une { grid-template-columns: 1fr; gap: 28px; }
  .une-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .grid, .dossiers { grid-template-columns: repeat(2, 1fr); }
  .archives-layout { grid-template-columns: 1fr; gap: 0; }
  .archives-side { order: 2; margin-top: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .article { padding: 36px 16px 0; }
  .nav-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .grid, .dossiers, .prevnext { grid-template-columns: 1fr; }
  .grid { gap: 28px; }
  .pn-next { text-align: left; }
  .prose { font-size: 18.5px; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .tl-cat { display: none; }
  .masthead-date { font-size: 12px; }
}
@media print {
  .masthead-top, .nav, .footer, .related-band, .prevnext { display: none; }
  body { background: #fff; color: #000; }
}

/* page « Dans la presse » */
.prose .presse { list-style: none; padding: 0; margin: 1.6em 0 0; border-top: 1px solid var(--rule); }
.prose .presse li { margin: 0; border-bottom: 1px solid var(--rule); }
.prose .presse a { display: grid; grid-template-columns: 1fr; align-items: center; gap: 0 20px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.prose .presse a:has(img) { grid-template-columns: 132px 1fr; }
.prose .presse img { grid-row: span 2; display: block; width: 132px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 3px; border: 1px solid var(--rule); background: var(--paper-2); }
.prose .presse-media { align-self: end; font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.prose .presse-titre { align-self: start; font-size: 19px; line-height: 1.35; }
.prose .presse a:hover .presse-titre { color: var(--accent); }
@media (max-width: 640px) { .prose .presse a:has(img) { grid-template-columns: 96px 1fr; } .prose .presse img { width: 96px; } }

/* vidéos en tête de rubrique */
.videos-band .section-head { margin-top: 36px; }
.videos-intro { color: var(--ink-2); font-style: italic; margin: -10px 0 24px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.video-card { margin: 0; display: flex; flex-direction: column; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.video-thumb:hover img { transform: scale(1.03); }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(20,18,14,.72); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video-thumb:hover .play { background: var(--accent); }
.duree { position: absolute; right: 8px; bottom: 8px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: #fff; background: rgba(20,18,14,.8); padding: 2px 6px; border-radius: 3px; }
.video-card figcaption { padding-top: 10px; }
.video-meta { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.video-titre { display: block; font-size: 19px; line-height: 1.3; }
.video-article { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.video-article::after { content: " →"; }
.videos-chaine { margin: 28px 0 0; font-family: var(--sans); font-size: 14px; }
.videos-chaine a { color: var(--accent); font-weight: 600; text-decoration: none; }
.videos-compact { grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.videos-compact .video-titre { font-size: 17px; }
.videos-compact .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.videos-compact .play::after { left: 17px; top: 13px; border-width: 9px 0 9px 15px; }
@media (max-width: 980px) { .videos { grid-template-columns: repeat(2, 1fr); } .videos-compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .videos { grid-template-columns: 1fr; } .videos-compact { grid-template-columns: repeat(2, 1fr); } .videos-compact .video-titre { font-size: 15.5px; } }

.section-head h2 .videos-rub { margin-left: 10px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 13px; color: var(--muted); }
.section-head h2 .videos-rub:hover { color: var(--accent); }
.videos-band + .videos-band .section-head { margin-top: 52px; }
