/*
Theme Name: Sunu Culture
Theme URI: https://sunuculture.com
Author: Sunu Culture
Author URI: https://sunuculture.com
Description: Thème de média en ligne pour Sunu Culture, le choix de la diversité. Méga-menu par rubrique, mode sombre, articles les plus lus, historique de lecture, favoris, bulletin, page de contact et pages d’erreur.
Version: 2.0.0
Requires at least: 6.0
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: sunu-culture
Domain Path: /languages
Tags: news, blog, grid-layout, custom-menu, featured-images, translation-ready, threaded-comments, right-sidebar
*/

/* ==========================================================================
   1. Variables et base
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f7f2f8;
  --text: #28112d;
  --muted: #5b6876;
  --line: #e8e0ea;
  --primary: #4b0d55;
  --accent: #761182;
  --soft: #e6c2eb;
  --header-bg: #4b0d55;
  --footer-bg: #24102a;
  --shadow: 0 16px 40px rgba(40, 17, 45, 0.16);
  --radius: 8px;
  --shell: 1220px;
  --font: "DM Sans", Arial, sans-serif;
  --font-head: "Roboto Condensed", "DM Sans", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #150a19;
  --surface: #21122a;
  --text: #f4eaf6;
  --muted: #bcaac1;
  --line: #3b2745;
  --primary: #5c1668;
  --accent: #d58be0;
  --soft: #e6c2eb;
  --header-bg: #2a0b30;
  --footer-bg: #0e0611;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

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

.masthead :focus-visible,
.topbar :focus-visible,
.news-ticker :focus-visible,
.site-footer :focus-visible,
.newsletter :focus-visible,
.card--overlay :focus-visible {
  outline-color: var(--soft);
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  vertical-align: -0.2em;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

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

.skip-link.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 6px;
  background: var(--soft);
  color: #28112d;
  font-size: 14px;
  font-weight: 800;
  white-space: normal;
}

.reading-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--soft);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.reading-progress.is-active {
  opacity: 1;
}

.admin-bar .reading-progress {
  top: 32px;
}

/* ==========================================================================
   2. Barre supérieure, bandeau principal, méga-menu
   ========================================================================== */

