/*
Theme Name: Digital Haven
Theme URI: https://github.com/
Author: Custom
Description: Magazine tech & IA — aligné visuellement sur la démo Foxiz « Digital Haven » (clair, cartes, ombres douces, hero visuel, grilles par catégorie). Thème autonome, non affilié à Foxiz.
Version: 2.4.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitalhaven
*/

:root {
  /* Palette proche de la démo Foxiz « Digital Haven » (clair, contrastes magazines) */
  --dh-bg: #f4f6f9;
  --dh-bg-elevated: #ffffff;
  --dh-bg-card: #ffffff;
  --dh-border: rgba(15, 23, 42, 0.1);
  --dh-text: #0f172a;
  --dh-text-muted: #64748b;
  --dh-accent: #2563eb;
  --dh-accent-dark: #1d4ed8;
  --dh-accent-soft: rgba(37, 99, 235, 0.1);
  --dh-cat: #dc2626;
  --dh-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 14px 34px rgba(15, 23, 42, 0.08);
  --dh-shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.1), 0 28px 56px rgba(15, 23, 42, 0.14);
  --dh-shadow-edito: 0 12px 32px rgba(220, 38, 38, 0.16), 0 24px 48px rgba(15, 23, 42, 0.1);
  --dh-shadow-article: 0 12px 32px rgba(37, 99, 235, 0.16), 0 24px 48px rgba(15, 23, 42, 0.1);
  --dh-shadow-interview: 0 12px 32px rgba(124, 58, 237, 0.16), 0 24px 48px rgba(15, 23, 42, 0.1);
  --dh-radius: 12px;
  --dh-radius-lg: 16px;
  --dh-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dh-font-display: "Plus Jakarta Sans", var(--dh-font);
  /* Pleine largeur fluide : marges latérales seules, pas de plafond px */
  --dh-gutter: clamp(1rem, 2vw, 2.5rem);
  --dh-max: 1280px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

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

body {
  margin: 0;
  width: 100%;
  font-family: var(--dh-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dh-text);
  background: var(--dh-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .dh-section__title, .dh-hero__title, .dh-single__title, .dh-card__title, .dh-logo {
  font-family: var(--dh-font-display);
}

a {
  color: var(--dh-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--dh-accent-dark);
}

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

.dh-wrap {
  width: 100%;
  max-width: var(--dh-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--dh-gutter);
  padding-right: var(--dh-gutter);
}

.dh-main {
  width: 100%;
}

/* —— Header —— */
.dh-header {
  --dh-header-h: 76px;
  --dh-nav-edito: #dc2626;
  --dh-nav-article: #2563eb;
  --dh-nav-interview: #7c3aed;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: #fafbfc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.88);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

body.admin-bar .dh-header {
  top: 32px;
}

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

.dh-header--scrolled {
  background: #f8f9fb;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
}

.dh-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 2rem;
  min-height: var(--dh-header-h);
}

.dh-header__brand {
  min-width: 0;
}

.dh-logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--dh-text);
  line-height: 1.15;
  white-space: nowrap;
}

.dh-logo__accent,
.dh-logo span {
  color: var(--dh-accent);
  font-weight: 800;
}

.dh-logo--panel {
  font-size: 1.05rem;
}

.dh-header__nav {
  justify-self: center;
  min-width: 0;
}

.dh-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.dh-nav-wrap--desktop {
  display: flex;
  justify-content: center;
}

.dh-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  color: var(--dh-text);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.82;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.dh-nav__link:hover {
  opacity: 1;
  color: var(--dh-accent);
  background: var(--dh-accent-soft);
}

.dh-nav .current-menu-item > .dh-nav__link,
.dh-nav .current-menu-ancestor > .dh-nav__link {
  opacity: 1;
  color: var(--dh-accent);
  background: var(--dh-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.dh-nav__item--edito .dh-nav__link:hover,
.dh-nav__item--edito.current-menu-item > .dh-nav__link,
.dh-nav__item--edito.current-menu-ancestor > .dh-nav__link {
  color: var(--dh-nav-edito);
  background: rgba(220, 38, 38, 0.08);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.2);
}

.dh-nav__item--article .dh-nav__link:hover,
.dh-nav__item--article.current-menu-item > .dh-nav__link,
.dh-nav__item--article.current-menu-ancestor > .dh-nav__link {
  color: var(--dh-nav-article);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.dh-nav__item--interview .dh-nav__link:hover,
.dh-nav__item--interview.current-menu-item > .dh-nav__link,
.dh-nav__item--interview.current-menu-ancestor > .dh-nav__link {
  color: var(--dh-nav-interview);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.dh-search,
.dh-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--dh-text);
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dh-search:hover,
.dh-menu-toggle:hover {
  color: var(--dh-accent);
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--dh-accent-soft);
}

.dh-search svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.dh-menu-toggle {
  display: none;
  padding: 0;
  cursor: pointer;
}

.dh-menu-toggle__lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.dh-menu-toggle__lines span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dh-header--nav-open .dh-menu-toggle__lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dh-header--nav-open .dh-menu-toggle__lines span:nth-child(2) {
  opacity: 0;
}

.dh-header--nav-open .dh-menu-toggle__lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .dh-nav-backdrop,
  .dh-nav-panel {
    display: none !important;
  }
}

.dh-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.dh-header--nav-open .dh-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dh-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw - 1.25rem);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.dh-header--nav-open .dh-nav-panel {
  transform: translateX(0);
}

.dh-nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--dh-border);
  flex-shrink: 0;
}

.dh-nav-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--dh-border);
  border-radius: 12px;
  background: var(--dh-bg);
  cursor: pointer;
  color: var(--dh-text-muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dh-nav-panel__close:hover {
  color: var(--dh-text);
  border-color: rgba(15, 23, 42, 0.18);
  background: #fff;
}

.dh-nav-wrap--mobile {
  flex: 1;
  padding: 0.35rem 0.85rem 0.75rem;
  overflow-y: auto;
}

.dh-nav--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
}

