/* Accessibility fixes: improve contrast for placeholders and recent/post widgets in dark mode */
.theme-dark input::placeholder,
.theme-dark textarea::placeholder,
.theme-dark .form-control::placeholder,
.theme-dark input::-webkit-input-placeholder,
.theme-dark textarea::-webkit-input-placeholder,
.theme-dark .form-control::-webkit-input-placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}
.theme-dark input:-ms-input-placeholder,
.theme-dark textarea:-ms-input-placeholder,
.theme-dark .form-control:-ms-input-placeholder,
.theme-dark input::-ms-input-placeholder,
.theme-dark textarea::-ms-input-placeholder,
.theme-dark .form-control::-ms-input-placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Ensure recent blog / widget cards are dark with readable text */
.theme-dark .widget-area .post,
.theme-dark .widget-area .post .post-inner,
.theme-dark .post-inner,
.theme-dark .single-post .post-inner,
.theme-dark .recent-blog-card,
.theme-dark .recent-post {
  background-color: #0e0e0e !important;
  color: #ffffff !important;
}
.theme-dark .widget-area .post .post-inner ul li h4 a,
.theme-dark .widget-area .common-right-content ul li a,
.theme-dark .widget-area .post .post-inner ul li a {
  color: #e6e6e6 !important;
}
.theme-dark .widget-area .post .post-inner ul li h4 a:hover,
.theme-dark .widget-area .common-right-content ul li a:hover {
  color: #f26522 !important;
}

/* Force checkbox/agree label color in dark mode (overrides inline styles) */
.theme-dark .form-check-label,
.theme-dark .agree-label,
.theme-dark .agree-label label {
  color: #ffffff !important;
}
.theme-dark .form-check-label a,
.theme-dark .agree-label a {
  color: #f26522 !important;
}

/* Make recent blog box and cards dark in theme-dark */
.theme-dark .recent-blog-box {
  background: #0e0e0e !important;
  color: #e6e6e6 !important;
  box-shadow: none !important;
  padding: 28px !important;
}
.theme-dark .recent-blog-box h4 {
  color: #ffffff !important;
}
.theme-dark .recent-blog-card {
  margin-bottom: 24px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.theme-dark .recent-blog-content h5 {
  color: #e6e6e6 !important;
}
.theme-dark .recent-blog-content p {
  color: #bfbfbf !important;
}
.theme-dark .recent-blog-image img {
  filter: brightness(0.95) contrast(0.95);
}

/* Force descriptions in Objectifs and Valeurs sections to white in dark mode */
.theme-dark .benefit-area.two .benefit-item p,
.theme-dark .values-section .benefit-item p,
.theme-dark .benefit-item p {
  color: #ffffff !important;
}

/* Broad override for any paragraph with inline black color when dark theme is active */
body.theme-dark p[style*="color: #000"],
body.theme-dark p[style*="color:#000"],
body.theme-dark p[style*="color: #000000"],
body.theme-dark p[style*="color:#000000"],
.theme-dark p[style*="color: #000"],
.theme-dark p[style*="color:#000"],
.theme-dark p[style*="color: #000000"],
.theme-dark p[style*="color:#000000"] {
  color: #ffffff !important;
}

/* Fallback: any element with inline black color inside dark theme */
.theme-dark [style*="color: #000"],
.theme-dark [style*="color:#000"],
.theme-dark [style*="color: #000000"],
.theme-dark [style*="color:#000000"] {
  color: #ffffff !important;
}

/* Strong overrides for headings and titles in benefit/values sections */
.theme-dark .benefit-area .section-title h2,
.theme-dark .benefit-area .section-title h3,
.theme-dark .benefit-area .benefit-item h3,
.theme-dark .values-section .benefit-item h3,
.theme-dark .value-header h3,
.theme-dark .about-area .section-title h2,
.theme-dark .section-title h2,
.theme-dark .section-title h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Ensure small spans and subtitles are readable */
.theme-dark .benefit-area .sub-title,
.theme-dark .section-title .sub-title,
.theme-dark .about-span,
.theme-dark .sub-span {
  color: #e6e6e6 !important;
}

/* Increase contrast for boxed items */
.theme-dark .values-section .benefit-item,
.theme-dark .benefit-area .benefit-item,
.theme-dark .dream-item {
  background-color: rgba(255,255,255,0.02) !important;
}
