/* Identite DB Design, direction "l'index de studio". Palette approuvee. */
html body {
  --dn-id-ink: #302a27;
  --dn-id-paper: #fffdfa;
  --dn-id-paper-soft: #f4eee8;
  --dn-id-accent: #a55742;
  --dn-id-accent-2: #51796c;
  --dn-id-muted: #6f635c;
  --dn-id-line: #d8ccc2;
  --dn-id-display: Georgia, "Times New Roman", serif;
  --dn-id-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --dn-id-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

html body .dn-id-foot,
html body .dn-id-page,
html body .dn-db,
html body .dn-db-archive,
html body .dn-db-article {
  color: var(--dn-id-ink);
  background: var(--dn-id-paper);
  font-family: var(--dn-id-body);
}

html body .dn-db h1,
html body .dn-db h2,
html body .dn-db h3,
html body .dn-db-archive h1,
html body .dn-db-archive h2,
html body .dn-db-article h1,
html body .dn-id-page h1 {
  font-family: var(--dn-id-display);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
}

html body .dn-db-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Etiquettes de discipline : petites capitales de registre. */
html body .dn-db-cat {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--dn-id-accent);
  font: 700 0.72rem/1.2 var(--dn-id-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

html body .dn-db-byline,
html body .dn-article-byline,
html body .dn-db-archive .dn-meta,
html body .dn-db-article .dn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 0.55rem;
  margin: 8px 0 0;
  color: var(--dn-id-muted);
  font: 400 0.8125rem/1.45 var(--dn-id-body);
}

html body .dn-db-byline a,
html body .dn-article-author {
  color: var(--dn-id-ink);
  text-decoration: none;
}

html body .dn-db-sep {
  color: var(--dn-id-muted);
}

/* --- Une : projet de une + paire d'appuis --- */
html body .dn-db-headline {
  padding: 30px 0 10px;
}

html body .dn-db-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.85fr);
  gap: 24px 32px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dn-id-ink);
}

html body .dn-db-lead__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dn-id-paper-soft);
}

html body .dn-db-lead__media img,
html body .dn-db-pair__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html body .dn-db-lead h2 {
  margin: 0 0 12px;
  font: 700 2.15rem/1.14 var(--dn-id-display);
}

html body .dn-db-chapo {
  margin: 0;
  font: 400 1.05rem/1.55 var(--dn-id-body);
  color: var(--dn-id-ink);
}

html body .dn-db-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

html body .dn-db-pair__card {
  min-width: 0;
}

html body .dn-db-pair__media {
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--dn-id-paper-soft);
}

html body .dn-db-pair h3 {
  margin: 0;
  font: 700 1.1rem/1.28 var(--dn-id-display);
}

/* --- Index numerote des disciplines --- */
html body .dn-db-index {
  margin: 40px auto 8px;
}

html body .dn-db-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--dn-id-ink);
}

html body .dn-db-section-head h2 {
  margin: 0;
  font: 700 1.4rem/1.2 var(--dn-id-display);
}

html body .dn-db-section-note {
  margin: 0;
  color: var(--dn-id-muted);
  font: 400 0.9rem/1.4 var(--dn-id-body);
}

html body .dn-db-index__list,
html body .dn-db-stream__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

html body .dn-db-index__row {
  display: grid;
  grid-template-columns: 3.4rem minmax(7rem, 12rem) 8.5rem minmax(0, 1fr);
  gap: 8px 18px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--dn-id-line);
}

html body .dn-db-index__row:first-child {
  border-top: 0;
}

html body .dn-db-index__num,
html body .dn-db-stream__num {
  color: var(--dn-id-accent);
  font: 700 0.95rem/1.3 var(--dn-id-mono);
  font-variant-numeric: tabular-nums;
}

html body .dn-db-index__name {
  color: var(--dn-id-ink);
  font: 700 1.25rem/1.25 var(--dn-id-display);
  text-decoration: none;
}

html body .dn-db-index__count {
  color: var(--dn-id-muted);
  font: 400 0.82rem/1.4 var(--dn-id-body);
  white-space: nowrap;
}

html body .dn-db-index__latest {
  color: var(--dn-id-muted);
  font: 400 0.95rem/1.4 var(--dn-id-body);
  text-decoration: none;
}

/* --- Fil des dernieres entrees --- */
html body .dn-db-stream {
  margin: 36px auto 44px;
}

html body .dn-db-stream__row {
  display: grid;
  grid-template-columns: 3.4rem 7.5rem minmax(6rem, 9rem) minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--dn-id-line);
}

html body .dn-db-stream__row time {
  color: var(--dn-id-muted);
  font: 400 0.8125rem/1.45 var(--dn-id-body);
}

html body .dn-db-stream__title {
  color: var(--dn-id-ink);
  font: 400 1.02rem/1.4 var(--dn-id-body);
  text-decoration: none;
}

