/* Allfluenceur Pulse — feuille de style unique du thème.
   1. Polices et variables  2. Base  3. En-tête  4. Accueil
   5. Cartes  6. Archives et article  7. Formulaires et commentaires  8. Pied de page  9. Adaptations */

/* ---------- 1. Polices et variables ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141232;
  --ink-soft: #3a3663;
  --muted: #5a5878;
  --canvas: #f6f5ff;
  --canvas-deep: #edeaff;
  --surface: #ffffff;
  --line: #e3e0f7;
  --violet: #6d28ff;
  --violet-deep: #4c17c4;
  --violet-soft: #f0eaff;
  --azure: #0b6e9c;
  --mint: #067254;
  --magenta: #b51c74;
  --amber: #8a5200;
  --indigo: #3439b8;
  /* Dégradé maîtrisé : les deux extrémités restent lisibles sous du texte blanc. */
  --gradient: linear-gradient(118deg, #6d28ff 0%, #1071c9 100%);
  --tone: var(--violet);
  --tone-soft: var(--violet-soft);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(30, 20, 90, 0.05);
  --shadow: 0 14px 34px -18px rgba(38, 22, 110, 0.32);
  --shadow-lg: 0 28px 60px -28px rgba(38, 22, 110, 0.45);
  --ring: 0 0 0 3px rgba(109, 40, 255, 0.35);
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step: clamp(1rem, 0.94rem + 0.28vw, 1.09rem);
  --gap: clamp(18px, 2.2vw, 28px);
  --section: clamp(48px, 6vw, 88px);
  --shell: 1180px;
}

/* Six teintes de rubrique. Les valeurs sont assez sombres pour rester lisibles
   sur leur fond pastel (contraste supérieur à 4,5:1) et sous du texte blanc. */