.dh-nav--stack > li {
  border-bottom: 1px solid var(--dh-border);
}

.dh-nav--stack .dh-nav__link {
  display: flex;
  width: 100%;
  padding: 0.95rem 0.65rem;
  border-radius: 10px;
  opacity: 1;
  font-size: 1rem;
  border-left: 3px solid transparent;
}

.dh-nav--stack .dh-nav__item--edito .dh-nav__link:hover,
.dh-nav--stack .dh-nav__item--edito.current-menu-item > .dh-nav__link {
  color: var(--dh-nav-edito);
  background: rgba(220, 38, 38, 0.06);
  border-left-color: var(--dh-nav-edito);
  box-shadow: none;
}

.dh-nav--stack .dh-nav__item--article .dh-nav__link:hover,
.dh-nav--stack .dh-nav__item--article.current-menu-item > .dh-nav__link {
  color: var(--dh-nav-article);
  background: rgba(37, 99, 235, 0.06);
  border-left-color: var(--dh-nav-article);
  box-shadow: none;
}

.dh-nav--stack .dh-nav__item--interview .dh-nav__link:hover,
.dh-nav--stack .dh-nav__item--interview.current-menu-item > .dh-nav__link {
  color: var(--dh-nav-interview);
  background: rgba(124, 58, 237, 0.06);
  border-left-color: var(--dh-nav-interview);
  box-shadow: none;
}

.dh-nav-panel__foot {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--dh-border);
  flex-shrink: 0;
}

.dh-nav-panel__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--dh-border);
  background: var(--dh-bg);
  color: var(--dh-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.dh-nav-panel__search:hover {
  color: var(--dh-accent);
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--dh-accent-soft);
}

body.dh-scroll-lock {
  overflow: hidden;
}

@media (max-width: 767px) {
  .dh-header {
    --dh-header-h: 64px;
  }

  .dh-header__inner {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .dh-header__nav {
    display: none;
  }

  .dh-menu-toggle {
    display: inline-flex;
  }

  .dh-logo {
    font-size: 1.08rem;
  }

  .dh-search,
  .dh-menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .dh-header__inner {
    gap: 1rem;
  }

  .dh-nav__link {
    padding: 0.42rem 0.75rem;
    font-size: 0.84rem;
  }
}

/* —— Recherche —— */
.dh-search-form__field {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border: 1px solid var(--dh-border);
  border-radius: 14px;
  background: var(--dh-bg-card);
  box-shadow: var(--dh-shadow);
  position: relative;
}

.dh-search-form--large .dh-search-form__field {
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  border-radius: 16px;
}

.dh-search-form__icon {
  flex-shrink: 0;
  align-self: center;
  color: var(--dh-text-muted);
  opacity: 0.75;
}

.dh-search-form__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--dh-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.dh-search-form__autocomplete {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}

.dh-search-form__autocomplete .dh-search-form__input {
  width: 100%;
}

.dh-search-suggest {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: -2.5rem;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  border: 1px solid var(--dh-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  max-height: min(420px, 58vh);
  overflow-y: auto;
}

.dh-search-suggest__item {
  margin: 0;
}

.dh-search-suggest__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: inherit;
  text-decoration: none;
}

.dh-search-suggest__item--active .dh-search-suggest__link,
.dh-search-suggest__link:hover {
  background: var(--dh-accent-soft);
}

.dh-search-suggest__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dh-bg);
}

.dh-search-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-search-suggest__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dh-search-suggest__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dh-text);
  line-height: 1.35;
}

