/*
Theme Name: CNiouz
Theme URI: https://cniouz.fr
Description: Thème WordPress pour un site d'actualité satirique et parodique. Esthétique « chaîne info en continu » poussée jusqu'à l'absurde : bandeau d'urgence, ticker affolé, jauge de panique nationale, experts fictifs. Identité visuelle propre (typo Bebas Neue, rouge alerte, accent jaune chantier). Contenu, citations, sondages et experts entièrement fictifs, relevant de la parodie (article L.122-5 du CPI).
Author: CNiouz
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cniouz
Tags: news, blog, magazine, custom-logo, custom-menu, featured-images, two-columns, right-sidebar
*/

/* =========================================================
   1. JETONS / TOKENS
   ========================================================= */
:root {
  --rouge: #E11313;
  --rouge-fonce: #A30A0A;
  --rouge-clair: #FCE9E9;
  --encre: #15100F;
  --encre-2: #4A413E;
  --papier: #FFFFFF;
  --brume: #F0F1F3;
  --ligne: #E4E1DD;
  --jaune: #FFC400;
  --jaune-encre: #1A1305;

  --font-display: "Bebas Neue", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-corps: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --largeur: 1180px;
  --gouttiere: 28px;
  --rayon: 4px;
  --ombre: 0 1px 0 var(--ligne), 0 18px 40px -28px rgba(21,16,15,.45);
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--font-corps);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rouge-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1.15em; }

h1, h2, h3, h4 { margin: 0; line-height: 1; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  font-family: var(--font-data);
  font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding-inline: var(--gouttiere);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   3. BANDEAU PARODIE (ruban de chantier)
   ========================================================= */
.ruban {
  background: repeating-linear-gradient(
    -45deg,
    var(--jaune) 0 18px,
    var(--encre) 18px 36px
  );
  padding: 7px 0;
}
.ruban__inner {
  display: flex;
  justify-content: center;
}
.ruban__chip {
  background: var(--jaune);
  color: var(--jaune-encre);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border: 2px solid var(--encre);
  text-align: center;
}

/* =========================================================
   4. BARRE UTILITAIRE (horloge + jauge de panique)
   ========================================================= */
.topbar {
  background: var(--encre);
  color: #fff;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding-block: 6px;
}
.horloge {
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #f4f4f4;
  display: flex;
  align-items: center;
  gap: 9px;
}
.horloge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rouge);
  box-shadow: 0 0 0 0 rgba(225,19,19,.7);
  animation: pulse 1.6s infinite;
}
.panique {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panique__svg { width: 92px; height: auto; display: block; }
.panique__label {
  text-align: right;
  line-height: 1.1;
}
.panique__k {
  display: block;
  font-family: var(--font-data);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b9aeac;
}
.panique__v {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .04em;
  color: var(--jaune);
}

/* =========================================================
   5. MASTHEAD
   ========================================================= */
.masthead {
  background: var(--papier);
  border-bottom: 1px solid var(--ligne);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.logo-mark {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  letter-spacing: .01em;
  line-height: .8;
  color: var(--encre);
}
.logo-mark .c { color: var(--rouge); }
.logo-mark .live-dot {
  display: inline-block;
  width: .42em; height: .42em;
  border-radius: 50%;
  background: var(--rouge);
  margin-left: .04em;
  transform: translateY(-.06em);
}
.brand__tag {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--encre-2);
  max-width: 18ch;
  line-height: 1.25;
}
.brand-img img { max-height: 64px; width: auto; }

.endirect {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--rouge);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .06em;
  padding: 5px 13px 3px;
}
.endirect__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  animation: pulse-white 1.4s infinite;
}
.masthead__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* recherche compacte */
.search-mini { display: flex; align-items: stretch; }
.search-mini input[type="search"] {
  font-family: var(--font-corps);
  font-size: 13px;
  border: 1px solid var(--ligne);
  border-right: 0;
  padding: 8px 12px;
  width: 190px;
  background: var(--brume);
  color: var(--encre);
}
.search-mini input[type="search"]::placeholder { color: var(--encre-2); }
.search-mini button {
  background: var(--encre);
  color: #fff;
  border: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .05em;
  padding: 0 14px;
}
.search-mini button:hover { background: var(--rouge); }

/* =========================================================
   6. TICKER « DERNIÈRE MINUTE »
   ========================================================= */
