/*
Theme Name: E-Renov
Theme URI: https://e-renov.fr/
Author: Eventus Communication
Author URI: https://eventus-communication.fr/
Description: Thème sur mesure pour E-Renov, compatible Elementor.
Version: 1.3.4
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: erenov
*/

:root {
  --er-green: #203b2d;
  --er-green-2: #2c4534;
  --er-rust: #b85735;
  --er-cream: #f5eddf;
  --er-sand: #ede1cf;
  --er-ink: #26372d;
  --er-muted: #657066;
  --er-line: #d7cbb8;
  --er-white: #fffaf1;
  --er-serif: Georgia, "Times New Roman", serif;
  --er-sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--er-ink); background: var(--er-cream); font-family: var(--er-sans); line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #ff7a45; outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.er-topbar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 5px 5vw; color: #fff; background: var(--er-green); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.er-header { position: sticky; top: 0; z-index: 1000; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 28px; min-height: 118px; padding: 16px 5vw; border-bottom: 1px solid var(--er-line); background: rgba(245,237,223,.97); backdrop-filter: blur(12px); }
.er-logo img, .custom-logo { width: 200px; height: 68px; object-fit: contain; object-position: left center; }
.er-nav ul { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.er-nav a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 2px solid transparent; }
.er-nav a:hover, .er-nav .current-menu-item > a { color: var(--er-rust); border-color: currentColor; }
.er-nav .menu-item-has-children { position: relative; }
.er-nav .sub-menu { position: absolute; top: 100%; left: 50%; z-index: 20; min-width: 270px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--er-line); background: var(--er-cream); box-shadow: 0 16px 35px rgba(32,59,45,.15); visibility: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, visibility .2s, transform .2s; }
.er-nav .menu-item-has-children:hover > .sub-menu, .er-nav .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.er-nav .sub-menu a { min-height: 42px; padding: 9px 12px; border: 0; white-space: nowrap; }
.er-nav .sub-menu a:hover, .er-nav .sub-menu .current-menu-item > a { background: var(--er-sand); }
.er-header-cta, .er-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; background: var(--er-rust); color: #fff; font-size: 12px; font-weight: 800; text-align: center; transition: transform .2s, background .2s, color .2s; }
.er-header-cta:hover, .er-btn:hover { transform: translateY(-2px); background: var(--er-green); }
.er-btn-outline { background: transparent; border-color: var(--er-green); color: var(--er-green); }
.er-btn-outline:hover { color: #fff; }
.er-menu-toggle { display: none; width: 50px; height: 50px; padding: 0; border: 1px solid var(--er-green); background: transparent; color: var(--er-green); cursor: pointer; }
.er-menu-toggle span, .er-menu-toggle::before, .er-menu-toggle::after { content: ""; display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-open .er-menu-toggle span { opacity: 0; }
.menu-open .er-menu-toggle::before { transform: translateY(7px) rotate(45deg); }
.menu-open .er-menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }

.er-main { min-height: 55vh; }
.er-main > .elementor { margin: 0; }
.elementor-widget-html > .elementor-widget-container { width: 100%; }
.er-wrap { width: min(1180px, 90vw); margin-inline: auto; }
.er-kicker { margin: 0 0 18px; color: var(--er-rust); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 900; }
.er-display, .er-visual-title { margin: 0; font-family: var(--er-serif); font-weight: 400; letter-spacing: -.055em; line-height: .94; }
.er-display { font-size: clamp(44px, 6vw, 82px); }
.er-visual-title { font-size: clamp(56px, 7.2vw, 106px); }
.er-lead { color: var(--er-muted); font-size: 16px; line-height: 1.75; }

h1, h2, h3, .er-display, .er-visual-title { color: var(--er-green); }
.er-dark h1, .er-dark h2, .er-dark h3, .er-quote-band h2 { color: var(--er-cream); }
.er-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.er-hero { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 690px; border-bottom: 1px solid var(--er-line); }
.er-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 5vw; }
.er-hero-copy .er-lead { max-width: 650px; }
.er-hero-media { min-height: 650px; margin: 38px 4vw 38px 0; border-radius: 48% 48% 6px 6px; overflow: hidden; }
.er-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.er-trust { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--er-line); }
.er-trust > div { padding: 28px 5vw; border-right: 1px solid var(--er-line); }
.er-trust > div:last-child { border-right: 0; }
.er-trust strong { display: block; font-family: var(--er-serif); font-size: 22px; font-weight: 400; }
.er-trust span { color: var(--er-muted); font-size: 12px; }

