:root {
  /* Orange Viessmann officiel : échantillonné sur le mask-icon du site viessmann.be (#ff3e17). */
  --brand: #ff3e17;
  --brand-dark: #e32600;
  --brand-bg: #faedeb;
  /* CTA « Appeler » : même orange Viessmann, la marque EST le call-to-action. */
  --red: #ff3e17;
  --red-dark: #e32600;
  --dark: #0a0a0a;
  --text: #333;
  --muted: #555;
  --muted-2: #666;
  --light: #f5f5f5;
  --light-2: #f9fafb;
  --border: #e8e8e8;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: var(--font-body);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
}
a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 80px 48px;
}
.section--gray {
  background: var(--light-2);
}
.section--dark {
  background: var(--dark);
  color: #fff;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  margin: 12px 0 0;
}
.section-sub {
  font-size: 16px;
  color: var(--muted-2);
  margin: 12px auto 0;
  max-width: 560px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
/* Lockup du logo : mascotte recolorée en orange Viessmann + bloc typographique.
   « VIESSMANN » (9 lettres) est plus long que « BULEX » (5 lettres) : contrairement
   au jumeau Bulex, il n'a pas besoin d'être interlettré pour retrouver la largeur
   de « TECHNICIEN », d'où un tracking neutre et une taille légèrement réduite pour
   éviter le débordement (à vérifier visuellement, voir README). */
.logo-top {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.logo-bottom {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0px;
  text-transform: uppercase;
}
.logo-mascotte {
  height: 58px;
  width: auto;
  display: block;
}
.logo-link .logo-text {
  gap: 1px;
}
@media (max-width: 768px) {
  .logo-mascotte {
    height: 46px;
  }
  .logo-top {
    font-size: 17px;
  }
  .logo-bottom {
    font-size: 19px;
    letter-spacing: 0px;
  }
  .logo-link {
    gap: 10px;
  }
}
@media (max-width: 400px) {
  .logo-mascotte {
    height: 38px;
  }
  .logo-top {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
  .logo-bottom {
    font-size: 15px;
    letter-spacing: 0px;
  }
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bouton hamburger : caché sur desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: var(--dark);
  cursor: pointer;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-burger {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--dark);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn--phone-header {
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
  white-space: nowrap;
}
.btn--phone-header:hover {
  background: var(--brand-dark);
  color: #fff;
}
.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover {
  background: var(--red-dark);
  color: #fff;
}
.btn--outline {
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  border: 2px solid #e0e0e0;
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn--brand {
  background: var(--brand);
  color: #fff;
  width: 100%;
}
.btn--brand:hover {
  background: var(--brand-dark);
  color: #fff;
}
.btn--white {
  background: #fff;
  color: var(--brand);
  width: 100%;
}
.btn--white:hover {
  background: #f0f0f0;
  color: var(--brand);
}

/* Badge d'agrément Viessmann */
.agrement-strip {
  text-align: center;
  padding: 24px 20px 0;
  background: #fff;
}
.agrement-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
}
.agrement-pill span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.agrement-pill img {
  height: 28px;
  width: auto;
  display: block;
}
.section-head .agrement-pill {
  margin-top: 20px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 32px;
  font-size: 13px;
  color: #888;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a {
  color: #888;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb .sep {
  margin: 0 6px;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
  /* Écrans larges : contenu centré, image jamais suragrandie (donc jamais floue) */
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.hero-left {
  max-width: 640px;
  justify-self: end;
  width: 100%;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
  gap: 28px;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease infinite;
}
.hero-pill span {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.hero-title .accent {
  color: var(--brand);
}
.hero-text {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 500px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Hero local (pages villes) */
.hero-local {
  padding: 64px 48px;
  background: linear-gradient(135deg, #f8fdf9 0%, #edf7ef 100%);
  border-bottom: 1px solid #e8f0ea;
}
.hero-local .inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero-local .hero-title {
  font-size: 40px;
  margin: 0 0 20px;
}
.hero-local .hero-text {
  max-width: 700px;
  margin-bottom: 28px;
}

/* Badges */
.badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--light);
  padding: 8px 14px;
  border-radius: 100px;
}
.badge--bordered {
  background: #fff;
  border: 1px solid #e0e0e0;
}

/* Cards services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #fff;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.card-img {
  height: 180px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 24px;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.card-body p {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.6;
  margin: 0 0 16px;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

/* Cards service-icone (pages locales) */
.icon-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: box-shadow 0.2s;
  background: #fff;
}
.icon-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.icon-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.icon-card p {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.6;
  margin: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 32px 16px;
}
.stat .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.stat .value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
}
.stat .label {
  font-size: 14px;
  color: var(--muted-2);
  margin-top: 4px;
}

/* Zones */
.zone-group {
  margin-bottom: 32px;
}
.zone-group h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zone-tag {
  font-size: 13px;
  color: var(--text);
  background: var(--light);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}
.zone-tag:hover {
  background: var(--brand);
  color: #fff;
}

/* Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--light-2);
  border-radius: 10px;
  padding: 32px;
}
.testimonial .stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testimonial blockquote {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin: 0 0 20px;
  font-style: italic;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  font-size: 16px;
}
.testimonial .name {
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}
.testimonial .place {
  font-size: 12px;
  color: #999;
}

/* Contenu long + sidebar */
.content-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.prose h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 20px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
}
.prose p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}
.checklist .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}
.checklist svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.sidebar-cta {
  background: var(--brand);
  border-radius: 12px;
  padding: 32px;
  color: #fff;
}
.sidebar-cta h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}
.sidebar-cta p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  opacity: 0.9;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.sidebar-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}
.sidebar-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.sidebar-card .row .label {
  color: var(--muted);
}
.sidebar-card .row .value {
  font-weight: 700;
  color: var(--dark);
}
.sidebar-card .note {
  font-size: 12px;
  color: #999;
  margin: 14px 0 0;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.sidebar-links a:hover {
  color: var(--brand);
}
.sidebar-links .arrow {
  color: var(--brand);
}
.infos-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
.infos-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Étapes */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step .num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step p {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
  margin: 0;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--font-body);
}
.faq-item p {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.7;
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-grid .section-title {
  color: #fff;
}
.contact-intro {
  font-size: 16px;
  color: #aaa;
  line-height: 1.7;
  margin: 0 0 32px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(203, 13, 39, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .label {
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}
.contact-item .value,
.contact-item a {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.contact-item a.tel {
  font-size: 20px;
  font-weight: 700;
}
.contact-form {
  background: #252525;
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--dark);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(203, 13, 39, 0.22);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .fine {
  font-size: 12px;
  color: #666;
  margin: 0;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 48px 48px 24px;
  background: #111;
  color: #888;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #222;
}
.footer-grid .col-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-grid .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid a {
  color: #888;
  text-decoration: none;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-about p {
  line-height: 1.7;
  margin: 0 0 12px;
  max-width: 280px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 16px;
}
.footer-logo .top {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-logo .bottom {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0px;
  text-transform: uppercase;
}
.footer-zones {
  padding: 24px 0;
  border-bottom: 1px solid #222;
}
.footer-zones .col-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-zones .zone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  line-height: 1.9;
}
.footer-zones a {
  color: #777;
  text-decoration: none;
  font-size: 12px;
}
.footer-zones a:hover {
  color: #fff;
}
.footer-disclaimer {
  margin: 24px auto 0;
  text-align: center;
  color: #777;
  font-size: 12px;
  max-width: 1100px;
}
.footer-bottom {
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 12px;
  max-width: 1100px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive */
.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .cards-grid,
  .cards-grid--4,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero,
  .cards-grid,
  .testimonials-grid,
  .contact-grid,
  .content-cols,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-header {
    padding: 12px 16px;
  }
  .nav-toggle {
    display: flex;
  }
  /* Menu mobile : panneau sous le header, ouvert via le bouton hamburger */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 16px 16px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 14px 8px;
    font-size: 16px;
    border-bottom: 1px solid #f2f2f2;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .section {
    padding: 48px 20px;
  }
  .hero-left,
  .hero-local {
    padding: 40px 20px;
  }
  .hero-title {
    font-size: 32px !important;
  }
  .section-title {
    font-size: 26px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .footer-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .badges {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn--phone-header {
    padding: 10px 12px;
    font-size: 13px;
  }
  .site-header {
    gap: 8px;
  }
}

/* Icônes « trait » (reprises des styles scopés des composants Astro) */
.btn--phone-header svg {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item .icon svg {
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ancres : la page d'accueil est une seule page, on décale les cibles
   pour qu'elles ne passent pas sous le header collant. */
#services,
#modeles,
#zones,
#devis,
.zone-group {
  scroll-margin-top: 100px;
}
