/**
 * Corrections visuelles ASdeco — lisibilité et charte graphique
 * Charte : doré #a68346, sombre #232323, texte #333, secondaire #555
 */

/* ===== FOND CLAIR — texte sombre ===== */

.themetechmount-bgcolor-white, .themetechmount-bgcolor-grey,
.themetechmount-bg-color-white, .themetechmount-bg-color-grey,
section[class*="bgcolor-white"], section[class*="bgcolor-grey"] { color: #333 !important; }

.themetechmount-bgcolor-white h1, .themetechmount-bgcolor-white h2, .themetechmount-bgcolor-white h3,
.themetechmount-bgcolor-white h4, .themetechmount-bgcolor-white h5, .themetechmount-bgcolor-white h6,
.themetechmount-bgcolor-grey h1, .themetechmount-bgcolor-grey h2, .themetechmount-bgcolor-grey h3,
.themetechmount-bgcolor-grey h4, .themetechmount-bgcolor-grey h5, .themetechmount-bgcolor-grey h6 { color: #232323 !important; }

.themetechmount-bgcolor-white p, .themetechmount-bgcolor-white span,
.themetechmount-bgcolor-white li, .themetechmount-bgcolor-white a:not(.themetechmount-btn),
.themetechmount-bgcolor-grey p, .themetechmount-bgcolor-grey span,
.themetechmount-bgcolor-grey li, .themetechmount-bgcolor-grey a:not(.themetechmount-btn) { color: #333 !important; }

/* ===== OVERLAYS — renforcer contraste sur images de fond ===== */

.elementor-background-overlay { background-color: rgba(35, 35, 35, 0.55) !important; }

.tm-titlebar-wrapper.tm-bgimage-yes { position: relative; }
.tm-titlebar-wrapper.tm-bgimage-yes::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(35, 35, 35, 0.5); z-index: 0;
}
.tm-titlebar-wrapper.tm-bgimage-yes > * { position: relative; z-index: 1; }

/* Texte blanc sur image — ombre portée pour lisibilité */
.tm-textcolor-white h1, .tm-textcolor-white h2, .tm-textcolor-white h3,
.tm-textcolor-white h4, .tm-textcolor-white p, .tm-textcolor-white span,
.tm-textcolor-white a, .tm-textcolor-white li {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

/* Sections avec colonnes étirées (image de fond visible) — overlay */
.elementor-section.tm-col-stretched-both { position: relative; }
.elementor-section.tm-col-stretched-both::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(35, 35, 35, 0.5);
  z-index: 0; pointer-events: none;
}
.elementor-section.tm-col-stretched-both > .elementor-container {
  position: relative; z-index: 1;
}

/* ===== ELEMENTOR — sections SANS image de fond ===== */

.elementor-section:not(.tm-bgcolor-darkgrey):not([data-settings*="background_background"]) .elementor-widget-text-editor,
.elementor-section:not(.tm-bgcolor-darkgrey):not([data-settings*="background_background"]) .elementor-widget-container p,
.elementor-section:not(.tm-bgcolor-darkgrey):not([data-settings*="background_background"]) .elementor-widget-container span { color: #333; }

.elementor-section:not(.tm-bgcolor-darkgrey):not(.tm-textcolor-white):not([data-settings*="background_background"]) .elementor-heading-title { color: #232323; }

/* ===== THÈME INOTERIOR — titres et boîtes (hors sections texte blanc) ===== */

:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-fid-title,
:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-fid-description,
:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-fid-contents,
:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-box-title h3,
:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-box-title h4 { color: #232323 !important; }

:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-box-desc,
:not(.tm-textcolor-white) > .elementor-widget-wrap .themetechmount-box-content { color: #555 !important; }

/* Serviceboxes sur fond image — fond semi-opaque pour lisibilité */
.elementor-section[data-settings*="background_background"] .tm-servicebox-detials,
.tm-textcolor-white .tm-servicebox-detials {
  background: rgba(35, 35, 35, 0.75) !important;
  padding: 20px !important;
  border-radius: 4px;
}

.elementor-section[data-settings*="background_background"] .themetechmount-box-title h4,
.elementor-section[data-settings*="background_background"] .themetechmount-box-title h4 a,
.elementor-section[data-settings*="background_background"] .themetechmount-box-desc,
.elementor-section[data-settings*="background_background"] .themetechmount-box-desc p,
.elementor-section[data-settings*="background_background"] .tm-short-desc,
.elementor-section[data-settings*="background_background"] .tm-short-desc p,
.elementor-section[data-settings*="background_background"] .themetechmount-serviceboxbox-readmore a,
.tm-textcolor-white .themetechmount-box-title h4,
.tm-textcolor-white .themetechmount-box-title h4 a,
.tm-textcolor-white .themetechmount-box-desc,
.tm-textcolor-white .themetechmount-box-desc p,
.tm-textcolor-white .tm-short-desc,
.tm-textcolor-white .tm-short-desc p,
.tm-textcolor-white .themetechmount-serviceboxbox-readmore a {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Titres prestations dans sections étirées avec image de fond */
.elementor-section.tm-col-stretched-both .tm-element-subheading,
.elementor-section.tm-col-stretched-both .tm-element-content-heading,
.tm-textcolor-white .tm-element-subheading,
.tm-textcolor-white .tm-element-content-heading {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* ===== RÉALISATIONS ===== */

.themetechmount-portfolio-single-content, .themetechmount-portfolio-single-content p,
.themetechmount-portfolio-single-content span, .themetechmount-portfolio-single-content li,
.tm-portfolio-description, .tm-portfolio-description p,
.tm-portfolio-description span, .tm-portfolio-description li { color: #333 !important; line-height: 1.7 !important; }

.themetechmount-portfolio-single-content h1, .themetechmount-portfolio-single-content h2,
.themetechmount-portfolio-single-content h3, .themetechmount-portfolio-single-content h4,
.tm-portfolio-description h1, .tm-portfolio-description h2,
.tm-portfolio-description h3, .tm-portfolio-description h4 { color: #232323 !important; }

.themetechmount-portfolio-title a, .themetechmount-portfolio-title,
.tm-portfolio-title a, .tm-portfolio-title { color: #232323 !important; }

.themetechmount-portfolio-category, .themetechmount-portfolio-category a,
.tm-portfolio-category, .tm-portfolio-category a { color: #a68346 !important; }

/* ===== CONTENU WORDPRESS ===== */

.entry-content, .entry-content p, .entry-content span, .entry-content li, .entry-content td,
.tm_portfolio-root .entry-content, .tm_portfolio-root .entry-content p,
.page .entry-content, .page .entry-content p { color: #333 !important; }

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5 { color: #232323 !important; }

/* ===== SECTIONS SOMBRES — texte blanc UNIQUEMENT avec overlay/image ===== */
/* Note : sur ce site, tm-bgcolor-darkgrey = fond BLANC (thème customisé) */
/* Texte blanc uniquement dans les sections qui ont un overlay sombre */

.tm-bgcolor-darkgrey[data-settings*="background_background"],
.tm-bgcolor-darkgrey[data-settings*="background_background"] p,
.tm-bgcolor-darkgrey[data-settings*="background_background"] span,
.tm-bgcolor-darkgrey[data-settings*="background_background"] a,
.tm-bgcolor-darkgrey[data-settings*="background_background"] h1,
.tm-bgcolor-darkgrey[data-settings*="background_background"] h2,
.tm-bgcolor-darkgrey[data-settings*="background_background"] h3,
.tm-bgcolor-darkgrey[data-settings*="background_background"] h4 { color: #f8f8f8 !important; }

/* Sections tm-bgcolor-darkgrey SANS image de fond — texte sombre */
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]),
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) p,
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) span,
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) a,
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) h1,
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) h2,
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) h3,
.tm-bgcolor-darkgrey:not([data-settings*="background_background"]) h4 { color: #333 !important; }

.themetechmount-bgcolor-skincolor, .themetechmount-bgcolor-skincolor p,
.themetechmount-bgcolor-skincolor span, .themetechmount-bgcolor-skincolor a,
.themetechmount-bgcolor-skincolor h1, .themetechmount-bgcolor-skincolor h2,
.themetechmount-bgcolor-skincolor h3 { color: #fff !important; }

.elementor-section[style*="background-color: rgb(35"],
.elementor-section[style*="background-color:#232323"],
.elementor-section[style*="background-color: #232323"] { color: #f8f8f8 !important; }

.elementor-section[style*="background-color: rgb(35"] p,
.elementor-section[style*="background-color: rgb(35"] h1,
.elementor-section[style*="background-color: rgb(35"] h2,
.elementor-section[style*="background-color: rgb(35"] h3,
.elementor-section[style*="background-color: rgb(35"] h4,
.elementor-section[style*="background-color: rgb(35"] span { color: #f8f8f8 !important; }

/* ===== FOOTER ===== */

footer, footer p, footer a, footer span, footer li,
.themetechmount-footer-widget-area, .themetechmount-footer-widget-area p,
.themetechmount-footer-widget-area a, .themetechmount-footer-widget-area span { color: #ccc !important; }

footer h1, footer h2, footer h3, footer h4, footer h5,
.themetechmount-footer-widget-area h1, .themetechmount-footer-widget-area h2,
.themetechmount-footer-widget-area h3, .themetechmount-footer-widget-area h4 { color: #fff !important; }

/* ===== LIENS ===== */

a:hover { color: #a68346 !important; }
.themetechmount-bgcolor-white a:hover, .themetechmount-bgcolor-grey a:hover { color: #8a6c3a !important; }
.themetechmount-btn-color-skincolor { background-color: #a68346 !important; color: #fff !important; }
.themetechmount-btn-color-skincolor:hover { background-color: #8a6c3a !important; color: #fff !important; }

/* ===== BREADCRUMB ===== */

.themetechmount-breadcrumb-inner, .themetechmount-breadcrumb-inner a,
.themetechmount-breadcrumb-inner span { color: #f8f8f8 !important; }

/* ===== FORMULAIRE ET WIDGETS ===== */

.wpcf7 input, .wpcf7 textarea, .wpcf7 select { color: #333 !important; border-color: #ccc !important; }
.wpcf7 label { color: #333 !important; }
.widget, .widget p, .widget span, .widget a, .widget li { color: #333 !important; }
.widget h1, .widget h2, .widget h3, .widget h4 { color: #232323 !important; }
