/**
 * ecoplus67.fr - Feuille de style unifiée et autonome
 * 
 * Basée sur l'identité visuelle historique Zerif Lite et la grille Bootstrap 3.
 * ZÉRO dépendance externe (Google Fonts ou CDN).
 * Palette verte EcoPlus : #3AA935 / #2E8B2A.
 */

/* ==========================================================================
   1. POLICES LOCALES (@font-face)
   ========================================================================== */

/* Lato - Light (300) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Lato - Regular (400) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Lato - Italic (400) */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Lato - Bold (700) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat - Regular (400) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat - Bold (700) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* FontAwesome 4.7 */
@font-face {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../fonts/fontawesome-webfont.woff2') format('woff2');
}

/* ==========================================================================
   2. RESET ET VARIABLES GLOBALES
   ========================================================================== */

:root {
  --color-primary: #3aa935;
  --color-primary-hover: #2e8b2a;
  --color-primary-light: rgba(58, 169, 53, 0.1);
  --color-primary-trans: rgba(58, 169, 53, 0.7);
  --color-dark: #272727;
  --color-text: #404040;
  --color-muted: #777777;
  --color-light-bg: #f9f9f9;
  --color-border: #e2e8f0;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Montserrat', Helvetica, Arial, sans-serif;
  --nav-height: 75px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Fond maison personnalisé pour le site */
body.custom-background {
  background-image: url("../img/maison_modifiee-scaled.webp");
  background-position: left top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

::selection {
  background: var(--color-primary) !important;
  color: #fff !important;
}

::-moz-selection {
  background: var(--color-primary) !important;
  color: #fff !important;
}

/* ==========================================================================
   3. TYPOGRAPHIE ET ELEMENTS DE BASE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
  margin-top: 20px;
  margin-bottom: 10px;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.0em; }
h6 { font-size: 0.9em; }

p {
  margin: 0 0 15px;
  line-height: 1.85em;
}

strong, b {
  font-weight: 700;
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--color-primary-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 15px;
}

blockquote {
  padding: 10px 20px;
  margin: 0 0 20px;
  font-size: 1.1em;
  border-left: 5px solid var(--color-primary);
  background: #fdfdfd;
}

.alignright {
  float: right;
  margin: 0 0 15px 20px;
}

.alignleft {
  float: left;
  margin: 0 20px 15px 0;
}

.aligncenter {
  display: block;
  margin: 15px auto;
  text-align: center;
}

.check {
  font-size: 1.4em;
  margin-right: 0.5em;
  color: var(--color-primary);
  font-weight: bold;
}

.white-text { color: #fff !important; }
.dark-text { color: var(--color-dark) !important; }
.green-text { color: var(--color-primary) !important; }

/* ==========================================================================
   4. GRILLE BOOTSTRAP 3 & UTILITAIRES
   ========================================================================== */

.container,
.container-fluid {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.clearfix:before,
.clearfix:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after,
.row:before,
.row:after,
.clear:before,
.clear:after {
  content: " ";
  display: table;
}

.clearfix:after,
.container:after,
.container-fluid:after,
.row:after,
.clear:after {
  clear: both;
}

.clear {
  clear: both;
}

.pull-left { float: left !important; }
.pull-right { float: right !important; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
.skip-link:focus {
  top: 10px;
  left: 10px;
  z-index: 10001;
  background: #fff;
  padding: 8px 14px;
  color: var(--color-primary);
  font-weight: bold;
  border: 2px solid var(--color-primary);
}

/* Colonnes grille standard */
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
  float: left;
}
.col-xs-12 { width: 100%; }
.col-xs-11 { width: 91.66666667%; }
.col-xs-10 { width: 83.33333333%; }
.col-xs-9  { width: 75%; }
.col-xs-8  { width: 66.66666667%; }
.col-xs-7  { width: 58.33333333%; }
.col-xs-6  { width: 50%; }
.col-xs-5  { width: 41.66666667%; }
.col-xs-4  { width: 33.33333333%; }
.col-xs-3  { width: 25%; }
.col-xs-2  { width: 16.66666667%; }
.col-xs-1  { width: 8.33333333%; }

@media (min-width: 768px) {
  .container { width: 750px; }
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    float: left;
  }
  .col-sm-12 { width: 100%; }
  .col-sm-11 { width: 91.66666667%; }
  .col-sm-10 { width: 83.33333333%; }
  .col-sm-9  { width: 75%; }
  .col-sm-8  { width: 66.66666667%; }
  .col-sm-7  { width: 58.33333333%; }
  .col-sm-6  { width: 50%; }
  .col-sm-5  { width: 41.66666667%; }
  .col-sm-4  { width: 33.33333333%; }
  .col-sm-3  { width: 25%; }
  .col-sm-2  { width: 16.66666667%; }
  .col-sm-1  { width: 8.33333333%; }
}

@media (min-width: 992px) {
  .container { width: 970px; }
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    float: left;
  }
  .col-md-12 { width: 100%; }
  .col-md-11 { width: 91.66666667%; }
  .col-md-10 { width: 83.33333333%; }
  .col-md-9  { width: 75%; }
  .col-md-8  { width: 66.66666667%; }
  .col-md-7  { width: 58.33333333%; }
  .col-md-6  { width: 50%; }
  .col-md-5  { width: 41.66666667%; }
  .col-md-4  { width: 33.33333333%; }
  .col-md-3  { width: 25%; }
  .col-md-2  { width: 16.66666667%; }
  .col-md-1  { width: 8.33333333%; }
}

@media (min-width: 1200px) {
  .container { width: 1170px; }
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
  .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    float: left;
  }
  .col-lg-12 { width: 100%; }
  .col-lg-11 { width: 91.66666667%; }
  .col-lg-10 { width: 83.33333333%; }
  .col-lg-9  { width: 75%; }
  .col-lg-8  { width: 66.66666667%; }
  .col-lg-7  { width: 58.33333333%; }
  .col-lg-6  { width: 50%; }
  .col-lg-5  { width: 41.66666667%; }
  .col-lg-4  { width: 33.33333333%; }
  .col-lg-3  { width: 25%; }
  .col-lg-2  { width: 16.66666667%; }
  .col-lg-1  { width: 8.33333333%; }
}