.dh-search-suggest__snippet {
  font-size: 0.82rem;
  color: var(--dh-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dh-search-suggest__empty {
  padding: 0.75rem 0.9rem;
  color: var(--dh-text-muted);
  font-size: 0.88rem;
}

.dh-search-suggest__all {
  margin: 0;
  border-top: 1px solid var(--dh-border);
}

.dh-search-suggest__all-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--dh-accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dh-search-suggest__all-btn:hover {
  background: var(--dh-accent-soft);
}

.dh-search-form--large .dh-search-suggest {
  left: -2.65rem;
}

.dh-search-form__input::placeholder {
  color: var(--dh-text-muted);
}

.dh-search-form__submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  background: var(--dh-accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dh-search-form__submit:hover {
  background: var(--dh-accent-dark);
}

.dh-search-form--large .dh-search-form__submit {
  padding: 0.75rem 1.25rem;
}

.dh-search-page {
  padding-top: 2rem;
}

.dh-search-page__head {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.dh-search-page__head .dh-section__title {
  margin-bottom: 1rem;
}

.dh-search-page__intro {
  margin: 0.85rem 0 0;
  color: var(--dh-text-muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.dh-search-page__count {
  margin: 0 0 1rem;
  color: var(--dh-text-muted);
  font-size: 0.9rem;
}

.dh-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}

.dh-search-result {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--dh-border);
}

.dh-search-result:first-child {
  padding-top: 0.35rem;
}

.dh-search-result__main {
  flex: 1;
  min-width: 0;
}

.dh-search-result__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--dh-text-muted);
}

.dh-search-result__cat--edito {
  color: #dc2626;
}

.dh-search-result__cat--article {
  color: #2563eb;
}

.dh-search-result__cat--interview {
  color: #7c3aed;
}

.dh-search-result__sep {
  opacity: 0.55;
}

.dh-search-result__title {
  margin: 0 0 0.35rem;
  font-family: var(--dh-font);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dh-search-result__title a {
  color: #1a0dab;
  text-decoration: none;
}

.dh-search-result__title a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.dh-search-result__snippet {
  margin: 0;
  color: var(--dh-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.dh-search-result__thumb {
  flex-shrink: 0;
  display: block;
  width: 112px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
}

.dh-search-result__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-search-page .dh-pagination {
  max-width: 820px;
}

.dh-search-page__empty {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--dh-radius);
  border: 1px solid var(--dh-border);
  background: var(--dh-bg-card);
  color: var(--dh-text-muted);
}

@media (max-width: 639px) {
  .dh-search-form__field {
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
  }

  .dh-search-form__submit {
    width: 100%;
  }

  .dh-search-result {
    gap: 0.85rem;
  }

  .dh-search-result__thumb {
    width: 88px;
    height: 64px;
  }

  .dh-search-result__title {
    font-size: 1.05rem;
  }
}

/* —— Hero (mise en avant + visuel type magazine) —— */
.dh-hero {
  padding: 2.5rem 0 3.25rem;
  border-bottom: 1px solid var(--dh-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--dh-bg) 100%);
}

.dh-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.dh-hero__inner--overlay {
  grid-template-columns: 1fr;
}

.dh-hero__feature {
  position: relative;
  display: block;
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  box-shadow: var(--dh-shadow);
  aspect-ratio: 21 / 9;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-hero__feature:hover {
  transform: translateY(-4px);
}

.dh-hero__feature:has(.dh-hero__label--edito):hover {
  box-shadow: var(--dh-shadow-edito);
}

.dh-hero__feature:has(.dh-hero__label--article):hover {
  box-shadow: var(--dh-shadow-article);
}

.dh-hero__feature:has(.dh-hero__label--interview):hover {
  box-shadow: var(--dh-shadow-interview);
}

.dh-hero__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-hero__feature:hover .dh-hero__feature-media img {
  transform: scale(1.045);
}

.dh-hero__feature-media {
  position: absolute;
  inset: 0;
}

.dh-hero__feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.05) 0%,
    rgba(15, 23, 42, 0.35) 45%,
    rgba(15, 23, 42, 0.82) 75%,
    rgba(15, 23, 42, 0.92) 100%
  );
  transition: background 0.4s ease;
}

.dh-hero__feature:has(.dh-hero__label--edito):hover .dh-hero__feature-overlay {
  background: linear-gradient(
    180deg,
    rgba(127, 29, 29, 0.04) 0%,
    rgba(127, 29, 29, 0.1) 42%,
    rgba(15, 23, 42, 0.84) 72%,
    rgba(15, 23, 42, 0.94) 100%
  );
}

.dh-hero__feature:has(.dh-hero__label--article):hover .dh-hero__feature-overlay {
  background: linear-gradient(
    180deg,
    rgba(30, 64, 175, 0.04) 0%,
    rgba(30, 64, 175, 0.1) 42%,
    rgba(15, 23, 42, 0.84) 72%,
    rgba(15, 23, 42, 0.94) 100%
  );
}

.dh-hero__feature:has(.dh-hero__label--interview):hover .dh-hero__feature-overlay {
  background: linear-gradient(
    180deg,
    rgba(91, 33, 182, 0.04) 0%,
    rgba(91, 33, 182, 0.1) 42%,
    rgba(15, 23, 42, 0.84) 72%,
    rgba(15, 23, 42, 0.94) 100%
  );
}

.dh-hero__feature .dh-hero__label {
  color: #fecaca;
  margin-bottom: 0.55rem;
}

.dh-hero__feature .dh-hero__label--edito {
  color: #fecaca;
}

.dh-hero__feature .dh-hero__label--article {
  color: #bfdbfe;
}

.dh-hero__feature .dh-hero__label--interview {
  color: #ddd6fe;
}

.dh-hero__feature .dh-hero__title {
  color: #fff;
  margin-bottom: 0.6rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-hero__feature:hover .dh-hero__title {
  transform: translateY(-3px);
}

.dh-hero__chapo {
  margin: 0 0 0.85rem;
  max-width: 68ch;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.dh-hero__feature .dh-hero__meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

@media (max-width: 639px) {
  .dh-hero__feature {
    aspect-ratio: 4 / 3;
  }
}

.dh-hero__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dh-cat);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dh-hero__title {
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: none;
}

@media (min-width: 1280px) {
  .dh-hero__title {
    font-size: clamp(2.1rem, 2.8vw, 3.35rem);
  }
}

.dh-hero__title a {
  color: inherit;
}

.dh-hero__title a:hover {
  color: var(--dh-accent);
}

.dh-hero__meta {
  font-size: 0.9rem;
  color: var(--dh-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

/* —— Section titles —— */
.dh-section {
  padding: 2.5rem 0;
}

@media (min-width: 1280px) {
  .dh-section {
    padding: 3rem 0;
  }
}

.dh-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dh-border);
}

.dh-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
  padding-left: 0.85rem;
}

.dh-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: var(--dh-accent);
}

@media (min-width: 1280px) {
  .dh-section__title {
    font-size: 1.5rem;
  }
}

.dh-section__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dh-accent);
  white-space: nowrap;
}

.dh-section__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-accent);
  background: var(--dh-accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.dh-section--agent {
  --dh-research-accent: #2dd4bf;
  --dh-research-accent-soft: rgba(45, 212, 191, 0.14);
  background: linear-gradient(165deg, #070d14 0%, #0f1724 48%, #111827 100%);
  border-bottom: none;
  color: #dbe7f3;
  position: relative;
  overflow: hidden;
}

.dh-section--agent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.09) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.95;
  pointer-events: none;
}

.dh-section--agent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, rgba(7, 13, 20, 0.35) 100%);
  pointer-events: none;
}

.dh-section--agent .dh-wrap {
  position: relative;
  z-index: 2;
}