.topbar {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-date {
  text-transform: capitalize;
  white-space: nowrap;
}

.topbar-tags {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.topbar-label {
  color: var(--soft);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.topbar-tags a:hover,
.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-links a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  transition: background-color 180ms ease, color 180ms ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.social-links .icon {
  width: 18px;
  height: 18px;
}

.masthead {
  position: sticky;
  z-index: 60;
  top: 0;
  background: var(--header-bg);
  color: #fff;
  transition: box-shadow 200ms ease;
}

.admin-bar .masthead {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .masthead {
    top: 46px;
  }

  .admin-bar .reading-progress {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .masthead,
  .admin-bar .reading-progress {
    top: 0;
  }
}

.masthead.is-stuck {
  box-shadow: 0 8px 24px rgba(20, 6, 24, 0.35);
}

.masthead-inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  display: block;
  width: 156px;
  line-height: 0;
  transition: opacity 180ms ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-image {
  width: 100%;
  height: auto;
}

.main-navigation {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: stretch;
  justify-content: center;
}

.main-navigation .wp-menu {
  display: flex;
  height: 100%;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation .menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.main-navigation .menu-item.has-mega {
  position: static;
}

.main-navigation .menu-item > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

.main-navigation .menu-item:hover > a,
.main-navigation .menu-item:focus-within > a,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  background: rgba(0, 0, 0, 0.28);
}

.main-navigation .menu-item-has-children > a::after {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.main-navigation .sub-menu {
  position: absolute;
  z-index: 70;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-top: 3px solid var(--soft);
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
}

.main-navigation .menu-item:hover > .sub-menu,
.main-navigation .menu-item:focus-within > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.main-navigation .sub-menu a:hover {
  background: var(--surface);
  color: var(--accent);
}

.mega {
  position: absolute;
  z-index: 70;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  border-top: 3px solid var(--soft);
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
}

.main-navigation .has-mega:hover > .mega,
.main-navigation .has-mega:focus-within > .mega {
  display: block;
}

.mega-inner {
  padding: 22px 0 26px;
}

.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 20px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.newsletter-trigger {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--soft);
  color: #28112d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.newsletter-trigger:hover {
  background: #f1d9f4;
  transform: translateY(-1px);
}

.header-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.header-icon:hover {
  background: rgba(255, 255, 255, 0.16);
}

.header-icon .icon {
  width: 20px;
  height: 20px;
}

.menu-trigger {
  display: none;
}

.theme-toggle .icon-to-light {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-to-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-to-light {
  display: inline-block;
}

.saved-control {
  position: relative;
}

.saved-count {
  position: absolute;
  top: 0;
  right: -2px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--soft);
  color: #28112d;
  font-size: 10px;
  font-weight: 800;
}

.saved-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: -10px;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
}

.popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.popover-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.saved-popover ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.saved-popover li a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.saved-popover a:hover {
  color: var(--accent);
}

.saved-popover p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.popover-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.search-panel {
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.search-inner {
  display: grid;
  gap: 8px;
}

.search-inner > label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.search-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 14px;
  border-radius: 6px;
  background: #fff;
  color: #28112d;
}

.search-field .icon {
  color: #617084;
}

.search-field input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #28112d;
  font-size: 16px;
}

.search-field button {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.search-field button:hover {
  background: var(--accent);
}

[data-theme="dark"] .search-field button:hover {
  background: #7d1a8a;
}

/* Bandeau « À la une » */

.news-ticker {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .news-ticker {
  background: #5c1668;
}

.ticker-inner {
  display: grid;
  min-height: 38px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-links a,
.ticker-links span,
.ticker-all {
  font-size: 13px;
}

.ticker-links a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-links a:hover,
.ticker-all:hover {
  text-decoration: underline;
}

.ticker-links span {
  color: rgba(255, 255, 255, 0.66);
}

.ticker-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   3. Menu mobile
   ========================================================================== */

.offcanvas {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.admin-bar .offcanvas {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .offcanvas {
    top: 46px;
  }
}

.offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 6, 24, 0.62);
}

.offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(390px, 100%);
  flex-direction: column;
  gap: 20px;
  padding: 18px 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  box-shadow: var(--shadow);
  animation: slide-in 220ms ease both;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -18px -20px 0;
  padding: 14px 20px;
  background: var(--header-bg);
}

.offcanvas-head .brand-logo {
  width: 140px;
}

.offcanvas-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.offcanvas-search input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.offcanvas-search button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.offcanvas-nav .wp-menu,
.offcanvas-nav .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offcanvas-nav .menu-item > a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
}

.offcanvas-nav .sub-menu {
  padding-left: 14px;
}

.offcanvas-nav .sub-menu a {
  font-size: 15px;
  font-weight: 600;
}

.offcanvas-nav a:hover,
.offcanvas-nav .current-menu-item > a {
  color: var(--accent);
}

.offcanvas-extra {
  display: grid;
  gap: 4px;
}

.offcanvas-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.offcanvas-link:hover {
  color: var(--accent);
}

.offcanvas-link .icon {
  width: 20px;
  height: 20px;
}

.offcanvas-link.theme-toggle .icon-to-light {
  display: none;
}

[data-theme="dark"] .offcanvas-link.theme-toggle .icon-to-dark {
  display: none;
}

[data-theme="dark"] .offcanvas-link.theme-toggle .icon-to-light {
  display: inline-block;
}

.offcanvas-follow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.offcanvas-follow .social-links a {
  background: var(--surface);
  color: var(--text);
}

.offcanvas-follow .social-links a:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   4. Cartes d'articles
   ========================================================================== */

.image-crop {
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.image-crop:hover img {
  transform: scale(1.045);
}

.card {
  position: relative;
  min-width: 0;
}

.card-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
}

.card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.card--standard .card-body {
  padding-top: 14px;
}

.chip {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

a.chip:hover {
  text-decoration: underline;
}

.chip--outline {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.2px;
  text-transform: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

a.chip--outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.card-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.22;
}

.card-title a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 250ms ease, color 180ms ease;
}

.card-title a:hover {
  background-size: 100% 2px;
}

.card-meta {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta .bookmark-button {
  margin-left: auto;
}

.meta-dot {
  color: var(--muted);
}

.card-date,
.card-cat {
  color: var(--muted);
  font-size: 13px;
}

.card-excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.5;
}

.bookmark-button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.bookmark-button:hover {
  background: var(--surface);
  color: var(--accent);
}

.bookmark-button .icon {
  width: 18px;
  height: 18px;
}

.bookmark-button.is-saved {
  color: var(--accent);
}

.bookmark-button.is-saved .icon {
  fill: currentColor;
}

.single-meta .bookmark-button {
  margin-left: 4px;
}

/* Carte « overlay » : image pleine, texte superposé */

.card--overlay {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #28112d;
  color: #fff;
}

.card--overlay .card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.card--overlay .card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  gap: 10px;
  padding: 80px 26px 26px;
  background: linear-gradient(to top, rgba(20, 6, 24, 0.94), rgba(20, 6, 24, 0.6) 58%, rgba(20, 6, 24, 0));
  pointer-events: none;
}

.card--overlay .card-body a,
.card--overlay .card-body button {
  pointer-events: auto;
}

.card--overlay .chip {
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--soft);
  color: #28112d;
}