/* ==========================================================================
   5. FONTAWESOME 4.7 ICONES
   ========================================================================== */

.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-facebook:before { content: "\f09a"; }
.fa-times:before { content: "\f00d"; }
.fa-bars:before { content: "\f0c9"; }
.fa-check:before { content: "\f00c"; }
.fa-phone:before { content: "\f095"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-map-marker:before { content: "\f041"; }
.fa-angle-down:before { content: "\f107"; }
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }

.glyphicon-chevron-left:before { content: "\f053"; font-family: 'FontAwesome'; }
.glyphicon-chevron-right:before { content: "\f054"; font-family: 'FontAwesome'; }

/* ==========================================================================
   6. EN-TETE & NAVIGATION (#main-nav)
   ========================================================================== */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: var(--nav-height);
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 1.5px 5px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

#main-nav .container {
  padding: 0 5px;
}

.navbar-header {
  float: left;
}

.navbar-brand {
  display: inline-block;
  width: 250px;
  height: 76px;
  padding: 7px 15px;
  line-height: 55px;
  margin-left: -15px;
}

.navbar-brand a {
  display: block;
}

.navbar-brand a img,
.navbar-brand img {
  width: auto;
  max-height: 55px;
  max-width: 100%;
}

/* Bouton burger mobile */
.navbar-toggle {
  display: none;
  float: right;
  margin-top: 18px;
  padding: 9px 10px;
  background-color: #ffffff;
  border: 1px solid rgba(58, 169, 53, 0.6);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--color-primary);
  margin-top: 4px;
  transition: background-color 0.2s ease;
}

.navbar-toggle .icon-bar:first-child {
  margin-top: 0;
}

.navbar-toggle.active {
  background-color: var(--color-primary) !important;
  border-color: #fff !important;
}

.navbar-toggle.active .icon-bar {
  background-color: #ffffff !important;
}

/* Menu de navigation bureau */
.navbar-collapse,
.bs-navbar-collapse {
  float: right;
}

.navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.navbar-nav > li {
  position: relative;
  margin-right: 20px;
  list-style: none;
}

.navbar-nav > li:last-child {
  margin-right: 0;
}

.navbar-nav > li > a {
  display: block;
  padding: 26px 0;
  color: #404040;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:active,
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current > a,
.navbar-nav > li.current-menu-ancestor > a {
  color: var(--color-primary) !important;
}

/* Indicateur vert sous le lien actif pour les pages internes uniquement */
.page:not(.home) .navbar-nav > li.current-menu-item > a:before,
.page:not(.home) .navbar-nav > li.current-menu-ancestor > a:before,
.single-post .navbar-nav > li.current-menu-item > a:before,
.archive .navbar-nav > li.current-menu-item > a:before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  display: block;
}

body.home .navbar-nav > li > a:before,
.navbar-nav > li.menu-item-home > a:before {
  display: none !important;
}

/* Chevron déroulant */
.nav .menu-item-has-children > a:after,
.nav .has_children > a:after {
  content: "\f107";
  font-family: 'FontAwesome';
  margin-left: 6px;
  font-size: 12px;
}

/* Sous-menus déroulants */
.navbar-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  min-width: 250px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: none;
  text-align: left;
}

.navbar-nav li:hover > ul.sub-menu,
.navbar-nav li.open > ul.sub-menu,
.navbar-nav li.this-open > ul.sub-menu {
  display: block;
}

