/* ============================================================
   DIM ÉNERGIE — Shared stylesheet
   Used by: climatisation.html, froid-industriel.html, ventilation.html
============================================================ */

:root {
  --blue: #0E4DA4;
  --blue-dark: #0a3a7e;
  --blue-light: #1a6dd4;
  --orange: #E85D0A;
  --orange-dark: #c44d08;
  --dark: #1E2A3A;
  --dark2: #162030;
  --white: #FFFFFF;
  --gray-light: #F4F6FA;
  --gray-mid: #E0E6F0;
  --gray-text: #5a6a80;
  --text: #1E2A3A;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(14,77,164,0.10);
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* Skip link */
.skip-link { position: absolute; top: -50px; left: 1rem; background: var(--orange); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius); font-size: .875rem; font-weight: 600; z-index: 9999; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: var(--dark2); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; height: 68px; gap: 2rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 38px; height: 38px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: .04em; line-height: 1; }
.logo-sub { font-size: .65rem; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
nav { flex: 1; display: flex; align-items: center; gap: .25rem; }
nav a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .875rem; font-weight: 500; padding: .4rem .75rem; border-radius: 6px; transition: color .15s, background .15s; white-space: nowrap; }
nav a:hover, nav a:focus { color: var(--white); background: rgba(255,255,255,.08); }
nav a.active { color: var(--white); background: rgba(14,77,164,.4); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: .5rem 1.2rem !important; border-radius: 6px !important; font-weight: 600 !important; display: flex; align-items: center; gap: .4rem; transition: background .15s !important; }
.nav-cta:hover, .nav-cta:focus { background: var(--orange-dark) !important; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: .4rem; cursor: pointer; margin-left: auto; }

/* Breadcrumb — invisible visuellement, conservé pour le SEO */
.breadcrumb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Page hero */
.page-hero { background: var(--dark2); padding: 4rem 1.5rem 3.5rem; position: relative; overflow: hidden; }
.page-hero-pattern { position: absolute; inset: 0; opacity: .05; pointer-events: none; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-tag { display: inline-flex; align-items: center; gap: .4rem; background: rgba(14,77,164,.4); border: 1px solid rgba(26,109,212,.4); color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 600; padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .1em; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: .01em; margin-bottom: 1.1rem; }
.page-hero h1 span { color: var(--orange); }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 600px; margin-bottom: 2rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--orange); color: var(--white); font-weight: 600; font-size: 1rem; padding: .85rem 2rem; border-radius: var(--radius); text-decoration: none; transition: background .15s, transform .1s; border: none; cursor: pointer; }
.btn-primary:hover, .btn-primary:focus { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--white); font-weight: 500; font-size: 1rem; padding: .85rem 2rem; border-radius: var(--radius); text-decoration: none; border: 1.5px solid rgba(255,255,255,.3); transition: border-color .15s, background .15s; }
.btn-outline:hover, .btn-outline:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-blue { display: inline-flex; align-items: center; gap: .5rem; background: var(--blue); color: var(--white); font-weight: 600; font-size: .95rem; padding: .75rem 1.75rem; border-radius: var(--radius); text-decoration: none; transition: background .15s; }
.btn-blue:hover { background: var(--blue-dark); }

/* Section helpers */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: .75rem; }
.section-label::before { content: ''; width: 18px; height: 2px; background: var(--orange); display: block; }
h2 { font-family: var(--font-head); font-size: clamp(1.75rem,3.5vw,2.5rem); font-weight: 700; color: var(--text); line-height: 1.15; letter-spacing: .01em; }
h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.25; }

/* Intro block */
.intro-section { padding: 4.5rem 1.5rem; }
.intro-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: flex-start; }
.intro-content h2 { margin-bottom: 1.25rem; }
.intro-content p { color: var(--gray-text); font-size: .975rem; line-height: 1.8; margin-bottom: 1.25rem; }
.intro-visual { background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%); border-radius: var(--radius-lg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.intro-visual .big-icon { width: 100px; height: 100px; opacity: .2; }
.intro-visual .visual-label { position: absolute; bottom: 1.25rem; left: 1.25rem; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); opacity: .5; letter-spacing: .06em; text-transform: uppercase; }