.card--overlay .card-title {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.card--overlay .card-meta,
.card--overlay .meta-dot,
.card--overlay .bookmark-button {
  color: rgba(255, 255, 255, 0.86);
}

.card--overlay .bookmark-button:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Carte compacte : vignette à gauche */

.card--compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.card--compact .card-title {
  font-size: 17px;
}

.card--compact .card-body {
  gap: 5px;
}

/* Carte classée (les plus lus) */

.card--ranked {
  display: grid;
  grid-template-areas: "rank body media";
  grid-template-columns: 34px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.card--ranked:first-child {
  padding-top: 0;
}

.card-rank {
  display: grid;
  grid-area: rank;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.card--ranked .card-body {
  grid-area: body;
  gap: 4px;
}

.card--ranked .card-media {
  grid-area: media;
  aspect-ratio: 1 / 1;
}

.card--ranked .card-title {
  font-size: 16px;
}

/* Carte mini (méga-menu) */

.card--mini .card-body {
  gap: 4px;
  padding-top: 10px;
}

.card--mini .card-title {
  font-size: 15px;
  line-height: 1.25;
}

/* ==========================================================================
   5. Page d'accueil
   ========================================================================== */

.home > section {
  margin-block: 56px;
}

.home > section:first-child {
  margin-top: 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.section-title {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.section-title::before {
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
}

.hero-left {
  min-width: 0;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 22px;
}

.hero-top--solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-top .card--overlay {
  min-height: 440px;
}

.hero-side {
  display: grid;
  grid-auto-rows: min-content;
  gap: 22px;
  align-content: start;
}

.hero-below {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-right {
  min-width: 0;
}

.side-title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.side-title::before {
  position: absolute;
  top: 0.1em;
  bottom: 0.1em;
  left: 0;
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
}

.ad-slot {
  position: relative;
  margin-top: 28px;
  padding: 22px 12px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.ad-slot--banner {
  margin-block: 40px;
}

.ad-label {
  position: absolute;
  top: 4px;
  left: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.ad-slot img {
  margin-inline: auto;
}

/* Bulletin */

.newsletter {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: 28px;
  margin-block: 56px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
}

.newsletter-logo {
  width: 100%;
  height: auto;
}

.newsletter-copy h2 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.15;
}

.newsletter-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #28112d;
  font-size: 16px;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--soft);
  outline: 0;
}

.newsletter-form button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: #28112d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: background-color 180ms ease, transform 180ms ease;
}

.newsletter-form button:hover {
  background: #f1d9f4;
  transform: translateY(-1px);
}

.form-message {
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.newsletter-form .form-message {
  grid-column: 1 / -1;
}

.form-message--success {
  background: #e5f6ec;
  color: #0e5a32;
}

.form-message--error {
  background: #fde8ea;
  color: #8f1626;
}

[data-theme="dark"] .form-message--success {
  background: #12351f;
  color: #bdf0d1;
}

[data-theme="dark"] .form-message--error {
  background: #3d1219;
  color: #ffd0d6;
}

/* Vedettes, liens rapides */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
}

.quick-links-label {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.quick-links .chip--outline {
  background: var(--bg);
}

/* À l'instant */

.just-in-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
}

.just-in-grid .card--overlay {
  min-height: 460px;
}

.just-in-list {
  display: grid;
  align-content: start;
  gap: 0;
}

.just-in-list .card--compact {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.just-in-list .card--compact:first-child {
  padding-top: 0;
}

.just-in-list .card--compact:last-child {
  border-bottom: 0;
}

/* Blocs de rubriques */

.block {
  margin-block: 56px;
}

.block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 36px;
}

.block-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-content: start;
}

.block-list {
  display: grid;
  align-content: start;
}

.block-list .card--compact {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.block-list .card--compact:first-child {
  padding-top: 0;
}

.block-list .card--compact:last-child {
  border-bottom: 0;
}

.block-grid--lead {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.block-grid--lead > .card--overlay {
  min-height: 420px;
}

.block-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.block-row .card-title {
  font-size: 18px;
}

/* Appel à contribution */

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(75, 13, 85, 0.96), rgba(118, 17, 130, 0.9)),
    var(--primary);
  color: #fff;
}

.promo .section-kicker {
  color: var(--soft);
}

.promo h2 {
  max-width: 640px;
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.12;
}

.promo p:last-child {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.button {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 2px solid var(--soft);
  border-radius: 6px;
  background: var(--soft);
  color: #28112d;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: #f1d9f4;
  transform: translateY(-1px);
}

.button--outline {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

[data-theme="dark"] .button--outline {
  border-color: var(--soft);
  color: var(--soft);
}

.button--outline:hover {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .button--outline:hover {
  background: var(--soft);
  color: #28112d;
}

.page-layout .button:not(.button--outline),
.contact-form .button,
.not-found .button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.page-layout .button:not(.button--outline):hover,
.contact-form .button:hover,
.not-found .button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

[data-theme="dark"] .page-layout .button:not(.button--outline),
[data-theme="dark"] .contact-form .button,
[data-theme="dark"] .not-found .button {
  border-color: var(--soft);
  background: var(--soft);
  color: #28112d;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.more-action {
  margin: 36px 0 0;
  text-align: center;
}

/* ==========================================================================
   6. Pied de page
   ========================================================================== */

.site-footer {
  margin-top: 72px;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 52px 36px;
}

.footer-brand .brand-logo {
  width: 190px;
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.footer-brand .social-links {
  margin-top: 18px;
}

.footer-brand .social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-brand .social-links a:hover {
  background: var(--soft);
  color: #28112d;
}

.footer-title {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
}

.footer-column .wp-menu,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact {
  margin-top: 18px;
}

.footer-column a {
  font-size: 15px;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--soft);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  z-index: 55;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow);
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

[data-theme="dark"] .back-to-top {
  background: var(--soft);
  color: #28112d;
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   7. Pages intérieures : listes, articles, pages, recherche, 404
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  margin-block: 28px 20px;
}

.page-layout--narrow {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.page-main {
  min-width: 0;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin: 0 8px;
  color: var(--line);
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-head--center {
  text-align: center;
}

.page-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.06;
}

.archive-description {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.page-head--center .archive-description {
  margin-inline: auto;
}

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

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.no-results {
  max-width: 640px;
  padding: 8px 0 30px;
  font-size: 17px;
  line-height: 1.7;
}

.search-form {
  display: grid;
  max-width: 520px;
  margin: 18px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.page-head--center .search-form {
  margin-inline: auto;
}

.search-form input[type="search"] {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

.search-form input[type="search"]:focus,
.field input:focus,
.field textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--soft);
  outline-offset: 0;
}

.search-form button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 180ms ease;
}

.search-form button:hover {
  background: var(--accent);
}

.not-found {
  margin-block: 28px 20px;
}

.not-found-code {
  margin: 0;
  color: var(--soft);
  font-family: var(--font-head);
  font-size: clamp(90px, 16vw, 180px);
  font-weight: 800;
  line-height: 1;
}

.not-found .page-head {
  padding-block: 20px 36px;
}

.not-found .button {
  margin-top: 8px;
}

/* Colonne latérale */

.sidebar {
  min-width: 0;
}

.side-block {
  margin-bottom: 40px;
}

.side-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.side-block li {
  margin-bottom: 8px;
}

.side-block a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Article */

.single-heading {
  margin-bottom: 26px;
}

.single-heading .chip {
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .single-heading .chip {
  background: var(--soft);
  color: #28112d;
}

.single-excerpt {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.single-meta .icon {
  margin-right: 5px;
}

.single-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.single-author img,
.author-box img,
.comment-author .avatar {
  border-radius: 50%;
}

.single-author a:hover {
  color: var(--accent);
}

.single-featured-image {
  margin: 0 0 22px;
}

.single-featured-image img {
  width: 100%;
  border-radius: var(--radius);
}

.single-featured-image figcaption,
.entry-content figcaption,
.entry-content .wp-caption-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
}

.share-label {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.share-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.share-button:hover,
.share-button.is-copied {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .share-button:hover,
[data-theme="dark"] .share-button.is-copied {
  border-color: var(--soft);
  background: var(--soft);
  color: #28112d;
}

.share-button .icon {
  width: 19px;
  height: 19px;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
}

.entry-content::after {
  display: table;
  clear: both;
  content: "";
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.6em;
  font-family: var(--font-head);
  line-height: 1.15;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed {
  max-width: 100%;
  height: auto;
}

.entry-content iframe {
  border: 0;
}

.entry-content figure,
.entry-content .wp-caption {
  max-width: 100%;
  margin-inline: 0;
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--accent);
  font-size: 1.12em;
  font-style: italic;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 6px;
  background: var(--footer-bg);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.entry-content .alignleft {
  float: left;
  max-width: 50%;
  margin: 0.3em 1.4em 1em 0;
}

.entry-content .alignright {
  float: right;
  max-width: 50%;
  margin: 0.3em 0 1em 1.4em;
}

.entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}

.entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.entry-content .gallery-item {
  margin: 0;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.entry-tags-label {
  margin-right: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.entry-tags a {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.entry-tags a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.author-box {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
}

.author-box img {
  flex: 0 0 auto;
}

.author-box p {
  margin: 0 0 8px;
}

.author-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
}

.single-post-navigation {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.single-post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.single-post-navigation .nav-next {
  grid-column: 2;
  text-align: right;
}

.single-post-navigation .nav-subtitle {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.single-post-navigation .nav-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.single-post-navigation a:hover .nav-title {
  color: var(--accent);
}

.related {
  margin-top: 56px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.not-found .related-grid {
  margin-bottom: 20px;
}

/* Commentaires */

.comments-area {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.2;
}

.comment-list,
.comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  margin-left: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.comment-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.comment-meta {
  margin-bottom: 8px;
  font-size: 14px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-author .fn {
  font-style: normal;
  font-weight: 800;
}

.comment-metadata a {
  color: var(--muted);
}

.reply a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.comment-respond {
  margin-top: 32px;
}

.comment-form label,
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

.comment-form .submit {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.comment-form .submit:hover {
  background: var(--accent);
}

[data-theme="dark"] .comment-form .submit {
  background: var(--soft);
  color: #28112d;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 44px;
  margin-top: 8px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-info {
  align-self: start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-info ul {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info li .icon {
  margin-top: 4px;
  color: var(--accent);
}

.contact-info a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.social-links--inline a {
  border: 1px solid var(--line);
  color: var(--text);
}

.social-links--inline a:hover {
  background: var(--primary);
  color: #fff;
}

/* Historique de lecture */

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  font-weight: 700;
}

.history-toolbar .button {
  height: 42px;
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 0;
}

.history-list .card--compact {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.history-empty {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.history-empty:empty {
  display: none;
}

/* Widgets de WordPress */

.widget select,
.widget input[type="search"],
.widget input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

/* Éléments génériques de WordPress */

.sticky,
.bypostauthor {
  display: block;
}

.wp-caption {
  max-width: 100%;
}

.gallery-caption {
  display: block;
}

/* ==========================================================================
   8. Adaptations responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .newsletter-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .newsletter-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .topbar-tags {
    display: none;
  }

  .main-navigation .menu-item > a {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

  .block-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mega-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mega-grid .card:nth-child(5) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }

  .menu-trigger {
    display: grid;
  }

  .masthead-inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .topbar-inner {
    justify-content: space-between;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right .ranked-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .hero-right .card--ranked:first-child {
    padding-top: 14px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .newsletter-form {
    grid-column: 1 / -1;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-below {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .just-in-grid,
  .block-grid,
  .block-grid--lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .block-grid--lead > .card--overlay {
    min-height: 380px;
  }

  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .topbar-date {
    font-size: 12px;
  }

  .brand-logo {
    width: 140px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-icon--account {
    display: none;
  }

  .newsletter-trigger {
    display: none;
  }

  .ticker-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .ticker-all {
    display: none;
  }

  .ticker-links span {
    display: none;
  }

  .ticker-links a:nth-of-type(n + 2) {
    display: none;
  }

  .home > section,
  .block,
  .newsletter {
    margin-block: 40px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero-side,
  .hero-below,
  .featured-grid,
  .block-cards,
  .block-cards--quad,
  .more-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right .ranked-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .block-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--overlay,
  .hero-top .card--overlay,
  .just-in-grid .card--overlay,
  .block-grid--lead > .card--overlay {
    min-height: 360px;
  }

  .card--overlay .card-body {
    padding: 60px 18px 18px;
  }

  .newsletter {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }

  .newsletter-brand {
    max-width: 150px;
  }

  .newsletter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo {
    padding: 28px 22px;
  }

  .promo h2 {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-content {
    font-size: 17px;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    max-width: 100%;
    margin: 0 0 1em;
  }

  .author-box {
    flex-direction: column;
  }

  .single-post-navigation .nav-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-post-navigation .nav-next {
    grid-column: 1;
    text-align: left;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .block-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .card--ranked {
    grid-template-columns: 30px minmax(0, 1fr) 72px;
  }

  .card-rank {
    width: 30px;
    height: 30px;
  }
}

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

@media print {
  .topbar,
  .masthead,
  .news-ticker,
  .offcanvas,
  .site-footer,
  .share,
  .sidebar,
  .back-to-top,
  .reading-progress,
  .related,
  .comments-area {
    display: none !important;
  }

  .page-layout {
    display: block;
  }

  body {
    color: #000;
  }
}
