/*
 * Identite et integration UI chateaunews.com.
 * Direction « le poste de vigie » : encre pierre, papier, ocre et rouge du
 * chateau du logo. Logo professionnel conserve, jamais redessine.
 * Les jetons sont poses en variables locales portees par html body : aucune
 * valeur en dur dans un composant du theme.
 */
html body {
  --dn-id-ink: #202124;
  --dn-id-paper: #fffdfa;
  --dn-id-accent: #a94d1c;
  --dn-id-accent-2: #9b302d;
  --dn-id-line: #dacbb7;
  --dn-id-muted: #615f5b;
  --dn-id-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --dn-id-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

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

/* --- Pied ------------------------------------------------------------- */

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

html body .dn-id-foot__mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

html body .dn-id-brand {
  display: inline-flex;
  align-items: center;
}

html body .dn-id-brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 46px;
  min-width: 150px;
  max-width: min(230px, 60vw);
}

html body .dn-id-foot__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html body .dn-id-foot__name {
  margin: 0;
  font: 700 1.08rem/1.2 var(--dn-id-display);
  letter-spacing: -0.01em;
  color: var(--dn-id-ink);
}

html body .dn-id-foot__statement {
  margin: 0;
  font: 400 0.92rem/1.35 var(--dn-id-body);
  color: var(--dn-id-muted);
}

html body .dn-id-foot__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}

html body .dn-id-foot__sections--2 {
  margin-top: 8px;
}

html body .dn-id-foot__band--2 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--dn-id-ink) 14%, transparent);
}

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.95rem/1.3 var(--dn-id-body);
}

html body .dn-id-foot a:hover,
html body .dn-id-foot a:focus-visible {
  color: var(--dn-id-accent-2);
  text-decoration: underline;
}

html body .dn-id-foot a:focus-visible,
html body .dn-id-foot button:focus-visible {
  outline: 2px solid var(--dn-id-accent);
  outline-offset: 2px;
}

html body .dn-id-foot__ads {
  margin: 0;
  max-width: 34rem;
  font: 400 0.95rem/1.45 var(--dn-id-body);
  color: var(--dn-id-ink);
}

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: 18px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--dn-id-ink) 10%, transparent);
  font: 400 0.82rem/1.45 var(--dn-id-body);
  color: var(--dn-id-muted);
}

html body .dn-id-foot__base button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Pages internes --------------------------------------------------- */

html body .dn-id-kicker {
  margin: 0 0 8px;
  font: 700 0.75rem/1.2 var(--dn-id-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dn-id-accent);
}

html body .dn-id-page__head h1 {
  margin: 0 0 18px;
  font: 700 2rem/1.15 var(--dn-id-display);
}

html body .dn-id-page__body h3 {
  font-family: var(--dn-id-display);
}

/*
 * Pont de survol du mega-menu desktop.
 *
 * Le theme sert le panneau 6 px sous le bas du declencheur. Quand le curseur
 * traverse ce vide, le `li:hover` tombe, le panneau repasse en
 * `pointer-events:none` et le clic ne part plus. Le pseudo-element couvre
 * exactement ce vide, sans agrandir ni deplacer le panneau, et n'existe que
 * sur les items mega-menu desktop (le header desktop est masque sous 941 px).
 */
html body .navigation .menu > li.item-mega-menu > .sub-menu.mega-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  pointer-events: auto;
}

/*
 * Rail publicitaire d'article : present et dimensionne, mais strictement
 * neutre. Aucun fond, bordure ou placeholder perceptible.
 */
html body .dn-article-rail,
html body .dn-article-rail__slot {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/*
 * Formulaires de confiance : jamais une colonne intermediaire collee a
 * gauche. Centre a marges symetriques, ou pleine largeur du conteneur.
 */
html body .dn-trust__form,
html body .dn-trust form,
html body .wpforms-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

html body .dn-trust__form input,
html body .dn-trust__form textarea,
html body .dn-trust__form select,
html body .dn-trust form input,
html body .dn-trust form textarea,
html body .wpforms-container input,
html body .wpforms-container textarea {
  min-height: 44px;
  font-size: 1rem;
}

@media (max-width: 720px) {
  html body .dn-id-brand img {
    min-width: 132px;
    max-width: 62vw;
  }

  html body .dn-id-foot__band--2 {
    justify-content: flex-start;
  }

  html body .dn-trust__form,
  html body .dn-trust form,
  html body .wpforms-container {
    max-width: 100%;
  }
}