.navbar-nav ul.sub-menu li {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar-nav ul.sub-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.navbar-nav ul.sub-menu li:last-child a {
  border-bottom: none;
}

.navbar-nav ul.sub-menu li a:hover,
.navbar-nav ul.sub-menu li.current-menu-item a {
  color: var(--color-primary) !important;
  background: #fafafa;
  padding-left: 20px;
}

/* ==========================================================================
   7. BANNIERE ACCUEIL (HOME-HEADER-WRAP)
   ========================================================================== */

.home-header-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.home-header-wrap .header-content-wrap {
  position: relative;
  padding: 150px 0 60px;
  min-height: 90vh;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
}

.home-header-wrap .header-content-wrap .container {
  width: 100%;
  max-width: 1170px;
  margin-top: 10vh;
}

.intro-text {
  margin: 0;
  text-align: center;
  color: #fff;
}

.intro-text h2,
.home-header-wrap .header-content-wrap .container h2 {
  font-family: var(--font-heading);
  font-size: 20.8px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px;
  line-height: 1.3em !important;
  color: #fff;
  margin-top: 3vh;
  margin-bottom: 10vh;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.buttons,
.home-header-wrap .header-content-wrap .container .buttons {
  margin-top: 40px;
  text-align: center;
  clear: both;
}

@media (min-width: 768px) {
  .home-header-wrap .header-content-wrap .container .buttons {
    margin-top: 210px;
  }
}

/* ==========================================================================
   8. EN-TETE DES PAGES INTERNES & BREADCRUMBS
   ========================================================================== */

.site-content {
  padding-top: 0;
  margin-top: 0;
}

.site-content,
.site-content .container,
.site-content .content-left-wrap,
.site-content .content-area,
.site-content .site-main,
.site-content article,
.site-content .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-content .container {
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
  max-width: 1440px;
}

.header-page {
  background-color: #fff;
  width: 100%;
  color: #000;
  padding: 125px 5vw 45px;
  background-image: url("../img/80225.webp");
  background-size: auto 100%;
  background-position: center top;
  background-repeat: repeat-x;
  text-align: center;
  margin: 0 !important;
  box-sizing: border-box;
}

.header-page h1 {
  font-size: 2.3em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--color-dark);
}

#breadcrumbs {
  display: none !important;
}

.page-content {
  padding: 30px 12vw 40px;
  text-align: justify;
}

.page-content h2 {
  display: block;
  text-align: center;
  margin: 1vh 0 4vh;
}

.titrepage {
  text-align: center;
  font-size: 2.4em;
  margin-bottom: 40px;
  color: var(--color-primary);
}

.soustitrepage {
  font-size: 1.5em;
  margin: 20px 0;
  line-height: 1.2;
}

.content-left-wrap {
  padding: 0;
}

/* ==========================================================================
   9. SECTION ABOUT & CONTENUS ACCUEIL
   ========================================================================== */

.about-us {
  background: #ffffff;
  color: var(--color-dark);
  padding: 50px 0;
}

.about-us h2,
.about-us .column > h2,
.zerif_about_us_center h2,
.center-content h2,
.ensembleproduits h2 {
  text-align: center !important;
}

.about-us .column {
  margin: 0;
}

.about-us .column p#firstpara {
  text-align: left;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 20px;
  gap: 15px;
}

.center-content h2 {
  font-size: 1.7em;
  text-align: center;
  margin-bottom: 20px;
}

.center-content a {
  display: inline;
  color: var(--color-primary);
  font-weight: 700;
}

.list_content {
  text-align: left;
  width: 100%;
  max-width: 1100px;
  line-height: 1.8;
  margin: 0 auto 20px;
  padding-left: 20px;
}

.list_content li {
  margin-bottom: 12px;
}

#isolantslist {
  list-style-type: circle;
  padding-left: 25px;
}

#isolantslist li {
  margin: 10px 0;
}

.h2inline {
  display: inline-block !important;
}

/* ==========================================================================
   10. CARTES SERVICES & PRODUITS (.serviceseco, .ensembleproduits)
   ========================================================================== */

.ensembleproduits {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 0 15px;
  margin: 15px auto 40px;
}

/* Carte 4 par ligne sur desktop */
.serviceseco {
  flex: 0 0 calc(25% - 12px);
  width: calc(25% - 12px);
  min-width: 230px;
  height: 300px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 22px 14px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.serviceseco:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Carte 2 par ligne (pages métiers et réalisations) */
.serviceseco3 {
  flex: 0 0 calc(50% - 12px);
  width: calc(50% - 12px);
  min-width: 280px;
  height: 280px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.serviceseco3:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Voile sombre dégradé pour garantir 100% de lisibilité sur tous les fonds photos */
.serviceseco::before,
.serviceseco3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.40) 45%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s ease;
}

.serviceseco:hover::before,
.serviceseco3:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.88) 100%);
}

.serviceseco > *,
.serviceseco3 > * {
  position: relative;
  z-index: 2;
}

.serviceseco h2 {
  text-transform: uppercase;
  width: 100%;
  margin: 0 0 10px !important;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.3 !important;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.3px;
}

.serviceseco3 h2 {
  text-transform: uppercase;
  width: 100%;
  margin: 0 !important;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.3 !important;
  min-height: auto;
  display: block;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.3px;
}

.serviceseco p {
  margin: 0 0 12px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
}

.serviceseco3 p {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  text-align: center;
  display: block;
  flex: 0 0 auto;
  width: 100%;
}

