:root {
  --ink: #0b0b0b;
  --paper: #f5f2eb;
  --white: #fff;
  --red: #d8202c;
  --red-dark: #a8121c;
  --yellow: #ffd23f;
  --muted: #5c5a55;
  --line: #0b0b0b;
  --radius: 4px;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
.kicker { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin: 0 0 .5rem; font-size: 1.1rem; }
.kicker a { text-decoration: none; }
.dark .kicker { color: var(--yellow); }
.lead { font-size: 1.25rem; }
.small-lead { font-size: 1.1rem; max-width: 60ch; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .4rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--red); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.brand img { border-radius: 50%; border: 2px solid var(--white); }
.brand em { color: var(--yellow); }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--ink); padding: 1rem; gap: .25rem; border-bottom: 4px solid var(--red); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: .75rem 0; font-size: 1.1rem; }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .03em; text-decoration: none; padding: .7rem 1.4rem; border: 3px solid var(--ink); border-radius: var(--radius); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; background: var(--white); color: var(--ink); line-height: 1.1; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--red); border-color: var(--ink); }
.btn-ghost { background: var(--white); }
.btn-block { display: block; text-align: center; }
.btn-small { font-size: 1rem; padding: .5rem 1rem; }
.dark .btn { box-shadow: 4px 4px 0 var(--yellow); border-color: var(--white); }
.more { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; text-decoration: none; color: var(--red); }
.more:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--white); border-bottom: 4px solid var(--ink); padding: 1.5rem 0 2rem; }
.hero-banner { width: 100%; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); background: var(--white); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; justify-content: center; }

/* Marquee */
.marquee { background: var(--red); color: var(--white); overflow: hidden; border-bottom: 4px solid var(--ink); white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 40s linear infinite; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.4rem; padding: .5rem 0; }
.marquee-track span { padding: 0 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--white); border-block: 3px solid var(--ink); }
.section.dark { background: var(--ink); color: var(--white); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 3rem auto; }
.pillar { background: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 1.5rem; }
.pillar .num { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--red); line-height: 1; display: block; }
.pillar h3 { margin: .2rem 0 .5rem; }
.pillar p { margin: 0; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--white); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.dl-card .card-img img { object-fit: contain; padding: .5rem; }
.checker { background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.5rem; }
.card-body h3 a { text-decoration: none; }
.card-body p { margin: 0; }
.card-body .btn { margin-top: auto; }
.card-body .more { margin-top: auto; }
.img-placeholder { height: 100%; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2rem; }
.img-placeholder.pdf { background: var(--red); font-size: 3rem; }
.badge-free { display: inline-block; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; padding: .1rem .7rem; transform: rotate(-3deg); font-size: 1.1rem; }
.card-img .badge-free { position: absolute; top: .6rem; left: .6rem; z-index: 2; }

.free-box { background: var(--yellow); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 1.5rem; margin: 1.5rem 0 3rem; }
.free-big { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1; margin-bottom: .75rem; }
.free-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.tip { margin-top: 3rem; padding: 1rem 1.25rem; border-left: 8px solid var(--red); background: var(--white); }

