/* ============================================
   dressage-chien — Global CSS (child theme Kadence)
   Chargé sur TOUTES les pages du magazine
   Réplique header/footer de la landing statique en CSS pur
   ============================================ */

/* ---- A) Design Tokens (repris de la landing Tailwind) ---- */
:root {
  --dc-primary: #785900;          /* primary */
  --dc-on-primary: #ffffff;
  --dc-gold: #ffc107;             /* primary-container */
  --dc-on-gold: #6d5100;          /* on-primary-container */
  --dc-gold-soft: #ffdf9e;        /* primary-fixed (badges) */
  --dc-bg: #fbf9f8;               /* background / surface */
  --dc-ink: #1b1c1c;              /* on-surface */
  --dc-ink-soft: #4f4632;         /* on-surface-variant */
  --dc-surface-low: #f5f3f3;      /* surface-container-low */
  --dc-surface-high: #e4e2e1;     /* surface-container-highest */
  --dc-line: #d4c5ab;            /* outline-variant */
  --dc-secondary: #745853;

  --dc-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --dc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --dc-shadow-sm: 0 1px 3px rgba(79, 70, 50, 0.06);
  --dc-shadow-md: 0 8px 30px rgba(79, 70, 50, 0.08);
  --dc-shadow-lg: 0 20px 50px rgba(79, 70, 50, 0.10);
}

/* ============================================
   B) HEADER — réplique la navbar de la landing
   ============================================ */
.dc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 249, 248, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 197, 171, 0.25), 0 8px 40px rgba(79, 70, 50, 0.05);
  transition: box-shadow 0.3s ease;
}

.dc-header.dc-scrolled {
  box-shadow: 0 2px 24px rgba(79, 70, 50, 0.10);
}

.dc-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dc-header-desktop { padding: 0 32px; }
.dc-header-mobile  { padding: 0 24px; display: none; }

.dc-logo {
  font-family: var(--dc-serif);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--dc-primary);
  text-decoration: none;
}
.dc-logo:hover { color: var(--dc-primary); } /* neutralise le a:hover global de Kadence */

.dc-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.dc-nav-link {
  font-family: var(--dc-serif);
  font-style: italic;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--dc-ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.dc-nav-link:hover { color: var(--dc-primary); }
.dc-nav-link.is-active {
  color: var(--dc-primary);
  border-bottom-color: var(--dc-gold);
}

/* CTA mobile (retour accueil) */
.dc-cta {
  background-color: var(--dc-gold);
  color: var(--dc-on-gold);
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 9999px;
  font-family: var(--dc-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: filter 0.3s ease;
}
.dc-cta:hover { filter: brightness(1.05); color: var(--dc-on-gold); }

@media (max-width: 1023px) {
  .dc-header-desktop { display: none; }
  .dc-header-mobile  { display: flex; }
}

/* ============================================
   C) FOOTER — réplique le footer clair de la landing
   ============================================ */
.dc-footer {
  background-color: var(--dc-surface-high);
  font-family: var(--dc-serif);
  margin-top: 96px;
}

.dc-footer-rule {
  height: 1px;
  width: 100%;
  background-color: var(--dc-line);
  opacity: 0.4;
}

.dc-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 64px 32px;
  text-align: center;
}

.dc-footer-logo {
  font-family: var(--dc-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dc-primary);
  text-decoration: none;
}
.dc-footer-logo:hover { color: var(--dc-primary); }

.dc-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.dc-footer-links a {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--dc-ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}
.dc-footer-links a:hover { color: var(--dc-primary); }

.dc-footer-copy {
  margin: 0;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--dc-ink-soft);
  opacity: 0.6;
}

/* ============================================
   D) TYPO GLOBALE — titres en Newsreader, corps en Inter
   ============================================ */
body {
  font-family: var(--dc-sans);
  background-color: var(--dc-bg);
  color: var(--dc-ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dc-serif);
  letter-spacing: -0.02em;
}

/* ============================================
   E) LIENS DANS LE CONTENU DES ARTICLES
   ============================================ */
.entry-content a {
  color: var(--dc-primary);
  transition: color 0.3s ease;
}
.entry-content a:hover {
  color: var(--dc-on-gold);
}