/* Boutons des cartes services ancrés en bas sur accueil */
.serviceseco .serv_btn {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Boutons des cartes serviceseco3 centrés au milieu */
.serviceseco3 .serv_btn {
  margin: 0 auto !important;
  display: inline-block;
}

.serv_btn {
  width: 90%;
  max-width: 210px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.serv_btn:hover {
  background-color: var(--color-primary-hover) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Carte 6 étapes processus */
.serviceseco2 {
  flex: 0 0 calc(16.666% - 14px);
  width: calc(16.666% - 14px);
  min-width: 150px;
  text-align: center;
  margin: 5px 0;
  min-height: 230px;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 5px;
}

.serviceseco2 div {
  margin-bottom: 15px;
}

.serviceseco2 div img {
  width: auto;
  height: 90px;
  object-fit: contain;
}

.serviceseco2 h2 {
  font-size: 17px;
  color: var(--color-dark);
  margin-top: 10px;
  line-height: 1.35;
  font-weight: 600;
}

/* Fonds d'images des cartes métiers */
.serv_combles { background-image: url("../img/attic.webp"); background-position: 50%; }
.serv_couv    { background-image: url("../img/d6d28025-24a5-4c6d-bebc-8c34aa2a8fe8.webp"); background-position: 50%; }
.serv_chauff  { background-image: url("../img/chauffage.webp"); background-position: 30%; }
.serv_pv      { background-image: url("../img/asset-13184253_electric_solar_panel-_home-_exterior_view_.webp"); background-position: 30%; }
.serv_vmc     { background-image: url("../img/8447ef62-b166-45d8-8fdc-577a9b102940-2.webp"); background-position: 50%; }
.serv_ite     { background-image: url("../img/IMG_1209-2-scaled-1.webp"); background-position: center 65%; }
.serv_fen     { background-image: url("../img/VELUX2.webp"); background-position: 50%; }
.serv_calo    { background-image: url("../img/CALO-3.webp"); background-position: 50%; }
.serv_contact { background-image: url("../img/handshake-close-up-of-executives-scaled.webp"); background-position: 50%; }
.serv_eligible{ background-image: url("../img/eco-friendly-e1544021530210.webp"); background-position: 50%; }

.serviceseco3.serv_contact {
  background-repeat: no-repeat;
  background-size: cover !important;
}

/* ==========================================================================
   11. BOUTONS (.green-btn, .red-btn, .btn)
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 13px 35px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  margin: 10px;
}

.green-btn,
#ribbon_bottom .green-btn,
input[type=submit],
button[type=submit] {
  background-color: var(--color-primary);
  color: #ffffff !important;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 13px 35px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.green-btn:hover,
#ribbon_bottom .green-btn:hover,
input[type=submit]:hover,
button[type=submit]:hover {
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}

.red-btn,
#ribbon_right .red-btn {
  background-color: #ffffff;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 13px 35px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  margin: 10px;
}

.red-btn:hover,
#ribbon_right .red-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff !important;
  border: 1px solid #ffffff;
}

/* ==========================================================================
   12. BANDEAUX (RIBBONS) & PARTENAIRES
   ========================================================================== */

section#ribbon_bottom,
section#ribbon_right {
  padding: 40px 0;
}

#ribbon_right {
  background-color: var(--color-primary);
  color: #ffffff;
}

#ribbon_right .container {
  padding: 0 4.5vw;
}

#ribbon_right h3 {
  color: #ffffff;
  font-size: 1.7em;
  margin: 10px 0;
}

#ribbon_right .red-btn {
  white-space: normal !important;
  min-width: 250px;
  border-color: #ffffff;
}

#ribbon_bottom h3 {
  margin: 20px auto;
  text-align: center;
}

.separator-one {
  background-color: rgba(58, 169, 53, 0.85);
  color: #ffffff;
  padding: 60px 0;
}

/* Partenaires */
.latest-news {
  padding-top: 30px;
  padding-bottom: 20px;
}

.latest-news .section-header {
  padding: 0;
  text-align: center;
}

.latest-news .section-legend {
  margin-top: 20px;
}

.latest-news .section-legend img {
  display: inline-block;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}

.latest-news .section-legend img:hover {
  opacity: 0.8;
}

/* Actualités / Cards Carousel */
#carousel-homepage-latestnews {
  margin: 0 30px;
  position: relative;
}

#carousel-homepage-latestnews .carousel-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
}

#carousel-homepage-latestnews .carousel-inner > .item {
  display: none;
  position: relative;
  width: 100%;
}

#carousel-homepage-latestnews .carousel-inner > .item.active {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}

#carousel-homepage-latestnews .clear {
  display: none !important;
}

#carousel-homepage-latestnews .latestnews-box {
  float: none;
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 15px);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#carousel-homepage-latestnews .latestnews-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.latestnews-img {
  flex: 0 0 200px;
  height: 200px;
  overflow: hidden;
}

.latestnews-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.latestnews-box:hover .latestnews-img img {
  transform: scale(1.04);
}

.latesnews-content {
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.latesnews-content p {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.latestnews-title {
  margin-top: 15px;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.latestnews-title a {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  display: block;
  position: relative;
}

.latestnews-title a:hover {
  color: var(--color-primary);
}

#carousel-homepage-latestnews .item .latestnews-box .latestnews-title a:before {
  position: absolute;
  z-index: 1;
  bottom: -9px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  margin: auto;
  background: #e96656;
  content: "";
}

#carousel-homepage-latestnews .item .latestnews-box:nth-child(4n+1) .latestnews-title a:before { background: #e96656; }
#carousel-homepage-latestnews .item .latestnews-box:nth-child(4n+2) .latestnews-title a:before { background: #34d293; }
#carousel-homepage-latestnews .item .latestnews-box:nth-child(4n+3) .latestnews-title a:before { background: #3ab0e2; }
#carousel-homepage-latestnews .item .latestnews-box:nth-child(4n) .latestnews-title a:before { background: #f7d861; }

.carousel-control {
  position: absolute;
  top: 40%;
  width: 45px;
  height: 45px;
  font-size: 30px;
  color: #404040;
  text-align: center;
  text-shadow: none;
  opacity: 0.6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, color 0.2s;
  text-decoration: none !important;
}

.carousel-control:hover,
.carousel-control:focus {
  color: var(--color-primary);
  opacity: 1;
}

.carousel-control.left {
  left: -40px;
}

.carousel-control.right {
  right: -40px;
}

.carousel-control .glyphicon-chevron-left:before {
  content: "\f104";
  font-family: 'FontAwesome';
}

.carousel-control .glyphicon-chevron-right:before {
  content: "\f105";
  font-family: 'FontAwesome';
}

/* ==========================================================================
   13. FORMULAIRE DE CONTACT (#presentationcontact, .wpcf7-*)
   ========================================================================== */

#presentationcontact {
  display: flex;
  width: 100%;
  max-width: 1100px;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 30px auto 40px;
}

#presentationcontact > div {
  flex: 1 1 50%;
  min-width: 0;
}