/* Article */
.prose { font-size: 1.15rem; }
.prose h2 { margin-top: 2rem; }
.prose a { color: var(--red); font-weight: 600; }
.prose img { border: 3px solid var(--ink); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 8px solid var(--red); background: var(--white); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.article-cover { margin: 1rem 0 2rem; border: 3px solid var(--ink); }
.article-cover figcaption { padding: .75rem; background: var(--white); border-top: 3px solid var(--ink); text-align: center; }
.video { position: relative; aspect-ratio: 16/9; margin: 1.5rem 0; border: 3px solid var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
hr { border: 0; border-top: 3px solid var(--ink); margin: 2.5rem 0 1rem; }

/* Live (X) */
.hashtag-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.hstat { display: block; text-decoration: none; background: var(--white); color: var(--ink); border: 3px solid var(--white); padding: .8rem 1rem; box-shadow: 5px 5px 0 var(--red); }
.hstat:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--red); }
.hstat b { display: block; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.3rem; text-transform: none; }
.hstat .n { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red); }
.hstat small { color: var(--muted); display: block; }
.spark { width: 100%; height: 28px; margin-top: .3rem; }
.tweet { width: min(380px, 82vw); flex: none; scroll-snap-align: start; background: var(--white); color: var(--ink); border: 3px solid var(--white); padding: 1.2rem; white-space: normal; min-height: 250px; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; box-shadow: 5px 5px 0 var(--yellow); }
.tweet:hover { border-color: var(--yellow); }
.tweet-head { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.tweet-head img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); }
.tweet-head b { display: block; line-height: 1.1; }
.tweet-head span { color: var(--muted); }
.tweet p { margin: 0; font-size: 1.15rem; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tweet footer { font-size: .85rem; color: var(--muted); margin-top: auto; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tweet .on-x { color: var(--red); font-weight: 700; }
.tweet.cta { background: var(--red); color: var(--white); justify-content: center; text-align: center; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.9rem; text-transform: uppercase; line-height: 1.05; align-items: center; }
.tweet.cta small { font-size: 1.1rem; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Gallery */
.masonry { columns: 3 260px; column-gap: 1rem; }
.photo { margin: 0 0 1rem; break-inside: avoid; background: var(--white); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); cursor: zoom-in; }
.photo img { width: 100%; height: auto; }
.photo figcaption { padding: .6rem .8rem; font-size: .95rem; display: flex; flex-direction: column; gap: .15rem; }
.photo figcaption:empty { display: none; }
.photo .tags { color: var(--red); font-weight: 600; font-size: .85rem; }
.photo .by { color: var(--muted); font-size: .85rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-height: 88vh; max-width: 100%; border: 4px solid var(--white); }
.lightbox p { color: var(--white); text-align: center; margin: .75rem 0 0; }

/* Form */
.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form label > span, .form legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.form input[type=text], .form input[type=password], .form input[type=url], .form textarea, .form select { width: 100%; font: inherit; padding: .65rem .8rem; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.form input[type=file] { width: 100%; padding: 1rem; border: 3px dashed var(--ink); background: var(--white); font: inherit; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; margin: 0; padding: .3rem .8rem; border: 2px solid var(--ink); border-radius: 99px; background: var(--white); cursor: pointer; font-weight: 500; }
.chip input:checked + span { background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; flex: none; accent-color: var(--red); }
.check span { font-weight: 400 !important; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.preview { max-height: 260px; border: 3px solid var(--ink); }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #0a7a2f; } .form-msg.err { color: var(--red-dark); }

/* Socials */
.socials { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; padding: .45rem .9rem; border: 2px solid currentColor; border-radius: 99px; font-weight: 600; }
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.socials.big { justify-content: center; gap: 1rem; margin-top: 2rem; }
.socials.big a { padding: .8rem 1.4rem; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); border-top: 4px solid var(--red); padding: 2.5rem 0; font-size: .95rem; }
.site-footer .muted { color: #aaa; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.footer-title { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.4rem; margin: 0 0 .5rem; color: var(--yellow); }
.site-footer a { color: var(--yellow); }
.site-footer .socials a { color: var(--white); padding: .25rem .7rem; font-size: .9rem; }
.site-footer .socials.compact svg { width: 16px; height: 16px; }

/* Les couvertures larges (bannières) ne doivent pas être rognées */
.post-card .card-img img { object-fit: contain; }

/* Carrousel de tuits */
.live .section-head { align-items: flex-end; }
.live .section-head h2 { margin-bottom: 0; }
.live-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.carousel { position: relative; }
.car-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .3rem .3rem 1.2rem; }
.car-viewport::-webkit-scrollbar { display: none; }
.car-track { display: flex; gap: 1rem; width: max-content; }
.car-btn { position: absolute; top: 50%; transform: translateY(-60%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--red); }
.car-btn.prev { left: -14px; } .car-btn.next { right: -14px; }
.car-btn:hover { background: var(--white); }
@media (max-width: 700px) { .car-btn { width: 42px; height: 42px; font-size: 1.6rem; } .car-btn.prev { left: -6px; } .car-btn.next { right: -6px; } }
.live .hashtag-stats { margin-top: 2rem; }
.hstat .n { font-size: 2rem; }

/* Appel à l'action de clôture */
.trio { background: var(--red); color: var(--white); border-top: 4px solid var(--ink); text-align: center; }
.trio .kicker { color: var(--yellow); }
.trio h2 { max-width: 20ch; margin-inline: auto; }
.trio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; text-align: left; }
.trio-card { background: var(--ink); border: 3px solid var(--white); box-shadow: 8px 8px 0 var(--yellow); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.trio-card .word { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; color: var(--yellow); }
.trio-card p { margin: 0; flex: 1; }
.trio .btn { box-shadow: 4px 4px 0 var(--yellow); border-color: var(--white); align-self: flex-start; }
.dark .muted { color: #c9c6bf; }

/* Bilingue */
.lang-switch { border: 2px solid var(--yellow); border-radius: 99px; padding: .15rem .7rem !important; color: var(--yellow); font-weight: 800 !important; letter-spacing: .05em; }
.lang-switch:hover { background: var(--yellow); color: var(--ink); }
.notice { background: var(--yellow); border: 2px solid var(--ink); padding: .6rem 1rem; font-weight: 600; }
.pill-lang { background: var(--ink); color: var(--white); font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 4px; }
.lang-switch { align-self: flex-start; width: max-content; }

/* Pétition */
.petition-bar { background: var(--yellow); color: var(--ink); border-bottom: 3px solid var(--ink); font-size: .95rem; }
.petition-bar a { display: flex; justify-content: center; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; padding: .45rem 1rem; text-decoration: none; }
.petition-bar a:hover .pb-cta { text-decoration: underline; }
.pb-count { background: var(--ink); color: var(--yellow); font-weight: 800; padding: 0 .6rem; border-radius: 99px; font-size: .85rem; }
.pb-cta { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--red-dark); }
.site-header nav a.nav-sign { background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); border-radius: 99px; padding: .2rem .9rem; font-weight: 800; }
.site-header nav a.nav-sign:hover { background: var(--white); border-color: var(--white); }
.btn-big { font-size: 1.6rem; padding: .9rem 2rem; }
.hero-cta .btn-big { box-shadow: 5px 5px 0 var(--ink); }
.petition { background: var(--yellow); border-block: 4px solid var(--ink); }
.petition.compact { padding: 2.5rem 0; }
.petition-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .petition-grid { grid-template-columns: 1fr; } }
.petition .kicker { color: var(--red-dark); }
.petition .btn-primary { border-color: var(--ink); }
.counter-card { background: var(--white); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 1.5rem; text-align: center; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.count-num { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 9vw, 5.5rem); line-height: .9; color: var(--red); }
.count-label { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; }
.count-empty { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.9rem; line-height: 1.05; }
.goal-bar { display: block; width: 100%; height: 16px; border: 3px solid var(--ink); background: var(--paper); margin-top: .6rem; }
.goal-bar span { display: block; height: 100%; background: var(--red); }
.goal-label { font-size: .9rem; color: var(--muted); }
.trio-sign { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.trio-sign .word { color: var(--red-dark); }
.trio-sign .btn { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.trio-count { font-weight: 800; margin: 0; }
.site-footer .btn-primary { color: var(--white); }
