/* ═══════════════════════════════════════════
   T-HOME — Chauffage & Sanitaire
   style.css
═══════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:   #d85a35;
  --red:      #d23a2e;
  --dark:     #1e1e1e;
  --gray-dk:  #4a4a4a;
  --gray:     #bfbfbf;
  --gray-lt:  #e3e3e3;
  --gray-bg:  #f6f6f6;
  --white:    #ffffff;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,0.11);
  --shadow-lg: 0 12px 48px rgba(216,90,53,0.18);
  --radius:   10px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: #c04e2c; border-color: #c04e2c; }
.btn-white  { background: var(--white); color: var(--orange); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ── SECTION COMMONS ── */
.section-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

h2.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--gray-dk);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 44px;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--dark);
  color: var(--gray-lt);
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gray-lt); transition: color var(--transition); }
.topbar a:hover { color: var(--orange); }
.topbar-group { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { flex-shrink: 0; }

/* ── HEADER ── */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  gap: 16px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.logo-img { height: 60px; width: auto; border-radius: 6px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 13px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); background: var(--gray-bg); }

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.82rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 5px;
  transition: background var(--transition);
}
.burger:hover { background: var(--gray-bg); }
.burger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 74px;
  padding-bottom: 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 20px 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--gray-lt);
  color: var(--dark);
}
.mobile-menu a:active { color: var(--orange); background: #fff5f2; }
.mobile-menu .btn {
  display: block;
  margin: 24px 28px 0;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
}

/* Fond sombre derrière le menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}
.mobile-menu-overlay.open { display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-content { color: var(--white); }
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 20px;
}
h1.hero-title em { font-style: normal; color: rgba(255,255,255,0.7); }

.hero-desc { font-size: 1.05rem; opacity: 0.9; margin-bottom: 32px; max-width: 440px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  color: var(--white);
  backdrop-filter: blur(10px);
  max-width: 320px;
  width: 100%;
}
.hero-logo-img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  margin: 0 auto 20px;
  object-fit: cover;
}
.hero-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-card p { opacity: 0.85; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; }
.hero-divider { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin-bottom: 20px; }
.hero-phones { display: flex; flex-direction: column; gap: 8px; }
.hero-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.hero-phone-link:hover { background: rgba(255,255,255,0.25); }

/* ── SERVICES BAR ── */
.services-bar { background: var(--dark); padding: 18px 0; }
.services-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
}
.sbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sbar-icon { color: var(--orange); flex-shrink: 0; }