html body .dn-id-foot--dbdesign {
  border-top: 3px solid var(--dn-id-accent);
  padding: 30px 0 20px;
}

html body .dn-id-foot__band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  justify-content: space-between;
}

html body .dn-id-foot__band--2 {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dn-id-line);
}

html body .dn-id-brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  min-width: 180px;
  max-width: min(280px, 70vw);
}

html body .dn-id-foot__sections,
html body .dn-id-foot__house,
html body .dn-id-foot__base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

html body .dn-id-foot a {
  color: var(--dn-id-ink);
  text-decoration: none;
  font: 600 0.92rem/1.3 var(--dn-id-body);
}

html body .dn-id-foot a:hover,
html body .dn-id-foot a:focus-visible {
  text-decoration: underline;
}

html body .dn-id-foot__ads {
  margin: 0;
  max-width: 38rem;
  font: 400 0.92rem/1.45 var(--dn-id-body);
}

html body .dn-id-foot__ads strong {
  display: block;
  font-family: var(--dn-id-display);
  color: var(--dn-id-ink);
}

html body .dn-id-foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 20px;
  font: 400 0.8rem/1.4 var(--dn-id-body);
}

/* --- Pages de confiance --- */
html body .dn-id-page__head {
  padding: 30px 0 10px;
}

html body .dn-id-page__head h1 {
  margin: 10px 0 20px;
  font: 700 2.05rem/1.16 var(--dn-id-display);
}

html body .dn-id-page__body {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font: 400 1.05rem/1.68 var(--dn-id-body);
}

html body .dn-id-page--wide .dn-id-page__body {
  max-width: 1180px;
}

/* --- Archives, auteur, equipe --- */
html body .dn-db-archive .dn-archive-card__body,
html body .dn-db-archive .dn-team-card__body {
  padding: 24px;
}

html body .dn-db-archive .dn-archive-description {
  max-width: 42rem;
}

html body .dn-breadcrumb {
  margin: 0 0 12px;
  font: 400 0.8rem/1.45 var(--dn-id-body);
}

html body .dn-breadcrumb a {
  color: var(--dn-id-ink);
}

html body .dn-archive-hero,
html body .dn-team-hero,
html body .dn-author-hero {
  padding: 26px 0 12px;
}

html body .dn-archive-section,
html body .dn-team-grid {
  margin-top: 12px;
}

html body .dn-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

html body .dn-team-card {
  border: 1px solid var(--dn-id-line);
  background: var(--dn-id-paper);
}

html body .dn-team-card__link,
html body .dn-team-card h2 a,
html body .dn-archive-card h2 a,
html body .dn-db-stream__title,
html body .dn-db-index__latest {
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
}

/* --- Article : colonne de lecture et rail vide neutre --- */
html body .dn-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px 40px;
  align-items: start;
}

html body .dn-article-content {
  font-size: 1.125rem;
  line-height: 1.68;
  max-width: 42rem;
}

html body .dn-article-rail__slot,
html body [data-dn-ad-slot] {
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
}

/* --- Etats hover et focus coherents sur tous les cliquables --- */
html body .dn-breadcrumb a:hover,
html body .dn-article-author:hover,
html body .dn-db-byline a:hover,
html body .dn-id-foot--dbdesign a:hover {
  color: var(--dn-id-muted);
  text-decoration: underline;
}

html body .dn-db-cat:hover,
html body .dn-db-index__name:hover,
html body .dn-db-index__latest:hover,
html body .dn-db-stream__title:hover,
html body .dn-db-pair h3 a:hover,
html body .dn-archive-card h2 a:hover,
html body .dn-team-card h2 a:hover,
html body .dn-team-card__link:hover {
  color: var(--dn-id-accent);
  text-decoration: underline;
}

html body a.ts-button:hover {
  color: var(--dn-id-paper) !important;
  background: var(--dn-id-ink) !important;
  border-color: var(--dn-id-ink) !important;
}

html body .dn-pagination a:hover,
html body .dn-pagination .page-numbers:hover {
  color: var(--dn-id-paper);
  background: var(--dn-id-ink);
  border-color: var(--dn-id-ink);
}

html body .spc-social a:hover {
  opacity: 0.72;
}

html body .dn-breadcrumb a:focus-visible,
html body .dn-article-author:focus-visible,
html body .dn-db-byline a:focus-visible,
html body .dn-id-foot--dbdesign a:focus-visible,
html body a.ts-button:focus-visible,
html body .dn-pagination a:focus-visible,
html body .dn-pagination .page-numbers:focus-visible,
html body .spc-social a:focus-visible,
html body .dn-db-cat:focus-visible,
html body .dn-db-index__name:focus-visible,
html body .dn-db-stream__title:focus-visible,
html body .dn-archive-card h2 a:focus-visible,
html body .dn-team-card h2 a:focus-visible,
html body .dn-team-card__link:focus-visible {
  outline: 2px solid var(--dn-id-ink);
  outline-offset: 2px;
}

