/* NEXUS-HVAC — couleurs relevées sur le X du logo (bleu froid / rouge chaud) */
:root {
  --cold: #3BA3E4;
  --hot: #F2343A;
  --hot-dark: #D42329;
  --ink: #0B0D10;
  --ink-2: #14181D;
  --ink-3: #1E242B;
  --paper: #FFFFFF;
  --paper-2: #F3F5F8;
  --text: #1A1F25;
  --muted: #5B6672;
  --muted-on-dark: #A3ADB8;
  --line: #E2E6EB;
  --line-on-dark: rgba(255, 255, 255, .1);

  --font-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --container: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.text-cold { color: var(--cold); }
.text-hot { color: var(--hot); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .8em;
  background: linear-gradient(90deg, var(--cold), var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .9em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-hot { background: var(--hot); color: var(--paper); }
.btn-hot:hover { background: var(--hot-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-small { padding: .6em 1.1em; font-size: .95rem; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand img { height: 48px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.main-nav a:hover { color: var(--paper); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 30%, var(--ink-3), var(--ink) 60%);
  color: var(--paper);
  padding: 110px 0 120px;
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.lead { font-size: 1.15rem; color: var(--muted-on-dark); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--muted-on-dark);
  font-size: .95rem;
}
.hero-facts li::before { content: "● "; color: var(--cold); }

.hero-card {
  justify-self: center;
  width: min(340px, 100%);
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(6px);
}
.thermo { position: relative; aspect-ratio: 1; }
.thermo-ring { width: 100%; height: 100%; }
.thermo-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
}
.thermo-value span { font-size: .35em; color: var(--muted-on-dark); }
.thermo-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  text-align: center;
  color: var(--muted-on-dark);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.thermo-modes { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.mode {
  padding: .35em 1em;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid currentColor;
}
.mode-cold { color: var(--cold); }
.mode-hot { color: var(--hot); }

/* Sections */
.section { padding: 100px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-intro { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-intro { color: var(--muted-on-dark); }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Métiers */
.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(11, 13, 16, .25); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.icon-hot { color: var(--hot); }
.icon-cold { color: var(--cold); }

/* Services */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-on-dark);
}
.step { padding: 36px 28px 8px 0; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--cold), var(--hot));
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--muted-on-dark);
  margin-bottom: 14px;
}
.step p { color: var(--muted-on-dark); }

/* Secteurs */
.sectors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 12px;
  border-radius: var(--radius);
  background: var(--paper-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
}
.sector-icon { width: 40px; height: 40px; color: var(--ink); }

/* Zone */
.zone { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.regions { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.region {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: var(--paper);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
}
.region-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cold), var(--hot));
  flex: none;
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.contact-list .icon { color: var(--cold); margin-top: .3em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--cold); }
.contact-list address { font-style: normal; }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-on-dark); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.4); }

/* Pied de page */
.site-footer { background: var(--ink-2); color: var(--muted-on-dark); font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; align-items: center; }
.footer-logo { height: 56px; width: auto; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--line-on-dark); padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }

/* Barre d'appel mobile */
.call-bar { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 72px 0 80px; }
  .hero-inner, .zone, .contact { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .brand img { height: 38px; }
  .header-inner .btn span { display: none; }
  .header-inner .btn { padding: .7em; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    height: 60px;
    background: var(--hot);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
