/*
Theme Name: SN Innovations Thermiques
Theme URI: https://sninnovationsthermiques.fr
Author: SN Innovations Thermiques
Description: Theme vitrine conversion pour plomberie, pompe a chaleur et climatisation a Chartres.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: sn-innovations-thermiques
*/

:root {
  --night: #0f172a;
  --orange: #f4510b;
  --orange-dark: #d9430a;
  --soft: #f6f8fb;
  --line: #dbe3ef;
  --slate: #475569;
  --white: #fff;
  color: var(--night);
  background: var(--white);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--night);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.bg-soft { background: var(--soft); }
.bg-night { background: var(--night); color: white; }
.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-night { color: var(--night); }
.text-orange { color: var(--orange); }
.text-slate { color: var(--slate); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.main-nav a:hover, .main-nav .urgent { color: var(--orange); }
.nav-dropdown { position: relative; padding: 30px 0; }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .18s ease;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  padding: 8px;
}
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-panel a { display: block; padding: 12px 14px; border-radius: 6px; color: var(--night); }
.nav-dropdown-panel a:hover { background: rgba(244,81,11,.08); color: var(--orange); }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-orange {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 10px rgba(15,23,42,.16);
  border: 1px solid rgba(244,81,11,.2);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.18); }
.btn-orange:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(15,23,42,.14); }
.btn-night { background: var(--night); color: white; }
.btn-light { border: 1px solid var(--line); background: white; color: var(--night); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.btn-block { width: 100%; }
.cta-small { display: block; font-size: 12px; opacity: .92; margin-top: 2px; }

.hero { overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fff 72%, rgba(244,81,11,.05) 100%); padding: 70px 0; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--night); color: white; padding: 9px 16px; font-size: 12px; font-weight: 900; margin-bottom: 24px; }
h1 { margin: 0; max-width: 860px; font-size: clamp(44px, 5vw, 68px); line-height: 1.04; letter-spacing: -.015em; font-weight: 950; }
.hero-lead { margin-top: 26px; max-width: 700px; color: #5b6472; font-size: 18px; line-height: 1.75; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.proofs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 900; }
.proofs span { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 15px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.trust-row { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--night); font-weight: 900; }
.trust-icon img { width: 38px; height: 32px; object-fit: contain; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item small { color: #64748b; }

.card, .form-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
}
.form-card { padding: 28px; }
.form-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.progress { height: 6px; border-radius: 999px; background: #cbd5e1; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: var(--night); transition: width .2s ease; }
.form-step { min-height: 300px; padding-top: 24px; }
.form-step h2 { margin: 0; font-size: 21px; }
.choices { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { min-height: 96px; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 16px; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.choice.active { border-color: var(--orange); background: rgba(244,81,11,.08); }
.choice-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--night); flex: 0 0 auto; }
.choice.active .choice-icon { border-color: var(--orange); background: var(--orange); color: white; }
.choice strong { display: block; font-size: 14px; }
.choice small { color: var(--slate); }
.field { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--night); padding: 12px 14px; outline: none; box-shadow: 0 1px 4px rgba(15,23,42,.05); }
.field:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244,81,11,.1); }
.form-grid { display: grid; gap: 16px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simple-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.simple-contact-form label,
.multi-step-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--night);
  font-weight: 600;
}
.simple-contact-form .btn {
  align-self: flex-start;
}
.simple-contact-form small {
  display: block;
  margin-top: -4px;
  line-height: 1.5;
}
.form-nav { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form-error { margin-top: 14px; border-radius: 8px; background: rgba(244,81,11,.08); padding: 12px 14px; color: var(--orange); font-weight: 800; font-size: 14px; display: none; }

.cards-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { overflow: hidden; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.service-card img { width: 100%; height: 170px; object-fit: cover; filter: grayscale(30%); }
.service-card-body { padding: 24px; }
.service-card h3, .detail-card h4 { margin: 0; font-size: 22px; }
.service-card p, .detail-card p, .small-card p { color: var(--slate); line-height: 1.65; }
.tag { display: inline-flex; border-radius: 5px; background: rgba(244,81,11,.08); color: var(--orange); padding: 6px 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.icon-square { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--night); color: white; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.bullet-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.bullet-list li::before { content: "•"; color: var(--orange); margin-right: 8px; }
.text-link { color: var(--orange); font-weight: 900; font-size: 14px; }

.detail-box { margin-top: 40px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 24px; }
.detail-box h3 { margin: 0; font-size: 28px; }
.detail-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-card, .small-card { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 20px; }
.small-card { display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; }

.aides-box { display: grid; gap: 32px; grid-template-columns: 1.35fr .9fr; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 38px; background: white; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.aides-mini { margin-top: 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.aides-mini div { border: 1px solid var(--line); border-radius: 8px; padding: 15px; font-size: 14px; }
.qualipac-badge { margin-top: 22px; display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 12px 14px; font-weight: 800; }
.qualipac-badge img { width: 80px; height: 48px; object-fit: contain; }

.zone-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 32px; align-items: center; }
.dept-badges { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 900; }
.dept-badges span { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 14px; }
.dept-badges span:first-child { background: var(--night); color: white; }
.town-box { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.town-tags { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.town-tags span { border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 10px; font-size: 14px; font-weight: 700; }

.reviews-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.rating-box { border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 18px 22px; }
.stars { color: #fbbf24; letter-spacing: 1px; }
.review-card { border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 24px; }
.quote-mark { color: var(--orange); font-size: 44px; font-weight: 950; line-height: 1; }
.trust-band { background: var(--night); color: white; padding: 44px 0; }
.trust-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-band-item { display: flex; align-items: center; gap: 14px; }
.trust-band-icon { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.1); border-radius: 8px; display: grid; place-items: center; font-weight: 900; }

.contact-grid { display: grid; grid-template-columns: .75fr 1fr; gap: 40px; }
.contact-cards { margin-top: 28px; display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 16px; }
.contact-card.primary { border-color: rgba(244,81,11,.28); background: rgba(244,81,11,.05); }
.contact-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--night); color: white; }
.contact-card.primary .contact-icon { background: var(--orange); }
.contact-card small { display: block; color: var(--slate); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.form-note-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; font-size: 14px; font-weight: 900; }
.form-note-grid span { background: var(--soft); border-radius: 6px; padding: 12px; }

.site-footer { background: var(--night); color: white; padding: 62px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 38px; }
.footer-grid p, .footer-grid a { color: #cbd5e1; }
.footer-links { display: grid; gap: 12px; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; gap: 18px; color: #94a3b8; font-size: 12px; }
.mobile-call { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: none; }

.urgent-menu { margin-top: 26px; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 20px; }
.urgent-menu-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.urgent-menu-links a { border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 9px 12px; font-size: 14px; font-weight: 800; }

@media (max-width: 980px) {
  .main-nav, .site-header .desktop-call { display: none; }
  .hero-grid, .aides-box, .zone-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-row, .cards-grid, .detail-grid, .trust-band-grid { grid-template-columns: 1fr; }
  .town-tags, .aides-mini, .form-note-grid { grid-template-columns: 1fr 1fr; }
  .reviews-head { grid-template-columns: 1fr; }
  .mobile-call { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1220px); }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0; }
  .choices, .two-cols, .town-tags, .aides-mini, .form-note-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 46px; height: 46px; }
}
