/*
Theme Name: DailyDigital
Theme URI:
Description: Thème enfant Astra pour DailyDigital — magazine tech FR (IA, fintech, blockchain, réseaux sociaux). Design éditorial « Corporate Modern », Space Grotesk + Inter.
Author: DailyDigital
Template: astra
Version: 1.0.3
Text Domain: dailydigital
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, news, magazine
*/

/* ============================================================
   DESIGN SYSTEM — tokens (issus du design system Stitch / DESIGN.md)
   ============================================================ */
:root {
  /* Surfaces & encre */
  --bg-outer: #f8f9ff;          /* fond de page (surface) */
  --bg: #f8f9ff;
  --surface: #ffffff;            /* cartes, header, contenu */
  --surface-low: #eff4ff;        /* sections secondaires, inputs */
  --surface-container: #e5eeff;
  --surface-high: #dce9ff;       /* placeholders d'image */
  --surface-variant: #d3e4fe;
  --inverse: #213145;            /* panneaux navy (widget newsletter) */
  --on-inverse: #eaf1ff;

  --ink: #0b1c30;                /* titres */
  --ink-variant: #434655;        /* corps, méta */
  --tertiary: #4d556b;
  --ink-70: rgba(11, 28, 48, 0.70);
  --ink-40: rgba(11, 28, 48, 0.45);

  /* Accents */
  --primary: #004ac6;            /* marque, liens, nav active, « lire » */
  --accent: #2563eb;             /* boutons, pills, icônes de section */
  --accent-dark: #004ac6;        /* hover bouton */
  --accent-soft: rgba(37, 99, 235, 0.10);
  --on-accent: #ffffff;
  --error: #ba1a1a;

  /* Lignes */
  --line: #c3c6d7;               /* bordures de cartes (outline-variant) */
  --line-strong: #9aa0b5;
  --line-soft: rgba(11, 28, 48, 0.08);

  /* Typo */
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --section-gap: 80px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 32px;
  --read: 760px;                 /* colonne de lecture article */

  /* Forme & profondeur */
  --radius: 8px;
  --radius-lg: 16px;
  --pill: 9999px;
  --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 10px 24px rgba(15, 23, 42, 0.10);
}

/* ============================================================
   BASE
   ============================================================ */
body.dd {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-variant);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.dd *, body.dd *::before, body.dd *::after { box-sizing: border-box; }

body.dd img { max-width: 100%; height: auto; display: block; }
body.dd h1, body.dd h2, body.dd h3, body.dd h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

.dd-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.dd-main { min-height: 60vh; display: block; }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

/* Utilitaires partagés */
.dd-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--pill);
  line-height: 1;
  width: max-content;
}
.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent) !important;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.dd-btn:hover { background: var(--accent-dark); }
.dd-btn--outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.dd-btn--outline:hover { background: var(--surface-low); }
.dd-link {
  color: var(--primary) !important;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.dd-link:hover { text-decoration: underline; }

/* ============================================================
   HEADER (sticky, glassmorphism)
   ============================================================ */
.dd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.dd-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}
.dd-header__brand { text-decoration: none; display: inline-flex; align-items: center; }
.dd-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dd-logo span { color: var(--accent); }
.dd-header__brand img { max-height: 44px; width: auto; }

.dd-header__nav {
  display: flex;
  gap: var(--s-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.dd-header__nav li { margin: 0; }
.dd-header__nav a {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-variant) !important;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.dd-header__nav a:hover { color: var(--primary) !important; }
.dd-header__nav .current-menu-item > a,
.dd-header__nav .current-menu-parent > a,
.dd-header__nav .current-category-ancestor > a {
  color: var(--primary) !important;
  border-bottom-color: var(--primary);
}

.dd-header__actions { display: flex; align-items: center; gap: var(--s-md); }
.dd-header__search,
.dd-header__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-variant);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.dd-header__search:hover,
.dd-header__hamburger:hover { color: var(--primary); background: var(--surface-low); }
.dd-header__hamburger {
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  display: none;
}
.dd-header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.dd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 340px);
  background: var(--surface);
  z-index: 120;
  padding: 28px 24px;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