.ticker {
  background: var(--rouge);
  color: #fff;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker__label {
  flex: 0 0 auto;
  background: var(--encre);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 7px;
  z-index: 2;
  position: relative;
}
.ticker__label::after {
  content: "";
  position: absolute;
  right: -10px; top: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 19px 0 19px 10px;
  border-color: transparent transparent transparent var(--encre);
}
.ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: defile 38s linear infinite;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
}
.ticker__sep {
  color: var(--jaune);
  padding: 0 18px;
  font-weight: 800;
}

/* =========================================================
   7. NAVIGATION
   ========================================================= */
.nav {
  background: var(--papier);
  border-bottom: 3px solid var(--encre);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__toggle {
  display: none;
  background: var(--encre);
  color: #fff;
  border: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .05em;
  padding: 12px 16px;
}
.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.nav__list li { position: relative; }
.nav__list a {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--encre);
  padding: 14px 16px 11px;
  border-bottom: 4px solid transparent;
  transition: color .12s, border-color .12s, background .12s;
}
.nav__list a:hover {
  text-decoration: none;
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
/* sous-menus */
.nav__list ul.sub-menu {
  position: absolute;
  left: 0; top: 100%;
  min-width: 220px;
  background: var(--encre);
  list-style: none;
  margin: 0; padding: 6px 0;
  display: none;
  z-index: 50;
}
.nav__list li:hover > ul.sub-menu { display: block; }
.nav__list ul.sub-menu a {
  color: #fff;
  font-size: 16px;
  padding: 8px 18px;
  border: 0;
}
.nav__list ul.sub-menu a:hover { background: var(--rouge); color: #fff; }

/* =========================================================
   8. LAYOUT GÉNÉRAL
   ========================================================= */
.site-main { padding-block: 34px 48px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }

/* =========================================================
   9. UNE / LEAD
   ========================================================= */
.une {
  position: relative;
  margin-bottom: 34px;
  background: var(--encre);
  overflow: hidden;
}
.une__media {
  position: relative;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
}
.une__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
}
.une__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(21,16,15,.94) 12%, rgba(21,16,15,0) 100%);
  padding: 64px 30px 26px;
}
.une__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rouge);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .07em;
  padding: 4px 12px 2px;
  margin-bottom: 12px;
}
.une__title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(30px, 5vw, 58px);
  line-height: .92;
  letter-spacing: .01em;
  max-width: 22ch;
}
.une__title a { color: #fff; }
.une__title a:hover { color: var(--jaune); text-decoration: none; }
.une__meta {
  margin-top: 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .03em;
  color: #d9cfcd;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================
   10. GRILLE D'ARTICLES / CARTES
   ========================================================= */
.section-titre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.section-titre h2 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: .03em;
  color: var(--encre);
}
.section-titre::before {
  content: "";
  width: 14px;
  align-self: stretch;
  background: var(--rouge);
}
.section-titre::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--encre);
}

.grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.carte {
  background: var(--papier);
  border: 1px solid var(--ligne);
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.carte:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre);
}
.carte__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brume);
}
.carte__media img { width: 100%; height: 100%; object-fit: cover; }
.carte__cat {
  position: absolute;
  left: 0; top: 0;
  background: var(--rouge);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 4px 11px 2px;
}
.carte__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.carte__title {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: .98;
  letter-spacing: .01em;
  margin-bottom: 9px;
}
.carte__title a { color: var(--encre); }
.carte__title a:hover { color: var(--rouge); text-decoration: none; }
.carte__excerpt {
  font-size: 14.5px;
  color: var(--encre-2);
  margin-bottom: 14px;
}
.carte__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dotted var(--ligne);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--encre-2);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.meta__sep { color: var(--rouge); }

/* placeholder image */
.placeholder { background: var(--rouge); }

/* =========================================================
   11. ARTICLE (single)
   ========================================================= */
.article { background: var(--papier); border: 1px solid var(--ligne); }
.article__header { padding: 28px 34px 6px; }
.article__cat {
  display: inline-flex;
  background: var(--rouge);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .06em;
  padding: 4px 13px 2px;
  margin-bottom: 16px;
}
.article__cat a { color: #fff; }
.article__cat a:hover { color: var(--jaune); text-decoration: none; }
.article__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: .94;
  letter-spacing: .01em;
  color: var(--encre);
  margin-bottom: 18px;
}
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--encre-2);
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  padding: 12px 0;
}
.byline__author { color: var(--encre); font-weight: 600; }

