/*
Theme Name: Optiheat
Author: Optiheat
Description: Thème vitrine WordPress pour Optiheat — chauffage, sanitaire et climatisation.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: optiheat
*/
:root{--navy:#102a3a;--navy2:#183b4d;--orange:#ff702b;--ink:#172b3a;--muted:#637381;--cream:#f7f7f4;--white:#fff;--line:#e3e8eb;--radius:16px;--shadow:0 12px 35px rgba(16,42,58,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}.container{width:min(1160px,calc(100% - 40px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(16,42,58,.98);color:white;box-shadow:0 4px 20px #071c2930}.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:82px}.brand{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:.08em;font-size:1.35rem;line-height:1.1}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--orange);font-size:1.25rem}.brand small{display:block;font-size:.58rem;letter-spacing:.12em;font-weight:500;margin-top:5px}.main-nav{display:flex;align-items:center;gap:24px;font-size:.9rem}.main-nav a:hover{color:#ffb18b}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:9px;padding:13px 19px;background:var(--orange);color:#fff;font-weight:750;transition:.2s;cursor:pointer}.btn:hover{background:#e85b18;transform:translateY(-1px)}.btn-outline{border:1px solid #ffffffa8;background:transparent}.btn-outline:hover{background:#ffffff18}.menu-toggle{display:none;background:none;border:1px solid #ffffff66;color:#fff;border-radius:8px;padding:8px 12px}.hero{position:relative;isolation:isolate;color:#fff;background:var(--navy);overflow:hidden}.hero:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(9,27,39,.94) 0%,rgba(9,27,39,.8) 48%,rgba(9,27,39,.18) 100%),url('assets/photos/installation.jpg') center/cover}.hero-inner{padding:105px 0 78px;max-width:720px}.eyebrow{color:var(--orange);font-size:.78rem;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.hero h1{font-size:clamp(2.6rem,6vw,4.8rem);line-height:1.02;letter-spacing:-.045em;margin:18px 0 22px;max-width:700px}.hero h1 span{color:var(--orange)}.hero p{font-size:1.08rem;max-width:600px;color:#e3e9ed}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.trust-row{display:flex;flex-wrap:wrap;gap:22px;margin-top:54px;padding-top:22px;border-top:1px solid #ffffff35;color:#f2f5f6;font-size:.88rem}.trust-row span:before{content:"✓";color:var(--orange);font-weight:900;margin-right:9px}.section{padding:82px 0}.section-soft{background:var(--cream)}.section-dark{background:var(--navy);color:#fff}.section-heading{max-width:700px;margin-bottom:35px}.section-heading h2{font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.035em;margin:10px 0 14px}.section-heading p{color:var(--muted);margin:0}.section-dark .section-heading p{color:#d3dfe5}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service-card,.project-card,.review-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.service-card img,.project-card img{display:block;width:100%;height:210px;object-fit:cover;background:#dce5e8}.service-content{padding:23px}.service-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff0e8;color:var(--orange);font-size:1.35rem;margin-top:-45px;position:relative;border:3px solid white}.service-content h3{margin:14px 0 8px;font-size:1.25rem}.service-content p,.project-card p{margin:0;color:var(--muted);font-size:.95rem}.text-link{display:inline-block;margin-top:18px;color:var(--navy);font-weight:800}.text-link:hover{color:var(--orange)}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.about-photo{min-height:430px;border-radius:var(--radius);background:linear-gradient(0deg,#102a3a44,#102a3a05),url('assets/photos/technicien.jpg') center/cover;box-shadow:var(--shadow)}.check-list{padding:0;list-style:none}.check-list li{margin:12px 0}.check-list li:before{content:"✓";display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff0e8;color:var(--orange);font-weight:900;margin-right:10px}.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.project-card img{height:230px}.project-card div{padding:18px}.project-card h3{margin:0 0 6px}.area-band{background:linear-gradient(90deg,rgba(16,42,58,.94),rgba(16,42,58,.75)),url('assets/photos/panorama.jpg') center/cover;color:#fff;padding:62px 0}.area-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.area-inner h2{font-size:clamp(1.8rem,4vw,2.8rem);margin:8px 0}.area-inner p{max-width:650px;color:#e3e9ed;margin:0}.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.review-card{padding:25px}.stars{color:#f49b27;letter-spacing:.12em}.review-card p{color:var(--muted)}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px;align-items:start}.contact-info{background:var(--navy);color:white;border-radius:var(--radius);padding:30px}.contact-info p{color:#d4e0e6}.contact-info a{color:#fff}.contact-form{padding:30px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field-full{grid-column:1/-1}.field label{font-size:.9rem;font-weight:700}.field input,.field textarea,.field select{width:100%;border:1px solid #cbd5da;border-radius:8px;padding:12px;background:#fff;color:var(--ink)}.field textarea{min-height:130px;resize:vertical}.notice{font-size:.82rem;color:var(--muted)}.site-footer{background:#0b202d;color:#d8e2e7;padding:45px 0 20px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px}.site-footer h3{color:white}.site-footer a:hover{color:var(--orange)}.footer-bottom{border-top:1px solid #ffffff24;margin-top:30px;padding-top:18px;font-size:.85rem;display:flex;justify-content:space-between;gap:16px}.mobile-call{display:none}.wp-block-image img{border-radius:12px}.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:900px){.main-nav{gap:13px;font-size:.82rem}.nav-cta{display:none}.cards,.projects,.reviews{grid-template-columns:repeat(2,1fr)}.about-grid{gap:30px}.hero-inner{padding:85px 0 65px}.contact-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.container{width:min(100% - 28px,1160px)}.nav-wrap{min-height:70px;flex-wrap:wrap}.menu-toggle{display:block}.main-nav{display:none;order:3;width:100%;padding:0 0 18px;flex-direction:column;align-items:flex-start;gap:0}.main-nav.is-open{display:flex}.main-nav a{padding:10px 0;width:100%;border-top:1px solid #ffffff20}.hero:before{background:linear-gradient(90deg,rgba(9,27,39,.92),rgba(9,27,39,.72)),url('assets/photos/installation.jpg') center/cover}.hero-inner{padding:70px 0 45px}.hero h1{font-size:2.65rem}.trust-row{gap:12px;flex-direction:column;margin-top:35px}.section{padding:58px 0}.cards,.projects,.reviews,.about-grid,.footer-grid{grid-template-columns:1fr}.about-photo{min-height:300px;order:2}.area-inner{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.field-full{grid-column:auto}.footer-bottom{flex-direction:column}.mobile-call{display:block;position:fixed;z-index:19;bottom:12px;left:12px;right:12px;text-align:center;box-shadow:0 6px 25px #0003}.site-footer{padding-bottom:85px}}

/* Logo officiel Optiheat */
.brand-logo{display:block;width:auto;height:auto;max-width:210px;max-height:58px;object-fit:contain}.site-footer .brand-logo{max-width:200px;max-height:62px}@media(max-width:680px){.brand-logo{max-width:175px;max-height:48px}}

/* Logo officiel fourni par Optiheat */
.brand-logo{display:block;width:auto;height:auto;max-width:86px;max-height:70px;object-fit:contain}
.site-footer .brand-logo{max-width:100px;max-height:82px}
@media(max-width:680px){.brand-logo{max-width:68px;max-height:58px}}

/* En-tête compact et pages éditables */
.site-header .nav-wrap{min-height:72px;gap:16px}.site-header .brand-logo{max-height:58px;max-width:76px}.site-header .main-nav{gap:18px}.page-content{padding-block:52px;min-height:50vh}section[id]{scroll-margin-top:90px}
@media(max-width:680px){.site-header .nav-wrap{min-height:64px}.site-header .brand-logo{max-height:50px;max-width:64px}.site-header .main-nav{gap:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}

/* Photos intégrées : proportions stables, sans déformation. */
.service-card>img,.project-card>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center;display:block}
.service-card>img[src*="climatisation"],.project-card>img[src*="climatisation"]{object-position:center 30%}
.photo-credit{font-size:.75rem;opacity:.8;margin:14px 0 0}.photo-credit a{text-decoration:underline}

/* Lecture des pages de services et navigation accessible. */
.editorial-content{max-width:850px}.editorial-content h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.15}.editorial-content h2{margin-top:2rem;line-height:1.25}.editorial-content p{max-width:75ch}.editorial-content a:not(.btn){text-decoration:underline;text-underline-offset:3px}.service-contact{border-top:1px solid var(--line);margin-top:36px;padding-top:16px}.skip-link{position:fixed;left:16px;top:-100px;z-index:9999;background:#fff;color:var(--navy);padding:10px}.skip-link:focus{top:12px}:focus-visible{outline:3px solid #e85b18;outline-offset:4px}

/* Pages chauffage et climatisation. */
.service-intro{border-left:4px solid var(--orange);padding:6px 0 6px 26px;margin:24px 0 32px}.service-kicker{color:#b74612;font-size:.78rem;letter-spacing:.08em;font-weight:750;text-transform:uppercase}.service-lead{font-size:clamp(1.25rem,2.5vw,1.65rem);line-height:1.45;font-weight:650}.service-summary{display:flex;gap:10px;flex-wrap:wrap;padding:18px 0 30px}.service-summary a{border:1px solid var(--line);padding:8px 12px;border-radius:30px;font-size:.88rem}.service-features{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0 38px}.service-features article{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--cream)}.service-features h3{font-size:1.12rem;margin:0 0 12px;line-height:1.35}.service-features p{margin:0}.service-panel{background:#f3f6f7;padding:28px;border-radius:16px;margin:32px 0}.service-panel h2{margin-top:0}.service-steps{padding-left:24px}.service-steps li{padding:0 0 10px 10px}.service-steps li::marker{font-weight:800;color:#b74612}.service-steps h3{margin:12px 0 6px}.service-steps p{margin-top:0}.service-faq{margin-top:36px}.service-faq details{border-bottom:1px solid var(--line);padding:17px 0}.service-faq summary{cursor:pointer;font-weight:700;line-height:1.45;padding-right:16px}.service-faq details[open] summary{color:#b74612}.service-faq details p{margin-bottom:4px}
@media(max-width:680px){.service-features{grid-template-columns:1fr}.service-panel{padding:22px}.service-intro{padding-left:18px}.service-summary a{font-size:.82rem}}