/* Palette approuvee : les racines servies ne derivent pas vers un autre brun. */
html body .dn-home,
html body .dn-db,
html body .dn-db-archive,
html body .dn-db-article,
html body .dn-id-page,
html body .dn-id-foot,
html body .dn-home h1,
html body .dn-home h2,
html body .dn-home h3,
html body .dn-db-sr {
  color: var(--dn-id-ink) !important;
}

/* Formulaires : centrage a marges symetriques sur conteneur editorial. */
html body .dn-trust .dn-contact,
html body .dn-id-page__body .dn-contact {
  grid-column: 1 / -1 !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
  display: block !important;
  width: 100% !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body .dn-contact-form {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Contrat vertical_rhythm et lisibilite : tailles utiles. */
html body .dn-id-foot__base {
  font-size: 14px;
}

html body .dn-id-foot__base a,
html body .dn-id-foot button,
html body .dn-id-foot [data-dn-open-consent],
html body .dn-id-foot__sections a,
html body .dn-id-foot__house a,
html body .dn-id-foot__ads a {
  font-size: 14px;
}

html body .dn-breadcrumb,
html body .dn-db-byline,
html body .dn-db-byline a,
html body .dn-archive-count {
  font-size: 13px;
}

html body .dn-id-foot .dn-id-brand {
  font-size: 14px;
}

/* Partage d'article : liens reels, etats hover et focus visibles. */
html body .dn-db-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--dn-id-line);
}

html body .dn-db-share__label {
  color: var(--dn-id-muted);
  font: 700 0.72rem/1.2 var(--dn-id-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html body .dn-db-share a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--dn-id-line);
  border-radius: 0;
  color: var(--dn-id-ink);
  background: var(--dn-id-paper);
  font: 600 0.8125rem/1.2 var(--dn-id-body);
  text-decoration: none;
}

html body .dn-db-share a:hover {
  color: var(--dn-id-paper) !important;
  background: var(--dn-id-ink) !important;
  border-color: var(--dn-id-ink) !important;
}

html body .dn-db-share a:focus-visible {
  outline: 2px solid var(--dn-id-ink);
  outline-offset: 2px;
}

/* Embeds : pas d'aplat vide, lien de repli lisible. */
html body .dn-db-embed,
html body figure.wp-block-embed,
html body figure.wp-block-embed-youtube,
html body .fluid-width-video-wrapper {
  overflow: visible !important;
  aspect-ratio: auto !important;
  min-height: 0;
  background: var(--dn-id-paper) !important;
  padding: 0 0 4px;
}

html body figure.wp-block-embed iframe,
html body figure.wp-block-embed-youtube iframe {
  display: block;
  width: 100%;
  max-height: 360px;
}

html body .dn-db-embed__link {
  margin: 8px 0 0;
  font: 600 0.9rem/1.4 var(--dn-id-body);
}

/* Reserve la boite des visuels ranksource pour supprimer le reflow. */
html body .dn-trust__marketplace-logo {
  display: flex;
  align-items: center;
  min-height: 24px;
}

html body .dn-trust__marketplace-logo img {
  aspect-ratio: 1200 / 153;
  height: auto;
}

@media (max-width: 1024px) {
  html body .dn-db-lead,
  html body .dn-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .dn-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body .dn-db-index__row {
    grid-template-columns: 3rem minmax(6rem, 10rem) minmax(0, 1fr);
  }
  html body .dn-db-index__latest {
    grid-column: 2 / -1;
  }
  html body .dn-db-stream__row {
    grid-template-columns: 3rem 7rem minmax(0, 1fr);
  }
  html body .dn-db-stream__title {
    grid-column: 3 / -1;
  }
}

@media (max-width: 720px) {
  html body .dn-id-brand img {
    min-width: 160px;
    max-width: 72vw;
  }
  html body .dn-id-foot__band {
    justify-content: flex-start;
  }
  html body .dn-db-lead h2 {
    font-size: 1.6rem;
  }
  html body .dn-db-pair,
  html body .dn-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .dn-db-index__row,
  html body .dn-db-stream__row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 4px 12px;
  }
  html body .dn-db-index__count,
  html body .dn-db-index__latest,
  html body .dn-db-stream__row time,
  html body .dn-db-stream__title {
    grid-column: 2 / -1;
  }
  html body .dn-db-archive .dn-archive-card__body,
  html body .dn-db-archive .dn-team-card__body {
    padding: 18px;
  }
}

/* Pages commerciales : conteneur editorial large pour le bloc ranksource. */
html body .dn-id-page__body:has(.dn-trust--contact),
html body .dn-id-page__body:has(.dn-trust--advertising) {
  max-width: 1180px;
}