/* jauge d'anxiété de lecture */
.anxiete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.anxiete__bars { display: inline-flex; gap: 3px; }
.anxiete__bar {
  width: 9px; height: 13px;
  background: var(--ligne);
}
.anxiete__bar.on { background: var(--rouge); }
.anxiete__txt { color: var(--rouge-fonce); font-weight: 600; }

.article__figure { margin: 0; }
.article__figure img { width: 100%; }
.article__figure figcaption {
  font-family: var(--font-data);
  font-size: 11.5px;
  color: var(--encre-2);
  padding: 8px 34px;
  border-bottom: 1px solid var(--ligne);
}

.article__content {
  padding: 26px 34px 32px;
  font-size: 18px;
  line-height: 1.72;
}
.article__content > *:first-child { margin-top: 0; }
.article__content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: .02em;
  margin: 1.5em 0 .5em;
  line-height: 1.05;
}
.article__content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .02em;
  margin: 1.3em 0 .4em;
}
.article__content blockquote {
  margin: 1.4em 0;
  padding: 6px 0 6px 22px;
  border-left: 5px solid var(--rouge);
  font-size: 21px;
  line-height: 1.4;
  font-style: italic;
  color: var(--encre);
}
.article__content a { text-decoration: underline; }
.article__content img { margin: 1.2em 0; }
.article__content ul, .article__content ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.article__content li { margin-bottom: .4em; }

.article__footer {
  padding: 0 34px 30px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tags a {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--brume);
  color: var(--encre-2);
  padding: 5px 10px;
  border: 1px solid var(--ligne);
}
.tags a:hover { background: var(--rouge); color: #fff; text-decoration: none; }

/* encadré auteur */
.auteur {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 8px 34px 0;
  padding: 20px;
  background: var(--brume);
  border-left: 5px solid var(--rouge);
}
.auteur__avatar { flex: 0 0 auto; }
.auteur__avatar img { border-radius: 50%; }
.auteur__avatar .ph {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--rouge);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
}
.auteur__nom {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .02em;
  color: var(--encre);
}
.auteur__role {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rouge-fonce);
  margin-bottom: 6px;
}
.auteur__bio { font-size: 14.5px; color: var(--encre-2); margin: 0; }

/* articles similaires */
.similaires { margin-top: 40px; }

/* =========================================================
   12. ARCHIVE / CATÉGORIE
   ========================================================= */
.archive-tete {
  background: var(--encre);
  color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 14px solid var(--rouge);
}
.archive-tete__k {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jaune);
}
.archive-tete h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: .02em;
  margin: 6px 0 8px;
}
.archive-tete p { margin: 0; color: #d9cfcd; font-size: 15px; max-width: 60ch; }

/* pagination */
.pagination {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pagination .page-numbers {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .03em;
  background: var(--papier);
  border: 1px solid var(--ligne);
  color: var(--encre);
  padding: 9px 15px 7px;
}
.pagination .page-numbers.current { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.pagination a.page-numbers:hover { background: var(--encre); color: #fff; text-decoration: none; }

/* =========================================================
   13. COLONNE LATÉRALE / WIDGETS
   ========================================================= */
.sidebar { display: flex; flex-direction: column; gap: 26px; }

.widget {
  background: var(--papier);
  border: 1px solid var(--ligne);
}
.widget__title, .widget .widget-title, .widget h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .03em;
  color: #fff;
  background: var(--encre);
  padding: 11px 16px 8px;
  margin: 0;
}
.widget__title .accent { color: var(--jaune); }
.widget__body { padding: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 16px; border-bottom: 1px solid var(--ligne); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--encre); }

/* sondage */
.sondage__q {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .02em;
  padding: 14px 16px 6px;
  color: var(--encre);
}
.sondage__row { padding: 6px 16px; }
.sondage__row + .sondage__row { padding-top: 2px; }
.sondage__line { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sondage__bar { height: 16px; background: var(--brume); border: 1px solid var(--ligne); overflow: hidden; }
.sondage__fill { height: 100%; background: var(--rouge); }
.sondage__fill.alt { background: var(--encre); }
.sondage__note {
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--encre-2);
  padding: 10px 16px 14px;
  line-height: 1.4;
}

/* experts */
.experts li { display: flex; flex-direction: column; }
.experts .nom {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--encre);
}
.experts .titre { font-family: var(--font-data); font-size: 11px; letter-spacing: .03em; color: var(--rouge-fonce); text-transform: uppercase; }

/* météo */
.meteo__body { padding: 16px; }
.meteo__jour { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dotted var(--ligne); }
.meteo__jour:last-child { border-bottom: 0; }
.meteo__j { font-family: var(--font-display); font-size: 18px; letter-spacing: .03em; min-width: 4.5em; color: var(--encre); }
.meteo__t { font-size: 13.5px; color: var(--encre-2); }
.meteo__vigilance {
  margin-top: 10px;
  background: var(--rouge);
  color: #fff;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: center;
}

/* =========================================================
   14. BOUTONS
   ========================================================= */
.btn {
  display: inline-block;
  background: var(--rouge);
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .05em;
  padding: 12px 22px 9px;
  border: 0;
  text-align: center;
}
.btn:hover { background: var(--encre); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--encre); border: 2px solid var(--encre); padding: 10px 20px 7px; }
.btn--ghost:hover { background: var(--encre); color: #fff; }

/* =========================================================
   15. 404 + recherche
   ========================================================= */
.erreur404 {
  background: var(--papier);
  border: 1px solid var(--ligne);
  text-align: center;
  padding: 56px 24px;
}
.erreur404 .code {
  font-family: var(--font-display);
  font-size: clamp(72px, 16vw, 150px);
  color: var(--rouge);
  line-height: .85;
}
.erreur404 h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: .02em;
  margin: 8px 0 14px;
}
.erreur404 p { max-width: 52ch; margin: 0 auto 22px; color: var(--encre-2); }
.search-page { max-width: 460px; margin: 18px auto 0; }
.search-form-block { display: flex; }
.search-form-block input[type="search"] {
  flex: 1;
  font-family: var(--font-corps);
  font-size: 15px;
  border: 2px solid var(--encre);
  border-right: 0;
  padding: 11px 14px;
}
.search-form-block button {
  background: var(--encre);
  color: #fff;
  border: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .05em;
  padding: 0 20px;
}
.search-form-block button:hover { background: var(--rouge); }