#presentationcontact iframe {
  width: 100%;
  height: 340px;
  min-height: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.awhole {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
  gap: 30px;
}

.aleft,
.aright {
  flex: 1 1 350px;
  text-align: left;
}

.aleft p,
.aright p {
  text-align: left;
  margin: 0 0 15px;
}

.label {
  display: block;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

#etoile {
  font-size: 1.2em;
  color: var(--color-primary);
  margin-left: 3px;
}

#etoileobligatoire {
  font-size: 0.9em;
  font-style: italic;
  color: #666;
  margin-bottom: 15px;
}

.ecoplus-comment {
  font-style: italic;
  font-size: 0.8em;
  line-height: 1.3em;
  color: #666;
  margin-top: 4px;
  display: block;
}

input[type=text],
input[type=tel],
input[type=email],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(58, 169, 53, 0.5);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type=text]:focus,
input[type=tel]:focus,
input[type=email]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 6px rgba(58, 169, 53, 0.4);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Harmonisation CF7 */
.wpcf7-form {
  width: 100%;
}

.wpcf7-form-control-wrap {
  position: relative;
  display: block;
  margin-bottom: 15px;
}

.wpcf7-not-valid {
  border-color: #d9534f !important;
}

.wpcf7-not-valid-tip {
  color: #d9534f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.wpcf7-response-output {
  margin: 20px 0;
  padding: 14px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  background-color: #f0fdf4;
  color: #166534;
  font-weight: 600;
  text-align: center;
}

.wpcf7-response-output:empty,
.wpcf7-display-none {
  display: none !important;
}

.wpcf7-response-output.wpcf7-validation-errors {
  border-color: #f59e0b;
  background-color: #fffbeb;
  color: #b45309;
}

/* Captions d'images WordPress (.wp-caption) */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
  border: 1px solid #ccc;
  padding: 4px;
  background: #fff;
  text-align: center;
}

.wp-caption img {
  display: block;
  max-width: 98%;
  margin: 1.2% auto 0;
  height: auto !important;
}

.wp-caption-text {
  text-align: center;
  font-size: 13px;
  margin: 0.8em 1.2%;
}

.form-feedback {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.form-feedback-success {
  border: 2px solid #22c55e;
  background-color: #f0fdf4;
  color: #166534;
}

.form-feedback-error {
  border: 2px solid #ef4444;
  background-color: #fef2f2;
  color: #991b1b;
}

.form-feedback-limit {
  border: 2px solid #f59e0b;
  background-color: #fffbeb;
  color: #b45309;
}

.form-feedback a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   14. GALERIE DE REALISATIONS (FINAL TILES GRID & LIGHTBOX)
   ========================================================================== */

.final-tiles-gallery {
  position: relative;
  width: 100%;
  margin: 30px 0;
}

.final-tiles-gallery .ftg-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  justify-content: center;
}

.final-tiles-gallery .tile {
  display: block !important;
  opacity: 1 !important;
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  background-color: #f1f5f9;
}

.final-tiles-gallery .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.final-tiles-gallery .tile a {
  display: block;
  width: 100%;
  height: 100%;
}

.final-tiles-gallery .tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: transform 0.35s ease;
}

.final-tiles-gallery .tile:hover img {
  transform: scale(1.05);
}

.final-tiles-gallery .loading-bar {
  display: none !important;
}

/* ==========================================================================
   14b. GRILLE DE MATERIAUX & PRODUITS (PAGES METIERS)
   ========================================================================== */

.materiaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin: 25px 0 35px;
}

.materiau-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.materiau-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.materiau-img-wrap {
  width: 100%;
  height: 155px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.materiau-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.materiau-card:hover .materiau-img-wrap img {
  transform: scale(1.06);
}

.materiau-name {
  padding: 12px 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-dark);
  border-top: 1px solid #f1f5f9;
  background-color: #ffffff;
  margin-top: auto;
  line-height: 1.35;
}

/* ==========================================================================
   15. PIED DE PAGE (FOOTER & COPYRIGHT)
   ========================================================================== */

footer,
#footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 50px 0 30px;
  font-family: var(--font-body);
}

#footer a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer a:hover {
  color: var(--color-primary);
}

.company-details {
  text-align: center;
  padding-bottom: 25px;
}

.icon-top {
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-top img {
  height: 32px;
  width: auto;
  display: inline-block;
  transition: transform 0.2s ease;
}

.icon-top a:hover img {
  transform: scale(1.1);
}

.facebook-icon-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #ffffff !important;
  transition: all 0.25s ease;
}