/* ── SERVICES ── */
.services { padding: 88px 0; background: var(--white); }
.services-header { text-align: center; margin-bottom: 48px; }
.services-header .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-img.bg-orange { background: linear-gradient(135deg, var(--orange), #e8743e); }
.service-card-img.bg-red    { background: linear-gradient(135deg, var(--red), #a82820); }
.service-card-img.bg-dark   { background: linear-gradient(135deg, #2d2d2d, #484848); }
.service-card-img.bg-teal   { background: linear-gradient(135deg, #1e7a8c, #155f6d); }
.service-card-img.bg-blue   { background: linear-gradient(135deg, #1a5fa8, #1473c4); }
.service-card-img svg { width: 68px; height: 68px; color: rgba(255,255,255,0.92); }

.service-card-body { padding: 24px; }
.service-card-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card-body p { color: var(--gray-dk); font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
.service-list { display: flex; flex-direction: column; gap: 5px; }
.service-list li {
  font-size: 0.85rem;
  color: var(--gray-dk);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-list li::before { content: '→'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ── TARIFS ── */
.tarifs { padding: 88px 0; background: var(--gray-bg); }
.tarifs-header { text-align: center; margin-bottom: 48px; }
.tarifs-header .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.tarif-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tarif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tarif-icon {
  width: 54px; height: 54px;
  background: var(--orange);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.tarif-icon svg { width: 28px; height: 28px; }

.tarif-body { flex: 1; }
.tarif-body h3 { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 3px; }
.tarif-body p { font-size: 0.82rem; color: var(--gray-dk); }

.tarif-price { text-align: right; flex-shrink: 0; }
.tarif-amount { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.tarif-unit { font-size: 0.72rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; }

/* Frais de déplacement */
.deplacement-block {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.deplacement-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 24px;
}
.deplacement-title svg { color: var(--orange); flex-shrink: 0; }

.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.zone-tarif-card {
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  border: 2px solid transparent;
  transition: transform var(--transition);
}
.zone-tarif-card:hover { transform: translateY(-3px); }
.zone-1 { background: #fff7f5; border-color: #f5cabb; }
.zone-2 { background: #fff3ed; border-color: #faa37a; }
.zone-3 { background: #fef0e8; border-color: var(--orange); }

.zone-num { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 4px; }
.zone-km  { font-size: 0.82rem; font-weight: 600; color: var(--gray-dk); margin-bottom: 10px; }
.zone-price-big { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 6px; }
.zone-price-big::after { content: ' €'; font-size: 1.2rem; }
.zone-desc { font-size: 0.78rem; color: var(--gray-dk); line-height: 1.4; }

/* Zone calculator */
.zone-calc {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 24px;
  border: 1.5px dashed var(--gray-lt);
}
.zone-calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--dark);
}
.zone-calc-header svg { color: var(--orange); }
.zone-calc-header strong { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.zone-calc-sub { font-size: 0.88rem; color: var(--gray-dk); margin-bottom: 16px; }

.zone-calc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.zone-calc-input {
  flex: 1;
  min-width: 220px;
  border: 1.5px solid var(--gray-lt);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
}
.zone-calc-input:focus { border-color: var(--orange); }
.zone-calc-btn { padding: 11px 24px; font-size: 0.88rem; white-space: nowrap; }

.zone-result {
  margin-top: 16px;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 0;
  transition: all 0.2s;
}
.zone-result:empty { display: none; }
.zone-result.show {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.zone-result.zone-ok  { background: #fff7f5; border: 1.5px solid var(--orange); }
.zone-result.zone-err { background: #fee2e2; border: 1.5px solid #fca5a5; }
.zone-result-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.2; }
.zone-result-text strong { display: block; font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
.zone-result-text span  { font-size: 0.88rem; color: var(--gray-dk); }


/* ── WHY US ── */
.whyus { background: var(--gray-bg); padding: 88px 0; }
.whyus .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.whyus-visual {
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 14px;
  padding: 44px 40px;
  color: var(--white);
}
.whyus-visual h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.whyus-divider { border: none; border-top: 1px solid rgba(255,255,255,0.22); margin: 20px 0; }
.whyus-stat { display: flex; align-items: center; gap: 16px; }
.whyus-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  width: 80px;
  flex-shrink: 0;
}
.whyus-stat-label { font-size: 0.9rem; opacity: 0.9; font-weight: 600; }

.why-points { display: flex; flex-direction: column; gap: 22px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  width: 46px; height: 46px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 22px; height: 22px; color: var(--white); }
.why-point h4 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.why-point p { color: var(--gray-dk); font-size: 0.88rem; }

/* ── ZONE ── */
.zone { background: var(--dark); padding: 72px 0; color: var(--white); text-align: center; }
.zone h2 { color: var(--white); }
.zone .section-sub { color: var(--gray); margin-left: auto; margin-right: auto; text-align: center; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.zone-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}
.zone-chip:hover { background: rgba(216,90,53,0.3); border-color: var(--orange); }
.zone-chip::before { content: '📍'; font-size: 0.85rem; }

/* ── RÉALISATIONS GALERIE ── */
.realisations { padding: 88px 0; background: var(--dark); }
.realisations-header { text-align: center; margin-bottom: 44px; }
.realisations-header h2 { color: var(--white); }
.realisations-header .section-sub { color: var(--gray); margin-left: auto; margin-right: auto; margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 10px;
}

.gallery-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 4px;
}


/* ── AVANT/APRÈS SLIDER ── */
.avap-slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  border-radius: 10px;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.avap-before,
.avap-after {
  position: absolute;
  inset: 0;
}
.avap-before img,
.avap-after img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  display: block;
  pointer-events: none;
}
.avap-after {
  clip-path: inset(0 50% 0 0);
}
.avap-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.avap-line {
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0.9;
}
.avap-btn {
  position: relative;
  z-index: 2;
  background: var(--orange);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  color: var(--white);
  flex-shrink: 0;
}
.avap-label {
  position: absolute;
  top: 16px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  pointer-events: none;
}
.avap-label--before { left: 16px; }
.avap-label--after  { right: 16px; }


/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
  padding: 100px 0 56px;
  text-align: center;
  border-bottom: 3px solid var(--orange);
}
.page-hero .section-tag {
  margin-bottom: 16px;
}
.page-hero h1 {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── RÉALISATIONS NAV ── */
.real-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-lt);
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.real-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.real-nav .container::-webkit-scrollbar { display: none; }
.real-nav-link {
  flex-shrink: 0;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-dk);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.real-nav-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ── RÉALISATIONS SOUS-SECTION ── */
.real-subsection {
  margin-top: 64px;
}
.real-subsection-header {
  text-align: center;
  margin-bottom: 32px;
}
.real-subsection-tag {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 2px solid var(--orange);
}
.real-subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 10px;
}
.real-subsection-sub {
  color: var(--gray);
  font-size: 0.97rem;
  max-width: 540px;
  margin: 0 auto;
}
.chauffage-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 300px;
}
.chauffage-sol-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ── TESTIMONIALS ── */
.testimonials { padding: 88px 0; background: var(--white); }
.testimonials-header { text-align: center; margin-bottom: 48px; }
.testimonials-header .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px;
  border-bottom: 3px solid var(--orange);
}
.testi-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 10px; }
.testi-quote-mark { font-size: 2.8rem; line-height: 1; color: var(--orange); font-weight: 900; margin-bottom: 8px; }
.testi-text { font-size: 0.93rem; color: var(--gray-dk); font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--white); font-size: 0.95rem;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.9rem; }
.testi-loc { font-size: 0.78rem; color: var(--gray); }

/* ── URGENCE BANNER ── */
.urgence {
  background: linear-gradient(135deg, #b83028, var(--red));
  padding: 44px 0;
  color: var(--white);
}
.urgence .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.urgence-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.urgence-content p { opacity: 0.9; font-size: 0.95rem; }
.urgence-phones { display: flex; flex-direction: column; gap: 10px; }
.urgence-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 12px 22px;
  transition: background var(--transition);
}
.urgence-phone:hover { background: rgba(255,255,255,0.25); }
.urgence-phone svg { width: 22px; height: 22px; flex-shrink: 0; }
.urgence-phone-text small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.urgence-phone-text strong { font-size: 1.2rem; font-weight: 900; }

/* ── CONTACT ── */
.contact { padding: 88px 0; background: var(--gray-bg); }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
  width: 46px; height: 46px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; color: var(--white); }
.contact-item-body strong { display: block; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-item-body span, .contact-item-body a { color: var(--gray-dk); font-size: 0.93rem; }
.contact-item-body a { color: var(--orange); font-weight: 600; }
.contact-item-body a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-dk); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-lt);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 105px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 2px; display: none; }
.form-error.visible { display: block; }
.form-submit { width: 100%; padding: 14px; font-size: 0.95rem; margin-top: 4px; }

.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 12px;
}
.form-feedback.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-feedback.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: var(--gray);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo-img { height: 56px; width: auto; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.86rem; color: var(--gray); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
}
.footer-bottom a { color: var(--orange); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #4ade80; }
.toast.error   { border-left: 4px solid var(--red); }

/* ── RESPONSIVE ── */

/* Tablette (≤ 960px) */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .whyus .container { grid-template-columns: 1fr; }
  .whyus { padding: 60px 0; }
  .contact .container { grid-template-columns: 1fr; }
  .contact { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .realisations { padding: 60px 0; }
  .real-nav { top: 74px; }
  h2.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }

  /* Header toujours visible sur mobile */
  header { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: 74px; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  /* Topbar : masquer infos secondaires */
  .topbar-group:first-child { display: none; }
  .topbar .container { justify-content: flex-end; }

  /* Header */
  nav { height: 60px; padding: 0 16px; }
  .logo-img { height: 46px; }
  body { padding-top: 60px; }
  .real-nav { top: 60px; }
  .real-nav-link { padding: 12px 14px; font-size: 0.78rem; }
  .mobile-menu { padding-top: 60px; }

  /* Sections : réduire le padding vertical */
  .hero { padding: 52px 0 44px; }
  .services { padding: 52px 0; }
  .whyus { padding: 52px 0; }
  .zone { padding: 52px 0; }
  .realisations { padding: 40px 0; }
  .testimonials { padding: 52px 0; }
  .contact { padding: 52px 0; }
  .real-subsection { margin-top: 44px; }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Slider avant/après */
  .avap-slider { height: 240px; }

  /* Hero */
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; }

  /* Why us */
  .whyus-visual { padding: 28px 22px; }
  .whyus-stat-num { font-size: 2.2rem; width: 64px; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Urgence */
  .urgence .container { flex-direction: column; }
  .urgence-phones { width: 100%; }
  .urgence-phone { justify-content: center; }

  /* Galeries */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-large { grid-column: 1 / 3; grid-row: auto; height: 200px; }
  .gallery-item { height: 160px; }

  .chauffage-sol-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .chauffage-sol-grid .gallery-item { height: 170px; }
  .chauffage-sol-grid .gallery-item:last-child:nth-child(odd) { grid-column: 1 / 3; }

  /* Page hero */
  .page-hero { padding: 60px 0 36px; }

  /* Tarifs */
  .zones-grid { grid-template-columns: 1fr; }
  .tarif-card { flex-wrap: wrap; }
  .tarif-price { width: 100%; text-align: left; margin-top: 8px; }

  /* Services topbar */
  .services-bar .container { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

/* Très petit (≤ 400px) */
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-large { grid-column: 1; height: 200px; }
  .chauffage-sol-grid { grid-template-columns: 1fr; }
  .chauffage-sol-grid .gallery-item:last-child { grid-column: 1; }
  .real-nav-link { padding: 10px 10px; font-size: 0.72rem; }
  .avap-slider { height: 200px; }
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }

.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.6);
}

.lb-close {
  position: fixed;
  top: 20px; right: 28px;
  background: none; border: none;
  color: white; font-size: 2.4rem;
  cursor: pointer; line-height: 1;
  opacity: 0.8; transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: white;
  font-size: 2.5rem; cursor: pointer;
  padding: 12px 18px; border-radius: 6px;
  opacity: 0.8; transition: opacity 0.2s, background 0.2s;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(255,255,255,0.22); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ── VMC vidéos ── */
.vmc-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.vmc-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border-radius: var(--radius);
}
.vmc-play-overlay.visible { opacity: 1; }

/* ── Instagram ── */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-insta { display: flex; align-items: center; gap: 6px; color: var(--gray); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-insta:hover { color: #e1306c; }

/* ── BANNIÈRE COOKIES ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: var(--gray-lt);
  padding: 20px 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(0);
  transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { font-size: 0.85rem; margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--orange); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--orange); color: white;
  border: none; border-radius: 5px;
  padding: 10px 22px; font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
  font-family: inherit;
}
.cookie-btn-decline {
  background: transparent; color: var(--gray);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 5px;
  padding: 10px 16px; font-weight: 600;
  font-size: 0.85rem; cursor: pointer;
  font-family: inherit;
}
.cookie-btn-decline:hover { color: white; border-color: rgba(255,255,255,0.5); }
@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-btns { width: 100%; }
  .cookie-btn-accept { flex: 1; text-align: center; }
}