.dh-section--agent .dh-section__head {
  align-items: flex-start;
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.dh-section--agent .dh-section__head--agent {
  flex-wrap: wrap;
}

.dh-section--agent .dh-section__title {
  color: #f8fafc;
}

.dh-section--agent .dh-section__title::before {
  background: var(--dh-research-accent);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
}

.dh-section--agent .dh-section__subtitle {
  margin: 0.45rem 0 0;
  padding-left: 0.85rem;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
}

.dh-section--agent .dh-section__badge {
  background: var(--dh-research-accent-soft);
  color: var(--dh-research-accent);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.dh-research-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 1.1rem;
}

@media (min-width: 768px) {
  .dh-research-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.dh-research-card {
  --dh-research-hue: 190;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 36, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dh-research-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.5);
}

.dh-research-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.dh-research-card__visual {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  background:
    radial-gradient(ellipse 90% 70% at 18% 35%, hsl(var(--dh-research-hue) 72% 58% / 0.42), transparent 68%),
    radial-gradient(ellipse 70% 90% at 82% 68%, hsl(calc(var(--dh-research-hue) + 38) 68% 52% / 0.34), transparent 72%),
    linear-gradient(135deg, hsl(var(--dh-research-hue) 42% 14%), hsl(calc(var(--dh-research-hue) + 55) 38% 10%));
}

.dh-research-card__visual--has-image {
  background: #0b1220;
}

.dh-research-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.dh-research-card:hover .dh-research-card__image {
  transform: scale(1.06);
}

.dh-research-card__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.08) 0%, rgba(8, 15, 28, 0.55) 100%),
    linear-gradient(90deg, rgba(8, 15, 28, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.dh-research-card--featured .dh-research-card__visual-shade {
  background:
    linear-gradient(90deg, rgba(8, 15, 28, 0.2) 0%, rgba(8, 15, 28, 0.72) 68%, rgba(8, 15, 28, 0.82) 100%),
    linear-gradient(180deg, transparent 45%, rgba(8, 15, 28, 0.45) 100%);
}

.dh-research-card--featured .dh-research-card__visual {
  min-height: 220px;
}

@media (min-width: 900px) {
  .dh-research-card--featured .dh-research-card__link {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 280px;
  }

  .dh-research-card--featured .dh-research-card__visual {
    min-height: 100%;
  }
}

.dh-research-card__visual-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, hsl(var(--dh-research-hue) 80% 62% / 0.22), transparent 58%);
  animation: dh-research-pulse 7s ease-in-out infinite;
}

.dh-research-card__visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
}

.dh-research-card__visual-mark {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ecfeff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.45);
  backdrop-filter: blur(6px);
}

.dh-research-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.dh-research-card--featured .dh-research-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  justify-content: center;
}

.dh-research-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dh-research-card__topic {
  color: var(--dh-research-accent);
}

.dh-research-card__meta-sep {
  opacity: 0.65;
}

.dh-research-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.dh-research-card--featured .dh-research-card__title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.28;
}

.dh-research-card__excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.dh-research-card--featured .dh-research-card__excerpt {
  font-size: 0.95rem;
  max-width: 52ch;
}

.dh-research-card__cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dh-research-accent);
}

@keyframes dh-research-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

/* —— Grids (2 / 3 / 4 colonnes — comme le modèle Foxiz : tablette 2, desktop 3 ou 4) —— */
.dh-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1280px) {
  .dh-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 640px) {
  /* 2 colonnes entre 640px et 1023px, puis 3 sur grand écran */
  .dh-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 960px) {
  .dh-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.dh-grid--hero-sub {
  margin-top: 2rem;
}

/* Récemment — une seule ligne, défilement horizontal */
.dh-recent-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.dh-recent-row .dh-card {
  flex: 0 0 clamp(220px, 22vw, 280px);
  scroll-snap-align: start;
  min-width: 0;
}

.dh-section--recent .dh-card--rubrique .dh-card__title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
}

.dh-section--recent .dh-card--rubrique .dh-card__body {
  padding: 0.85rem 0.95rem 1rem;
}

/* —— Cards —— */
.dh-card {
  background: var(--dh-bg-card);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  overflow: hidden;
  box-shadow: var(--dh-shadow);
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.dh-card:hover {
  transform: translateY(-4px);
}

.dh-card--rubrique.dh-card--cat-edito:hover {
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: var(--dh-shadow-edito);
}

.dh-card--rubrique.dh-card--cat-article:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--dh-shadow-article);
}

.dh-card--rubrique.dh-card--cat-interview:hover {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: var(--dh-shadow-interview);
}

.dh-card:not(.dh-card--overlay):hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--dh-shadow-hover);
}

.dh-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-card--rubrique:hover .dh-card__thumb img,
.dh-card:not(.dh-card--overlay):hover .dh-card__thumb img {
  transform: scale(1.05);
}

.dh-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--dh-bg-elevated);
  overflow: hidden;
}

.dh-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.dh-card__cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-cat);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.dh-card__cat--edito {
  color: #dc2626;
}

.dh-card__cat--article {
  color: #2563eb;
}

.dh-card__cat--interview {
  color: #7c3aed;
}