.tone-0 { --tone: #5a17e0; --tone-soft: #f0eaff; }
.tone-1 { --tone: #0b6e9c; --tone-soft: #e2f5ff; }
.tone-2 { --tone: #067254; --tone-soft: #e0f7f0; }
.tone-3 { --tone: #b51c74; --tone-soft: #fde7f3; }
.tone-4 { --tone: #8a5200; --tone-soft: #fdf0dc; }
.tone-5 { --tone: #3439b8; --tone-soft: #e8eaff; }

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }

/* Halo discret en haut de page, sans image. */
body::before {
  content: "";
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 60vh;
  background:
    radial-gradient(48vw 40vh at 18% 40%, rgba(109, 40, 255, 0.16), transparent 70%),
    radial-gradient(42vw 36vh at 82% 30%, rgba(10, 167, 230, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

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

a { color: var(--violet-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.45rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2 * clamp(16px, 4vw, 40px), var(--shell)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tinted { background: linear-gradient(180deg, transparent, var(--canvas-deep) 18%, var(--canvas-deep) 82%, transparent); }

.icon { width: 1.05em; height: 1.05em; flex: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Éléments partagés ---------- */
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow--pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.badge--tone { background: var(--tone-soft); color: var(--tone); }
.badge--tone:hover, .badge--tone:focus-visible { background: var(--tone); color: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: saturate(1.12); }
.button .icon { transition: transform 0.16s ease; }
.button:hover .icon { transform: translateX(3px); }

.button--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.button--ghost:hover { color: var(--violet-deep); border-color: var(--violet); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--violet-deep);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.text-link:hover { border-bottom-color: var(--violet); }
.text-link .icon { transition: transform 0.16s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- 3. En-tête ---------- */
.ticker {
  background: var(--ink);
  color: #d9d5ff;
  font-size: 0.83rem;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding-block: 7px;
}
.ticker-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: none;
}
.ticker-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-link { color: #fff; font-weight: 600; text-decoration: none; flex: none; }
.ticker-link:hover { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.18s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding-block: 12px;
}

.branding { margin-right: auto; }
.branding img { max-height: 46px; width: auto; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  box-shadow: var(--shadow);
}
.wordmark-mark span {
  width: 13px;
  height: 13px;
  border-radius: 4px 11px 4px 11px;
  background: #fff;
}
.wordmark-text em { font-style: normal; color: var(--violet-deep); }
.wordmark:hover .wordmark-mark { transform: rotate(-6deg); }
.wordmark-mark { transition: transform 0.18s ease; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu a[aria-current="page"] { background: var(--violet-soft); color: var(--violet-deep); }

.nav-menu .sub-menu {
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 210px;
}
.js .nav-menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.js .nav-menu li:hover > .sub-menu,
.js .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { font-size: 0.9rem; white-space: normal; }

.header-search { position: relative; }
.header-search summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary:hover { border-color: var(--violet); color: var(--violet-deep); }
.header-search summary .icon { width: 19px; height: 19px; }
.header-search summary .icon:last-child { display: none; }
.header-search[open] summary .icon:first-child { display: none; }
.header-search[open] summary .icon:last-child { display: block; }
.header-search[open] summary { background: var(--violet); border-color: var(--violet); color: #fff; }

.header-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(92vw, 400px);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Accueil ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy h1::after {
  content: "";
  display: block;
  width: 78px;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--gradient);
}
.hero-text { max-width: 54ch; color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-stats strong { font-family: var(--sans); font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--violet-deep); }
.hero-stats span { font-size: 0.82rem; color: var(--muted); }

.hero-feature { position: relative; }
.hero-feature-label {
  position: absolute;
  top: -14px;
  left: 22px;
  z-index: 2;
  margin: 0;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  justify-content: center;
  min-height: 300px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--line);
  box-shadow: var(--shadow);
}
.hero-placeholder .badge { font-size: 0.85rem; padding: 9px 16px; }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.section-heading h2 { margin: 0; }

/* Radar des tendances */
.trend-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.trend-list {
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  list-style: none;
  counter-reset: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.trend-list > li { border-top: 1px solid var(--line); }
.trend-list > li:first-child { border-top: 0; }

.trend-side {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink) 0%, #2a1b63 100%);
  color: #ded9ff;
  box-shadow: var(--shadow);
}
.trend-side h3 { color: #fff; font-size: 1.16rem; margin-bottom: 16px; }
.trend-side-note { margin: 16px 0 0; font-size: 0.82rem; color: #b3abe8; }

.rubrique-rail { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.rubrique-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.rubrique-pill:hover, .rubrique-pill:focus-visible {
  background: var(--tone);
  border-color: var(--tone);
  color: #fff;
  transform: translateY(-2px);
}
.rubrique-pill-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
}

/* Blocs par rubrique */
.rubrique-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.rubrique-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tone);
  box-shadow: var(--shadow);
}
.rubrique-block-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.rubrique-block-heading h2 { margin: 0; font-size: 1.32rem; color: var(--tone); }

/* ---------- 5. Cartes ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--gap);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); }

.card-media { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--tone-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }

/* Vignette de remplacement : dégradé et initiales, sans image binaire. */
.thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 120% at 12% 10%, color-mix(in srgb, var(--tone) 22%, #fff) 0%, var(--tone-soft) 60%),
    var(--tone-soft);
}
.thumb-fallback span {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  color: var(--tone);
  opacity: 0.8;
  text-transform: uppercase;
}

.card-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 2vw, 22px); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card-time { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.card-title { margin: 0; font-size: 1.15rem; line-height: 1.24; }
.card-title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--tone), var(--tone)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.24s ease; }
.card:hover .card-title a { background-size: 100% 2px; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-date { margin-top: auto; font-size: 0.8rem; color: var(--muted); }

/* Grande carte du héros */
.card--hero { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.card--hero .card-media { aspect-ratio: 16 / 9; }
.card--hero .card-title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
.card--hero .card-body { padding: clamp(20px, 2.4vw, 28px); }

/* Carte compacte : vignette à gauche */
.card--compact { flex-direction: row; align-items: stretch; border-radius: var(--radius); }
.card--compact .card-media { flex: 0 0 104px; aspect-ratio: auto; }
.card--compact .card-body { padding: 14px 16px; gap: 7px; }
.card--compact .card-title { font-size: 1rem; }
.card--compact .card-date { display: none; }

/* Carte texte : lignes du radar, avec rang */
.card--text {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 16px 6px;
}
.card--text:hover { transform: none; box-shadow: none; }
.card--text .card-body { padding: 0; flex: 1 1 auto; gap: 8px; }
.card--text .card-title { font-size: 1.08rem; }
.card-rank {
  order: -1;
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--tone-soft);
  color: var(--tone);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.1rem;
}
.card--text .card-rank { position: absolute; }
.card--text { position: relative; padding-left: 60px; }
.card--text .card-rank { left: 6px; top: 16px; }

/* ---------- 6. Archives, listes et article ---------- */
.page-heading { margin-bottom: clamp(24px, 3vw, 40px); }
.page-heading h1 { margin: 0; }

.archive-heading {
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3.5vw, 44px);
  background: linear-gradient(180deg, var(--tone-soft) 0%, transparent 100%);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.archive-heading .eyebrow { color: var(--tone); }
.archive-heading h1 { margin: 0 0 12px; }
.archive-description { max-width: 62ch; color: var(--muted); }
.archive-count { margin: 12px 0 0; font-family: var(--sans); font-weight: 600; font-size: 0.88rem; color: var(--tone); }
.archive-heading .search-form { margin-top: 20px; max-width: 460px; }

.empty-state {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--line);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty-state h2, .empty-state h3 { margin: 0 0 10px; }
.empty-state p { color: var(--muted); }
.empty-state .search-form { margin: 22px auto 0; max-width: 420px; }
.empty-state--soft { border-style: solid; padding: 24px; text-align: left; }

.pagination { margin-top: clamp(32px, 4vw, 48px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--violet); color: var(--violet-deep); }
.pagination .page-numbers.current { background: var(--gradient); border-color: transparent; color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

.single-main { max-width: 100%; }
.single-main > article, .single-main > .comments, .single-main > .post-navigation, .single-main > .related { width: min(100%, 760px); margin-inline: auto; }
.single-main > .related, .single-main > .post-navigation { width: min(100%, var(--shell)); }

.reading-progress { position: sticky; top: 0; z-index: 45; height: 3px; background: transparent; }
.reading-progress span { display: block; height: 100%; background: var(--gradient); transform: scaleX(0); transform-origin: 0 50%; }

.article-heading { margin-bottom: 26px; }
.article-heading h1 { margin: 14px 0 0; }
.article-standfirst { margin: 16px 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.article-avatar { border-radius: 50%; }
.article-author { font-family: var(--sans); font-weight: 600; color: var(--ink); }

.article-cover { margin: 0 0 30px; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-cover figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }

.entry-content { font-size: 1.07rem; line-height: 1.78; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content a { font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); }

.entry-content blockquote, .entry-content .wp-block-quote {
  margin-inline: 0;
  padding: 20px 24px;
  border: 0;
  border-left: 4px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--violet-soft);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--body); font-weight: 400; font-size: 0.9rem; color: var(--muted); }

.entry-content code, .entry-content kbd { padding: 2px 7px; border-radius: 7px; background: var(--violet-soft); font-size: 0.92em; }
.entry-content pre { padding: 20px; border-radius: var(--radius); background: var(--ink); color: #e6e2ff; overflow: auto; }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content hr, .wp-block-separator { border: 0; height: 2px; background: var(--line); border-radius: 2px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--sans); background: var(--violet-soft); }

.alignwide { width: min(100vw - 32px, var(--shell)); margin-inline: auto; max-width: none; }
.alignfull { width: 100%; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }

.article-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-decoration: none;
}
.article-tags a:hover { border-color: var(--violet); color: var(--violet-deep); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.share-label { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.share a, .copy-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.share a:hover, .copy-link:hover { border-color: var(--violet); color: var(--violet-deep); }
.copy-link.is-done { background: var(--mint); border-color: var(--mint); color: #fff; }

.post-navigation { margin-top: clamp(32px, 4vw, 48px); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.post-navigation a {
  display: block;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.post-navigation a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--violet-deep); }
.post-navigation a span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-next { text-align: right; }

.related { margin-top: clamp(40px, 5vw, 64px); }
.section-title { margin-bottom: 22px; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); }

/* ---------- 7. Formulaires et commentaires ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: var(--ring); }
textarea { min-height: 150px; resize: vertical; }
label { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; }

.search-form { display: flex; gap: 9px; }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; border-radius: 999px; }
.search-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.16s ease;
}
.search-form button:hover { filter: saturate(1.15) brightness(1.04); }

.search-band {
  padding-block: clamp(40px, 5vw, 68px);
  background: linear-gradient(150deg, var(--ink) 0%, #351f7a 55%, #123a78 100%);
  color: #fff;
}
.search-band-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.search-band h2 { color: #fff; margin-bottom: 22px; }
.search-band .search-form { max-width: 560px; margin-inline: auto; }
.search-band input[type="search"] { border-color: transparent; }
.search-band button { background: #fff; color: var(--violet-deep); }

.comments { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.comment-list { margin: 0 0 32px; padding: 0; list-style: none; }
.comment-list ol.children { margin: 16px 0 0 clamp(12px, 3vw, 32px); padding: 0; list-style: none; }
.comment-body {
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.comment-author { display: flex; align-items: center; gap: 11px; font-family: var(--sans); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 4px 0 12px; font-size: 0.82rem; color: var(--muted); }
.comment-metadata a { color: inherit; text-decoration: none; }
.reply { margin-top: 10px; font-family: var(--sans); font-weight: 600; font-size: 0.86rem; }
.comments-closed { color: var(--muted); }
.comment-respond { padding: clamp(20px, 2.5vw, 30px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.comment-reply-title { margin-top: 0; font-size: 1.3rem; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-form input[type="submit"], .comment-form .submit {
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.comment-form .comment-notes, .comment-form .form-submit { margin-bottom: 0; }
.comment-notes { font-size: 0.88rem; color: var(--muted); }

.not-found { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.not-found-code {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(4.5rem, 3rem + 9vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 { margin: 0 0 12px; }
.not-found .search-form { margin: 22px 0; max-width: 460px; }

/* ---------- 8. Pied de page ---------- */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: clamp(36px, 4.5vw, 60px);
}
.footer-about p { margin-top: 14px; max-width: 42ch; color: var(--muted); font-size: 0.95rem; }
.footer-col h2 { font-size: 1rem; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink-soft); font-size: 0.94rem; text-decoration: none; }
.footer-col a:hover { color: var(--violet-deep); text-decoration: underline; }
.footer-tags { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.footer-search .search-form { flex-direction: column; align-items: stretch; }
.footer-search .search-form button { justify-content: center; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- 9. Adaptations ---------- */
@media (max-width: 1080px) {
  .trend-board { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { margin-top: 12px; }
  .menu-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav { order: 3; width: 100%; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 14px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }
  .nav-menu a { padding: 12px 14px; border-radius: var(--radius-xs); }
  .js .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin-left: 14px;
    padding: 0 0 0 6px;
  }
}

@media (max-width: 720px) {
  .ticker-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .not-found { grid-template-columns: 1fr; }
  .card--compact { flex-direction: column; }
  .card--compact .card-media { flex: none; aspect-ratio: 16 / 9; }
  .card--compact .card-body { padding: 16px; }
  .search-form { flex-direction: column; }
  .search-form button { justify-content: center; }
  .nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body::before, .ticker, .site-header, .site-footer, .search-band, .share,
  .post-navigation, .related, .comments, .reading-progress { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  a { text-decoration: underline; }
}

/* Contenu libre de la page d’accueil statique et détail des pastilles de rubrique. */
.home-editor-content .entry-content {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.rubrique-pill-name { white-space: nowrap; }
