/*
Theme Name: Energie Wood Linked Subpages Premium
Theme URI: https://energiewood.fr
Author: Energie Wood
Description: Thème WordPress premium Energie Wood avec textes personnalisables, pages métiers détaillées, boutons Découvrir liés aux sous-pages et SEO intégré.
Version: 7.0.0
Text Domain: energie-wood-editable
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f3f1ec; color: #0b0f19; }
a { color: inherit; text-decoration: none; }
.ew-site { min-height: 100vh; overflow-x: hidden; }

@keyframes ewFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ewSlowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes ewFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.ew-topline { background: #080b12; color: #d8dde8; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ew-topline-inner { max-width: 1380px; margin: auto; padding: 10px 30px; display: flex; justify-content: space-between; gap: 24px; }
.ew-navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(11,15,25,.08); }
.ew-nav-inner { max-width: 1380px; margin: auto; padding: 18px 30px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.ew-brand { display: flex; align-items: center; gap: 14px; }
.ew-logo { width: 50px; height: 50px; background: #0b0f19; color: white; display: grid; place-items: center; font-weight: 950; letter-spacing: -.08em; box-shadow: 0 12px 35px rgba(11,15,25,.18); }
.ew-custom-logo { width: 50px; height: 50px; object-fit: contain; }
.ew-brand-title { font-size: 22px; font-weight: 950; text-transform: uppercase; letter-spacing: -.05em; }
.ew-brand-sub { margin-top: 3px; font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .18em; }
.ew-nav-links { display: flex; gap: 16px; align-items: center; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: #303746; }
.ew-nav-links a { position: relative; padding: 8px 0; }
.ew-nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: #10b981; transition: .25s ease; }
.ew-nav-links a:hover::after { width: 100%; }
.ew-btn { border: 0; cursor: pointer; padding: 15px 22px; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; transition: .25s ease; display: inline-block; }
.ew-btn-dark { background: #0b0f19; color: white; }
.ew-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11,15,25,.22); }
.ew-btn-green { background: #10b981; color: #06130f; }
.ew-btn-green:hover { background: #34d399; transform: translateY(-2px); box-shadow: 0 18px 45px rgba(16,185,129,.25); }
.ew-btn-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: white; }
.ew-btn-glass:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.ew-hero { position: relative; min-height: 790px; color: white; overflow: hidden; display: flex; align-items: center; }
.ew-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: ewSlowZoom 18s ease-in-out infinite alternate; }
.ew-hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,18,.95) 0%, rgba(7,10,18,.84) 44%, rgba(7,10,18,.25) 100%); }
.ew-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(16,185,129,.22), transparent 30%), linear-gradient(180deg, transparent 60%, rgba(11,15,25,.45)); }
.ew-hero-inner { position: relative; z-index: 2; max-width: 1380px; width: 100%; margin: auto; padding: 95px 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ew-eyebrow { color: #34d399; font-size: 13px; font-weight: 950; text-transform: uppercase; letter-spacing: .24em; }
.ew-hero h1 { margin: 22px 0 0; max-width: 850px; font-size: clamp(52px, 7vw, 104px); line-height: .88; letter-spacing: -.085em; text-transform: uppercase; animation: ewFadeUp .7s ease both; }
.ew-hero-copy { margin-top: 32px; max-width: 690px; color: #d4d8e1; font-size: 19px; line-height: 1.75; animation: ewFadeUp .7s ease .08s both; }
.ew-hero-actions { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; animation: ewFadeUp .7s ease .16s both; }
.ew-premium-card { animation: ewFadeUp .8s ease .18s both, ewFloat 7s ease-in-out infinite; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); backdrop-filter: blur(18px); padding: 28px; box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.ew-premium-card-image { height: 320px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.ew-premium-card-image::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.55)); }
.ew-badge { position: absolute; left: 24px; bottom: 24px; right: 24px; background: white; color: #0b0f19; padding: 22px; z-index: 1; }
.ew-badge span { display: block; color: #10b981; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .18em; }
.ew-badge strong { display: block; margin-top: 8px; font-size: 25px; line-height: 1; text-transform: uppercase; letter-spacing: -.05em; }
.ew-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.14); margin-top: 18px; }
.ew-metric { background: rgba(8,11,18,.9); padding: 24px 18px; }
.ew-metric strong { display: block; color: #34d399; font-size: 34px; line-height: 1; }
.ew-metric span { display: block; margin-top: 9px; color: #cbd2df; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.ew-section { max-width: 1380px; margin: auto; padding: 105px 30px; }
.ew-section-head { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 46px; }
.ew-section-title { margin: 14px 0 0; max-width: 790px; font-size: clamp(38px, 5vw, 72px); line-height: .92; letter-spacing: -.07em; text-transform: uppercase; }
.ew-section-desc { max-width: 510px; color: #5f6877; font-size: 17px; line-height: 1.75; }
.ew-service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ew-service-card { min-height: 520px; position: relative; overflow: hidden; background: #0b0f19; color: white; box-shadow: 0 28px 70px rgba(11,15,25,.14); }
.ew-service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; transition: .7s ease; }
.ew-service-card:hover img { transform: scale(1.08); opacity: .7; }
.ew-service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,25,.1), rgba(11,15,25,.88)); }
.ew-service-content { position: relative; z-index: 1; height: 100%; min-height: 520px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.ew-service-number { font-size: 13px; font-weight: 950; color: #34d399; letter-spacing: .22em; }
.ew-service-card h3 { margin: 260px 0 14px; font-size: 35px; line-height: .96; letter-spacing: -.06em; text-transform: uppercase; }
.ew-service-card p { margin: 0; color: #d7dce6; line-height: 1.65; }
.ew-service-link { margin-top: 28px; color: #34d399; font-weight: 950; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }

.ew-black { background: #080b12; color: white; }
.ew-split { max-width: 1380px; margin: auto; padding: 110px 30px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 58px; align-items: start; }
.ew-black .ew-section-desc { color: #c7ccd6; }
.ew-sector-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.ew-sector { min-height: 180px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; transition: .25s ease; }
.ew-sector:hover { transform: translateY(-5px); border-color: rgba(52,211,153,.62); background: rgba(255,255,255,.11); }
.ew-sector strong { font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: -.05em; }
.ew-sector span { color: #34d399; font-weight: 950; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.ew-lux-band { background: #10b981; color: #06130f; }
.ew-lux-inner { max-width: 1380px; margin: auto; padding: 72px 30px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.ew-lux-inner h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: .92; letter-spacing: -.07em; text-transform: uppercase; }
.ew-lux-inner p { margin: 0; font-size: 18px; line-height: 1.75; }
.ew-commit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ew-commit { background: white; border: 1px solid rgba(11,15,25,.08); padding: 26px; min-height: 120px; display: flex; align-items: center; gap: 16px; font-weight: 850; box-shadow: 0 14px 38px rgba(11,15,25,.055); }
.ew-check { width: 26px; height: 26px; border-radius: 50%; background: #10b981; display: grid; place-items: center; flex: 0 0 26px; }
.ew-check::after { content: "✓"; font-size: 15px; font-weight: 950; color: #06130f; }
.ew-contact { margin: 0 30px 30px; color: white; background-size: cover; background-position: center; position: relative; }
.ew-contact::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(8,11,18,.98), rgba(8,11,18,.83)); }
.ew-contact-inner { position: relative; z-index: 1; max-width: 1380px; margin: auto; padding: 90px 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.ew-contact h2 { margin: 14px 0 0; font-size: clamp(42px, 6vw, 84px); line-height: .88; letter-spacing: -.08em; text-transform: uppercase; }
.ew-contact p { color: #cbd2df; font-size: 18px; line-height: 1.75; max-width: 650px; }
.ew-contact-box { background: white; color: #0b0f19; padding: 34px; box-shadow: 0 34px 90px rgba(0,0,0,.28); }
.ew-contact-line { border-bottom: 1px solid #e5e7eb; padding: 19px 0; display: flex; justify-content: space-between; gap: 22px; }
.ew-contact-line span { color: #6b7280; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .14em; }
.ew-contact-line strong { text-align: right; }
.ew-input { width: 100%; padding: 16px; border: 1px solid #d1d5db; margin-top: 12px; font-size: 15px; }
textarea.ew-input { min-height: 110px; resize: vertical; }
.ew-success { background:#ecfdf5; color:#065f46; padding:14px; margin-bottom:12px; font-weight:700; }
.ew-error { background:#fef2f2; color:#991b1b; padding:14px; margin-bottom:12px; font-weight:700; }
.ew-footer { background: #080b12; color: #9298a4; padding: 28px; text-align: center; font-size: 13px; }

.ew-page { max-width: 1000px; margin: 0 auto; padding: 80px 28px; }
.ew-page h1 { font-size: 52px; line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.ew-page p { font-size: 18px; line-height: 1.75; color:#4b5563; }

@media (max-width: 1050px) {
  .ew-nav-links { display: none; }
  .ew-hero-inner, .ew-split, .ew-lux-inner, .ew-contact-inner { grid-template-columns: 1fr; }
  .ew-service-grid, .ew-commit-grid { grid-template-columns: 1fr; }
  .ew-metrics { grid-template-columns: repeat(2,1fr); }
  .ew-section-head { display: block; }
  .ew-section-desc { margin-top: 22px; }
}
@media (max-width: 650px) {
  .ew-topline { display: none; }
  .ew-nav-inner { padding: 14px 18px; }
  .ew-brand-sub { display: none; }
  .ew-nav-inner .ew-btn { display: none; }
  .ew-hero-inner, .ew-section, .ew-split, .ew-lux-inner, .ew-contact-inner { padding-left: 18px; padding-right: 18px; }
  .ew-hero { min-height: auto; }
  .ew-premium-card { animation: ewFadeUp .8s ease .18s both; }
  .ew-sector-grid, .ew-metrics { grid-template-columns: 1fr; }
  .ew-contact { margin: 0; }
  .ew-contact-line { display: block; }
  .ew-contact-line strong { display: block; text-align: left; margin-top: 8px; }
}

/* V5 — Pages Découvrir, SEO, gaz, compteurs, IRVE et marchés multi-techniques */
.ew-service-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ew-service-link { display:inline-block; }
.ew-sector { color: #fff; }
.ew-confirm { padding-top: 70px; }
.ew-confirm-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ew-confirm-grid div, .ew-confirm-grid a { background:#fff; color:#0b0f19; border:1px solid rgba(11,15,25,.08); padding:24px; font-weight:850; box-shadow:0 14px 38px rgba(11,15,25,.055); transition:.25s ease; }
.ew-confirm-grid a:hover { transform: translateY(-4px); border-color:#10b981; }
.ew-page-main { background:#f3f1ec; }
.ew-page-hero { position:relative; color:#fff; background:linear-gradient(90deg, rgba(8,11,18,.98), rgba(8,11,18,.78)), url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=80'); background-size:cover; background-position:center; padding:110px 30px 92px; }
.ew-page-hero > * { max-width: 1180px; margin-left:auto; margin-right:auto; }
.ew-page-hero h1 { margin:16px auto 0; font-size: clamp(44px, 7vw, 92px); line-height:.9; letter-spacing:-.08em; text-transform:uppercase; }
.ew-page-hero p { color:#cbd2df; font-size:20px; line-height:1.7; max-width:760px; margin:24px auto 0; }
.ew-page-content { max-width: 1180px; margin: 0 auto; padding: 75px 30px 90px; }
.ew-page-content h2 { margin:0 0 22px; font-size: clamp(34px,4vw,58px); line-height:.95; letter-spacing:-.06em; text-transform:uppercase; }
.ew-page-content h3 { margin:42px 0 18px; font-size:26px; text-transform:uppercase; letter-spacing:-.04em; }
.ew-page-content p { color:#4b5563; font-size:18px; line-height:1.8; max-width:900px; }
.ew-page-content ul { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; padding:0; margin:26px 0; list-style:none; }
.ew-page-content li { background:#fff; border:1px solid rgba(11,15,25,.08); padding:20px 22px; font-weight:800; box-shadow:0 14px 38px rgba(11,15,25,.055); }
.ew-page-content li::before { content:'✓'; display:inline-grid; place-items:center; width:22px; height:22px; margin-right:12px; border-radius:50%; background:#10b981; color:#06130f; font-weight:950; font-size:13px; }
.ew-page-cta { margin-top:60px; padding:42px; background:#080b12; color:#fff; }
.ew-page-cta h2 { color:#fff; }
.ew-page-cta p { color:#cbd2df; }
@media (max-width: 1180px) { .ew-service-grid-4 { grid-template-columns: repeat(2, 1fr); } .ew-confirm-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 650px) { .ew-service-grid-4, .ew-confirm-grid, .ew-page-content ul { grid-template-columns:1fr; } .ew-page-hero, .ew-page-content { padding-left:18px; padding-right:18px; } }