/* Cartes une — surimpression image + chapo */
.dh-card--overlay {
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.dh-card--overlay:hover {
  transform: none;
  box-shadow: none;
}

.dh-card__overlay-link {
  position: relative;
  display: block;
  border-radius: var(--dh-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--dh-shadow);
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-grid--hero-sub .dh-card__overlay-link,
.dh-grid--4 .dh-card__overlay-link {
  aspect-ratio: 4 / 5;
}

.dh-card__overlay-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  transition: background 0.4s ease;
  pointer-events: none;
}

.dh-card--overlay.dh-card--cat-edito .dh-card__overlay-link:hover::after {
  background: rgba(220, 38, 38, 0.07);
}

.dh-card--overlay.dh-card--cat-article .dh-card__overlay-link:hover::after {
  background: rgba(37, 99, 235, 0.07);
}

.dh-card--overlay.dh-card--cat-interview .dh-card__overlay-link:hover::after {
  background: rgba(124, 58, 237, 0.07);
}

.dh-card--overlay.dh-card--cat-edito .dh-card__overlay-link:hover {
  box-shadow: var(--dh-shadow-edito);
}

.dh-card--overlay.dh-card--cat-article .dh-card__overlay-link:hover {
  box-shadow: var(--dh-shadow-article);
}

.dh-card--overlay.dh-card--cat-interview .dh-card__overlay-link:hover {
  box-shadow: var(--dh-shadow-interview);
}

.dh-card__overlay-link:hover {
  transform: translateY(-4px);
}

.dh-card--overlay .dh-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-card__overlay-link:hover .dh-card__thumb img {
  transform: scale(1.06);
}

.dh-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(15, 23, 42, 0.5) 55%,
    rgba(15, 23, 42, 0.9) 100%
  );
  transition: background 0.4s ease;
}

.dh-card--overlay.dh-card--cat-edito .dh-card__overlay-link:hover .dh-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(127, 29, 29, 0.05) 0%,
    rgba(127, 29, 29, 0.14) 48%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.dh-card--overlay.dh-card--cat-article .dh-card__overlay-link:hover .dh-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(30, 64, 175, 0.05) 0%,
    rgba(30, 64, 175, 0.14) 48%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.dh-card--overlay.dh-card--cat-interview .dh-card__overlay-link:hover .dh-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(91, 33, 182, 0.05) 0%,
    rgba(91, 33, 182, 0.14) 48%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.dh-card--overlay .dh-card__thumb {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.dh-card__overlay .dh-card__cat {
  color: #fecaca;
  margin-bottom: 0.35rem;
}

.dh-card__overlay .dh-card__cat--edito {
  color: #fecaca;
}

.dh-card__overlay .dh-card__cat--article {
  color: #bfdbfe;
}

.dh-card__overlay .dh-card__cat--interview {
  color: #ddd6fe;
}

.dh-card__overlay .dh-card__title {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  -webkit-line-clamp: 3;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-card__overlay-link:hover .dh-card__title {
  transform: translateY(-3px);
}

.dh-card__overlay .dh-card__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  line-height: 1.45;
}

.dh-section--edito .dh-section__title::before {
  background: #dc2626;
}

.dh-section--article .dh-section__title::before {
  background: #2563eb;
}

.dh-section--interview .dh-section__title::before {
  background: #7c3aed;
}

/* Cartes rubriques : image + texte en dessous */
.dh-card--rubrique {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dh-card--rubrique.dh-card--cat-edito {
  border-top: 3px solid #dc2626;
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.dh-card--rubrique.dh-card--cat-article {
  border-top: 3px solid #2563eb;
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.dh-card--rubrique.dh-card--cat-interview {
  border-top: 3px solid #7c3aed;
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.dh-card--rubrique.dh-card--cat-edito:hover {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 38%);
}

.dh-card--rubrique.dh-card--cat-article:hover {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 38%);
}

.dh-card--rubrique.dh-card--cat-interview:hover {
  background: linear-gradient(180deg, #f9f6ff 0%, #ffffff 38%);
}

.dh-card--rubrique .dh-card__thumb {
  flex-shrink: 0;
}

.dh-card--rubrique .dh-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.2rem;
}

.dh-card--rubrique .dh-card__title {
  font-size: 1rem;
  -webkit-line-clamp: 3;
  margin-bottom: 0.5rem;
}

.dh-card--rubrique .dh-card__excerpt--chapo {
  flex: 1 1 auto;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--dh-text-muted);
}

.dh-section--recent .dh-card--rubrique .dh-text-expand--rubrique {
  font-size: 0.8rem;
}

/* Texte expansible au survol (×2 lignes, animation) */
.dh-text-expand {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.88;
  transform: translateY(5px);
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
}

.dh-text-expand--hero {
  -webkit-line-clamp: 3;
  max-height: 4.65em;
}

.dh-hero__feature:hover .dh-text-expand--hero,
.dh-hero__feature:focus-visible .dh-text-expand--hero {
  -webkit-line-clamp: 6;
  max-height: 9.3em;
  opacity: 1;
  transform: translateY(0);
}

.dh-text-expand--overlay {
  -webkit-line-clamp: 3;
  max-height: 4.35em;
}

.dh-card__overlay-link:hover .dh-text-expand--overlay,
.dh-card__overlay-link:focus-visible .dh-text-expand--overlay {
  -webkit-line-clamp: 6;
  max-height: 8.7em;
  opacity: 1;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.96);
}

.dh-text-expand--rubrique {
  -webkit-line-clamp: 3;
  max-height: 4.5em;
}

.dh-card--rubrique:hover .dh-text-expand--rubrique,
.dh-card--rubrique:focus-within .dh-text-expand--rubrique {
  -webkit-line-clamp: 6;
  max-height: 9em;
  opacity: 1;
  transform: translateY(0);
  color: var(--dh-text);
}

.dh-section--recent .dh-text-expand--rubrique {
  -webkit-line-clamp: 2;
  max-height: 3em;
}

.dh-section--recent .dh-card--rubrique:hover .dh-text-expand--rubrique,
.dh-section--recent .dh-card--rubrique:focus-within .dh-text-expand--rubrique {
  -webkit-line-clamp: 4;
  max-height: 6em;
}

@media (max-width: 639px) {
  .dh-text-expand--hero {
    -webkit-line-clamp: 2;
    max-height: 3.1em;
  }

  .dh-hero__feature:hover .dh-text-expand--hero {
    -webkit-line-clamp: 4;
    max-height: 6.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-text-expand {
    transition: none;
  }
}

.dh-card--rubrique .dh-card__meta {
  margin-top: auto;
}

.dh-grid--hero-sub .dh-card--rubrique .dh-card__title {
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
}

.dh-grid--hero-sub .dh-card--rubrique .dh-card__excerpt--chapo {
  font-size: 0.82rem;
}

.dh-grid--4 .dh-card--rubrique .dh-card__title {
  font-size: 0.92rem;
}

/* Cartes texte (agent éditorial sans visuel) */
.dh-card--text {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-left: 3px solid var(--dh-accent);
}

.dh-section--agent .dh-card--text {
  min-height: 280px;
}

.dh-card--text .dh-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.25rem;
  min-height: 100%;
}

.dh-card--text .dh-card__head {
  flex: 0 0 10%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--dh-border);
}

