/* ENERGY SPIRIT CONSTRUCT — passe commune V3.
   Adaptation du commun.css de Nemelec : contrastes, Q de titrage et carte
   « Nos chantiers ». Chargé en dernier, après le socle Eco et le CSS de page. */

:root {
  /* #c15300 sur #fbfcfd = 4,54:1 ; #ffb36e sur #0a2b42 = 8,30:1. */
  --accent-texte: #c15300;
  --accent-texte-fonce: #a94700;
  --accent-sur-sombre: #ffb36e;
  /* #0b0b0b sur l'orange foncé #c75a07 = 4,59:1. */
  --sur-accent: #0b0b0b;
}

/* L'orange de marque reste inchangé. Sur #eb6b09, #0b0b0b atteint 6,22:1. */
:is(a, button, span)[style*="background:var(--accent)"][style*="color:var(--sur-accent)"],
:is(a, button, span)[style*="background: var(--accent)"][style*="color: var(--sur-accent)"] {
  color: #0b0b0b !important;
}

/* Accent posé sur un fond sombre — transposition exacte de la mécanique Nemelec. */
:is(footer, .fond-sombre, section[style*="background:rgb(var(--overlay-rgb))"], [data-reveal="zoom"][style*="background:var(--accent)"], [data-reveal="zoom"][style*="background: var(--accent)"])
  :is([style*="color:var(--accent"], [style*="color: var(--accent"]):not([style*="background"]) {
  color: var(--accent-sur-sombre) !important;
}

footer span[style*="rgba(255,255,255,.07)"][style*="color:var(--accent"] {
  color: var(--accent-sur-sombre) !important;
}

.topbar a:hover,
.topbar a:hover svg,
footer .hvpied:hover,
footer .hv14:hover,
footer .hv14:hover svg,
footer .hv15:hover,
section[style*="background:rgb(var(--overlay-rgb))"] .hv15:hover {
  color: var(--accent-sur-sombre) !important;
}

footer .hvpied:hover span { color: #0b0b0b !important; }

/* Le bouton contour du bandeau passe sur un orange plus foncé : blanc = 5,12:1. */
.hv20:hover {
  border-color: #b84d00 !important;
  background: #b84d00 !important;
  color: #fff !important;
}

[data-faq-item].open [data-faq-icon] { color: #0b0b0b !important; }

/* Une seule bulle d'appel, qu'elle vienne du thème ou du repli commun.js. */
.esm-call,
a[aria-label="Appeler"][href^="tel:"] {
  width: 54px !important;
  height: 54px !important;
  right: 18px !important;
  bottom: 18px !important;
}

.esm-call svg,
a[aria-label="Appeler"][href^="tel:"] svg {
  fill: #0b0b0b !important;
}

@media (max-width: 520px) {
  .esm-call,
  a[aria-label="Appeler"][href^="tel:"] {
    width: 50px !important;
    height: 50px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}

/* Carte « Nos chantiers » reprise du modèle principal Nemelec. */
.article-realisations {
  max-width: 820px;
  margin: 40px 0;
  padding: 36px 28px;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--fond));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 24px;
}

.article-realisations .reno-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--accent-texte);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-realisations h3 {
  margin: 0 0 20px;
  color: var(--titre);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}

.article-realisations .reno-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.article-realisations a.reno-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 40px;
  background: var(--accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
  color: #0b0b0b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.article-realisations a.reno-btn svg {
  width: 15px;
  height: 15px;
  transition: transform .18s ease;
}

.article-realisations a.reno-btn:hover {
  background: #b84d00;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent);
  color: #fff;
  transform: translateY(-2px);
}

.article-realisations a.reno-btn:hover svg { transform: translateX(4px); }
.article-realisations a.reno-btn:focus-visible { outline: 3px solid #b84d00; outline-offset: 3px; }

@media (max-width: 520px) {
  .article-realisations { margin: 32px 0; padding: 28px 18px; border-radius: 20px; }
  .article-realisations a.reno-btn { padding: 12px 18px; }
}

/* Le Q majuscule de Bricolage Grotesque est remplacé par celui de Plus Jakarta Sans. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../eco/fonts/plus-jakarta-sans-latin.woff2) format('woff2-variations'),
       url(../eco/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0051;
}

.de-title[tabindex="-1"]:focus,
.de-title[tabindex="-1"]:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .article-realisations a.reno-btn,
  .article-realisations a.reno-btn svg { transition: none; }
  .article-realisations a.reno-btn:hover,
  .article-realisations a.reno-btn:hover svg { transform: none; }
  a[aria-label="Appeler"][href^="tel:"] > span { animation: none !important; }
}

/* Logo du pied : le logo est opaque (fond blanc) ; le filtre blanc du thème en ferait un rectangle blanc. On le pose tel quel sur sa plaque blanche (Claude, 16/10/2026). */
html[data-mode="clair"] .footer-logo{filter:none!important;border-radius:8px;padding:6px 10px;background:#fff;box-sizing:content-box}