.facebook-icon-wrap a:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 169, 53, 0.5);
}

.facebook-icon-wrap a i {
  font-size: 1.3em;
  color: #ffffff !important;
}

.zerif-footer-address,
.zerif-footer-email,
.zerif-footer-phone {
  font-size: 15px;
  line-height: 1.6;
  color: #e2e8f0;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.zerif-copyright-box {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
  flex-wrap: wrap;
  gap: 4px;
}

.zerif-copyright-sep {
  color: #777777;
  margin: 0 4px;
  display: inline-block;
}

a.zerif-copyright {
  color: #999999;
  text-decoration: underline;
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

a.zerif-copyright:hover {
  color: #ffffff !important;
}

/* Bloc SEO bas de page */
.footer_words {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer_words_inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  text-align: center;
}

.footer_words_highlight {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px !important;
  letter-spacing: 0.3px;
}

.footer_words_highlight strong {
  color: var(--color-primary);
  font-weight: 800;
}

.footer_words_text {
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 !important;
}

/* Logos des qualifications RGE (accueil, entreprise) */
.certifs-rge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 24px 40px;
  margin: 10px auto 30px;
}

.certifs-rge figure {
  margin: 0;
  text-align: center;
}

.certifs-rge img {
  display: block;
  height: 90px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 8px;
}

.certifs-rge figcaption {
  font-size: 14px;
  font-weight: 700;
  color: #4a5568;
}

/* Barre de bas de page : copyright et signature MonBati */
.footer-bas {
  margin-top: 20px;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

a.footer-signature {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.footer-signature strong {
  color: #ffffff;
}

a.footer-signature:hover {
  color: #ffffff;
}

@media (max-width: 767px) {
  .footer-bas {
    justify-content: center;
  }
}

/* ==========================================================================
   16. MEDIA QUERIES RESPONSIVE
   ========================================================================== */

/* Ecrans larges (>= 990px) */
@media (min-width: 990px) {
  .page-content img.alignright {
    margin-left: 5vw;
  }
  .page-content img.alignleft {
    margin-right: 5vw;
  }
  .home-header-wrap .header-content-wrap .container #soustexte {
    width: 32%;
    min-width: 340px;
  }
}

/* Ecrans moyens (<= 1200px) */
@media (max-width: 1200px) {
  .serviceseco2 {
    flex: 0 0 calc(33.333% - 12px);
    width: calc(33.333% - 12px);
  }
}

/* Tablettes (<= 990px) */
@media (max-width: 990px) {
  .page-content {
    padding: 30px 4vw;
  }
  .about-us .column p#firstpara {
    padding: 0 2vw;
  }
  header.header {
    min-height: var(--nav-height) !important;
  }
  .home-header-wrap .header-content-wrap .container #titreflottant {
    float: none;
  }
  .home-header-wrap .header-content-wrap .container h2 {
    margin-top: 20px;
  }
  .home-header-wrap .header-content-wrap .container #soustexte {
    float: none;
    margin: 20px auto;
    width: 100%;
  }
  .home-header-wrap .header-content-wrap .container .buttons {
    margin-top: 20px;
    clear: both;
  }
  video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
  }
  #carousel-homepage-latestnews .latestnews-box {
    flex: 1 1 calc(50% - 20px) !important;
    max-width: calc(50% - 10px) !important;
  }
  .serviceseco {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    height: 290px;
  }
  .serviceseco3 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 480px;
    margin: 10px auto;
  }
  .serviceseco2 {
    flex: 0 0 calc(33.333% - 12px);
    width: calc(33.333% - 12px);
  }
}