.dh-card--text .dh-card__head .dh-card__cat {
  margin-bottom: 0;
}

.dh-card--text .dh-card__head .dh-card__meta {
  margin-left: auto;
}

.dh-card--text .dh-card__content {
  flex: 1 1 90%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dh-card--text .dh-card__title {
  font-size: 1.02rem;
  line-height: 1.38;
  margin-bottom: 0.65rem;
  -webkit-line-clamp: 4;
}

.dh-card--text .dh-card__excerpt {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dh-text-muted);
  -webkit-line-clamp: 8;
}

.dh-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.dh-card__excerpt {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--dh-text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Grilles 4 col : cartes un peu plus compactes */
.dh-grid--4 .dh-card__title {
  font-size: 0.92rem;
  line-height: 1.3;
}

.dh-card__title a {
  color: var(--dh-text);
}

.dh-card__title a:hover {
  color: var(--dh-accent);
}

.dh-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.8rem;
  color: var(--dh-text-muted);
}

.dh-card__meta-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.dh-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--dh-text-muted);
  font-weight: 600;
}

/* —— Single article (layout magazine) —— */
.dh-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--dh-accent), #6366f1);
  transition: width 0.1s linear;
  pointer-events: none;
}

.dh-single {
  padding: 2rem 0 4rem;
}

.dh-single__wrap {
  max-width: var(--dh-max);
}

.dh-single__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--dh-text-muted);
}

.dh-single__crumb a {
  color: var(--dh-text-muted);
  font-weight: 500;
}

.dh-single__crumb a:hover {
  color: var(--dh-accent);
}

.dh-single__header {
  max-width: 820px;
  margin-bottom: 2rem;
}

.dh-single__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--dh-cat);
}

.dh-single__label--edito { color: #dc2626; }
.dh-single__label--article { color: #2563eb; }
.dh-single__label--interview { color: #7c3aed; }

.dh-single__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.dh-single__standfirst {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #334155;
  border-left: 4px solid var(--dh-accent);
  padding-left: 1.1rem;
}

.dh-single__standfirst p {
  margin: 0;
}

.dh-single__standfirst em,
.dh-single__standfirst .chapo {
  font-style: normal;
}

.dh-single__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.dh-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--dh-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.dh-author-chip:hover {
  color: var(--dh-accent);
}

.dh-author-chip__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.dh-author-chip__name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dh-single__newsletter-pill {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--dh-accent-soft);
  color: var(--dh-accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-single__newsletter-pill:hover {
  background: rgba(37, 99, 235, 0.16);
}

.dh-single__figure {
  margin: 0 0 2.5rem;
}

.dh-single__figure-media {
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  box-shadow: var(--dh-shadow);
  aspect-ratio: 21 / 9;
  background: var(--dh-bg);
}

.dh-single__figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-single__layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .dh-single__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
  }
}

.dh-single__main {
  min-width: 0;
}

.dh-single__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .dh-single__sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

.dh-sidebar-card {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
}

.dh-sidebar-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-text-muted);
}

.dh-sidebar-card__value {
  margin: 0;
  font-weight: 600;
  color: var(--dh-text);
}

.dh-sidebar-card__meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--dh-text-muted);
}

.dh-sidebar-card__newsletter {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.dh-toc {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.dh-toc li {
  margin-bottom: 0.45rem;
}

.dh-toc a {
  color: var(--dh-text);
}

.dh-toc a:hover {
  color: var(--dh-accent);
}

.dh-sidebar-siblings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-sidebar-siblings li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dh-border);
}

.dh-sidebar-siblings li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.dh-sidebar-siblings a {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--dh-text);
}

.dh-sidebar-share,
.dh-single__share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dh-sidebar-share a,
.dh-sidebar-share button,
.dh-single__share-links a,
.dh-single__copy-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--dh-border);
  background: #f8fafc;
  color: var(--dh-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.dh-sidebar-share a:hover,
.dh-single__share-links a:hover,
.dh-single__copy-link:hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

.dh-single__tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dh-border);
}

.dh-single__tags-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-text-muted);
}

.dh-single__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dh-single__tags-list a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--dh-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.dh-single__tags-list a:hover {
  background: var(--dh-accent-soft);
  color: var(--dh-accent);
}

.dh-single__source {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--dh-text-muted);
  word-break: break-all;
}

.dh-single__share {
  margin-top: 2rem;
  padding: 1.15rem 1.2rem;
  background: #f8fafc;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
}

.dh-single__share-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-text-muted);
}

.dh-single__nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dh-border);
}

@media (min-width: 640px) {
  .dh-single__nav {
    grid-template-columns: 1fr 1fr;
  }
}

.dh-single__nav-link {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  background: #fff;
  color: var(--dh-text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dh-single__nav-link:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--dh-shadow);
}

