/* ── Dark theme global ── */
body,
.ast-article-inner,
.site-content,
.ast-container {
  background-color: #0f1120 !important;
  color: #e2e8f0 !important;
}

/* Header */
#masthead,
.site-header,
.main-header-bar {
  background-color: #0f1120 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Nav links */
.main-header-menu .menu-link,
.ast-header-custom-item a {
  color: #e2e8f0 !important;
}
.main-header-menu .menu-link:hover {
  color: #85B7EB !important;
}

/* Logo / site title */
.site-title a, .site-title {
  color: #ffffff !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #f1f5f9 !important;
}

/* Body text */
p, li, span {
  color: #cbd5e1 !important;
}

/* Cards / groupes avec bordure */
.wp-block-group[style*="border"] {
  background-color: #1a2035 !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* Sections alternées */
.wp-block-group.alignfull:not(.has-contrast-background-color):not(.has-background) {
  background-color: #0f1120 !important;
}

/* Section "Retrouvez-moi" déjà dark — on affine */
.has-contrast-background-color {
  background-color: #1a1a2e !important;
}

/* Footer */
#colophon,
.site-footer,
.footer-bar-wrap {
  background-color: #0a0d1a !important;
  color: #94a3b8 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}
.site-footer a, #colophon a {
  color: #85B7EB !important;
}

/* Liens globaux */
a { color: #85B7EB !important; }
a:hover { color: #ffffff !important; }

/* Séparateurs */
.wp-block-separator {
  border-color: rgba(255,255,255,0.1) !important;
}

/* Boutons outline sur fond sombre */
.wp-element-button {
  border-color: rgba(255,255,255,0.4) !important;
  color: #ffffff !important;
}
.wp-element-button:hover {
  background-color: rgba(255,255,255,0.1) !important;
}

/* Titre de page Astra (banner) */
.ast-archive-description,
.ast-breadcrumbs-wrap,
.entry-title {
  color: #f1f5f9 !important;
}

/* Labels du formulaire Jetpack en blanc */
.wp-block-jetpack-contact-form label,
.grunion-field-label,
.contact-form label {
  color: #ffffff !important;
}

/* Hauteur du champ Message réduite */
.contact-form textarea,
.wp-block-jetpack-contact-form textarea {
  min-height: 120px !important;
  height: 120px !important;
}

.wp-block-cover__image-background {
  object-position: 50% 20% !important;
}

/* Renforcement overlay hero pour lisibilité du texte */
.wp-block-cover.alignfull::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,17,32,0.55) 0%,
    rgba(15,17,32,0.35) 40%,
    rgba(15,17,32,0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.wp-block-cover.alignfull .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.wp-block-cover.alignfull h1,
.wp-block-cover.alignfull p,
.wp-block-cover.alignfull .wp-block-button__link {
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