.page-content-wrap { background: var(--papier); border: 1px solid var(--ligne); padding: 30px 34px; }
.page-content-wrap .entry-title,
.page-content-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: .02em;
  margin-bottom: 18px;
}

/* =========================================================
   16. PIED DE PAGE
   ========================================================= */
.cta-signal {
  background: var(--jaune);
  text-align: center;
  padding: 22px;
}
.cta-signal .btn { background: var(--encre); }
.cta-signal .btn:hover { background: var(--rouge); }
.cta-signal__k {
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jaune-encre);
  margin-bottom: 10px;
}

.site-footer {
  background: var(--encre);
  color: #cfc6c4;
  padding-block: 40px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand .logo-mark { font-size: 46px; color: #fff; }
.footer-brand .logo-mark .c { color: var(--rouge); }
.footer-brand p { font-size: 14px; max-width: 40ch; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #cfc6c4; font-size: 14.5px; }
.footer-col a:hover { color: var(--jaune); }

.legal {
  padding: 20px 0 30px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a89e9c;
  max-width: 92ch;
}
.legal strong { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0 30px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: #8d8482;
}

/* =========================================================
   17. ANIMATIONS
   ========================================================= */
@keyframes defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,19,19,.7); }
  70% { box-shadow: 0 0 0 9px rgba(225,19,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,19,19,0); }
}
@keyframes pulse-white {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* =========================================================
   18. RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .masthead__inner { flex-wrap: wrap; }
  .search-mini { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { flex-direction: column; align-items: stretch; }
  .nav__list {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--ligne);
  }
  .nav.is-open .nav__list { display: flex; }
  .nav__list a { border-bottom: 1px solid var(--ligne); }
  .nav__list ul.sub-menu { position: static; display: block; background: var(--brume); }
  .nav__list ul.sub-menu a { color: var(--encre); }
  .grille { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .panique__svg { width: 72px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding-block: 8px; }
  .panique { width: 100%; justify-content: space-between; }
  .article__header, .article__content, .article__footer { padding-inline: 20px; }
  .auteur { margin-inline: 20px; }
  .article__figure figcaption { padding-inline: 20px; }
  .une__overlay { padding: 48px 18px 18px; }
}

/* =========================================================
   19. MOTION RÉDUIT
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker__track { animation: none; transform: none; }
}

/* =========================================================
   20. ALIGNEMENTS WP + LÉGENDES
   ========================================================= */
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-data); font-size: 12px; color: var(--encre-2); padding-top: 6px; }
.sticky .carte__cat::after { content: " · ÉPINGLÉ"; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