.dh-single__nav-link--next {
  text-align: right;
}

.dh-single__nav-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-accent);
  margin-bottom: 0.35rem;
}

.dh-single__nav-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.dh-single__meta {
  color: var(--dh-text-muted);
  font-size: 0.9rem;
}

.dh-single__meta--inline {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dh-single__meta-sep {
  color: #cbd5e1;
}

.dh-author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.35rem 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
}

.dh-author-box__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.dh-author-box__label {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-text-muted);
  font-weight: 600;
}

.dh-author-box__name {
  margin: 0 0 0.5rem;
  font-family: var(--dh-font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.dh-author-box__name a {
  color: var(--dh-text);
}

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

.dh-author-box__bio {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.dh-author-box__bio p {
  margin: 0 0 0.5rem;
}

.dh-author-box__bio p:last-child {
  margin-bottom: 0;
}

.dh-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dh-border);
}

.dh-related__head {
  margin-bottom: 1.25rem;
}

.dh-related__title {
  font-family: var(--dh-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--dh-text);
  padding-left: 0.85rem;
  position: relative;
}

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

.dh-content {
  font-size: 1.08rem;
  line-height: 1.82;
  color: #334155;
}

.dh-content > *:first-child {
  margin-top: 0;
}

.dh-content h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
  scroll-margin-top: 5rem;
}

.dh-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.dh-content h2,
.dh-content h3 {
  color: var(--dh-text);
  letter-spacing: -0.02em;
  font-family: var(--dh-font-display);
}

.dh-content p {
  margin: 0 0 1.25rem;
}

.dh-content ul,
.dh-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.dh-content li {
  margin-bottom: 0.35rem;
}

.dh-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--dh-accent);
  background: #f8fafc;
  color: var(--dh-text);
  font-style: italic;
}

.dh-content hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--dh-border);
}

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

.dh-content .chapo,
.dh-content p.chapo {
  display: none;
}

.dh-content p.intertitre,
.dh-content .intertitre {
  text-align: center;
  color: var(--dh-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.dh-content .encart-important,
.dh-content .a-retenir {
  background: #f8fafc;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}

.dh-content .encart-important strong,
.dh-content .a-retenir strong {
  display: block;
  font-family: var(--dh-font-display);
  color: var(--dh-text);
  margin-bottom: 0.5rem;
}

.dh-content .a-retenir ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.dh-content .article-sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dh-border);
}

.dh-content .article-sources h2 {
  font-size: 1.1rem;
  font-family: var(--dh-font-display);
  color: var(--dh-text);
  margin: 0 0 0.75rem;
}

.dh-content .article-sources ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--dh-text-muted);
}

.dh-content .article-sources a {
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 767px) {
  .dh-single__figure-media {
    aspect-ratio: 16 / 10;
  }

  .dh-single__standfirst {
    font-size: 1.05rem;
  }
}

/* —— Barre supérieure (optionnelle) —— */
.dh-topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dh-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 40px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.dh-topbar__text {
  flex: 1;
  min-width: 0;
}

.dh-topbar__text p {
  margin: 0;
}

.dh-topbar__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dh-topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
}

.dh-topbar__social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* —— Alerte newsletter (style Recherche & veille) —— */
.dh-newsletter-alert {
  --dh-newsletter-accent: #2dd4bf;
  --dh-newsletter-accent-soft: rgba(45, 212, 191, 0.14);
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: min(100% - 2rem, 24rem);
  pointer-events: none;
  opacity: 0;
  transform: translateY(1.25rem) scale(0.98);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-newsletter-alert.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dh-newsletter-alert__panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(165deg, #070d14 0%, #0f1724 52%, #111827 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.08);
}

.dh-newsletter-alert__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.9;
  pointer-events: none;
}

.dh-newsletter-alert__glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse 80% 70% at 20% 30%, rgba(45, 212, 191, 0.22), transparent 68%);
  pointer-events: none;
  animation: dh-newsletter-glow 8s ease-in-out infinite;
}

.dh-newsletter-alert__content {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.2rem 1.05rem;
  color: #dbe7f3;
}

.dh-newsletter-alert__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.55);
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dh-newsletter-alert__close:hover {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: var(--dh-newsletter-accent);
}

.dh-newsletter-alert__badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dh-newsletter-accent);
  background: var(--dh-newsletter-accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.dh-newsletter-alert__title {
  margin: 0 2rem 0.45rem 0;
  padding-left: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #f8fafc;
  position: relative;
}

.dh-newsletter-alert__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 2px;
  background: var(--dh-newsletter-accent);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.45);
}

.dh-newsletter-alert__text {
  margin: 0 0 0.9rem;
  padding-left: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
}

.dh-newsletter-alert__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.dh-newsletter-alert__field {
  min-width: 0;
}

.dh-newsletter-alert__input {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  color: #f8fafc;
  background: rgba(15, 23, 36, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dh-newsletter-alert__input::placeholder {
  color: #64748b;
}

.dh-newsletter-alert__input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(15, 23, 36, 0.92);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.dh-newsletter-alert__submit {
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 55%, #14b8a6 100%);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.dh-newsletter-alert__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.28);
}

.dh-newsletter-alert__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.dh-newsletter-alert__privacy {
  margin: 0.7rem 0 0;
  padding-left: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}

.dh-newsletter-alert__status {
  margin: 0.55rem 0 0;
  padding-left: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.dh-newsletter-alert__status.is-success {
  color: #5eead4;
}

.dh-newsletter-alert__status.is-error {
  color: #fca5a5;
}

.dh-newsletter-alert__status.is-pending {
  color: var(--dh-newsletter-accent);
}

@keyframes dh-newsletter-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .dh-newsletter-alert {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .dh-newsletter-alert__form {
    grid-template-columns: 1fr;
  }

  .dh-newsletter-alert__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-newsletter-alert,
  .dh-newsletter-alert__glow {
    transition: none;
    animation: none;
  }
}

.dh-rubrique-head {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.dh-rubrique-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.dh-rubrique-head__desc {
  margin: 0.5rem 0 0;
  padding-left: 0.85rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dh-text-muted);
}

.dh-rubrique-head__count {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dh-text-muted);
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
}

.dh-section--edito .dh-rubrique-head__count {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.18);
}

.dh-section--article .dh-rubrique-head__count {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
}

.dh-section--interview .dh-rubrique-head__count {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.18);
}