body.nav-open .dd-drawer {
  transform: translateX(0);
  box-shadow: 0 0 0 100vmax rgba(11, 28, 48, 0.45);
}
.dd-drawer__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--ink-variant);
  cursor: pointer;
}
.dd-drawer__nav { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; }
.dd-drawer__nav li { border-bottom: 1px solid var(--line-soft); }
.dd-drawer__nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink) !important;
  text-decoration: none;
}
.dd-drawer__nav a:hover { color: var(--primary) !important; }

/* ============================================================
   SEARCH OVERLAY (plein écran)
   ============================================================ */
.dd-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(248, 249, 255, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 24px 0;
}
body.search-open .dd-search-overlay { display: flex; }
.dd-search-overlay__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: var(--ink-variant);
  cursor: pointer;
}
.dd-search-overlay__inner { width: 100%; max-width: 640px; }

/* Formulaire de recherche namespacé */
.dd-searchform { display: flex; gap: 8px; width: 100%; }
.dd-searchform__input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.dd-searchform__input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.dd-searchform__submit {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  padding: 0 22px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.dd-searchform__submit:hover { background: var(--accent-dark); }

/* ============================================================
   PHOTO (helper dd_photo : wrapper + fallback gradient)
   ============================================================ */
.dd-photo {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-high);
}
.dd-photo__img,
.dd-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.dd-photo--seed-1 { background: linear-gradient(135deg, #2563eb, #213145); }
.dd-photo--seed-2 { background: linear-gradient(135deg, #006591, #39b8fd); }
.dd-photo--seed-3 { background: linear-gradient(135deg, #004ac6, #b4c5ff); }
.dd-photo--seed-4 { background: linear-gradient(135deg, #213145, #4d556b); }
.dd-photo--seed-5 { background: linear-gradient(135deg, #2563eb, #89ceff); }
.dd-photo--seed-6 { background: linear-gradient(135deg, #0b1c30, #006591); }

/* ============================================================
   CARTE D'ARTICLE (grilles home / archive / recherche / liés)
   ============================================================ */
.dd-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.dd-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.dd-card:hover .dd-photo__img,
.dd-card:hover .dd-photo img { transform: scale(1.05); }
.dd-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dd-card__cat {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dd-card__title {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  transition: color 0.2s ease;
}
.dd-card:hover .dd-card__title { color: var(--accent); }
.dd-card__excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--ink-variant);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dd-card__meta { margin: 4px 0 0; font-size: 13px; color: var(--tertiary); }

/* ============================================================
   GRILLES
   ============================================================ */
.dd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.dd-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* En-tête de section */
.dd-section { margin-bottom: var(--section-gap); }
.dd-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: var(--s-lg);
  gap: 16px;
}
.dd-section__title {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.dd-section__title .material-symbols-outlined { color: var(--accent); font-size: 26px; }

/* ============================================================
   HOME — hero + colonne secondaire
   ============================================================ */
.dd-home { padding: var(--s-lg) 0 0; }
.dd-home__feature {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gutter);
  margin-bottom: var(--section-gap);
}
.dd-home__secondary { display: flex; flex-direction: column; gap: var(--gutter); }

/* Hero (grande carte à la une) */
.dd-hero {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease;
}
.dd-hero:hover { box-shadow: var(--shadow-card-hover); }
.dd-hero__media { position: relative; }
.dd-hero:hover .dd-photo__img, .dd-hero:hover .dd-photo img { transform: scale(1.04); }
.dd-hero__cat { position: absolute; top: 16px; left: 16px; z-index: 2; }
.dd-hero__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.dd-hero__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-variant); }
.dd-hero__title {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  transition: color 0.2s ease;
}
.dd-hero:hover .dd-hero__title { color: var(--accent); }
.dd-hero__excerpt {
  margin: 0;
  font-size: 16px;
  color: var(--ink-variant);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cartes secondaires (colonne droite du hero) */
.dd-side-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex: 1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.dd-side-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.dd-side-card:hover .dd-photo__img, .dd-side-card:hover .dd-photo img { transform: scale(1.05); }
.dd-side-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.dd-side-card__title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.dd-side-card:hover .dd-side-card__title { color: var(--accent); }

/* ============================================================
   HOME — sections thématiques pleine largeur (fond alterné)
   ============================================================ */
.dd-cat-section {
  width: 100%;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.dd-cat-section--alt { background: var(--bg-outer); }
.dd-mini-card { display: block; text-decoration: none; color: inherit; }
.dd-mini-card__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.dd-mini-card:hover .dd-photo__img, .dd-mini-card:hover .dd-photo img { transform: scale(1.05); }
.dd-mini-card__title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  transition: color 0.2s ease;
}
.dd-mini-card:hover .dd-mini-card__title { color: var(--accent); }

/* ============================================================
   BANDEAU NEWSLETTER
   ============================================================ */
.dd-newsletter-band {
  width: 100%;
  background: var(--surface-low);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  text-align: center;
}
.dd-newsletter-band__inner { max-width: 600px; margin: 0 auto; padding: 0 var(--margin-mobile); }
.dd-newsletter-band__icon { color: var(--accent); font-size: 48px; margin-bottom: 12px; }
.dd-newsletter-band__title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--ink);
  margin: 0 0 14px;
}
.dd-newsletter-band__text { font-size: 16px; color: var(--ink-variant); margin: 0 0 28px; }

/* Formulaire newsletter placeholder (helper dd_render_brevo_form fallback) */
.dd-newsletter {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.dd-newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.dd-newsletter input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.dd-newsletter button {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  padding: 13px 24px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.dd-newsletter button:hover { background: var(--accent-dark); }

/* ============================================================
   ARTICLE (single)
   ============================================================ */
.dd-single { padding: var(--s-lg) 0 0; }
.dd-single__narrow { max-width: var(--read); margin: 0 auto; }
.dd-breadcrumb { font-size: 14px; color: var(--ink-variant); margin-bottom: var(--s-lg); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dd-breadcrumb a { color: var(--ink-variant) !important; text-decoration: none; }
.dd-breadcrumb a:hover { color: var(--primary) !important; }
.dd-breadcrumb .material-symbols-outlined { font-size: 16px; color: var(--line-strong); }
.dd-breadcrumb .dd-breadcrumb__current { color: var(--tertiary); }

.dd-single__header { margin-bottom: var(--s-lg); }
.dd-single__title {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 16px 0;
}
.dd-single__byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.dd-single__author-row { display: flex; align-items: center; gap: 12px; }
.dd-single__avatar { width: 40px; height: 40px; border-radius: var(--pill); object-fit: cover; border: 1px solid var(--line); }
.dd-single__author-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.dd-single__author-meta { font-size: 14px; color: var(--ink-variant); }
.dd-single__share { display: flex; gap: 8px; }
.dd-single__share button {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill);
  background: var(--surface-low);
  border: none;
  color: var(--ink-variant);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dd-single__share button:hover { background: var(--surface-variant); color: var(--primary); }
.dd-single__share .material-symbols-outlined { font-size: 18px; }
.dd-single__share button { position: relative; }
.dd-single__share button.is-saved { color: var(--primary); }
.dd-single__share button.is-saved .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.dd-single__share button.is-active { color: #2e7d32; }
.dd-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--inverse);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.dd-single__cover {
  margin: 0 auto var(--s-lg);
  max-width: var(--maxw);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.dd-single__cover img { width: 100%; height: auto; display: block; }
.dd-single__cover figcaption {
  position: absolute; bottom: 0; right: 0;
  background: rgba(33, 49, 69, 0.78);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

/* Encadrés rédactionnels (« En Bref » .en-bref-box, « On en dit quoi », etc.) :
   gérés côté CONTENU via le CSS additionnel du site, volontairement PAS par le thème. */

/* Corps rédactionnel (prose) — partagé single / page / contact */
.dd-prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.dd-prose > * { margin: 0 0 1.4em; }
.dd-prose > *:last-child { margin-bottom: 0; }
.dd-prose h2 { font-family: var(--display); font-size: 26px; color: var(--ink); margin: 1.6em 0 0.5em; line-height: 1.25; }
.dd-prose h3 { font-family: var(--display); font-size: 21px; color: var(--ink); margin: 1.4em 0 0.4em; line-height: 1.3; }
.dd-prose a { color: var(--primary) !important; text-decoration: underline; }
.dd-prose strong { color: var(--ink); font-weight: 700; }
.dd-prose ul, .dd-prose ol { padding-left: 1.3em; }
.dd-prose li { margin-bottom: 0.5em; }
.dd-prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.dd-prose figure { margin: 1.6em 0; }
.dd-prose figcaption { font-size: 14px; color: var(--ink-variant); text-align: center; padding-top: 8px; }
.dd-prose blockquote {
  border-left: 4px solid var(--primary);
  background: var(--surface-low);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--ink-variant);
}
.dd-prose blockquote p { margin: 0; }
.dd-prose blockquote cite, .dd-prose blockquote footer { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; font-style: normal; color: var(--ink); }

/* Tags */
.dd-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-lg); padding-top: var(--s-lg); border-top: 1px solid var(--line); }
.dd-single__tags a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-variant) !important;
  background: var(--surface-low);
  padding: 6px 12px;
  border-radius: var(--pill);
  text-decoration: none;
}
.dd-single__tags a:hover { color: var(--primary) !important; }

/* Bloc auteur */
.dd-single__authorbox {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--s-lg);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.dd-single__authorbox img { width: 64px; height: 64px; border-radius: var(--pill); object-fit: cover; }
.dd-single__authorbox h4 { font-family: var(--display); font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.dd-single__authorbox p { margin: 0; font-size: 15px; color: var(--ink-variant); }

/* Articles liés */
.dd-single__related { margin-top: var(--section-gap); border-top: 1px solid var(--line); padding-top: var(--s-lg); }
.dd-single__related-title { font-family: var(--display); font-size: 24px; color: var(--ink); margin: 0 0 var(--s-lg); }

/* Bloc CTA newsletter (encadré) */
.dd-cta {
  margin: var(--section-gap) auto 0;
  max-width: 960px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.dd-cta__icon { color: var(--accent); font-size: 44px; margin-bottom: 12px; }
.dd-cta__title { font-family: var(--display); font-size: 26px; color: var(--ink); margin: 0 0 10px; }
.dd-cta__text { font-size: 16px; color: var(--ink-variant); max-width: 460px; margin: 0 auto 24px; }

/* ============================================================
   ARCHIVE / CATÉGORIE
   ============================================================ */
.dd-archive { padding: var(--s-lg) 0 var(--section-gap); }
.dd-archive__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-lg);
  margin-bottom: var(--s-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-md);
  flex-wrap: wrap;
}
.dd-archive__title { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); color: var(--ink); margin: 10px 0 8px; }
.dd-archive__desc { font-size: 18px; color: var(--ink-variant); max-width: 640px; margin: 0; }
.dd-archive__count {
  font-size: 14px;
  color: var(--tertiary);
  background: var(--surface-container);
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.dd-archive__count .material-symbols-outlined { font-size: 18px; }

.dd-archive__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--section-gap); align-items: start; }
.dd-archive__main { min-width: 0; }

/* Sidebar + widgets */
.dd-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: var(--s-lg); }
.dd-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.dd-widget__title {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.dd-widget__title .material-symbols-outlined { color: var(--accent); }
.dd-pop { display: flex; flex-direction: column; gap: 16px; }
.dd-pop__item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; }
.dd-pop__thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.dd-pop__thumb .dd-photo { aspect-ratio: 1 / 1; height: 100%; }
.dd-pop__title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-pop__item:hover .dd-pop__title { color: var(--accent); }
.dd-pop__meta { font-size: 12px; color: var(--tertiary); margin: 4px 0 0; }

.dd-widget--newsletter { background: var(--inverse); border: none; position: relative; overflow: hidden; color: var(--on-inverse); }
.dd-widget--newsletter .dd-widget__title { color: #fff; border: none; padding: 0; margin-bottom: 6px; }
.dd-widget--newsletter .dd-widget__title .material-symbols-outlined { color: var(--surface-variant); }
.dd-widget--newsletter p { font-size: 14px; color: var(--surface-variant); margin: 0 0 14px; }
.dd-widget--newsletter .dd-newsletter { flex-direction: column; gap: 8px; max-width: none; }
.dd-widget--newsletter .dd-newsletter input[type="email"] { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; }
.dd-widget--newsletter .dd-newsletter input::placeholder { color: var(--surface-variant); }

/* Pagination */
.dd-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: var(--s-lg); flex-wrap: wrap; }
.dd-pagination .page-numbers {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-variant) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.dd-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary) !important; }
.dd-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.dd-pagination .page-numbers.dots { border: none; background: none; }

/* ============================================================
   RECHERCHE (liste de résultats)
   ============================================================ */
.dd-search-results { padding: var(--s-lg) 0 var(--section-gap); max-width: 860px; }
.dd-search-results__head { margin-bottom: var(--s-lg); }
.dd-search-results__count { font-size: 14px; color: var(--ink-variant); margin: 16px 0 0; }
.dd-search-results__count strong { color: var(--ink); }
.dd-result-list { display: flex; flex-direction: column; gap: var(--s-md); margin-top: var(--s-lg); }
.dd-result {
  display: flex;
  gap: var(--s-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}
.dd-result:hover { box-shadow: var(--shadow-card); }
.dd-result__thumb { width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.dd-result__thumb .dd-photo { aspect-ratio: 1 / 1; height: 100%; }
.dd-result__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.dd-result__title { font-family: var(--display); font-size: 17px; color: var(--ink); margin: 0; }
.dd-result:hover .dd-result__title { color: var(--accent); }
.dd-result__meta { font-size: 13px; color: var(--ink-variant); }

/* ============================================================
   PAGE / CONTACT / 404
   ============================================================ */
.dd-page { padding: var(--s-lg) 0 var(--section-gap); }
.dd-page__inner, .dd-contact__inner { max-width: var(--read); margin: 0 auto; }
.dd-page__title, .dd-contact__title { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); color: var(--ink); margin: 0 0 var(--s-lg); }
.dd-contact { padding: var(--s-lg) 0 var(--section-gap); }
.dd-contact__form { margin-top: var(--s-lg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }

.dd-404 { padding: var(--section-gap) 0; text-align: center; min-height: 50vh; }
.dd-404__code { font-family: var(--display); font-size: clamp(80px, 14vw, 140px); color: var(--accent); margin: 0; line-height: 1; }
.dd-404__msg { font-size: 18px; color: var(--ink-variant); margin: 8px 0 24px; }
.dd-404 .dd-searchform { max-width: 420px; margin: 0 auto 20px; }

/* ============================================================
   FOOTER (global, minimal — la newsletter est un bandeau de contenu)
   ============================================================ */
.dd-footer { width: 100%; background: var(--surface-low); border-top: 1px solid var(--line); }
.dd-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-lg);
  padding-top: var(--s-lg);
  padding-bottom: var(--s-lg);
  flex-wrap: wrap;
}
.dd-footer__brand-wrap { display: flex; flex-direction: column; gap: 6px; }
.dd-footer__brand { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--primary); }
.dd-footer__copyright { font-size: 15px; color: var(--ink-variant); }
.dd-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.dd-footer__nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-variant) !important;
  text-decoration: none;
}
.dd-footer__nav a:hover { color: var(--primary) !important; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dd-header__nav-wrap { display: none; }
  .dd-header__hamburger { display: inline-flex; }
  .dd-home__feature { grid-template-columns: 1fr; }
  .dd-home__secondary { flex-direction: row; }
  .dd-archive__layout { grid-template-columns: 1fr; }
  .dd-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .dd-sidebar > * { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
  .dd-grid { grid-template-columns: repeat(2, 1fr); }
  .dd-grid--2 { grid-template-columns: 1fr; }
  .dd-home__secondary { flex-direction: column; }
  .dd-sidebar { flex-direction: column; }
}
@media (max-width: 600px) {
  :root { --section-gap: 56px; }
  .dd-container { padding: 0 var(--margin-mobile); }
  .dd-header__inner { padding: 0 var(--margin-mobile); }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-single__byline { align-items: flex-start; }
  .dd-result__thumb { width: 80px; height: 80px; }
}

/* ============================================================
   ASTRA OVERRIDES — neutralise le chrome du parent et ses contraintes.
   Tout est scopé sous body.dd pour ne rien fuir si on désactive le thème.
   ⚠ Ne PAS réutiliser les classes Astra (.site-header, .entry-content, #page…)
     dans le markup du thème : elles sont masquées ci-dessous.
   ============================================================ */

body.dd {
  background: var(--bg-outer) !important;
  color: var(--ink-variant) !important;
}

/* Force le full-width sur tous les conteneurs Astra qui résistent */
body.dd #page,
body.dd #content,
body.dd .site-content,
body.dd .ast-container,
body.dd #primary,
body.dd .content-area,
body.dd .site-main,
body.dd .site-main > article,
body.dd .entry-content,
body.dd .ast-article-single,
body.dd .ast-article-post {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  background: transparent !important;
}

/* Masque le header Astra + TOUTES les bandes "above-content" (mieux vaut trop que pas assez) */
body.dd .site-header,
body.dd #masthead,
body.dd #ast-desktop-header,
body.dd #ast-mobile-header,
body.dd .ast-above-header-wrap,
body.dd .ast-below-header-wrap,
body.dd .main-header-bar-wrap,
body.dd .main-header-bar,
body.dd .ast-mobile-header-wrap,
body.dd .ast-main-header-wrap,
body.dd .ast-primary-header-bar,
body.dd .ast-secondary-header-bar,
body.dd .ast-header-breadcrumb,
body.dd .ast-breadcrumbs-wrapper,
body.dd .ast-breadcrumbs-inner,
body.dd .ast-page-header,
body.dd .ast-page-title-bar,
body.dd .entry-banner,
body.dd .ast-archive-title-wrap {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Masque le footer Astra + ses wraps internes */
body.dd .site-footer,
body.dd #colophon,
body.dd .ast-footer-overlay,
body.dd .ast-small-footer,
body.dd .site-below-footer-wrap,
body.dd .ast-above-footer,
body.dd .ast-below-footer,
body.dd .ast-footer-copyright,
body.dd .footer-widget-area {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Le titre d'entrée n'est masqué QUE sur la home (les pages internes ont besoin du leur) */
body.dd.home .entry-header,
body.dd.home .ast-archive-description {
  display: none !important;
}

/* Tue le hover bleu d'Astra sur liens et boutons */
body.dd button:hover,
body.dd button:focus { color: inherit; }
body.dd a { color: inherit; }
body.dd a:hover,
body.dd a:focus { color: inherit; }

/* Reset Astra pour les champs de formulaire qu'on re-style */
body.dd input[type="text"],
body.dd input[type="email"],
body.dd input[type="search"],
body.dd input[type="tel"],
body.dd input[type="url"],
body.dd textarea {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

/* Admin bar : pousse le header custom (sticky) sous la barre WP */
body.dd.admin-bar .dd-header { top: 32px; }
@media (max-width: 782px) {
  body.dd.admin-bar .dd-header { top: 46px; }
}

/* ============================================================
   BREVO / SENDINBLUE — intégration du formulaire newsletter
   Le plugin émet .sib_signup_form > .sib_signup_box_inside_X
   Cibler le conteneur intérieur (PAS le <form>) pour le flex.
   ============================================================ */
/* Formulaire multi-champs (email + prénom + nom + submit), rendu en colonne. */
body.dd .sib_signup_form { margin: 0; padding: 0; background: transparent; border: none; }
body.dd .dd-newsletter-band .sib_signup_form,
body.dd .dd-cta .sib_signup_form { max-width: 460px; margin: 0 auto; }
body.dd .sib_signup_form [class*="sib_signup_box_inside_"] {
  display: flex; flex-direction: column; gap: 12px; padding: 0; background: transparent; border: none; text-align: left;
}
body.dd .sib_signup_form p {
  margin: 0; display: flex; flex-direction: column; gap: 5px;
  font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--ink-variant);
}
body.dd .sib_signup_form input[type="email"],
body.dd .sib_signup_form input[type="text"] {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-family: var(--body); font-size: 15px; color: var(--ink); outline: none;
}
body.dd .sib_signup_form input[type="email"]:focus,
body.dd .sib_signup_form input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
body.dd .sib_signup_form input.sib-default-btn,
body.dd .sib_signup_form input[type="submit"] {
  width: 100%; background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  padding: 13px 24px; font-family: var(--body); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 2px;
}
body.dd .sib_signup_form input.sib-default-btn:hover,
body.dd .sib_signup_form input[type="submit"]:hover { background: var(--accent-dark); }
/* Honeypot Brevo (champ anti-spam à garder caché) */
body.dd .sib_signup_form .input--hidden,
body.dd .sib_signup_form input[name="email_address_check"] { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
body.dd .sib_msg_disp:empty { display: none; }
body.dd .sib_msg_disp { font-size: 14px; margin-top: 6px; }
body.dd .sib-alert-message-success { color: #2e7d32; }
body.dd .sib-alert-message-error { color: #c0392b; }
/* Variante fond sombre (widget sidebar « La veille Tech ») */
body.dd .dd-widget--newsletter .sib_signup_form p { color: var(--surface-variant); }
body.dd .dd-widget--newsletter .sib_signup_form input[type="email"],
body.dd .dd-widget--newsletter .sib_signup_form input[type="text"] {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff;
}
body.dd .dd-widget--newsletter .sib_signup_form input::placeholder { color: var(--surface-variant); }

/* ============================================================
   CONTACT FORM 7 / WPForms — champs "underline-only"
   ============================================================ */
body.dd .wpcf7-form p, body.dd .wpforms-field { margin: 0 0 24px; }
body.dd .wpcf7-form input[type="text"],
body.dd .wpcf7-form input[type="email"],
body.dd .wpcf7-form input[type="tel"],
body.dd .wpcf7-form textarea,
body.dd .wpforms-field input,
body.dd .wpforms-field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; font-family: var(--body); font-size: 15px; color: var(--ink);
  outline: none; box-shadow: none;
}
body.dd .wpcf7-form input:focus,
body.dd .wpcf7-form textarea:focus,
body.dd .wpforms-field input:focus,
body.dd .wpforms-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
body.dd .wpcf7-form input[type="submit"],
body.dd .wpforms-submit {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius); padding: 12px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
body.dd .wpcf7-form input[type="submit"]:hover { background: var(--accent-dark); }