.er-intro { padding: 95px 0 65px; }
.er-intro-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; align-items: start; }
.er-intro h1, .er-intro h2 { margin: 0; font-family: var(--er-serif); font-size: clamp(42px, 5.6vw, 76px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.er-intro p { margin-top: 0; }

.er-section { padding: 95px 0; border-top: 1px solid var(--er-line); }
.er-section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 5vw; margin-bottom: 55px; }
.er-section-head h2 { margin: 0; font-family: var(--er-serif); font-size: clamp(40px, 5.4vw, 74px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.er-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.er-service-card { display: flex; flex-direction: column; min-height: 520px; background: var(--er-sand); transition: transform .25s; }
.er-service-card:hover { transform: translateY(-5px); }
.er-service-card img { width: 100%; height: 245px; object-fit: cover; }
.er-service-card > div { flex: 1; display: flex; flex-direction: column; padding: 28px; }
.er-service-card .er-number { color: var(--er-rust); font-size: 11px; font-weight: 900; }
.er-service-card h3 { margin: auto 0 12px; font-size: 29px; font-weight: 400; }
.er-service-card p { color: var(--er-muted); }
.er-service-card b { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

.er-dark { padding: 95px 0; color: var(--er-cream); background: var(--er-green); }
.er-dark-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; }
.er-dark h2 { margin: 0; font-family: var(--er-serif); font-size: clamp(43px, 5.5vw, 76px); font-weight: 400; line-height: 1; }
.er-dark p { color: #cad2cb; }
.er-steps { border-top: 1px solid #647769; }
.er-step { display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 24px 0; border-bottom: 1px solid #647769; }
.er-step > span { color: #e0aa8f; font-family: var(--er-serif); }
.er-step h3 { margin: 0 0 6px; font-size: 22px; }
.er-step p { margin: 0; }

.er-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--er-line); }
.er-cards-3 article { min-height: 240px; padding: 28px; border-right: 1px solid var(--er-line); }
.er-cards-3 article:last-child { border-right: 0; }
.er-cards-3 h3 { font-size: 25px; }
.er-cards-3 p { color: var(--er-muted); }
.er-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.er-copy-card { padding: 38px; border: 1px solid var(--er-line); background: var(--er-sand); }
.er-copy-card h3 { margin-top: 0; font-size: 29px; line-height: 1.15; }
.er-copy-card p, .er-copy-card li { color: var(--er-muted); }
.er-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--er-line); }
.er-list li { position: relative; padding: 20px 0 20px 30px; border-bottom: 1px solid var(--er-line); }
.er-list li::before { content: "→"; position: absolute; left: 0; color: var(--er-rust); font-weight: 900; }

.er-inner-hero { display: flex; min-height: 470px; align-items: center; border-bottom: 1px solid var(--er-line); }
.er-inner-hero .er-wrap { padding-block: 80px; }
.er-inner-hero .er-lead { max-width: 760px; margin: 32px 0 0 auto; }
.er-service-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; border-bottom: 1px solid var(--er-line); }
.er-service-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 75px 5vw; }
.er-service-hero-media { min-height: 560px; margin: 35px 4vw 35px 0; border-radius: 48% 48% 6px 6px; overflow: hidden; }
.er-service-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.er-faq { border-top: 1px solid var(--er-line); }
.er-faq details { border-bottom: 1px solid var(--er-line); }
.er-faq summary { position: relative; padding: 24px 45px 24px 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 20px; }
.er-faq summary::-webkit-details-marker { display: none; }
.er-faq summary::after { content: "+"; position: absolute; right: 0; color: var(--er-rust); font-size: 24px; }
.er-faq details[open] summary::after { content: "−"; }
.er-faq p { color: var(--er-muted); padding: 0 45px 22px 0; }

.er-quote-band { margin: 75px auto; padding: 55px; display: flex; align-items: center; justify-content: space-between; gap: 35px; color: #fff; background: var(--er-green); }
.er-quote-band h2 { margin: 0; font-family: var(--er-serif); font-size: clamp(38px, 5vw, 66px); font-weight: 400; line-height: 1; }
.er-quote-band p { color: #cbd4cc; }

.er-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; }
.er-contact-cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--er-line); }
.er-contact-cards article { min-height: 155px; padding: 23px 10px; border-bottom: 1px solid var(--er-line); }
.er-contact-cards article:nth-child(odd) { border-right: 1px solid var(--er-line); }
.er-contact-cards span { display: block; color: var(--er-rust); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 900; }
.er-contact-cards strong { font-size: 20px; }
.er-form { padding: 30px; border: 1px solid var(--er-line); background: var(--er-sand); }
.er-form-widget { display: block; padding: 0 0 90px; }
.er-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.er-field { margin-bottom: 16px; }
.er-field label { display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 900; }
.er-field input, .er-field select, .er-field textarea { width: 100%; min-height: 48px; padding: 13px; border: 1px solid var(--er-line); background: var(--er-cream); color: var(--er-ink); }
.er-field textarea { min-height: 125px; resize: vertical; }
.er-field .er-consent { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: normal; font-size: 12px; }
.er-consent input { width: 18px; height: 18px; flex: 0 0 auto; }
.er-form button { width: 100%; min-height: 52px; border: 0; cursor: pointer; }
.er-hp { position: absolute !important; left: -10000px !important; }
.er-form-error, .er-form-success { padding: 14px; margin-bottom: 18px; border: 1px solid; }
.er-form-error { color: #7b1717; background: #fff0f0; }
.er-form-success { color: #174b2a; background: #eaf8ee; }

.er-legal { padding: 80px 0 110px; }
.er-legal article { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7vw; padding: 35px 0; border-top: 1px solid var(--er-line); }
.er-legal article:last-child { border-bottom: 1px solid var(--er-line); }
.er-legal h2 { margin: 0; font-family: var(--er-serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.1; }
.er-legal p, .er-legal li { color: var(--er-muted); }
.er-legal a { color: var(--er-rust); text-decoration: underline; text-underline-offset: 3px; }

.er-footer { position: relative; display: grid; grid-template-columns: 1.15fr .6fr .75fr .85fr; gap: 4vw; padding: 65px 5vw 105px; color: var(--er-cream); background: var(--er-green); }
.er-footer img { width: 225px; height: 78px; object-fit: contain; object-position: left center; padding: 6px 9px; background: var(--er-cream); }
.er-footer > div { display: flex; flex-direction: column; gap: 9px; }
.er-footer p, .er-footer a, .er-footer span { color: #c6d0c7; font-size: 12px; }
.er-footer ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.er-footer strong { margin-bottom: 10px; color: #d07a5b; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.er-footer a:hover { color: #fff; }
.er-copyright { position: absolute; bottom: 35px; left: 5vw; color: #95a299; font-size: 11px; }

.er-404 { min-height: 60vh; display: grid; place-items: center; padding: 80px 5vw; text-align: center; }
.er-404 strong { display: block; color: var(--er-rust); font-family: var(--er-serif); font-size: clamp(80px, 15vw, 180px); line-height: .8; }
.er-404 h1 { font-family: var(--er-serif); font-size: clamp(38px, 5vw, 64px); font-weight: 400; }

/* Lecture confortable des contenus éditoriaux. */
.er-section p, .er-intro p, .er-copy-grid p, .er-dark p, .er-legal p,
.elementor-widget-text-editor .elementor-widget-container { text-align: justify; text-justify: inter-word; }

/* En-têtes de section : alignés sur la largeur éditoriale en ordinateur. */
.er-section-head { width: min(1180px, 90vw); margin-right: auto; margin-left: auto; }
.er-wrap .er-section-head { width: 100%; }

/* Complianz reprend la charte E-Renov. */
#cmplz-cookiebanner-container .cmplz-cookiebanner { background: var(--er-cream); border: 1px solid rgba(35,66,54,.18); border-radius: 0; box-shadow: 0 18px 55px rgba(35,66,54,.18); color: var(--er-green); }
#cmplz-cookiebanner-container .cmplz-title, #cmplz-cookiebanner-container .cmplz-category-title { color: var(--er-green); font-family: var(--er-serif); }
#cmplz-cookiebanner-container .cmplz-btn { border-color: var(--er-rust); border-radius: 0; font-family: var(--er-sans); font-weight: 800; }
#cmplz-cookiebanner-container .cmplz-accept { background: var(--er-rust); color: #fff; }
#cmplz-cookiebanner-container .cmplz-deny, #cmplz-cookiebanner-container .cmplz-view-preferences { background: transparent; color: var(--er-green); }
#cmplz-cookiebanner-container a, #cmplz-cookiebanner-container .cmplz-link { color: var(--er-rust); }
#cmplz-cookiebanner-container a:hover, #cmplz-cookiebanner-container .cmplz-link:hover { color: var(--er-green); }

@media (max-width: 980px) {
  .er-header { grid-template-columns: 1fr auto auto; min-height: 88px; backdrop-filter: none; }
  .er-menu-toggle { position: relative; z-index: 1001; display: block; }
  .er-nav { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; overflow-y: auto; padding: 105px 24px 40px; visibility: hidden; opacity: 0; background: var(--er-cream); transition: opacity .25s, visibility .25s; }
  .menu-open .er-nav { z-index: 999; visibility: visible; opacity: 1; }
  .er-nav ul { flex-direction: column; gap: 8px; text-align: center; font-family: var(--er-serif); font-size: clamp(30px, 7vw, 54px); font-weight: 400; }
  .er-nav a { min-height: 56px; }
  .er-nav .sub-menu { position: static; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; visibility: visible; opacity: 1; pointer-events: auto; transform: none; font-family: var(--er-sans); font-size: 14px; font-weight: 700; }
  .er-nav .menu-item-has-children:hover > .sub-menu, .er-nav .menu-item-has-children:focus-within > .sub-menu { transform: none; }
  .er-nav .sub-menu a { min-height: 40px; justify-content: center; padding: 5px 12px; white-space: normal; }
  .er-hero, .er-service-hero, .er-intro-grid, .er-section-head, .er-dark-grid, .er-contact-grid { grid-template-columns: 1fr; }
  .er-hero { min-height: auto; }
  .er-hero-media, .er-service-hero-media { min-height: 500px; margin: 0 5vw 65px; }
  .er-intro-grid, .er-section-head { gap: 30px; }
  .er-cards-3 { grid-template-columns: 1fr; }
  .er-cards-3 article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--er-line); }
  .er-cards-3 article:last-child { border-bottom: 0; }
  .er-footer { grid-template-columns: 1fr 1fr; }
  .er-footer > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .er-kicker { text-align: center; }
  .er-topbar { justify-content: center; text-align: center; }
  .er-topbar span:first-child { display: none; }
  .er-header { grid-template-columns: 1fr auto; padding: 10px 4vw; }
  .er-logo img, .custom-logo { width: 150px; height: 55px; }
  .er-header-cta { display: none; }
  .er-hero-copy, .er-service-hero-copy, .er-inner-hero .er-wrap,
  .er-section-head, .er-intro-grid > div, .er-copy-grid > div,
  .elementor-widget-heading:not(.er-section) .elementor-widget-container,
  .elementor-widget-button .elementor-widget-container { text-align: center; }
  .er-actions { justify-content: center; }
  .er-section h3, .er-section .elementor-widget-heading .elementor-heading-title { text-align: left; }
  .er-section-head { width: min(100% - 32px, 1180px); }
  .er-wrap .er-section-head { width: 100%; }
  .er-hero-copy, .er-service-hero-copy { padding: 65px 6vw 45px; }
  .er-visual-title { font-size: 56px; }
  .er-hero-media, .er-service-hero-media { min-height: 350px; margin: 0; border-radius: 0; }
  .er-trust, .er-service-grid, .er-copy-grid, .er-form-grid, .er-contact-cards { grid-template-columns: 1fr; }
  .er-trust > div { border-right: 0; border-bottom: 1px solid var(--er-line); }
  .er-trust > div:last-child { border-bottom: 0; }
  .er-service-card { min-height: 470px; }
  .er-service-card img { height: 220px; }
  .er-section, .er-dark { padding: 70px 0; }
  .er-intro { padding: 70px 0 50px; }
  .er-inner-hero { min-height: 400px; }
  .er-inner-hero .er-wrap { padding-block: 65px; }
  .er-quote-band { margin: 55px auto; padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .er-contact-cards article:nth-child(odd) { border-right: 0; }
  .er-form { padding: 22px; }
  .er-legal article { grid-template-columns: 1fr; gap: 15px; }
  .er-footer { grid-template-columns: 1fr; padding-bottom: 125px; }
  .er-footer > div:first-child { grid-column: auto; }
}

.er-quote-band .er-btn { background: var(--er-rust); border-color: transparent; color: #fff; }
.er-quote-band .er-btn:hover { background: var(--er-green); border-color: var(--er-rust); color: #fff; }
.er-quote-band .er-btn { width: 185px; min-width: 185px; flex-shrink: 0; }
.er-faq summary { font-family: var(--er-serif); font-weight: 700; color: var(--er-green); }