.dh-rubrique-hero {
  padding-top: 1.25rem;
}

.dh-rubrique-listing {
  padding-top: 1.5rem;
}

.dh-rubrique-listing__empty {
  margin: 0;
  color: var(--dh-text-muted);
}

.dh-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.dh-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
}

.dh-pagination ul.page-numbers a.page-numbers,
.dh-pagination ul.page-numbers span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--dh-border);
  background: var(--dh-bg-card);
  color: var(--dh-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.dh-pagination ul.page-numbers a.page-numbers:hover,
.dh-pagination ul.page-numbers span.page-numbers.current {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

.dh-rubrique-page--edito .dh-pagination ul.page-numbers a.page-numbers:hover,
.dh-rubrique-page--edito .dh-pagination ul.page-numbers span.page-numbers.current {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.dh-rubrique-page--article .dh-pagination ul.page-numbers a.page-numbers:hover,
.dh-rubrique-page--article .dh-pagination ul.page-numbers span.page-numbers.current {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

.dh-rubrique-page--interview .dh-pagination ul.page-numbers a.page-numbers:hover,
.dh-rubrique-page--interview .dh-pagination ul.page-numbers span.page-numbers.current {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.06);
}

/* —— Footer —— */
.dh-footer {
  margin-top: 2rem;
  background: #fff;
  color: var(--dh-text-muted);
  font-size: 0.9rem;
  box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.dh-footer__main {
  display: grid;
  gap: 2rem 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dh-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dh-footer__main {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }
}

.dh-footer__site-title {
  display: inline-block;
  font-family: var(--dh-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dh-text);
  margin-bottom: 0.5rem;
}

.dh-footer__desc {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
}

.dh-footer__label {
  margin: 0 0 0.75rem;
  font-family: var(--dh-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-text);
}

.dh-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dh-footer__menu a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--dh-text-muted);
  font-size: 0.9rem;
}

.dh-footer__menu a:hover {
  color: var(--dh-accent);
}

.dh-footer__menu .sub-menu {
  list-style: none;
  margin: 0.35rem 0 0 0.75rem;
  padding: 0;
}

.dh-footer__bar {
  border-top: 1px solid var(--dh-border);
  padding: 1.1rem 0;
  background: #f8fafc;
}

.dh-footer__bar-inner p {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--dh-text-muted);
}

.dh-footer__bar-inner a {
  color: var(--dh-text);
  font-weight: 500;
}

.dh-footer a {
  color: inherit;
}

/* —— Utils —— */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignwide {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* —— Pagination —— */
.navigation.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.navigation.pagination a,
.navigation.pagination span,
.nav-links a,
.nav-links span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--dh-border);
  background: var(--dh-bg-card);
  color: var(--dh-text-muted);
  font-size: 0.9rem;
}

.navigation.pagination a:hover,
.nav-links a:hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

.navigation.pagination .current,
.nav-links span.current {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
  background: var(--dh-accent-soft);
}

/* —— Utils —— */
.dh-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--dh-accent);
  color: #fff;
}

.dh-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Mobile : ajustements simples (pas de refonte UI) —— */
@media (max-width: 767px) {
  :root {
    --dh-gutter: clamp(0.85rem, 4vw, 1.25rem);
  }

  html {
    overflow-x: clip;
  }

  .dh-header {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  body.admin-bar .dh-header {
    top: calc(46px + env(safe-area-inset-top, 0px));
  }

  .dh-topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .dh-hero {
    padding: 1.5rem 0 2rem;
  }

  .dh-hero__title {
    font-size: clamp(1.4rem, 5.8vw, 2rem);
    margin-bottom: 0.65rem;
  }

  .dh-hero__feature-overlay {
    padding: 1rem 1rem 1.15rem;
  }

  .dh-grid--hero-sub {
    margin-top: 1.25rem;
  }

  .dh-section {
    padding: 1.75rem 0;
  }

  .dh-section__head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dh-section__title {
    font-size: 1.15rem;
  }

  .dh-recent-row .dh-card {
    flex: 0 0 min(82vw, 280px);
  }

  .dh-rubrique-head {
    padding-top: 1.25rem;
  }

  .dh-rubrique-head__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .dh-single {
    padding: 1.25rem 0 2.5rem;
  }

  .dh-single__header {
    margin-bottom: 1.5rem;
  }

  .dh-single__title {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
    line-height: 1.15;
  }

  .dh-single__standfirst {
    font-size: 1.05rem;
    padding-left: 0.85rem;
  }

  .dh-single__newsletter-pill {
    white-space: normal;
    line-height: 1.35;
  }

  .dh-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .dh-content h2 {
    font-size: 1.25rem;
    scroll-margin-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  }

  .dh-content h3 {
    font-size: 1.1rem;
  }

  .dh-content pre,
  .dh-content table,
  .dh-content iframe {
    max-width: 100%;
    overflow-x: auto;
  }

  .dh-single__nav-link--next {
    text-align: left;
  }

  .dh-newsletter-alert {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .dh-footer__main {
    padding-top: 2rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) and (hover: none) {
  .dh-card:hover,
  .dh-hero__feature:hover {
    transform: none;
  }
}