/* Sub-services grid */
.sub-services { padding: 4rem 1.5rem; background: var(--gray-light); }
.sub-services-header { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.sub-services-header p { color: var(--gray-text); margin-top: .75rem; font-size: .975rem; }
.sub-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.sub-card { background: var(--white); border: 1.5px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sub-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.sub-card-icon { width: 46px; height: 46px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.sub-card-icon svg { width: 22px; height: 22px; }
.sub-card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.sub-card p { font-size: .875rem; color: var(--gray-text); line-height: 1.65; }

/* Why us */
.why-section { padding: 4.5rem 1.5rem; background: var(--blue); }
.why-inner { max-width: 1200px; margin: 0 auto; }
.why-header { text-align: center; margin-bottom: 2.5rem; }
.why-header h2 { color: var(--white); }
.why-header p { color: rgba(255,255,255,.7); margin-top: .75rem; font-size: .975rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.why-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.why-num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: .5rem; }
.why-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.why-desc { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.55; }

/* Process steps */
.process-section { padding: 4.5rem 1.5rem; }
.process-header { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.process-header p { color: var(--gray-text); margin-top: .75rem; font-size: .975rem; }
.process-steps { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.process-step { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-mid); }
.process-step:last-child { border-bottom: none; }
.step-num { width: 48px; height: 48px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--white); flex-shrink: 0; }
.step-content h3 { margin-bottom: .35rem; }
.step-content p { font-size: .9rem; color: var(--gray-text); line-height: 1.7; }

/* CTA band */
.cta-band { background: var(--orange); padding: 3rem 1.5rem; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem,3vw,2rem); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); font-size: .975rem; margin-bottom: 1.75rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Tarifs / info block */
.info-block { background: var(--gray-light); padding: 4rem 1.5rem; }
.info-block-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.info-card { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--gray-mid); padding: 2rem; }
.info-card h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.info-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--text); }
.info-list li::before { content: ''; width: 18px; height: 18px; background: var(--blue); border-radius: 50%; flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5 9l3 3 5-5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* FAQ mini */
.faq-mini { padding: 4rem 1.5rem; }
.faq-mini-inner { max-width: 800px; margin: 0 auto; }
.faq-mini-header { margin-bottom: 2rem; }
.faq-item { border: 1.5px solid var(--gray-mid); border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; transition: border-color .2s; }
.faq-item.open { border-color: var(--blue); }
.faq-question { width: 100%; background: none; border: none; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--text); text-align: left; }
.faq-question:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s; color: var(--blue); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.1rem; font-size: .9rem; color: var(--gray-text); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* Zone pills */
.zone-mini { background: var(--dark2); padding: 3rem 1.5rem; text-align: center; }
.zone-mini h2 { color: var(--white); margin-bottom: .75rem; }
.zone-mini p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 1.75rem; }
.zone-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.zone-pill { background: rgba(14,77,164,.35); border: 1px solid rgba(26,109,212,.3); color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 500; padding: .4rem .9rem; border-radius: 20px; }
.zone-pill.hl { background: var(--blue); border-color: var(--blue-light); color: var(--white); font-weight: 600; }

/* Footer */
footer { background: var(--dark2); padding: 3rem 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .875rem; line-height: 1.65; margin: 1rem 0; max-width: 320px; }
.footer-col h3 { font-family: var(--font-head); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.35); text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* Mobile CTA */
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .intro-inner { grid-template-columns: 1fr; gap: 2rem; }
  .intro-visual { aspect-ratio: 16/6; }
  .info-block-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 960px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark2); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); gap: .25rem; z-index: 99; }
  .menu-toggle { display: flex; align-items: center; }
  .nav-inner { position: relative; }
}
@media (max-width: 768px) {
  .intro-inner, .why-grid { gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .mobile-cta { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; background: var(--dark2); border-top: 1px solid rgba(255,255,255,.1); position: sticky; bottom: 0; z-index: 50; }
  .mobile-cta a { flex: 1; padding: .75rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: .4rem; }
  .mobile-cta .cta-call { background: var(--orange); color: var(--white); }
  .mobile-cta .cta-devis { background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.2); }
}
@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .process-step { grid-template-columns: 44px 1fr; gap: 1rem; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