/* Mobiles (< 768px) */
@media (max-width: 767px) {
  /* Protection stricte contre le glissement horizontal */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
  }

  .site-content {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  .container,
  .container-fluid,
  .site-content .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12,
  .column {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* En-tête de navigation : Logo à gauche, burger à droite */
  .navbar-header {
    float: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 5px;
  }

  .navbar-brand {
    order: 1;
    float: none;
    display: flex;
    align-items: center;
    height: var(--nav-height);
    margin: 0;
    padding: 5px 0;
    width: auto;
  }

  .navbar-brand img,
  .navbar-brand a img {
    max-height: 48px;
    width: auto;
  }

  .navbar-toggle {
    order: 2;
    display: block;
    float: none;
    margin: 0 5px 0 0;
  }

  .navbar-collapse,
  .bs-navbar-collapse {
    float: none;
    display: none;
    width: 100%;
    background: #ffffff;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 15px 20px;
  }

  .navbar-collapse.in,
  .bs-navbar-collapse.in {
    display: block;
  }

  .navbar-nav {
    display: block;
    float: none;
    margin: 0;
  }

  .navbar-nav > li {
    display: block;
    float: none;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-nav > li > a {
    padding: 12px 5px;
    font-size: 14px;
  }

  .navbar-nav > li.current > a:before,
  .navbar-nav > li.current-menu-item > a:before {
    display: none;
  }

  .navbar-nav ul.sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #f8fafc;
    padding: 0 0 0 15px;
  }

  .navbar-nav li.open > ul.sub-menu,
  .navbar-nav li.this-open > ul.sub-menu {
    display: block;
  }

  .navbar-nav ul.sub-menu li a {
    padding: 8px 12px;
    font-size: 12px;
  }

  #main-nav,
  #main-nav.fixed {
    position: fixed;
  }

  .this-open > a {
    color: var(--color-primary) !important;
  }

  /* Hero header complet et aéré pour mobile : image de fond visible et contenu harmonieux */
  .home-header-wrap {
    background-image: url("../img/maison_modifiee-scaled.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .home-header-wrap .header-content-wrap {
    padding: 30px 0 35px !important;
    min-height: calc(100vh - 75px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.42) !important;
  }

  .home-header-wrap .header-content-wrap .container {
    padding: 0 15px;
    margin: 0 auto !important;
    width: 100%;
  }

  .home-header-wrap .intro-text {
    margin: 0;
  }

  .home-header-wrap .intro-text img,
  .home-header-wrap .intro-text div > img,
  img[alt*="EcoPlus"] {
    width: 55% !important;
    max-width: 180px !important;
    height: auto !important;
    margin: 0 auto 12px !important;
    display: block;
  }

  .home-header-wrap .header-content-wrap .container h2,
  .home-header-wrap .intro-text h2 {
    text-align: center;
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 10px auto 22px !important;
    max-width: 310px;
    color: #ffffff;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  }

  .home-header-wrap .header-content-wrap .container .buttons {
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .home-header-wrap .header-content-wrap .container .buttons .btn {
    width: 85% !important;
    max-width: 270px;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 12px 18px !important;
    line-height: 1.3 !important;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 0.5px;
  }

  /* Cartes Services & Processus */
  .ensembleproduits {
    padding: 0 10px;
    margin: 25px auto;
    gap: 14px;
  }

  .serviceseco {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 350px;
    height: 270px;
    min-height: 270px;
    margin: 0 auto !important;
    float: none !important;
    border-radius: 6px;
    padding: 20px 14px 16px !important;
  }

  .serviceseco3 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 350px;
    height: 270px;
    min-height: 270px;
    margin: 0 auto !important;
    float: none !important;
    border-radius: 6px;
    padding: 20px 14px 16px !important;
    justify-content: center !important;
    gap: 14px;
  }

  .serviceseco h2 {
    font-size: 16px !important;
    min-height: 42px;
    margin-bottom: 8px !important;
  }

  .serviceseco3 h2 {
    font-size: 16px !important;
    min-height: auto !important;
    margin: 0 !important;
  }

  .serviceseco p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }

  .serviceseco3 p {
    font-size: 13px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .serviceseco .serv_btn {
    width: 85% !important;
    max-width: 220px;
    margin: auto auto 0 !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
  }

  .serviceseco3 .serv_btn {
    width: auto !important;
    min-width: 180px;
    max-width: 220px;
    margin: 0 auto !important;
    font-size: 13px !important;
    padding: 9px 14px !important;
  }

  .serviceseco2 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 320px;
    min-height: auto !important;
    margin: 15px auto !important;
    padding: 10px 15px !important;
    float: none !important;
  }

  .serviceseco2 div {
    margin-bottom: 10px !important;
  }

  .serviceseco2 div img {
    height: 75px !important;
    max-width: 100%;
    margin: 0 auto !important;
  }

  .serviceseco2 h2 {
    font-size: 18px !important;
    font-weight: 700;
    margin-top: 8px !important;
    text-align: center;
  }

  /* Bandeau vert d'appel (ribbon right) */
  #ribbon_right {
    text-align: center;
    padding: 30px 15px;
  }

  #ribbon_right h3 {
    text-align: center;
    font-size: 1.4em !important;
    margin-bottom: 15px;
  }

  #ribbon_right .red-btn {
    display: block !important;
    width: 90% !important;
    max-width: 320px;
    margin: 10px auto !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    white-space: normal !important;
    text-align: center;
  }

  /* Logos Partenaires */
  .latest-news .section-legend img {
    display: block !important;
    margin: 18px auto !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: 50px !important;
  }

  /* Actualités / Carrousel */
  #carousel-homepage-latestnews {
    margin: 0 auto;
    padding: 0 10px;
  }

  #carousel-homepage-latestnews .latestnews-box {
    width: 100% !important;
    max-width: 360px !important;
    float: none !important;
    margin: 0 auto 25px !important;
    display: flex !important;
  }

  #carousel-homepage-latestnews .carousel-control {
    display: none !important;
  }

  /* Header de page (motif vert) */
  .header-page {
    padding: 95px 15px 30px !important;
    background-size: auto 100% !important;
    background-position: center top !important;
  }

  .header-page h1 {
    font-size: 1.7em !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Page Entreprise & titrages héro avec style inline */
  .page-content > img.alignnone {
    margin-top: 10px !important;
    border-radius: 6px;
  }

  .page-content > img.alignnone + h2,
  .page-content h2[style*="font-size: 50px"],
  .page-content h2[style*="font-size:50px"] {
    font-size: 20px !important;
    margin-top: -55px !important;
    margin-bottom: 25px !important;
    line-height: 1.25 !important;
    padding: 0 10px !important;
    text-align: center !important;
  }

  .wp-caption {
    width: 100% !important;
    max-width: 250px !important;
    margin: 15px auto !important;
  }

  .wp-caption img {
    width: 100% !important;
    height: auto !important;
    max-width: 240px !important;
  }

  /* Formulaire de Contact & Google Map */
  #presentationcontact {
    display: block;
    margin: 15px auto;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #presentationcontact > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto 15px !important;
    box-sizing: border-box !important;
  }

  #presentationcontact iframe {
    width: 100% !important;
    height: 320px !important;
  }

  .awhole {
    padding: 0 10px;
    display: block;
  }

  .aleft,
  .aright {
    width: 100% !important;
    flex: none !important;
    text-align: center !important;
    margin-bottom: 20px;
  }

  .aleft p,
  .aright p {
    text-align: center !important;
  }

  .label,
  div.label,
  span#labelpersonnes.label {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }

  .wpcf7-form-control-wrap {
    text-align: center;
  }

  input[type=text],
  input[type=tel],
  input[type=email],
  input[type=number],
  select,
  textarea {
    width: 100% !important;
    max-width: 360px;
    margin: 0 auto;
    display: block;
    background-color: #ffffff;
  }

  .wpcf7-submit,
  input[type="submit"] {
    width: 90% !important;
    max-width: 280px;
    margin: 15px auto !important;
    display: block !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Galeries de réalisations */
  .final-tiles-gallery .ftg-items {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .final-tiles-gallery .tile {
    margin: 0 !important;
  }

  .final-tiles-gallery .tile img {
    height: 130px !important;
  }

  /* Grille de matériaux */
  .materiaux-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 15px 0 25px !important;
  }

  .materiau-img-wrap {
    height: 120px !important;
    padding: 8px !important;
  }

  .materiau-name {
    font-size: 13px !important;
    padding: 8px 6px !important;
  }

  /* Iframes (Google Maps) */
  iframe {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Footer */
  footer {
    padding-top: 25px;
  }

  .company-details,
  .copyright {
    padding: 15px 0;
  }

  .icon-top img {
    margin: 0 auto;
  }
}

/* Petits mobiles (<= 500px) */
@media (max-width: 500px) {
  .navbar-brand {
    width: 190px;
  }

  .navbar-brand a img,
  .navbar-brand img {
    max-height: 45px;
  }

  .alignright,
  .alignleft {
    float: none;
    margin: 10px auto !important;
    display: block;
  }

  .page-content > img.alignnone + h2,
  .page-content h2[style*="font-size: 50px"],
  .page-content h2[style*="font-size:50px"] {
    font-size: 16px !important;
    margin-top: -45px !important;
    margin-bottom: 20px !important;
  }

  .home-header-wrap .header-content-wrap {
    min-height: calc(100svh - 75px) !important;
    padding: 20px 0 25px !important;
  }

  .home-header-wrap .header-content-wrap .container h2,
  .home-header-wrap .intro-text h2 {
    font-size: 14px !important;
    line-height: 1.35 !important;
    max-width: 290px !important;
    margin: 8px auto 18px !important;
  }

  .home-header-wrap .header-content-wrap .container .buttons .btn {
    font-size: 13px !important;
    padding: 10px 16px !important;
    max-width: 260px;
  }
}

/* ==========================================================================
   17. ARTICLES & ACTUALITES (.blog, .single-post, .blog-post-card)
   ========================================================================== */

body.blog,
body.single {
  background-color: #f8fafc;
  background-image: none !important;
}

body.blog .site-content {
  background-color: #f8fafc;
  padding: 0 0 60px;
}

body.single .site-content {
  background-color: #f8fafc;
  padding: 95px 0 60px;
}

.blog-articles-list {
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.blog-post-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.blog-post-card .post-img-wrap {
  flex: 0 0 260px;
  width: 260px;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.blog-post-card .post-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-post-card .post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-post-card:hover .post-img-wrap img {
  transform: scale(1.05);
}

.blog-post-card .post-content-wrap {
  flex: 1 1 auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-post-card .entry-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}

.blog-post-card .entry-title a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-card .entry-title a:hover {
  color: var(--color-primary);
}

.blog-post-card .entry-meta {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-card .entry-content p {
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.blog-post-card .read-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.blog-post-card .read-more-link:hover {
  color: var(--color-primary-hover);
  transform: translateX(4px);
}

/* Page Article Individuel */
.single-article-card {
  max-width: 860px;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.single-article-card .entry-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 18px;
  margin-bottom: 25px;
  text-align: center;
}

.single-article-card .entry-title {
  font-size: 28px;
  color: var(--color-dark);
  margin: 0 0 10px;
  line-height: 1.3;
}

.single-article-card .entry-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.single-article-card .wp-block-image {
  margin: 25px auto;
  text-align: center;
}

.single-article-card .wp-block-image img {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  height: auto;
}

.single-article-card .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.single-article-card .entry-content ul {
  padding-left: 20px;
  margin: 20px 0;
}

.single-article-card .entry-content li {
  margin-bottom: 8px;
}

.article-back-nav {
  max-width: 860px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-back-nav a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.article-back-nav a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

@media (max-width: 767px) {
  body.single .site-content {
    padding-top: 85px !important;
  }
  .blog-post-card {
    flex-direction: column;
  }
  .blog-post-card .post-img-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
  .blog-post-card .post-content-wrap {
    padding: 18px 16px;
  }
  .single-article-card {
    padding: 25px 18px;
    margin: 15px auto;
  }
  .single-article-card .entry-title {
    font-size: 22px;
  }
}

